🔄 Loops: Count & Condition
1. The FOR Loop (Count-controlled)
Used when you know exactly how many times to repeat.
for i in range(1, 6):
print("Counting:", i)
2. The WHILE Loop (Condition-controlled)
Used when you want to repeat until a condition changes.
password = ""
while password != "secret":
password = input("Enter password: ")
print("Access Granted!")