There are two types of loops in Python. For loops and While loops and there are pages on each type of loop here.
For loops are used where we know how many times we want to repeat the piece of code. The variable that keeps track of the number of repeats is created by the for loop and can be used for things within the loop like picking items from a list or positioning an item on the screen.
If a nasty PE teacher tells you to do 10 push ups you start with zero push ups then repeat doing a push up until you have done 10 of them. This is a FOR loop.
While loops keep repeating until something happens. This is useful when you want to keep the program repeating an action until you tell it to stop, like keep asking for an integer between 1 and 10 until the user types one in.
A heat pump that is trying to get a room up to 24 degrees keeps checking the temperature and repeats blowing out hot air while the temperature is below 24 degrees. This is a WHILE loop.