1. Glossaryفەرهەنگی زاراوەکان
Sentinel value
نرخی پاسەوان
Proposed Kurdish term — under reviewزاراوەی پێشنیارکراو — لە ژێر پێداچوونەوەدایە

Definitionپێناسە

A special value that marks the end of the input, such as 0 or "quit": a loop keeps reading values until the user types the sentinel. It must be a value that can never be real data.

تایبەتە کە کۆتایی نیشان دەدات، وەک 0 یان "quit": بەردەوام نرخ وەردەگرێت تا نرخی پاسەوان دەنووسێت. دەبێت نرخێک بێت کە هەرگیز ڕاستەقینە نەبێت.

Exampleنموونە

The user types numbers; 0 is the sentinel that ends the loop and shows the total.

ژمارە دەنووسێت؛ 0 نرخی پاسەوانە کە کۆتایی پێ دەهێنێت و کۆی گشتی پیشان دەدات.

total = 0
number = int(input("Number (0 to stop): "))
while number != 0:          # 0 is the sentinel
    total += number
    number = int(input("Number (0 to stop): "))
print("Total:", total)

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

نرخی پاسەوانەکە، نرخێکی پاسەوان

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

Descriptive coinage: پاسەوان (guard, watchman) translates 'sentinel'; built on the registry's value (نرخ). Proposed.

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

Videosڤیدیۆکان

While loops in Python are easy! ♾️Bro Code · Englishئینگلیزی · 932K viewsبینین · 22K likesلایک · Partبەشی 3:39–5:08 (ofلە 6:58)

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