Python Topics
Python List Tutorials
A list in Python is a kind of sequential container and it can store different types of elements.
Learn more about lists with these tutorials,
Chapter 1: Creating Lists
Chapter 2: Add or update elements in Lists
-
How to add an element in a list? | append() vs extend()
-
How to insert an element at a specific index in List?
Chapter 3: Iterate / Loop over Lists
Chapter 4: Remove elements from Lists
-
Remove element from a list by value or index in python.
-
How to remove duplicates from a list in python?
-
How to remove multiple elements from a list in python?
Chapter 5: Search / Find elements in a List
-
How to find all indexes of an item in a List?
-
How to check if an item exists in List? | Search by Value or Condition?
-
Check if a list contains all the elements of an another list in python.
-
Check if all elements in a List are similar or match a condition.
Chapter 6:Â Sort a list by key or Value
-
How to sort a list of strings in python.
-
How to sort a list of tuples by 2nd Item using lambda function or a compartor.
Chapter 7:Â Merging / Joining Lists
Chapter 8:Â Counting elements in Lists
-
Count elements in a list, lists of lists or nested list in python.
-
Count elements in a list that satisfy certain conditions in python.
Chapter 9: Duplicates in Lists
-
Three ways to check if there are duplicates in a List.
-
Find duplicates in a list with frequency count & index positions.
Chapter 10: Convert Lists to other types
-
How to convert a list to string in python.
-
Convert list of lists or nested list to flat list in python.
DISCLOSURE: This post contains affiliate links, meaning when you click the links and make a purchase, we receive a commission.