Python List Archive

Convert string to list python

In this post, we will see how to convert String to list in Python. We can use String’s split function to convert String to list. String’s function Python String split function signature Parameters …

Remove from list Python

In this post, we will see how to remove an element from list in python. You can remove elements from list in 3 ways. Using list object’s remove method Here you need to specify element …

Python sort list of tuples

In this tutorial, we will see about how to sort list of tuples on the basis of various criterion. Let’s understand with the help of example Let’s say you have list of tuples as below: …

Python tuple index()

In this post, we will see about Python tuple’s index method.Python tuple’s index method is used to find index of element in the tuple Python tuple count syntax tuple1 is object of the tuple …

Python tuple count()

In this post, we will see about Python tuple’s count method.Python tuple’s count method is used to count the occurrences of element in the tuple. Python tuple count syntax tuple1 is object of the …