1. Glossaryفەرهەنگی زاراوەکان
Keyword argument
ئارگیومێنتی ناودار
Proposed Kurdish term — under reviewزاراوەی پێشنیارکراو — لە ژێر پێداچوونەوەدایە

Definitionپێناسە

An written as name=value, so it goes to the with that name, in any order: print_area(height=3, width=2). In a call, all must come before the keyword arguments.

کە بە شێوەی name=value دەنووسرێت، بۆیە بە هەر ڕیزبەندییەک بێت دەچێتە ئەو هەمان ناوی هەیە: print_area(height=3, width=2). لە هەموو دەبێت پێش ئارگیومێنتە ناودارەکان بن.

Exampleنموونە

The names decide where the values go, so the order does not matter; a positional argument after a keyword argument is a SyntaxError.

ناوەکان دیاری دەکەن نرخەکان بۆ کوێ دەچن، بۆیە ڕیزبەندی گرنگ نییە؛ دوای ئارگیومێنتێکی ناودار SyntaxError دەدات.

def print_area(width=1, height=2):
    print(width * height)

print_area(height=3, width=2)   # 6
# print_area(width=2, 3)  -> SyntaxError

Other Kurdish renderings in useوەرگێڕانە کوردییەکانی تر

ئارگیومێنتە ناودارەکە، ئارگیومێنتە ناودارەکان، ئارگیومێنتێکی ناودار

Note on the Kurdish termتێبینی دەربارەی زاراوە کوردییەکە

A named (ناودار) argument: 'keyword' here means the parameter's name, not a reserved keyword (وشەی کلیلەیی), so a word-for-word translation is avoided. Proposed.

Related termsزاراوە پەیوەندیدارەکان

Videosڤیدیۆکان

Python Arguments in Functions (Positional, Keywords & Default Arguments) #13Programiz · Englishئینگلیزی · 109K viewsبینین · 2K likesلایک · Partبەشی 3:37–4:46 (ofلە 6:14)
Python keyword arguments are awesome! 🗝️Bro Code · Englishئینگلیزی · 68K viewsبینین · 1.7K likesلایک · Partبەشی 0:00–4:36 (ofلە 6:44)

Learn more inزیاتر فێربە لە