For Loop in Python
Introduction A for loop is used to execute a block of code repeatedly by iterating through a sequence, such as a list, tuple, string, or range of numbers. Instead of writing the same code multiple times, we can use a for loop to make our programs shorter and easier to understand.