Homework #5
Description
Unformatted Attachment Preview
Homework #5
You are to create a program that has the following characteristics/functions:
1.
2.
3.
4.
Ask the user for their first name
Ask the user for a list of places they want to visit using aa while loop
The user can store up to 10 places they want to visit(but no more)
Store the results into a dictionary with the users name as the key and a LIST of the places they
want to visit as the value
5. The first letter of the names should be Capitalized and the rest in small letters when stored, no
matter how the user enters them.
6. The output should list the user on one line and give an indented numbered list of the places
they want to visit after all of the names are entered. Each place on its own line starting with the
number 1. (see below)
7. Your code should be commented as needed.
Sample output
Fred
1. Spain
2. London
3. Pittsburgh
Barney
1. France
2. Dubai
3. Japan
HINT:
Use a while loop to enter the names and a 2nd while loop embedded inside of that to enter the palces.
Do the printing after they fall out of the While loops.
Purchase answer to see full
attachment
Have a similar assignment? "Place an order for your assignment and have exceptional work written by our team of experts, guaranteeing you A results."