Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save peroon/96bc9ea07a79cdecbab15ab16113cc6f to your computer and use it in GitHub Desktop.
Save peroon/96bc9ea07a79cdecbab15ab16113cc6f to your computer and use it in GitHub Desktop.
for s in iter(input, "0"):
print(s)
# Input
# 123
# 55
# 1000
# 0
# Output
# 123
# 55
# 1000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment