How do I clear all variables in the middle of a Python script?


I am looking for something similar to "clear" in Matlab: A command/function which removes all variables from the workspace, releasing them from system memory. Is there such a thing in Python?

EDIT: I want to write a script which at some point clears all the variables.

Get Solution for free from DataCamp guru