Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. secret_num = 20
  2. max_no__of_guess = 3
  3. guess_count = 0
  4.  
  5.  
  6.  
  7. while (guess_count < max_no__of_guess):
  8.  
  9. guess = int(input("Your guess: "))
  10.  
  11. if guess == secret_num:
  12. print("You are genius!!")
  13. break
  14.  
  15. else:
  16. guess_count += 1
  17. print("Try once more")
  18.  
  19. else:
  20. print("Sorry try next time.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement