1. Glossaryفەرهەنگی زاراوەکان
Indentation
بۆشایی سەرەتای دێڕ
Proposed Kurdish term — under reviewزاراوەی پێشنیارکراو — لە ژێر پێداچوونەوەدایە

Definitionپێناسە

The spaces at the start of a line of code. In Python, indentation is part of the : all lines of a must start with the same number of spaces, usually 4. Most other languages mark blocks with braces { } and indent only to make code easy to read.

ئەو بۆشاییانەن کە لە سەرەتای دێڕێکی کۆددا دادەنرێن. لە Pythonـدا بۆشایی سەرەتای دێڕ بەشێکە لە : دێڕەکانی (جەستەی if، یان ) دەبێت بە هەمان ئەندازە بچنە ناوەوە، زۆرجار 4 بۆشایی. زۆربەی زمانەکانی تر کەوانەی { } بەکار دەهێنن و بۆشایی تەنها بۆ ئاسانکردنی خوێندنەوە دادەنێن.

Exampleنموونە

The first print belongs to the if because it is indented; without the 4 spaces Python stops with IndentationError.

یەکەم print سەر بە ifـە چونکە بۆشایی سەرەتای دێڕی هەیە؛ بەبێ ئەو 4 بۆشاییە Python بە IndentationError دەوەستێت.

score = 7
if score > 5:
    print("Pass")   # indented: inside the if
print("Done")       # not indented: after the if

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

ئیندێنت

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

Descriptive coinage on the registry's whitespace (بۆشایی): the space at the start of a line. Many students say ئیندێنت. The AI course's lessons (ai-python-for-ai-labs, ai-agent-programs) already write «بۆشاییی سەرەتای دێڕ» for it. Proposed.

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

Videosڤیدیۆکان

Indentation in Python (Part 1)Neso Academy · Englishئینگلیزی · 165K viewsبینین · 2.8K likesلایک · Partبەشی 0:28–4:31 (ofلە 11:42)

Indentation is the leading whitespace before a statement; in Python it marks which lines form a block, where C uses braces.

ئەو کە پێش دادەنرێت؛ لە دیاری دەکات کام دێڕانە پێکدەهێنن، لە کاتێکدا C کەوانەی { } بەکاردەهێنێت.

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