Understanding closures in Python

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

Very cool... I hope i remember this when the need arises

EnglishRain
Автор

So does it create inner function every time we call the adder_5 function ??

s.g.
Автор

Instead of this, y not simply and directly define two input variables in the outer layer so there is only one level and no closure? In this example, we can define adder(value, base)

CTT
join shbcf.ru