def foo(temperature):
    if ...:
       ... ...
    elif 25 >= temperature >= 15:
        ... ...
    else:
        ... ...