COMPUTER SCIENCE AND ENGINEERING
DATA STRUCTURES
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
Arrays and Python Lists are the same thing
|
True
|
|
False
|
|
Either A or B
|
|
None of the above
|
Explanation:
Detailed explanation-1: -Python does not have native array data structure, but it has the list which is mutable which means we can modify the content present within the list. We can store data of heterogeneous datatypes. List is much more general and can be used as a multidimensional array quite easily.
Detailed explanation-2: -S.No. List is used to collect items that usually consist of elements of multiple data types. An array is also a vital component that collects several items of the same data type.
Detailed explanation-3: -Python’s lists are really variable-length arrays, not Lisp-style linked lists.
There is 1 question to complete.