Which Python data structure is suitable for storing multiple data types and allows duplicate elements?
- Dictionary
- List
- Set
- Tuple
In Python, a list is a versatile data structure that can store multiple data types and allows duplicate elements. Lists are ordered and mutable, making them suitable for a wide range of use cases.
Loading...
Related Quiz
- In Python, the ____ statement is used to interrupt loop iteration and jump to the next iteration of the loop.
- In the context of method overriding, what is the role of the super() function?
- What mode should you open a file in to write to it without deleting its existing content?
- The ______ statement in Python is used to resume the loop from the top.
- A ____ is a data structure that stores elements in a linear sequence but allows additions and removals only at the start.