Module 5: Making Choices and Repeating Iterations

In this module you will learn about Python conditionals and the fundamentals of loops.

Module Learning Outcomes

By the end of the module, students are expected to:

  • Explain the DRY principle and how it can be useful.

  • Write conditional statements with if, elif and else to run different code, depending on the input.

  • Write for loops to repeatedly run code.

  • Describe the expected outcome of code with nested loops.

  • Define and use a function that accepts parameters and returns values.

Accompanied Video