Description: A dictionary is a collection of key-value pairs.It comes with several built-in methods that allow you to manipulate and interact with the data effectively.
Step-by-Step Process
get(): Retrieve the value of a key, with an optional default if the key doesn’t exist.
keys(): Get all the keys in the dictionary.
values(): Get all the values in the dictionary.
items(): Get all key-value pairs as tuples.
update(): Add or update key-value pairs from another dictionary.
pop(): Remove a key and return its value.
popitem(): Remove and return the last key-value pair.