Sometimes, a specific task has to be repeated several times. In such cases, we could use loops. In Python, there are two types of loops, namely the for loop and while loop. Let's review them with specific examples.