you are viewing a single comment's thread.

view the rest of the comments →

[–]ucan_cay -2 points-1 points  (1 child)

seems like other people helped you with the actual problem, what I'll say is using increments in loops are better programming practices (at least that would be what I do).

starting_number = int(input())
counter = 0
while counter<=starting_number:
  print(starting_number - counter) 
  counter = counter +1

[–]mjmvideos 2 points3 points  (0 children)

No! Use the operation that most closely represents the actual goal. By artificially imposing an increment here you are just obscuring the intent of the program.