Skip to content

Commit 15c65ea

Browse files
committed
Lambda, Closure
1 parent 32b2b63 commit 15c65ea

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ import re
300300
```
301301

302302
### Special Sequences
303-
**Expressions below hold true only for strings that contain only ASCII characters. Use capital letter for negation.**
303+
**Expressions below hold true for strings that contain only ASCII characters. Use capital letter for negation.**
304304
```python
305305
'\d' == '[0-9]' # Digit
306306
'\s' == '[ \t\n\r\f\v]' # Whitespace
@@ -516,8 +516,8 @@ Inline
516516
------
517517
### Lambda
518518
```python
519-
lambda: <return_value>
520-
lambda <argument_1>, <argument_2>: <return_value>
519+
<function> = lambda: <return_value>
520+
<function> = lambda <argument_1>, <argument_2>: <return_value>
521521
```
522522

523523
### Comprehension
@@ -609,7 +609,7 @@ def get_multiplier(a):
609609
### Partial
610610
```python
611611
from functools import partial
612-
<function> = partial(<function>, <argument_1> [, <argument_2>, ...])
612+
<function> = partial(<function> [, <argument_1>, <argument_2>, ...])
613613
```
614614

615615
```python
@@ -619,7 +619,7 @@ from functools import partial
619619
```
620620

621621
### Nonlocal
622-
**If variable is being assigned to anywhere in the scope, it is regarded as a local variable, unless it is declared as 'global' or 'nonlocal'.**
622+
**If variable is being assigned to anywhere in the scope, it is regarded as a local variable, unless it is declared as a 'global' or 'nonlocal'.**
623623

624624
```python
625625
def get_counter():

0 commit comments

Comments
 (0)