How do the max() and min() functions work with a series of string arguments?
When running this code:
max_string = max("hi","hello","salutations") print max_string
I got an output of ‘salutations’ and so guessed it had something to do with character length.
But when running this code:
min_string = min("hi","hello","salutations") print min_string
I got an output of ‘hello’.
Can someone please explain how this works ?