Home / Python Tips Generated By ChatGPT / Adding and Removing from Dictionaries in Python Modify dictionaries by adding or removing items. Source Code person["city"] = "New York" # Add a new key-value pair del person["age"] # Remove an item