[Simple] Maths Quiz
print("Welcome to the math QUiz") print("[To pass you need to score 4/6]") score = 0 quiz1 = input("[1] What is 3(2+1)+4(5+1) ") if quiz1 == "33": print("Correct") score = score + 1 else: print("Incorrect") print("Points:" ,score) quiz2 = input("[2] When x = 3 and p = 1 what 10(x+p): ") if quiz2 == "40": print("Correct") score = score + 1 else: print("Incorrect") print("Points:" ,score) quiz3 = input("[3] What is 6000000/3000000: ") if quiz3 == "2": print("Correct") score = score + 1 else: print("Incorrect") print("Points:" ,score) quiz4 = input("[4] When was srk born?(YEAR) ") if quiz4 == "1965": print("Correct") score = score + 1 else: print("Visakha dumb") print("Points:" ,score) if score == 4: print("You pass!") else: print(...
Comments
Post a Comment