“Python sortuj według długości i alfabetycznie” Kod odpowiedzi

Python sortuj według długości i alfabetycznie

the_list.sort() # sorts normally by alphabetical order
the_list.sort(key=len, reverse=True) # sorts by descending length
Mysterious Mongoose

Python sortuj według długości i alfabetycznie

the_list.sort() # sorts normally by alphabetical order
the_list.sort(key=len, reverse=True) # sorts by descending length
Mysterious Mongoose

Odpowiedzi podobne do “Python sortuj według długości i alfabetycznie”

Pytania podobne do “Python sortuj według długości i alfabetycznie”

Więcej pokrewnych odpowiedzi na “Python sortuj według długości i alfabetycznie” w Python

Przeglądaj popularne odpowiedzi na kod według języka

Przeglądaj inne języki kodu