Junior — Middle
Can a tuple in Python be considered an ordered collection of elements?
sobes.tech AI
Answer from AI
Yes, a tuple in Python is an ordered collection of elements. This means that the elements in a tuple have a fixed order, and they can be accessed by index. Unlike a set or a dictionary (before Python 3.7), the order of elements in a tuple is preserved and does not change.