Quick actions

cmd+k|ctrl+k

Navigation

Languages

17-09-2025 while loop 3

Snippet info

Language

Python

Visibility

public

Author

kwahmail

Created

2025-09-17T13:03:40.459557Z

Updated

2025-09-17T13:50:26.759021Z

x=5
while(x>0):
    print("x is larger than 0")
    if x == 5:
        x = x -1
        continue
    if x == 3:
        break
    print(x)
    x = x -1
else:
    print("normal exit of the while")
print('after while')
    
    
INFO