fonksiyon çağrılarında isimli argüman kullanılması
This commit is contained in:
parent
e35d7eba90
commit
38f6560d4a
2 changed files with 12 additions and 0 deletions
6
python-temel/fonksiyon.arguman.2.py
Normal file
6
python-temel/fonksiyon.arguman.2.py
Normal file
|
@ -0,0 +1,6 @@
|
|||
def foo(a, b, c):
|
||||
print('a = {}, b = {}, c = {}'.format(a, b, c))
|
||||
|
||||
foo(10, 20, 30)
|
||||
foo(c = 100, b = 200, a = 100)
|
||||
foo(c = 100, a = 200, b = 300)
|
6
python-temel/fonksiyon.arguman.py
Normal file
6
python-temel/fonksiyon.arguman.py
Normal file
|
@ -0,0 +1,6 @@
|
|||
def disp_banner(text, ch = '-'):
|
||||
print(ch * len(text))
|
||||
print(text)
|
||||
print(ch * len(text))
|
||||
|
||||
disp_banner(ch = '*', text = 'Ankara')
|
Loading…
Reference in a new issue