I set an environment variable that I want to access in my Python application. How do I get its value?
import os for a in os.environ: print('Var: ', a, 'Value: ', os.getenv(a)) print("all done")
That will print all of the environment variables along with their values.