From a3ca46523d04f79c71a0587070a6c8fa75885bb4 Mon Sep 17 00:00:00 2001 From: Harry Sansoy Date: Thu, 20 Mar 2025 19:56:06 +0000 Subject: [PATCH] Harrys first commit! --- Animal-Guess/animalguess.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Animal-Guess/animalguess.py b/Animal-Guess/animalguess.py index 6dc3fe4..5d1c507 100644 --- a/Animal-Guess/animalguess.py +++ b/Animal-Guess/animalguess.py @@ -12,14 +12,18 @@ def check_guess(guess, answer): guess = input("Sorry Wrong Answer, try again") attempt = attempt + 1 if attempt == 3: - print("The Correct answer is ",answer ) - + print("The Correct answer is ", answer) + + score = 0 print("Guess the Animal") guess1 = input("Which bear lives at the North Pole? ") check_guess(guess1, "polar bear") guess2 = input("Which is the fastest land animal? ") -check_guess(guess2, "Cheetah") +check_guess(guess2, "cheetah") guess3 = input("Which is the larget animal? ") check_guess(guess3, "Blue Whale") -print("Your Score is "+ str(score)) +guess4 = input("Who is the G.O.A.T in football? ") +check_guess(guess4, "ronaldo") + +print("Your Score is " + str(score))