List comprehension
No established Kurdish equivalent yetهێشتا هاوتای کوردیی جێگیر نییە
No established Kurdish equivalent yetهێشتا هاوتای کوردیی جێگیر نییە Definitionپێناسە
A short Python way to build a list in one line from a loop, such as [False for c in row].
شێوازێکی کورتی بۆ دروستکردنی لە یەک دێڕدا لە ، وەک [False for c in row].
Exampleنموونە
This builds a grid of False values with the same size as the maze.
ئەمە تۆڕێک لە نرخی False دروست دەکات بە هەمان قەبارەی لابیرینتەکە.
maze = ['..#', '#..']
seen = [[False for c in row] for row in maze]
print(seen) # [[False, False, False], [False, False, False]]Note on the Kurdish termتێبینی دەربارەی زاراوە کوردییەکە
No Kurdish source has a term, so ckb is null and the English is shown; lessons can describe it as «دروستکردنی لیست لە یەک دێڕدا». Re-checked at the merge 2026-10-18 (RAI2): still no attested Kurdish term, so the English stays.
Related termsزاراوە پەیوەندیدارەکان
Videosڤیدیۆکان
Learn more inزیاتر فێربە لە
- The Python You Need for the AI Labsئەو Pythonـەی بۆ تاقیگەکانی ژیریی دەستکرد پێویستە
- sum, max, min and Sortingsum، max، min و ڕیزکردن
- Two-Dimensional Listsلیستە دووڕەهەندەکان
- Building Tic-Tac-Toe in Pythonدروستکردنی یاریی ئێکسوئۆ بە Python
- Solving a Maze with DFS and BFSچارەسەرکردنی لابیرینت بە DFS و BFS