Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #guess the number game
- count=0
- while(count<10):
- print("Enter Your Guessed Number ")
- n=int(input())
- if n==18:
- print("Congrats You guessed The Exact Number")
- break
- elif n<18:
- print("Your Number Is Smaller\n","Number Of Gusses Left is",9-count,"\n")
- elif n>18:
- print("Your Number Is Greater\n","Number Of Gusses Left is",9-count ,"\n")
- count=count+1
- if count==10:
- print("game over")
Add Comment
Please, Sign In to add comment