Programming Basic

Tutorial on Latest Javascript Frameworks

Line continuation | Long statement in Multiple lines in Python

Line continuation | Long statement in Multiple lines in Python

Find out how to write long strings that continue to the next line using python. And to solve line continuation in python. Read More
Find Length of Dictionary in Python with Examples

Find Length of Dictionary in Python with Examples

To find the length of the dictionary we have to use the `len()` function in python. It returns the number of keys in the dictionary. Read More
Reverse an Array in Python (Using Numpy And Array Module)

Reverse an Array in Python (Using Numpy And Array Module)

We have to create an array in Python using numpy and array module and use reverse() and slicing method to reverse it. Read More
Python import from parent directory

Python import from parent directory

We can import methods from a parent directory in python using the sys.path.append() and sys.path.insert() method of the sys and os modules. Read More
How to use Pi in Python? (math and numpy module)

How to use Pi in Python? (math and numpy module)

We can use Pi using the math module in python. The math.pi returns the value of 3.141592653589793 when used in Python. Read More
FileNotFoundError: No such file or directory Error Python

FileNotFoundError: No such file or directory Error Python

Find out how to solve the no such file and directory error by specifying the absolute and relative path of the file in python. Read More
Save Python dict as JSON: Convert Dictionary to JSON

Save Python dict as JSON: Convert Dictionary to JSON

Find out how to convert dictionary to JSON format using python. In python, we can use the json.dumps() method to covert the dict to json object. Read More
Add leading zero to a number in JavaScript (Code Example)

Add leading zero to a number in JavaScript (Code Example)

To add leading zero to a number, first convert the number to a string and use padStart() method to add the leading zero. Read More
Find square root of negative number using python

Find square root of negative number using python

We can get the square root of a negative number in python using the cmath python library. It provides us various functions to work with complex numbers. Read More