Possible Duplicate:
how to sort by length of string followed by alphabetical order?
I want to create a program that prints the word in a list in order of shortest to longest character count. For example:
["My", "turtle", "is", "old"]
would output:
"My"
"is"
"old"
"turtle"
Is there any simple way to do this? I have so far:
message = "My turtle is old"
message = message.split(" ")