Common Dictionary Operations
1. get()
data = {"name": "Laptop", "price": 999.99}
product_name = data.get("name", "Unknown")
product_rating = data.get("rating", "No rating")
print(product_name)
print(product_rating)
2. keys()
data = {"name": "Laptop", "price": 999.99}
keys = data.keys()
print(keys)