2 ms·
Requiring a type definition, Python's Array type more closely matches Java and C# Lists than Python's List type. In Python, Arrays are sequence types and behav
by brudgers 8y ago
Requiring a type definition, Python's Array type more closely matches Java and C# Lists than Python's List type.
In Python, Arrays are sequence types and behave very much like lists[1] In other words, even in Python, arrays have similar semantics to Javascript Arrays not Java Arrays.
[1] https://docs.python.org/3.4/library/array.html https://docs.python.org/3.4/library/array.html