Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Looping over characters in string gives indexes, not values #69

Open
nemoyatpeace opened this issue Jul 1, 2015 · 1 comment
Open
Labels

Comments

@nemoyatpeace
Copy link

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.

@nwinter
Copy link
Collaborator

nwinter commented May 23, 2016

Right now says Dont do this yet.

@nwinter nwinter changed the title Looping over characters in string Looping over characters in string gives indexes, not values May 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants