Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

TUPLE DATA STRUCTURE

Satinder Rawal answered on April 17, 2023 Popularity 6/10 Helpfulness 6/10

Contents


More Related Answers

  • what is a tuple in database
  • tree to tuple python
  • Basic example of a Named Tuple
  • Tuple: Create tuple
  • tuple in python
  • properties of tuples in python
  • tuple in python
  • create tuples python
  • tuple methods in python
  • create tuples in pandas
  • accessing items of tuple in python
  • how to declare tuple in python
  • python tuple example
  • type of tuple in python
  • make a tuple
  • tuple methods python
  • Python Tuple Operations
  • Accessing of Tuples in python
  • Python Tuples
  • tuple in python
  • tuples in python
  • Create a Tuple
  • Create a Tuple
  • Create a Tuple
  • how to make a tuple
  • accessing items of tuple in python
  • Python Creating a Tuple
  • Create A Tuple
  • How do I create a tuple with a single element in Python?

  • TUPLE DATA STRUCTURE

    1

    1) Tuple is exactly same as List except that it is immutable. i.e once we creates Tuple

    object, we cannot perform any changes in that object.

    2) Hence Tuple is Read only version of List.

    3) If our data is fixed and never changes then we should go for Tuple.

    4) Insertion Order is preserved

    5) Duplicates are allowed

    6) Heterogeneous objects are allowed.

    7) We can preserve insertion order and we can differentiate duplicate objects by using

    index. Hence index will play very important role in Tuple also.

    8) Tuple support both +ve and -ve index. +ve index means forward direction (from left to

    right) and -ve index means backward direction (from right to left)

    9) We can represent Tuple elements within Parenthesis and with comma seperator.

    10) Parenethesis are optional but recommended to use. 

    Popularity 6/10 Helpfulness 6/10 Language whatever
    Source: Grepper
    Link to this answer
    Share Copy Link
    Contributed on Apr 17 2023
    Satinder Rawal
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.