Skip to content

Commit 31edea1

Browse files
committed
Fix code formatting in for_-_else.rst
1 parent 00a9a41 commit 31edea1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

for_-_else.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ one.
99
Let's first start of by what we know. We know that we can use for loops
1010
like this:
1111

12-
::
12+
.. code:: python
1313
1414
fruits = ['apple', 'banana', 'mango']
1515
for fruit in fruits:
@@ -67,7 +67,7 @@ It outputs the prime numbers between 2 to 10. Now for the fun part. We
6767
can add an additional ``else`` block which catches the numbers which are
6868
not prime and tells us so:
6969

70-
::
70+
.. code:: python
7171
7272
for n in range(2, 10):
7373
for x in range(2, n):

0 commit comments

Comments
 (0)