9951 explained code solutions for 126 technologies


pythonHow to set environment variables


import os
os.environ['SOMEVAR'] = 'someval'ctrl + c
import os

we need this module to set or get environment variables

SOMEVAR

name of the environment variable to set

someval

value to assign