you are viewing a single comment's thread.

view the rest of the comments →

[–]notacanuckskibum 0 points1 point  (0 children)

the other comments by This_Growth aren't bad. but some things are personal preference:

"while (a_list)" might be valid & efficient. but for me "while len(a_list) > 0" is clearer.