0

How to sort list of strings alphabetically

Can anyone help me sort a list containing strings alphabetically

18th May 2020, 7:27 PM
Yasir Ali Khan
Yasir Ali Khan - avatar
3 Answers
+ 2
a=["firstString","secondString"] b=sorted(a)
18th May 2020, 7:36 PM
Abhay
Abhay - avatar
+ 2
Pls mention the language name in tags
18th May 2020, 7:30 PM
Abhay
Abhay - avatar
+ 1
Thanks Abhay
18th May 2020, 7:42 PM
Yasir Ali Khan
Yasir Ali Khan - avatar