Created
December 17, 2016 07:46
-
-
Save arjun921/752c55632d9094dfe5e22c9b56d8ddf9 to your computer and use it in GitHub Desktop.
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
import random | |
a = random.randint(1,9) | |
b = int(input("Enter your guess(Numbers between 1-9)")) | |
print("your guess was too high :/ Try again Next time" if b>a else "your guess was perfect" if b==a else "Your guess was too low :/ Try again Next Time") | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment