2

Why is it a big deal that arrays start att zero and the length att One? It's logical... Arrays as an index in memory and length as the... Length of the array (numbers of possible objects in the array)

Comments
  • 0
    Dunno where you heard that, arrays start at math.sqrt(2)
  • 0
    What, length starts also at 0, of course. Just think of empty strings or lists.
  • 0
    Array length starts at whatever you initialize the array length to be. It could just as easily start at 2 or 3 or 4 or ...
  • 0
    technically python list indices start at -len(l)
    if by start you mean the smallest valid index
Add Comment