python-CSD-kursu/python-temel/fonksiyon.parametre.geri.py~
Mert Gör 193f00dc08
Geri döndürülen
bu fonksiyonun bir parametresi olmalıdır. Geri döndürülen fonksiyon da başka bir fonksiyon geri döndürmelidir.
2023-08-07 18:06:05 +03:00

20 lines
388 B
Python
Raw 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()