Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a Python program that quizzes a player/user to identify the capital of each country in South America. Your program will list the name of

Write a Python program that quizzes a player/user to identify the capital of each country in South America. Your program will list the name of each country, ask the user to enter the name of its capital and then compare their answer given to the correct capital city. Provide correct or incorrect feedback and score 1 point for every correct answer. At the end of the quiz report their score, percent correct and the (sorted alphabetically) list of the countries with their capital cities.

You should create a text list of the 13 countries of South America with their capitals (1 per line). Read the text file into a dictionary that uses the country name as the key and the capital as the value.

Country Capital
Argentina Buenos Aires
Bolivia La Paz & Sucre
Brazil Braslia
Chile Santiago
Colombia Bogot
Ecuador Quito
Guyana Georgetown
Paraguay Asuncin
Peru Lima
Suriname Paramaribo
Uruguay Montevideo
Venezuela Caracas

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Pro Database Migration To Azure Data Modernization For The Enterprise

Authors: Kevin Kline, Denis McDowell, Dustin Dorsey, Matt Gordon

1st Edition

1484282299, 978-1484282298

More Books

Students also viewed these Databases questions

Question

5. Identify three characteristics of the dialectical approach.

Answered: 1 week ago

Question

6. Explain the strengths of a dialectical approach.

Answered: 1 week ago

Question

4. Explain the strengths and weaknesses of each approach.

Answered: 1 week ago