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

List comprehensions #4

Open
tlively opened this issue Jul 4, 2018 · 3 comments
Open

List comprehensions #4

tlively opened this issue Jul 4, 2018 · 3 comments
Assignees

Comments

@tlively
Copy link
Collaborator

tlively commented Jul 4, 2018

@mariajayne I noticed that your tic tac toe writeup introduces list comprehensions. Although they are my favorite Python feature, they are really just syntax sugar and I'm not sure it's worth spending time on them when we could be moving on to other more orthogonal features. On the other hand, they really are very useful. Thoughts?

@spencertiberi
Copy link
Collaborator

While I used a list comprehension in the distro for lexicon, I feel like it's knowledge that they don't need; I wouldn't spend a lot of time on them. We could remove them altogether or mention them briefly and move on, much like CS50 with the ternary operator and switches. If we keep them, I'd mention that they could also use for loops more traditionally as well.

@tlively
Copy link
Collaborator Author

tlively commented Jul 4, 2018

I'd be for removing them altogether if we don't want to spend time on them, just to remove a potential stumbling block.

@spencertiberi
Copy link
Collaborator

I'm fine with that logic. It's something they'll be more than able to pick up on their own once they understand both lists and for loops well

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

No branches or pull requests

3 participants