Functions & Methods in Dictionary
Functions & Methods:
- To count the total number of Key:Value pairs - len() function
- To access the items (Key:Value), keys, values - get(), items(), keys(), values() methods
- To create a dictionary using keys - fromkeys() method
- To update a dictionary - setdefault(), update() methods
- To delete items (key: values) - pop(), popitem(), clear() methods & del statement
- To sort the items of dictionary - sorted() function
- To find the Minimum, Maximum and Sum - min(), max(), sum() functions