Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- list = [12,34,56,78,23,45,67,89,101]
- print(list)
- list.append(202)
- list.append(303)
- list.append(404)
- print(list)
- list.insert(5,15)
- print(list)
- list.insert(2,25)
- print(list)
- list.remove(67)
- print(list)
- list.reverse()
- print(list)
- print(list[7])
- print(list[4:8])
- print(list[:5])
- print(list[::3])
- print(list.index(90)) #Value not present
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement