Which of the following statements is false?
a. The following dictionary maps month-name strings to int values represent-ing the numbers of days in the corresponding month:
days_per_month = {'January': 31, 'February': 28, 'March': 31}
b. Multiple keys in a dictionary can have the same value.
c. Dictionaries are unordered.
d. The following for statement iterates through dictionary days_per_month’s key–value pairs. Dictionary method items returns each key–value pair as a tuple, which is unpacked into the target variables month and days:
for month, days in days_per_month.items():
print(f'{month} has {days} days')
b. Multiple keys in a dictionary can have the same value.
You might also like to view...
Discuss the use of colors from Illustrator in InDesign.
What will be an ideal response?
Describe how to create a circle using CSS, including 3 properties required to do so and their values.
What will be an ideal response?