Something like max(len(s1), len(s2))
will only return the maximum length. But if I actually want to find out which string is longer, and perhaps save it to another string, how is that done? max(s1,s2)
seems to return the string with the larger value, but not necessarily the longest.
Note: this has to be done without lists or arrays.