Narrate the difference between Python arrays and lists.
Both lists and arrays in Python can store the data in the same way.
The difference is-
Array | List |
---|---|
An array can hold single data type elements. | Lists in Python can hold any type of data element. |
BY Best Interview Question ON 24 Jul 2019