About 9,360,000 results
Open links in new tab
  1. The Python return Statement: Usage and Best Practices

    The Python return statement is a special statement that you can use inside a function or method to send the function’s result back to the caller. A return statement consists of the return …

  2. python - What is the purpose of the return statement? How is it ...

    The simple truth is that print and return have nothing to do with each other. print is used to display things in the terminal (for command-line programs). 1 return is used to get a result back when …

  3. Python return statement - GeeksforGeeks

    Dec 10, 2024 · A return statement is used to end the execution of the function call and it "returns" the value of the expression following the return keyword to the caller. The statements after the …

  4. Python Return Function [With Examples]

    Oct 30, 2024 · In this Python article, you learn everything about the Python return function with multiple examples, such as what happens when you don’t use the return statement.

  5. Python return Keyword - W3Schools

    Definition and Usage The return keyword is to exit a function and return a value.

  6. What Does the Return Function Do in Python and How Does It …

    The `return` statement in Python is used to exit a function and send a value back to the caller. When a function executes a `return` statement, the function terminates immediately, and the …

  7. Understanding the `return` Statement in Python - codegenes.net

    Jun 21, 2025 · In Python, the return statement is a fundamental aspect of function programming. It allows functions to send data back to the part of the code that called them, making functions …

  8. Mastering the `return` Statement in Python Functions

    Jan 29, 2025 · When a function is called, it executes the statements within it. The return statement is used to end the execution of the function and send a value or values back to the calling …

  9. Python Return Statement - Syntax, Usage, and Examples - Mimo

    The Python return statement marks the end of a function and specifies the value or values to pass back from the function. Return statements can return data of any type, including integers, …

  10. What Is Python Return Statement?

    Jan 8, 2025 · Learn about the Python `return` statement, its purpose, syntax, and usage in functions. This guide includes examples to help you understand how it works.