list1 = ['a','b','c',4,5,6]
list1.append(8)
list1
['a', 'b', 'c', 4, 5, 6, 8]
list1.insert(1,'f')
list1
['a', 'f', 'b', 'c', 4, 5, 6, 8]
list1.[0] = hello word
list1
File "<ipython-input-7-70b30079e571>", line 1
list1.[0] = hello word
^
SyntaxError: invalid syntax
list1.[0] = hello word
list1
File "<ipython-input-8-70b30079e571>", line 1
list1.[0] = hello word
^
SyntaxError: invalid syntax
list1[0] = "hello word"
list1
['hello word', 'f', 'b', 'c', 4, 5, 6, 8]
del list1[-1]
list1
['hello word', 'f', 'b', 'c', 4, 5, 6]
list1.remove('b')
list1
['hello word', 'f', 'c', 4, 5, 6]
list1.remove(list1[2])
list1
['hello word', 'f', 4, 5, 6]
list1.pop(1)
list1
['hello word', 4, 5, 6]
pop_ele = list1.pop(2)
pop_ele
5
list1[2]
6
list1[0:2]
['hello word', 4]
list2 = [i for i in range(10)]
list2
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
list2[0:9:2]
[0, 2, 4, 6, 8]
list2[-9:-1:2]
[1, 3, 5, 7]
len(list2)
10