0 of 6 problems solved • 0%

Parameters and Return Values

6 exercisesEasy

A parameter is a local name for an incoming argument. A default supplies its value when the caller omits it. Callers can also name an argument explicitly.

def repeat_word(word, times=2): return word * times repeat_word("ha", times=3) # "hahaha"