Wednesday, November 20, 2019

copy method in python

a1=[20,5,16,10,8]
y=a1.copy()
print(a1)
print(y)

output:
[20, 5, 16, 10, 8]
[20, 5, 16, 10, 8]

No comments:

Post a Comment

python class topic video