Submit a python codefile for the followingproblem : Pets: Make several dictionaries - where the name of each dictionary is thename of a pet.
View the step-by-step solution to:


Submit a python code file for the following problem :


Make several dictionaries - where the

name of each dictionary is the name of a pet. 

In each dictionary, include the kind of animal and the owner's name. 

Store these dictionaries in a list called pets.

Next, loop through your list and as you do, print everything you know about each pet by using connecting phrases rather than just key/value.

if stored data is :

fido = {'type':'dog', 'owner':'John Doe', 'breed':'dalmatian'}

polly = {'type':'bird', 'owner':'Aunt Doe', 'breed':'parrot'}

pets = [fido, polly,....]

output will be :

Fido is a dog of the breed Dalmatian. He is a pet of John Doe.

Polly is a.....

Top Answer

Sign up to view the full answer

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.


Educational Resources
  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question