A Variable is a key and a value stored by Airflow, for settings you want to change without editing code: a threshold, a list of regions, a bucket name. Set them on Admin > Variables, with airflow variables set key value, or as an environment variable named AIRFLOW_VAR_<KEY>, which takes priority and never touches the database.
Read them inside a task:
from airflow.sdk import Variable
minimum = int(Variable.get("marigold_min_orders"))
Values are text, so convert numbers yourself. Variable.get("key", default="north") returns the default when the variable does not exist; without a default, a missing variable raises KeyError. For structured settings, store JSON and read it with deserialize_json=True.
Read variables inside tasks, not at the top of the Dag file: top-level code runs on every parse, and a missing variable there becomes an import error.
Variables from the terminal. The JSON one is read with deserialize_json=True.