How to find max string from list of strings based on alphabetical order in Python

1 Answer

0 votes
lst = ['python', 'java', "vbz", 'php', 'c', 'vb.net', 'c#', 'c++']
  
s = max(lst)
  
print(s)
 
 
 
'''
run:
 
vbz
 
'''

 



answered Feb 2, 2020 by avibootz
edited Feb 4, 2020 by avibootz
...