What Java, JavaScript and C# call "arrays"
are each very much like what Python calls
"lists'.
In Java and C#, 'arrays' are fixed size at creation time.
Both Java and C# provide 'lists' which are variable sized*
Python 'lists' are variable-sized.
Seems like a consistent naming scheme to me?
*there might be an underlying array that gets reallocated - but it's encapsulated within the list object; the reference to the list object is unchanged when this happens.
Both Java and C# provide 'lists' which are variable sized*
Python 'lists' are variable-sized.
Seems like a consistent naming scheme to me?
*there might be an underlying array that gets reallocated - but it's encapsulated within the list object; the reference to the list object is unchanged when this happens.