Inactive Tutor answered 02/02/23
seasons = {
"Fall": ["October", "November", "December"],
"Spring": ["March", "April", "May"],
"Summer": ["June", "July", "August"]
}
print(seasons["Fall"])
Bryce H.
asked 02/02/23in python:
Create a dictionary of the seasons Fall, Spring and Summer where the name of the season is the key and the value is a list of the months in that season. Print the value of "Fall".
Inactive Tutor answered 02/02/23
seasons = {
"Fall": ["October", "November", "December"],
"Spring": ["March", "April", "May"],
"Summer": ["June", "July", "August"]
}
print(seasons["Fall"])
Get a free answer to a quick problem.
Most questions answered within 4 hours.
Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.