how to count backwards in for loop python

Solutions on MaxInterview for how to count backwards in for loop python by the best coders in the world

showing results for - "how to count backwards in for loop python"
Orion
10 Feb 2018
1    for i in range(len(item)-1, -1, -1):
2        print(item[i])
Leanna
15 Mar 2020
1# for i in range(start, end, step)
2for i in range(5, 0, -1):
3    print(i)
45
54
63
72
81
9
10    
Emmanuel
28 Oct 2018
1for i in range(10, -6, -2):
2    print(i)
3
similar questions
queries leading to this page
how to count backwards in for loop python