Jeroo in Python — while loop vs if test

The main difference between an “if” test and a “while ”

 

While Loops

Happens many times (as long as the test is true)

jeroo whie loop no title


If test

Happens 1 time

jeroo if test example 3