0 of 6 problems solved • 0%

Exercise prompt

Route a Parcel

The starter wraps your branches in a function so they can be tried with different inputs. The indented return gives the caller its result.

Example

def water_state(celsius): if celsius >= 100: return "steam" elif celsius > 0: return "liquid" else: return "ice" print(water_state(100)) # steam

The function stops at the first return. Handle the hottest case before checking a broader positive-temperature rule.

Your task

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.