Kodewick
Start learning →
Starter←→0 / 100

Locker tag

#030StarterStrings2 min

The pool's locker tags are tiny, so they only show a name's first and last letter. Write first_last(name) to return those two. Every name has at least one letter; a one-letter name shows it twice.

Examples
first_last("Mia")→'Ma'
first_last("Oliver")→'Or'
main.py
def first_last(name):
    # your code here: the first letter + the last letter
    return ""
Ctrl + Enter runs too
Result

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