CBSE Class 11 Computer Science
Question 15 of 39
Tuples and Dictionary — Question 16
Back to all questionsThe correct method to retrieve all key-value pairs from a dictionary is items(), not item().
The corrected code is:
d1.items()The correct method to retrieve all key-value pairs from a dictionary is items(), not item().
The corrected code is:
d1.items()