print environment variables windows python code example Example: print environment variables windows python import os print(os.environ)