5 ms·
I would naturally pair loops with iterables, such as lists, particularly in python. I wondered if it was more to do with learning to structure code before struc
by onei 7y ago
I would naturally pair loops with iterables, such as lists, particularly in python. I wondered if it was more to do with learning to structure code before structuring data.
Personally, I'd be inclined to teach basic types and control flow, e.g. loops and conditions, before teaching how to structure code so that you can start with something long and repetitive and understand the benefit of utilising functions. Having said that, both are fairly basic concepts so I don't think you'd lose much either way.