About 12,300,000 results
Open links in new tab
  1. Python Tuples - W3Schools

    Using the tuple () method to make a tuple: There are four collection data types in the Python programming language: List is a collection which is ordered and changeable. Allows duplicate …

  2. tuple() Function in Python - GeeksforGeeks

    Jul 3, 2024 · Python tuple() Syntax. Syntax: tuple(iterable) iterable (optional): It is an iterable(list, range etc..) or an iterator object. If an iterable is passed, the corresponding tuple is created, …

  3. Tuple Operations in Python - GeeksforGeeks

    Apr 11, 2025 · To find the length of a tuple, we can use Python's len () function and pass the tuple as the parameter. Tuples in Python are heterogeneous in nature. This means tuples support …

  4. Python Tuples - Python Guides

    Return tuples from functions: For multiple return values, tuples provide a clean solution. ... requiring complete recreation for any modification. By understanding and utilizing tuples …

  5. Python Tuples - GeeksforGeeks

    Apr 11, 2025 · Tuples can be concatenated using the + operator. This operation combines two or more tuples to create a new tuple. Note- Only the same datatypes can be combined with …

  6. Python Tuple (With Examples) - Programiz

    In Python, we use tuples to store multiple data similar to a list. In this article, we'll learn about Python Tuples with the help of examples.

  7. Python Tuples: A Step-by-Step Tutorial (with 14 Code Examples)

    Mar 28, 2022 · Python has a built-in sequence data type to store data in an unchangeable object, called a tuple. After you finish this Python tutorial, you'll know the following: In this tutorial, we …

  8. Python tuple() Function - W3Schools

    Create a tuple containing fruit names: The tuple() function creates a tuple object. Note: You cannot change or remove items in a tuple. Read more about sets in the chapter Python …

  9. Python tuple() - Programiz

    In Python, a tuple is an immutable sequence type. One of the ways of creating tuple is by using the tuple() construct. The syntax of tuple() is: If the iterable is not passed to tuple(), the …

  10. Guide to Tuples in Python - Stack Abuse

    Mar 15, 2023 · Alternatively, you can create a tuple using the built-in tuple() function, which takes an iterable as an argument and returns a tuple: # Create a tuple from a string . This method is …

  11. Some results have been removed