You are on page 1of 2

import easygui as j

#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!")

short2 = j.enterbox("Who is Kylie Jenner current boyfriend?", title="Guess That


Celeb")
if short2 == "tyga":
score = score + 10
j.msgbox("Correct!")
else:
j.msgbox("Wrong!")
short3 = j.enterbox("Who trip at the Oscars award twice?", title="Guess That Cel
eb")
if short3 == "jennifer lawrence":
score = score + 10
j.msgbox("Correct!")
else:
j.msgbox("Wrong!")
#multiplechoice
msg ="Everyday"
title = "Who Sing That Song?"
choices = ["Ariana Grande", "Justin Bieber", "Julia Michaels", "Fifth Harmony"]
choice1 = j.choicebox(msg, title, choices)
if choice1 == "Ariana Grande":
score = score + 10
j.msgbox("Correct!")
else:
j.msgbox("Wrong!")
msg2 = "Touch"
choices2 = ["Rihanna", "Fifth Harmony", "Selena Gomez", "Little Mix"]
choice2 = j.choicebox(msg2, title, choices2)
if choice2 == "Little Mix":
score = score + 10
j.msgbox("Correct!")
else:
j.msgbox("Wrong!")
msg3 = "Bad and Bougee"
choices3 = ["Drake", "Future", "Migos", "Big Sean"]
choice3 = j.choicebox(msg3, title, choices3)
if choice3 == "Migos":
score = score + 10
j.msgbox("Correct!")
else:
j.msgbox("Wrong!")
msg4 = "Something Just Like This"
choices4 = ["The Chainsmokers", "Cold Play", "Selene Gomez", "The Weeknd"]
choice4 = j.choicebox(msg4, title, choices4)
if choice4 == "Cold Play":
score = score + 10
j.msgbox("Correct!")
else:
j.msgbox("Wrong!")
#grading
if score >= 90:
letter = "A. Amazing job!"
elif score >= 80:
letter = "B. Good job!"
elif score >= 70:
letter = "C. Fine."
elif score >= 60:
letter = "D. Almost good."
else:
letter = "F. You've failed me"
#using ccbox
end = j.ccbox("Congrats, you're done. Press continue to see your score!")
#ending
endmsg = str(name) + "! You got " + str(score) + " out of 100. You got " + str(s
core) + "% which is grade " + letter
if end == True:
j.msgbox(endmsg)

You might also like