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