This question has been asked quite a bit, and I've tried each solution I come across, but haven't had any success. I'm trying to print out every variable and its value using the following two lines.
for name, value in globals():
print(name, value)
This gives an error: Too many values to unpack
When I run:
for name in globals():
print(name)
I only get the names of the variables. Any help would be appreciated.