Akhil Narayanan Nair home

Python - List Cloning

================

a = [1, 2, 3]

b = a[:]

print(a)

print(b)

b[0]=5

print(a)

print(b)