About 1,490,000 results
Open links in new tab
  1. 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.

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

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

    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 function the first …

  5. Python return Keyword - W3Schools

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

  6. Mastering the `return` Statement in Python Functions

    Jan 29, 2025 · Understanding how the `return` statement works is essential for writing effective and robust Python code. This blog post will delve deep into the fundamental concepts, usage methods, …

  7. Python return Statement - Explained with Examples - Python Tutorial ...

    Learn how the return statement works in Python functions. Includes single and multiple return values, syntax, examples, and best practices.

  8. What Does Return Do in Python Functions?

    Oct 26, 2025 · In Python, the return statement plays a crucial role in the functionality of these functions. It is vital for developers, both new and seasoned, to understand the intricacies of the return …

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

    In Python, the return statement exits a function and passes back a value to the function call. Here's the basic syntax for using return statements: # Function body return return_value. def: The keyword to …

  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.