SyntaxFix
Write A Post
Hire A Developer
Questions
Check out the range documentation, you have to define a negative step:
range
>>> range(10, 0, -1) [10, 9, 8, 7, 6, 5, 4, 3, 2, 1]