Definitionپێناسە
Describes a value that can be changed after it is made, without making a new one. Python lists, dictionaries and sets are mutable: marks[0] = 75 changes the list itself, and every name that refers to that list sees the change.
بۆ دەوترێت کە دوای دروستکردنی دەتوانرێت بگۆڕدرێت، بەبێ دروستکردنی نوێ. ، و Python گۆڕانهەڵگرن: marks[0] = 75 خودی دەگۆڕێت و هەموو ئەو ناوانەی ئاماژە بەو لیستە دەکەن گۆڕانەکە دەبینن.
Exampleنموونە
The list keeps its identity; only its first item changes.
هەمان لیستە؛ تەنها یەکەم دانەکەی دەگۆڕێت.
marks = [70, 85, 90]
marks[0] = 75
print(marks) # [75, 85, 90]Note on the Kurdish termتێبینی دەربارەی زاراوە کوردییەکە
Descriptive coinage from the Sorani idiom «گۆڕانکاری هەڵدەگرێت / هەڵناگرێت» (it admits / does not admit change): گۆڕانهەڵگر and گۆڕانهەڵنەگر. گۆڕاو (variable) and نەگۆڕ (constant) are avoided because they are already registry terms. Proposed.
Related termsزاراوە پەیوەندیدارەکان
Videosڤیدیۆکان
Learn more inزیاتر فێربە لە
- Lists: Creating and Indexingلیستەکان: دروستکردن و ئیندێکسەکان
- Lists, References, Copies and Functionsلیستەکان، ئاماژەکان، کۆپی و کردارەکان
- Tuples, Sets and Dictionariesتاپڵەکان، کۆمەڵەکان و فەرهەنگەکان
- Stateless and Stateful Widgetsویجێتە بێدۆخەکان و ویجێتە دۆخدارەکان
- App State and Declarative UIدۆخ و ڕووکاری وەسفی
- Positional, Keyword and Default Argumentsئارگیومێنتە شوێنییەکان، ئارگیومێنتە ناودارەکان و نرخە بنەڕەتییەکان