Robotics & Artificial Intelligence

What is the default return value when a function does not return any value explicitly?

  1. null
  2. void
  3. empty
  4. None

Python Functions

1 Like

Answer

None

Reason — A Python function will always have a return value. If we do not explicitly use a return value, the function implicitly returns a default value that is None.

Answered By

1 Like


Related Questions