+ 1

Is Python's bracket the same as Java's array?

Is Python's bracket the same as Java's array?

11th Feb 2017, 5:07 PM
Som H
Som H - avatar
2 Réponses
+ 7
In Python square brackets define lists. But the main difference between Python's lists and Java's arrays is that lists CAN contain elements of different types, while Java's arrays are one-type setups.
11th Feb 2017, 7:11 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
0
yes.
11th Feb 2017, 5:36 PM
Abdoul Seibou
Abdoul Seibou - avatar