Create a program that contains a dictionary containing 20 countries as keys and their capitals as values. ( Use the Internet if needed) 4. The program is to randomly quiz the user by displaying a country's name and ask user to enter the country's capital.  5. The program is to verify user's entry , if correct , program is to congratulate user and display another countries name. Use sentinel to allow the user to exit the program if they choose to. 6.  The program should keep count of  the number of correct and incorrect responses and display results when user chooses to stop playing Python code

icon
Related questions
Question
 Create a program that contains a dictionary containing 20 countries as keys and their capitals as values. ( Use the Internet if needed)
4. The program is to randomly quiz the user by displaying a country's name and ask user to enter the country's capital. 
5. The program is to verify user's entry , if correct , program is to congratulate user and display another countries name. Use sentinel to allow the user to exit the program if they choose to.
6.  The program should keep count of  the number of correct and incorrect responses and display results when user chooses to stop playing
Python code
Expert Solution
steps

Step by step

Solved in 4 steps with 2 images

Blurred answer