Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- secret_num = 20
- max_no__of_guess = 3
- guess_count = 0
- while (guess_count < max_no__of_guess):
- guess = int(input("Your guess: "))
- if guess == secret_num:
- print("You are genius!!")
- break
- else:
- guess_count += 1
- print("Try once more")
- else:
- print("Sorry try next time.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement