Skip to content

Tag Archives: python-list

Often during the problem solving we come across to many problems where we need to sort the list. But sometimes we would also want to… Read More
Sometimes we come across the situations in which we require to apply a particular function to each elements of two lists at similar index. Most… Read More
Given a list, we always come across situations in which we require to apply certain function to each element in a list. This can be… Read More
In Python, zipping is a utility where we pair one list with the other. Usually, this task is successful only in the cases when the… Read More
The initialization of list with a single number is a generic problem whose solution has been dealt many number of times. But sometimes we require… Read More
Given a string, write a Python program to split the characters of the given string into a list using Python. Examples:   Input : geeks Output… Read More
In real world problems, we sometimes require to pad the element of list according to a condition that maximum characters have reached. Padding a number… Read More
Sometimes the data that we receive, is in the form of tuples having data from various sources and we can usually have a use case… Read More
Given a list, find the most frequent element in it. If there are multiple elements that appear maximum number of times, print any one of… Read More
Often times we want to create a list containing a continuous value like, in a range of 100-200. Let’s discuss how to create a list… Read More
Sometimes, we require to merge some of the elements as single element in the list. This is usually with the cases with character to string… Read More
Sometimes we come across this type of problem in which we require to leave each element of one list with the other. This type of… Read More
Python list slicing slices the list from start index till end – 1, specified as list elements. So its tricky when we require to also… Read More
The usual append method adds the new element in the original sequence and does not return any value. But sometimes we require to have a… Read More
List is an important container and used almost in every code of day-day programming as well as web-development, more it is used, more is the… Read More

Start Your Coding Journey Now!