Dictionary in python is just like a map in C++ and Java. The Iike Map dictionary consists of two things: first is key and second is value. Dictionary is dynamic in nature. You can add more keys and values to the dictionary after creating the dictionary and also you can delete the key and value in the dictionary. You can add another dictionary to the currently created dictionary. Also you can add the list to the dictionary and dictionary to list. In the dictionary you can access the elements via their respective keys. Dictionary = { 1: ... Read More
Monkey patching is the technique of dynamic modification of a piece of code at the run time. Actually by doing monkey patch we change the behavior of code but without affecting the original source code. History The monkey patch comes from the word guerrilla patch, guerrilla nearly means gorilla which can define the monkey species. The guerrilla patch refers to change sneakily. But money patch seems easy to pronounce, so now it's known as “ Monkey patch“. In the word “Monkey-patch” the word monkey defines the word dynamic. Monkey patching in python Monkey patching in python refers to modifying or ... Read More
Python is a very popular programming language among the Developers and very easy to understand. Its syntax is also very simple to understand, like JAVA and C. But this popular language has some problems and one of the major problems is that it takes so long to start. There can be so many reasons for being slow in Windows Maybe the system configuration is not identical, particular for python. Malware virus slowing the window system. Too many applications running on the window system so python is not getting the proper resources. Slow Execution problem As you know python ... Read More
We are given the array, let's say arr[] of 2n integers. We have to make the pair group of the integer elements like(a1, b1), (a2, b2)....(an, bn) which makes the sum of min(ai, bi) for all elements in the array as large as possible. The task is to find the maximum sum of pairs For example arr[] = [1, 2, 3, 4] and output is 4 the maximum sum of pairs is 4. The all possible are − (1, 2) and (3, 4) -> min(1, 2) + min(3, 4) = 1 + 3 = 4. (1, 4) and (2, 3) ... Read More
As you know Python is ranked in topmost used programming language. Python programming language is easy to learn and easy to use. If you know the basics of python you can develop some easy projects like the TIC TAC TOE game and also you can enroll in easy python coding challenges. These coding challenges will help you to improve your coding logics and if you are an intermediate level python programmer you can take a python challenge to enhance your python skills to become a professional or experienced python programmer. Some python programming challenges for beginners. 1. Basic calculator. Basic ... Read More
The toggle between one button to another button means it allows the user to switch one window to another window, it allows to turn on and off a function, allows to change settings, and provides much more functionality. But in this article we have to write a program with the use of CSS and JavaScript to toggle between like and dislike buttons. To do so, let’s create three separate files for HTML, CSS, and JavaScript − HTML file(index.html) The HTML file is required to create buttons, headings, tags, etc. The HTML file must be saved using the .html file extension. ... Read More
An array is a special object in JavaScript, that stores multiple types of values which means that it can store an integer value, string value, or float value simultaneously. There are various ways to create an array in JavaScript, following is the syntax to do so − var array = [value1, value2, value3, …]; or var array = new Array(size); or var array = new Array(element1, element2, …); Where the value is the elements of the array so it can be of any type. The JSON is an object notation in JavaScript that is used to represent structured data ... Read More
A range slider, is an input field in HTML, that accepts the type as a “range”. It is used to select a numeric value within the given specific range, we can pass the range inside the input field as shown below snippet of code As you can see in the above snippet of code, the type is equal to the range and we provide the min = “0” and max = “100” values, which will be the range of the field. The custom range sliders help customize the field range as per the need. In the following article, ... Read More
Grounding, also called earthing, is defined as a process of connecting non-current carrying parts like metallic frame of electrical device or some electrical parts of power system like neutral point of a star-connected system to earth or ground. The main purpose of doing grounding in electrical systems is to prevent accidents and damage to the equipment of the system. In this article, we shall discuss about grounding conductor and how to calculate right size of the grounding conductor according to the requirement What is a Grounding Conductor? A wire or conductor in an electrical system which is intentionally connected to ... Read More
What is Voltage? Voltage, also called potential difference, electric pressure or electric tension, is defined as the difference of electric potentials of two points in an electric circuit. In other words, the amount of energy required to move an electric charge from one point to another in an electric circuit is called voltage. Voltage is denoted by the symbol V or v, where V is used to represent a constant voltage, while v is used to represent a time-varying voltage. In this article, we will learn all about voltage, and the methods used for measuring the voltage in an electric ... Read More
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP