Skip to content

Glossary: Coding with AI Assistants

Environment variable

Also written: environment variables, os.environ, os.environ.get()

A named value your terminal hands to every program it starts, used to keep secrets like SHIP_API_KEY out of code. Python reads it with `os.environ.get()`, which returns `None` if it isn't set.

Where the book teaches it

Related terms

SecretAPI key.gitignore