You are on page 1of 2

import easygui

answer = easygui.enterbox("What's your name?")


score = 0

no1 = easygui.ynbox("colon is part that have the most gut in the body")
if no1 == True:
score = score + 10

no2 = easygui.ynbox("H is Hydrochloric")


if no2 == False:
score = score + 10

no3 = easygui.ynbox("ozone is in the stratosphere")


if no3 == True:
score = score + 10

no4 = easygui.enterbox("What is the capital city of Thailand?")


if no4 == "Bangkok":
score = score + 10

no5 = easygui.enterbox("What is Na stand for?")


if no5 == "Sodium":
score = score + 10

no6 = easygui.enterbox("What is H stand for?")


if no6 == "Hydrogen":
score = score + 10

no7 = "What is N stand for?"


title7 = "Qusetion 7"
choices7 = ["Nitrogrneous", "Nitrogen", "Nitron", ]
choice7 = easygui.choicebox(no7, title7, choices7)
if choice7 == "Nitrogen":
score = score + 10

no8 = "What is the meaning of bio-"


title8 = "Question 8"
choices8 = ["life", "animals", "cell"]
choice8 = easygui.choicebox(no8, title8, choices8)
if choice8 == "life":
score = score + 10

no9 = "what is the meaning of -logy"


title9 = "Question 9"
choices9 = ["learner", "study", "learning"]
choice9 = easygui.choicebox(no9, title9, choices9)
if choice9 == "study":
score = score + 10

no10 = "What is the meaning of pre-?"


title10 = "Question10"
choices10 = ["go", "after", "before"]
choice10 = easygui.choicebox(no10, title10, choices10)
if choice10 == "before":
score = score + 10

if score >= 90:


grade = "A"
elif score >= 80:
grade = "B"
elif score >= 70:
grade = "C"
elif score >= 60:
grade = "D"
else:
grade = "F"

easygui.msgbox("You got" + str(score) + "%" + "your grade will be" + grade)

You might also like