We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f454c1c commit 4dd896bCopy full SHA for 4dd896b
flow/other_statement/break.py
@@ -0,0 +1,10 @@
1
+import math
2
+
3
+n = 20
4
+for i in range(2, n):
5
+ for j in range(2, int(math.sqrt(i) + 1)):
6
+ if i % j == 0:
7
+ print(i, 'has a prime factor', j)
8
+ break
9
+ else:
10
+ print(i, 'is a prime number')
flow/other_statement/continue.py
@@ -0,0 +1,15 @@
+strings = ['dragon',
+ 'internationalization',
+ 'supersymmetry',
+ 'Python',
+ 'nightmare',
+ 'contribution',
+ 'mass']
+n = 10
+print('list:', strings)
11
+print('10 letters or short words:')
12
+for w in strings:
13
+ if len(w) > 10:
14
+ continue
15
+ print(w)
0 commit comments