Skip to content

Commit 11c46e4

Browse files
committed
do-while
1 parent a3211f8 commit 11c46e4

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Scripts/do-while.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/usr/bin/python
2+
3+
i = 1
4+
5+
while True:
6+
print(i)
7+
i = i + 1
8+
if(i > 3):
9+
break

0 commit comments

Comments
 (0)