What is the difference between Python’s list methods append and extend?
List is a collection of mutable items and all of these are ordered. As we are talking about mutability, the
What is the difference between __str__ and __repr__ in Python?
In Python, the object class has a number of magic methods(methods that start and end with double underscores). We never
How to sort a list in custom order in python?
In the previous article we’ve seen how we can sort a list of dictionaries using a custom order specified in
Sorting list of dictionaries by custom order in Python
In the previous articles, we have discussed several ways of sorting dictionaries and lists of dictionaries. In this article, we’ll
Python string is a substring of another one means?
How to check if a given Python string is a substring of another one? Let’s understand this scenario with an example.
Convert list of lists to list of dictionaries in Python
In the previous article, we have discussed how to convert a list of dictionaries into a list of lists. In
How to convert a list of dictionaries into a list of lists in Python?
In this article let’s learn how to convert a list of dictionaries into a list of lists. We often fall
How to sort a list of dictionaries by the value of the dictionary in Python?
We can sort a list of dictionaries by their values using the inbuilt sorted() function. This function returns a sorted list
Splitting a dictionary of lists into a list of dictionaries in Python
We, as developers, often fall in need for the conversion from one data type to another. One such type conversion
Combining two lists and removing duplicates in Python
Combining two lists and removing duplicates, without removing duplicates in the original list. Let us first understand the problem statement by