Answer to Question #306808 in Python for Kate

Question #306808

Create a mini quiz game program that asks the user three (3) questions,the starting score is 10 points.if the answer is incorrect 1 point is deducted from the score


1
Expert's answer
2022-03-06T04:49:33-0500
point = 0
print('The capital of Russia')
print('a) London')
print('b) Moscow')
print('c) Saint-Peterburg')
point = point + (10 if input() == 'b' else (-1))
print('The value of PI')
print('a) 2.67')
print('b) 4.12')
print('c) 3.14')
point = point + (10 if input() == 'c' else (-1))
print('Number of days in a year')
print('a) 123/124')
print('b) 234/235')
print('c) 365/366')
point = point + (10 if input() == 'c' else (-1))
print('Your score {}/30'.format(point))

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS