python-CSD-kursu/python-temel/scope.6.py

9 lines
119 B
Python

def foo():
x = [1, 2, 3, 4, 5]
for i in x:
print(i)
print(i) # geçerli
foo()