Quantcast

Have a Question?

If you have any question you can ask below or enter what you are looking for!

How do I set an environment variable in Python?

To set and get environment variables in Python you can just use the os module: import os # Set environment variables os. environ[‘API_USER’] = ‘username’ os. environ[‘API_PASSWORD’] = ‘secret’ # Get environment variables USER = os.

techfaq.online