person = {
"name": "Alice",
"age": 30,
"city": "New York"
}
print(person) # Output: {'name': 'Alice', 'age': 30, 'city': 'New York'}
{'name': 'Alice', 'age': 30, 'city': 'New York'}
get()
MethodNone
if the key doesn’t exist.keys()
Methodfor
loop to access keys or both keys and values.Seminar: LLM, WiSe 2024/25