Получите самый большой из 2 струн Python
s1 = 'longlongstring'
s2 = 'shortstring'
longestString = max(s1, s2, key=len)
# returns 'longlongstring'
QuietHumility
s1 = 'longlongstring'
s2 = 'shortstring'
longestString = max(s1, s2, key=len)
# returns 'longlongstring'