Objective 7: Understand Condition Controlled Iterations
Objective 7: Understand Condition Controlled Iterations
condition
controlled iterations
Objective 7: Understand condition controlled iterations
Keyword: while
Syntax:
2
Objective 7: Understand condition controlled iterations
We can also use a while loo[ to count the number of times a section of code has run.
import random
ballsOut = 1
3
Objective 7: Understand condition controlled iterations
import random
4
Objective 7: Understand condition controlled iterations
5
Objective 7: Understand condition controlled iterations