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

    The Python return statement allows you to send any Python object from your custom functions back to the caller code. This statement is a fundamental part of any Python function or method.

  2. Python return Keyword - W3Schools

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

  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 return …

  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 Statement - Explained with Examples - Python Tutorial ...

    Learn how the return statement works in Python functions. Includes single and multiple return values, syntax, examples, and best practices.

  6. What Does Return Do in Python Functions?

    Oct 26, 2025 · Discover what return means in Python, how to use return in functions, and the difference between def and return in coding examples.

  7. Python's `return` Method: A Comprehensive Guide - CodeRivers

    Mar 28, 2025 · In Python programming, the return statement plays a crucial role in functions. It is the mechanism by which a function can send a value (or values) back to the code that called it. …

  8. 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.

  9. Mastering the `return` Statement in Python - CodeRivers

    Apr 10, 2025 · Understanding how to use return effectively is essential for writing clean, modular, and efficient Python code. This blog post will explore the fundamental concepts, usage methods, …

  10. Python return Statement - AskPython

    May 11, 2023 · In Python, the return statement exits a function and returns the specified value to the caller. Multiple return statements may exist in a function, but only the one that fulfils the specified …