6.
Is a return statement optional? Compare and comment on the following two return statements.
Return
Return number
Answers
Answered by
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
World Languages,
3 months ago
English,
3 months ago
Computer Science,
3 months ago
Physics,
7 months ago
Math,
11 months ago
Chemistry,
11 months ago