Solved

Which of the Following Statements A), B) and C) Is

Question 8

Multiple Choice

Which of the following statements a) , b) and c) is false?


A) The following dictionary maps month-name strings to int values representing 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) 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')
D) All of the above statements are true.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents