Can we always have same type of values in a tuple? State True or False with justification.
1 Like
False, we can have different type of values in a tuple. A tuple can hold values of different data types, i.e., a tuple is heterogeneous in nature.
For example: T1 = (1, 'apple', [2, 3]).
T1 = (1, 'apple', [2, 3])
Answered By
What are the differences between tuple and dictionary?
What are the differences between strings and tuples?
What is nested tuple? Explain with example.
Write the code to create an empty tuple.