Question: Write a code for only question 14.10 (Rewrite) no 11.40 code required. Write a code on python 3.9, please. 11.40 is posted in cased needed

Write a code for only question 14.10 (Rewrite) no 11.40 code required.Write a code for only question 14.10 (Rewrite) no 11.40 code required. Write a code on python 3.9, please. 11.40 is posted in cased needed for reference.

Write a code on python 3.9, please. 11.40 is posted in cased

14.10 (Guess the capitals) Rewrite Exercise 11.40 using a dictionary to store the pairs of states and capitals so that the questions are randomly displayed. 11.40 (Guess the capitals) Write a program that repeatedly prompts the user to enter a capital for a state. Upon receiving the user input, the program reports whether the answer is correct. Assume that 50 states and their capitals are stored in a two- dimensional list, as shown in Figure 11.13. The program prompts the user to answer all the states' capitals and displays the total correct count. The user's answer is not case sensitive. Implement the program using a list to represent the data in the following table. Alabama Alaska Arizona Montgomery Juneau Phoenix RE 11.13 A two-dimensional list stores states and their capitals. Here is a sample run: Enter What is the capital of Alabama? Montogomery The correct answer should be Montgomery What is the capital of Alaska? Juneau Your answer is correct What is the capital of Arizona? - Enter The correct count is 35

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!