180k views
0 votes
True or False:
A list is known as a "mapped" type collection in Python.

User Jay Doshi
by
7.8k points

1 Answer

2 votes

Final answer:

In Python, a list is not known as a "mapped" type collection but as a sequential or ordered collection. The "mapped" type in Python is a dictionary, which consists of key-value pairs.

Step-by-step explanation:

False, in Python, a list is not known as a "mapped" type collection. Instead, lists in Python are considered to be sequential or ordered collections of items. Each item in a list has an index, starting from zero, which is used to access that item. Lists are versatile and can store a combination of items of different data types. On the other hand, the "mapped" type collection in Python is a dictionary. Dictionaries are made up of key-value pairs, where each key is mapped to a value. The keys in a dictionary are unique and are used to retrieve the corresponding values.

User Trakos
by
9.2k points