Created
July 4, 2012 01:02
-
-
Save cdlewis/3044463 to your computer and use it in GitHub Desktop.
An equivalent program in Python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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