addelem.py 102 Bytes
Newer Older
nishanth's avatar
nishanth committed
1 2 3 4 5 6
list=[1,2,3,4,5]
print(list[:5])
list.append([9,8,7])
print(list)
list.extend([10,11,12])
print(list)