python-novice-gapminder icon indicating copy to clipboard operation
python-novice-gapminder copied to clipboard

Move up conditionals?

Open sstevens2 opened this issue 6 years ago • 3 comments

As mentioned in as number 7 in #432, a looping exercise requires conditionals.

In addition, the exercises in the Writing Functions episode : "Find the First" and "Encapsulate of If/Print Block" also use conditionals before the conditionals episode.

Perhaps the conditional episode needs be moved up before loops?

sstevens2 avatar Oct 01 '19 20:10 sstevens2

It might be an issue of cognitive load but perhaps since the two are often intertwined we should teach loops and conditionals in one episode?

sstevens2 avatar Oct 01 '19 20:10 sstevens2

When I taught this, I ended up moving the conditionals up into the loops section. It was maybe a little awkward because I did it somewhat on the fly but otherwise seemed to work pretty well.

sstevens2 avatar Nov 20 '19 16:11 sstevens2

I would tend to agree. The potential of for is much clearer when we have conditionals. This is also related to an existing discussion (#636) on the for loop example being not great, and to a general discussion on the order of episodes (#548).

martinosorb avatar Jul 24 '23 19:07 martinosorb