Код: Выделить всё
def reverse_count(n):
if n == 0:
return 0
elif n < 1:
return
print(n)
# Recursive call with n-1
reverse_count(n - 1)
# Call it starting from 1000
reverse_count(1000)
Подробнее здесь: https://stackoverflow.com/questions/795 ... -any-loops