Question: Assignment 8-6: City Names: Write a function called city_country () that takes in the name of a city and its country. The function should return

Assignment 8-6:

City Names: Write a function called city_country() that takes in the name of a city and its country. The function should return a string formatted like this:

"Santiago, Chile

Call your function with at least three city-country pairs, and print the value thats returned.

------------------------------------------------------------

Assignment 8-7:

Album: Write a function called make_album() that builds a dictionary describing a music album.

The function should take in an artist name and an album title, and it should return a dictionary containing these two pieces of information.

Use the function to make three dictionaries representing different albums.

Print each return value to show that the dictionaries are storing the album information correctly.

------------------------------------------------------------

Assignment 8-8:

User Albums: Start with your program from Assignment 8-7.

Write a while loop that allows users to enter an albums artist and title.

Once you have that information, call make_album() with the users input and print the dictionary thats created.

Be sure to include a quit value in the while loop.

i need the correct python code fast please for all of them

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!