can we use else without if in python

In most of the programming languages (C/C++, Java, etc), the use of else statement has been restricted with the if conditional statements. But Python also allows us to use the else condition with for loops. The else block just after for/while is executed only when the loop is NOT terminated by a break statement

Here is what the above code is Doing:
1. We have a list of numbers: [1, 2, 3, 4, 5]
2. We iterate through the list using a for loop
3. If the number is equal to 3, we break out of the loop
4. Otherwise, we print the number
5. Since the number 3 was not found in the list, the else block is executed and “Item not found” is printed