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 file - explanation of loop variable names does not mention limitations on the names #364

sgenie68 opened this issue Mar 27, 2017 · 2 comments


Copy link

What's in a name? part mentions that any name can be used as a loop variable. IMHO it is worthwhile mentioning here that there are certain rules and limitations on naming the variables even if these rules and limitations are mentioned someplace else. An important thing to consider would be case sensitivity, for one. Also, the scope of a loop variable would be worthwhile mentioning, too - it may lead to confusions.

Copy link

Also the list named 'list' is confusing as it's a key word, and it's not explained in the material. what about renaming to element_list, or elements?

rgaiacs pushed a commit to rgaiacs/swc-python-novice-inflammation that referenced this issue May 6, 2017
Copy link

amjames commented Sep 26, 2017

+1 for introducing the concept of reserved words/tokens.

Also, @aliceminotto FYI the variable named list has been renamed so it is no longer conflicting with a reserved word (see d7c4b61 )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet

No branches or pull requests

3 participants