can max() function be used for strings code example
Example: get the largest of 2 strings python
s1 = 'longlongstring'
s2 = 'shortstring'
longestString = max(s1, s2, key=len)
# returns 'longlongstring'
s1 = 'longlongstring'
s2 = 'shortstring'
longestString = max(s1, s2, key=len)
# returns 'longlongstring'