Environment variables are key-value pairs that are defined in your shell environment outside of the Python executable. You can access them in Python with the
os.environ mapping object.
Environment variables are really useful for passing secret information or other configurations that you don't want to pass as command line arguments. A good use case for example is a containerized application running in Docker or Kubernetes where you can configure the application using environment variables.