Skip to content

Commit 7c9f97f

Browse files
committed
modify
1 parent d6131a5 commit 7c9f97f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

02.Python_functions/1.Python_functions_scripts/10.Python_closure.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ def division(x, y):
7777

7878
# 2. Instead of defining the global variables outside the function, using
7979
# closure to define nonlocal variables inside the outer function, and then
80-
# modyfy them inside the inner function, in this case achieving our goal
81-
# without changing the global variables, this will provide a readiable and
82-
# clean code and the code will be easy to debug.
80+
# modify them inside the inner function, in this case achieving our goal
81+
# without changing the global variables, will provide a readable and clean
82+
# code and the code will be easy to debug.
8383
# 3. Closures are used in Python Decorators, as it will be discussed in
8484
# section 4 later.

0 commit comments

Comments
 (0)