q1 = """Which room is CSP in?
a. A101
b. A111
c. A115
d. D114"""
q2 = """Which teacher is the best teacher?
a. Mrs. Mansour
b. Mrs. Roberts
c. Mr. Yeung
d. I hate all teachers"""
q3 = """255+1534?
a. 1999
b. 1509
c. 1489
d. 1789"""

questions = {q1 : "a",q2 : "c",q3 : "d"}

name = input("Enter your name: ")
print("Hello",name, "welcome to the quiz world")
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)
Hello Dillon welcome to the quiz world
Which room is CSP in?
a. A101
b. A111
c. A115
d. D114
correct answer, you got 1 point
Which teacher is the best teacher?
a. Mrs. Mansour
b. Mrs. Roberts
c. Mr. Yeung
d. I hate all teachers
correct answer, you got 1 point
255+1534?
a. 1999
b. 1509
c. 1489
d. 1789
wrong answer, you lost 1 point
Final score is: 1