List Quiz
q1 = """What Formula 1 team has participated every single year?
a. Mercedez
b. Ferrari
c. Mclaren"""
q2 = """What is the highest number of drivers championships?
a. 4
b. 7
c. 8"""
q3 = """When was the first race held?
a. 1964
b. 1988
c. 1946
d. 1789"""
questions = {q1 : "b",q2 : "b",q3 : "c"}
name = input("Enter your name: ")
print("Hello",name, "welcome to the quiz")
score=0
for i in questions:
print(i)
ans = input("enter the answer(a/b/c/d) : ")
if ans==questions[i]:
print("correct answer, you got 1 point")
score = score+1
else:
print("wrong answer, you lost 1 point")
score=score-1
print("Final score is:", score)