Loops In the Real World

Loops In the Real World

Published on 14 November 2020
Transcript
00:00
Loops in the Real World
00:00
Nyla Watt
00:06
What is a loop in computer programming? 
00:06
A loop is a computer code that repeats a command or a list of commands until a condition is met.  
00:13
Real world example of a loop
00:15
As a program:
00:15
While
00:16
(foot not on brake peddle):
00:17
Condition
00:18
accelerate car
00:20
Repeated Action
00:24
While (not foot on break peddle): accelerate
00:30
Foot on break at stop sign (condition met) Car stops accelerating