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

Tuple Data Type:

Vinay Rawal answered on April 1, 2023 Popularity 5/10 Helpfulness 1/10

Contents


More Related Answers

  • TUPLE DATA STRUCTURE
  • python tuple[int, ...] typing
  • python typing tuple
  • How to define an Tuple type in typescript
  • Defining Tuples In Typescript
  • type script tuple type
  • properties of tuples in python
  • type of tuple in python
  • typescript tuple example
  • tuple with mixed data types
  • Creating a Tuple with Mixed Datatypes.
  • How do you represent a tuple in Typescript

  • Tuple Data Type:

    0

    tuple data type is exactly same as list data type except that it is immutable.i.e we cannot chage values.  Tuple elements can be represented within parenthesis.

    Eg: 1) t=(10,20,30,40) 2) type(t) 3) 4) t[0]=100 5) TypeError: 'tuple' object does not support item assignment 6) >>> t.append("durga") 7) AttributeError: 'tuple' object has no attribute 'append' 8) >>> t.remove(10) 9) AttributeError: 'tuple' object has no attribute 'remove' 

    Popularity 5/10 Helpfulness 1/10 Language whatever
    Source: Grepper
    Tags: whatever
    Link to this answer
    Share Copy Link
    Contributed on Apr 01 2023
    Vinay 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.