Will max( ) and min( ) always work for a dictionary ?
1 Like
No, max( ) and min( ) will not always work for a dictionary. They will only work with dictionaries having homogeneous keys that can be compared.
Answered By
2 Likes
How is pop( ) different from popitem( ) ?
Can you use sum( ) for calculating the sum of the values of a dictionary ?
If sorted( ) is applied on a dictionary, what does it return ?
What do you understand by shallow copy of a dictionary ?