Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Arrays need to be declared whereas lists need not. If you want to perform arithmetic operations on them or store large amounts of data, use arrays, for they store data in a more compact and efficient manner compared to lists. Else using lists may be a better idea for being idiomatic to Python, well as, unlike arrays (which are one-dimensional and linear), have the capability of both storing heterogeneous data and multidimensionality.
-
Eklavya17684y@andrewsmith Lists and arrays are used to store data(any data type- strings, integers, etc), both can be indexed and iterated also. ... Arrays need to be declared whereas lists do not need declaration because they are a part of Python's syntax. This is the reason lists are more often used than arrays.
Related Rants
Learning Python from some days back, and have confused about Python Array and Python Lists, please help me to understand this.
Thank You.
question
python list
python
python array