From a6354030a45384cb630801e696f5cd7300e62af4 Mon Sep 17 00:00:00 2001 From: pythonprogrammer18 <44296945+pythonprogrammer18@users.noreply.github.com> Date: Thu, 22 Nov 2018 23:09:01 -0500 Subject: [PATCH] Incorrect punctuation on "eg" (#22961) Fixed periods on "eg" on line 24 (my first pull LOL). --- guide/english/python/defining-functions/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/guide/english/python/defining-functions/index.md b/guide/english/python/defining-functions/index.md index 72df3123d9..5d3f133eb0 100644 --- a/guide/english/python/defining-functions/index.md +++ b/guide/english/python/defining-functions/index.md @@ -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. +