ls = [1, 2, 3, 4, 5]
ls.append('a')
print(ls)
>>>[1, 2, 3, 4, 5, 'a']
ls.extend(['c', 'd'])
print(ls)
>>>[1, 2, 3, 4, 5, 'a', 'c', 'd']
ls.insert(2, 'new')
print(ls)
>>>[1, 2, 'new', 3, 4, 5, 'a', 'c', 'd']
ls.pop(2)
print(ls)
>>>[1, 2, 3, 4, 5, 'a', 'c', 'd']
ls.pop()
print(ls)
>>>[1, 2, 3, 4, 5, 'a', 'c']
ls.remove('a')
print(ls)
>>>[1, 2, 3, 4, 5, 'c']
ls.pop(0)
print(ls)
>>>[2, 3, 4, 5, 'c']
ls[0] = 1
print(ls)
>>>[1, 3, 4, 5, 'c']
print(ls[0])
>>>1
print(ls[0:])
>>>[1, 3, 4, 5, 'c']
print(ls[: -1])
>>>[1, 3, 4, 5]
print(0: 2)
>>>[1, 3]