Is there a method that returns a character at a specified index?

Michael Loomington mloomington at yahoo.ca
Sun Oct 26 21:11:34 EST 2003


Couldn't find anything here
http://www.python.org/doc/2.3.2/lib/string-methods.html

I need to cycle through lines in a file that contain words and compare it to
a string thats given, call it SSS to see if the words in the file can be
written from SSS.  I am planning to grab each letter from the word one at a
time and removing it from SSS and if the letter doesn't exist then I will go
on to the next word.  That's why I need a method that returns a letter at
each index.  Maybe there an easier way of doing this.






More information about the Python-list mailing list