def scalar(value):
    if isinstance(value, (list, tuple)) and len(value) == 1:
        return value[0]
    return value
Return an equivalent Range in the opposite order.
dataset/ETHPy150Open ContinuumIO/flask-ldap-login/flask_ldap_login/__init__.py/scalar--crossover with--dataset/ETHPy150Open sympy/sympy/sympy/sets/fancysets.py/Range.reversed