Source Code:
(back to article)
person = {"name": "John", "age": 32, "city": "New York"} print(person["name"]) # Dictionary add person["country"] = "United States" print(person) # Dictionary remove del person["city"] print(person)
Result:
Report an issue