Iteration reverse in for loop

You can use

for i in 10:-1:1

Note that the range includes the bounds

6 Likes