Python Programming - Arrays - Discussion

Discussion Forum : Arrays - General Questions (Q.No. 6)
6.
What is the primary difference between a list and an array?
Lists can only store integers, while arrays can store any data type.
Arrays have a fixed size, while lists can dynamically grow or shrink.
Lists are one-dimensional, while arrays can be multi-dimensional.
Arrays are not iterable, while lists can be iterated over.
Answer: Option
Explanation:
Arrays in Python can be multi-dimensional, allowing for the storage of data in multiple dimensions, while lists are one-dimensional.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.