Question: Python language. A simple quiz A file will consist of a series of questions and answers, something like this: This will ask for the capitals




Python language.
A simple quiz A file will consist of a series of questions and answers, something like this: This will ask for the capitals of several countries. What is the capital of France?, Paris What is the capital of Egypt?,Cairo The program will read the contents of the file and then quiz the user: What is the name of the question file? capitals This will ask for the capitals of several countries What is the capital of Japan? Tokyo Correct! What is the capital of Peru? Lima Correct! What is the capital of Assyria? I don't know that! Incorrect! The answer is Nineveh You got 2 answers correct out of 3, which is 67% At least 10 questions should be asked out of a question bank of at least 15. Questions should be chosen at random from the collection, without repeating
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
