var = 0 def foo(x, y): var = x + y return var
var = 0 def foo(x, y): v = x + y return v # or return x + y
Used when a variable’s name hides a name defined in the outer scope.