Robotics & Artificial Intelligence
Non-fruitful functions use the return statement to return values.
Python Functions
1 Like
Answer
False
Reason — Non-fruitful functions (void functions) do not return any value. They may or may not contain a return statement, but if present, it returns no value and hence returns None. Therefore, non-fruitful functions do not use the return statement to return values.
Answered By
3 Likes
Related Questions
The return statement in Python function cannot return multiple values.
Python allows you to combine different types of arguments in a function call.
Invoking a function is similar as calling a function in a program.
'*args' keyword allows to pass a variable number of arguments and arguments are stored in a tuple.