Answers for "how to sort a string list in python"

1

how to sort a string list in python

fruits_list = ["orange", "mango", "kiwi", "pineapple", "banana"]
fruits_list.sort()
print(fruits_list)
Posted by: Guest on October-16-2021
-1

python sort list string

# s = list with strings
s.sort(key=str.lower)
Posted by: Guest on March-26-2021

Code answers related to "how to sort a string list in python"

Python Answers by Framework

Browse Popular Code Answers by Language