154,000 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 …

  2. Python return Keyword - W3Schools

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

  3. The Python return Statement: Usage and Best Practices

    Sep 28, 2020 · The Python return statement is a special statement that you can use inside a function or method to send the …

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

  5. Python Return Statements Explained: What They Are and Why You …

    Jan 4, 2020 · All functions return a value when called. If a return statement is followed by an expression list, that expression list is …

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

    Python will actually insert a return value for you if you decline to put in your own, it's called "None", and it's a special type that simply …

  7. Using the Python return Statement Effectively

    The Python return statement is a key component of functions and methods. You can use the return statement to make your functions …

  8. The return Statement in Python - Online Tutorials Library

    Mar 12, 2026 · The return statement in Python is used to send a value back from a function to its caller and exit the function. Since …

  9. What is “return” in Python? - Medium

    Aug 31, 2020 · Functions are like machines. You can give it an input and it will give you an output. If you don’t return the output, …

  10. Understanding the return Statement in Python: A Beginner's Guide

    Oct 30, 2024 · Think of return as output storage: Whenever you use return, you’re preparing a value for use somewhere else. …