From 8fc1adf875d80c4003c69bebdc53e48b8b047ff2 Mon Sep 17 00:00:00 2001 From: XXXDark303 <107308203+XXXDark303@users.noreply.github.com> Date: Tue, 19 May 2026 19:58:49 +0200 Subject: [PATCH 1/2] Updated file --- Other Programs/Countries.py | 76 +++++++++++++++++++++++++++++++------ 1 file changed, 65 insertions(+), 11 deletions(-) diff --git a/Other Programs/Countries.py b/Other Programs/Countries.py index f2cfa2bf..18bb023d 100644 --- a/Other Programs/Countries.py +++ b/Other Programs/Countries.py @@ -1,4 +1,36 @@ -country = "Spain" +import random +import time +randomcountry = random.randint(1,10) +wrongguesses = 0 +if randomcountry == 1: + country = "Spain" + +if randomcountry == 2: + country = "US" + +if randomcountry == 3: + country = "UK" + +if randomcountry == 4: + country = "Poland" + +if randomcountry == 5: + country = "France" + +if randomcountry == 6: + country = "Australia" + +if randomcountry == 7: + country = "Italy" + +if randomcountry == 8: + country = "Portugal" + +if randomcountry == 9: + country = "Finland" + +if randomcountry == 10: + country = "Scotland" print("In this program you will need to guess the country I am thinking of") print("I am thinking of a country between London and Japan") @@ -6,15 +38,37 @@ while True: guess = input("Enter your guess: ") - if guess == "UK": - print("That's not right :(") - - elif guess == "Poland": - print("That's not right :(") + if guess.lower() != country.lower(): + randomphrases = random.randint(1,5) + wrongguesses = wrongguesses + 1 + if randomphrases == 1: + print("Interesting guess, but not quite!") + if randomphrases == 2: + print("That's not right :(") + if randomphrases == 3: + print("Nice guess, but it's not this one.") + if randomphrases == 4: + print("Nah") + if randomphrases == 5: + print("Wrong guess") + if guess.lower() == country.lower(): + wonrandomphrases = random.randint(1,5) + if wrongguesses > 5: + print("It's not that one you noob") + time.sleep(2) + print("Nah just kidding you got it right") + input() - elif guess == "Spain": - print("Your guess is correct!!") - break + if wonrandomphrases == 1: + print("You won!") + input() + if wonrandomphrases == 2: + print("Congratulations, you guessed it right") + input() + + if wonrandomphrases == 4: + print("GGs, you guessed it right") + input() + - else: - print("Interesting guess, but not quite!") + From b00390d4028c699fabbf9d4d3c9db7e214488e59 Mon Sep 17 00:00:00 2001 From: XXXDark303 <107308203+XXXDark303@users.noreply.github.com> Date: Wed, 20 May 2026 08:22:15 +0200 Subject: [PATCH 2/2] Update Countries.py --- Other Programs/Countries.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Other Programs/Countries.py b/Other Programs/Countries.py index 18bb023d..9467aa2d 100644 --- a/Other Programs/Countries.py +++ b/Other Programs/Countries.py @@ -52,7 +52,7 @@ if randomphrases == 5: print("Wrong guess") if guess.lower() == country.lower(): - wonrandomphrases = random.randint(1,5) + wonrandomphrases = random.randint(1,4) if wrongguesses > 5: print("It's not that one you noob") time.sleep(2)