How to access environment variable values

Environment variables are accessed through os.environ Or you can see a list of all the environment variables using: As sometimes you might need to see a complete list! The Python default installation location on Windows is C:\Python. If you want to find out while running python you can do: