The starter wraps your branches in a function so they can be tried with different inputs. The indented return gives the caller its result.
def water_state(celsius):
if celsius >= 100:
return "steam"
elif celsius > 0:
return "liquid"
else:
return "ice"
print(water_state(100)) # steamThe function stops at the first return. Handle the hottest case before checking a broader positive-temperature rule.
Complete route(weight). Return letter for weights of 100 grams or less, small for weights up to and including 1000 grams, and large for anything heavier. All inputs are positive integers.