1.

What is a Tuple? Give an example?

Answer»

A tuple is a comma-separated sequence of values surrounded with parentheses. 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’)



Discussion

No Comment Found