While programming, there may be situations where we need to merge two or more dictionaries in python. In this article, we will study how we can merge … [Read more...] about Merge Dictionaries in Python
Shallow copy and deep copy in Python
While programming, We need to copy existing data. When we assign a variable to another using = operator, the assignment operator doesn’t copy … [Read more...] about Shallow copy and deep copy in Python
Iterating over dictionary in Python
Dictionaries are one of the most frequently used data structures in python. It contains data in the form of key value pairs. While processing the data … [Read more...] about Iterating over dictionary in Python
Difference between comments and docstrings in Python
Comments are used to increase the readability and understandability of the source code. A python comment may be a single line comment or a multiline … [Read more...] about Difference between comments and docstrings in Python
Shortcut to Comment Out Multiple Lines in Python
We often need to comment out blocks of code in Python while testing or debugging the code. When a block is turned into a Python comment, it doesn't … [Read more...] about Shortcut to Comment Out Multiple Lines in Python
Convert a list containing float numbers to string in Python
There may be situations where we want to convert a list containing float numbers to string while working in python. In this article, we will look at … [Read more...] about Convert a list containing float numbers to string in Python
Single Line and Multi Line Comments in Python
A comment is a piece of code that isn’t executed by the compiler or interpreter when the program is executed. Comments can only be read when we have … [Read more...] about Single Line and Multi Line Comments in Python
Split a number in a string in Python
While processing text data, it may be a situation that we have to extract numbers from the text data. In python, we process text data using strings. … [Read more...] about Split a number in a string in Python
Extract a specific word from a string in Python
While handling text data, sometimes we have to search for occurrences of specific words in the text and extract specific words. In this tutorial, we … [Read more...] about Extract a specific word from a string in Python
How to write comments in Python
Comments in python are parts of source code which aren't executed by the python interpreter. Comments contribute no functionality to the application … [Read more...] about How to write comments in Python