I'll fo over the syntax and control structure of the WHILE loop and the FOR loop. I'll talk about 2 methods of controlling each loop in Python
While loop using a counter
While loop using a variable trigger
For loop using a range
For loop using a List