isimli argümanlar

This commit is contained in:
Mert Gör 🇹🇷 2023-05-24 05:22:25 +03:00
parent 20903123fc
commit afc59c69ab
No known key found for this signature in database
GPG Key ID: 2100A876D55B39B9

View File

@ -0,0 +1,3 @@
def foo(a, b, c = 10, d = 20, e = 30, f = 40):
print("a = {}, b = {}, c = {}, d = {}, e = {}, f = {}".format(a, b, c, d, e, f))
foo(1, 2, 3, f = 100) # Burada boşuna d ve e için argüman girişi yapmadık