Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

question 2 what happens when a function does not have a return statemen…

Question

question 2
what happens when a function does not have a return statement?
the function returns an empty string
the function returns none
the function returns 0
an error occurs

Explanation:

Brief Explanations

In many programming languages (most notably Python), a function that lacks an explicit return statement will automatically return a special value representing the absence of a meaningful return value. This value is None. It does not return an empty string, 0, nor does it trigger an error by default.

Answer:

The function returns None