About 5,840 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 return is executed, the function stops running, and any code written …

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

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

  4. Python return Keyword - W3Schools

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

  5. 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 means nothing, or null.

  6. The return Statement in Python - Online Tutorials Library

    Mar 12, 2026 · The return statement is essential for passing results out of functions in Python. It can return any object type, multiple values as a tuple, other functions, or None implicitly when no value is …

  7. Python Return Statement - Syntax, Usage, and Examples - Mimo

    Master Python's return statement to exit functions, send back values, and handle conditions. Learn syntax, best practices, and real-world examples.

  8. Mastering the `return` Statement in Python - CodeRivers

    Apr 10, 2025 · Understanding how to use return effectively is essential for writing clean, modular, and efficient Python code. This blog post will explore the fundamental concepts, usage methods, …

  9. Python 3.14.4 documentation

    2 days ago · The official Python documentation.

  10. 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 data from a function, enabling you to utilize the output for further …