Skip to content

Commit dc84d6e

Browse files
committed
Update global_&_return.rst
Syntax error lines 39 & 50.
1 parent ddb33c5 commit dc84d6e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

global_&_return.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ case is ``result``. In most cases and you won't need to use the
3636
which includes the ``global`` keyword. So what that function is doing is
3737
that it is making a global variable ``result``. What does global mean
3838
here? Global variable means that we can access that variable outside the
39-
scope of the function as well. Let me demonstrate it with an example :
39+
scope of the function as well. Let me demonstrate it with an example:
4040

4141
.. code:: python
4242
@@ -47,7 +47,7 @@ scope of the function as well. Let me demonstrate it with an example :
4747
add(2, 4)
4848
print(result)
4949
50-
# Oh crap we encountered an exception. Why is it so ?
50+
# Oh crap, we encountered an exception. Why is it so?
5151
# the python interpreter is telling us that we do not
5252
# have any variable with the name of result. It is so
5353
# because the result variable is only accessible inside

0 commit comments

Comments
 (0)