python print all variables in memory

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

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
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)