Positional and keyword arguments

Which value binds to message?

Examples

Worked example

Input
greet('Mira', message='Hello')
Expected output
Hello

Hints and solution

Hint 1

Write down the starting state and walk through one example by hand.

Reveal worked answer

The named argument directly selects the message parameter and overrides its default.

Back to the lesson