# An empty list
sorter=[]

# A for loop to add whatever the user enters to the list
for a in (raw_input("Enter some words/letters to sort in alphabetical order: ")):
    sorter.append(a)

print sorted(sorter)
1
Contributor
0
Replies
1
Views
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.