Computer Science, asked by muskanranarajput17, 7 months ago

6.
Is a return statement optional? Compare and comment on the following two return statements.
Return
Return number

Answers

Answered by prachinigam2006
5

Answer:

hii I think that it helps you

Explanation:

Functions do not have declared return types. A function without an explicit return statement returns None . In the case of no arguments and no return value, the definition is very simple. Calling the function is performed by using the call operator () after the name of the function.

A function can have multiple return statements. When any of them is executed, the function terminates. A function can return multiple types of values.

Similar questions