Loop variable
گۆڕاوی خول
Proposed Kurdish term — under reviewزاراوەی پێشنیارکراو — لە ژێر پێداچوونەوەدایە Definitionپێناسە
The that a for loop gives a new value on each , like i in for i in range(1, 11):. In Python it still exists after the loop and keeps its last value.
ئەو کە لە هەر نرخێکی نوێی پێ دەدات، وەک i لە for i in range(1, 11):ـدا. لە Pythonـدا دوای هێشتا ماوە و دوایین نرخی خۆی دەپارێزێت.
Exampleنموونە
After the loop, i is still 2 and square is still 4.
دوای ، i هێشتا 2ـە و square هێشتا 4ـە.
for i in range(3):
square = i * i
print(i, square) # 2 4Other Kurdish renderings in useوەرگێڕانە کوردییەکانی تر
گۆڕاوی خولەکە، گۆڕاوەکانی خول، گۆڕاوێکی خول
Note on the Kurdish termتێبینی دەربارەی زاراوە کوردییەکە
Built on the registry's variable (گۆڕاو) and loop (خول). The lecturer's textbook calls it a control variable. Proposed.
Related termsزاراوە پەیوەندیدارەکان
Videosڤیدیۆکان
The parts of a for loop: the loop variable gets each item in turn, and the indented loop body runs once for every item.
بەشەکانی : یەک لە دوای یەک هەموو وەردەگرێت و ، کە بە نووسراوە، بۆ هەر جارێک جێبەجێ دەبێت.
Learn more inزیاتر فێربە لە
- The for Loop and range()خولی for و
range() - Variable Scope: Local and Globalمەودای گۆڕاوەکان: ناوخۆیی و گشتی
- for Loops: Sums, Series and Searchingخولەکانی for: کۆکردنەوە، زنجیرە و گەڕان
- Nested Loops and Patternsخولە ناوەکییەکان و کێشانی شێوە
- Lists: Creating and Indexingلیستەکان: دروستکردن و ئیندێکسەکان
- Adding to a List and Finding Itemsزیادکردن بۆ لیستێک و دۆزینەوەی دانەکان