About 691,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 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 …

  3. Python Return Function [With Examples]

    Oct 30, 2024 · What is the Return Function in Python The return function is a block of code that, when called, returns the result to the caller. So, the function that returns a value contains a …

  4. A Complete Guide to Return Values in Python for Beginners

    Return values are a fundamental concept in Python programming that represent the output or result produced by a function when it completes its execution. They serve as a mechanism for …

  5. Python Function Return Values: A Comprehensive Guide

    Feb 16, 2025 · In Python, functions are a fundamental building block for structuring code. One of the key aspects of functions is the ability to return values. A return value allows a function to …

  6. Python return Statement - Explained with Examples - Python ...

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

  7. 6.5 Return values - Introduction to Python Programming

    6.5 Return values Learning objectives By the end of this section you should be able to Identify a function's return value. Employ return statements in functions to return values. Returning from …

  8. Python Return Values: Best Practices and Usage Guide

    Mar 18, 2025 · Learn how to send data back from functions with Python return values. Discover how to return single, multiple, and complex data structures.