filbert icon indicating copy to clipboard operation
filbert copied to clipboard

Looping over characters in string gives indexes, not values

Open nemoyatpeace opened this issue 10 years ago • 1 comments

a = 'ashdifaweflaskdjfpaoisd' for c in a: print(c)

This loop doesn't work properly, seems to actually work like: for c in range(len(a)):

It iterates over integers instead of the letters.

nemoyatpeace avatar Jul 01 '15 13:07 nemoyatpeace

Right now says Dont do this yet.

nwinter avatar May 23 '16 16:05 nwinter