Question: ~Python~ Create a nested list called months. It will be a list with 6 lists within it. In each nested list will be the name

~Python~

  1. Create a nested list called months. It will be a list with 6 lists within it. In each nested list will be the name of a month as a string and then the number of days it has. Create this using the first 6 months. Now use a loop with range and len function to print the following string format on each iteration: "January has 31 days" .... (month name) has (month days) days.
  2. Create a dictionary called dog that hold the data below. Print it. Then print the value of the Breed key. The use the values in the dictionary to pint out the string: "The Corgi is expected to live about 13 years." Data: Breed = Corgi Age Exp. = 13 Type = Cattle herding

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!