0
how this command is used ? list.reverse()
need a short code to understand
2 ответов
+ 4
Try running this code
list = [ 1, 3 , 6]
print (list)
list.reverse()
print (list)
+ 1
list = [1,2,3,4,5]
list.reverse()
print("Reversed list" ,list)
need a short code to understand