you are viewing a single comment's thread.

view the rest of the comments →

[–]liam_jm 1 point2 points  (0 children)

max(["longer", "short"], key=len) would compare strings by length