0 of 6 problems solved • 0%

Exercise prompt

Choose a Greeting

Put a parameter with a default after required parameters. The caller can omit it or override it with a positional or keyword argument.

Example

def border(width, mark="*"): return mark * width print(border(3)) # *** print(border(3, mark=".")) # ...

The caller pays attention to mark only when it needs a different character.

Your task

Write greet(name, greeting="Hello"). Return a greeting of the form Hello, Ada!. Preserve the exact text of both arguments.