# -*- coding: utf-8 -*- """ Created on Mon Aug 17 09:17:41 2026 @author: ko24009 """ def gk_quiz(): score=0 user_answer = input("\nwhat is the capital of New Zealand?\n"). lower() if (user_answer == "wellington"): print ("That is correct!") score=score+1 else: print("incorrect") #question 1 user_answer = input("\nWhat are the 3 primary colors?\n").lower() # . lower makes lower case leter if (user_answer=="red blue yellow" or user_answer=="blue red yellow" or user_answer=="yellow red blue" or user_answer=="yellow blue red" or user_answer=="blue yellow red" or user_answer=="red yellow blue"): print ("That is correct!") score=score+1# adds a point for every question answerd correctly else: print("incorrect")#if user gets the question worng it will print incorrect #question 2 user_answer = input("\nWhat is the largest living mammal?\n").lower() if (user_answer == "blue whale"): print ("That is correct!") score=score+1 else: print("incorrect") #question 3 user_answer = input("\nWho was the first man on the moon?\n").lower() if (user_answer == "neil armstrong"): print ("That is correct!") score=score+1 else: print("incorrect") #question 4 user_answer = input("\nwhat is the planet in our solor system nicknamed the red planet?\n").lower() if (user_answer == "mars"): print ("That is correct!") score=score+1 else: print("incorrect") #question 5 user_answer = input("\nWhat year did the titanic sink?\n") if (user_answer == "1912"): print ("That is correct!") score=score+1 else: print("incorrect") #question 6 user_answer = input("\nWhat is the largest desert in the world?\n").lower() if (user_answer == "antarctica"): print ("that is correct!") score=score+1 else: print("incorrect") #question 7 user_answer = input("\nWhat is the largest organ in the human body?\n").lower() if (user_answer == "skin"): print ("That is correct!") score=score+1 else: print("incorrect") #question 8 user_answer = input("\nWhat is the smallest country in the world by population and land area?\n").lower() if (user_answer == "vatican city"): print ("That is correct!") score=score+1 else: print("incorrect") #question 9 user_answer = input("\nWhat chemical element is labeled “AU” on the periodic table?\n").lower() if (user_answer == "gold"): print ("That is correct!") score=score+1 else: print("incorrect") #question 10 print("score = "+str(score)+"/10") if(score==10): print("you got them all right!") else: print("nice job, play again?") gk_quiz()