+ 1
Anyone know why I can't have a countdown?
numbers = list(range(11)) print(numbers) countdown = numbers.reverse() print(countdown)
5 Antworten
+ 4
n = list(range(11))
print(n[::-1])
+ 1
Gordie thanks, I don't quite understand why reverse works like that, but I made a copy of "numbers" and called it "countdown." Then I reversed "countdown."
0
Don't save it in countdown, just do numbers. reverse() and print (numbers)