From 2a87ab8fc32776551b2290e52f141d33172bd30b Mon Sep 17 00:00:00 2001 From: Khalid Samim <126877550+itkhld1@users.noreply.github.com> Date: Thu, 16 Mar 2023 16:45:32 +0300 Subject: [PATCH] Update main.py Small changes were made. --- day12/main.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/day12/main.py b/day12/main.py index af91730..ec4bd46 100644 --- a/day12/main.py +++ b/day12/main.py @@ -8,9 +8,13 @@ def guess_the_number(): print("Welcome to: ") print(logo) # print(f"The number is {guess_this}") - print("I'm thinking of a number between 1 and 100, try to guess it") - difficulty = input("Choose a difficulty. Type 'easy' or 'hard': ") + + difficulty = input("Choose a difficulty. Type 'easy', 'medium' or 'hard': ") + print("\nI'm thinking of a number between 1 and 100, try to guess it") + if difficulty == 'easy': + guesses = 15 + elif difficulty == 'medium': guesses = 10 elif difficulty == 'hard': guesses = 5