Created
July 22, 2013 16:41
-
-
Save avinash2/6055407 to your computer and use it in GitHub Desktop.
Simple game with 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
#!usr/bin/env python | |
secret = 101 | |
guess = input('Guess the correct number: ') | |
print 'You have entered: ', guess | |
if guess < secret : | |
print 'Your guess is lower than the expected number. Try again?' | |
if guess == secret : | |
print 'Congratulations! Your guess is correct.' | |
if guess > secret : | |
print 'Your guess is higher than the expected number. Try again?' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment