Skip to content

Instantly share code, notes, and snippets.

@Xotabu4
Created February 6, 2016 20:41
Show Gist options
  • Save Xotabu4/c141bfaa7a7da97ff71a to your computer and use it in GitHub Desktop.
Save Xotabu4/c141bfaa7a7da97ff71a to your computer and use it in GitHub Desktop.
x = input('type a number')
onumber = int(x)
results = [onumber]
counter = onumber
while counter != 0:
print(*results)
counter -= 1
results.append(counter)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment