0

Lists in Python are same as array?

2nd Aug 2017, 8:27 AM
Saharsh Goyal
Saharsh Goyal - avatar
3 ответов
+ 3
Yes, lists in Python are 'dynamical' arrays (you don't need to know their size before creating them, as with languages as C++ or Java, and you could add, remove any items you want at runtime)...
2nd Aug 2017, 10:23 AM
visph
visph - avatar
+ 1
In a way, yes.
2nd Aug 2017, 10:02 AM
Bàng Tứ Cường
Bàng Tứ Cường - avatar
0
Yes they are the exact same . They start the indexing from 0 . You can also create a list in a list by simply using square brackets [].
3rd Aug 2017, 4:18 PM
Divesh Koolwal
Divesh Koolwal - avatar