apple = 0
banana = 0
orange = 0
eaaaaa = 0
total = 0
print("Welcome to the group quiz!")
print("answer each question by entering 1 - 4. \n")
#question 1
print("What size do you like your objects?")
print("1) BIG")
print("2) MEDIUM")
print("3) SMALL")
print("4) CHUNGUS")
answer = int(input("Your answer (1 - 4): "))
if answer == 1:
#print(" 10 pts to Apple group! \n")
apple = apple + 1
orange = orange + 1
elif answer == 2:
#print(" 10 pts to Orange group! \n")
apple = apple + 1
orange = orange + 1
elif answer == 3:
#print(" 10 pts to Banana group! \n")
banana = banana + 1
elif answer == 4:
#print(" 10 pts to EAAAAA group! \n")
eaaaaa = eaaaaa + 1
else:
print(" Not a valid choice!!")
#question 2
print("2.What is 5 x 5?")
print("1) 25")
print("2) 52")
print("3) 0")
#QUESTION 2
answer = int(input("Your answer (1-3):"))
if answer == 1:
print("Correct!\n")
apple += 1
orange += 1
banana += 1
elif answer == 2:
eaaaaa += 1
else:
print(f"I'm not going to question you about this\n")
#Question 3
print("3. Which is your favorite color?")
print("1.apple")
print("2.orange")
print("3.green")
print("4.blue")
print("5.clear")
answer = int(input("Your answer (1-5):"))
if answer == 1:
apple += 5
elif answer == 2:
orange += 5
elif answer == 3:
banana += 5
elif answer == 4:
apple -= 1
banana -= 1
orange -= 1
eaaaaa += 1
elif answer == 5:
eaaaaa += 5
#question three
else:
print("bro be smacking.")
#question 4
print("Which modern day Disney character fits your personality?\n")
print ("1Mickey Mouse")
print ("2 Donald Duck")
print ("3 Pluto")
print ("4 Anabell")
print ("5 Goofy")
answer = int(input(/n"Pick between 1 - 5 :"))
if answer == 1:
apple = apple +1
orange = orange +1
elif answer == 2:
banana = banana +1
elif answer == 3:
banana = banana +1
elif answer == 4:
apple = apple -3
orange = orange -3
banana = banana -3
eaaaaa = eaaaaa -1
else:
eaaaaa = eaaaaa +7
print ("I see the meem is deep within you.")
# more bonus
total = apple + orange + banana + eaaaaa
print("\n==== Total Scores ====")
print(f"\nApple: {apple} points")
print(f"\nEaaaaa: {eaaaaa} points")
print(f"\nBanana: {banana} points")
print(f"\nOrange: {orange} points")
print(f"\n")
#bonus if
if apple >= banana and apple >= orange and apple >= banana and apple >= eaaaaa:
print ('The apple!')
elif banana >= orange and banana >= eaaaaa:
print ('The banana!')
elif orange >= eaaaaa:
print('The orange!')
else:
print ('\neaaaaa sports, its in the game!')
print (f"\nYour score {eaaaaa}")
print ("\nMuch cringe bro.")
print(f"Your final score: {total}/4")
tries = 0
guess = 0
while guess != 6 and tries < 5:
elif == 6:
print('You guessed it right bro!')
def run_pin_guessing_game():
pin = "0077"
tries = 0
guessed_numbers = []
guess = ""
while pin != guess and tries < 3:
try:
print("\nPast guesses", guessed_numbers)
guess = int(input('Please enter you ATM PIN number: '))
if guess in guessed_numbers:
print("You already tried that number! try again.")
continue
guessed_numbers.append(tries)
print('Clue: What do you call two twins?')
tries += 1
remaining_attempts = 3 - tries
if guess != pin and tries < 3:
print (f"Keep guessing {remaining_attempts} attempts left.")
except ValueError:
print("Please enter a valid number!\n")
if guess == pin:
print("Pin Number accepted!")
else:
print(f"\nYou have enter your pin {tries}! Please try later.")
def run_number_guessing_game():
print("\n---- New Game Unlocked ----")
secret_pin = 12345
tries = 0
while tries < 7:
try:
guess = int(input("Guess the pin, its 5 digits: "))
tries += 1
if guess == secret_pin:
print("correct! You win!")
else:
print("Wrong! Try again." if tries < 7 else f"Out of tries! A tip: it starts with a 1 and ends with a 5.")
except ValueError:
print("Please enter a valid number.")