Question
Which Python collection is ordered, mutable, and allows duplicate elements?
Select an option. Your answer will be checked instantly.
Correct Answer: C. List
Explanation:
Lists preserve element order, can be modified after creation, and may contain repeated values. Sets remove duplicates, while tuples are immutable.
Leave a Reply