Posts by Rafael Pardal • 11 points
1 post
-
1
votes3
answers1399
viewsA: Python Range - Numbers in descending order
A very easy way is to use the Python range function Try this function: def f(n): for i in range((n-1)*2, -1, -2): print(i) When using the function range(start, end, step), if you use a negative…
pythonanswered Rafael Pardal 11