3 ms·
It's only surprising if you expect it to behave like another language. Python variables are function (not block) scoped.
by karmakaze 7y ago
It's only surprising if you expect it to behave like another language. Python variables are function (not block) scoped.