Quick actions

cmd+k|ctrl+k

Navigation

Languages

13 Apr 2026 (For Loop) (4)

Snippet info

Language

Python

Visibility

public

Author

fee350

Created

2026-04-13T12:06:08.242214Z

Updated

2026-04-13T12:06:40.438153Z

while True:
     for i in range(1,80,21):
         if i == 22:
            continue
         if i == 43:
            break
         print(i)
     if i == 43: #加呢行先可以break到, 唔係就無限Loop
        break
print(i)
INFO