python clear memory usage code example
Example 1: python clear memory
a = 10
print a
del a
print a ## throws an error here because it's been deleted already.
Example 2: python memory usage
import sys
variable = 30
print(sys.getsizeof(variable)) # 24