2 ms·
Not true for Java or C#. In both of those languages, arrays are fixed-size and don't have anything like a push or pop operation. Both have an automatically resi
by TheCoelacanth 8y ago
Not true for Java or C#. In both of those languages, arrays are fixed-size and don't have anything like a push or pop operation. Both have an automatically resizing container backed by an array that is referred to as a list. Python's use of "list" matches the use in Java and C# perfectly.
- brudgers 8y agoRequiring 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