Kodewick
Start learning →
Starter←→0 / 100

Cheer a name

#027StarterStrings2 min

At sports day everyone cheers the runners on. Write shout(name) to return the name in capital letters with a ! on the end. Letters that are already capitals stay as they are.

Examples
shout("Mia")→'MIA!'
shout("leo")→'LEO!'
main.py
def shout(name):
    # your code here: make it capitals, then add "!"
    return name
Ctrl + Enter runs too
Result

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