Question:medium

State True or False:
While defining a function in Python, the positional parameters in the function header must always be written after the default parameters.

Show Hint

Always remember that positional arguments must come before default arguments in a function definition in Python.
Updated On: Jan 13, 2026
Show Solution

Solution and Explanation

In Python function definitions, positional arguments must precede default arguments to avoid ambiguity in how arguments are mapped to parameters. Python's argument mapping relies on argument position.
Was this answer helpful?
0

Top Questions on Commands and Requests