python-CSD-kursu/python-temel/locals.2.py~

9 lines
77 B
Python

def foo():
a = 10
d = locals()
d['b'] = 100
print(b)
foo()