This must be a duplicate but i couldn't find it...
I know there's a nifty way to tell how much time my program took:
import time
t0 = time.time()
program
print(time.time()-t0)
Is there a similar simple thing i can do to see how much space was used?