What statement causes a function to end and sends a value back to the part of the program that called the function?

1 answer

Answer

1147163

2026-04-30 19:25

+ Follow

The statement that causes a function to end and sends a value back to the calling part of the program is the return statement. When a return statement is executed, it terminates the function and can optionally pass a value back to the caller. If no value is specified, the function returns None in Python or equivalent in other languages. This allows the caller to receive the result of the function's computation.

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.