--Originally published at My Home
While loops are pretty simple.
As you can see in the previous image, that’s actually how a while loop is made… Yep it is really that simple; however, you got to be very careful when you do it, because if you don’t indicate how to end the program, it will run forever. That’s why I highlighted the z += 1, Because if you don’t show the program where to stop, you’ll get something like this:
Instead of this:
If you still don’t understand, have this tutorial:
#TC101 #WhileLoops