What does “del” do exactly?
Python is a garbage-collected language. If a value isn’t “reachable” from your code anymore, it will eventually get deleted. The del statement, as you saw, removes the binding of your variable. Variables aren’t values, they’re just names for values. If that variable was the only reference to the value anywhere, the value will eventually get … Read more