QUESTION IMAGE
Question
how does python recognize a tuple?
you use brackets around the data values.
you use tuple when you create it, as in \mytuple = tuple(3, 5)\.
you use parentheses around the data values.
you declare mytuple to be a tuple, as in \mytuple = new tuple\.
In Python, tuples are defined using parentheses around the data values. For example, my_tuple = (1, 2, 3). The tuple() constructor can also be used but the most common and recognizable way is using parentheses. Brackets are for lists, and there is no new tuple syntax in Python like in some other languages.
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
C. You use parentheses around the data values.