Is there a way of using the range() function with stride -1?
E.g. using range(10, -10) instead of the square-bracketed values below?
You may notice that the range function works only in ascending order without the third parameter. If you use without the third parameter in the range block, it will not work.
for i in range(10,-10)
The above loop will not work. For the above loop to work, you have to use the third parameter as negative number.
for i in range(10,-10,-1)