Question: NOTE : Is learning Python programming (currently on chapter 9) with the following textbook: Book Starting Out With Python 3rd Edition by Gaddis

NOTE: Is learning "Python programming" (currently on chapter 9) with the following textbook:

Book "Starting Out With Python" 3rd Edition by Gaddis

 NOTE: Is learning "Python programming" (currently on chapter 9) with the

1. Write a program that creates a dictionary containing the U.S. states as keys and their capitals as values. (Use the Internet to get a list of the states and their capitals.) The program should then randomly quiz the user by displaying the name of a state and asking the user to enter that state's capital. The program should keep a count of the number of correct and incorrect responses. When the user enters nothing, the program should stop and display the number of correct and incorrect answers. /workspace/HW/ $ python number01.py What is the capital of Nevada? Carson City That's right! What is the capital of Indiana? Springfield That's wrong! What is the capital of Arkansas? Arkansas City That's wrong! What is the capital of Tennessee? You answered 1 correctly and 2 incorrectly

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!