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

    See how Python return values work, including multiple results, so you write clear, testable functions. Follow examples and practice as you go.

  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 20, 2025 · The return statement is used inside a function to send a value back to the place where the function was called. Once return is executed, the function stops running, and any code written …

  4. Python Return Statement

    Feb 16, 2026 · Master the Python return statement with this expert guide. Learn to return single values, multiple objects, and functions with real-world US-based examples.

  5. 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 you call a …

  6. Python Function Return Values Explained - PyTutorial

    Feb 5, 2026 · What is the Return Statement? The return statement ends a function's execution. It sends a value back to where the function was called. This value is called the "return value." It can be …

  7. What Does Return Do in Python Functions?

    Oct 26, 2025 · In Python, the return statement plays a crucial role in the functionality of these functions. It is vital for developers, both new and seasoned, to understand the intricacies of the return …

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

  9. Python return Keyword - Online Tutorials Library

    Learn about the Python return keyword, its syntax, and how to use it effectively in your functions to return values.

  10. Python Return Statement (Explicit and Implicit)

    When a return statement is encountered in a function, the function stops executing, and the control is returned to the caller. The value that follows the return keyword, if any, is the value that will be …