Skip to content

Instantly share code, notes, and snippets.

@ebovio
Created May 2, 2017 00:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ebovio/23feedc57af632ed33a9cc6d830bb6ed to your computer and use it in GitHub Desktop.
Save ebovio/23feedc57af632ed33a9cc6d830bb6ed to your computer and use it in GitHub Desktop.
while True:
x = int(input("Please enter a non-negative integer:"))
if x > 0:
break
print(x)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment