+ 1
How to use "list.reverse()"?
How does it works?
4 Antworten
+ 7
num= [1, 2, 3, 4, 5]
print(num)
num.reverse()
print(num)
+ 3
Thanks!
+ 2
my_list = [1,2,3,4,5]
print (my_list.reverse ())
[5,4,3,2,1]
+ 2
Thank you! So I can use everything instead of "list"?