For strings, it is easy to iterate over each character : Member in : String PYTHON TUTORIALS


PYTHON TUTORIALS » String » Member in »

 

For strings, it is easy to iterate over each character


foo = 'abc'
for c in foo:
    print c



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo String
» Member in