Kodewick
Start learning →
Basic←→0 / 100

How sweet?

#008BasicConditions4 min

The tea shop's order screen shows the sweetness. Write sweetness(spoons): 0 spoons returns "none", 1 to 2 returns "half", 3 or more returns "full".

Examples
sweetness(0)→'none'
sweetness(2)→'half'
sweetness(5)→'full'
main.py
def sweetness(spoons):
    if spoons == 0:
        return "none"
    # your code here: 1 to 2 is "half", more is "full"
    pass
Ctrl + Enter runs too
Result

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