Tweeted By @jakevdp
Today in office hours a student came by with a Python bug that essentially boiled down to this:
— Jake VanderPlas (@jakevdp) June 28, 2018
def g(x):
def f():
x += 1
f()
g(0)
That was a fun one to explain 😀
Today in office hours a student came by with a Python bug that essentially boiled down to this:
— Jake VanderPlas (@jakevdp) June 28, 2018
def g(x):
def f():
x += 1
f()
g(0)
That was a fun one to explain 😀