Instantiate a dictionary in which the keys are the months in the third quarter of the year and the values are the number of days in the corresponding month. Display the dictionary, the keys, and the values. Add the tenth month of the year to the dictionary and display the value of that month only.

What will be an ideal response?

>>> days = {'July': 31, 'August': 31, 'September': 30}
>>> days
{'September': 30, 'July': 31, 'August': 31}
>>> days.keys()
['September', 'July', 'August']
>>> days.values()
[30, 31, 31]
>>> days['October'] = 31
>>> days['October']
31

Computer Science & Information Technology

You might also like to view...

________ are small pictures representing commands, programs, and documents

A) Menus B) Buttons C) Clicks D) Icons

Computer Science & Information Technology

In the formula, =1+(2-3 )+5/6-6^2, what will Excel evaluate first?

A) 1+ B) (2-3 ) C) 5/6 D) 6^2

Computer Science & Information Technology