Harry Potter and the Deathly Hallows: Part 2 download mp4
Harry Potter and the Deathly Hallows: Part 1 - 720p x264-HDMP4.Q:
String-Sorting using Python 3.3
Trying to write a function to sort a given string by letters. My current output is:
letters = list(set(str))
This is just a prototype. I'm not looking for a definitive answer here, just some guidance on how I can improve the code so I know what I'm doing.
I would use string.split() to split the string by the separator (in this case the " " character).
Create a list of lists containing the individual pieces (if more than one word is separated, that would be separated into a different list), then sort that list by the string's alphabetical order, and then put it all back together.