Skip to content

Update Lecture Day 3 and Interactive Session 3 for smaller conceptual jumps #59

@ryoliver

Description

@ryoliver

Some of the introduction to for loops seems overly complicated.

The first example directly steps through vector elements, instead of iterating by position. And then we learn how to iterate by position. Personally, I think the first approach is harder to break into steps to show students, so it might be easier to go straight to the indexing approach. Especially because we introduce indexing at the end of the previous day

Approach 1:
Image

Approach 2:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions