Python Loops

In Python, there are two main types of loops: for loops and while loops. These loops allow you to execute a block of code multiple times based on a certain condition. Output: Output: