x = 10 def foo(): x = 20 # geçerli, yeni bir yerel x print(x) foo()