My first attempt at python
kahuna01 at hotmail.com
Fri Dec 8 13:02:37 CET 2000
This is the first piece of code that I wrote in Python. So far
I think that Python is wonderful. Being inexperienced as I am in
python, I would like your help in analyzing my code and telling me
where I can improve.
This same functionality might be in a module somewhere, but I
wrote it for practice. Its a string tokenizer. If you could analyze it
and tell me where I could improve I would be grateful.
"Break a string up into individual words"
last_space = 0
token = 
for index in range(len(string_to_chop)):
if string_to_chop[index:index+1] == " ":
last_space = index + 1
elif (index+1 == len(string_to_chop)):
More information about the Python-list