get the largest of 2 strings python

Solutions on MaxInterview for get the largest of 2 strings python by the best coders in the world

showing results for - "get the largest of 2 strings python"
Guadalupe
12 Aug 2017
1s1 = 'longlongstring'
2s2 = 'shortstring'
3
4longestString = max(s1, s2, key=len)
5
6# returns 'longlongstring'