3
Question Question 3
Choose the correct statement(s).
- In Python, a tuple can contain only integers as its elements.
- In Python, a tuple can contain only strings as its elements.
- In Python, a tuple can contain elements of different types.
- In Python, a tuple can contain either string or integer but not both at a time
In Python, a tuple can contain elements of different types.
Reason — A tuple can have any number of items and they may be of different types (integer, float, list, string, etc).