yalnızca isimli ve yalnızca pozisyonel olarak kullanılabilen argümanlar 1

This commit is contained in:
Mert Gör 🇹🇷 2023-05-24 05:57:03 +03:00
parent 817281eb31
commit aa685e666c
No known key found for this signature in database
GPG Key ID: 2100A876D55B39B9

5
python-temel/arguman.py Normal file
View File

@ -0,0 +1,5 @@
def foo(a, b, *, c, d):
print(a, b, c, d)
foo(10, 20, c = 10, d = 20) #geçerli
foo(10, 20, d = 20, c = 20) #geçerli