Write a program to Sort the string list alphabetically


Topic: Write a program to Sort the string list alphabetically

Solution

thislist = ["orange", "mango", "kiwi", "pineapple", "banana"]
thislist.sort()
print(f"Sorted List:{thislist}")



List all Python Programs