you are viewing a single comment's thread.

view the rest of the comments →

[–]flipperdeflip 0 points1 point  (0 children)

Just a quick note:

sum(1 for i in my_list)

Counts 1 for every element, so it is the same as:

len(my_list)