Incorrect punctuation on "eg" (#22961)
Fixed periods on "eg" on line 24 (my first pull LOL).
This commit is contained in:
committed by
Manish Giri
parent
ff0ab6e4f6
commit
a6354030a4
@ -31,8 +31,7 @@ The [`def`](https://docs.python.org/3/reference/compound_stmts.html#def) keyword
|
||||
|
||||
The first statement of the function body can optionally be a string literal; this string literal is the function's documentation string, or [docstring](https://www.python.org/dev/peps/pep-0257/) (More about docstrings can be found in the section Documentation Strings). Some tools use docstrings to automatically produce online or printed documentation or to let the user interactively browse through code. It's good practice to include docstrings in code that you write, so try to make a habit of it.
|
||||
|
||||
No closing statement is required for the function (eg something similar to Ruby's END), all code that is indented following the opening definition is within scope of the function.
|
||||
|
||||
No closing statement is required for the function (e.g. something similar to Ruby's END), all code that is indented following the opening definition is within scope of the function.
|
||||
|
||||
One interesting thing about functions in Python...
|
||||
We can define a function inside another function!
|
||||
@ -48,3 +47,4 @@ We can define a function inside another function!
|
||||
BAR
|
||||
|
||||
If a function is defined inside another function, the inner function can only be called inside the function in which it was defined.
|
||||
|
||||
|
Reference in New Issue
Block a user