assign values to each.
2. Print all the keys of the dictionary using the appropriate dictionary method.
3. Print all the values of the dictionary using the appropriate dictionary method.
Right Answer:
# Step 1
car = {
"brand": "Toyota",
"model": "Corolla",
"color": "Blue",
"year": 2020
}
# Step 2
print(car.keys()) # Output: dict_keys(['brand', 'model', 'color', 'year'])
# Step 3
print(car.values()) # Output: dict_values(['Toyota', 'Corolla', 'Blue', 2020])