2,500 results
Open links in new tab
  1. 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 …Read more

  2. Python Return Statement: Return vs Print, None & Loops

    Oct 20, 2026 · The Python return statement ends a function and sends a value back to the line that called it. Write return followed by …Read more

  3. The Python return Statement: Usage and Best Practices

    Sep 28, 2020 · See how Python return values work, including multiple results, so you write clear, testable functions. Follow examples …Read more

  4. Python return Keyword - W3Schools

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

  5. The Python Return Statement : Usage and Best Practices

    The return statement in Python is used to exit a function and return a value to the caller. It allows you to pass back a specific result or …Read more

  6. Returning Functions from Functions in Python - GeeksforGeeks

    Jun 8, 2026 · Function can return another function just like it can return any other value. This allows functions to create and return …Read more

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

    return makes the value (a variable, often) available for use by the caller (for example, to be stored by a function that the function …Read more

  8. python - How do I get ("return") a result (output) from a function?

    You can use the return statement to return a value from a function, this does not make it so that the returned variable (value) …Read more

  9. Python Function Return Values Explained - PyTutorial

    Feb 5, 2026 · Learn how Python functions use the return statement to send data back to the caller, with examples of single values, …Read more

  10. Python Functions - W3Schools

    Functions can send data back to the code that called them using the return statement. When a function reaches a return statement, it …Read more