I've just started using python in my computer technology class. One thing I can't figure out is how to have python put the lists inside a string into alphabetical order. If anyone has any easy answer, it will be much appreciated. Also, my teacher told me he would give extra credit if I use bubblesort.
Sorry, I'll be more specific. Right now, we are practicing how to read the text from another file using python. The file we are reading is a list of several names. I've so far read the text in the file and put it into a for statement loop. I was wondering how to have python put the names into alphabetical order. That is the main objective, but more teacher told me he would be impressed if I could somehow use bubble sort for it.