5. Built-in Dictionary Methods
1. keys()
d = {"a":1, "b":2}
print(d.keys())Output: dict_keys(['a', 'b'])
2. values()
print(d.values())
3. items() (key–value pairs)
print(d.items())
4. get() (Safer than square brackets)
d.get("age")5. update()
d.update({"city": "Delhi"})6. pop(key) (Removes The Key-Value Pair)