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

Lesson: control flow #12

Open
tpoisot opened this Issue Oct 30, 2017 · 1 comment

Comments

Projects
None yet
2 participants
@tpoisot
Copy link
Owner

tpoisot commented Oct 30, 2017

This issue is a catch-all for general comments on Lesson 2.

Lesson 2 can be viewed online here: https://nbviewer.jupyter.org/github/tpoisot/ScientificComputingForTheRestOfUs/blob/master/lessons/02_flow_of_execution.ipynb

@philippbayer

This comment has been minimized.

Copy link

philippbayer commented Nov 15, 2017

This looks extremely polished! I only have one comment - when I started out learning for loops the teacher went through the for loop and wrote down what the placeholder variable random_number is for each step, essentially to deconstruct the loop. I think that's a more detailed way of explaining how for loops work.

I've also seen it the other way around - first write out the five (or so) steps the for loop would do manually, like

random_number = random_numbers[0]
if random_number <= 0.5:
    println('foor')
else:
    println('bar')
random_number = random_numbers[1]
etc.

then show how a for loop can make life easier.

@tpoisot tpoisot changed the title Lesson 2 (flow) general discussion Lesson: control flow Jun 14, 2018

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