Alphabetizing?

tjland at iserv.net tjland at iserv.net
Sat Aug 23 13:27:52 EDT 2003


Ok, im trying to creat a small simple program that alphabetizes user
inputed words. I thought why not just create a def that splits all the
words down into char's then take the first char and crosscheck it with all
lowercase letters. Then find its position and return the results to the
user in order or 1-26! But this takes a long time and the code gets
confusing. Any suggestion? Thanx in advance!


         When you see the net take the shot
         When you miss your shot shoot again
           When you make your shot you win!

                   Just remember
               Offense sells tickets
           But defense wins championships!





More information about the Python-list mailing list