About 9,330,000 results
Open links in new tab
  1. Python Tuples - W3Schools

    Tuple is one of 4 built-in data types in Python used to store collections of data, the other 3 are List, Set, and Dictionary, all with different qualities and usage. A tuple is a collection which is …

  2. list - What exactly are tuples in Python? - Stack Overflow

    Tuples are sequences, just like lists. The differences between tuples and lists are, the tuples cannot be changed unlike lists and tuples use parentheses, whereas lists use square brackets. …

  3. Python Tuples - GeeksforGeeks

    Apr 11, 2025 · A tuple in Python is an immutable ordered collection of elements. Tuples are similar to lists, but unlike lists, they cannot be changed after their creation (i.e., they are …

  4. Python Tuples - Python Guides

    Declare and Use Tuples in Python; Convert a Tuple to a String in Python; Concatenate Tuples in Python; Sort by the Second Element in a Tuple in Python; Sort a Tuple in Python; Split a Tuple …

  5. Python's tuple Data Type: A Deep Dive With Examples

    In Python, a tuple is a built-in data type that allows you to create immutable sequences of values. The values or items in a tuple can be of any type. This makes tuples pretty useful in those …

  6. Python Tuple (With Examples) - Programiz

    We create a tuple by placing items inside parentheses (). For example, # Output: (1, 2, -5) We can also create a tuple using a tuple () constructor. For example, print(tuple_constructor) # Output: …

  7. Python Tuples - Python Geeks

    What is Tuple in Python? Tuples are the sequences of values of different data types. It is. Allows duplicate values. The elements of a tuple are enclosed between circular brackets, (), with each …

  8. What Are Python Tuples, and How Do They Work? - Medium

    Feb 8, 2025 · In this guide, we’ve covered how tuples in Python work, including how to create, access, and use them. Tuples are useful when you need to store data that shouldn’t change.

  9. Understanding Python Tuples: A Comprehensive Guide - W3docs

    Python tuples are a type of data structure that allows you to store and organize multiple pieces of information in a single place. They are ordered, immutable, and can contain elements of any …

  10. What is Tuple in Python: A Beginner’s Guide to Tuples in Python

    What is Tuple in Python? A tuple is a collection of ordered, immutable elements in Python. The key characteristics of tuples are: Ordered: The elements in a tuple have a specific order, which …

Refresh