What is the output of the following code ?
k=0 def foo(k): k += 1 return k foo(k) print(k)
The scope of the variable "k" is always local to the function block until you make it global using a global keyword
Comment here: