1. Glossaryفەرهەنگی زاراوەکان
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ڤیدیۆکان

List Comprehensions - Visually ExplainedVisually Explained · Englishئینگلیزی · 75K viewsبینین · 3.4K likesلایک · Partبەشی 0:15–4:54 (ofلە 9:02)

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