QUESTION IMAGE
Question
question 17
(1, 2, apple, 3) is a valid example of a tuple: true or false
true
false
Step1: Recall tuple definition
A tuple in Python is an ordered, immutable sequence. However, the elements within a tuple can be of any data type, including lists.
Step2: Check validity
In the given (1, 2, ['Apple', 3]), although the list ['Apple', 3] is mutable, the tuple itself is still valid because the tuple's immutability refers to the references of its elements (i.e., you can't rebind the tuple's element positions, but the elements themselves can be mutable objects like lists).
Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
True