Skip to content

Commit 2757c22

Browse files
Update While Loops.py
1 parent fdf0bc4 commit 2757c22

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

While Loops.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
while i<10:
1414
print(f'\nCount Loop! "{i}" ')
1515
i+=1
16+
17+
'''-----------------------------------------------------------------------------'''
1618

1719
# This conditional while-loop example will never ever stop looping, until the user
1820
# presses either "y" or "n" followed by pressing the "Enter" key to confirm. If the user
@@ -44,6 +46,8 @@
4446

4547
print('\n"Yay!" You broke out of the while-loop example.')
4648

49+
'''-----------------------------------------------------------------------------'''
50+
4751
# This conditional while-loop example will never ever stop looping, until the user
4852
# presses "y" followed by the "Enter" key to confirm. If the user presses any other key
4953
# except "y", the conditional while-loop will keep on looping forever. After the while-
@@ -74,6 +78,8 @@
7478

7579
print('\nThis is the end of the entire conditional while-loop example:')
7680

81+
'''-----------------------------------------------------------------------------'''
82+
7783
# This conditional while-loop example will never ever stop looping, until the user types
7884
# the number "10" followed by pressing the "Enter" key to confirm. If the user types
7985
# any other number keys except "10", the conditional while-loop will keep on looping

0 commit comments

Comments
 (0)