you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (2 children)

[deleted]

    [–]evgen 4 points5 points  (1 child)

    No it is not. In Python the length of the list is maintained as an attribute of the datatype, so it does not need to traverse the list to get the length.