python .key() code example
Example 1: keys in python
car = {
"brand": "Ford",
"model": "Mustang",
"year": 1964
}
# the keys are like variables in dictionary which saves a value
x = car.keys()
print(x)
Example 2: how to create a dictionary in python
thisdict = {
"key1" : "value1"
"key2" : "value2"
"key3" : "value3"
"key4" : "value4"
}