Kodewick
Start learning →
Starter←→0 / 100

The longer name

#091StarterStringsConditions2 min

Naming a new puppy: the name tag needs room for the longest one. Write longer_name(a, b) to return whichever name is longer; if they are the same length, return a.

Examples
longer_name("Max", "Biscuit")→'Biscuit'
longer_name("Pudding", "Rex")→'Pudding'
main.py
def longer_name(a, b):
    # your code here: if b is longer than a, return b

    return a
Ctrl + Enter runs too
Result

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