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

1 Answer

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

 



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