is there any difference between list (used in Python) and array. | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 6

is there any difference between list (used in Python) and array.

11th Jul 2016, 8:20 PM
Suryaprakash Tiwari
Suryaprakash Tiwari - avatar
6 ответов
+ 17
Arrays are fixed in length, lists can continually be added to.
12th Jul 2016, 12:58 AM
Brad McLennan
+ 9
the main difference is array doesn't support different datatype in a single array where list can store different datatypes value in a single list
13th Jul 2016, 7:57 AM
Subhankar Paul
Subhankar Paul - avatar
+ 1
array has a fixed length after declaration
3rd Dec 2016, 3:22 PM
Ali Kemal Bakir
Ali Kemal Bakir - avatar
+ 1
list has more functionality than array.
27th Dec 2016, 1:23 PM
Ankit Kumar
Ankit Kumar - avatar
0
carry is for calling a variable which it different kind of code between php and python
25th Nov 2016, 7:13 AM
Kenneth Gomad
Kenneth Gomad - avatar
- 3
I think we are missing the biggest difference. A List is an object, and an array is basically a data type. So Lists have methods like .append .insert(j, k) .reverse
31st Dec 2016, 9:14 PM
Hazard Sharp
Hazard Sharp - avatar