PCEA Practice Questions - OpenEDG PCEA - Certified Entry-Level Automation Engineer With Python Exam

Question Number 5


How do you set an environment variable in Python and read it back?
✔ Correct Answer:
os.environ['KEY'] = 'value'; os.environ.get('KEY')