Updates the dictionary with key-value pairs from another dict or keywords.
Syntax
dict.update(other)Example
Enter values below to update the example in real time.
person→print→person = {"name": "Alice"}
person.update({"age": 30, "city": "Seoul"})
print(person)
# {'name': 'Alice', 'age': 30, 'city': 'Seoul'}