information of environment variables in python 1

information of environment variables in python

import os
print(os.environ)

Here is what the above code is Doing:
1. We import the os module.
2. We print the os.environ variable.

The os.environ variable is a dictionary that contains the environment variables of the current process.

The os.environ variable is a dictionary that contains the environment variables of the current process.

Similar Posts