Loops

Whenever code needs to be executed many times, we use loops.

Almost any code I write to provide a service will run in an endless loop until I hit [ctrl][c].

I presume you understand break (which exists the loop) and continue (which goes to the next cycle of the loop) and I will not explain them here.

Last updated