Is there a way to delete created variables, functions, etc from the memory of the interpreter?
I've been searching for the accurate answer to this question for a couple of days now but haven't got anything good. I'm not a complete beginner in programming, but not yet even on the intermediate level. When I'm in the shell of Python, I type: dir() and I can see all the names of all the objects in the current scope (main block), there are 6 of them: ['__builtins__', '__doc__', '__loader__', '__name__', '__package__', '__spec__'] Then, when I'm declaring a variable, for example x = 10 , it automatically adds to that lists of objects under built-in module dir() , and when I type dir() again,