About 1,500 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 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 …

  3. Python return Keyword - W3Schools

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

  4. Python Return Statement

    4 days ago · Master the Python return statement with this expert guide. Learn to return single values, multiple objects, and functions with real-world US-based examples.

  5. Python Function Return Values Explained - PyTutorial

    Feb 5, 2026 · Learn how Python functions use the return statement to send data back to the caller, with examples of single values, multiple values, and None.

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

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

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

    Jan 24, 2025 · In Python programming, the return function plays a crucial role in controlling the flow of data within functions and providing results back to the calling code. Understanding how to use the …

  9. How to use 'return' in Python - Replit

    The return statement is a core concept in Python functions. It lets a function send a value back to its caller, a key practice to write clean and reusable code. You'll explore techniques for multiple and …

  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 …