Robotics & Artificial Intelligence

Non-fruitful functions use the return statement to return values.

Python Functions

3 Likes

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

2 Likes


Related Questions