Answer to Question #304485 in Python for Kate

Question #304485

Create a mini quiz game program that asks the user three question.The starting score is 10 points.If the answer is incorrect,1poing is deducted from the score

1
Expert's answer
2022-03-02T01:17:24-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