Python | os. getenv() method - GeeksforGeeks In this example Python OS module uses to get the value of the 'home' environment variable It assigns the value to the variable `value` and prints it, defaulting to "value does not exist" if the variable is not present