हिंदी
तमिलनाडु बोर्ड ऑफ सेकेंडरी एज्युकेशनएचएससी विज्ञान कक्षा १२

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

Advertisements
Advertisements

प्रश्न

What is a Tuple? Give an example.

टिप्पणी लिखिए

उत्तर

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
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 2: Data Abstraction - Evaluation [पृष्ठ १९]

APPEARS IN

सामाचीर कलवी Computer Science [English] Class 12 TN Board
अध्याय 2 Data Abstraction
Evaluation | Q 5. | पृष्ठ १९
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×