Want to sort a list of strings using Python programming language. Use the following example:
mylist = ["b", "C", "A"]
This modifies your original list (i.e. sorts in-place). To get a sorted copy of the list, without changing the original, use the
for x in sorted(mylist):
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.