Content deleted Content added
m →In Ruby: Fix spelling of RubyKaigi |
Use Python 3 to demonstrate closures in Python; the Python 2 version is largely obsolete and doesn't add much value to the article |
||
Line 633:
Since functions are objects, they can also be defined locally, given attributes, and returned by other functions
,<ref>[https://docs.python.org/3/reference/compound_stmts.html#function-definitions Python reference manual - Function definitions]</ref> as demonstrated in the following
<source lang=Python3>
|