I am trying to access environment variables using python and I don't know which function should I use os.getenv
or os.environ.get
?
Already referred : Difference between os.getenv and os.environ.get
I have enviroment variables like this and want to use them so which function mentioned above will be preferable?
USERNAME=johndoe
PASSWORD=johndoepass