Contact: aviboots(AT)netvision.net.il
39,923 questions
51,856 answers
573 users
lst = ['python', 'c', 'Java', 'c++', 'Php', 'c#'] # sort independently to uppercase and lowercase letters lst = sorted(lst, key=str.lower, reverse=True) for item in lst: print(item, end=" ") ''' run: python Php Java c++ c# c '''
lst = ['python', 'c', 'Java', 'c++', 'Php', 'c#'] lst = sorted(lst, reverse=True) for item in lst: print(item, end=" ") ''' run: python c++ c# c Php Java '''