+ 1

Difference between numpy and list in python

23rd Feb 2020, 12:04 PM
Lakshmi Srinivas Rachumallu
Lakshmi Srinivas Rachumallu - avatar
3 Answers
+ 3
All elements of Numpy arrays are of same datatypes while elements in list can be of different datatypes... Numpy arrays are faster.
23rd Feb 2020, 12:32 PM
Utkarsh Sharma
Utkarsh Sharma - avatar
23rd Feb 2020, 12:17 PM
QWKKK
QWKKK - avatar
0
Numpy array has all element of same type, in a list it is not necessary. Numpy array can only have non-negative indexes while list can have any integer.
24th Feb 2020, 10:12 AM
VIKASH SINGH
VIKASH SINGH - avatar