Kodewick
Start learning →
Starter←→0 / 100

Fish tank water

#083StarterNumbersConditions2 min

The goldfish likes water from 24 to 28 degrees (24 and 28 both count). Write water_ok(temp): True when the water is right, False when it is too cold or too warm.

Examples
water_ok(26)→True
water_ok(30)→False
main.py
def water_ok(temp):
    # your code here: temp is at least 24 and at most 28
    pass
Ctrl + Enter runs too
Result

Run tries the examples. When they look right, Submit.