Comment Comment by jmconfuzeus Technically, it makes sense for Python to work like this because your functions are being bound to a variable i which is located in the global scope.I wouldn't call this a design mistake but more of a misunderstanding of how scope works. parent jmconfuzeus 4 years ago
I wouldn't call this a design mistake but more of a misunderstanding of how scope works.