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

tuples mentioned but not explained in 05-cond.md #96

Open
PBarmby opened this Issue May 10, 2015 · 1 comment

Comments

Projects
None yet
3 participants
@PBarmby
Contributor

PBarmby commented May 10, 2015

The learning objectives for this section include "Explain the similarities and differences between tuples and lists." but this isn't really covered except briefly in the last exercise. Tuples are also mentioned later on (in 08-defensive.md).

@confluence

This comment has been minimized.

Contributor

confluence commented Jul 8, 2015

I would suggest adding a brief explanation of tuples as immutable lists to the end of chapter 3 (03-lists.md), and moving the two exercises from the end of chapter 5 (the one about tuples and the previous one about "in-place" operators) to the end of that chapter as well. They don't have anything to do with conditional statements, but they do follow logically from the discussion about mutable and immutable types, and chapter 3 is currently much shorter than chapter 5. I am willing to create a pull request for this, since I need to do one to complete my instructor training. :)

I would also like to add a brief explanation that the "in-place" operators are just a syntactic shorthand, and don't really modify values in-place, as well an exercise which demonstrates that if two variables refer to the same list and it's modified in-place through one variable it changes for the other variable as well (unless that's mentioned elsewhere and I've missed it). I think that's a major gotcha for newcomers to programming.

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