The document defines and demonstrates the use of list functions in Python. It creates three lists containing personal details and prints them in a formatted table. It then defines common list methods like append(), pop(), sort(), and reverse(). Finally, it shows nesting lists to create a matrix and access elements using two indices.
The document defines and demonstrates the use of list functions in Python. It creates three lists containing personal details and prints them in a formatted table. It then defines common list methods like append(), pop(), sort(), and reverse(). Finally, it shows nesting lists to create a matrix and access elements using two indices.
The document defines and demonstrates the use of list functions in Python. It creates three lists containing personal details and prints them in a formatted table. It then defines common list methods like append(), pop(), sort(), and reverse(). Finally, it shows nesting lists to create a matrix and access elements using two indices.
my_list.append('Hindu') >>>> It add the Hindu as last value in the list
my_list.pop() >>> by default last value is removed my_list.pop(2) >>>> removes the 3rd value in the list my_list.sort() >>>> sort value if all value are digit my_list.reverse() >>> That Reverse the current list item