Python local variables
Apparently variables are local to a given function simply by virtue of being defined within said function. No keyword needed:
def f():
s = 'some value'
print(s)
ERROR: You fool! s isn't defined!!
Apparently variables are local to a given function simply by virtue of being defined within said function. No keyword needed:
def f():
s = 'some value'
print(s)
ERROR: You fool! s isn't defined!!