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

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
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'