Page 1 of 1

If a is a dictionary with some key-value pairs, what does a.popitem() do?

Posted: Wed Jul 13, 2022 7:45 pm
by answerhappygod
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