Mastery 18 – Nesting of conditional statements

Here’s WSQ 09, in which I use nesting of conditional statements.

Capture.JPG

Mastery 22 -When to use what type of repetitions on a program.

There are two types of loops in Python, while and for loops, when you want to make a repetition indefinite number of times to use a while, this will go until a condition is met. When you know the number of repetitions you need to make you use a for loops, which go the number of times you tell it to go.

Capture
This is a for loop from my WSQ 11
Capture
This is a while loop from my WSQ 06

CC BY 4.0 Mastery 18 & 22 by davidg2897 is licensed under a Creative Commons Attribution 4.0 International License.