Skip to content

Instantly share code, notes, and snippets.

@cdlewis
Created July 4, 2012 01:02
Show Gist options
  • Save cdlewis/3044463 to your computer and use it in GitHub Desktop.
Save cdlewis/3044463 to your computer and use it in GitHub Desktop.
An equivalent program in Python
while( True ):
number = raw_input( "Enter any number you want!: " )
if number.isdigit():
print int( number ) + 5
else:
print "That's not a number, silly!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment