About 1,590,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 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.

  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 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. 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. What Does Return Do in Python Functions?

    Oct 26, 2025 · Discover what return means in Python, how to use return in functions, and the difference between def and return in coding examples.

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

  9. Built-in FunctionsPython 3.14.2 documentation

    1 day 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. Return from Function in Python: A Comprehensive Guide

    Mar 28, 2025 · In Python, functions are a fundamental building block for organizing code, promoting code reuse, and making programs more modular. The return statement within a function plays a …