Four security drones are blocking Bolt's route.
This time, the program should continue repeating
while drones remain active.
Use a while loop to clear the security zone.
Your while loop controls the shutdown sequence.
The variable
drones_remaining
starts at
4.
Keep disabling drones while the value is
greater than 0. After each drone
is disabled, reduce the value by one.
while drones_remaining > 0
drones_remaining
by 1
If
drones_remaining
started at
3
and decreased by one each time,
how many times would this loop run?
You used a
while
loop to repeat instructions until a
condition became false.