Skip to content

Commit ce65257

Browse files
authored
Add files via upload
1 parent 949b3a6 commit ce65257

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

codes_in_JULY2025/for_loops.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
for x in range(1,101):
2+
if x == 37:
3+
print("Found 37, breaking the loop.")
4+
break #stop the loop when x is 37
5+
print(x)
6+
else:
7+
print("Loop completed without finding 37.")

0 commit comments

Comments
 (0)