1. Glossaryفەرهەنگی زاراوەکان
f-string
Established Kurdish termزاراوەی کوردیی جێگیر

Definitionپێناسە

A Python with the letter f before the quotes. Expressions inside { } are replaced by their values, and a after a colon controls how they look: f"{price:.2f}".

Pythonـە کە پیتی f پێش دەنووسرێت. ناو { } بە نرخەکانیان دەگۆڕدرێن و دوای دوو خاڵ شێوەیان دیاری دەکات: f"{price:.2f}".

Exampleنموونە

The values of name and price are put into the text, and .2f keeps two digits after the point.

نرخەکانی name و price دەخرێنە ناو دەقەکەوە و .2f دوو دوای خاڵەکە دەهێڵێتەوە.

name = "Aram"
price = 3.14159
print(f"{name} paid {price:.2f} dinars")   # Aram paid 3.14 dinars

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

ئێف-سترینگ

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

A Python syntax name kept as it is, like the registry's heredoc; Python's documentation calls it a 'formatted string literal'. It is Python's form of string interpolation (تێخستنی گۆڕاو).

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

Videosڤیدیۆکان

Python F-strings - Visually ExplainedVisually Explained · Englishئینگلیزی · 67K viewsبینین · 3.2K likesلایک · Partبەشی 0:18–2:19 (ofلە 7:22)

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