python-CSD-kursu/python-temel/fonksiyon.parametre.geri.py~

20 lines
388 B
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

def bar(a, b, c):
print(f'bar çağrıldı: {a}, {b}, {c}')
def tar(f):
print(f'tar çağrıldı: {a}, {b}, {c}')
def zar():
print(f'Araya girecek kod: {a}, {b}, {c}')
f()
return zar
return tar
@foo('ali', 'veli', 'selami')
def foo():
print('foo çağrıldı')
# foo = bar('ali', 'veli', 'selami')(foo)
foo()
foo()
foo()