Computer Science

What values can we have in a tuple? Do they all have to be the same type*?

Python Tuples

3 Likes

Answer

No, all the elements of the tuple need not be of the same type. A tuple can contain elements of all data types.

Answered By

3 Likes


Related Questions