1. How do you remove an element 4 from a list my_list = [1, 2, 3, 4]?
4
my_list = [1, 2, 3, 4]
2. What are lists used for in Python?
3. How do you access the last element of a list my_list = [1, 2, 3, 4, 5]?
my_list = [1, 2, 3, 4, 5]
4. How do you define a list in Python?
5. How do you print the second element of a list my_list = [1, 2, 3, 4, 5]?
6. How do you modify an element in a list list1 = [1, 2, 3] and set the tirth element to 999?
list1 = [1, 2, 3]
999
7. How do you append an element 4 to a list my_list = [1, 2, 3]?
my_list = [1, 2, 3]
8. How do you find the length of a list my_list = [1, 2, 3, 4, 5]?