Skip to content

Commit 6ace943

Browse files
committed
add
1 parent 06e7f81 commit 6ace943

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

Day-09/loops.py

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
for i in range(10):
2+
print(i)
3+
4+
students = ["Jhon", "Tip", "Snow", "Rest"]
5+
for student in students:
6+
print(student)
7+
8+
number = 6
9+
while number < 7:
10+
print(number)
11+
number += 1
12+
13+
list = [1, 2, 3, 4, 5, 6, 7, 8]
14+
for line in list:
15+
if line == 3:
16+
break
17+
print(line)
18+
19+
list = [1, 2, 3, 4, 5, 6, 7, 8]
20+
for line in list:
21+
if line == 3:
22+
continue
23+
print(line)

0 commit comments

Comments
 (0)