Akhil Narayanan Nair
home
Python - List Cloning
================
a = [1, 2, 3]
b = a[:]
print(a)
print(b)
b[0]=5
print(a)
print(b)
Related Posts
24 Apr 2024
»
Python - Bit NOT
23 Apr 2024
»
Python - Bit XOR
22 Apr 2024
»
Python - Bit OR