English
Tamil Nadu Board of Secondary EducationHSC Science Class 12

What is a Tuple? Give an example. - Computer Science

Advertisements
Advertisements

Question

What is a Tuple? Give an example.

Short Note

Solution

A tuple is a comma-separated sequence of values surrounded by parentheses. A tuple is similar to a list. The difference between the two is that you cannot change the elements of a tuple once it is assigned whereas, in a list, elements can be changed.
Example colour = (‘red’, ‘blue’, ‘Green’)

shaalaa.com
Lists, Tuples
  Is there an error in this question or solution?
Chapter 2: Data Abstraction - Evaluation [Page 19]

APPEARS IN

Samacheer Kalvi Computer Science [English] Class 12 TN Board
Chapter 2 Data Abstraction
Evaluation | Q 5. | Page 19
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×