What values can we have in a tuple? Do they all have to be the same type*?
3 Likes
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
What are mutable counterparts of tuple?
What are different ways of creating a tuple?
How are individual elements of tuples accessed?
How do you create the following tuples?
(a) (4, 5, 6)
(b) (-2, 1, 3)
(c) (-9, -8, -7, -6, -5)
(d) (-9, -10, -11, -12)
(e) (0, 1, 2)