Skip to content

How to remove dictionary entry in Python?

thisdict = {
  "brand": "Ford",
  "model": "Mustang",
  "year": 1964
}
thisdict.pop("model")
See also  Python code snippet - How to sort values of pandas dataframe for iqr?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.