Skip to content

Instantly share code, notes, and snippets.

@Xotabu4
Last active February 7, 2016 08:33
Show Gist options
  • Select an option

  • Save Xotabu4/04fccb163496904913cf to your computer and use it in GitHub Desktop.

Select an option

Save Xotabu4/04fccb163496904913cf to your computer and use it in GitHub Desktop.
x = int(input('Enter number'))
result = str(x)
i = x
while i != 0:
if i !=x:
result = result + ' ' + str(i)
print(result)
i -= 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment