Or perhaps you've seen code like this somewhere? import os api_key = os.environ.get("API_KEY") You might have thought, "Why don't they just write this directly?" and ...