Table of contents
- Creating a Python list
- Length of a List
- Accessing items of a List
- Indexing
- List Slicing
- Iterating a List
- Iterate along with an index number
- Adding elements to the list
- Append item at the end of the list
- Add item at the specified position in the list
- Using extend()
- Modify the items of a List
- Modify all items
- Removing elements from a List
- Remove specific item
- Remove all occurrence of a specific item
- Remove item present at given index
- Remove the range of items
- Remove all items
- Finding an element in the list
- Concatenation of two lists
- Copying a list
- Using assignment operator (=)
- Using the copy() method
- List operations
- Sort List using sort()
- Reverse a List using reverse()
- Python Built-in functions with List
- Using max() & min()
- Using sum()
- all()
- any()
- Nested List
- List Comprehension
- Summary of List operations
‣
Introduction
‣
1.0 Creating a Python list
‣
2.0 Length of a List
‣
3.0 Accessing items of a List
‣
4.0 Adding elements to the list
‣
5.0 Modify the items of a List
‣
6.0 Removing elements from a List
‣
7.0 Finding an element in the list
‣
8.0 Concatenation of two lists
‣
9.0 Copy a list Function
‣
10.0 Python Built-in functions with List
‣
11.0 The all() and any() Functions in Python
‣
12.0 Nested List
‣
13.0 List Comprehension
‣
14.0 Basic List Comprehension Examples
‣