Answered step by step
Verified Expert Solution
Question
1 Approved Answer
~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~
- 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.
- 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started