fonksiyon çağrılarında isimli argüman kullanılması

This commit is contained in:
Mert Gör ☭ 2023-05-24 04:56:01 +03:00
parent e35d7eba90
commit 38f6560d4a
No known key found for this signature in database
GPG Key ID: 2100A876D55B39B9
2 changed files with 12 additions and 0 deletions

View 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)

View 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')