Which two statements are correct about a Python list data type? (Choose two.)
Python lists have the following characteristics:
Modifiable Data (A): Lists are mutable, meaning you can change, add, or remove elements after the list has been created.
Sequenced and Indexed (B): Lists maintain the order of their elements and are indexed starting from 0. This means you can access elements by their position in the list.
Option C is incorrect because lists are mutable, allowing modifications. Option D is incorrect because lists are indeed sequenced and indexed, unlike dictionaries.
Python Official Documentation: Covers the properties of lists, including mutability and indexing.
Python Data Structures Guide: Explains list operations and how to manipulate them.
Currently there are no comments in this discussion, be the first to comment!