python print all variables in memory

Solutions on MaxInterview for python print all variables in memory by the best coders in the world

showing results for - "python print all variables in memory"
Giuseppe
18 Nov 2016
1# View names of all variables currently in memory
2# might need to run twice because the loop may add a varaible to memory
3
4for name in vars().keys():
5    print(name)