Python membuat variabel lokal

def foo():
    y = "local"
    print(y)

foo()
SAMER SAEID