1 parent 00a9a41 commit 31edea1Copy full SHA for 31edea1
1 file changed
for_-_else.rst
@@ -9,7 +9,7 @@ one.
9
Let's first start of by what we know. We know that we can use for loops
10
like this:
11
12
-::
+.. code:: python
13
14
fruits = ['apple', 'banana', 'mango']
15
for fruit in fruits:
@@ -67,7 +67,7 @@ It outputs the prime numbers between 2 to 10. Now for the fun part. We
67
can add an additional ``else`` block which catches the numbers which are
68
not prime and tells us so:
69
70
71
72
for n in range(2, 10):
73
for x in range(2, n):
0 commit comments