Sunteți pe pagina 1din 2

import easygui

name = easygui.enterbox("What is your name")

score = 0

Q1 = easygui.ynbox("Is Baekhyun a member of exo?")


if Q1 == True:
score = score + 10

Q2 = easygui.ynbox("Is Baekhyun a boy?")


if Q2 == True:
score = score + 10

Q3 = easygui.ynbox("Is Mongryung a human?")


if Q3 == False:
score = score +10

Q4 = easygui.enterbox("What is Baekhyun's last name?")


if Q4 == "Byun":
score = score +10

Q5 = easygui.enterbox("What is name of Baekhyun's brother?")


if Q5 == "Baekbom":
score = score + 10

Q6 = easygui.enterbox("Who is Baekhyun's (ex)girlfriend?")


if Q6 == "Taeyeon":
score = score + 10

Q7 = "What is Baekhyun's favorite brand?"


msg = Q7
choices7 = ["Adidas" , "Nike" , "Boy London" , "Supreme"]
title7 = "Question7"
ans7 = easygui.choicebox(Q7, msg, choices7)
if ans7 == "Supreme":
score = score + 10

Q8 = "What is Baekhyun's song? "


msg = Q8
choices8 = ["Fine" , "Dream" , "little star" , "Cameo"]
title8 = "Question8"
ans8 = easygui.choicebox(Q8, msg, choices8)
if ans8 == "Dream":
score = score +10

Q9 = "What is breed of Baekhyun's dog?"


msg = Q9
choices9 = ["Corgi" , "Beagle" , "Poodle" , "Pug"]
title9 = "Question9"
ans9 = easygui.choicebox(Q9, msg, choices9)
if ans9 == "Corgi":
score = score + 10

Q10 = "Who is close friend of Beakhyun?"


msg = Q10
choices10 = ["L" , "Daehyun" , "Subin" , "Chen"]
title10 = "Question10"
ans10 = easygui.choicebox(Q10, msg, choices10)
if ans10 == "Chen":
score = score + 10

if grade >= 100:


easygui.msgbox("A+")
elif grade>= 90:
easygui.msgbox("A")
elif grade>= 85:
easygui.msgbox("B+")
elif grade >= 80:
easygui.msgbox("B")
elif grade >= 75:
easygui.msgbox("C+")
elif grade >= 70:
easygui.msgbox("C")
elif grade >= 65:
easygui.msgbox("D+")
elif grade >= 60:
easygui.msgbox("D")
elif grade >= 59:
easygui.msgbox("F")

easygui.msgbox(name + " got" + " " + str(score) + "%")


easygui.msgbox("Your grade is " + str(grade))

S-ar putea să vă placă și