About 2,870,000 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 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 Keyword - W3Schools

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

  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 - What is the purpose of the return statement? How is ...

    Often, people try to use print in a loop inside a function in order to see multiple values, and want to be able to use the results from outside. They need to be returned, but return exits the …

  6. Return from Function in Python: A Comprehensive Guide

    Mar 28, 2025 · Understanding how to use the `return` statement effectively is essential for writing robust and efficient Python programs. This blog post will delve deep into the concept of …

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