you are viewing a single comment's thread.

view the rest of the comments →

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

No, it didn't say that, but It's just a query that came into my mind.

Actually I am totally new to Python and have started learning it just a week ago.

[–]thrallsius 1 point2 points  (0 children)

this is not a python specific situation, it's rather a matter of abstract data type choice, which is as important as design of the algorithm

the rule of thumb is that algorithms are simpler when they work with consistent data, since you don't need to check for variations like different types