About 650 results
Open links in new tab
  1. Returning Multiple Values in Python - GeeksforGeeks

    Jul 1, 2025 · In Python, a function can return more than one value at a time using commas. These values are usually returned as a tuple. This is useful when a function needs to give back …

  2. How can I return two values from a function in Python?

    If you want to return more than two values, consider using a named tuple. It will allow the caller of the function to access fields of the returned value by name, which is more readable.

  3. How to Return Multiple Values from a Function in Python?

    Feb 11, 2025 · Learn how to return multiple values from a function in Python using tuples, lists, dictionaries, and `dataclass`. This step-by-step guide includes examples.

  4. Python: Return Multiple Values from a Function - datagy

    Oct 29, 2021 · Learn how to use Python to return multiple values from your functions, using tuples, lists, and dictionaries to understand function outputs.

  5. Unlocking Python's Potential: How to Return Multiple Values

    Jun 7, 2025 · Python, a versatile and widely-used programming language, offers numerous features that make it an ideal choice for developers. One such feature is the ability to return …

  6. Python Function Returning Multiple Values: A Comprehensive …

    Apr 5, 2025 · This feature can significantly simplify code, making it more readable and efficient in various scenarios. In this blog post, we will explore the concepts, usage methods, common …

  7. Returning Multiple Values in Python: A Comprehensive Guide

    Nov 14, 2025 · Python provides several ways to return multiple values, each with its own advantages and use-cases. This blog will explore these methods in detail, covering …

  8. Return Multiple Values in Python Functions - milddev.com

    Jul 27, 2025 · Learn how to return and handle multiple values in Python functions using tuples, lists, namedtuples, dataclasses, generators, and best practices.

  9. Python Return Multiple Values – How to Return a Tuple, List, or …

    Jul 20, 2020 · Data structures in Python are used to store collections of data, which can be returned from functions. In this article, we’ll explore how to return multiple values from these …

  10. Discover How To Return Multiple Values Python Like A Pro!

    Many Python developers struggle with returning multiple values from a single function. Functions in Python can return multiple values efficiently, typically as a tuple. This guide shows …