Post

Week 4 - Control (loop)

loop, for, while, list, dict, json

Week 4 - Control (loop)

In this session, we will delve into the building blocks of control flow, particularly looking at how to create and use loops. We will also explore the Python data structures, list and dictionary, and learn how to use them in loops.

Goals

  1. How to repeat a task using loops
  2. Python constructs for loops and while loops
  3. Control the flow of a loop using break and continue
  4. Python data structures: list and dictionary

Slides

  • Loop:
  • Data Structures:
  • Review:

Labs

Readings

This post is licensed under CC BY 4.0 by the author.