Skip to content

Commit

Permalink
Added continue example
Browse files Browse the repository at this point in the history
  • Loading branch information
qtsathish committed May 25, 2021
1 parent 5a62b25 commit 8ab5d6b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions May21/looping/continuedemo.py
@@ -0,0 +1,11 @@
# This program will print all the numbers from 1 to 100
# apart from multiples of 7

index = 1
max_number = 100
while index <= max_number:
if index % 7 == 0:
index = index+1
continue
print(index)
index = index + 1

0 comments on commit 8ab5d6b

Please sign in to comment.