Definitionپێناسە
A collection of different values with no order: {1, 2, 3} in Python, {1, 2, 3} as a Set in Dart. A value is either in the set or not, and checking that is very fast, so search code often keeps the explored set in one.
کۆکراوەیەکی نرخی جیاوازە بەبێ ڕیزبەندی: لە Pythonـدا {1, 2, 3} و لە Dartـدا {1, 2, 3} وەک Set. نرخێک یان لەناو کۆمەڵەکەدایە یان نییە و پشکنینی ئەمە زۆر خێرایە، بۆیە کۆدی گەڕان زۆرجار تێیدا هەڵدەگرێت.
Exampleنموونە
add() puts a cell in the set and in checks for it quickly.
add() خانەیەک دەخاتە ناو و in بە خێرایی بۆی دەگەڕێت.
explored = set()
explored.add((0, 0))
print((0, 0) in explored) # TrueOther Kurdish renderings in useوەرگێڕانە کوردییەکانی تر
کۆمەڵەکە، کۆمەڵەکان، کۆمەڵەیەک، کۆمەڵەی، کۆمەڵەکانی، کۆمەڵەیەکی
Note on the Kurdish termتێبینی دەربارەی زاراوە کوردییەکە
کۆمەڵە is the Sorani mathematics word for a set; DBA.json uses it too (set-operation = کرداری کۆمەڵە). Proposed.
Related termsزاراوە پەیوەندیدارەکان
Videosڤیدیۆکان
Set operations in real code: intersection, difference and symmetric difference between two or three sets, with the set methods.
کارەکانی لە کۆدی ڕاستەقینەدا: ، و لە نێوان دوو یان سێ ، بە .
Learn more inزیاتر فێربە لە
- The Python You Need for the AI Labsئەو Pythonـەی بۆ تاقیگەکانی ژیریی دەستکرد پێویستە
- Depth-First and Breadth-First Searchگەڕانی قووڵایی و گەڕانی پانایی
- Tuples, Sets and Dictionariesتاپڵەکان، کۆمەڵەکان و فەرهەنگەکان
- Dart Functions and Collectionsکردارەکان و کۆکراوەکانی Dart
- Binary Search and Hashingگەڕانی دووانی و هاشکردن
- Search Practice: Midterm-Style Tasksڕاهێنانی گەڕان: ئەرکی وەک تاقیکردنەوەی نیوەی وەرز
- Buttonsدوگمەکان
- Project: Binary to Decimal Converterپڕۆژیلە: گۆڕینی دووانی بۆ دەیی
- Variables and Data Typesگۆڕاوەکان و جۆرەکانی دراوە
- Adding to a List and Finding Itemsزیادکردن بۆ لیستێک و دۆزینەوەی دانەکان
- Lists, References, Copies and Functionsلیستەکان، ئاماژەکان، کۆپی و کردارەکان
- Sets, Elements and Subsetsکۆمەڵەکان، ئەندامەکان و ژێرکۆمەڵەکان
- Working with Stringsکارکردن لەگەڵ زنجیرەنووسەکان
- The for Loop and range()خولی for و
range() - Defining and Calling Functionsناساندن و بانگکردنی کردارەکان
- Return Values and Noneنرخە گەڕاوەکان و None
- Lists: Creating and Indexingلیستەکان: دروستکردن و ئیندێکسەکان
- Handling Errors with try and exceptمامەڵەکردن لەگەڵ هەڵاوێردە بە try و except
- Stacks: Last In, First Outستاکەکان: دوایین هاتوو، یەکەم دەرچوو
- Project: A Word-Scramble Gameپڕۆژیلە: یاریی پیتە تێکەڵەکان
- Python Next to JavaPython لە تەنیشت Javaـەوە
- Agent Programs, Pseudocode and Algorithm Analysisبەرنامەکانی ئەیجێنت، نیمچەکۆد و شیکارکردنی ئەلگۆریزم
- Reasoning with a Knowledge Base in Pythonبیرکردنەوە بە بنکەیەکی زانین لە Pythonـدا