Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3
The `del` keyword is used to delete a variable from memory. It often has no use case, because Python has built-in garbage collection. The only times I found myself using it was when messing around on IDLE's interactive shell and wanted to manually get rid of some data.
20th May 2019, 10:26 PM
Eduardo Petry
Eduardo Petry - avatar