menu
We can delete a property from an object in python with `.pop('property_name', None)` to avoid errors if the object does not exist.
image.png 81.1 KB

Source: https://www.javatpoint.com/difference-between-del-and-pop-in-python#:~:text=In%20Python%2C%20%22del%22%20can,removes%20an%20object%20from%20memory