Robotics & Artificial Intelligence
In Python, it is necessary to provide at least one argument in a function.
Python Functions
2 Likes
Answer
False
Reason — A function can take any number of arguments or none. If a function does not accept any arguments, the parentheses are left empty while defining the function. Therefore, it is not necessary to provide at least one argument in a Python function.
Answered By
3 Likes
Related Questions
Within a function, the parameters act as placeholders for the passed argument.
All other arguments to the right side of default argument must also have default values.
The return statement in Python function cannot return multiple values.
Python allows you to combine different types of arguments in a function call.