Notebook Test
def question_and_answer(prompt):
print("Question: " + prompt)
msg = input("2")
print("Answer: " + msg)
question_and_answer("What is 1+1?")
def question_and_answer(prompt):
print("Question: " + prompt)
msg = input("4")
print("Answer: " + msg)
question_and_answer("What is 2+2")
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")