Mega Code Archive
Categories
/
Python Tutorial
/
String
For strings, it is easy to iterate over each character
foo = 'abc' for c in foo: print c