If a is a dictionary with some key-value pairs, what does a.popitem() do?
Posted: Wed Jul 13, 2022 7:45 pm
a) Removes an arbitrary element
b) Removes all the key-value pairs
c) Removes the key-value pair for the key given as an argument
d) Invalid method for dictionary
b) Removes all the key-value pairs
c) Removes the key-value pair for the key given as an argument
d) Invalid method for dictionary