def question_and_answer(prompt):
    print("Question: " + prompt)
    msg = input("2")
    print("Answer: " + msg)

question_and_answer("What is 1+1?")
Question: What is 1+1?
Answer: 2
def question_and_answer(prompt):
    print("Question: " + prompt)
    msg = input("4")
    print("Answer: " + msg)

question_and_answer("What is 2+2")
Question: What is 2+2
Answer: 4
q1 = """Is the sky blue
a. Yes
b. No"""

q2 = """1+1
a. 2
b. 3
"""

questions = {q1:"a",q2:"a"}

name = input("enter your name:")
print("Hello", name)

score = 0

for i in questions:
    print(i)
    ans = input("enter the answer: (a/b):")
    if ans==questions[i]:
        print("correct")
        score=score+1
        print(score,"point")
    else:
        print("wrong")
Hello Finn
Is the sky blue
a. Yes
b. No
correct
1 point
1+1
a. 2
b. 3

correct
2 point