This video will introduce while loops. These are a combination of for loops, which repeat a set of commands, and if statements, which execute a set of commands if a condition is true. We’ll do a quick example of a while loop in both Matlab and Python, so you can see the syntax.