delEasy Playground

Deletes a variable, list item, dictionary entry, or object attribute

Python Playground
Output
Click "Run" to execute your code

del removes a name binding, list element, dict key, or attribute. It does not directly free memory — that's handled by garbage collection.

Challenge

Try modifying the code above to explore different behaviors. Can you extend the example to handle a new use case?