Answered step by step
Verified Expert Solution
Link Copied!

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~

  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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases A Beginners Guide

Authors: Andy Oppel

1st Edition

007160846X, 978-0071608466

More Books

Students also viewed these Databases questions