Menu

[Solved]Python Project Project Name Use Programming Project Dictionaries Cp08dictionaries Stems Te Q37073053

python project

The project name that you should use for this programmingproject is Dictionaries.

CP08Dictionaries stems from the textbook, The Practice ofComputing Using Python, Third Edition by Punch & Enbody, page478, #16:

Write a program that creates a dictionary that maps states totheir capitals. You may start with an empty dictionary or adictionary with some entries. Ask the user to input the name of thestate and its capital and add them to the dictionary.

For example:

Capitals = {“New Hampshire”: “Concord”, Vermont”: “Montpelier”,”Massachusetts”: “Boston}

The Program prompts the user to enter at least 6 entries for thedictionary; enter Q, Q to quit entering contact information.

Once the dictionary is created, print the capitals inalphabetical order.

The program should then prompt the user to enter which key is tobe searched for in the dictionary and then prints out thatkey-value pair belonging to the dictionary.

Remember to include several appropriate comments throughout yourprogram. Your initial comment should include your name, date,class, and section, the name of your programming project, anexplanation of what your program does AND your algorithm (each stepof your program clearly listed). Print your results as a clear andinformative statement. Your output should also include anexplanation of what your program does for the user.

Expert Answer


Answer to python project The project name that you should use for this programming project is Dictionaries. CP08Dictionaries stems… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *