Is Python's bracket the same as Java's array? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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 Answers
+ 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