Tuesday, November 19, 2019

reverse method in python



l1=[10, 30, 40, 50, 60, 70]
l1.reverse()
print(l1)

output:
[70, 60, 50, 40, 30, 10]

No comments:

Post a Comment

python class topic video