<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def env_or_default(var, default=None):
 """Get environment variable or provide default. Args: var (str):
 environment variable to search for default (optional(str)):
 default to return """

    if var in os.environ:
        return os.environ[var]
    return default