Skip to content

Instantly share code, notes, and snippets.

@arjun921
Created December 17, 2016 07:46
Show Gist options
  • Save arjun921/752c55632d9094dfe5e22c9b56d8ddf9 to your computer and use it in GitHub Desktop.
Save arjun921/752c55632d9094dfe5e22c9b56d8ddf9 to your computer and use it in GitHub Desktop.
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