KnowledgeBoat Logo

Computer Science

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

Python Tuples

1 Like

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

1 Like


Related Questions