Definitionپێناسە
A that collects a result while a runs, such as a running total. It starts at 0 (or an empty string or list), and every adds to it with +=.
کە لە کاتی کارکردنی ئەنجامێک کۆ دەکاتەوە، وەک کۆی گشتی: لە 0 (یان بەتاڵ یان بەتاڵ) دەست پێ دەکات و هەموو بە += شتێکی بۆ زیاد دەکات.
Exampleنموونە
total is the accumulator: 0, then 1500, 4000 and finally 4750.
total گۆڕاوی کۆکردنەوەکەیە: 0، پاشان 1500، 4000 و لە کۆتاییدا 4750.
total = 0
for price in [1500, 2500, 750]:
total += price
print(total) # 4750Other Kurdish renderings in useوەرگێڕانە کوردییەکانی تر
کۆکەرەوە، گۆڕاوی کۆکردنەوەکە، گۆڕاوەکانی کۆکردنەوە، گۆڕاوێکی کۆکردنەوە
Note on the Kurdish termتێبینی دەربارەی زاراوە کوردییەکە
Descriptive coinage: a variable (گۆڕاو, the registry's variable) that adds up (کۆکردنەوە = addition). The shorter کۆکەرەوە is only an alternative, because the Logic Design terms use it for the adder circuit (adder). Proposed.
Related termsزاراوە پەیوەندیدارەکان
Videosڤیدیۆکان
A for loop adds up a series: a running total is updated in every turn, shown first as a flowchart, then as a MATLAB script.
کۆی چەند ژمارەیەک دەدۆزێتەوە: لە هەر نوێ دەکرێتەوە؛ سەرەتا وەک ، پاشان وەک MATLAB.
Learn more inزیاتر فێربە لە
- The while Loopخولی while
- The for Loop and range()خولی for و
range() - for Loops: Sums, Series and Searchingخولەکانی for: کۆکردنەوە، زنجیرە و گەڕان
- Algorithms, Pseudocode and Flowchartsئەلگۆریزمەکان، نیمچەکۆد و هێڵکارییەکانی ڕەوت
- Processing Two-Dimensional Listsکارکردن لەسەر لیستە دووڕەهەندەکان
- while Loops, break and continueخولەکانی while، break و continue
- Project: A Word-Scramble Gameپڕۆژیلە: یاریی پیتە تێکەڵەکان