About 1,120,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 return Keyword - W3Schools

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

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

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

    Jan 24, 2025 · The return function in Python is used to exit a function and return a value to the calling code. When a return statement is executed within a function, the function immediately …

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

  8. Python Function Return Values | return Statement - apxml.com

    Functions are not limited to returning just numbers. They can return any type of data available in Python: strings, booleans, lists, dictionaries, tuples, or even custom objects (which we'll see …

  9. Built-in FunctionsPython 3.14.2 documentation

    4 days ago · Built-in Functions ¶ The Python interpreter has a number of functions and types built into it that are always available. They are listed here in alphabetical order.

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