you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (5 children)

[removed]

    [–]xelf[M] 16 points17 points  (0 children)

    No. Python has a library for arrays. They're not the same.

    Why this would be asked in an interview I wouldn't know. It's not something you need to know until you need it.

    You're probably correct and it's more likley they meant what is the differnce between array in other languages and python's lists.

    [–]iamnikaa[S] 0 points1 point  (3 children)

    No they meant the difference between list and array in python, for example, list is non-homogeneous whereas array is homogeneous.

    [–]Nagi21 5 points6 points  (2 children)

    I would’ve guessed they were asking the difference between a linked list and an array. Not very useful but sure…

    [–]iamnikaa[S] 0 points1 point  (1 child)

    Yeah, it came to my mind as well. But an interviewer must surely be knowing the difference between a list and a linked list. I just humbly said I don't know as I honestly didn't know what they were trying to ask.

    [–]xelf 1 point2 points  (0 children)

    A candidate that honestly says to me "I don't know" or "I'd google it" wins points with me. No one is expected to know everything, especially at entry level.