+ 1

What is difference between Lists and Arrays (Python) ?

Hello Ducks. Whats is an array ? and what is the difference between this last one and Lists ? If anyone will answer me, I will appreciate it.

20th Aug 2020, 3:45 PM
Agt Reda
Agt Reda - avatar
2 odpowiedzi
+ 1
Arrays can store data very compactly and are more efficient for storing large amounts of data. Arrays are great for numerical operations; lists cannot directly handle math operations. For example, you can divide each element of an array by the same number with just one line of code. I hope it help you.
20th Aug 2020, 4:08 PM
Matias
Matias - avatar
0
Matiyas Sirak Ok, if you want to use arrays you have to import the array module right ? and then what
21st Aug 2020, 3:18 PM
Agt Reda
Agt Reda - avatar