Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ages = [11, 14, 18, 22, 24]
- ages[2] = 27
- print(ages)
- ages[:3]
- print(ages[:3])
- print(ages[:])
- ages.append(60)
- print(ages)
- ages[:2] = [80, 90]
- print(ages)
- ages[:] = 'test'
- print(ages)
- ages[:] = []
- print(ages)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement