How do you detetermine the longest sequence? Naive use of max doesn't work (for this): >>> max('1111', '222') '222' so I came up with this: def longest(*args): sorted = list(args) sorted.sort(lambda x, y: cmp(len(x), len(y))) return sorted[-1] Comments? Thanks, // m -