environment variables in python 3 code example Example: python create environment variable import os os.environ['variable_name'] = 'variable_value'