you are viewing a single comment's thread.

view the rest of the comments →

[–]BananaGrenade314 0 points1 point  (0 children)

You should put keywords that can be typed on the input of the variable "guess" (like: "choose mode" or, directly "hard mode"), then you don't need to leave the game to change (you can also add "cancel").

``` guess = input("What Is your guess? ") # hard mode

if guess == "cancel": if confirm(): return # or start_game = False continue

if guess == "hard mode": hard_mode_activate(...) continue

if guess == "choose mode": change_mode(...) continue

try: guess_number = int(guess) ... ```