About 505,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 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.

  3. Python return statement - GeeksforGeeks

    Dec 10, 2024 · When the return statement is executed, the function terminates and the specified value is returned to the caller. If no value is specified, the function returns None by default.

  4. 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 using return is within). Without return, your value or variable …

  5. Python return Keyword - W3Schools

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

  6. Python `return` Function: A Comprehensive Guide - CodeRivers

    Jan 24, 2025 · This blog post will delve into the fundamental concepts of the Python `return` function, explore its various usage methods, highlight common practices, and provide best …

  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.

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

  9. Python Return Statement: The Complete Guide - TheLinuxCode

    May 21, 2025 · When Python executes the return statement, two things happen: To truly appreciate the return statement, it helps to understand its origins. The concept of returning …

  10. What Is Python Return Statement?

    Jan 8, 2025 · Learn about the Python `return` statement, its purpose, syntax, and usage in functions. This guide includes examples to help you understand how it works.