Professional Documents
Culture Documents
#intro
j.msgbox("Welcome to the ultimate celebrities quiz!", title= "Celebrities Quiz")
name = j.enterbox("Enter your name to start the quiz")
j.msgbox("This quiz have 3 yes/no questions, 2 short answers and 5 multiple choi
ces")
j.msgbox("The quiz is starting now, good luck!!")
score = 0
#yes/no question
yn1 = j.ynbox("Kendall Jenner was one of Justin Bieber's ex", title="Celebrities
Quiz")
if yn1 == False:
score = score + 10
j.msgbox("Correct!")
else:
j.msgbox("Wrong!")
yn2 = j.ynbox("Shawn Mendes is Canadian", title="Celebrities Quiz")
if yn2 == True:
score = score + 10
j.msgbox("Correct!")
else:
j.msgbox("Wrong!")
yn3 = j.ynbox("Ariana Grande almost got pressed on charges after licking donuts"
, title="Celebrities Quiz")
if yn3 == True:
score = score + 10
j.msgbox("Correct!")
else:
j.msgbox("Wrong!")
#short answer
short1 = j.enterbox("Who left the Fifth Harmony?", title="Guess That Celeb")
if short1 == "camila cabello":
score = score + 10
j.msgbox("Correct!")
else:
j.msgbox("Wrong!")