, and report the total score when the quiz has finished. Example runs not shown. It's a creative exercise.   def main():points = 0states = int(input('How many states in the USA? '))if...

, and report the total score when the quiz has finished. Example runs not shown. It's a creative exercise.


def main():points = 0states = int(input('How many states in the USA? '))if states == 50:points +=1print('Correct. Good job!')else:print('Sorry, the answer is 50')

points = 0capital = input('What is the capital of England? ')if capital == "London":points+=1print('Correct. Well done.')else:print('Sorry, the answer is London .')

points = 0points = float(input('How many points does a pentagram have? '))if points == 10:points +=1print('Excellent.')else:print('Sorry, the answer is 10')

main()

My code. How do I display the total score for quiz?




May 18, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here