What is it?
statement to delete
- item in an object
del target["go"]
del target[0] # better to use pop() in the case of needing return value
del target[:] # better to use target.clear() explicitly
- binding of a name from the local or global namespace
del target
- attribute
del target.go
 
![Cover image for [Python] del statement](https://media2.dev.to/dynamic/image/width=1000,height=420,fit=cover,gravity=auto,format=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fv3sikkjmgxbbphccaya8.png) 
               
    
Top comments (0)