Skip to content

Part 4: squared_numbers - First Example of list comprehension. #17

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

Closed
riseriyo opened this issue Sep 14, 2014 · 3 comments
Closed

Part 4: squared_numbers - First Example of list comprehension. #17

riseriyo opened this issue Sep 14, 2014 · 3 comments

Comments

@riseriyo
Copy link
Contributor

Concerning the squared_numbers example:
Ok, I'm assuming that you are going to go over how the list comprehension is written out differently from a for-loop, correct? e.g., what part of the for-loop is where in the list comprehension, etc.

@riseriyo riseriyo changed the title Part 4: First Example of list comprehension. Part 4: squared_numbers - First Example of list comprehension. Sep 14, 2014
@treyhunner
Copy link
Member

What's written is all we have right now. I agree that the explanation for that part doesn't feel entirely complete. I haven't found a good explanation of list comprehensions online that didn't rely heavily on examples to teach the syntax.

@macro1
Copy link
Member

macro1 commented Sep 16, 2014

I was looking at this a bit yesterday evening... I think someone needs to make an image linking the different loop parts to show how they are the same pieces shuffled. The notbooks seem a bit too restrictive to do it directly through formatting.

@willingc
Copy link
Member

Closing since this seems to be addressed in current Part 4 version and PR #41. Please reopen if needed. 🍪

macro1 added a commit that referenced this issue Sep 19, 2014
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

4 participants