[{"data":1,"prerenderedAt":8541},["ShallowReactive",2],{"tutorials-python":3,"category-items-python":987,"content-/python/reading-set-data":988},[4,22,31,40,49,58,67,76,86,95,104,113,122,131,141,150,159,168,177,186,196,205,214,223,233,242,251,260,269,279,288,297,306,315,324,333,342,351,360,369,379,388,397,406,415,424,433,442,452,461,470,479,488,497,506,515,525,534,543,552,561,570,579,588,597,606,616,625,634,643,652,661,670,680,689,698,707,716,725,734,744,753,762,771,780,789,798,807,817,826,835,844,853,863,872,881,890,900,909,918,927,936,945,953,961,970,979],{"_path":5,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":9,"description":10,"slug":11,"order":12,"isParent":13,"icon":14,"_type":15,"_id":16,"_source":17,"_file":18,"_stem":19,"_extension":20,"children":21,"expanded":13},"/python/getting-started","python",false,"","Getting Started","Begin your Python programming journey. Learn what Python is, how to set it up, and write your first programs. Perfect for complete beginners starting their coding adventure.","getting-started",1,true,"pi pi-folder","markdown","content:python:1.getting-started.md","content","python/1.getting-started.md","python/1.getting-started","md",[22,31,40,49,58,67],{"_path":23,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":24,"description":25,"slug":26,"parentId":5,"order":27,"_type":15,"_id":28,"_source":17,"_file":29,"_stem":30,"_extension":20},"/python/what-is-python","What is Python","Discover Python's fascinating history, design philosophy, and key features. Learn why Python has become one of the world's most popular programming languages and perfect for beginners.","what-is-python",2,"content:python:2.what-is-python.md","python/2.what-is-python.md","python/2.what-is-python",{"_path":32,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":33,"description":34,"slug":35,"parentId":5,"order":36,"_type":15,"_id":37,"_source":17,"_file":38,"_stem":39,"_extension":20},"/python/setup-python","Setup Python","Learn how to install Python on your computer and set up your development environment. Step-by-step guide for Windows, macOS, and Linux with beginner-friendly instructions.","setup-python",3,"content:python:3.setup-python.md","python/3.setup-python.md","python/3.setup-python",{"_path":41,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":42,"description":43,"slug":44,"parentId":5,"order":45,"_type":15,"_id":46,"_source":17,"_file":47,"_stem":48,"_extension":20},"/python/your-first-program","Your First Program","Write and run your first Python program! Learn the basics of Python programming with simple examples and step-by-step instructions for beginners.","your-first-program",4,"content:python:4.your-first-program.md","python/4.your-first-program.md","python/4.your-first-program",{"_path":50,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":51,"description":52,"slug":53,"parentId":5,"order":54,"_type":15,"_id":55,"_source":17,"_file":56,"_stem":57,"_extension":20},"/python/python-code-structure","Python Code Structure","Learn how Python code is organized and structured. Understand indentation, line breaks, and the basic rules that make Python programs work correctly.","python-code-structure",5,"content:python:5.python-code-structure.md","python/5.python-code-structure.md","python/5.python-code-structure",{"_path":59,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":60,"description":61,"slug":62,"parentId":5,"order":63,"_type":15,"_id":64,"_source":17,"_file":65,"_stem":66,"_extension":20},"/python/writing-comments","Writing Comments","Learn how to write effective comments in Python. Discover when and how to document your code to make it clear, maintainable, and easy to understand.","writing-comments",6,"content:python:6.writing-comments.md","python/6.writing-comments.md","python/6.writing-comments",{"_path":68,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":69,"description":70,"slug":71,"parentId":5,"order":72,"_type":15,"_id":73,"_source":17,"_file":74,"_stem":75,"_extension":20},"/python/working-with-variables","Working with Variables","Learn how to create, use, and manage variables in Python. Understand how to store data, change values, and follow naming conventions for clean, readable code.","working-with-variables",7,"content:python:7.working-with-variables.md","python/7.working-with-variables.md","python/7.working-with-variables",{"_path":77,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":78,"description":79,"slug":80,"order":81,"isParent":13,"icon":14,"_type":15,"_id":82,"_source":17,"_file":83,"_stem":84,"_extension":20,"children":85,"expanded":13},"/python/basic-data-types","Basic Data Types","Learn about Python's fundamental data types including numbers, text, and boolean values","basic-data-types",8,"content:python:8.basic-data-types.md","python/8.basic-data-types.md","python/8.basic-data-types",[86,95,104,113,122],{"_path":87,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":88,"description":89,"slug":90,"parentId":77,"order":91,"_type":15,"_id":92,"_source":17,"_file":93,"_stem":94,"_extension":20},"/python/understanding-data-types","Understanding Data Types","Learn how Python identifies different data types and why they're important for programming","understanding-data-types",9,"content:python:9.understanding-data-types.md","python/9.understanding-data-types.md","python/9.understanding-data-types",{"_path":96,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":97,"description":98,"slug":99,"parentId":77,"order":100,"_type":15,"_id":101,"_source":17,"_file":102,"_stem":103,"_extension":20},"/python/working-with-numbers","Working with Numbers","Learn about Python's numeric data types including integers and floats, and how to perform calculations","working-with-numbers",10,"content:python:10.working-with-numbers.md","python/10.working-with-numbers.md","python/10.working-with-numbers",{"_path":105,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":106,"description":107,"slug":108,"parentId":77,"order":109,"_type":15,"_id":110,"_source":17,"_file":111,"_stem":112,"_extension":20},"/python/text-and-strings","Text and Strings","Learn how to work with text data in Python using strings, including creation, manipulation, and formatting","text-and-strings",11,"content:python:11.text-and-strings.md","python/11.text-and-strings.md","python/11.text-and-strings",{"_path":114,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":115,"description":116,"slug":117,"parentId":77,"order":118,"_type":15,"_id":119,"_source":17,"_file":120,"_stem":121,"_extension":20},"/python/true-false-values","True/False Values","Learn about boolean values in Python, including True/False logic, comparison operations, and how to use booleans for decision-making in your programs","true-false-values",12,"content:python:12.true-false-values.md","python/12.true-false-values.md","python/12.true-false-values",{"_path":123,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":124,"description":125,"slug":126,"parentId":77,"order":127,"_type":15,"_id":128,"_source":17,"_file":129,"_stem":130,"_extension":20},"/python/converting-types","Converting Types","Learn how to convert between different Python data types including strings, numbers, and booleans","converting-types",13,"content:python:13.converting-types.md","python/13.converting-types.md","python/13.converting-types",{"_path":132,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":133,"description":134,"slug":135,"order":136,"isParent":13,"icon":14,"_type":15,"_id":137,"_source":17,"_file":138,"_stem":139,"_extension":20,"children":140,"expanded":13},"/python/python-operators","Python Operators","Learn about Python operators - the symbols and keywords that perform operations on data. Discover arithmetic, comparison, logical, and assignment operators with simple examples.","python-operators",14,"content:python:14.python-operators.md","python/14.python-operators.md","python/14.python-operators",[141,150,159,168,177],{"_path":142,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":143,"description":144,"slug":145,"parentId":132,"order":146,"_type":15,"_id":147,"_source":17,"_file":148,"_stem":149,"_extension":20},"/python/math-operations","Math Operations","Learn Python's arithmetic operators for mathematical calculations. Master addition, subtraction, multiplication, division, and more with practical examples.","math-operations",15,"content:python:15.math-operations.md","python/15.math-operations.md","python/15.math-operations",{"_path":151,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":152,"description":153,"slug":154,"parentId":132,"order":155,"_type":15,"_id":156,"_source":17,"_file":157,"_stem":158,"_extension":20},"/python/comparing-values","Comparing Values","Learn Python's comparison operators to compare values and make decisions. Master equality, inequality, and relational operators with practical examples.","comparing-values",16,"content:python:16.comparing-values.md","python/16.comparing-values.md","python/16.comparing-values",{"_path":160,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":161,"description":162,"slug":163,"parentId":132,"order":164,"_type":15,"_id":165,"_source":17,"_file":166,"_stem":167,"_extension":20},"/python/logic-operations","Logic Operations","Learn about Python's logical operators for combining conditions and creating complex boolean expressions","logic-operations",17,"content:python:17.logic-operations.md","python/17.logic-operations.md","python/17.logic-operations",{"_path":169,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":170,"description":171,"slug":172,"parentId":132,"order":173,"_type":15,"_id":174,"_source":17,"_file":175,"_stem":176,"_extension":20},"/python/value-assignment","Value Assignment","Learn about Python's assignment operators for efficiently updating variables and performing calculations","value-assignment",18,"content:python:18.value-assignment.md","python/18.value-assignment.md","python/18.value-assignment",{"_path":178,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":179,"description":180,"slug":181,"parentId":132,"order":182,"_type":15,"_id":183,"_source":17,"_file":184,"_stem":185,"_extension":20},"/python/operator-precedence","Operator Precedence","Learn how Python evaluates expressions with multiple operators and how to control evaluation order","operator-precedence",19,"content:python:19.operator-precedence.md","python/19.operator-precedence.md","python/19.operator-precedence",{"_path":187,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":188,"description":189,"slug":190,"order":191,"isParent":13,"icon":14,"_type":15,"_id":192,"_source":17,"_file":193,"_stem":194,"_extension":20,"children":195,"expanded":13},"/python/decision-making","Decision Making","Learn how to make decisions in your Python programs using conditional statements and control flow","decision-making",20,"content:python:20.decision-making.md","python/20.decision-making.md","python/20.decision-making",[196,205,214],{"_path":197,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":198,"description":199,"slug":200,"parentId":187,"order":201,"_type":15,"_id":202,"_source":17,"_file":203,"_stem":204,"_extension":20},"/python/if-statements","If Statements","Learn how to use if statements to make decisions and control program flow in Python","if-statements",21,"content:python:21.if-statements.md","python/21.if-statements.md","python/21.if-statements",{"_path":206,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":207,"description":208,"slug":209,"parentId":187,"order":210,"_type":15,"_id":211,"_source":17,"_file":212,"_stem":213,"_extension":20},"/python/multiple-conditions","Multiple Conditions","Learn how to handle multiple conditions using elif statements and complex conditional logic in Python","multiple-conditions",22,"content:python:22.multiple-conditions.md","python/22.multiple-conditions.md","python/22.multiple-conditions",{"_path":215,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":216,"description":217,"slug":218,"parentId":187,"order":219,"_type":15,"_id":220,"_source":17,"_file":221,"_stem":222,"_extension":20},"/python/pattern-matching","Pattern Matching","Learn how to use Python's match-case statements for powerful pattern matching and complex decision making","pattern-matching",23,"content:python:23.pattern-matching.md","python/23.pattern-matching.md","python/23.pattern-matching",{"_path":224,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":225,"description":226,"slug":227,"order":228,"isParent":13,"icon":14,"_type":15,"_id":229,"_source":17,"_file":230,"_stem":231,"_extension":20,"children":232,"expanded":13},"/python/repetition-and-loops","Python Loops","Learn how to use loops to repeat code efficiently and handle repetitive tasks in Python","repetition-and-loops",24,"content:python:24.repetition-and-loops.md","python/24.repetition-and-loops.md","python/24.repetition-and-loops",[233,242,251,260],{"_path":234,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":235,"description":236,"slug":237,"parentId":224,"order":238,"_type":15,"_id":239,"_source":17,"_file":240,"_stem":241,"_extension":20},"/python/while-loops","While Loops","Learn how to use while loops for condition-based repetition and create loops that run until specific conditions are met","while-loops",25,"content:python:25.while-loops.md","python/25.while-loops.md","python/25.while-loops",{"_path":243,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":244,"description":245,"slug":246,"parentId":224,"order":247,"_type":15,"_id":248,"_source":17,"_file":249,"_stem":250,"_extension":20},"/python/for-loops","For Loops","Learn how to use for loops to iterate through sequences, collections, and ranges efficiently in Python","for-loops",26,"content:python:26.for-loops.md","python/26.for-loops.md","python/26.for-loops",{"_path":252,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":253,"description":254,"slug":255,"parentId":224,"order":256,"_type":15,"_id":257,"_source":17,"_file":258,"_stem":259,"_extension":20},"/python/loop-control","Loop Control","Master advanced loop control techniques including break, continue, and else clauses for sophisticated iteration patterns","loop-control",27,"content:python:27.loop-control.md","python/27.loop-control.md","python/27.loop-control",{"_path":261,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":262,"description":263,"slug":264,"parentId":224,"order":265,"_type":15,"_id":266,"_source":17,"_file":267,"_stem":268,"_extension":20},"/python/nested-loops","Nested Loops","Learn how to use nested loops to process multi-dimensional data, create patterns, and handle complex iteration scenarios","nested-loops",28,"content:python:28.nested-loops.md","python/28.nested-loops.md","python/28.nested-loops",{"_path":270,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":271,"description":272,"slug":273,"order":274,"isParent":13,"icon":14,"_type":15,"_id":275,"_source":17,"_file":276,"_stem":277,"_extension":20,"children":278,"expanded":13},"/python/python-lists","Python Lists","Learn about Python lists, one of the most important and versatile data structures for storing and organizing collections of data","python-lists",29,"content:python:29.python-lists.md","python/29.python-lists.md","python/29.python-lists",[279,288,297,306,315,324,333,342,351,360],{"_path":280,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":281,"description":282,"slug":283,"parentId":270,"order":284,"_type":15,"_id":285,"_source":17,"_file":286,"_stem":287,"_extension":20},"/python/creating-lists","Creating Lists","Learn different methods to create and initialize Python lists, from simple literals to advanced techniques","creating-lists",30,"content:python:30.creating-lists.md","python/30.creating-lists.md","python/30.creating-lists",{"_path":289,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":290,"description":291,"slug":292,"parentId":270,"order":293,"_type":15,"_id":294,"_source":17,"_file":295,"_stem":296,"_extension":20},"/python/reading-list-data","Reading List Data","Master techniques for accessing and retrieving data from Python lists using indexing, slicing, and built-in methods","reading-list-data",31,"content:python:31.reading-list-data.md","python/31.reading-list-data.md","python/31.reading-list-data",{"_path":298,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":299,"description":300,"slug":301,"parentId":270,"order":302,"_type":15,"_id":303,"_source":17,"_file":304,"_stem":305,"_extension":20},"/python/modifying-lists","Modifying Lists","Learn how to change, update, and modify existing elements in Python lists using indexing and various methods","modifying-lists",32,"content:python:32.modifying-lists.md","python/32.modifying-lists.md","python/32.modifying-lists",{"_path":307,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":308,"description":309,"slug":310,"parentId":270,"order":311,"_type":15,"_id":312,"_source":17,"_file":313,"_stem":314,"_extension":20},"/python/adding-to-lists","Adding to Lists","Learn various methods to add elements to Python lists including append, insert, extend, and concatenation techniques","adding-to-lists",33,"content:python:33.adding-to-lists.md","python/33.adding-to-lists.md","python/33.adding-to-lists",{"_path":316,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":317,"description":318,"slug":319,"parentId":270,"order":320,"_type":15,"_id":321,"_source":17,"_file":322,"_stem":323,"_extension":20},"/python/removing-from-lists","Removing from Lists","Learn different methods to remove and delete elements from Python lists including remove, pop, del, and clear","removing-from-lists",34,"content:python:34.removing-from-lists.md","python/34.removing-from-lists.md","python/34.removing-from-lists",{"_path":325,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":326,"description":327,"slug":328,"parentId":270,"order":329,"_type":15,"_id":330,"_source":17,"_file":331,"_stem":332,"_extension":20},"/python/looping-through-lists","Looping Through Lists","Learn different ways to iterate through Python lists using for loops, while loops, enumerate, and other iteration techniques","looping-through-lists",35,"content:python:35.looping-through-lists.md","python/35.looping-through-lists.md","python/35.looping-through-lists",{"_path":334,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":335,"description":336,"slug":337,"parentId":270,"order":338,"_type":15,"_id":339,"_source":17,"_file":340,"_stem":341,"_extension":20},"/python/list-shortcuts","List Shortcuts","Learn powerful Python list shortcuts including list comprehensions, slicing tricks, and built-in functions for efficient list operations","list-shortcuts",36,"content:python:36.list-shortcuts.md","python/36.list-shortcuts.md","python/36.list-shortcuts",{"_path":343,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":344,"description":345,"slug":346,"parentId":270,"order":347,"_type":15,"_id":348,"_source":17,"_file":349,"_stem":350,"_extension":20},"/python/organizing-lists","Organizing Lists","Learn how to sort, reverse, and organize Python lists using built-in methods and custom sorting techniques","organizing-lists",37,"content:python:37.organizing-lists.md","python/37.organizing-lists.md","python/37.organizing-lists",{"_path":352,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":353,"description":354,"slug":355,"parentId":270,"order":356,"_type":15,"_id":357,"_source":17,"_file":358,"_stem":359,"_extension":20},"/python/combining-lists","Combining Lists","Learn various techniques to combine, merge, and join Python lists including concatenation, zipping, and advanced merging strategies","combining-lists",38,"content:python:38.combining-lists.md","python/38.combining-lists.md","python/38.combining-lists",{"_path":361,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":362,"description":363,"slug":364,"parentId":270,"order":365,"_type":15,"_id":366,"_source":17,"_file":367,"_stem":368,"_extension":20},"/python/essential-list-tools","Essential List Tools","Master powerful built-in functions and advanced techniques for efficient Python list manipulation and data processing","essential-list-tools",39,"content:python:39.essential-list-tools.md","python/39.essential-list-tools.md","python/39.essential-list-tools",{"_path":370,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":371,"description":372,"slug":373,"order":374,"isParent":13,"icon":14,"_type":15,"_id":375,"_source":17,"_file":376,"_stem":377,"_extension":20,"children":378,"expanded":13},"/python/python-tuples","Python Tuples","Master Python tuples - immutable sequences perfect for storing related data that shouldn't change. Learn creation, access, and manipulation techniques.","python-tuples",40,"content:python:40.python-tuples.md","python/40.python-tuples.md","python/40.python-tuples",[379,388,397,406,415,424,433],{"_path":380,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":381,"description":382,"slug":383,"parentId":370,"order":384,"_type":15,"_id":385,"_source":17,"_file":386,"_stem":387,"_extension":20},"/python/creating-tuples","Creating Tuples","Learn different ways to create Python tuples, from basic syntax to advanced techniques. Master tuple initialization and understand when to use tuples.","creating-tuples",41,"content:python:41.creating-tuples.md","python/41.creating-tuples.md","python/41.creating-tuples",{"_path":389,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":390,"description":391,"slug":392,"parentId":370,"order":393,"_type":15,"_id":394,"_source":17,"_file":395,"_stem":396,"_extension":20},"/python/reading-tuple-data","Reading Tuple Data","Master accessing tuple elements through indexing, slicing, and searching. Learn efficient patterns for reading and working with tuple data.","reading-tuple-data",42,"content:python:42.reading-tuple-data.md","python/42.reading-tuple-data.md","python/42.reading-tuple-data",{"_path":398,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":399,"description":400,"slug":401,"parentId":370,"order":402,"_type":15,"_id":403,"_source":17,"_file":404,"_stem":405,"_extension":20},"/python/changing-tuples","Changing Tuples","Understand tuple immutability and learn techniques for working with unchangeable data. Master creating modified tuple versions and handling immutable constraints.","changing-tuples",43,"content:python:43.changing-tuples.md","python/43.changing-tuples.md","python/43.changing-tuples",{"_path":407,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":408,"description":409,"slug":410,"parentId":370,"order":411,"_type":15,"_id":412,"_source":17,"_file":413,"_stem":414,"_extension":20},"/python/tuple-unpacking","Tuple Unpacking","Master tuple unpacking for elegant variable assignment, function returns, and data extraction. Learn Python's powerful unpacking syntax and patterns.","tuple-unpacking",44,"content:python:44.tuple-unpacking.md","python/44.tuple-unpacking.md","python/44.tuple-unpacking",{"_path":416,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":417,"description":418,"slug":419,"parentId":370,"order":420,"_type":15,"_id":421,"_source":17,"_file":422,"_stem":423,"_extension":20},"/python/iterating-tuples","Iterating Tuples","Master tuple iteration techniques for processing sequence data. Learn basic loops, enumerate, nested iteration, and advanced patterns for efficient data processing.","iterating-tuples",45,"content:python:45.iterating-tuples.md","python/45.iterating-tuples.md","python/45.iterating-tuples",{"_path":425,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":426,"description":427,"slug":428,"parentId":370,"order":429,"_type":15,"_id":430,"_source":17,"_file":431,"_stem":432,"_extension":20},"/python/merging-tuples","Merging Tuples","Learn techniques for combining and merging tuples to create larger data structures. Master concatenation, joining multiple tuples, and advanced merging patterns.","merging-tuples",46,"content:python:46.merging-tuples.md","python/46.merging-tuples.md","python/46.merging-tuples",{"_path":434,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":435,"description":436,"slug":437,"parentId":370,"order":438,"_type":15,"_id":439,"_source":17,"_file":440,"_stem":441,"_extension":20},"/python/tuple-operations","Tuple Operations","Master comprehensive tuple operations including built-in functions, mathematical operations, comparisons, and advanced techniques for efficient tuple manipulation.","tuple-operations",47,"content:python:47.tuple-operations.md","python/47.tuple-operations.md","python/47.tuple-operations",{"_path":443,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":444,"description":445,"slug":446,"order":447,"isParent":13,"icon":14,"_type":15,"_id":448,"_source":17,"_file":449,"_stem":450,"_extension":20,"children":451,"expanded":13},"/python/python-sets","Python Sets","Discover Python sets - unique collections that automatically eliminate duplicates and provide powerful mathematical operations for data filtering and analysis.","python-sets",48,"content:python:48.python-sets.md","python/48.python-sets.md","python/48.python-sets",[452,461,470,479,488,497,506],{"_path":453,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":454,"description":455,"slug":456,"parentId":443,"order":457,"_type":15,"_id":458,"_source":17,"_file":459,"_stem":460,"_extension":20},"/python/creating-sets","Creating Sets","Learn multiple ways to create sets in Python including literal syntax, set() function, and set comprehensions. Master set creation from different data sources.","creating-sets",49,"content:python:49.creating-sets.md","python/49.creating-sets.md","python/49.creating-sets",{"_path":462,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":463,"description":464,"slug":465,"parentId":443,"order":466,"_type":15,"_id":467,"_source":17,"_file":468,"_stem":469,"_extension":20},"/python/reading-set-data","Reading Set Data","Learn how to access and examine set data in Python including membership testing, iteration, size checking, and converting sets to other data types.","reading-set-data",50,"content:python:50.reading-set-data.md","python/50.reading-set-data.md","python/50.reading-set-data",{"_path":471,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":472,"description":473,"slug":474,"parentId":443,"order":475,"_type":15,"_id":476,"_source":17,"_file":477,"_stem":478,"_extension":20},"/python/adding-to-sets","Adding to Sets","Learn how to add elements to sets in Python using add(), update(), and union operations. Master growing sets dynamically with single items and multiple elements.","adding-to-sets",51,"content:python:51.adding-to-sets.md","python/51.adding-to-sets.md","python/51.adding-to-sets",{"_path":480,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":481,"description":482,"slug":483,"parentId":443,"order":484,"_type":15,"_id":485,"_source":17,"_file":486,"_stem":487,"_extension":20},"/python/removing-from-sets","Removing from Sets","Learn how to remove elements from Python sets using different methods like remove(), discard(), pop(), and clear()","removing-from-sets",52,"content:python:52.removing-from-sets.md","python/52.removing-from-sets.md","python/52.removing-from-sets",{"_path":489,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":490,"description":491,"slug":492,"parentId":443,"order":493,"_type":15,"_id":494,"_source":17,"_file":495,"_stem":496,"_extension":20},"/python/iterating-sets","Iterating Sets","Learn different ways to iterate through Python sets using for loops, comprehensions, and built-in functions","iterating-sets",53,"content:python:53.iterating-sets.md","python/53.iterating-sets.md","python/53.iterating-sets",{"_path":498,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":499,"description":500,"slug":501,"parentId":443,"order":502,"_type":15,"_id":503,"_source":17,"_file":504,"_stem":505,"_extension":20},"/python/combining-sets","Combining Sets","Learn how to combine Python sets using union, intersection, difference, and other set operations","combining-sets",54,"content:python:54.combining-sets.md","python/54.combining-sets.md","python/54.combining-sets",{"_path":507,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":508,"description":509,"slug":510,"parentId":443,"order":511,"_type":15,"_id":512,"_source":17,"_file":513,"_stem":514,"_extension":20},"/python/set-operations","Set Operations","Learn advanced Python set operations including comparisons, subsets, supersets, and mathematical set relationships","set-operations",55,"content:python:55.set-operations.md","python/55.set-operations.md","python/55.set-operations",{"_path":516,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":517,"description":518,"slug":519,"order":520,"isParent":13,"icon":14,"_type":15,"_id":521,"_source":17,"_file":522,"_stem":523,"_extension":20,"children":524},"/python/python-dictionaries","Python Dictionaries","Learn about Python dictionaries - key-value data structures for storing and organizing related information","python-dictionaries",56,"content:python:56.python-dictionaries.md","python/56.python-dictionaries.md","python/56.python-dictionaries",[525,534,543,552,561,570,579,588,597],{"_path":526,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":527,"description":528,"slug":529,"parentId":516,"order":530,"_type":15,"_id":531,"_source":17,"_file":532,"_stem":533,"_extension":20},"/python/creating-dictionaries","Creating Dictionaries","Learn different methods to create Python dictionaries using literals, constructors, and comprehensions","creating-dictionaries",57,"content:python:57.creating-dictionaries.md","python/57.creating-dictionaries.md","python/57.creating-dictionaries",{"_path":535,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":536,"description":537,"slug":538,"parentId":516,"order":539,"_type":15,"_id":540,"_source":17,"_file":541,"_stem":542,"_extension":20},"/python/getting-dictionary-values","Getting Dictionary Values","Learn safe and efficient methods to retrieve data from Python dictionaries using various access techniques","getting-dictionary-values",58,"content:python:58.getting-dictionary-values.md","python/58.getting-dictionary-values.md","python/58.getting-dictionary-values",{"_path":544,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":545,"description":546,"slug":547,"parentId":516,"order":548,"_type":15,"_id":549,"_source":17,"_file":550,"_stem":551,"_extension":20},"/python/updating-dictionaries","Updating Dictionaries","Learn how to modify and maintain Python dictionary data using various update methods and techniques","updating-dictionaries",59,"content:python:59.updating-dictionaries.md","python/59.updating-dictionaries.md","python/59.updating-dictionaries",{"_path":553,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":554,"description":555,"slug":556,"parentId":516,"order":557,"_type":15,"_id":558,"_source":17,"_file":559,"_stem":560,"_extension":20},"/python/adding-dictionary-items","Adding Dictionary Items","Learn effective techniques for adding new items to Python dictionaries with various methods and best practices","adding-dictionary-items",60,"content:python:60.adding-dictionary-items.md","python/60.adding-dictionary-items.md","python/60.adding-dictionary-items",{"_path":562,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":563,"description":564,"slug":565,"parentId":516,"order":566,"_type":15,"_id":567,"_source":17,"_file":568,"_stem":569,"_extension":20},"/python/deleting-dictionary-items","Deleting Dictionary Items","Master safe and efficient techniques for removing items from Python dictionaries with various methods and error handling","deleting-dictionary-items",61,"content:python:61.deleting-dictionary-items.md","python/61.deleting-dictionary-items.md","python/61.deleting-dictionary-items",{"_path":571,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":572,"description":573,"slug":574,"parentId":516,"order":575,"_type":15,"_id":576,"_source":17,"_file":577,"_stem":578,"_extension":20},"/python/looping-dictionaries","Looping Dictionaries","Learn efficient techniques for iterating through Python dictionaries using keys, values, and items","looping-dictionaries",62,"content:python:62.looping-dictionaries.md","python/62.looping-dictionaries.md","python/62.looping-dictionaries",{"_path":580,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":581,"description":582,"slug":583,"parentId":516,"order":584,"_type":15,"_id":585,"_source":17,"_file":586,"_stem":587,"_extension":20},"/python/dictionary-copies","Dictionary Copies","Learn safe techniques for duplicating Python dictionaries using shallow and deep copy methods","dictionary-copies",63,"content:python:63.dictionary-copies.md","python/63.dictionary-copies.md","python/63.dictionary-copies",{"_path":589,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":590,"description":591,"slug":592,"parentId":516,"order":593,"_type":15,"_id":594,"_source":17,"_file":595,"_stem":596,"_extension":20},"/python/multi-level-dictionaries","Multi-level Dictionaries","Master working with nested Python dictionaries for complex data structures and hierarchical information","multi-level-dictionaries",64,"content:python:64.multi-level-dictionaries.md","python/64.multi-level-dictionaries.md","python/64.multi-level-dictionaries",{"_path":598,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":599,"description":600,"slug":601,"parentId":516,"order":602,"_type":15,"_id":603,"_source":17,"_file":604,"_stem":605,"_extension":20},"/python/dictionary-tools","Dictionary Tools","Explore powerful built-in functions and advanced techniques for efficient Python dictionary manipulation and analysis","dictionary-tools",65,"content:python:65.dictionary-tools.md","python/65.dictionary-tools.md","python/65.dictionary-tools",{"_path":607,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":608,"description":609,"slug":610,"order":611,"isParent":13,"icon":14,"_type":15,"_id":612,"_source":17,"_file":613,"_stem":614,"_extension":20,"children":615},"/python/python-functions","Python Functions","Learn how to create and use Python functions to organize code into reusable, modular components that make programs more efficient and maintainable","python-functions",66,"content:python:66.python-functions.md","python/66.python-functions.md","python/66.python-functions",[616,625,634,643,652,661],{"_path":617,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":618,"description":619,"slug":620,"parentId":607,"order":621,"_type":15,"_id":622,"_source":17,"_file":623,"_stem":624,"_extension":20},"/python/function-basics","Function Basics","Learn the fundamentals of creating and using Python functions to organize code into reusable, modular components","function-basics",67,"content:python:67.function-basics.md","python/67.function-basics.md","python/67.function-basics",{"_path":626,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":627,"description":628,"slug":629,"parentId":607,"order":630,"_type":15,"_id":631,"_source":17,"_file":632,"_stem":633,"_extension":20},"/python/function-parameters","Function Parameters","Master different types of Python function parameters including positional, keyword, default, and variable-length arguments","function-parameters",68,"content:python:68.function-parameters.md","python/68.function-parameters.md","python/68.function-parameters",{"_path":635,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":636,"description":637,"slug":638,"parentId":607,"order":639,"_type":15,"_id":640,"_source":17,"_file":641,"_stem":642,"_extension":20},"/python/returning-values","Returning Values","Learn different ways Python functions return data including single values, multiple values, and conditional returns","returning-values",69,"content:python:69.returning-values.md","python/69.returning-values.md","python/69.returning-values",{"_path":644,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":645,"description":646,"slug":647,"parentId":607,"order":648,"_type":15,"_id":649,"_source":17,"_file":650,"_stem":651,"_extension":20},"/python/variable-scope","Variable Scope","Understand Python variable scope including local, global, and nonlocal variables and how they affect function behavior","variable-scope",70,"content:python:70.variable-scope.md","python/70.variable-scope.md","python/70.variable-scope",{"_path":653,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":654,"description":655,"slug":656,"parentId":607,"order":657,"_type":15,"_id":658,"_source":17,"_file":659,"_stem":660,"_extension":20},"/python/anonymous-functions","Anonymous Functions","Learn to create and use Python lambda functions for concise, inline function definitions and functional programming patterns","anonymous-functions",71,"content:python:71.anonymous-functions.md","python/71.anonymous-functions.md","python/71.anonymous-functions",{"_path":662,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":663,"description":664,"slug":665,"parentId":607,"order":666,"_type":15,"_id":667,"_source":17,"_file":668,"_stem":669,"_extension":20},"/python/function-recursion","Function Recursion","Master recursive functions in Python by learning how functions can call themselves to solve complex problems with elegant, mathematical solutions","function-recursion",72,"content:python:72.function-recursion.md","python/72.function-recursion.md","python/72.function-recursion",{"_path":671,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":672,"description":673,"slug":674,"order":675,"isParent":13,"icon":14,"_type":15,"_id":676,"_source":17,"_file":677,"_stem":678,"_extension":20,"children":679},"/python/object-programming","Object Programming","Learn object-oriented programming (OOP) in Python - create classes, objects, and methods to build organized, reusable code","object-programming",73,"content:python:73.object-programming.md","python/73.object-programming.md","python/73.object-programming",[680,689,698,707,716,725],{"_path":681,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":682,"description":683,"slug":684,"parentId":671,"order":685,"_type":15,"_id":686,"_source":17,"_file":687,"_stem":688,"_extension":20},"/python/classes-and-objects","Classes and Objects","Learn to create Python classes and objects - the foundation of object-oriented programming for building reusable, organized code","classes-and-objects",74,"content:python:74.classes-and-objects.md","python/74.classes-and-objects.md","python/74.classes-and-objects",{"_path":690,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":691,"description":692,"slug":693,"parentId":671,"order":694,"_type":15,"_id":695,"_source":17,"_file":696,"_stem":697,"_extension":20},"/python/object-methods","Object Methods","Master object methods in Python - learn to define behaviors, work with parameters, and create interactive objects that respond to actions","object-methods",75,"content:python:75.object-methods.md","python/75.object-methods.md","python/75.object-methods",{"_path":699,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":700,"description":701,"slug":702,"parentId":671,"order":703,"_type":15,"_id":704,"_source":17,"_file":705,"_stem":706,"_extension":20},"/python/class-inheritance","Class Inheritance","Learn Python class inheritance - create specialized classes that build upon existing functionality while adding new features and behaviors","class-inheritance",76,"content:python:76.class-inheritance.md","python/76.class-inheritance.md","python/76.class-inheritance",{"_path":708,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":709,"description":710,"slug":711,"parentId":671,"order":712,"_type":15,"_id":713,"_source":17,"_file":714,"_stem":715,"_extension":20},"/python/method-overriding","Method Overriding","Master method overriding in Python - learn to customize inherited methods, use super(), and create specialized behaviors while maintaining inheritance benefits","method-overriding",77,"content:python:77.method-overriding.md","python/77.method-overriding.md","python/77.method-overriding",{"_path":717,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":718,"description":719,"slug":720,"parentId":671,"order":721,"_type":15,"_id":722,"_source":17,"_file":723,"_stem":724,"_extension":20},"/python/variable-visibility","Variable Visibility","Master Python variable visibility - learn public, protected, and private attributes to control access and create well-encapsulated classes","variable-visibility",78,"content:python:78.variable-visibility.md","python/78.variable-visibility.md","python/78.variable-visibility",{"_path":726,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":727,"description":728,"slug":729,"parentId":671,"order":730,"_type":15,"_id":731,"_source":17,"_file":732,"_stem":733,"_extension":20},"/python/special-methods","Special Methods","Master Python special methods (magic methods) - learn to implement __str__, __len__, __eq__ and more to make your classes work seamlessly with Python's built-in functions","special-methods",79,"content:python:79.special-methods.md","python/79.special-methods.md","python/79.special-methods",{"_path":735,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":736,"description":737,"slug":738,"order":739,"isParent":13,"icon":14,"_type":15,"_id":740,"_source":17,"_file":741,"_stem":742,"_extension":20,"children":743},"/python/advanced-concepts","Advanced Concepts","Master advanced Python programming concepts - work with dates, mathematics, JSON data, pattern matching, and more sophisticated programming techniques","advanced-concepts",80,"content:python:80.advanced-concepts.md","python/80.advanced-concepts.md","python/80.advanced-concepts",[744,753,762,771,780,789,798],{"_path":745,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":746,"description":747,"slug":748,"parentId":735,"order":749,"_type":15,"_id":750,"_source":17,"_file":751,"_stem":752,"_extension":20},"/python/working-with-dates","Working with Dates","Master Python date and time handling - work with datetime objects, format dates, calculate durations, and build time-aware applications","working-with-dates",81,"content:python:81.working-with-dates.md","python/81.working-with-dates.md","python/81.working-with-dates",{"_path":754,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":755,"description":756,"slug":757,"parentId":735,"order":758,"_type":15,"_id":759,"_source":17,"_file":760,"_stem":761,"_extension":20},"/python/mathematical-operations","Mathematical Operations","Master Python mathematical computing - use math functions, perform statistical calculations, and implement scientific computing for data analysis and problem-solving","mathematical-operations",82,"content:python:82.mathematical-operations.md","python/82.mathematical-operations.md","python/82.mathematical-operations",{"_path":763,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":764,"description":765,"slug":766,"parentId":735,"order":767,"_type":15,"_id":768,"_source":17,"_file":769,"_stem":770,"_extension":20},"/python/json-data","JSON Data","Master JSON data handling in Python - serialize and deserialize data, work with APIs, manage configuration files, and exchange data between applications","json-data",83,"content:python:83.json-data.md","python/83.json-data.md","python/83.json-data",{"_path":772,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":773,"description":774,"slug":775,"parentId":735,"order":776,"_type":15,"_id":777,"_source":17,"_file":778,"_stem":779,"_extension":20},"/python/package-management","Package Management","Master Python package management with pip and virtual environments - install libraries, manage dependencies, create isolated environments, and distribute packages professionally","package-management",85,"content:python:85.package-management.md","python/85.package-management.md","python/85.package-management",{"_path":781,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":782,"description":783,"slug":784,"parentId":735,"order":785,"_type":15,"_id":786,"_source":17,"_file":787,"_stem":788,"_extension":20},"/python/error-handling","Error Handling","Master Python error handling with try/except blocks, exception types, custom exceptions, debugging techniques, and best practices for robust application development","error-handling",86,"content:python:86.error-handling.md","python/86.error-handling.md","python/86.error-handling",{"_path":790,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":791,"description":792,"slug":793,"parentId":735,"order":794,"_type":15,"_id":795,"_source":17,"_file":796,"_stem":797,"_extension":20},"/python/getting-user-input","Getting User Input","Master user input handling in Python with input validation, data type conversion, interactive programs, and command-line interfaces for engaging user experiences","getting-user-input",87,"content:python:87.getting-user-input.md","python/87.getting-user-input.md","python/87.getting-user-input",{"_path":799,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":800,"description":801,"slug":802,"parentId":735,"order":803,"_type":15,"_id":804,"_source":17,"_file":805,"_stem":806,"_extension":20},"/python/text-formatting","Text Formatting","Master Python text formatting with f-strings, format methods, alignment, number formatting, and advanced techniques for professional, readable output","text-formatting",88,"content:python:88.text-formatting.md","python/88.text-formatting.md","python/88.text-formatting",{"_path":808,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":809,"description":810,"slug":811,"order":812,"isParent":13,"icon":14,"_type":15,"_id":813,"_source":17,"_file":814,"_stem":815,"_extension":20,"children":816},"/python/file-operations","File Operations","Master Python file handling with reading, writing, and managing files for data persistence and real-world applications","file-operations",89,"content:python:89.file-operations.md","python/89.file-operations.md","python/89.file-operations",[817,826,835,844],{"_path":818,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":819,"description":820,"slug":821,"parentId":808,"order":822,"_type":15,"_id":823,"_source":17,"_file":824,"_stem":825,"_extension":20},"/python/file-basics","File Basics","Learn fundamental Python file operations including opening files, understanding file modes, using context managers, and basic file handling concepts","file-basics",90,"content:python:90.file-basics.md","python/90.file-basics.md","python/90.file-basics",{"_path":827,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":828,"description":829,"slug":830,"parentId":808,"order":831,"_type":15,"_id":832,"_source":17,"_file":833,"_stem":834,"_extension":20},"/python/reading-files","Reading Files","Master Python file reading techniques including reading entire files, line-by-line processing, and handling different file formats for efficient data processing","reading-files",91,"content:python:91.reading-files.md","python/91.reading-files.md","python/91.reading-files",{"_path":836,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":837,"description":838,"slug":839,"parentId":808,"order":840,"_type":15,"_id":841,"_source":17,"_file":842,"_stem":843,"_extension":20},"/python/writing-files","Writing Files","Learn Python file writing techniques including creating new files, appending content, updating existing files, and saving different data formats safely","writing-files",92,"content:python:92.writing-files.md","python/92.writing-files.md","python/92.writing-files",{"_path":845,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":846,"description":847,"slug":848,"parentId":808,"order":849,"_type":15,"_id":850,"_source":17,"_file":851,"_stem":852,"_extension":20},"/python/file-management","File Management","Learn Python file management techniques including checking file properties, organizing files, directory operations, and implementing file system maintenance tasks","file-management",93,"content:python:93.file-management.md","python/93.file-management.md","python/93.file-management",{"_path":854,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":855,"description":856,"slug":857,"order":858,"isParent":13,"icon":14,"_type":15,"_id":859,"_source":17,"_file":860,"_stem":861,"_extension":20,"children":862},"/python/code-organization","Code Organization","Master Python code organization with modules, built-in libraries, and path management for creating maintainable and reusable applications","code-organization",94,"content:python:94.code-organization.md","python/94.code-organization.md","python/94.code-organization",[863,872,881],{"_path":864,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":865,"description":866,"slug":867,"parentId":854,"order":868,"_type":15,"_id":869,"_source":17,"_file":870,"_stem":871,"_extension":20},"/python/creating-modules","Creating Modules","Learn how to create custom Python modules, organize functions and classes, write reusable code components, and design effective module structures","creating-modules",95,"content:python:95.creating-modules.md","python/95.creating-modules.md","python/95.creating-modules",{"_path":873,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":874,"description":875,"slug":876,"parentId":854,"order":877,"_type":15,"_id":878,"_source":17,"_file":879,"_stem":880,"_extension":20},"/python/using-built-in-modules","Using Built-in Modules","Discover Python's extensive standard library and learn to effectively use built-in modules for common programming tasks, data processing, and system operations","using-built-in-modules",96,"content:python:96.using-built-in-modules.md","python/96.using-built-in-modules.md","python/96.using-built-in-modules",{"_path":882,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":883,"description":884,"slug":885,"parentId":854,"order":886,"_type":15,"_id":887,"_source":17,"_file":888,"_stem":889,"_extension":20},"/python/module-paths","Module Paths","Understand Python's module search system, manage import paths, work with packages, and organize larger projects with proper module path management","module-paths",97,"content:python:97.module-paths.md","python/97.module-paths.md","python/97.module-paths",{"_path":891,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":892,"description":893,"slug":894,"order":895,"isParent":13,"icon":14,"_type":15,"_id":896,"_source":17,"_file":897,"_stem":898,"_extension":20,"children":899,"expanded":13},"/python/reference-materials","Reference Materials","Comprehensive Python reference materials including reserved words, built-in functions, and operation guides for quick lookup and development support","reference-materials",98,"content:python:98.reference-materials.md","python/98.reference-materials.md","python/98.reference-materials",[900,909,918,927,936,945,953,961,970],{"_path":901,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":902,"description":903,"slug":904,"parentId":891,"order":905,"_type":15,"_id":906,"_source":17,"_file":907,"_stem":908,"_extension":20},"/python/reserved-words","Reserved Words","Complete reference of Python keywords and reserved words with descriptions, usage examples, and syntax guidelines","reserved-words",99,"content:python:99.reserved-words.md","python/99.reserved-words.md","python/99.reserved-words",{"_path":910,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":911,"description":912,"slug":913,"parentId":891,"order":914,"_type":15,"_id":915,"_source":17,"_file":916,"_stem":917,"_extension":20},"/python/built-in-functions","Built-in Functions","Comprehensive reference of Python's built-in functions with parameters, return values, and practical usage examples","built-in-functions",100,"content:python:100.built-in-functions.md","python/100.built-in-functions.md","python/100.built-in-functions",{"_path":919,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":920,"description":921,"slug":922,"parentId":891,"order":923,"_type":15,"_id":924,"_source":17,"_file":925,"_stem":926,"_extension":20},"/python/string-operations","String Operations","Complete reference of Python string methods, operations, and formatting techniques with examples and use cases","string-operations",101,"content:python:101.string-operations.md","python/101.string-operations.md","python/101.string-operations",{"_path":928,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":929,"description":930,"slug":931,"parentId":891,"order":932,"_type":15,"_id":933,"_source":17,"_file":934,"_stem":935,"_extension":20},"/python/list-operations","List Operations","Complete reference of Python list methods, operations, and manipulation techniques with examples and performance notes","list-operations",102,"content:python:102.list-operations.md","python/102.list-operations.md","python/102.list-operations",{"_path":937,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":938,"description":939,"slug":940,"parentId":891,"order":941,"_type":15,"_id":942,"_source":17,"_file":943,"_stem":944,"_extension":20},"/python/dictionary-operations","Dictionary Operations","Complete reference of Python dictionary methods, operations, and manipulation techniques with examples and use cases","dictionary-operations",103,"content:python:103.dictionary-operations.md","python/103.dictionary-operations.md","python/103.dictionary-operations",{"_path":946,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":435,"description":947,"slug":948,"parentId":891,"order":949,"_type":15,"_id":950,"_source":17,"_file":951,"_stem":952,"_extension":20},"/python/tuple-methods","Complete reference of Python tuple operations, methods, and techniques with examples and use cases","tuple-methods",104,"content:python:104.tuple-methods.md","python/104.tuple-methods.md","python/104.tuple-methods",{"_path":954,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":508,"description":955,"slug":956,"parentId":891,"order":957,"_type":15,"_id":958,"_source":17,"_file":959,"_stem":960,"_extension":20},"/python/set-methods","Complete reference of Python set operations, methods, and mathematical set operations with examples and use cases","set-methods",105,"content:python:105.set-methods.md","python/105.set-methods.md","python/105.set-methods",{"_path":962,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":963,"description":964,"slug":965,"parentId":891,"order":966,"_type":15,"_id":967,"_source":17,"_file":968,"_stem":969,"_extension":20},"/python/file-operations-reference","File Operations Reference","Complete reference of Python file operations, modes, methods, and file handling techniques with examples","file-operations-reference",106,"content:python:106.file-operations-reference.md","python/106.file-operations-reference.md","python/106.file-operations-reference",{"_path":971,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":972,"description":973,"slug":974,"parentId":891,"order":975,"_type":15,"_id":976,"_source":17,"_file":977,"_stem":978,"_extension":20},"/python/error-types","Error Types","Complete reference of Python exception types, error handling patterns, and debugging techniques with examples","error-types",107,"content:python:107.error-types.md","python/107.error-types.md","python/107.error-types",{"_path":980,"_dir":8,"_draft":7,"_partial":7,"_locale":8,"title":981,"description":10,"slug":982,"order":983,"icon":14,"_type":15,"_id":984,"_source":17,"_file":985,"_stem":986,"_extension":20},"/python","Introduction","python-tutorial",0,"content:python:index.md","python/index.md","python/index",[461],{"_path":462,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":463,"description":464,"slug":465,"parentId":443,"order":466,"body":989,"_type":15,"_id":467,"_source":17,"_file":468,"_stem":469,"_extension":20},{"type":990,"children":991,"toc":8511},"root",[992,1000,1006,1011,1317,1324,1329,1441,1448,1453,1793,1799,1804,2231,2237,2242,2533,2539,2544,2640,2646,2651,3029,3035,3040,3373,3379,3384,3870,3875,3881,3886,3987,3993,3998,4389,4395,4400,4785,4791,4796,4910,4916,4921,5377,5383,5388,5845,5851,5856,6394,6400,6405,6488,6494,6499,6937,6943,6948,7482,7488,7493,7802,7807,7827,8122,8128,8465,8471,8476,8483,8489,8494,8505],{"type":993,"tag":994,"props":995,"children":996},"element","h1",{"id":465},[997],{"type":998,"value":999},"text","🔍 Reading Set Data",{"type":993,"tag":1001,"props":1002,"children":1003},"p",{},[1004],{"type":998,"value":1005},"Reading set data is different from reading lists because sets don't have indexes. Instead, you check if items exist, count elements, and iterate through the set. Sets are optimized for fast membership testing, making them perfect for checking if something exists in your data.",{"type":993,"tag":1001,"props":1007,"children":1008},{},[1009],{"type":998,"value":1010},"Let's explore how to work with set data:",{"type":993,"tag":1012,"props":1013,"children":1014},"code-try",{},[1015],{"type":993,"tag":1016,"props":1017,"children":1020},"pre",{"className":1018,"code":1019,"language":6,"meta":8,"style":8},"language-python shiki shiki-themes github-light github-dark","# Reading basic set information\ncolors = {\"red\", \"green\", \"blue\", \"yellow\"}\n\n# Check set size\nprint(f\"Colors in set: {len(colors)}\")\n\n# Check if item exists (very fast!)\nhas_red = \"red\" in colors\nhas_purple = \"purple\" in colors\n\nprint(f\"Has red? {has_red}\")\nprint(f\"Has purple? {has_purple}\")\n",[1021],{"type":993,"tag":1022,"props":1023,"children":1024},"code",{"__ignoreMap":8},[1025,1036,1095,1103,1111,1160,1167,1175,1202,1227,1234,1276],{"type":993,"tag":1026,"props":1027,"children":1029},"span",{"class":1028,"line":12},"line",[1030],{"type":993,"tag":1026,"props":1031,"children":1033},{"style":1032},"--shiki-default:#6A737D;--shiki-app-dark-mode:#6A737D",[1034],{"type":998,"value":1035},"# Reading basic set information\n",{"type":993,"tag":1026,"props":1037,"children":1038},{"class":1028,"line":27},[1039,1045,1051,1056,1062,1067,1072,1076,1081,1085,1090],{"type":993,"tag":1026,"props":1040,"children":1042},{"style":1041},"--shiki-default:#24292E;--shiki-app-dark-mode:#E1E4E8",[1043],{"type":998,"value":1044},"colors ",{"type":993,"tag":1026,"props":1046,"children":1048},{"style":1047},"--shiki-default:#D73A49;--shiki-app-dark-mode:#F97583",[1049],{"type":998,"value":1050},"=",{"type":993,"tag":1026,"props":1052,"children":1053},{"style":1041},[1054],{"type":998,"value":1055}," {",{"type":993,"tag":1026,"props":1057,"children":1059},{"style":1058},"--shiki-default:#032F62;--shiki-app-dark-mode:#9ECBFF",[1060],{"type":998,"value":1061},"\"red\"",{"type":993,"tag":1026,"props":1063,"children":1064},{"style":1041},[1065],{"type":998,"value":1066},", ",{"type":993,"tag":1026,"props":1068,"children":1069},{"style":1058},[1070],{"type":998,"value":1071},"\"green\"",{"type":993,"tag":1026,"props":1073,"children":1074},{"style":1041},[1075],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1077,"children":1078},{"style":1058},[1079],{"type":998,"value":1080},"\"blue\"",{"type":993,"tag":1026,"props":1082,"children":1083},{"style":1041},[1084],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1086,"children":1087},{"style":1058},[1088],{"type":998,"value":1089},"\"yellow\"",{"type":993,"tag":1026,"props":1091,"children":1092},{"style":1041},[1093],{"type":998,"value":1094},"}\n",{"type":993,"tag":1026,"props":1096,"children":1097},{"class":1028,"line":36},[1098],{"type":993,"tag":1026,"props":1099,"children":1100},{"emptyLinePlaceholder":13},[1101],{"type":998,"value":1102},"\n",{"type":993,"tag":1026,"props":1104,"children":1105},{"class":1028,"line":45},[1106],{"type":993,"tag":1026,"props":1107,"children":1108},{"style":1032},[1109],{"type":998,"value":1110},"# Check set size\n",{"type":993,"tag":1026,"props":1112,"children":1113},{"class":1028,"line":54},[1114,1120,1125,1130,1135,1140,1145,1150,1155],{"type":993,"tag":1026,"props":1115,"children":1117},{"style":1116},"--shiki-default:#005CC5;--shiki-app-dark-mode:#79B8FF",[1118],{"type":998,"value":1119},"print",{"type":993,"tag":1026,"props":1121,"children":1122},{"style":1041},[1123],{"type":998,"value":1124},"(",{"type":993,"tag":1026,"props":1126,"children":1127},{"style":1047},[1128],{"type":998,"value":1129},"f",{"type":993,"tag":1026,"props":1131,"children":1132},{"style":1058},[1133],{"type":998,"value":1134},"\"Colors in set: ",{"type":993,"tag":1026,"props":1136,"children":1137},{"style":1116},[1138],{"type":998,"value":1139},"{len",{"type":993,"tag":1026,"props":1141,"children":1142},{"style":1041},[1143],{"type":998,"value":1144},"(colors)",{"type":993,"tag":1026,"props":1146,"children":1147},{"style":1116},[1148],{"type":998,"value":1149},"}",{"type":993,"tag":1026,"props":1151,"children":1152},{"style":1058},[1153],{"type":998,"value":1154},"\"",{"type":993,"tag":1026,"props":1156,"children":1157},{"style":1041},[1158],{"type":998,"value":1159},")\n",{"type":993,"tag":1026,"props":1161,"children":1162},{"class":1028,"line":63},[1163],{"type":993,"tag":1026,"props":1164,"children":1165},{"emptyLinePlaceholder":13},[1166],{"type":998,"value":1102},{"type":993,"tag":1026,"props":1168,"children":1169},{"class":1028,"line":72},[1170],{"type":993,"tag":1026,"props":1171,"children":1172},{"style":1032},[1173],{"type":998,"value":1174},"# Check if item exists (very fast!)\n",{"type":993,"tag":1026,"props":1176,"children":1177},{"class":1028,"line":81},[1178,1183,1187,1192,1197],{"type":993,"tag":1026,"props":1179,"children":1180},{"style":1041},[1181],{"type":998,"value":1182},"has_red ",{"type":993,"tag":1026,"props":1184,"children":1185},{"style":1047},[1186],{"type":998,"value":1050},{"type":993,"tag":1026,"props":1188,"children":1189},{"style":1058},[1190],{"type":998,"value":1191}," \"red\"",{"type":993,"tag":1026,"props":1193,"children":1194},{"style":1047},[1195],{"type":998,"value":1196}," in",{"type":993,"tag":1026,"props":1198,"children":1199},{"style":1041},[1200],{"type":998,"value":1201}," colors\n",{"type":993,"tag":1026,"props":1203,"children":1204},{"class":1028,"line":91},[1205,1210,1214,1219,1223],{"type":993,"tag":1026,"props":1206,"children":1207},{"style":1041},[1208],{"type":998,"value":1209},"has_purple ",{"type":993,"tag":1026,"props":1211,"children":1212},{"style":1047},[1213],{"type":998,"value":1050},{"type":993,"tag":1026,"props":1215,"children":1216},{"style":1058},[1217],{"type":998,"value":1218}," \"purple\"",{"type":993,"tag":1026,"props":1220,"children":1221},{"style":1047},[1222],{"type":998,"value":1196},{"type":993,"tag":1026,"props":1224,"children":1225},{"style":1041},[1226],{"type":998,"value":1201},{"type":993,"tag":1026,"props":1228,"children":1229},{"class":1028,"line":100},[1230],{"type":993,"tag":1026,"props":1231,"children":1232},{"emptyLinePlaceholder":13},[1233],{"type":998,"value":1102},{"type":993,"tag":1026,"props":1235,"children":1236},{"class":1028,"line":109},[1237,1241,1245,1249,1254,1259,1264,1268,1272],{"type":993,"tag":1026,"props":1238,"children":1239},{"style":1116},[1240],{"type":998,"value":1119},{"type":993,"tag":1026,"props":1242,"children":1243},{"style":1041},[1244],{"type":998,"value":1124},{"type":993,"tag":1026,"props":1246,"children":1247},{"style":1047},[1248],{"type":998,"value":1129},{"type":993,"tag":1026,"props":1250,"children":1251},{"style":1058},[1252],{"type":998,"value":1253},"\"Has red? ",{"type":993,"tag":1026,"props":1255,"children":1256},{"style":1116},[1257],{"type":998,"value":1258},"{",{"type":993,"tag":1026,"props":1260,"children":1261},{"style":1041},[1262],{"type":998,"value":1263},"has_red",{"type":993,"tag":1026,"props":1265,"children":1266},{"style":1116},[1267],{"type":998,"value":1149},{"type":993,"tag":1026,"props":1269,"children":1270},{"style":1058},[1271],{"type":998,"value":1154},{"type":993,"tag":1026,"props":1273,"children":1274},{"style":1041},[1275],{"type":998,"value":1159},{"type":993,"tag":1026,"props":1277,"children":1278},{"class":1028,"line":118},[1279,1283,1287,1291,1296,1300,1305,1309,1313],{"type":993,"tag":1026,"props":1280,"children":1281},{"style":1116},[1282],{"type":998,"value":1119},{"type":993,"tag":1026,"props":1284,"children":1285},{"style":1041},[1286],{"type":998,"value":1124},{"type":993,"tag":1026,"props":1288,"children":1289},{"style":1047},[1290],{"type":998,"value":1129},{"type":993,"tag":1026,"props":1292,"children":1293},{"style":1058},[1294],{"type":998,"value":1295},"\"Has purple? ",{"type":993,"tag":1026,"props":1297,"children":1298},{"style":1116},[1299],{"type":998,"value":1258},{"type":993,"tag":1026,"props":1301,"children":1302},{"style":1041},[1303],{"type":998,"value":1304},"has_purple",{"type":993,"tag":1026,"props":1306,"children":1307},{"style":1116},[1308],{"type":998,"value":1149},{"type":993,"tag":1026,"props":1310,"children":1311},{"style":1058},[1312],{"type":998,"value":1154},{"type":993,"tag":1026,"props":1314,"children":1315},{"style":1041},[1316],{"type":998,"value":1159},{"type":993,"tag":1318,"props":1319,"children":1321},"h2",{"id":1320},"basic-set-information",[1322],{"type":998,"value":1323},"🎯 Basic Set Information",{"type":993,"tag":1001,"props":1325,"children":1326},{},[1327],{"type":998,"value":1328},"The most common operations for examining sets involve checking size and membership.",{"type":993,"tag":1330,"props":1331,"children":1335},"info-box",{"emoji":1332,"title":1333,"type":1334},"📊","Basic Set Operations","info",[1336,1345,1377,1385,1415,1423],{"type":993,"tag":1001,"props":1337,"children":1338},{},[1339],{"type":993,"tag":1340,"props":1341,"children":1342},"strong",{},[1343],{"type":998,"value":1344},"Size and Length:",{"type":993,"tag":1346,"props":1347,"children":1348},"ul",{},[1349,1361,1372],{"type":993,"tag":1350,"props":1351,"children":1352},"li",{},[1353,1359],{"type":993,"tag":1022,"props":1354,"children":1356},{"className":1355},[],[1357],{"type":998,"value":1358},"len(set)",{"type":998,"value":1360},": Get number of elements",{"type":993,"tag":1350,"props":1362,"children":1363},{},[1364,1370],{"type":993,"tag":1022,"props":1365,"children":1367},{"className":1366},[],[1368],{"type":998,"value":1369},"bool(set)",{"type":998,"value":1371},": Check if set is empty",{"type":993,"tag":1350,"props":1373,"children":1374},{},[1375],{"type":998,"value":1376},"Fast O(1) operations",{"type":993,"tag":1001,"props":1378,"children":1379},{},[1380],{"type":993,"tag":1340,"props":1381,"children":1382},{},[1383],{"type":998,"value":1384},"Membership Testing:",{"type":993,"tag":1346,"props":1386,"children":1387},{},[1388,1399,1410],{"type":993,"tag":1350,"props":1389,"children":1390},{},[1391,1397],{"type":993,"tag":1022,"props":1392,"children":1394},{"className":1393},[],[1395],{"type":998,"value":1396},"item in set",{"type":998,"value":1398},": Check if item exists",{"type":993,"tag":1350,"props":1400,"children":1401},{},[1402,1408],{"type":993,"tag":1022,"props":1403,"children":1405},{"className":1404},[],[1406],{"type":998,"value":1407},"item not in set",{"type":998,"value":1409},": Check if item doesn't exist",{"type":993,"tag":1350,"props":1411,"children":1412},{},[1413],{"type":998,"value":1414},"Very fast O(1) average time",{"type":993,"tag":1001,"props":1416,"children":1417},{},[1418],{"type":993,"tag":1340,"props":1419,"children":1420},{},[1421],{"type":998,"value":1422},"Basic Properties:",{"type":993,"tag":1346,"props":1424,"children":1425},{},[1426,1431,1436],{"type":993,"tag":1350,"props":1427,"children":1428},{},[1429],{"type":998,"value":1430},"Sets are unordered collections",{"type":993,"tag":1350,"props":1432,"children":1433},{},[1434],{"type":998,"value":1435},"No indexing like lists",{"type":993,"tag":1350,"props":1437,"children":1438},{},[1439],{"type":998,"value":1440},"Optimized for membership testing",{"type":993,"tag":1442,"props":1443,"children":1445},"h3",{"id":1444},"checking-set-size",[1446],{"type":998,"value":1447},"Checking Set Size",{"type":993,"tag":1001,"props":1449,"children":1450},{},[1451],{"type":998,"value":1452},"Finding out how many items are in a set.",{"type":993,"tag":1012,"props":1454,"children":1455},{},[1456],{"type":993,"tag":1016,"props":1457,"children":1459},{"className":1018,"code":1458,"language":6,"meta":8,"style":8},"# Set size operations\nfruits = {\"apple\", \"banana\", \"orange\"}\nempty_set = set()\nlarge_set = set(range(100))\n\nprint(f\"Fruits count: {len(fruits)}\")\nprint(f\"Empty set count: {len(empty_set)}\")\nprint(f\"Large set count: {len(large_set)}\")\n\n# Check if set is empty\nis_empty = len(fruits) == 0\nprint(f\"Is fruits set empty? {is_empty}\")\n",[1460],{"type":993,"tag":1022,"props":1461,"children":1462},{"__ignoreMap":8},[1463,1471,1514,1536,1575,1582,1623,1664,1705,1712,1720,1752],{"type":993,"tag":1026,"props":1464,"children":1465},{"class":1028,"line":12},[1466],{"type":993,"tag":1026,"props":1467,"children":1468},{"style":1032},[1469],{"type":998,"value":1470},"# Set size operations\n",{"type":993,"tag":1026,"props":1472,"children":1473},{"class":1028,"line":27},[1474,1479,1483,1487,1492,1496,1501,1505,1510],{"type":993,"tag":1026,"props":1475,"children":1476},{"style":1041},[1477],{"type":998,"value":1478},"fruits ",{"type":993,"tag":1026,"props":1480,"children":1481},{"style":1047},[1482],{"type":998,"value":1050},{"type":993,"tag":1026,"props":1484,"children":1485},{"style":1041},[1486],{"type":998,"value":1055},{"type":993,"tag":1026,"props":1488,"children":1489},{"style":1058},[1490],{"type":998,"value":1491},"\"apple\"",{"type":993,"tag":1026,"props":1493,"children":1494},{"style":1041},[1495],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1497,"children":1498},{"style":1058},[1499],{"type":998,"value":1500},"\"banana\"",{"type":993,"tag":1026,"props":1502,"children":1503},{"style":1041},[1504],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1506,"children":1507},{"style":1058},[1508],{"type":998,"value":1509},"\"orange\"",{"type":993,"tag":1026,"props":1511,"children":1512},{"style":1041},[1513],{"type":998,"value":1094},{"type":993,"tag":1026,"props":1515,"children":1516},{"class":1028,"line":36},[1517,1522,1526,1531],{"type":993,"tag":1026,"props":1518,"children":1519},{"style":1041},[1520],{"type":998,"value":1521},"empty_set ",{"type":993,"tag":1026,"props":1523,"children":1524},{"style":1047},[1525],{"type":998,"value":1050},{"type":993,"tag":1026,"props":1527,"children":1528},{"style":1116},[1529],{"type":998,"value":1530}," set",{"type":993,"tag":1026,"props":1532,"children":1533},{"style":1041},[1534],{"type":998,"value":1535},"()\n",{"type":993,"tag":1026,"props":1537,"children":1538},{"class":1028,"line":45},[1539,1544,1548,1552,1556,1561,1565,1570],{"type":993,"tag":1026,"props":1540,"children":1541},{"style":1041},[1542],{"type":998,"value":1543},"large_set ",{"type":993,"tag":1026,"props":1545,"children":1546},{"style":1047},[1547],{"type":998,"value":1050},{"type":993,"tag":1026,"props":1549,"children":1550},{"style":1116},[1551],{"type":998,"value":1530},{"type":993,"tag":1026,"props":1553,"children":1554},{"style":1041},[1555],{"type":998,"value":1124},{"type":993,"tag":1026,"props":1557,"children":1558},{"style":1116},[1559],{"type":998,"value":1560},"range",{"type":993,"tag":1026,"props":1562,"children":1563},{"style":1041},[1564],{"type":998,"value":1124},{"type":993,"tag":1026,"props":1566,"children":1567},{"style":1116},[1568],{"type":998,"value":1569},"100",{"type":993,"tag":1026,"props":1571,"children":1572},{"style":1041},[1573],{"type":998,"value":1574},"))\n",{"type":993,"tag":1026,"props":1576,"children":1577},{"class":1028,"line":54},[1578],{"type":993,"tag":1026,"props":1579,"children":1580},{"emptyLinePlaceholder":13},[1581],{"type":998,"value":1102},{"type":993,"tag":1026,"props":1583,"children":1584},{"class":1028,"line":63},[1585,1589,1593,1597,1602,1606,1611,1615,1619],{"type":993,"tag":1026,"props":1586,"children":1587},{"style":1116},[1588],{"type":998,"value":1119},{"type":993,"tag":1026,"props":1590,"children":1591},{"style":1041},[1592],{"type":998,"value":1124},{"type":993,"tag":1026,"props":1594,"children":1595},{"style":1047},[1596],{"type":998,"value":1129},{"type":993,"tag":1026,"props":1598,"children":1599},{"style":1058},[1600],{"type":998,"value":1601},"\"Fruits count: ",{"type":993,"tag":1026,"props":1603,"children":1604},{"style":1116},[1605],{"type":998,"value":1139},{"type":993,"tag":1026,"props":1607,"children":1608},{"style":1041},[1609],{"type":998,"value":1610},"(fruits)",{"type":993,"tag":1026,"props":1612,"children":1613},{"style":1116},[1614],{"type":998,"value":1149},{"type":993,"tag":1026,"props":1616,"children":1617},{"style":1058},[1618],{"type":998,"value":1154},{"type":993,"tag":1026,"props":1620,"children":1621},{"style":1041},[1622],{"type":998,"value":1159},{"type":993,"tag":1026,"props":1624,"children":1625},{"class":1028,"line":72},[1626,1630,1634,1638,1643,1647,1652,1656,1660],{"type":993,"tag":1026,"props":1627,"children":1628},{"style":1116},[1629],{"type":998,"value":1119},{"type":993,"tag":1026,"props":1631,"children":1632},{"style":1041},[1633],{"type":998,"value":1124},{"type":993,"tag":1026,"props":1635,"children":1636},{"style":1047},[1637],{"type":998,"value":1129},{"type":993,"tag":1026,"props":1639,"children":1640},{"style":1058},[1641],{"type":998,"value":1642},"\"Empty set count: ",{"type":993,"tag":1026,"props":1644,"children":1645},{"style":1116},[1646],{"type":998,"value":1139},{"type":993,"tag":1026,"props":1648,"children":1649},{"style":1041},[1650],{"type":998,"value":1651},"(empty_set)",{"type":993,"tag":1026,"props":1653,"children":1654},{"style":1116},[1655],{"type":998,"value":1149},{"type":993,"tag":1026,"props":1657,"children":1658},{"style":1058},[1659],{"type":998,"value":1154},{"type":993,"tag":1026,"props":1661,"children":1662},{"style":1041},[1663],{"type":998,"value":1159},{"type":993,"tag":1026,"props":1665,"children":1666},{"class":1028,"line":81},[1667,1671,1675,1679,1684,1688,1693,1697,1701],{"type":993,"tag":1026,"props":1668,"children":1669},{"style":1116},[1670],{"type":998,"value":1119},{"type":993,"tag":1026,"props":1672,"children":1673},{"style":1041},[1674],{"type":998,"value":1124},{"type":993,"tag":1026,"props":1676,"children":1677},{"style":1047},[1678],{"type":998,"value":1129},{"type":993,"tag":1026,"props":1680,"children":1681},{"style":1058},[1682],{"type":998,"value":1683},"\"Large set count: ",{"type":993,"tag":1026,"props":1685,"children":1686},{"style":1116},[1687],{"type":998,"value":1139},{"type":993,"tag":1026,"props":1689,"children":1690},{"style":1041},[1691],{"type":998,"value":1692},"(large_set)",{"type":993,"tag":1026,"props":1694,"children":1695},{"style":1116},[1696],{"type":998,"value":1149},{"type":993,"tag":1026,"props":1698,"children":1699},{"style":1058},[1700],{"type":998,"value":1154},{"type":993,"tag":1026,"props":1702,"children":1703},{"style":1041},[1704],{"type":998,"value":1159},{"type":993,"tag":1026,"props":1706,"children":1707},{"class":1028,"line":91},[1708],{"type":993,"tag":1026,"props":1709,"children":1710},{"emptyLinePlaceholder":13},[1711],{"type":998,"value":1102},{"type":993,"tag":1026,"props":1713,"children":1714},{"class":1028,"line":100},[1715],{"type":993,"tag":1026,"props":1716,"children":1717},{"style":1032},[1718],{"type":998,"value":1719},"# Check if set is empty\n",{"type":993,"tag":1026,"props":1721,"children":1722},{"class":1028,"line":109},[1723,1728,1732,1737,1742,1747],{"type":993,"tag":1026,"props":1724,"children":1725},{"style":1041},[1726],{"type":998,"value":1727},"is_empty ",{"type":993,"tag":1026,"props":1729,"children":1730},{"style":1047},[1731],{"type":998,"value":1050},{"type":993,"tag":1026,"props":1733,"children":1734},{"style":1116},[1735],{"type":998,"value":1736}," len",{"type":993,"tag":1026,"props":1738,"children":1739},{"style":1041},[1740],{"type":998,"value":1741},"(fruits) ",{"type":993,"tag":1026,"props":1743,"children":1744},{"style":1047},[1745],{"type":998,"value":1746},"==",{"type":993,"tag":1026,"props":1748,"children":1749},{"style":1116},[1750],{"type":998,"value":1751}," 0\n",{"type":993,"tag":1026,"props":1753,"children":1754},{"class":1028,"line":118},[1755,1759,1763,1767,1772,1776,1781,1785,1789],{"type":993,"tag":1026,"props":1756,"children":1757},{"style":1116},[1758],{"type":998,"value":1119},{"type":993,"tag":1026,"props":1760,"children":1761},{"style":1041},[1762],{"type":998,"value":1124},{"type":993,"tag":1026,"props":1764,"children":1765},{"style":1047},[1766],{"type":998,"value":1129},{"type":993,"tag":1026,"props":1768,"children":1769},{"style":1058},[1770],{"type":998,"value":1771},"\"Is fruits set empty? ",{"type":993,"tag":1026,"props":1773,"children":1774},{"style":1116},[1775],{"type":998,"value":1258},{"type":993,"tag":1026,"props":1777,"children":1778},{"style":1041},[1779],{"type":998,"value":1780},"is_empty",{"type":993,"tag":1026,"props":1782,"children":1783},{"style":1116},[1784],{"type":998,"value":1149},{"type":993,"tag":1026,"props":1786,"children":1787},{"style":1058},[1788],{"type":998,"value":1154},{"type":993,"tag":1026,"props":1790,"children":1791},{"style":1041},[1792],{"type":998,"value":1159},{"type":993,"tag":1442,"props":1794,"children":1796},{"id":1795},"membership-testing",[1797],{"type":998,"value":1798},"Membership Testing",{"type":993,"tag":1001,"props":1800,"children":1801},{},[1802],{"type":998,"value":1803},"Checking if items exist in a set (very fast operation).",{"type":993,"tag":1012,"props":1805,"children":1806},{},[1807],{"type":993,"tag":1016,"props":1808,"children":1810},{"className":1018,"code":1809,"language":6,"meta":8,"style":8},"# Fast membership testing\nprogramming_languages = {\"python\", \"java\", \"javascript\", \"go\", \"rust\"}\n\n# Check for specific languages\nhas_python = \"python\" in programming_languages\nhas_cobol = \"cobol\" in programming_languages\n\nprint(f\"Has Python? {has_python}\")\nprint(f\"Has COBOL? {has_cobol}\")\n\n# Check multiple items\nlanguages_to_check = [\"python\", \"ruby\", \"java\", \"php\"]\nfor lang in languages_to_check:\n    exists = lang in programming_languages\n    print(f\"{lang}: {'Found' if exists else 'Not found'}\")\n",[1811],{"type":993,"tag":1022,"props":1812,"children":1813},{"__ignoreMap":8},[1814,1822,1883,1890,1898,1924,1949,1956,1997,2038,2045,2053,2105,2128,2152],{"type":993,"tag":1026,"props":1815,"children":1816},{"class":1028,"line":12},[1817],{"type":993,"tag":1026,"props":1818,"children":1819},{"style":1032},[1820],{"type":998,"value":1821},"# Fast membership testing\n",{"type":993,"tag":1026,"props":1823,"children":1824},{"class":1028,"line":27},[1825,1830,1834,1838,1843,1847,1852,1856,1861,1865,1870,1874,1879],{"type":993,"tag":1026,"props":1826,"children":1827},{"style":1041},[1828],{"type":998,"value":1829},"programming_languages ",{"type":993,"tag":1026,"props":1831,"children":1832},{"style":1047},[1833],{"type":998,"value":1050},{"type":993,"tag":1026,"props":1835,"children":1836},{"style":1041},[1837],{"type":998,"value":1055},{"type":993,"tag":1026,"props":1839,"children":1840},{"style":1058},[1841],{"type":998,"value":1842},"\"python\"",{"type":993,"tag":1026,"props":1844,"children":1845},{"style":1041},[1846],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1848,"children":1849},{"style":1058},[1850],{"type":998,"value":1851},"\"java\"",{"type":993,"tag":1026,"props":1853,"children":1854},{"style":1041},[1855],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1857,"children":1858},{"style":1058},[1859],{"type":998,"value":1860},"\"javascript\"",{"type":993,"tag":1026,"props":1862,"children":1863},{"style":1041},[1864],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1866,"children":1867},{"style":1058},[1868],{"type":998,"value":1869},"\"go\"",{"type":993,"tag":1026,"props":1871,"children":1872},{"style":1041},[1873],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1875,"children":1876},{"style":1058},[1877],{"type":998,"value":1878},"\"rust\"",{"type":993,"tag":1026,"props":1880,"children":1881},{"style":1041},[1882],{"type":998,"value":1094},{"type":993,"tag":1026,"props":1884,"children":1885},{"class":1028,"line":36},[1886],{"type":993,"tag":1026,"props":1887,"children":1888},{"emptyLinePlaceholder":13},[1889],{"type":998,"value":1102},{"type":993,"tag":1026,"props":1891,"children":1892},{"class":1028,"line":45},[1893],{"type":993,"tag":1026,"props":1894,"children":1895},{"style":1032},[1896],{"type":998,"value":1897},"# Check for specific languages\n",{"type":993,"tag":1026,"props":1899,"children":1900},{"class":1028,"line":54},[1901,1906,1910,1915,1919],{"type":993,"tag":1026,"props":1902,"children":1903},{"style":1041},[1904],{"type":998,"value":1905},"has_python ",{"type":993,"tag":1026,"props":1907,"children":1908},{"style":1047},[1909],{"type":998,"value":1050},{"type":993,"tag":1026,"props":1911,"children":1912},{"style":1058},[1913],{"type":998,"value":1914}," \"python\"",{"type":993,"tag":1026,"props":1916,"children":1917},{"style":1047},[1918],{"type":998,"value":1196},{"type":993,"tag":1026,"props":1920,"children":1921},{"style":1041},[1922],{"type":998,"value":1923}," programming_languages\n",{"type":993,"tag":1026,"props":1925,"children":1926},{"class":1028,"line":63},[1927,1932,1936,1941,1945],{"type":993,"tag":1026,"props":1928,"children":1929},{"style":1041},[1930],{"type":998,"value":1931},"has_cobol ",{"type":993,"tag":1026,"props":1933,"children":1934},{"style":1047},[1935],{"type":998,"value":1050},{"type":993,"tag":1026,"props":1937,"children":1938},{"style":1058},[1939],{"type":998,"value":1940}," \"cobol\"",{"type":993,"tag":1026,"props":1942,"children":1943},{"style":1047},[1944],{"type":998,"value":1196},{"type":993,"tag":1026,"props":1946,"children":1947},{"style":1041},[1948],{"type":998,"value":1923},{"type":993,"tag":1026,"props":1950,"children":1951},{"class":1028,"line":72},[1952],{"type":993,"tag":1026,"props":1953,"children":1954},{"emptyLinePlaceholder":13},[1955],{"type":998,"value":1102},{"type":993,"tag":1026,"props":1957,"children":1958},{"class":1028,"line":81},[1959,1963,1967,1971,1976,1980,1985,1989,1993],{"type":993,"tag":1026,"props":1960,"children":1961},{"style":1116},[1962],{"type":998,"value":1119},{"type":993,"tag":1026,"props":1964,"children":1965},{"style":1041},[1966],{"type":998,"value":1124},{"type":993,"tag":1026,"props":1968,"children":1969},{"style":1047},[1970],{"type":998,"value":1129},{"type":993,"tag":1026,"props":1972,"children":1973},{"style":1058},[1974],{"type":998,"value":1975},"\"Has Python? ",{"type":993,"tag":1026,"props":1977,"children":1978},{"style":1116},[1979],{"type":998,"value":1258},{"type":993,"tag":1026,"props":1981,"children":1982},{"style":1041},[1983],{"type":998,"value":1984},"has_python",{"type":993,"tag":1026,"props":1986,"children":1987},{"style":1116},[1988],{"type":998,"value":1149},{"type":993,"tag":1026,"props":1990,"children":1991},{"style":1058},[1992],{"type":998,"value":1154},{"type":993,"tag":1026,"props":1994,"children":1995},{"style":1041},[1996],{"type":998,"value":1159},{"type":993,"tag":1026,"props":1998,"children":1999},{"class":1028,"line":91},[2000,2004,2008,2012,2017,2021,2026,2030,2034],{"type":993,"tag":1026,"props":2001,"children":2002},{"style":1116},[2003],{"type":998,"value":1119},{"type":993,"tag":1026,"props":2005,"children":2006},{"style":1041},[2007],{"type":998,"value":1124},{"type":993,"tag":1026,"props":2009,"children":2010},{"style":1047},[2011],{"type":998,"value":1129},{"type":993,"tag":1026,"props":2013,"children":2014},{"style":1058},[2015],{"type":998,"value":2016},"\"Has COBOL? ",{"type":993,"tag":1026,"props":2018,"children":2019},{"style":1116},[2020],{"type":998,"value":1258},{"type":993,"tag":1026,"props":2022,"children":2023},{"style":1041},[2024],{"type":998,"value":2025},"has_cobol",{"type":993,"tag":1026,"props":2027,"children":2028},{"style":1116},[2029],{"type":998,"value":1149},{"type":993,"tag":1026,"props":2031,"children":2032},{"style":1058},[2033],{"type":998,"value":1154},{"type":993,"tag":1026,"props":2035,"children":2036},{"style":1041},[2037],{"type":998,"value":1159},{"type":993,"tag":1026,"props":2039,"children":2040},{"class":1028,"line":100},[2041],{"type":993,"tag":1026,"props":2042,"children":2043},{"emptyLinePlaceholder":13},[2044],{"type":998,"value":1102},{"type":993,"tag":1026,"props":2046,"children":2047},{"class":1028,"line":109},[2048],{"type":993,"tag":1026,"props":2049,"children":2050},{"style":1032},[2051],{"type":998,"value":2052},"# Check multiple items\n",{"type":993,"tag":1026,"props":2054,"children":2055},{"class":1028,"line":118},[2056,2061,2065,2070,2074,2078,2083,2087,2091,2095,2100],{"type":993,"tag":1026,"props":2057,"children":2058},{"style":1041},[2059],{"type":998,"value":2060},"languages_to_check ",{"type":993,"tag":1026,"props":2062,"children":2063},{"style":1047},[2064],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2066,"children":2067},{"style":1041},[2068],{"type":998,"value":2069}," [",{"type":993,"tag":1026,"props":2071,"children":2072},{"style":1058},[2073],{"type":998,"value":1842},{"type":993,"tag":1026,"props":2075,"children":2076},{"style":1041},[2077],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2079,"children":2080},{"style":1058},[2081],{"type":998,"value":2082},"\"ruby\"",{"type":993,"tag":1026,"props":2084,"children":2085},{"style":1041},[2086],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2088,"children":2089},{"style":1058},[2090],{"type":998,"value":1851},{"type":993,"tag":1026,"props":2092,"children":2093},{"style":1041},[2094],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2096,"children":2097},{"style":1058},[2098],{"type":998,"value":2099},"\"php\"",{"type":993,"tag":1026,"props":2101,"children":2102},{"style":1041},[2103],{"type":998,"value":2104},"]\n",{"type":993,"tag":1026,"props":2106,"children":2107},{"class":1028,"line":127},[2108,2113,2118,2123],{"type":993,"tag":1026,"props":2109,"children":2110},{"style":1047},[2111],{"type":998,"value":2112},"for",{"type":993,"tag":1026,"props":2114,"children":2115},{"style":1041},[2116],{"type":998,"value":2117}," lang ",{"type":993,"tag":1026,"props":2119,"children":2120},{"style":1047},[2121],{"type":998,"value":2122},"in",{"type":993,"tag":1026,"props":2124,"children":2125},{"style":1041},[2126],{"type":998,"value":2127}," languages_to_check:\n",{"type":993,"tag":1026,"props":2129,"children":2130},{"class":1028,"line":136},[2131,2136,2140,2144,2148],{"type":993,"tag":1026,"props":2132,"children":2133},{"style":1041},[2134],{"type":998,"value":2135},"    exists ",{"type":993,"tag":1026,"props":2137,"children":2138},{"style":1047},[2139],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2141,"children":2142},{"style":1041},[2143],{"type":998,"value":2117},{"type":993,"tag":1026,"props":2145,"children":2146},{"style":1047},[2147],{"type":998,"value":2122},{"type":993,"tag":1026,"props":2149,"children":2150},{"style":1041},[2151],{"type":998,"value":1923},{"type":993,"tag":1026,"props":2153,"children":2154},{"class":1028,"line":146},[2155,2160,2164,2168,2172,2176,2181,2185,2190,2194,2199,2204,2209,2214,2219,2223,2227],{"type":993,"tag":1026,"props":2156,"children":2157},{"style":1116},[2158],{"type":998,"value":2159},"    print",{"type":993,"tag":1026,"props":2161,"children":2162},{"style":1041},[2163],{"type":998,"value":1124},{"type":993,"tag":1026,"props":2165,"children":2166},{"style":1047},[2167],{"type":998,"value":1129},{"type":993,"tag":1026,"props":2169,"children":2170},{"style":1058},[2171],{"type":998,"value":1154},{"type":993,"tag":1026,"props":2173,"children":2174},{"style":1116},[2175],{"type":998,"value":1258},{"type":993,"tag":1026,"props":2177,"children":2178},{"style":1041},[2179],{"type":998,"value":2180},"lang",{"type":993,"tag":1026,"props":2182,"children":2183},{"style":1116},[2184],{"type":998,"value":1149},{"type":993,"tag":1026,"props":2186,"children":2187},{"style":1058},[2188],{"type":998,"value":2189},": ",{"type":993,"tag":1026,"props":2191,"children":2192},{"style":1116},[2193],{"type":998,"value":1258},{"type":993,"tag":1026,"props":2195,"children":2196},{"style":1058},[2197],{"type":998,"value":2198},"'Found'",{"type":993,"tag":1026,"props":2200,"children":2201},{"style":1047},[2202],{"type":998,"value":2203}," if",{"type":993,"tag":1026,"props":2205,"children":2206},{"style":1041},[2207],{"type":998,"value":2208}," exists ",{"type":993,"tag":1026,"props":2210,"children":2211},{"style":1047},[2212],{"type":998,"value":2213},"else",{"type":993,"tag":1026,"props":2215,"children":2216},{"style":1058},[2217],{"type":998,"value":2218}," 'Not found'",{"type":993,"tag":1026,"props":2220,"children":2221},{"style":1116},[2222],{"type":998,"value":1149},{"type":993,"tag":1026,"props":2224,"children":2225},{"style":1058},[2226],{"type":998,"value":1154},{"type":993,"tag":1026,"props":2228,"children":2229},{"style":1041},[2230],{"type":998,"value":1159},{"type":993,"tag":1442,"props":2232,"children":2234},{"id":2233},"boolean-set-testing",[2235],{"type":998,"value":2236},"Boolean Set Testing",{"type":993,"tag":1001,"props":2238,"children":2239},{},[2240],{"type":998,"value":2241},"Using sets in boolean contexts.",{"type":993,"tag":1012,"props":2243,"children":2244},{},[2245],{"type":993,"tag":1016,"props":2246,"children":2248},{"className":1018,"code":2247,"language":6,"meta":8,"style":8},"# Boolean testing with sets\nempty_set = set()\nfilled_set = {1, 2, 3}\n\n# Sets are truthy if they contain items\nif filled_set:\n    print(\"Filled set has items\")\n\nif not empty_set:\n    print(\"Empty set has no items\")\n\n# Practical example\nuser_permissions = {\"read\", \"write\"}\nrequired_permission = \"admin\"\n\nif required_permission not in user_permissions:\n    print(\"Access denied: insufficient permissions\")\n",[2249],{"type":993,"tag":1022,"props":2250,"children":2251},{"__ignoreMap":8},[2252,2260,2279,2322,2329,2337,2350,2370,2377,2394,2414,2421,2429,2463,2480,2487,2513],{"type":993,"tag":1026,"props":2253,"children":2254},{"class":1028,"line":12},[2255],{"type":993,"tag":1026,"props":2256,"children":2257},{"style":1032},[2258],{"type":998,"value":2259},"# Boolean testing with sets\n",{"type":993,"tag":1026,"props":2261,"children":2262},{"class":1028,"line":27},[2263,2267,2271,2275],{"type":993,"tag":1026,"props":2264,"children":2265},{"style":1041},[2266],{"type":998,"value":1521},{"type":993,"tag":1026,"props":2268,"children":2269},{"style":1047},[2270],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2272,"children":2273},{"style":1116},[2274],{"type":998,"value":1530},{"type":993,"tag":1026,"props":2276,"children":2277},{"style":1041},[2278],{"type":998,"value":1535},{"type":993,"tag":1026,"props":2280,"children":2281},{"class":1028,"line":36},[2282,2287,2291,2295,2300,2304,2309,2313,2318],{"type":993,"tag":1026,"props":2283,"children":2284},{"style":1041},[2285],{"type":998,"value":2286},"filled_set ",{"type":993,"tag":1026,"props":2288,"children":2289},{"style":1047},[2290],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2292,"children":2293},{"style":1041},[2294],{"type":998,"value":1055},{"type":993,"tag":1026,"props":2296,"children":2297},{"style":1116},[2298],{"type":998,"value":2299},"1",{"type":993,"tag":1026,"props":2301,"children":2302},{"style":1041},[2303],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2305,"children":2306},{"style":1116},[2307],{"type":998,"value":2308},"2",{"type":993,"tag":1026,"props":2310,"children":2311},{"style":1041},[2312],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2314,"children":2315},{"style":1116},[2316],{"type":998,"value":2317},"3",{"type":993,"tag":1026,"props":2319,"children":2320},{"style":1041},[2321],{"type":998,"value":1094},{"type":993,"tag":1026,"props":2323,"children":2324},{"class":1028,"line":45},[2325],{"type":993,"tag":1026,"props":2326,"children":2327},{"emptyLinePlaceholder":13},[2328],{"type":998,"value":1102},{"type":993,"tag":1026,"props":2330,"children":2331},{"class":1028,"line":54},[2332],{"type":993,"tag":1026,"props":2333,"children":2334},{"style":1032},[2335],{"type":998,"value":2336},"# Sets are truthy if they contain items\n",{"type":993,"tag":1026,"props":2338,"children":2339},{"class":1028,"line":63},[2340,2345],{"type":993,"tag":1026,"props":2341,"children":2342},{"style":1047},[2343],{"type":998,"value":2344},"if",{"type":993,"tag":1026,"props":2346,"children":2347},{"style":1041},[2348],{"type":998,"value":2349}," filled_set:\n",{"type":993,"tag":1026,"props":2351,"children":2352},{"class":1028,"line":72},[2353,2357,2361,2366],{"type":993,"tag":1026,"props":2354,"children":2355},{"style":1116},[2356],{"type":998,"value":2159},{"type":993,"tag":1026,"props":2358,"children":2359},{"style":1041},[2360],{"type":998,"value":1124},{"type":993,"tag":1026,"props":2362,"children":2363},{"style":1058},[2364],{"type":998,"value":2365},"\"Filled set has items\"",{"type":993,"tag":1026,"props":2367,"children":2368},{"style":1041},[2369],{"type":998,"value":1159},{"type":993,"tag":1026,"props":2371,"children":2372},{"class":1028,"line":81},[2373],{"type":993,"tag":1026,"props":2374,"children":2375},{"emptyLinePlaceholder":13},[2376],{"type":998,"value":1102},{"type":993,"tag":1026,"props":2378,"children":2379},{"class":1028,"line":91},[2380,2384,2389],{"type":993,"tag":1026,"props":2381,"children":2382},{"style":1047},[2383],{"type":998,"value":2344},{"type":993,"tag":1026,"props":2385,"children":2386},{"style":1047},[2387],{"type":998,"value":2388}," not",{"type":993,"tag":1026,"props":2390,"children":2391},{"style":1041},[2392],{"type":998,"value":2393}," empty_set:\n",{"type":993,"tag":1026,"props":2395,"children":2396},{"class":1028,"line":100},[2397,2401,2405,2410],{"type":993,"tag":1026,"props":2398,"children":2399},{"style":1116},[2400],{"type":998,"value":2159},{"type":993,"tag":1026,"props":2402,"children":2403},{"style":1041},[2404],{"type":998,"value":1124},{"type":993,"tag":1026,"props":2406,"children":2407},{"style":1058},[2408],{"type":998,"value":2409},"\"Empty set has no items\"",{"type":993,"tag":1026,"props":2411,"children":2412},{"style":1041},[2413],{"type":998,"value":1159},{"type":993,"tag":1026,"props":2415,"children":2416},{"class":1028,"line":109},[2417],{"type":993,"tag":1026,"props":2418,"children":2419},{"emptyLinePlaceholder":13},[2420],{"type":998,"value":1102},{"type":993,"tag":1026,"props":2422,"children":2423},{"class":1028,"line":118},[2424],{"type":993,"tag":1026,"props":2425,"children":2426},{"style":1032},[2427],{"type":998,"value":2428},"# Practical example\n",{"type":993,"tag":1026,"props":2430,"children":2431},{"class":1028,"line":127},[2432,2437,2441,2445,2450,2454,2459],{"type":993,"tag":1026,"props":2433,"children":2434},{"style":1041},[2435],{"type":998,"value":2436},"user_permissions ",{"type":993,"tag":1026,"props":2438,"children":2439},{"style":1047},[2440],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2442,"children":2443},{"style":1041},[2444],{"type":998,"value":1055},{"type":993,"tag":1026,"props":2446,"children":2447},{"style":1058},[2448],{"type":998,"value":2449},"\"read\"",{"type":993,"tag":1026,"props":2451,"children":2452},{"style":1041},[2453],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2455,"children":2456},{"style":1058},[2457],{"type":998,"value":2458},"\"write\"",{"type":993,"tag":1026,"props":2460,"children":2461},{"style":1041},[2462],{"type":998,"value":1094},{"type":993,"tag":1026,"props":2464,"children":2465},{"class":1028,"line":136},[2466,2471,2475],{"type":993,"tag":1026,"props":2467,"children":2468},{"style":1041},[2469],{"type":998,"value":2470},"required_permission ",{"type":993,"tag":1026,"props":2472,"children":2473},{"style":1047},[2474],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2476,"children":2477},{"style":1058},[2478],{"type":998,"value":2479}," \"admin\"\n",{"type":993,"tag":1026,"props":2481,"children":2482},{"class":1028,"line":146},[2483],{"type":993,"tag":1026,"props":2484,"children":2485},{"emptyLinePlaceholder":13},[2486],{"type":998,"value":1102},{"type":993,"tag":1026,"props":2488,"children":2489},{"class":1028,"line":155},[2490,2494,2499,2504,2508],{"type":993,"tag":1026,"props":2491,"children":2492},{"style":1047},[2493],{"type":998,"value":2344},{"type":993,"tag":1026,"props":2495,"children":2496},{"style":1041},[2497],{"type":998,"value":2498}," required_permission ",{"type":993,"tag":1026,"props":2500,"children":2501},{"style":1047},[2502],{"type":998,"value":2503},"not",{"type":993,"tag":1026,"props":2505,"children":2506},{"style":1047},[2507],{"type":998,"value":1196},{"type":993,"tag":1026,"props":2509,"children":2510},{"style":1041},[2511],{"type":998,"value":2512}," user_permissions:\n",{"type":993,"tag":1026,"props":2514,"children":2515},{"class":1028,"line":164},[2516,2520,2524,2529],{"type":993,"tag":1026,"props":2517,"children":2518},{"style":1116},[2519],{"type":998,"value":2159},{"type":993,"tag":1026,"props":2521,"children":2522},{"style":1041},[2523],{"type":998,"value":1124},{"type":993,"tag":1026,"props":2525,"children":2526},{"style":1058},[2527],{"type":998,"value":2528},"\"Access denied: insufficient permissions\"",{"type":993,"tag":1026,"props":2530,"children":2531},{"style":1041},[2532],{"type":998,"value":1159},{"type":993,"tag":1318,"props":2534,"children":2536},{"id":2535},"iterating-through-sets",[2537],{"type":998,"value":2538},"⚡ Iterating Through Sets",{"type":993,"tag":1001,"props":2540,"children":2541},{},[2542],{"type":998,"value":2543},"Since sets don't have indexes, you use iteration to access all elements.",{"type":993,"tag":1330,"props":2545,"children":2549},{"emoji":2546,"title":2547,"type":2548},"🔄","Set Iteration","success",[2550,2558,2582,2590,2614,2622],{"type":993,"tag":1001,"props":2551,"children":2552},{},[2553],{"type":993,"tag":1340,"props":2554,"children":2555},{},[2556],{"type":998,"value":2557},"Simple Iteration:",{"type":993,"tag":1346,"props":2559,"children":2560},{},[2561,2572,2577],{"type":993,"tag":1350,"props":2562,"children":2563},{},[2564,2570],{"type":993,"tag":1022,"props":2565,"children":2567},{"className":2566},[],[2568],{"type":998,"value":2569},"for item in set:",{"type":998,"value":2571}," - Process each element",{"type":993,"tag":1350,"props":2573,"children":2574},{},[2575],{"type":998,"value":2576},"Order is not guaranteed",{"type":993,"tag":1350,"props":2578,"children":2579},{},[2580],{"type":998,"value":2581},"All elements accessed exactly once",{"type":993,"tag":1001,"props":2583,"children":2584},{},[2585],{"type":993,"tag":1340,"props":2586,"children":2587},{},[2588],{"type":998,"value":2589},"With Enumeration:",{"type":993,"tag":1346,"props":2591,"children":2592},{},[2593,2604,2609],{"type":993,"tag":1350,"props":2594,"children":2595},{},[2596,2602],{"type":993,"tag":1022,"props":2597,"children":2599},{"className":2598},[],[2600],{"type":998,"value":2601},"enumerate(set)",{"type":998,"value":2603}," - Get position and element",{"type":993,"tag":1350,"props":2605,"children":2606},{},[2607],{"type":998,"value":2608},"Position doesn't relate to any ordering",{"type":993,"tag":1350,"props":2610,"children":2611},{},[2612],{"type":998,"value":2613},"Useful for counting during iteration",{"type":993,"tag":1001,"props":2615,"children":2616},{},[2617],{"type":993,"tag":1340,"props":2618,"children":2619},{},[2620],{"type":998,"value":2621},"Filtering During Iteration:",{"type":993,"tag":1346,"props":2623,"children":2624},{},[2625,2630,2635],{"type":993,"tag":1350,"props":2626,"children":2627},{},[2628],{"type":998,"value":2629},"Combine with conditions",{"type":993,"tag":1350,"props":2631,"children":2632},{},[2633],{"type":998,"value":2634},"Process only matching elements",{"type":993,"tag":1350,"props":2636,"children":2637},{},[2638],{"type":998,"value":2639},"Create new collections from results",{"type":993,"tag":1442,"props":2641,"children":2643},{"id":2642},"basic-set-iteration",[2644],{"type":998,"value":2645},"Basic Set Iteration",{"type":993,"tag":1001,"props":2647,"children":2648},{},[2649],{"type":998,"value":2650},"Looping through all set elements.",{"type":993,"tag":1012,"props":2652,"children":2653},{},[2654],{"type":993,"tag":1016,"props":2655,"children":2657},{"className":1018,"code":2656,"language":6,"meta":8,"style":8},"# Basic iteration through sets\nstudent_grades = {\"A\", \"B\", \"C\", \"D\", \"F\"}\n\nprint(\"All grades:\")\nfor grade in student_grades:\n    print(f\"  Grade: {grade}\")\n\n# Process elements during iteration\nnumbers = {1, 4, 9, 16, 25}\nprint(\"\\nSquare roots:\")\nfor num in numbers:\n    sqrt = num ** 0.5\n    print(f\"√{num} = {sqrt}\")\n",[2658],{"type":993,"tag":1022,"props":2659,"children":2660},{"__ignoreMap":8},[2661,2669,2730,2737,2757,2778,2819,2826,2834,2894,2923,2944,2970],{"type":993,"tag":1026,"props":2662,"children":2663},{"class":1028,"line":12},[2664],{"type":993,"tag":1026,"props":2665,"children":2666},{"style":1032},[2667],{"type":998,"value":2668},"# Basic iteration through sets\n",{"type":993,"tag":1026,"props":2670,"children":2671},{"class":1028,"line":27},[2672,2677,2681,2685,2690,2694,2699,2703,2708,2712,2717,2721,2726],{"type":993,"tag":1026,"props":2673,"children":2674},{"style":1041},[2675],{"type":998,"value":2676},"student_grades ",{"type":993,"tag":1026,"props":2678,"children":2679},{"style":1047},[2680],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2682,"children":2683},{"style":1041},[2684],{"type":998,"value":1055},{"type":993,"tag":1026,"props":2686,"children":2687},{"style":1058},[2688],{"type":998,"value":2689},"\"A\"",{"type":993,"tag":1026,"props":2691,"children":2692},{"style":1041},[2693],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2695,"children":2696},{"style":1058},[2697],{"type":998,"value":2698},"\"B\"",{"type":993,"tag":1026,"props":2700,"children":2701},{"style":1041},[2702],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2704,"children":2705},{"style":1058},[2706],{"type":998,"value":2707},"\"C\"",{"type":993,"tag":1026,"props":2709,"children":2710},{"style":1041},[2711],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2713,"children":2714},{"style":1058},[2715],{"type":998,"value":2716},"\"D\"",{"type":993,"tag":1026,"props":2718,"children":2719},{"style":1041},[2720],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2722,"children":2723},{"style":1058},[2724],{"type":998,"value":2725},"\"F\"",{"type":993,"tag":1026,"props":2727,"children":2728},{"style":1041},[2729],{"type":998,"value":1094},{"type":993,"tag":1026,"props":2731,"children":2732},{"class":1028,"line":36},[2733],{"type":993,"tag":1026,"props":2734,"children":2735},{"emptyLinePlaceholder":13},[2736],{"type":998,"value":1102},{"type":993,"tag":1026,"props":2738,"children":2739},{"class":1028,"line":45},[2740,2744,2748,2753],{"type":993,"tag":1026,"props":2741,"children":2742},{"style":1116},[2743],{"type":998,"value":1119},{"type":993,"tag":1026,"props":2745,"children":2746},{"style":1041},[2747],{"type":998,"value":1124},{"type":993,"tag":1026,"props":2749,"children":2750},{"style":1058},[2751],{"type":998,"value":2752},"\"All grades:\"",{"type":993,"tag":1026,"props":2754,"children":2755},{"style":1041},[2756],{"type":998,"value":1159},{"type":993,"tag":1026,"props":2758,"children":2759},{"class":1028,"line":54},[2760,2764,2769,2773],{"type":993,"tag":1026,"props":2761,"children":2762},{"style":1047},[2763],{"type":998,"value":2112},{"type":993,"tag":1026,"props":2765,"children":2766},{"style":1041},[2767],{"type":998,"value":2768}," grade ",{"type":993,"tag":1026,"props":2770,"children":2771},{"style":1047},[2772],{"type":998,"value":2122},{"type":993,"tag":1026,"props":2774,"children":2775},{"style":1041},[2776],{"type":998,"value":2777}," student_grades:\n",{"type":993,"tag":1026,"props":2779,"children":2780},{"class":1028,"line":63},[2781,2785,2789,2793,2798,2802,2807,2811,2815],{"type":993,"tag":1026,"props":2782,"children":2783},{"style":1116},[2784],{"type":998,"value":2159},{"type":993,"tag":1026,"props":2786,"children":2787},{"style":1041},[2788],{"type":998,"value":1124},{"type":993,"tag":1026,"props":2790,"children":2791},{"style":1047},[2792],{"type":998,"value":1129},{"type":993,"tag":1026,"props":2794,"children":2795},{"style":1058},[2796],{"type":998,"value":2797},"\"  Grade: ",{"type":993,"tag":1026,"props":2799,"children":2800},{"style":1116},[2801],{"type":998,"value":1258},{"type":993,"tag":1026,"props":2803,"children":2804},{"style":1041},[2805],{"type":998,"value":2806},"grade",{"type":993,"tag":1026,"props":2808,"children":2809},{"style":1116},[2810],{"type":998,"value":1149},{"type":993,"tag":1026,"props":2812,"children":2813},{"style":1058},[2814],{"type":998,"value":1154},{"type":993,"tag":1026,"props":2816,"children":2817},{"style":1041},[2818],{"type":998,"value":1159},{"type":993,"tag":1026,"props":2820,"children":2821},{"class":1028,"line":72},[2822],{"type":993,"tag":1026,"props":2823,"children":2824},{"emptyLinePlaceholder":13},[2825],{"type":998,"value":1102},{"type":993,"tag":1026,"props":2827,"children":2828},{"class":1028,"line":81},[2829],{"type":993,"tag":1026,"props":2830,"children":2831},{"style":1032},[2832],{"type":998,"value":2833},"# Process elements during iteration\n",{"type":993,"tag":1026,"props":2835,"children":2836},{"class":1028,"line":91},[2837,2842,2846,2850,2854,2858,2863,2867,2872,2876,2881,2885,2890],{"type":993,"tag":1026,"props":2838,"children":2839},{"style":1041},[2840],{"type":998,"value":2841},"numbers ",{"type":993,"tag":1026,"props":2843,"children":2844},{"style":1047},[2845],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2847,"children":2848},{"style":1041},[2849],{"type":998,"value":1055},{"type":993,"tag":1026,"props":2851,"children":2852},{"style":1116},[2853],{"type":998,"value":2299},{"type":993,"tag":1026,"props":2855,"children":2856},{"style":1041},[2857],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2859,"children":2860},{"style":1116},[2861],{"type":998,"value":2862},"4",{"type":993,"tag":1026,"props":2864,"children":2865},{"style":1041},[2866],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2868,"children":2869},{"style":1116},[2870],{"type":998,"value":2871},"9",{"type":993,"tag":1026,"props":2873,"children":2874},{"style":1041},[2875],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2877,"children":2878},{"style":1116},[2879],{"type":998,"value":2880},"16",{"type":993,"tag":1026,"props":2882,"children":2883},{"style":1041},[2884],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2886,"children":2887},{"style":1116},[2888],{"type":998,"value":2889},"25",{"type":993,"tag":1026,"props":2891,"children":2892},{"style":1041},[2893],{"type":998,"value":1094},{"type":993,"tag":1026,"props":2895,"children":2896},{"class":1028,"line":100},[2897,2901,2905,2909,2914,2919],{"type":993,"tag":1026,"props":2898,"children":2899},{"style":1116},[2900],{"type":998,"value":1119},{"type":993,"tag":1026,"props":2902,"children":2903},{"style":1041},[2904],{"type":998,"value":1124},{"type":993,"tag":1026,"props":2906,"children":2907},{"style":1058},[2908],{"type":998,"value":1154},{"type":993,"tag":1026,"props":2910,"children":2911},{"style":1116},[2912],{"type":998,"value":2913},"\\n",{"type":993,"tag":1026,"props":2915,"children":2916},{"style":1058},[2917],{"type":998,"value":2918},"Square roots:\"",{"type":993,"tag":1026,"props":2920,"children":2921},{"style":1041},[2922],{"type":998,"value":1159},{"type":993,"tag":1026,"props":2924,"children":2925},{"class":1028,"line":109},[2926,2930,2935,2939],{"type":993,"tag":1026,"props":2927,"children":2928},{"style":1047},[2929],{"type":998,"value":2112},{"type":993,"tag":1026,"props":2931,"children":2932},{"style":1041},[2933],{"type":998,"value":2934}," num ",{"type":993,"tag":1026,"props":2936,"children":2937},{"style":1047},[2938],{"type":998,"value":2122},{"type":993,"tag":1026,"props":2940,"children":2941},{"style":1041},[2942],{"type":998,"value":2943}," numbers:\n",{"type":993,"tag":1026,"props":2945,"children":2946},{"class":1028,"line":118},[2947,2952,2956,2960,2965],{"type":993,"tag":1026,"props":2948,"children":2949},{"style":1041},[2950],{"type":998,"value":2951},"    sqrt ",{"type":993,"tag":1026,"props":2953,"children":2954},{"style":1047},[2955],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2957,"children":2958},{"style":1041},[2959],{"type":998,"value":2934},{"type":993,"tag":1026,"props":2961,"children":2962},{"style":1047},[2963],{"type":998,"value":2964},"**",{"type":993,"tag":1026,"props":2966,"children":2967},{"style":1116},[2968],{"type":998,"value":2969}," 0.5\n",{"type":993,"tag":1026,"props":2971,"children":2972},{"class":1028,"line":127},[2973,2977,2981,2985,2990,2994,2999,3003,3008,3012,3017,3021,3025],{"type":993,"tag":1026,"props":2974,"children":2975},{"style":1116},[2976],{"type":998,"value":2159},{"type":993,"tag":1026,"props":2978,"children":2979},{"style":1041},[2980],{"type":998,"value":1124},{"type":993,"tag":1026,"props":2982,"children":2983},{"style":1047},[2984],{"type":998,"value":1129},{"type":993,"tag":1026,"props":2986,"children":2987},{"style":1058},[2988],{"type":998,"value":2989},"\"√",{"type":993,"tag":1026,"props":2991,"children":2992},{"style":1116},[2993],{"type":998,"value":1258},{"type":993,"tag":1026,"props":2995,"children":2996},{"style":1041},[2997],{"type":998,"value":2998},"num",{"type":993,"tag":1026,"props":3000,"children":3001},{"style":1116},[3002],{"type":998,"value":1149},{"type":993,"tag":1026,"props":3004,"children":3005},{"style":1058},[3006],{"type":998,"value":3007}," = ",{"type":993,"tag":1026,"props":3009,"children":3010},{"style":1116},[3011],{"type":998,"value":1258},{"type":993,"tag":1026,"props":3013,"children":3014},{"style":1041},[3015],{"type":998,"value":3016},"sqrt",{"type":993,"tag":1026,"props":3018,"children":3019},{"style":1116},[3020],{"type":998,"value":1149},{"type":993,"tag":1026,"props":3022,"children":3023},{"style":1058},[3024],{"type":998,"value":1154},{"type":993,"tag":1026,"props":3026,"children":3027},{"style":1041},[3028],{"type":998,"value":1159},{"type":993,"tag":1442,"props":3030,"children":3032},{"id":3031},"conditional-processing",[3033],{"type":998,"value":3034},"Conditional Processing",{"type":993,"tag":1001,"props":3036,"children":3037},{},[3038],{"type":998,"value":3039},"Processing only elements that meet certain conditions.",{"type":993,"tag":1012,"props":3041,"children":3042},{},[3043],{"type":993,"tag":1016,"props":3044,"children":3046},{"className":1018,"code":3045,"language":6,"meta":8,"style":8},"# Conditional processing during iteration\nmixed_data = {1, 2, \"hello\", 3.14, \"world\", 42}\n\nprint(\"Numbers only:\")\nfor item in mixed_data:\n    if isinstance(item, (int, float)):\n        print(f\"  Number: {item}\")\n\nprint(\"\\nStrings only:\")\nfor item in mixed_data:\n    if isinstance(item, str):\n        print(f\"  String: {item}\")\n",[3047],{"type":993,"tag":1022,"props":3048,"children":3049},{"__ignoreMap":8},[3050,3058,3126,3133,3153,3174,3211,3253,3260,3288,3307,3333],{"type":993,"tag":1026,"props":3051,"children":3052},{"class":1028,"line":12},[3053],{"type":993,"tag":1026,"props":3054,"children":3055},{"style":1032},[3056],{"type":998,"value":3057},"# Conditional processing during iteration\n",{"type":993,"tag":1026,"props":3059,"children":3060},{"class":1028,"line":27},[3061,3066,3070,3074,3078,3082,3086,3090,3095,3099,3104,3108,3113,3117,3122],{"type":993,"tag":1026,"props":3062,"children":3063},{"style":1041},[3064],{"type":998,"value":3065},"mixed_data ",{"type":993,"tag":1026,"props":3067,"children":3068},{"style":1047},[3069],{"type":998,"value":1050},{"type":993,"tag":1026,"props":3071,"children":3072},{"style":1041},[3073],{"type":998,"value":1055},{"type":993,"tag":1026,"props":3075,"children":3076},{"style":1116},[3077],{"type":998,"value":2299},{"type":993,"tag":1026,"props":3079,"children":3080},{"style":1041},[3081],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3083,"children":3084},{"style":1116},[3085],{"type":998,"value":2308},{"type":993,"tag":1026,"props":3087,"children":3088},{"style":1041},[3089],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3091,"children":3092},{"style":1058},[3093],{"type":998,"value":3094},"\"hello\"",{"type":993,"tag":1026,"props":3096,"children":3097},{"style":1041},[3098],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3100,"children":3101},{"style":1116},[3102],{"type":998,"value":3103},"3.14",{"type":993,"tag":1026,"props":3105,"children":3106},{"style":1041},[3107],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3109,"children":3110},{"style":1058},[3111],{"type":998,"value":3112},"\"world\"",{"type":993,"tag":1026,"props":3114,"children":3115},{"style":1041},[3116],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3118,"children":3119},{"style":1116},[3120],{"type":998,"value":3121},"42",{"type":993,"tag":1026,"props":3123,"children":3124},{"style":1041},[3125],{"type":998,"value":1094},{"type":993,"tag":1026,"props":3127,"children":3128},{"class":1028,"line":36},[3129],{"type":993,"tag":1026,"props":3130,"children":3131},{"emptyLinePlaceholder":13},[3132],{"type":998,"value":1102},{"type":993,"tag":1026,"props":3134,"children":3135},{"class":1028,"line":45},[3136,3140,3144,3149],{"type":993,"tag":1026,"props":3137,"children":3138},{"style":1116},[3139],{"type":998,"value":1119},{"type":993,"tag":1026,"props":3141,"children":3142},{"style":1041},[3143],{"type":998,"value":1124},{"type":993,"tag":1026,"props":3145,"children":3146},{"style":1058},[3147],{"type":998,"value":3148},"\"Numbers only:\"",{"type":993,"tag":1026,"props":3150,"children":3151},{"style":1041},[3152],{"type":998,"value":1159},{"type":993,"tag":1026,"props":3154,"children":3155},{"class":1028,"line":54},[3156,3160,3165,3169],{"type":993,"tag":1026,"props":3157,"children":3158},{"style":1047},[3159],{"type":998,"value":2112},{"type":993,"tag":1026,"props":3161,"children":3162},{"style":1041},[3163],{"type":998,"value":3164}," item ",{"type":993,"tag":1026,"props":3166,"children":3167},{"style":1047},[3168],{"type":998,"value":2122},{"type":993,"tag":1026,"props":3170,"children":3171},{"style":1041},[3172],{"type":998,"value":3173}," mixed_data:\n",{"type":993,"tag":1026,"props":3175,"children":3176},{"class":1028,"line":63},[3177,3182,3187,3192,3197,3201,3206],{"type":993,"tag":1026,"props":3178,"children":3179},{"style":1047},[3180],{"type":998,"value":3181},"    if",{"type":993,"tag":1026,"props":3183,"children":3184},{"style":1116},[3185],{"type":998,"value":3186}," isinstance",{"type":993,"tag":1026,"props":3188,"children":3189},{"style":1041},[3190],{"type":998,"value":3191},"(item, (",{"type":993,"tag":1026,"props":3193,"children":3194},{"style":1116},[3195],{"type":998,"value":3196},"int",{"type":993,"tag":1026,"props":3198,"children":3199},{"style":1041},[3200],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3202,"children":3203},{"style":1116},[3204],{"type":998,"value":3205},"float",{"type":993,"tag":1026,"props":3207,"children":3208},{"style":1041},[3209],{"type":998,"value":3210},")):\n",{"type":993,"tag":1026,"props":3212,"children":3213},{"class":1028,"line":72},[3214,3219,3223,3227,3232,3236,3241,3245,3249],{"type":993,"tag":1026,"props":3215,"children":3216},{"style":1116},[3217],{"type":998,"value":3218},"        print",{"type":993,"tag":1026,"props":3220,"children":3221},{"style":1041},[3222],{"type":998,"value":1124},{"type":993,"tag":1026,"props":3224,"children":3225},{"style":1047},[3226],{"type":998,"value":1129},{"type":993,"tag":1026,"props":3228,"children":3229},{"style":1058},[3230],{"type":998,"value":3231},"\"  Number: ",{"type":993,"tag":1026,"props":3233,"children":3234},{"style":1116},[3235],{"type":998,"value":1258},{"type":993,"tag":1026,"props":3237,"children":3238},{"style":1041},[3239],{"type":998,"value":3240},"item",{"type":993,"tag":1026,"props":3242,"children":3243},{"style":1116},[3244],{"type":998,"value":1149},{"type":993,"tag":1026,"props":3246,"children":3247},{"style":1058},[3248],{"type":998,"value":1154},{"type":993,"tag":1026,"props":3250,"children":3251},{"style":1041},[3252],{"type":998,"value":1159},{"type":993,"tag":1026,"props":3254,"children":3255},{"class":1028,"line":81},[3256],{"type":993,"tag":1026,"props":3257,"children":3258},{"emptyLinePlaceholder":13},[3259],{"type":998,"value":1102},{"type":993,"tag":1026,"props":3261,"children":3262},{"class":1028,"line":91},[3263,3267,3271,3275,3279,3284],{"type":993,"tag":1026,"props":3264,"children":3265},{"style":1116},[3266],{"type":998,"value":1119},{"type":993,"tag":1026,"props":3268,"children":3269},{"style":1041},[3270],{"type":998,"value":1124},{"type":993,"tag":1026,"props":3272,"children":3273},{"style":1058},[3274],{"type":998,"value":1154},{"type":993,"tag":1026,"props":3276,"children":3277},{"style":1116},[3278],{"type":998,"value":2913},{"type":993,"tag":1026,"props":3280,"children":3281},{"style":1058},[3282],{"type":998,"value":3283},"Strings only:\"",{"type":993,"tag":1026,"props":3285,"children":3286},{"style":1041},[3287],{"type":998,"value":1159},{"type":993,"tag":1026,"props":3289,"children":3290},{"class":1028,"line":100},[3291,3295,3299,3303],{"type":993,"tag":1026,"props":3292,"children":3293},{"style":1047},[3294],{"type":998,"value":2112},{"type":993,"tag":1026,"props":3296,"children":3297},{"style":1041},[3298],{"type":998,"value":3164},{"type":993,"tag":1026,"props":3300,"children":3301},{"style":1047},[3302],{"type":998,"value":2122},{"type":993,"tag":1026,"props":3304,"children":3305},{"style":1041},[3306],{"type":998,"value":3173},{"type":993,"tag":1026,"props":3308,"children":3309},{"class":1028,"line":109},[3310,3314,3318,3323,3328],{"type":993,"tag":1026,"props":3311,"children":3312},{"style":1047},[3313],{"type":998,"value":3181},{"type":993,"tag":1026,"props":3315,"children":3316},{"style":1116},[3317],{"type":998,"value":3186},{"type":993,"tag":1026,"props":3319,"children":3320},{"style":1041},[3321],{"type":998,"value":3322},"(item, ",{"type":993,"tag":1026,"props":3324,"children":3325},{"style":1116},[3326],{"type":998,"value":3327},"str",{"type":993,"tag":1026,"props":3329,"children":3330},{"style":1041},[3331],{"type":998,"value":3332},"):\n",{"type":993,"tag":1026,"props":3334,"children":3335},{"class":1028,"line":118},[3336,3340,3344,3348,3353,3357,3361,3365,3369],{"type":993,"tag":1026,"props":3337,"children":3338},{"style":1116},[3339],{"type":998,"value":3218},{"type":993,"tag":1026,"props":3341,"children":3342},{"style":1041},[3343],{"type":998,"value":1124},{"type":993,"tag":1026,"props":3345,"children":3346},{"style":1047},[3347],{"type":998,"value":1129},{"type":993,"tag":1026,"props":3349,"children":3350},{"style":1058},[3351],{"type":998,"value":3352},"\"  String: ",{"type":993,"tag":1026,"props":3354,"children":3355},{"style":1116},[3356],{"type":998,"value":1258},{"type":993,"tag":1026,"props":3358,"children":3359},{"style":1041},[3360],{"type":998,"value":3240},{"type":993,"tag":1026,"props":3362,"children":3363},{"style":1116},[3364],{"type":998,"value":1149},{"type":993,"tag":1026,"props":3366,"children":3367},{"style":1058},[3368],{"type":998,"value":1154},{"type":993,"tag":1026,"props":3370,"children":3371},{"style":1041},[3372],{"type":998,"value":1159},{"type":993,"tag":1442,"props":3374,"children":3376},{"id":3375},"counting-and-accumulation",[3377],{"type":998,"value":3378},"Counting and Accumulation",{"type":993,"tag":1001,"props":3380,"children":3381},{},[3382],{"type":998,"value":3383},"Building results while iterating through sets.",{"type":993,"tag":1012,"props":3385,"children":3386},{},[3387],{"type":993,"tag":1016,"props":3388,"children":3390},{"className":1018,"code":3389,"language":6,"meta":8,"style":8},"# Counting and accumulation\nscores = {85, 92, 78, 96, 88, 73, 91}\n\n# Count high scores\nhigh_score_count = 0\ntotal_score = 0\n\nfor score in scores:\n    total_score += score\n    if score >= 90:\n        high_score_count += 1\n\naverage = total_score / len(scores)\nprint(f\"High scores (≥90): {high_score_count}\")\nprint(f\"Average score: {average:.1f}\")\n\n# Find maximum (alternative to max())\nmax_score = 0\nfor score in scores:\n    if score > max_score:\n        max_score = score\nprint(f\"Maximum score: {max_score}\")\n",[3391],{"type":993,"tag":1022,"props":3392,"children":3393},{"__ignoreMap":8},[3394,3402,3481,3488,3496,3512,3528,3535,3556,3574,3600,3617,3624,3655,3696,3742,3749,3757,3773,3792,3813,3829],{"type":993,"tag":1026,"props":3395,"children":3396},{"class":1028,"line":12},[3397],{"type":993,"tag":1026,"props":3398,"children":3399},{"style":1032},[3400],{"type":998,"value":3401},"# Counting and accumulation\n",{"type":993,"tag":1026,"props":3403,"children":3404},{"class":1028,"line":27},[3405,3410,3414,3418,3423,3427,3432,3436,3441,3445,3450,3454,3459,3463,3468,3472,3477],{"type":993,"tag":1026,"props":3406,"children":3407},{"style":1041},[3408],{"type":998,"value":3409},"scores ",{"type":993,"tag":1026,"props":3411,"children":3412},{"style":1047},[3413],{"type":998,"value":1050},{"type":993,"tag":1026,"props":3415,"children":3416},{"style":1041},[3417],{"type":998,"value":1055},{"type":993,"tag":1026,"props":3419,"children":3420},{"style":1116},[3421],{"type":998,"value":3422},"85",{"type":993,"tag":1026,"props":3424,"children":3425},{"style":1041},[3426],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3428,"children":3429},{"style":1116},[3430],{"type":998,"value":3431},"92",{"type":993,"tag":1026,"props":3433,"children":3434},{"style":1041},[3435],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3437,"children":3438},{"style":1116},[3439],{"type":998,"value":3440},"78",{"type":993,"tag":1026,"props":3442,"children":3443},{"style":1041},[3444],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3446,"children":3447},{"style":1116},[3448],{"type":998,"value":3449},"96",{"type":993,"tag":1026,"props":3451,"children":3452},{"style":1041},[3453],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3455,"children":3456},{"style":1116},[3457],{"type":998,"value":3458},"88",{"type":993,"tag":1026,"props":3460,"children":3461},{"style":1041},[3462],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3464,"children":3465},{"style":1116},[3466],{"type":998,"value":3467},"73",{"type":993,"tag":1026,"props":3469,"children":3470},{"style":1041},[3471],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3473,"children":3474},{"style":1116},[3475],{"type":998,"value":3476},"91",{"type":993,"tag":1026,"props":3478,"children":3479},{"style":1041},[3480],{"type":998,"value":1094},{"type":993,"tag":1026,"props":3482,"children":3483},{"class":1028,"line":36},[3484],{"type":993,"tag":1026,"props":3485,"children":3486},{"emptyLinePlaceholder":13},[3487],{"type":998,"value":1102},{"type":993,"tag":1026,"props":3489,"children":3490},{"class":1028,"line":45},[3491],{"type":993,"tag":1026,"props":3492,"children":3493},{"style":1032},[3494],{"type":998,"value":3495},"# Count high scores\n",{"type":993,"tag":1026,"props":3497,"children":3498},{"class":1028,"line":54},[3499,3504,3508],{"type":993,"tag":1026,"props":3500,"children":3501},{"style":1041},[3502],{"type":998,"value":3503},"high_score_count ",{"type":993,"tag":1026,"props":3505,"children":3506},{"style":1047},[3507],{"type":998,"value":1050},{"type":993,"tag":1026,"props":3509,"children":3510},{"style":1116},[3511],{"type":998,"value":1751},{"type":993,"tag":1026,"props":3513,"children":3514},{"class":1028,"line":63},[3515,3520,3524],{"type":993,"tag":1026,"props":3516,"children":3517},{"style":1041},[3518],{"type":998,"value":3519},"total_score ",{"type":993,"tag":1026,"props":3521,"children":3522},{"style":1047},[3523],{"type":998,"value":1050},{"type":993,"tag":1026,"props":3525,"children":3526},{"style":1116},[3527],{"type":998,"value":1751},{"type":993,"tag":1026,"props":3529,"children":3530},{"class":1028,"line":72},[3531],{"type":993,"tag":1026,"props":3532,"children":3533},{"emptyLinePlaceholder":13},[3534],{"type":998,"value":1102},{"type":993,"tag":1026,"props":3536,"children":3537},{"class":1028,"line":81},[3538,3542,3547,3551],{"type":993,"tag":1026,"props":3539,"children":3540},{"style":1047},[3541],{"type":998,"value":2112},{"type":993,"tag":1026,"props":3543,"children":3544},{"style":1041},[3545],{"type":998,"value":3546}," score ",{"type":993,"tag":1026,"props":3548,"children":3549},{"style":1047},[3550],{"type":998,"value":2122},{"type":993,"tag":1026,"props":3552,"children":3553},{"style":1041},[3554],{"type":998,"value":3555}," scores:\n",{"type":993,"tag":1026,"props":3557,"children":3558},{"class":1028,"line":91},[3559,3564,3569],{"type":993,"tag":1026,"props":3560,"children":3561},{"style":1041},[3562],{"type":998,"value":3563},"    total_score ",{"type":993,"tag":1026,"props":3565,"children":3566},{"style":1047},[3567],{"type":998,"value":3568},"+=",{"type":993,"tag":1026,"props":3570,"children":3571},{"style":1041},[3572],{"type":998,"value":3573}," score\n",{"type":993,"tag":1026,"props":3575,"children":3576},{"class":1028,"line":100},[3577,3581,3585,3590,3595],{"type":993,"tag":1026,"props":3578,"children":3579},{"style":1047},[3580],{"type":998,"value":3181},{"type":993,"tag":1026,"props":3582,"children":3583},{"style":1041},[3584],{"type":998,"value":3546},{"type":993,"tag":1026,"props":3586,"children":3587},{"style":1047},[3588],{"type":998,"value":3589},">=",{"type":993,"tag":1026,"props":3591,"children":3592},{"style":1116},[3593],{"type":998,"value":3594}," 90",{"type":993,"tag":1026,"props":3596,"children":3597},{"style":1041},[3598],{"type":998,"value":3599},":\n",{"type":993,"tag":1026,"props":3601,"children":3602},{"class":1028,"line":109},[3603,3608,3612],{"type":993,"tag":1026,"props":3604,"children":3605},{"style":1041},[3606],{"type":998,"value":3607},"        high_score_count ",{"type":993,"tag":1026,"props":3609,"children":3610},{"style":1047},[3611],{"type":998,"value":3568},{"type":993,"tag":1026,"props":3613,"children":3614},{"style":1116},[3615],{"type":998,"value":3616}," 1\n",{"type":993,"tag":1026,"props":3618,"children":3619},{"class":1028,"line":118},[3620],{"type":993,"tag":1026,"props":3621,"children":3622},{"emptyLinePlaceholder":13},[3623],{"type":998,"value":1102},{"type":993,"tag":1026,"props":3625,"children":3626},{"class":1028,"line":127},[3627,3632,3636,3641,3646,3650],{"type":993,"tag":1026,"props":3628,"children":3629},{"style":1041},[3630],{"type":998,"value":3631},"average ",{"type":993,"tag":1026,"props":3633,"children":3634},{"style":1047},[3635],{"type":998,"value":1050},{"type":993,"tag":1026,"props":3637,"children":3638},{"style":1041},[3639],{"type":998,"value":3640}," total_score ",{"type":993,"tag":1026,"props":3642,"children":3643},{"style":1047},[3644],{"type":998,"value":3645},"/",{"type":993,"tag":1026,"props":3647,"children":3648},{"style":1116},[3649],{"type":998,"value":1736},{"type":993,"tag":1026,"props":3651,"children":3652},{"style":1041},[3653],{"type":998,"value":3654},"(scores)\n",{"type":993,"tag":1026,"props":3656,"children":3657},{"class":1028,"line":136},[3658,3662,3666,3670,3675,3679,3684,3688,3692],{"type":993,"tag":1026,"props":3659,"children":3660},{"style":1116},[3661],{"type":998,"value":1119},{"type":993,"tag":1026,"props":3663,"children":3664},{"style":1041},[3665],{"type":998,"value":1124},{"type":993,"tag":1026,"props":3667,"children":3668},{"style":1047},[3669],{"type":998,"value":1129},{"type":993,"tag":1026,"props":3671,"children":3672},{"style":1058},[3673],{"type":998,"value":3674},"\"High scores (≥90): ",{"type":993,"tag":1026,"props":3676,"children":3677},{"style":1116},[3678],{"type":998,"value":1258},{"type":993,"tag":1026,"props":3680,"children":3681},{"style":1041},[3682],{"type":998,"value":3683},"high_score_count",{"type":993,"tag":1026,"props":3685,"children":3686},{"style":1116},[3687],{"type":998,"value":1149},{"type":993,"tag":1026,"props":3689,"children":3690},{"style":1058},[3691],{"type":998,"value":1154},{"type":993,"tag":1026,"props":3693,"children":3694},{"style":1041},[3695],{"type":998,"value":1159},{"type":993,"tag":1026,"props":3697,"children":3698},{"class":1028,"line":146},[3699,3703,3707,3711,3716,3720,3725,3730,3734,3738],{"type":993,"tag":1026,"props":3700,"children":3701},{"style":1116},[3702],{"type":998,"value":1119},{"type":993,"tag":1026,"props":3704,"children":3705},{"style":1041},[3706],{"type":998,"value":1124},{"type":993,"tag":1026,"props":3708,"children":3709},{"style":1047},[3710],{"type":998,"value":1129},{"type":993,"tag":1026,"props":3712,"children":3713},{"style":1058},[3714],{"type":998,"value":3715},"\"Average score: ",{"type":993,"tag":1026,"props":3717,"children":3718},{"style":1116},[3719],{"type":998,"value":1258},{"type":993,"tag":1026,"props":3721,"children":3722},{"style":1041},[3723],{"type":998,"value":3724},"average",{"type":993,"tag":1026,"props":3726,"children":3727},{"style":1047},[3728],{"type":998,"value":3729},":.1f",{"type":993,"tag":1026,"props":3731,"children":3732},{"style":1116},[3733],{"type":998,"value":1149},{"type":993,"tag":1026,"props":3735,"children":3736},{"style":1058},[3737],{"type":998,"value":1154},{"type":993,"tag":1026,"props":3739,"children":3740},{"style":1041},[3741],{"type":998,"value":1159},{"type":993,"tag":1026,"props":3743,"children":3744},{"class":1028,"line":155},[3745],{"type":993,"tag":1026,"props":3746,"children":3747},{"emptyLinePlaceholder":13},[3748],{"type":998,"value":1102},{"type":993,"tag":1026,"props":3750,"children":3751},{"class":1028,"line":164},[3752],{"type":993,"tag":1026,"props":3753,"children":3754},{"style":1032},[3755],{"type":998,"value":3756},"# Find maximum (alternative to max())\n",{"type":993,"tag":1026,"props":3758,"children":3759},{"class":1028,"line":173},[3760,3765,3769],{"type":993,"tag":1026,"props":3761,"children":3762},{"style":1041},[3763],{"type":998,"value":3764},"max_score ",{"type":993,"tag":1026,"props":3766,"children":3767},{"style":1047},[3768],{"type":998,"value":1050},{"type":993,"tag":1026,"props":3770,"children":3771},{"style":1116},[3772],{"type":998,"value":1751},{"type":993,"tag":1026,"props":3774,"children":3775},{"class":1028,"line":182},[3776,3780,3784,3788],{"type":993,"tag":1026,"props":3777,"children":3778},{"style":1047},[3779],{"type":998,"value":2112},{"type":993,"tag":1026,"props":3781,"children":3782},{"style":1041},[3783],{"type":998,"value":3546},{"type":993,"tag":1026,"props":3785,"children":3786},{"style":1047},[3787],{"type":998,"value":2122},{"type":993,"tag":1026,"props":3789,"children":3790},{"style":1041},[3791],{"type":998,"value":3555},{"type":993,"tag":1026,"props":3793,"children":3794},{"class":1028,"line":191},[3795,3799,3803,3808],{"type":993,"tag":1026,"props":3796,"children":3797},{"style":1047},[3798],{"type":998,"value":3181},{"type":993,"tag":1026,"props":3800,"children":3801},{"style":1041},[3802],{"type":998,"value":3546},{"type":993,"tag":1026,"props":3804,"children":3805},{"style":1047},[3806],{"type":998,"value":3807},">",{"type":993,"tag":1026,"props":3809,"children":3810},{"style":1041},[3811],{"type":998,"value":3812}," max_score:\n",{"type":993,"tag":1026,"props":3814,"children":3815},{"class":1028,"line":201},[3816,3821,3825],{"type":993,"tag":1026,"props":3817,"children":3818},{"style":1041},[3819],{"type":998,"value":3820},"        max_score ",{"type":993,"tag":1026,"props":3822,"children":3823},{"style":1047},[3824],{"type":998,"value":1050},{"type":993,"tag":1026,"props":3826,"children":3827},{"style":1041},[3828],{"type":998,"value":3573},{"type":993,"tag":1026,"props":3830,"children":3831},{"class":1028,"line":210},[3832,3836,3840,3844,3849,3853,3858,3862,3866],{"type":993,"tag":1026,"props":3833,"children":3834},{"style":1116},[3835],{"type":998,"value":1119},{"type":993,"tag":1026,"props":3837,"children":3838},{"style":1041},[3839],{"type":998,"value":1124},{"type":993,"tag":1026,"props":3841,"children":3842},{"style":1047},[3843],{"type":998,"value":1129},{"type":993,"tag":1026,"props":3845,"children":3846},{"style":1058},[3847],{"type":998,"value":3848},"\"Maximum score: ",{"type":993,"tag":1026,"props":3850,"children":3851},{"style":1116},[3852],{"type":998,"value":1258},{"type":993,"tag":1026,"props":3854,"children":3855},{"style":1041},[3856],{"type":998,"value":3857},"max_score",{"type":993,"tag":1026,"props":3859,"children":3860},{"style":1116},[3861],{"type":998,"value":1149},{"type":993,"tag":1026,"props":3863,"children":3864},{"style":1058},[3865],{"type":998,"value":1154},{"type":993,"tag":1026,"props":3867,"children":3868},{"style":1041},[3869],{"type":998,"value":1159},{"type":993,"tag":3871,"props":3872,"children":3874},"content-exercise",{":widget-view":3873,"category":6,"id":465},"true",[],{"type":993,"tag":1318,"props":3876,"children":3878},{"id":3877},"converting-sets-to-other-types",[3879],{"type":998,"value":3880},"🔄 Converting Sets to Other Types",{"type":993,"tag":1001,"props":3882,"children":3883},{},[3884],{"type":998,"value":3885},"Sometimes you need to convert sets to other data structures for different operations.",{"type":993,"tag":1330,"props":3887,"children":3890},{"emoji":3888,"title":3889,"type":1334},"🔀","Set Conversion Options",[3891,3899,3923,3931,3955,3963],{"type":993,"tag":1001,"props":3892,"children":3893},{},[3894],{"type":993,"tag":1340,"props":3895,"children":3896},{},[3897],{"type":998,"value":3898},"To Lists:",{"type":993,"tag":1346,"props":3900,"children":3901},{},[3902,3913,3918],{"type":993,"tag":1350,"props":3903,"children":3904},{},[3905,3911],{"type":993,"tag":1022,"props":3906,"children":3908},{"className":3907},[],[3909],{"type":998,"value":3910},"list(set)",{"type":998,"value":3912}," - Convert to list",{"type":993,"tag":1350,"props":3914,"children":3915},{},[3916],{"type":998,"value":3917},"Loses uniqueness guarantee",{"type":993,"tag":1350,"props":3919,"children":3920},{},[3921],{"type":998,"value":3922},"Gains indexing and order",{"type":993,"tag":1001,"props":3924,"children":3925},{},[3926],{"type":993,"tag":1340,"props":3927,"children":3928},{},[3929],{"type":998,"value":3930},"To Tuples:",{"type":993,"tag":1346,"props":3932,"children":3933},{},[3934,3945,3950],{"type":993,"tag":1350,"props":3935,"children":3936},{},[3937,3943],{"type":993,"tag":1022,"props":3938,"children":3940},{"className":3939},[],[3941],{"type":998,"value":3942},"tuple(set)",{"type":998,"value":3944}," - Convert to immutable tuple",{"type":993,"tag":1350,"props":3946,"children":3947},{},[3948],{"type":998,"value":3949},"Becomes hashable (can be in other sets)",{"type":993,"tag":1350,"props":3951,"children":3952},{},[3953],{"type":998,"value":3954},"Loses set operations",{"type":993,"tag":1001,"props":3956,"children":3957},{},[3958],{"type":993,"tag":1340,"props":3959,"children":3960},{},[3961],{"type":998,"value":3962},"To Sorted Lists:",{"type":993,"tag":1346,"props":3964,"children":3965},{},[3966,3977,3982],{"type":993,"tag":1350,"props":3967,"children":3968},{},[3969,3975],{"type":993,"tag":1022,"props":3970,"children":3972},{"className":3971},[],[3973],{"type":998,"value":3974},"sorted(set)",{"type":998,"value":3976}," - Create sorted list",{"type":993,"tag":1350,"props":3978,"children":3979},{},[3980],{"type":998,"value":3981},"Arranges elements in order",{"type":993,"tag":1350,"props":3983,"children":3984},{},[3985],{"type":998,"value":3986},"Useful for display and processing",{"type":993,"tag":1442,"props":3988,"children":3990},{"id":3989},"converting-to-lists",[3991],{"type":998,"value":3992},"Converting to Lists",{"type":993,"tag":1001,"props":3994,"children":3995},{},[3996],{"type":998,"value":3997},"Changing sets to lists when you need indexing or order.",{"type":993,"tag":1012,"props":3999,"children":4000},{},[4001],{"type":993,"tag":1016,"props":4002,"children":4004},{"className":1018,"code":4003,"language":6,"meta":8,"style":8},"# Convert sets to lists\nunique_numbers = {5, 2, 8, 1, 9}\nprint(f\"Original set: {unique_numbers}\")\n\n# Convert to list (random order)\nnumber_list = list(unique_numbers)\nprint(f\"As list: {number_list}\")\n\n# Convert to sorted list\nsorted_list = sorted(unique_numbers)\nprint(f\"Sorted list: {sorted_list}\")\n\n# Now you can use indexing\nprint(f\"First item: {sorted_list[0]}\")\nprint(f\"Last item: {sorted_list[-1]}\")\n",[4005],{"type":993,"tag":1022,"props":4006,"children":4007},{"__ignoreMap":8},[4008,4016,4074,4115,4122,4130,4152,4193,4200,4208,4229,4270,4277,4285,4336],{"type":993,"tag":1026,"props":4009,"children":4010},{"class":1028,"line":12},[4011],{"type":993,"tag":1026,"props":4012,"children":4013},{"style":1032},[4014],{"type":998,"value":4015},"# Convert sets to lists\n",{"type":993,"tag":1026,"props":4017,"children":4018},{"class":1028,"line":27},[4019,4024,4028,4032,4037,4041,4045,4049,4054,4058,4062,4066,4070],{"type":993,"tag":1026,"props":4020,"children":4021},{"style":1041},[4022],{"type":998,"value":4023},"unique_numbers ",{"type":993,"tag":1026,"props":4025,"children":4026},{"style":1047},[4027],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4029,"children":4030},{"style":1041},[4031],{"type":998,"value":1055},{"type":993,"tag":1026,"props":4033,"children":4034},{"style":1116},[4035],{"type":998,"value":4036},"5",{"type":993,"tag":1026,"props":4038,"children":4039},{"style":1041},[4040],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4042,"children":4043},{"style":1116},[4044],{"type":998,"value":2308},{"type":993,"tag":1026,"props":4046,"children":4047},{"style":1041},[4048],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4050,"children":4051},{"style":1116},[4052],{"type":998,"value":4053},"8",{"type":993,"tag":1026,"props":4055,"children":4056},{"style":1041},[4057],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4059,"children":4060},{"style":1116},[4061],{"type":998,"value":2299},{"type":993,"tag":1026,"props":4063,"children":4064},{"style":1041},[4065],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4067,"children":4068},{"style":1116},[4069],{"type":998,"value":2871},{"type":993,"tag":1026,"props":4071,"children":4072},{"style":1041},[4073],{"type":998,"value":1094},{"type":993,"tag":1026,"props":4075,"children":4076},{"class":1028,"line":36},[4077,4081,4085,4089,4094,4098,4103,4107,4111],{"type":993,"tag":1026,"props":4078,"children":4079},{"style":1116},[4080],{"type":998,"value":1119},{"type":993,"tag":1026,"props":4082,"children":4083},{"style":1041},[4084],{"type":998,"value":1124},{"type":993,"tag":1026,"props":4086,"children":4087},{"style":1047},[4088],{"type":998,"value":1129},{"type":993,"tag":1026,"props":4090,"children":4091},{"style":1058},[4092],{"type":998,"value":4093},"\"Original set: ",{"type":993,"tag":1026,"props":4095,"children":4096},{"style":1116},[4097],{"type":998,"value":1258},{"type":993,"tag":1026,"props":4099,"children":4100},{"style":1041},[4101],{"type":998,"value":4102},"unique_numbers",{"type":993,"tag":1026,"props":4104,"children":4105},{"style":1116},[4106],{"type":998,"value":1149},{"type":993,"tag":1026,"props":4108,"children":4109},{"style":1058},[4110],{"type":998,"value":1154},{"type":993,"tag":1026,"props":4112,"children":4113},{"style":1041},[4114],{"type":998,"value":1159},{"type":993,"tag":1026,"props":4116,"children":4117},{"class":1028,"line":45},[4118],{"type":993,"tag":1026,"props":4119,"children":4120},{"emptyLinePlaceholder":13},[4121],{"type":998,"value":1102},{"type":993,"tag":1026,"props":4123,"children":4124},{"class":1028,"line":54},[4125],{"type":993,"tag":1026,"props":4126,"children":4127},{"style":1032},[4128],{"type":998,"value":4129},"# Convert to list (random order)\n",{"type":993,"tag":1026,"props":4131,"children":4132},{"class":1028,"line":63},[4133,4138,4142,4147],{"type":993,"tag":1026,"props":4134,"children":4135},{"style":1041},[4136],{"type":998,"value":4137},"number_list ",{"type":993,"tag":1026,"props":4139,"children":4140},{"style":1047},[4141],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4143,"children":4144},{"style":1116},[4145],{"type":998,"value":4146}," list",{"type":993,"tag":1026,"props":4148,"children":4149},{"style":1041},[4150],{"type":998,"value":4151},"(unique_numbers)\n",{"type":993,"tag":1026,"props":4153,"children":4154},{"class":1028,"line":72},[4155,4159,4163,4167,4172,4176,4181,4185,4189],{"type":993,"tag":1026,"props":4156,"children":4157},{"style":1116},[4158],{"type":998,"value":1119},{"type":993,"tag":1026,"props":4160,"children":4161},{"style":1041},[4162],{"type":998,"value":1124},{"type":993,"tag":1026,"props":4164,"children":4165},{"style":1047},[4166],{"type":998,"value":1129},{"type":993,"tag":1026,"props":4168,"children":4169},{"style":1058},[4170],{"type":998,"value":4171},"\"As list: ",{"type":993,"tag":1026,"props":4173,"children":4174},{"style":1116},[4175],{"type":998,"value":1258},{"type":993,"tag":1026,"props":4177,"children":4178},{"style":1041},[4179],{"type":998,"value":4180},"number_list",{"type":993,"tag":1026,"props":4182,"children":4183},{"style":1116},[4184],{"type":998,"value":1149},{"type":993,"tag":1026,"props":4186,"children":4187},{"style":1058},[4188],{"type":998,"value":1154},{"type":993,"tag":1026,"props":4190,"children":4191},{"style":1041},[4192],{"type":998,"value":1159},{"type":993,"tag":1026,"props":4194,"children":4195},{"class":1028,"line":81},[4196],{"type":993,"tag":1026,"props":4197,"children":4198},{"emptyLinePlaceholder":13},[4199],{"type":998,"value":1102},{"type":993,"tag":1026,"props":4201,"children":4202},{"class":1028,"line":91},[4203],{"type":993,"tag":1026,"props":4204,"children":4205},{"style":1032},[4206],{"type":998,"value":4207},"# Convert to sorted list\n",{"type":993,"tag":1026,"props":4209,"children":4210},{"class":1028,"line":100},[4211,4216,4220,4225],{"type":993,"tag":1026,"props":4212,"children":4213},{"style":1041},[4214],{"type":998,"value":4215},"sorted_list ",{"type":993,"tag":1026,"props":4217,"children":4218},{"style":1047},[4219],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4221,"children":4222},{"style":1116},[4223],{"type":998,"value":4224}," sorted",{"type":993,"tag":1026,"props":4226,"children":4227},{"style":1041},[4228],{"type":998,"value":4151},{"type":993,"tag":1026,"props":4230,"children":4231},{"class":1028,"line":109},[4232,4236,4240,4244,4249,4253,4258,4262,4266],{"type":993,"tag":1026,"props":4233,"children":4234},{"style":1116},[4235],{"type":998,"value":1119},{"type":993,"tag":1026,"props":4237,"children":4238},{"style":1041},[4239],{"type":998,"value":1124},{"type":993,"tag":1026,"props":4241,"children":4242},{"style":1047},[4243],{"type":998,"value":1129},{"type":993,"tag":1026,"props":4245,"children":4246},{"style":1058},[4247],{"type":998,"value":4248},"\"Sorted list: ",{"type":993,"tag":1026,"props":4250,"children":4251},{"style":1116},[4252],{"type":998,"value":1258},{"type":993,"tag":1026,"props":4254,"children":4255},{"style":1041},[4256],{"type":998,"value":4257},"sorted_list",{"type":993,"tag":1026,"props":4259,"children":4260},{"style":1116},[4261],{"type":998,"value":1149},{"type":993,"tag":1026,"props":4263,"children":4264},{"style":1058},[4265],{"type":998,"value":1154},{"type":993,"tag":1026,"props":4267,"children":4268},{"style":1041},[4269],{"type":998,"value":1159},{"type":993,"tag":1026,"props":4271,"children":4272},{"class":1028,"line":118},[4273],{"type":993,"tag":1026,"props":4274,"children":4275},{"emptyLinePlaceholder":13},[4276],{"type":998,"value":1102},{"type":993,"tag":1026,"props":4278,"children":4279},{"class":1028,"line":127},[4280],{"type":993,"tag":1026,"props":4281,"children":4282},{"style":1032},[4283],{"type":998,"value":4284},"# Now you can use indexing\n",{"type":993,"tag":1026,"props":4286,"children":4287},{"class":1028,"line":136},[4288,4292,4296,4300,4305,4309,4314,4319,4324,4328,4332],{"type":993,"tag":1026,"props":4289,"children":4290},{"style":1116},[4291],{"type":998,"value":1119},{"type":993,"tag":1026,"props":4293,"children":4294},{"style":1041},[4295],{"type":998,"value":1124},{"type":993,"tag":1026,"props":4297,"children":4298},{"style":1047},[4299],{"type":998,"value":1129},{"type":993,"tag":1026,"props":4301,"children":4302},{"style":1058},[4303],{"type":998,"value":4304},"\"First item: ",{"type":993,"tag":1026,"props":4306,"children":4307},{"style":1116},[4308],{"type":998,"value":1258},{"type":993,"tag":1026,"props":4310,"children":4311},{"style":1041},[4312],{"type":998,"value":4313},"sorted_list[",{"type":993,"tag":1026,"props":4315,"children":4316},{"style":1116},[4317],{"type":998,"value":4318},"0",{"type":993,"tag":1026,"props":4320,"children":4321},{"style":1041},[4322],{"type":998,"value":4323},"]",{"type":993,"tag":1026,"props":4325,"children":4326},{"style":1116},[4327],{"type":998,"value":1149},{"type":993,"tag":1026,"props":4329,"children":4330},{"style":1058},[4331],{"type":998,"value":1154},{"type":993,"tag":1026,"props":4333,"children":4334},{"style":1041},[4335],{"type":998,"value":1159},{"type":993,"tag":1026,"props":4337,"children":4338},{"class":1028,"line":146},[4339,4343,4347,4351,4356,4360,4364,4369,4373,4377,4381,4385],{"type":993,"tag":1026,"props":4340,"children":4341},{"style":1116},[4342],{"type":998,"value":1119},{"type":993,"tag":1026,"props":4344,"children":4345},{"style":1041},[4346],{"type":998,"value":1124},{"type":993,"tag":1026,"props":4348,"children":4349},{"style":1047},[4350],{"type":998,"value":1129},{"type":993,"tag":1026,"props":4352,"children":4353},{"style":1058},[4354],{"type":998,"value":4355},"\"Last item: ",{"type":993,"tag":1026,"props":4357,"children":4358},{"style":1116},[4359],{"type":998,"value":1258},{"type":993,"tag":1026,"props":4361,"children":4362},{"style":1041},[4363],{"type":998,"value":4313},{"type":993,"tag":1026,"props":4365,"children":4366},{"style":1047},[4367],{"type":998,"value":4368},"-",{"type":993,"tag":1026,"props":4370,"children":4371},{"style":1116},[4372],{"type":998,"value":2299},{"type":993,"tag":1026,"props":4374,"children":4375},{"style":1041},[4376],{"type":998,"value":4323},{"type":993,"tag":1026,"props":4378,"children":4379},{"style":1116},[4380],{"type":998,"value":1149},{"type":993,"tag":1026,"props":4382,"children":4383},{"style":1058},[4384],{"type":998,"value":1154},{"type":993,"tag":1026,"props":4386,"children":4387},{"style":1041},[4388],{"type":998,"value":1159},{"type":993,"tag":1442,"props":4390,"children":4392},{"id":4391},"creating-sorted-output",[4393],{"type":998,"value":4394},"Creating Sorted Output",{"type":993,"tag":1001,"props":4396,"children":4397},{},[4398],{"type":998,"value":4399},"Getting set elements in a specific order for display.",{"type":993,"tag":1012,"props":4401,"children":4402},{},[4403],{"type":993,"tag":1016,"props":4404,"children":4406},{"className":1018,"code":4405,"language":6,"meta":8,"style":8},"# Sorted set output\nwords = {\"python\", \"java\", \"go\", \"rust\", \"javascript\"}\n\n# Sort alphabetically\nsorted_words = sorted(words)\nprint(\"Languages alphabetically:\")\nfor i, word in enumerate(sorted_words, 1):\n    print(f\"  {i}. {word}\")\n\n# Sort by length\nby_length = sorted(words, key=len)\nprint(\"\\nLanguages by length:\")\nfor word in by_length:\n    print(f\"  {word} ({len(word)} letters)\")\n",[4407],{"type":993,"tag":1022,"props":4408,"children":4409},{"__ignoreMap":8},[4410,4418,4474,4481,4489,4510,4530,4564,4623,4630,4638,4678,4706,4727],{"type":993,"tag":1026,"props":4411,"children":4412},{"class":1028,"line":12},[4413],{"type":993,"tag":1026,"props":4414,"children":4415},{"style":1032},[4416],{"type":998,"value":4417},"# Sorted set output\n",{"type":993,"tag":1026,"props":4419,"children":4420},{"class":1028,"line":27},[4421,4426,4430,4434,4438,4442,4446,4450,4454,4458,4462,4466,4470],{"type":993,"tag":1026,"props":4422,"children":4423},{"style":1041},[4424],{"type":998,"value":4425},"words ",{"type":993,"tag":1026,"props":4427,"children":4428},{"style":1047},[4429],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4431,"children":4432},{"style":1041},[4433],{"type":998,"value":1055},{"type":993,"tag":1026,"props":4435,"children":4436},{"style":1058},[4437],{"type":998,"value":1842},{"type":993,"tag":1026,"props":4439,"children":4440},{"style":1041},[4441],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4443,"children":4444},{"style":1058},[4445],{"type":998,"value":1851},{"type":993,"tag":1026,"props":4447,"children":4448},{"style":1041},[4449],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4451,"children":4452},{"style":1058},[4453],{"type":998,"value":1869},{"type":993,"tag":1026,"props":4455,"children":4456},{"style":1041},[4457],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4459,"children":4460},{"style":1058},[4461],{"type":998,"value":1878},{"type":993,"tag":1026,"props":4463,"children":4464},{"style":1041},[4465],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4467,"children":4468},{"style":1058},[4469],{"type":998,"value":1860},{"type":993,"tag":1026,"props":4471,"children":4472},{"style":1041},[4473],{"type":998,"value":1094},{"type":993,"tag":1026,"props":4475,"children":4476},{"class":1028,"line":36},[4477],{"type":993,"tag":1026,"props":4478,"children":4479},{"emptyLinePlaceholder":13},[4480],{"type":998,"value":1102},{"type":993,"tag":1026,"props":4482,"children":4483},{"class":1028,"line":45},[4484],{"type":993,"tag":1026,"props":4485,"children":4486},{"style":1032},[4487],{"type":998,"value":4488},"# Sort alphabetically\n",{"type":993,"tag":1026,"props":4490,"children":4491},{"class":1028,"line":54},[4492,4497,4501,4505],{"type":993,"tag":1026,"props":4493,"children":4494},{"style":1041},[4495],{"type":998,"value":4496},"sorted_words ",{"type":993,"tag":1026,"props":4498,"children":4499},{"style":1047},[4500],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4502,"children":4503},{"style":1116},[4504],{"type":998,"value":4224},{"type":993,"tag":1026,"props":4506,"children":4507},{"style":1041},[4508],{"type":998,"value":4509},"(words)\n",{"type":993,"tag":1026,"props":4511,"children":4512},{"class":1028,"line":63},[4513,4517,4521,4526],{"type":993,"tag":1026,"props":4514,"children":4515},{"style":1116},[4516],{"type":998,"value":1119},{"type":993,"tag":1026,"props":4518,"children":4519},{"style":1041},[4520],{"type":998,"value":1124},{"type":993,"tag":1026,"props":4522,"children":4523},{"style":1058},[4524],{"type":998,"value":4525},"\"Languages alphabetically:\"",{"type":993,"tag":1026,"props":4527,"children":4528},{"style":1041},[4529],{"type":998,"value":1159},{"type":993,"tag":1026,"props":4531,"children":4532},{"class":1028,"line":72},[4533,4537,4542,4546,4551,4556,4560],{"type":993,"tag":1026,"props":4534,"children":4535},{"style":1047},[4536],{"type":998,"value":2112},{"type":993,"tag":1026,"props":4538,"children":4539},{"style":1041},[4540],{"type":998,"value":4541}," i, word ",{"type":993,"tag":1026,"props":4543,"children":4544},{"style":1047},[4545],{"type":998,"value":2122},{"type":993,"tag":1026,"props":4547,"children":4548},{"style":1116},[4549],{"type":998,"value":4550}," enumerate",{"type":993,"tag":1026,"props":4552,"children":4553},{"style":1041},[4554],{"type":998,"value":4555},"(sorted_words, ",{"type":993,"tag":1026,"props":4557,"children":4558},{"style":1116},[4559],{"type":998,"value":2299},{"type":993,"tag":1026,"props":4561,"children":4562},{"style":1041},[4563],{"type":998,"value":3332},{"type":993,"tag":1026,"props":4565,"children":4566},{"class":1028,"line":81},[4567,4571,4575,4579,4584,4588,4593,4597,4602,4606,4611,4615,4619],{"type":993,"tag":1026,"props":4568,"children":4569},{"style":1116},[4570],{"type":998,"value":2159},{"type":993,"tag":1026,"props":4572,"children":4573},{"style":1041},[4574],{"type":998,"value":1124},{"type":993,"tag":1026,"props":4576,"children":4577},{"style":1047},[4578],{"type":998,"value":1129},{"type":993,"tag":1026,"props":4580,"children":4581},{"style":1058},[4582],{"type":998,"value":4583},"\"  ",{"type":993,"tag":1026,"props":4585,"children":4586},{"style":1116},[4587],{"type":998,"value":1258},{"type":993,"tag":1026,"props":4589,"children":4590},{"style":1041},[4591],{"type":998,"value":4592},"i",{"type":993,"tag":1026,"props":4594,"children":4595},{"style":1116},[4596],{"type":998,"value":1149},{"type":993,"tag":1026,"props":4598,"children":4599},{"style":1058},[4600],{"type":998,"value":4601},". ",{"type":993,"tag":1026,"props":4603,"children":4604},{"style":1116},[4605],{"type":998,"value":1258},{"type":993,"tag":1026,"props":4607,"children":4608},{"style":1041},[4609],{"type":998,"value":4610},"word",{"type":993,"tag":1026,"props":4612,"children":4613},{"style":1116},[4614],{"type":998,"value":1149},{"type":993,"tag":1026,"props":4616,"children":4617},{"style":1058},[4618],{"type":998,"value":1154},{"type":993,"tag":1026,"props":4620,"children":4621},{"style":1041},[4622],{"type":998,"value":1159},{"type":993,"tag":1026,"props":4624,"children":4625},{"class":1028,"line":91},[4626],{"type":993,"tag":1026,"props":4627,"children":4628},{"emptyLinePlaceholder":13},[4629],{"type":998,"value":1102},{"type":993,"tag":1026,"props":4631,"children":4632},{"class":1028,"line":100},[4633],{"type":993,"tag":1026,"props":4634,"children":4635},{"style":1032},[4636],{"type":998,"value":4637},"# Sort by length\n",{"type":993,"tag":1026,"props":4639,"children":4640},{"class":1028,"line":109},[4641,4646,4650,4654,4659,4665,4669,4674],{"type":993,"tag":1026,"props":4642,"children":4643},{"style":1041},[4644],{"type":998,"value":4645},"by_length ",{"type":993,"tag":1026,"props":4647,"children":4648},{"style":1047},[4649],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4651,"children":4652},{"style":1116},[4653],{"type":998,"value":4224},{"type":993,"tag":1026,"props":4655,"children":4656},{"style":1041},[4657],{"type":998,"value":4658},"(words, ",{"type":993,"tag":1026,"props":4660,"children":4662},{"style":4661},"--shiki-default:#E36209;--shiki-app-dark-mode:#FFAB70",[4663],{"type":998,"value":4664},"key",{"type":993,"tag":1026,"props":4666,"children":4667},{"style":1047},[4668],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4670,"children":4671},{"style":1116},[4672],{"type":998,"value":4673},"len",{"type":993,"tag":1026,"props":4675,"children":4676},{"style":1041},[4677],{"type":998,"value":1159},{"type":993,"tag":1026,"props":4679,"children":4680},{"class":1028,"line":118},[4681,4685,4689,4693,4697,4702],{"type":993,"tag":1026,"props":4682,"children":4683},{"style":1116},[4684],{"type":998,"value":1119},{"type":993,"tag":1026,"props":4686,"children":4687},{"style":1041},[4688],{"type":998,"value":1124},{"type":993,"tag":1026,"props":4690,"children":4691},{"style":1058},[4692],{"type":998,"value":1154},{"type":993,"tag":1026,"props":4694,"children":4695},{"style":1116},[4696],{"type":998,"value":2913},{"type":993,"tag":1026,"props":4698,"children":4699},{"style":1058},[4700],{"type":998,"value":4701},"Languages by length:\"",{"type":993,"tag":1026,"props":4703,"children":4704},{"style":1041},[4705],{"type":998,"value":1159},{"type":993,"tag":1026,"props":4707,"children":4708},{"class":1028,"line":127},[4709,4713,4718,4722],{"type":993,"tag":1026,"props":4710,"children":4711},{"style":1047},[4712],{"type":998,"value":2112},{"type":993,"tag":1026,"props":4714,"children":4715},{"style":1041},[4716],{"type":998,"value":4717}," word ",{"type":993,"tag":1026,"props":4719,"children":4720},{"style":1047},[4721],{"type":998,"value":2122},{"type":993,"tag":1026,"props":4723,"children":4724},{"style":1041},[4725],{"type":998,"value":4726}," by_length:\n",{"type":993,"tag":1026,"props":4728,"children":4729},{"class":1028,"line":136},[4730,4734,4738,4742,4746,4750,4754,4758,4763,4767,4772,4776,4781],{"type":993,"tag":1026,"props":4731,"children":4732},{"style":1116},[4733],{"type":998,"value":2159},{"type":993,"tag":1026,"props":4735,"children":4736},{"style":1041},[4737],{"type":998,"value":1124},{"type":993,"tag":1026,"props":4739,"children":4740},{"style":1047},[4741],{"type":998,"value":1129},{"type":993,"tag":1026,"props":4743,"children":4744},{"style":1058},[4745],{"type":998,"value":4583},{"type":993,"tag":1026,"props":4747,"children":4748},{"style":1116},[4749],{"type":998,"value":1258},{"type":993,"tag":1026,"props":4751,"children":4752},{"style":1041},[4753],{"type":998,"value":4610},{"type":993,"tag":1026,"props":4755,"children":4756},{"style":1116},[4757],{"type":998,"value":1149},{"type":993,"tag":1026,"props":4759,"children":4760},{"style":1058},[4761],{"type":998,"value":4762}," (",{"type":993,"tag":1026,"props":4764,"children":4765},{"style":1116},[4766],{"type":998,"value":1139},{"type":993,"tag":1026,"props":4768,"children":4769},{"style":1041},[4770],{"type":998,"value":4771},"(word)",{"type":993,"tag":1026,"props":4773,"children":4774},{"style":1116},[4775],{"type":998,"value":1149},{"type":993,"tag":1026,"props":4777,"children":4778},{"style":1058},[4779],{"type":998,"value":4780}," letters)\"",{"type":993,"tag":1026,"props":4782,"children":4783},{"style":1041},[4784],{"type":998,"value":1159},{"type":993,"tag":1318,"props":4786,"children":4788},{"id":4787},"set-comparison-and-analysis",[4789],{"type":998,"value":4790},"🚀 Set Comparison and Analysis",{"type":993,"tag":1001,"props":4792,"children":4793},{},[4794],{"type":998,"value":4795},"Comparing sets and analyzing their relationships helps understand data patterns.",{"type":993,"tag":1330,"props":4797,"children":4801},{"emoji":4798,"title":4799,"type":4800},"📈","Set Comparison Methods","warning",[4802,4810,4840,4848,4884,4892],{"type":993,"tag":1001,"props":4803,"children":4804},{},[4805],{"type":993,"tag":1340,"props":4806,"children":4807},{},[4808],{"type":998,"value":4809},"Equality Testing:",{"type":993,"tag":1346,"props":4811,"children":4812},{},[4813,4824,4835],{"type":993,"tag":1350,"props":4814,"children":4815},{},[4816,4822],{"type":993,"tag":1022,"props":4817,"children":4819},{"className":4818},[],[4820],{"type":998,"value":4821},"set1 == set2",{"type":998,"value":4823},": Same elements",{"type":993,"tag":1350,"props":4825,"children":4826},{},[4827,4833],{"type":993,"tag":1022,"props":4828,"children":4830},{"className":4829},[],[4831],{"type":998,"value":4832},"set1 != set2",{"type":998,"value":4834},": Different elements",{"type":993,"tag":1350,"props":4836,"children":4837},{},[4838],{"type":998,"value":4839},"Order doesn't matter",{"type":993,"tag":1001,"props":4841,"children":4842},{},[4843],{"type":993,"tag":1340,"props":4844,"children":4845},{},[4846],{"type":998,"value":4847},"Subset/Superset Testing:",{"type":993,"tag":1346,"props":4849,"children":4850},{},[4851,4862,4873],{"type":993,"tag":1350,"props":4852,"children":4853},{},[4854,4860],{"type":993,"tag":1022,"props":4855,"children":4857},{"className":4856},[],[4858],{"type":998,"value":4859},"set1.issubset(set2)",{"type":998,"value":4861},": All elements of set1 in set2",{"type":993,"tag":1350,"props":4863,"children":4864},{},[4865,4871],{"type":993,"tag":1022,"props":4866,"children":4868},{"className":4867},[],[4869],{"type":998,"value":4870},"set1.issuperset(set2)",{"type":998,"value":4872},": set1 contains all of set2",{"type":993,"tag":1350,"props":4874,"children":4875},{},[4876,4882],{"type":993,"tag":1022,"props":4877,"children":4879},{"className":4878},[],[4880],{"type":998,"value":4881},"set1.isdisjoint(set2)",{"type":998,"value":4883},": No common elements",{"type":993,"tag":1001,"props":4885,"children":4886},{},[4887],{"type":993,"tag":1340,"props":4888,"children":4889},{},[4890],{"type":998,"value":4891},"Size Comparisons:",{"type":993,"tag":1346,"props":4893,"children":4894},{},[4895,4900,4905],{"type":993,"tag":1350,"props":4896,"children":4897},{},[4898],{"type":998,"value":4899},"Compare using len()",{"type":993,"tag":1350,"props":4901,"children":4902},{},[4903],{"type":998,"value":4904},"Find larger/smaller sets",{"type":993,"tag":1350,"props":4906,"children":4907},{},[4908],{"type":998,"value":4909},"Analyze data distribution",{"type":993,"tag":1442,"props":4911,"children":4913},{"id":4912},"set-equality-testing",[4914],{"type":998,"value":4915},"Set Equality Testing",{"type":993,"tag":1001,"props":4917,"children":4918},{},[4919],{"type":998,"value":4920},"Checking if sets contain the same elements.",{"type":993,"tag":1012,"props":4922,"children":4923},{},[4924],{"type":993,"tag":1016,"props":4925,"children":4927},{"className":1018,"code":4926,"language":6,"meta":8,"style":8},"# Set equality testing\nset1 = {1, 2, 3}\nset2 = {3, 2, 1}  # Same elements, different order\nset3 = {1, 2, 4}  # Different elements\n\nprint(f\"Set 1: {set1}\")\nprint(f\"Set 2: {set2}\")\nprint(f\"Set 3: {set3}\")\n\n# Test equality (order doesn't matter)\nprint(f\"Set1 == Set2: {set1 == set2}\")\nprint(f\"Set1 == Set3: {set1 == set3}\")\n\n# Check for differences\nprint(f\"Set1 != Set3: {set1 != set3}\")\n",[4928],{"type":993,"tag":1022,"props":4929,"children":4930},{"__ignoreMap":8},[4931,4939,4979,5025,5070,5077,5118,5159,5200,5207,5215,5264,5313,5320,5328],{"type":993,"tag":1026,"props":4932,"children":4933},{"class":1028,"line":12},[4934],{"type":993,"tag":1026,"props":4935,"children":4936},{"style":1032},[4937],{"type":998,"value":4938},"# Set equality testing\n",{"type":993,"tag":1026,"props":4940,"children":4941},{"class":1028,"line":27},[4942,4947,4951,4955,4959,4963,4967,4971,4975],{"type":993,"tag":1026,"props":4943,"children":4944},{"style":1041},[4945],{"type":998,"value":4946},"set1 ",{"type":993,"tag":1026,"props":4948,"children":4949},{"style":1047},[4950],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4952,"children":4953},{"style":1041},[4954],{"type":998,"value":1055},{"type":993,"tag":1026,"props":4956,"children":4957},{"style":1116},[4958],{"type":998,"value":2299},{"type":993,"tag":1026,"props":4960,"children":4961},{"style":1041},[4962],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4964,"children":4965},{"style":1116},[4966],{"type":998,"value":2308},{"type":993,"tag":1026,"props":4968,"children":4969},{"style":1041},[4970],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4972,"children":4973},{"style":1116},[4974],{"type":998,"value":2317},{"type":993,"tag":1026,"props":4976,"children":4977},{"style":1041},[4978],{"type":998,"value":1094},{"type":993,"tag":1026,"props":4980,"children":4981},{"class":1028,"line":36},[4982,4987,4991,4995,4999,5003,5007,5011,5015,5020],{"type":993,"tag":1026,"props":4983,"children":4984},{"style":1041},[4985],{"type":998,"value":4986},"set2 ",{"type":993,"tag":1026,"props":4988,"children":4989},{"style":1047},[4990],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4992,"children":4993},{"style":1041},[4994],{"type":998,"value":1055},{"type":993,"tag":1026,"props":4996,"children":4997},{"style":1116},[4998],{"type":998,"value":2317},{"type":993,"tag":1026,"props":5000,"children":5001},{"style":1041},[5002],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5004,"children":5005},{"style":1116},[5006],{"type":998,"value":2308},{"type":993,"tag":1026,"props":5008,"children":5009},{"style":1041},[5010],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5012,"children":5013},{"style":1116},[5014],{"type":998,"value":2299},{"type":993,"tag":1026,"props":5016,"children":5017},{"style":1041},[5018],{"type":998,"value":5019},"}  ",{"type":993,"tag":1026,"props":5021,"children":5022},{"style":1032},[5023],{"type":998,"value":5024},"# Same elements, different order\n",{"type":993,"tag":1026,"props":5026,"children":5027},{"class":1028,"line":45},[5028,5033,5037,5041,5045,5049,5053,5057,5061,5065],{"type":993,"tag":1026,"props":5029,"children":5030},{"style":1041},[5031],{"type":998,"value":5032},"set3 ",{"type":993,"tag":1026,"props":5034,"children":5035},{"style":1047},[5036],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5038,"children":5039},{"style":1041},[5040],{"type":998,"value":1055},{"type":993,"tag":1026,"props":5042,"children":5043},{"style":1116},[5044],{"type":998,"value":2299},{"type":993,"tag":1026,"props":5046,"children":5047},{"style":1041},[5048],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5050,"children":5051},{"style":1116},[5052],{"type":998,"value":2308},{"type":993,"tag":1026,"props":5054,"children":5055},{"style":1041},[5056],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5058,"children":5059},{"style":1116},[5060],{"type":998,"value":2862},{"type":993,"tag":1026,"props":5062,"children":5063},{"style":1041},[5064],{"type":998,"value":5019},{"type":993,"tag":1026,"props":5066,"children":5067},{"style":1032},[5068],{"type":998,"value":5069},"# Different elements\n",{"type":993,"tag":1026,"props":5071,"children":5072},{"class":1028,"line":54},[5073],{"type":993,"tag":1026,"props":5074,"children":5075},{"emptyLinePlaceholder":13},[5076],{"type":998,"value":1102},{"type":993,"tag":1026,"props":5078,"children":5079},{"class":1028,"line":63},[5080,5084,5088,5092,5097,5101,5106,5110,5114],{"type":993,"tag":1026,"props":5081,"children":5082},{"style":1116},[5083],{"type":998,"value":1119},{"type":993,"tag":1026,"props":5085,"children":5086},{"style":1041},[5087],{"type":998,"value":1124},{"type":993,"tag":1026,"props":5089,"children":5090},{"style":1047},[5091],{"type":998,"value":1129},{"type":993,"tag":1026,"props":5093,"children":5094},{"style":1058},[5095],{"type":998,"value":5096},"\"Set 1: ",{"type":993,"tag":1026,"props":5098,"children":5099},{"style":1116},[5100],{"type":998,"value":1258},{"type":993,"tag":1026,"props":5102,"children":5103},{"style":1041},[5104],{"type":998,"value":5105},"set1",{"type":993,"tag":1026,"props":5107,"children":5108},{"style":1116},[5109],{"type":998,"value":1149},{"type":993,"tag":1026,"props":5111,"children":5112},{"style":1058},[5113],{"type":998,"value":1154},{"type":993,"tag":1026,"props":5115,"children":5116},{"style":1041},[5117],{"type":998,"value":1159},{"type":993,"tag":1026,"props":5119,"children":5120},{"class":1028,"line":72},[5121,5125,5129,5133,5138,5142,5147,5151,5155],{"type":993,"tag":1026,"props":5122,"children":5123},{"style":1116},[5124],{"type":998,"value":1119},{"type":993,"tag":1026,"props":5126,"children":5127},{"style":1041},[5128],{"type":998,"value":1124},{"type":993,"tag":1026,"props":5130,"children":5131},{"style":1047},[5132],{"type":998,"value":1129},{"type":993,"tag":1026,"props":5134,"children":5135},{"style":1058},[5136],{"type":998,"value":5137},"\"Set 2: ",{"type":993,"tag":1026,"props":5139,"children":5140},{"style":1116},[5141],{"type":998,"value":1258},{"type":993,"tag":1026,"props":5143,"children":5144},{"style":1041},[5145],{"type":998,"value":5146},"set2",{"type":993,"tag":1026,"props":5148,"children":5149},{"style":1116},[5150],{"type":998,"value":1149},{"type":993,"tag":1026,"props":5152,"children":5153},{"style":1058},[5154],{"type":998,"value":1154},{"type":993,"tag":1026,"props":5156,"children":5157},{"style":1041},[5158],{"type":998,"value":1159},{"type":993,"tag":1026,"props":5160,"children":5161},{"class":1028,"line":81},[5162,5166,5170,5174,5179,5183,5188,5192,5196],{"type":993,"tag":1026,"props":5163,"children":5164},{"style":1116},[5165],{"type":998,"value":1119},{"type":993,"tag":1026,"props":5167,"children":5168},{"style":1041},[5169],{"type":998,"value":1124},{"type":993,"tag":1026,"props":5171,"children":5172},{"style":1047},[5173],{"type":998,"value":1129},{"type":993,"tag":1026,"props":5175,"children":5176},{"style":1058},[5177],{"type":998,"value":5178},"\"Set 3: ",{"type":993,"tag":1026,"props":5180,"children":5181},{"style":1116},[5182],{"type":998,"value":1258},{"type":993,"tag":1026,"props":5184,"children":5185},{"style":1041},[5186],{"type":998,"value":5187},"set3",{"type":993,"tag":1026,"props":5189,"children":5190},{"style":1116},[5191],{"type":998,"value":1149},{"type":993,"tag":1026,"props":5193,"children":5194},{"style":1058},[5195],{"type":998,"value":1154},{"type":993,"tag":1026,"props":5197,"children":5198},{"style":1041},[5199],{"type":998,"value":1159},{"type":993,"tag":1026,"props":5201,"children":5202},{"class":1028,"line":91},[5203],{"type":993,"tag":1026,"props":5204,"children":5205},{"emptyLinePlaceholder":13},[5206],{"type":998,"value":1102},{"type":993,"tag":1026,"props":5208,"children":5209},{"class":1028,"line":100},[5210],{"type":993,"tag":1026,"props":5211,"children":5212},{"style":1032},[5213],{"type":998,"value":5214},"# Test equality (order doesn't matter)\n",{"type":993,"tag":1026,"props":5216,"children":5217},{"class":1028,"line":109},[5218,5222,5226,5230,5235,5239,5243,5247,5252,5256,5260],{"type":993,"tag":1026,"props":5219,"children":5220},{"style":1116},[5221],{"type":998,"value":1119},{"type":993,"tag":1026,"props":5223,"children":5224},{"style":1041},[5225],{"type":998,"value":1124},{"type":993,"tag":1026,"props":5227,"children":5228},{"style":1047},[5229],{"type":998,"value":1129},{"type":993,"tag":1026,"props":5231,"children":5232},{"style":1058},[5233],{"type":998,"value":5234},"\"Set1 == Set2: ",{"type":993,"tag":1026,"props":5236,"children":5237},{"style":1116},[5238],{"type":998,"value":1258},{"type":993,"tag":1026,"props":5240,"children":5241},{"style":1041},[5242],{"type":998,"value":4946},{"type":993,"tag":1026,"props":5244,"children":5245},{"style":1047},[5246],{"type":998,"value":1746},{"type":993,"tag":1026,"props":5248,"children":5249},{"style":1041},[5250],{"type":998,"value":5251}," set2",{"type":993,"tag":1026,"props":5253,"children":5254},{"style":1116},[5255],{"type":998,"value":1149},{"type":993,"tag":1026,"props":5257,"children":5258},{"style":1058},[5259],{"type":998,"value":1154},{"type":993,"tag":1026,"props":5261,"children":5262},{"style":1041},[5263],{"type":998,"value":1159},{"type":993,"tag":1026,"props":5265,"children":5266},{"class":1028,"line":118},[5267,5271,5275,5279,5284,5288,5292,5296,5301,5305,5309],{"type":993,"tag":1026,"props":5268,"children":5269},{"style":1116},[5270],{"type":998,"value":1119},{"type":993,"tag":1026,"props":5272,"children":5273},{"style":1041},[5274],{"type":998,"value":1124},{"type":993,"tag":1026,"props":5276,"children":5277},{"style":1047},[5278],{"type":998,"value":1129},{"type":993,"tag":1026,"props":5280,"children":5281},{"style":1058},[5282],{"type":998,"value":5283},"\"Set1 == Set3: ",{"type":993,"tag":1026,"props":5285,"children":5286},{"style":1116},[5287],{"type":998,"value":1258},{"type":993,"tag":1026,"props":5289,"children":5290},{"style":1041},[5291],{"type":998,"value":4946},{"type":993,"tag":1026,"props":5293,"children":5294},{"style":1047},[5295],{"type":998,"value":1746},{"type":993,"tag":1026,"props":5297,"children":5298},{"style":1041},[5299],{"type":998,"value":5300}," set3",{"type":993,"tag":1026,"props":5302,"children":5303},{"style":1116},[5304],{"type":998,"value":1149},{"type":993,"tag":1026,"props":5306,"children":5307},{"style":1058},[5308],{"type":998,"value":1154},{"type":993,"tag":1026,"props":5310,"children":5311},{"style":1041},[5312],{"type":998,"value":1159},{"type":993,"tag":1026,"props":5314,"children":5315},{"class":1028,"line":127},[5316],{"type":993,"tag":1026,"props":5317,"children":5318},{"emptyLinePlaceholder":13},[5319],{"type":998,"value":1102},{"type":993,"tag":1026,"props":5321,"children":5322},{"class":1028,"line":136},[5323],{"type":993,"tag":1026,"props":5324,"children":5325},{"style":1032},[5326],{"type":998,"value":5327},"# Check for differences\n",{"type":993,"tag":1026,"props":5329,"children":5330},{"class":1028,"line":146},[5331,5335,5339,5343,5348,5352,5356,5361,5365,5369,5373],{"type":993,"tag":1026,"props":5332,"children":5333},{"style":1116},[5334],{"type":998,"value":1119},{"type":993,"tag":1026,"props":5336,"children":5337},{"style":1041},[5338],{"type":998,"value":1124},{"type":993,"tag":1026,"props":5340,"children":5341},{"style":1047},[5342],{"type":998,"value":1129},{"type":993,"tag":1026,"props":5344,"children":5345},{"style":1058},[5346],{"type":998,"value":5347},"\"Set1 != Set3: ",{"type":993,"tag":1026,"props":5349,"children":5350},{"style":1116},[5351],{"type":998,"value":1258},{"type":993,"tag":1026,"props":5353,"children":5354},{"style":1041},[5355],{"type":998,"value":4946},{"type":993,"tag":1026,"props":5357,"children":5358},{"style":1047},[5359],{"type":998,"value":5360},"!=",{"type":993,"tag":1026,"props":5362,"children":5363},{"style":1041},[5364],{"type":998,"value":5300},{"type":993,"tag":1026,"props":5366,"children":5367},{"style":1116},[5368],{"type":998,"value":1149},{"type":993,"tag":1026,"props":5370,"children":5371},{"style":1058},[5372],{"type":998,"value":1154},{"type":993,"tag":1026,"props":5374,"children":5375},{"style":1041},[5376],{"type":998,"value":1159},{"type":993,"tag":1442,"props":5378,"children":5380},{"id":5379},"subset-and-superset-testing",[5381],{"type":998,"value":5382},"Subset and Superset Testing",{"type":993,"tag":1001,"props":5384,"children":5385},{},[5386],{"type":998,"value":5387},"Understanding relationships between sets.",{"type":993,"tag":1012,"props":5389,"children":5390},{},[5391],{"type":993,"tag":1016,"props":5392,"children":5394},{"className":1018,"code":5393,"language":6,"meta":8,"style":8},"# Subset and superset relationships\nall_colors = {\"red\", \"green\", \"blue\", \"yellow\", \"orange\"}\nprimary_colors = {\"red\", \"green\", \"blue\"}\nwarm_colors = {\"red\", \"orange\", \"yellow\"}\n\n# Test subset relationships\nis_primary_subset = primary_colors.issubset(all_colors)\nis_warm_subset = warm_colors.issubset(all_colors)\n\nprint(f\"Primary colors subset of all? {is_primary_subset}\")\nprint(f\"Warm colors subset of all? {is_warm_subset}\")\n\n# Test superset relationships\ncontains_primary = all_colors.issuperset(primary_colors)\nprint(f\"All colors contains primary? {contains_primary}\")\n\n# Test if sets have no common elements\nno_overlap = primary_colors.isdisjoint({\"purple\", \"pink\"})\nprint(f\"Primary colors disjoint from purple/pink? {no_overlap}\")\n",[5395],{"type":993,"tag":1022,"props":5396,"children":5397},{"__ignoreMap":8},[5398,5406,5462,5502,5542,5549,5557,5574,5591,5598,5639,5680,5687,5695,5712,5753,5760,5768,5804],{"type":993,"tag":1026,"props":5399,"children":5400},{"class":1028,"line":12},[5401],{"type":993,"tag":1026,"props":5402,"children":5403},{"style":1032},[5404],{"type":998,"value":5405},"# Subset and superset relationships\n",{"type":993,"tag":1026,"props":5407,"children":5408},{"class":1028,"line":27},[5409,5414,5418,5422,5426,5430,5434,5438,5442,5446,5450,5454,5458],{"type":993,"tag":1026,"props":5410,"children":5411},{"style":1041},[5412],{"type":998,"value":5413},"all_colors ",{"type":993,"tag":1026,"props":5415,"children":5416},{"style":1047},[5417],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5419,"children":5420},{"style":1041},[5421],{"type":998,"value":1055},{"type":993,"tag":1026,"props":5423,"children":5424},{"style":1058},[5425],{"type":998,"value":1061},{"type":993,"tag":1026,"props":5427,"children":5428},{"style":1041},[5429],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5431,"children":5432},{"style":1058},[5433],{"type":998,"value":1071},{"type":993,"tag":1026,"props":5435,"children":5436},{"style":1041},[5437],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5439,"children":5440},{"style":1058},[5441],{"type":998,"value":1080},{"type":993,"tag":1026,"props":5443,"children":5444},{"style":1041},[5445],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5447,"children":5448},{"style":1058},[5449],{"type":998,"value":1089},{"type":993,"tag":1026,"props":5451,"children":5452},{"style":1041},[5453],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5455,"children":5456},{"style":1058},[5457],{"type":998,"value":1509},{"type":993,"tag":1026,"props":5459,"children":5460},{"style":1041},[5461],{"type":998,"value":1094},{"type":993,"tag":1026,"props":5463,"children":5464},{"class":1028,"line":36},[5465,5470,5474,5478,5482,5486,5490,5494,5498],{"type":993,"tag":1026,"props":5466,"children":5467},{"style":1041},[5468],{"type":998,"value":5469},"primary_colors ",{"type":993,"tag":1026,"props":5471,"children":5472},{"style":1047},[5473],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5475,"children":5476},{"style":1041},[5477],{"type":998,"value":1055},{"type":993,"tag":1026,"props":5479,"children":5480},{"style":1058},[5481],{"type":998,"value":1061},{"type":993,"tag":1026,"props":5483,"children":5484},{"style":1041},[5485],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5487,"children":5488},{"style":1058},[5489],{"type":998,"value":1071},{"type":993,"tag":1026,"props":5491,"children":5492},{"style":1041},[5493],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5495,"children":5496},{"style":1058},[5497],{"type":998,"value":1080},{"type":993,"tag":1026,"props":5499,"children":5500},{"style":1041},[5501],{"type":998,"value":1094},{"type":993,"tag":1026,"props":5503,"children":5504},{"class":1028,"line":45},[5505,5510,5514,5518,5522,5526,5530,5534,5538],{"type":993,"tag":1026,"props":5506,"children":5507},{"style":1041},[5508],{"type":998,"value":5509},"warm_colors ",{"type":993,"tag":1026,"props":5511,"children":5512},{"style":1047},[5513],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5515,"children":5516},{"style":1041},[5517],{"type":998,"value":1055},{"type":993,"tag":1026,"props":5519,"children":5520},{"style":1058},[5521],{"type":998,"value":1061},{"type":993,"tag":1026,"props":5523,"children":5524},{"style":1041},[5525],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5527,"children":5528},{"style":1058},[5529],{"type":998,"value":1509},{"type":993,"tag":1026,"props":5531,"children":5532},{"style":1041},[5533],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5535,"children":5536},{"style":1058},[5537],{"type":998,"value":1089},{"type":993,"tag":1026,"props":5539,"children":5540},{"style":1041},[5541],{"type":998,"value":1094},{"type":993,"tag":1026,"props":5543,"children":5544},{"class":1028,"line":54},[5545],{"type":993,"tag":1026,"props":5546,"children":5547},{"emptyLinePlaceholder":13},[5548],{"type":998,"value":1102},{"type":993,"tag":1026,"props":5550,"children":5551},{"class":1028,"line":63},[5552],{"type":993,"tag":1026,"props":5553,"children":5554},{"style":1032},[5555],{"type":998,"value":5556},"# Test subset relationships\n",{"type":993,"tag":1026,"props":5558,"children":5559},{"class":1028,"line":72},[5560,5565,5569],{"type":993,"tag":1026,"props":5561,"children":5562},{"style":1041},[5563],{"type":998,"value":5564},"is_primary_subset ",{"type":993,"tag":1026,"props":5566,"children":5567},{"style":1047},[5568],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5570,"children":5571},{"style":1041},[5572],{"type":998,"value":5573}," primary_colors.issubset(all_colors)\n",{"type":993,"tag":1026,"props":5575,"children":5576},{"class":1028,"line":81},[5577,5582,5586],{"type":993,"tag":1026,"props":5578,"children":5579},{"style":1041},[5580],{"type":998,"value":5581},"is_warm_subset ",{"type":993,"tag":1026,"props":5583,"children":5584},{"style":1047},[5585],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5587,"children":5588},{"style":1041},[5589],{"type":998,"value":5590}," warm_colors.issubset(all_colors)\n",{"type":993,"tag":1026,"props":5592,"children":5593},{"class":1028,"line":91},[5594],{"type":993,"tag":1026,"props":5595,"children":5596},{"emptyLinePlaceholder":13},[5597],{"type":998,"value":1102},{"type":993,"tag":1026,"props":5599,"children":5600},{"class":1028,"line":100},[5601,5605,5609,5613,5618,5622,5627,5631,5635],{"type":993,"tag":1026,"props":5602,"children":5603},{"style":1116},[5604],{"type":998,"value":1119},{"type":993,"tag":1026,"props":5606,"children":5607},{"style":1041},[5608],{"type":998,"value":1124},{"type":993,"tag":1026,"props":5610,"children":5611},{"style":1047},[5612],{"type":998,"value":1129},{"type":993,"tag":1026,"props":5614,"children":5615},{"style":1058},[5616],{"type":998,"value":5617},"\"Primary colors subset of all? ",{"type":993,"tag":1026,"props":5619,"children":5620},{"style":1116},[5621],{"type":998,"value":1258},{"type":993,"tag":1026,"props":5623,"children":5624},{"style":1041},[5625],{"type":998,"value":5626},"is_primary_subset",{"type":993,"tag":1026,"props":5628,"children":5629},{"style":1116},[5630],{"type":998,"value":1149},{"type":993,"tag":1026,"props":5632,"children":5633},{"style":1058},[5634],{"type":998,"value":1154},{"type":993,"tag":1026,"props":5636,"children":5637},{"style":1041},[5638],{"type":998,"value":1159},{"type":993,"tag":1026,"props":5640,"children":5641},{"class":1028,"line":109},[5642,5646,5650,5654,5659,5663,5668,5672,5676],{"type":993,"tag":1026,"props":5643,"children":5644},{"style":1116},[5645],{"type":998,"value":1119},{"type":993,"tag":1026,"props":5647,"children":5648},{"style":1041},[5649],{"type":998,"value":1124},{"type":993,"tag":1026,"props":5651,"children":5652},{"style":1047},[5653],{"type":998,"value":1129},{"type":993,"tag":1026,"props":5655,"children":5656},{"style":1058},[5657],{"type":998,"value":5658},"\"Warm colors subset of all? ",{"type":993,"tag":1026,"props":5660,"children":5661},{"style":1116},[5662],{"type":998,"value":1258},{"type":993,"tag":1026,"props":5664,"children":5665},{"style":1041},[5666],{"type":998,"value":5667},"is_warm_subset",{"type":993,"tag":1026,"props":5669,"children":5670},{"style":1116},[5671],{"type":998,"value":1149},{"type":993,"tag":1026,"props":5673,"children":5674},{"style":1058},[5675],{"type":998,"value":1154},{"type":993,"tag":1026,"props":5677,"children":5678},{"style":1041},[5679],{"type":998,"value":1159},{"type":993,"tag":1026,"props":5681,"children":5682},{"class":1028,"line":118},[5683],{"type":993,"tag":1026,"props":5684,"children":5685},{"emptyLinePlaceholder":13},[5686],{"type":998,"value":1102},{"type":993,"tag":1026,"props":5688,"children":5689},{"class":1028,"line":127},[5690],{"type":993,"tag":1026,"props":5691,"children":5692},{"style":1032},[5693],{"type":998,"value":5694},"# Test superset relationships\n",{"type":993,"tag":1026,"props":5696,"children":5697},{"class":1028,"line":136},[5698,5703,5707],{"type":993,"tag":1026,"props":5699,"children":5700},{"style":1041},[5701],{"type":998,"value":5702},"contains_primary ",{"type":993,"tag":1026,"props":5704,"children":5705},{"style":1047},[5706],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5708,"children":5709},{"style":1041},[5710],{"type":998,"value":5711}," all_colors.issuperset(primary_colors)\n",{"type":993,"tag":1026,"props":5713,"children":5714},{"class":1028,"line":146},[5715,5719,5723,5727,5732,5736,5741,5745,5749],{"type":993,"tag":1026,"props":5716,"children":5717},{"style":1116},[5718],{"type":998,"value":1119},{"type":993,"tag":1026,"props":5720,"children":5721},{"style":1041},[5722],{"type":998,"value":1124},{"type":993,"tag":1026,"props":5724,"children":5725},{"style":1047},[5726],{"type":998,"value":1129},{"type":993,"tag":1026,"props":5728,"children":5729},{"style":1058},[5730],{"type":998,"value":5731},"\"All colors contains primary? ",{"type":993,"tag":1026,"props":5733,"children":5734},{"style":1116},[5735],{"type":998,"value":1258},{"type":993,"tag":1026,"props":5737,"children":5738},{"style":1041},[5739],{"type":998,"value":5740},"contains_primary",{"type":993,"tag":1026,"props":5742,"children":5743},{"style":1116},[5744],{"type":998,"value":1149},{"type":993,"tag":1026,"props":5746,"children":5747},{"style":1058},[5748],{"type":998,"value":1154},{"type":993,"tag":1026,"props":5750,"children":5751},{"style":1041},[5752],{"type":998,"value":1159},{"type":993,"tag":1026,"props":5754,"children":5755},{"class":1028,"line":155},[5756],{"type":993,"tag":1026,"props":5757,"children":5758},{"emptyLinePlaceholder":13},[5759],{"type":998,"value":1102},{"type":993,"tag":1026,"props":5761,"children":5762},{"class":1028,"line":164},[5763],{"type":993,"tag":1026,"props":5764,"children":5765},{"style":1032},[5766],{"type":998,"value":5767},"# Test if sets have no common elements\n",{"type":993,"tag":1026,"props":5769,"children":5770},{"class":1028,"line":173},[5771,5776,5780,5785,5790,5794,5799],{"type":993,"tag":1026,"props":5772,"children":5773},{"style":1041},[5774],{"type":998,"value":5775},"no_overlap ",{"type":993,"tag":1026,"props":5777,"children":5778},{"style":1047},[5779],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5781,"children":5782},{"style":1041},[5783],{"type":998,"value":5784}," primary_colors.isdisjoint({",{"type":993,"tag":1026,"props":5786,"children":5787},{"style":1058},[5788],{"type":998,"value":5789},"\"purple\"",{"type":993,"tag":1026,"props":5791,"children":5792},{"style":1041},[5793],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5795,"children":5796},{"style":1058},[5797],{"type":998,"value":5798},"\"pink\"",{"type":993,"tag":1026,"props":5800,"children":5801},{"style":1041},[5802],{"type":998,"value":5803},"})\n",{"type":993,"tag":1026,"props":5805,"children":5806},{"class":1028,"line":182},[5807,5811,5815,5819,5824,5828,5833,5837,5841],{"type":993,"tag":1026,"props":5808,"children":5809},{"style":1116},[5810],{"type":998,"value":1119},{"type":993,"tag":1026,"props":5812,"children":5813},{"style":1041},[5814],{"type":998,"value":1124},{"type":993,"tag":1026,"props":5816,"children":5817},{"style":1047},[5818],{"type":998,"value":1129},{"type":993,"tag":1026,"props":5820,"children":5821},{"style":1058},[5822],{"type":998,"value":5823},"\"Primary colors disjoint from purple/pink? ",{"type":993,"tag":1026,"props":5825,"children":5826},{"style":1116},[5827],{"type":998,"value":1258},{"type":993,"tag":1026,"props":5829,"children":5830},{"style":1041},[5831],{"type":998,"value":5832},"no_overlap",{"type":993,"tag":1026,"props":5834,"children":5835},{"style":1116},[5836],{"type":998,"value":1149},{"type":993,"tag":1026,"props":5838,"children":5839},{"style":1058},[5840],{"type":998,"value":1154},{"type":993,"tag":1026,"props":5842,"children":5843},{"style":1041},[5844],{"type":998,"value":1159},{"type":993,"tag":1442,"props":5846,"children":5848},{"id":5847},"finding-set-relationships",[5849],{"type":998,"value":5850},"Finding Set Relationships",{"type":993,"tag":1001,"props":5852,"children":5853},{},[5854],{"type":998,"value":5855},"Analyzing how sets relate to each other.",{"type":993,"tag":1012,"props":5857,"children":5858},{},[5859],{"type":993,"tag":1016,"props":5860,"children":5862},{"className":1018,"code":5861,"language":6,"meta":8,"style":8},"# Analyze set relationships\nstudents_math = {\"Alice\", \"Bob\", \"Carol\", \"David\"}\nstudents_science = {\"Bob\", \"Carol\", \"Eve\", \"Frank\"}\n\nprint(f\"Math students: {students_math}\")\nprint(f\"Science students: {students_science}\")\n\n# Find overlaps and differences\nboth_subjects = students_math & students_science\nonly_math = students_math - students_science\nonly_science = students_science - students_math\nall_students = students_math | students_science\n\nprint(f\"Taking both subjects: {both_subjects}\")\nprint(f\"Only math: {only_math}\")\nprint(f\"Only science: {only_science}\")\nprint(f\"All students: {all_students}\")\nprint(f\"Total unique students: {len(all_students)}\")\n",[5863],{"type":993,"tag":1022,"props":5864,"children":5865},{"__ignoreMap":8},[5866,5874,5926,5976,5983,6024,6065,6072,6080,6107,6131,6157,6182,6189,6230,6271,6312,6353],{"type":993,"tag":1026,"props":5867,"children":5868},{"class":1028,"line":12},[5869],{"type":993,"tag":1026,"props":5870,"children":5871},{"style":1032},[5872],{"type":998,"value":5873},"# Analyze set relationships\n",{"type":993,"tag":1026,"props":5875,"children":5876},{"class":1028,"line":27},[5877,5882,5886,5890,5895,5899,5904,5908,5913,5917,5922],{"type":993,"tag":1026,"props":5878,"children":5879},{"style":1041},[5880],{"type":998,"value":5881},"students_math ",{"type":993,"tag":1026,"props":5883,"children":5884},{"style":1047},[5885],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5887,"children":5888},{"style":1041},[5889],{"type":998,"value":1055},{"type":993,"tag":1026,"props":5891,"children":5892},{"style":1058},[5893],{"type":998,"value":5894},"\"Alice\"",{"type":993,"tag":1026,"props":5896,"children":5897},{"style":1041},[5898],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5900,"children":5901},{"style":1058},[5902],{"type":998,"value":5903},"\"Bob\"",{"type":993,"tag":1026,"props":5905,"children":5906},{"style":1041},[5907],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5909,"children":5910},{"style":1058},[5911],{"type":998,"value":5912},"\"Carol\"",{"type":993,"tag":1026,"props":5914,"children":5915},{"style":1041},[5916],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5918,"children":5919},{"style":1058},[5920],{"type":998,"value":5921},"\"David\"",{"type":993,"tag":1026,"props":5923,"children":5924},{"style":1041},[5925],{"type":998,"value":1094},{"type":993,"tag":1026,"props":5927,"children":5928},{"class":1028,"line":36},[5929,5934,5938,5942,5946,5950,5954,5958,5963,5967,5972],{"type":993,"tag":1026,"props":5930,"children":5931},{"style":1041},[5932],{"type":998,"value":5933},"students_science ",{"type":993,"tag":1026,"props":5935,"children":5936},{"style":1047},[5937],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5939,"children":5940},{"style":1041},[5941],{"type":998,"value":1055},{"type":993,"tag":1026,"props":5943,"children":5944},{"style":1058},[5945],{"type":998,"value":5903},{"type":993,"tag":1026,"props":5947,"children":5948},{"style":1041},[5949],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5951,"children":5952},{"style":1058},[5953],{"type":998,"value":5912},{"type":993,"tag":1026,"props":5955,"children":5956},{"style":1041},[5957],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5959,"children":5960},{"style":1058},[5961],{"type":998,"value":5962},"\"Eve\"",{"type":993,"tag":1026,"props":5964,"children":5965},{"style":1041},[5966],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5968,"children":5969},{"style":1058},[5970],{"type":998,"value":5971},"\"Frank\"",{"type":993,"tag":1026,"props":5973,"children":5974},{"style":1041},[5975],{"type":998,"value":1094},{"type":993,"tag":1026,"props":5977,"children":5978},{"class":1028,"line":45},[5979],{"type":993,"tag":1026,"props":5980,"children":5981},{"emptyLinePlaceholder":13},[5982],{"type":998,"value":1102},{"type":993,"tag":1026,"props":5984,"children":5985},{"class":1028,"line":54},[5986,5990,5994,5998,6003,6007,6012,6016,6020],{"type":993,"tag":1026,"props":5987,"children":5988},{"style":1116},[5989],{"type":998,"value":1119},{"type":993,"tag":1026,"props":5991,"children":5992},{"style":1041},[5993],{"type":998,"value":1124},{"type":993,"tag":1026,"props":5995,"children":5996},{"style":1047},[5997],{"type":998,"value":1129},{"type":993,"tag":1026,"props":5999,"children":6000},{"style":1058},[6001],{"type":998,"value":6002},"\"Math students: ",{"type":993,"tag":1026,"props":6004,"children":6005},{"style":1116},[6006],{"type":998,"value":1258},{"type":993,"tag":1026,"props":6008,"children":6009},{"style":1041},[6010],{"type":998,"value":6011},"students_math",{"type":993,"tag":1026,"props":6013,"children":6014},{"style":1116},[6015],{"type":998,"value":1149},{"type":993,"tag":1026,"props":6017,"children":6018},{"style":1058},[6019],{"type":998,"value":1154},{"type":993,"tag":1026,"props":6021,"children":6022},{"style":1041},[6023],{"type":998,"value":1159},{"type":993,"tag":1026,"props":6025,"children":6026},{"class":1028,"line":63},[6027,6031,6035,6039,6044,6048,6053,6057,6061],{"type":993,"tag":1026,"props":6028,"children":6029},{"style":1116},[6030],{"type":998,"value":1119},{"type":993,"tag":1026,"props":6032,"children":6033},{"style":1041},[6034],{"type":998,"value":1124},{"type":993,"tag":1026,"props":6036,"children":6037},{"style":1047},[6038],{"type":998,"value":1129},{"type":993,"tag":1026,"props":6040,"children":6041},{"style":1058},[6042],{"type":998,"value":6043},"\"Science students: ",{"type":993,"tag":1026,"props":6045,"children":6046},{"style":1116},[6047],{"type":998,"value":1258},{"type":993,"tag":1026,"props":6049,"children":6050},{"style":1041},[6051],{"type":998,"value":6052},"students_science",{"type":993,"tag":1026,"props":6054,"children":6055},{"style":1116},[6056],{"type":998,"value":1149},{"type":993,"tag":1026,"props":6058,"children":6059},{"style":1058},[6060],{"type":998,"value":1154},{"type":993,"tag":1026,"props":6062,"children":6063},{"style":1041},[6064],{"type":998,"value":1159},{"type":993,"tag":1026,"props":6066,"children":6067},{"class":1028,"line":72},[6068],{"type":993,"tag":1026,"props":6069,"children":6070},{"emptyLinePlaceholder":13},[6071],{"type":998,"value":1102},{"type":993,"tag":1026,"props":6073,"children":6074},{"class":1028,"line":81},[6075],{"type":993,"tag":1026,"props":6076,"children":6077},{"style":1032},[6078],{"type":998,"value":6079},"# Find overlaps and differences\n",{"type":993,"tag":1026,"props":6081,"children":6082},{"class":1028,"line":91},[6083,6088,6092,6097,6102],{"type":993,"tag":1026,"props":6084,"children":6085},{"style":1041},[6086],{"type":998,"value":6087},"both_subjects ",{"type":993,"tag":1026,"props":6089,"children":6090},{"style":1047},[6091],{"type":998,"value":1050},{"type":993,"tag":1026,"props":6093,"children":6094},{"style":1041},[6095],{"type":998,"value":6096}," students_math ",{"type":993,"tag":1026,"props":6098,"children":6099},{"style":1047},[6100],{"type":998,"value":6101},"&",{"type":993,"tag":1026,"props":6103,"children":6104},{"style":1041},[6105],{"type":998,"value":6106}," students_science\n",{"type":993,"tag":1026,"props":6108,"children":6109},{"class":1028,"line":100},[6110,6115,6119,6123,6127],{"type":993,"tag":1026,"props":6111,"children":6112},{"style":1041},[6113],{"type":998,"value":6114},"only_math ",{"type":993,"tag":1026,"props":6116,"children":6117},{"style":1047},[6118],{"type":998,"value":1050},{"type":993,"tag":1026,"props":6120,"children":6121},{"style":1041},[6122],{"type":998,"value":6096},{"type":993,"tag":1026,"props":6124,"children":6125},{"style":1047},[6126],{"type":998,"value":4368},{"type":993,"tag":1026,"props":6128,"children":6129},{"style":1041},[6130],{"type":998,"value":6106},{"type":993,"tag":1026,"props":6132,"children":6133},{"class":1028,"line":109},[6134,6139,6143,6148,6152],{"type":993,"tag":1026,"props":6135,"children":6136},{"style":1041},[6137],{"type":998,"value":6138},"only_science ",{"type":993,"tag":1026,"props":6140,"children":6141},{"style":1047},[6142],{"type":998,"value":1050},{"type":993,"tag":1026,"props":6144,"children":6145},{"style":1041},[6146],{"type":998,"value":6147}," students_science ",{"type":993,"tag":1026,"props":6149,"children":6150},{"style":1047},[6151],{"type":998,"value":4368},{"type":993,"tag":1026,"props":6153,"children":6154},{"style":1041},[6155],{"type":998,"value":6156}," students_math\n",{"type":993,"tag":1026,"props":6158,"children":6159},{"class":1028,"line":118},[6160,6165,6169,6173,6178],{"type":993,"tag":1026,"props":6161,"children":6162},{"style":1041},[6163],{"type":998,"value":6164},"all_students ",{"type":993,"tag":1026,"props":6166,"children":6167},{"style":1047},[6168],{"type":998,"value":1050},{"type":993,"tag":1026,"props":6170,"children":6171},{"style":1041},[6172],{"type":998,"value":6096},{"type":993,"tag":1026,"props":6174,"children":6175},{"style":1047},[6176],{"type":998,"value":6177},"|",{"type":993,"tag":1026,"props":6179,"children":6180},{"style":1041},[6181],{"type":998,"value":6106},{"type":993,"tag":1026,"props":6183,"children":6184},{"class":1028,"line":127},[6185],{"type":993,"tag":1026,"props":6186,"children":6187},{"emptyLinePlaceholder":13},[6188],{"type":998,"value":1102},{"type":993,"tag":1026,"props":6190,"children":6191},{"class":1028,"line":136},[6192,6196,6200,6204,6209,6213,6218,6222,6226],{"type":993,"tag":1026,"props":6193,"children":6194},{"style":1116},[6195],{"type":998,"value":1119},{"type":993,"tag":1026,"props":6197,"children":6198},{"style":1041},[6199],{"type":998,"value":1124},{"type":993,"tag":1026,"props":6201,"children":6202},{"style":1047},[6203],{"type":998,"value":1129},{"type":993,"tag":1026,"props":6205,"children":6206},{"style":1058},[6207],{"type":998,"value":6208},"\"Taking both subjects: ",{"type":993,"tag":1026,"props":6210,"children":6211},{"style":1116},[6212],{"type":998,"value":1258},{"type":993,"tag":1026,"props":6214,"children":6215},{"style":1041},[6216],{"type":998,"value":6217},"both_subjects",{"type":993,"tag":1026,"props":6219,"children":6220},{"style":1116},[6221],{"type":998,"value":1149},{"type":993,"tag":1026,"props":6223,"children":6224},{"style":1058},[6225],{"type":998,"value":1154},{"type":993,"tag":1026,"props":6227,"children":6228},{"style":1041},[6229],{"type":998,"value":1159},{"type":993,"tag":1026,"props":6231,"children":6232},{"class":1028,"line":146},[6233,6237,6241,6245,6250,6254,6259,6263,6267],{"type":993,"tag":1026,"props":6234,"children":6235},{"style":1116},[6236],{"type":998,"value":1119},{"type":993,"tag":1026,"props":6238,"children":6239},{"style":1041},[6240],{"type":998,"value":1124},{"type":993,"tag":1026,"props":6242,"children":6243},{"style":1047},[6244],{"type":998,"value":1129},{"type":993,"tag":1026,"props":6246,"children":6247},{"style":1058},[6248],{"type":998,"value":6249},"\"Only math: ",{"type":993,"tag":1026,"props":6251,"children":6252},{"style":1116},[6253],{"type":998,"value":1258},{"type":993,"tag":1026,"props":6255,"children":6256},{"style":1041},[6257],{"type":998,"value":6258},"only_math",{"type":993,"tag":1026,"props":6260,"children":6261},{"style":1116},[6262],{"type":998,"value":1149},{"type":993,"tag":1026,"props":6264,"children":6265},{"style":1058},[6266],{"type":998,"value":1154},{"type":993,"tag":1026,"props":6268,"children":6269},{"style":1041},[6270],{"type":998,"value":1159},{"type":993,"tag":1026,"props":6272,"children":6273},{"class":1028,"line":155},[6274,6278,6282,6286,6291,6295,6300,6304,6308],{"type":993,"tag":1026,"props":6275,"children":6276},{"style":1116},[6277],{"type":998,"value":1119},{"type":993,"tag":1026,"props":6279,"children":6280},{"style":1041},[6281],{"type":998,"value":1124},{"type":993,"tag":1026,"props":6283,"children":6284},{"style":1047},[6285],{"type":998,"value":1129},{"type":993,"tag":1026,"props":6287,"children":6288},{"style":1058},[6289],{"type":998,"value":6290},"\"Only science: ",{"type":993,"tag":1026,"props":6292,"children":6293},{"style":1116},[6294],{"type":998,"value":1258},{"type":993,"tag":1026,"props":6296,"children":6297},{"style":1041},[6298],{"type":998,"value":6299},"only_science",{"type":993,"tag":1026,"props":6301,"children":6302},{"style":1116},[6303],{"type":998,"value":1149},{"type":993,"tag":1026,"props":6305,"children":6306},{"style":1058},[6307],{"type":998,"value":1154},{"type":993,"tag":1026,"props":6309,"children":6310},{"style":1041},[6311],{"type":998,"value":1159},{"type":993,"tag":1026,"props":6313,"children":6314},{"class":1028,"line":164},[6315,6319,6323,6327,6332,6336,6341,6345,6349],{"type":993,"tag":1026,"props":6316,"children":6317},{"style":1116},[6318],{"type":998,"value":1119},{"type":993,"tag":1026,"props":6320,"children":6321},{"style":1041},[6322],{"type":998,"value":1124},{"type":993,"tag":1026,"props":6324,"children":6325},{"style":1047},[6326],{"type":998,"value":1129},{"type":993,"tag":1026,"props":6328,"children":6329},{"style":1058},[6330],{"type":998,"value":6331},"\"All students: ",{"type":993,"tag":1026,"props":6333,"children":6334},{"style":1116},[6335],{"type":998,"value":1258},{"type":993,"tag":1026,"props":6337,"children":6338},{"style":1041},[6339],{"type":998,"value":6340},"all_students",{"type":993,"tag":1026,"props":6342,"children":6343},{"style":1116},[6344],{"type":998,"value":1149},{"type":993,"tag":1026,"props":6346,"children":6347},{"style":1058},[6348],{"type":998,"value":1154},{"type":993,"tag":1026,"props":6350,"children":6351},{"style":1041},[6352],{"type":998,"value":1159},{"type":993,"tag":1026,"props":6354,"children":6355},{"class":1028,"line":173},[6356,6360,6364,6368,6373,6377,6382,6386,6390],{"type":993,"tag":1026,"props":6357,"children":6358},{"style":1116},[6359],{"type":998,"value":1119},{"type":993,"tag":1026,"props":6361,"children":6362},{"style":1041},[6363],{"type":998,"value":1124},{"type":993,"tag":1026,"props":6365,"children":6366},{"style":1047},[6367],{"type":998,"value":1129},{"type":993,"tag":1026,"props":6369,"children":6370},{"style":1058},[6371],{"type":998,"value":6372},"\"Total unique students: ",{"type":993,"tag":1026,"props":6374,"children":6375},{"style":1116},[6376],{"type":998,"value":1139},{"type":993,"tag":1026,"props":6378,"children":6379},{"style":1041},[6380],{"type":998,"value":6381},"(all_students)",{"type":993,"tag":1026,"props":6383,"children":6384},{"style":1116},[6385],{"type":998,"value":1149},{"type":993,"tag":1026,"props":6387,"children":6388},{"style":1058},[6389],{"type":998,"value":1154},{"type":993,"tag":1026,"props":6391,"children":6392},{"style":1041},[6393],{"type":998,"value":1159},{"type":993,"tag":1318,"props":6395,"children":6397},{"id":6396},"practical-set-reading-patterns",[6398],{"type":998,"value":6399},"💡 Practical Set Reading Patterns",{"type":993,"tag":1001,"props":6401,"children":6402},{},[6403],{"type":998,"value":6404},"Common patterns for reading and analyzing set data in real applications.",{"type":993,"tag":1330,"props":6406,"children":6409},{"emoji":6407,"title":6408,"type":2548},"🎯","Practical Patterns",[6410,6418,6436,6444,6462,6470],{"type":993,"tag":1001,"props":6411,"children":6412},{},[6413],{"type":993,"tag":1340,"props":6414,"children":6415},{},[6416],{"type":998,"value":6417},"Data Validation:",{"type":993,"tag":1346,"props":6419,"children":6420},{},[6421,6426,6431],{"type":993,"tag":1350,"props":6422,"children":6423},{},[6424],{"type":998,"value":6425},"Check if required items present",{"type":993,"tag":1350,"props":6427,"children":6428},{},[6429],{"type":998,"value":6430},"Validate against allowed values",{"type":993,"tag":1350,"props":6432,"children":6433},{},[6434],{"type":998,"value":6435},"Find missing or extra items",{"type":993,"tag":1001,"props":6437,"children":6438},{},[6439],{"type":993,"tag":1340,"props":6440,"children":6441},{},[6442],{"type":998,"value":6443},"Performance Monitoring:",{"type":993,"tag":1346,"props":6445,"children":6446},{},[6447,6452,6457],{"type":993,"tag":1350,"props":6448,"children":6449},{},[6450],{"type":998,"value":6451},"Track unique events/users",{"type":993,"tag":1350,"props":6453,"children":6454},{},[6455],{"type":998,"value":6456},"Monitor set growth over time",{"type":993,"tag":1350,"props":6458,"children":6459},{},[6460],{"type":998,"value":6461},"Analyze membership patterns",{"type":993,"tag":1001,"props":6463,"children":6464},{},[6465],{"type":993,"tag":1340,"props":6466,"children":6467},{},[6468],{"type":998,"value":6469},"Data Cleaning:",{"type":993,"tag":1346,"props":6471,"children":6472},{},[6473,6478,6483],{"type":993,"tag":1350,"props":6474,"children":6475},{},[6476],{"type":998,"value":6477},"Identify duplicate sources",{"type":993,"tag":1350,"props":6479,"children":6480},{},[6481],{"type":998,"value":6482},"Validate data consistency",{"type":993,"tag":1350,"props":6484,"children":6485},{},[6486],{"type":998,"value":6487},"Compare expected vs actual data",{"type":993,"tag":1442,"props":6489,"children":6491},{"id":6490},"data-validation",[6492],{"type":998,"value":6493},"Data Validation",{"type":993,"tag":1001,"props":6495,"children":6496},{},[6497],{"type":998,"value":6498},"Using sets to validate data completeness and correctness.",{"type":993,"tag":1012,"props":6500,"children":6501},{},[6502],{"type":993,"tag":1016,"props":6503,"children":6505},{"className":1018,"code":6504,"language":6,"meta":8,"style":8},"# Data validation with sets\nrequired_fields = {\"name\", \"email\", \"age\", \"phone\"}\nprovided_fields = {\"name\", \"email\", \"age\"}  # Missing phone\n\n# Check for missing fields\nmissing = required_fields - provided_fields\nextra = provided_fields - required_fields\n\nprint(f\"Required: {required_fields}\")\nprint(f\"Provided: {provided_fields}\")\nprint(f\"Missing fields: {missing}\")\nprint(f\"Extra fields: {extra}\")\n\n# Validation status\nis_valid = len(missing) == 0\nprint(f\"Data is valid: {is_valid}\")\n",[6506],{"type":993,"tag":1022,"props":6507,"children":6508},{"__ignoreMap":8},[6509,6517,6569,6614,6621,6629,6655,6681,6688,6729,6770,6811,6852,6859,6867,6896],{"type":993,"tag":1026,"props":6510,"children":6511},{"class":1028,"line":12},[6512],{"type":993,"tag":1026,"props":6513,"children":6514},{"style":1032},[6515],{"type":998,"value":6516},"# Data validation with sets\n",{"type":993,"tag":1026,"props":6518,"children":6519},{"class":1028,"line":27},[6520,6525,6529,6533,6538,6542,6547,6551,6556,6560,6565],{"type":993,"tag":1026,"props":6521,"children":6522},{"style":1041},[6523],{"type":998,"value":6524},"required_fields ",{"type":993,"tag":1026,"props":6526,"children":6527},{"style":1047},[6528],{"type":998,"value":1050},{"type":993,"tag":1026,"props":6530,"children":6531},{"style":1041},[6532],{"type":998,"value":1055},{"type":993,"tag":1026,"props":6534,"children":6535},{"style":1058},[6536],{"type":998,"value":6537},"\"name\"",{"type":993,"tag":1026,"props":6539,"children":6540},{"style":1041},[6541],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6543,"children":6544},{"style":1058},[6545],{"type":998,"value":6546},"\"email\"",{"type":993,"tag":1026,"props":6548,"children":6549},{"style":1041},[6550],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6552,"children":6553},{"style":1058},[6554],{"type":998,"value":6555},"\"age\"",{"type":993,"tag":1026,"props":6557,"children":6558},{"style":1041},[6559],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6561,"children":6562},{"style":1058},[6563],{"type":998,"value":6564},"\"phone\"",{"type":993,"tag":1026,"props":6566,"children":6567},{"style":1041},[6568],{"type":998,"value":1094},{"type":993,"tag":1026,"props":6570,"children":6571},{"class":1028,"line":36},[6572,6577,6581,6585,6589,6593,6597,6601,6605,6609],{"type":993,"tag":1026,"props":6573,"children":6574},{"style":1041},[6575],{"type":998,"value":6576},"provided_fields ",{"type":993,"tag":1026,"props":6578,"children":6579},{"style":1047},[6580],{"type":998,"value":1050},{"type":993,"tag":1026,"props":6582,"children":6583},{"style":1041},[6584],{"type":998,"value":1055},{"type":993,"tag":1026,"props":6586,"children":6587},{"style":1058},[6588],{"type":998,"value":6537},{"type":993,"tag":1026,"props":6590,"children":6591},{"style":1041},[6592],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6594,"children":6595},{"style":1058},[6596],{"type":998,"value":6546},{"type":993,"tag":1026,"props":6598,"children":6599},{"style":1041},[6600],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6602,"children":6603},{"style":1058},[6604],{"type":998,"value":6555},{"type":993,"tag":1026,"props":6606,"children":6607},{"style":1041},[6608],{"type":998,"value":5019},{"type":993,"tag":1026,"props":6610,"children":6611},{"style":1032},[6612],{"type":998,"value":6613},"# Missing phone\n",{"type":993,"tag":1026,"props":6615,"children":6616},{"class":1028,"line":45},[6617],{"type":993,"tag":1026,"props":6618,"children":6619},{"emptyLinePlaceholder":13},[6620],{"type":998,"value":1102},{"type":993,"tag":1026,"props":6622,"children":6623},{"class":1028,"line":54},[6624],{"type":993,"tag":1026,"props":6625,"children":6626},{"style":1032},[6627],{"type":998,"value":6628},"# Check for missing fields\n",{"type":993,"tag":1026,"props":6630,"children":6631},{"class":1028,"line":63},[6632,6637,6641,6646,6650],{"type":993,"tag":1026,"props":6633,"children":6634},{"style":1041},[6635],{"type":998,"value":6636},"missing ",{"type":993,"tag":1026,"props":6638,"children":6639},{"style":1047},[6640],{"type":998,"value":1050},{"type":993,"tag":1026,"props":6642,"children":6643},{"style":1041},[6644],{"type":998,"value":6645}," required_fields ",{"type":993,"tag":1026,"props":6647,"children":6648},{"style":1047},[6649],{"type":998,"value":4368},{"type":993,"tag":1026,"props":6651,"children":6652},{"style":1041},[6653],{"type":998,"value":6654}," provided_fields\n",{"type":993,"tag":1026,"props":6656,"children":6657},{"class":1028,"line":72},[6658,6663,6667,6672,6676],{"type":993,"tag":1026,"props":6659,"children":6660},{"style":1041},[6661],{"type":998,"value":6662},"extra ",{"type":993,"tag":1026,"props":6664,"children":6665},{"style":1047},[6666],{"type":998,"value":1050},{"type":993,"tag":1026,"props":6668,"children":6669},{"style":1041},[6670],{"type":998,"value":6671}," provided_fields ",{"type":993,"tag":1026,"props":6673,"children":6674},{"style":1047},[6675],{"type":998,"value":4368},{"type":993,"tag":1026,"props":6677,"children":6678},{"style":1041},[6679],{"type":998,"value":6680}," required_fields\n",{"type":993,"tag":1026,"props":6682,"children":6683},{"class":1028,"line":81},[6684],{"type":993,"tag":1026,"props":6685,"children":6686},{"emptyLinePlaceholder":13},[6687],{"type":998,"value":1102},{"type":993,"tag":1026,"props":6689,"children":6690},{"class":1028,"line":91},[6691,6695,6699,6703,6708,6712,6717,6721,6725],{"type":993,"tag":1026,"props":6692,"children":6693},{"style":1116},[6694],{"type":998,"value":1119},{"type":993,"tag":1026,"props":6696,"children":6697},{"style":1041},[6698],{"type":998,"value":1124},{"type":993,"tag":1026,"props":6700,"children":6701},{"style":1047},[6702],{"type":998,"value":1129},{"type":993,"tag":1026,"props":6704,"children":6705},{"style":1058},[6706],{"type":998,"value":6707},"\"Required: ",{"type":993,"tag":1026,"props":6709,"children":6710},{"style":1116},[6711],{"type":998,"value":1258},{"type":993,"tag":1026,"props":6713,"children":6714},{"style":1041},[6715],{"type":998,"value":6716},"required_fields",{"type":993,"tag":1026,"props":6718,"children":6719},{"style":1116},[6720],{"type":998,"value":1149},{"type":993,"tag":1026,"props":6722,"children":6723},{"style":1058},[6724],{"type":998,"value":1154},{"type":993,"tag":1026,"props":6726,"children":6727},{"style":1041},[6728],{"type":998,"value":1159},{"type":993,"tag":1026,"props":6730,"children":6731},{"class":1028,"line":100},[6732,6736,6740,6744,6749,6753,6758,6762,6766],{"type":993,"tag":1026,"props":6733,"children":6734},{"style":1116},[6735],{"type":998,"value":1119},{"type":993,"tag":1026,"props":6737,"children":6738},{"style":1041},[6739],{"type":998,"value":1124},{"type":993,"tag":1026,"props":6741,"children":6742},{"style":1047},[6743],{"type":998,"value":1129},{"type":993,"tag":1026,"props":6745,"children":6746},{"style":1058},[6747],{"type":998,"value":6748},"\"Provided: ",{"type":993,"tag":1026,"props":6750,"children":6751},{"style":1116},[6752],{"type":998,"value":1258},{"type":993,"tag":1026,"props":6754,"children":6755},{"style":1041},[6756],{"type":998,"value":6757},"provided_fields",{"type":993,"tag":1026,"props":6759,"children":6760},{"style":1116},[6761],{"type":998,"value":1149},{"type":993,"tag":1026,"props":6763,"children":6764},{"style":1058},[6765],{"type":998,"value":1154},{"type":993,"tag":1026,"props":6767,"children":6768},{"style":1041},[6769],{"type":998,"value":1159},{"type":993,"tag":1026,"props":6771,"children":6772},{"class":1028,"line":109},[6773,6777,6781,6785,6790,6794,6799,6803,6807],{"type":993,"tag":1026,"props":6774,"children":6775},{"style":1116},[6776],{"type":998,"value":1119},{"type":993,"tag":1026,"props":6778,"children":6779},{"style":1041},[6780],{"type":998,"value":1124},{"type":993,"tag":1026,"props":6782,"children":6783},{"style":1047},[6784],{"type":998,"value":1129},{"type":993,"tag":1026,"props":6786,"children":6787},{"style":1058},[6788],{"type":998,"value":6789},"\"Missing fields: ",{"type":993,"tag":1026,"props":6791,"children":6792},{"style":1116},[6793],{"type":998,"value":1258},{"type":993,"tag":1026,"props":6795,"children":6796},{"style":1041},[6797],{"type":998,"value":6798},"missing",{"type":993,"tag":1026,"props":6800,"children":6801},{"style":1116},[6802],{"type":998,"value":1149},{"type":993,"tag":1026,"props":6804,"children":6805},{"style":1058},[6806],{"type":998,"value":1154},{"type":993,"tag":1026,"props":6808,"children":6809},{"style":1041},[6810],{"type":998,"value":1159},{"type":993,"tag":1026,"props":6812,"children":6813},{"class":1028,"line":118},[6814,6818,6822,6826,6831,6835,6840,6844,6848],{"type":993,"tag":1026,"props":6815,"children":6816},{"style":1116},[6817],{"type":998,"value":1119},{"type":993,"tag":1026,"props":6819,"children":6820},{"style":1041},[6821],{"type":998,"value":1124},{"type":993,"tag":1026,"props":6823,"children":6824},{"style":1047},[6825],{"type":998,"value":1129},{"type":993,"tag":1026,"props":6827,"children":6828},{"style":1058},[6829],{"type":998,"value":6830},"\"Extra fields: ",{"type":993,"tag":1026,"props":6832,"children":6833},{"style":1116},[6834],{"type":998,"value":1258},{"type":993,"tag":1026,"props":6836,"children":6837},{"style":1041},[6838],{"type":998,"value":6839},"extra",{"type":993,"tag":1026,"props":6841,"children":6842},{"style":1116},[6843],{"type":998,"value":1149},{"type":993,"tag":1026,"props":6845,"children":6846},{"style":1058},[6847],{"type":998,"value":1154},{"type":993,"tag":1026,"props":6849,"children":6850},{"style":1041},[6851],{"type":998,"value":1159},{"type":993,"tag":1026,"props":6853,"children":6854},{"class":1028,"line":127},[6855],{"type":993,"tag":1026,"props":6856,"children":6857},{"emptyLinePlaceholder":13},[6858],{"type":998,"value":1102},{"type":993,"tag":1026,"props":6860,"children":6861},{"class":1028,"line":136},[6862],{"type":993,"tag":1026,"props":6863,"children":6864},{"style":1032},[6865],{"type":998,"value":6866},"# Validation status\n",{"type":993,"tag":1026,"props":6868,"children":6869},{"class":1028,"line":146},[6870,6875,6879,6883,6888,6892],{"type":993,"tag":1026,"props":6871,"children":6872},{"style":1041},[6873],{"type":998,"value":6874},"is_valid ",{"type":993,"tag":1026,"props":6876,"children":6877},{"style":1047},[6878],{"type":998,"value":1050},{"type":993,"tag":1026,"props":6880,"children":6881},{"style":1116},[6882],{"type":998,"value":1736},{"type":993,"tag":1026,"props":6884,"children":6885},{"style":1041},[6886],{"type":998,"value":6887},"(missing) ",{"type":993,"tag":1026,"props":6889,"children":6890},{"style":1047},[6891],{"type":998,"value":1746},{"type":993,"tag":1026,"props":6893,"children":6894},{"style":1116},[6895],{"type":998,"value":1751},{"type":993,"tag":1026,"props":6897,"children":6898},{"class":1028,"line":155},[6899,6903,6907,6911,6916,6920,6925,6929,6933],{"type":993,"tag":1026,"props":6900,"children":6901},{"style":1116},[6902],{"type":998,"value":1119},{"type":993,"tag":1026,"props":6904,"children":6905},{"style":1041},[6906],{"type":998,"value":1124},{"type":993,"tag":1026,"props":6908,"children":6909},{"style":1047},[6910],{"type":998,"value":1129},{"type":993,"tag":1026,"props":6912,"children":6913},{"style":1058},[6914],{"type":998,"value":6915},"\"Data is valid: ",{"type":993,"tag":1026,"props":6917,"children":6918},{"style":1116},[6919],{"type":998,"value":1258},{"type":993,"tag":1026,"props":6921,"children":6922},{"style":1041},[6923],{"type":998,"value":6924},"is_valid",{"type":993,"tag":1026,"props":6926,"children":6927},{"style":1116},[6928],{"type":998,"value":1149},{"type":993,"tag":1026,"props":6930,"children":6931},{"style":1058},[6932],{"type":998,"value":1154},{"type":993,"tag":1026,"props":6934,"children":6935},{"style":1041},[6936],{"type":998,"value":1159},{"type":993,"tag":1442,"props":6938,"children":6940},{"id":6939},"performance-analysis",[6941],{"type":998,"value":6942},"Performance Analysis",{"type":993,"tag":1001,"props":6944,"children":6945},{},[6946],{"type":998,"value":6947},"Tracking unique items and analyzing patterns.",{"type":993,"tag":1012,"props":6949,"children":6950},{},[6951],{"type":993,"tag":1016,"props":6952,"children":6954},{"className":1018,"code":6953,"language":6,"meta":8,"style":8},"# Performance analysis example\ndaily_visitors = {101, 102, 103, 104, 105}\nweekly_visitors = {101, 102, 106, 107, 108, 109, 110}\n\nprint(f\"Daily visitors: {len(daily_visitors)}\")\nprint(f\"Weekly visitors: {len(weekly_visitors)}\")\n\n# Find returning vs new visitors\nreturning = daily_visitors & weekly_visitors\nnew_this_week = weekly_visitors - daily_visitors\n\nprint(f\"Returning visitors: {returning}\")\nprint(f\"New visitors this week: {new_this_week}\")\n\n# Calculate retention rate\nif len(daily_visitors) > 0:\n    retention_rate = len(returning) / len(daily_visitors) * 100\n    print(f\"Retention rate: {retention_rate:.1f}%\")\n",[6955],{"type":993,"tag":1022,"props":6956,"children":6957},{"__ignoreMap":8},[6958,6966,7027,7104,7111,7152,7193,7200,7208,7234,7260,7267,7308,7349,7356,7364,7393,7436],{"type":993,"tag":1026,"props":6959,"children":6960},{"class":1028,"line":12},[6961],{"type":993,"tag":1026,"props":6962,"children":6963},{"style":1032},[6964],{"type":998,"value":6965},"# Performance analysis example\n",{"type":993,"tag":1026,"props":6967,"children":6968},{"class":1028,"line":27},[6969,6974,6978,6982,6987,6991,6996,7000,7005,7009,7014,7018,7023],{"type":993,"tag":1026,"props":6970,"children":6971},{"style":1041},[6972],{"type":998,"value":6973},"daily_visitors ",{"type":993,"tag":1026,"props":6975,"children":6976},{"style":1047},[6977],{"type":998,"value":1050},{"type":993,"tag":1026,"props":6979,"children":6980},{"style":1041},[6981],{"type":998,"value":1055},{"type":993,"tag":1026,"props":6983,"children":6984},{"style":1116},[6985],{"type":998,"value":6986},"101",{"type":993,"tag":1026,"props":6988,"children":6989},{"style":1041},[6990],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6992,"children":6993},{"style":1116},[6994],{"type":998,"value":6995},"102",{"type":993,"tag":1026,"props":6997,"children":6998},{"style":1041},[6999],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7001,"children":7002},{"style":1116},[7003],{"type":998,"value":7004},"103",{"type":993,"tag":1026,"props":7006,"children":7007},{"style":1041},[7008],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7010,"children":7011},{"style":1116},[7012],{"type":998,"value":7013},"104",{"type":993,"tag":1026,"props":7015,"children":7016},{"style":1041},[7017],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7019,"children":7020},{"style":1116},[7021],{"type":998,"value":7022},"105",{"type":993,"tag":1026,"props":7024,"children":7025},{"style":1041},[7026],{"type":998,"value":1094},{"type":993,"tag":1026,"props":7028,"children":7029},{"class":1028,"line":36},[7030,7035,7039,7043,7047,7051,7055,7059,7064,7068,7073,7077,7082,7086,7091,7095,7100],{"type":993,"tag":1026,"props":7031,"children":7032},{"style":1041},[7033],{"type":998,"value":7034},"weekly_visitors ",{"type":993,"tag":1026,"props":7036,"children":7037},{"style":1047},[7038],{"type":998,"value":1050},{"type":993,"tag":1026,"props":7040,"children":7041},{"style":1041},[7042],{"type":998,"value":1055},{"type":993,"tag":1026,"props":7044,"children":7045},{"style":1116},[7046],{"type":998,"value":6986},{"type":993,"tag":1026,"props":7048,"children":7049},{"style":1041},[7050],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7052,"children":7053},{"style":1116},[7054],{"type":998,"value":6995},{"type":993,"tag":1026,"props":7056,"children":7057},{"style":1041},[7058],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7060,"children":7061},{"style":1116},[7062],{"type":998,"value":7063},"106",{"type":993,"tag":1026,"props":7065,"children":7066},{"style":1041},[7067],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7069,"children":7070},{"style":1116},[7071],{"type":998,"value":7072},"107",{"type":993,"tag":1026,"props":7074,"children":7075},{"style":1041},[7076],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7078,"children":7079},{"style":1116},[7080],{"type":998,"value":7081},"108",{"type":993,"tag":1026,"props":7083,"children":7084},{"style":1041},[7085],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7087,"children":7088},{"style":1116},[7089],{"type":998,"value":7090},"109",{"type":993,"tag":1026,"props":7092,"children":7093},{"style":1041},[7094],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7096,"children":7097},{"style":1116},[7098],{"type":998,"value":7099},"110",{"type":993,"tag":1026,"props":7101,"children":7102},{"style":1041},[7103],{"type":998,"value":1094},{"type":993,"tag":1026,"props":7105,"children":7106},{"class":1028,"line":45},[7107],{"type":993,"tag":1026,"props":7108,"children":7109},{"emptyLinePlaceholder":13},[7110],{"type":998,"value":1102},{"type":993,"tag":1026,"props":7112,"children":7113},{"class":1028,"line":54},[7114,7118,7122,7126,7131,7135,7140,7144,7148],{"type":993,"tag":1026,"props":7115,"children":7116},{"style":1116},[7117],{"type":998,"value":1119},{"type":993,"tag":1026,"props":7119,"children":7120},{"style":1041},[7121],{"type":998,"value":1124},{"type":993,"tag":1026,"props":7123,"children":7124},{"style":1047},[7125],{"type":998,"value":1129},{"type":993,"tag":1026,"props":7127,"children":7128},{"style":1058},[7129],{"type":998,"value":7130},"\"Daily visitors: ",{"type":993,"tag":1026,"props":7132,"children":7133},{"style":1116},[7134],{"type":998,"value":1139},{"type":993,"tag":1026,"props":7136,"children":7137},{"style":1041},[7138],{"type":998,"value":7139},"(daily_visitors)",{"type":993,"tag":1026,"props":7141,"children":7142},{"style":1116},[7143],{"type":998,"value":1149},{"type":993,"tag":1026,"props":7145,"children":7146},{"style":1058},[7147],{"type":998,"value":1154},{"type":993,"tag":1026,"props":7149,"children":7150},{"style":1041},[7151],{"type":998,"value":1159},{"type":993,"tag":1026,"props":7153,"children":7154},{"class":1028,"line":63},[7155,7159,7163,7167,7172,7176,7181,7185,7189],{"type":993,"tag":1026,"props":7156,"children":7157},{"style":1116},[7158],{"type":998,"value":1119},{"type":993,"tag":1026,"props":7160,"children":7161},{"style":1041},[7162],{"type":998,"value":1124},{"type":993,"tag":1026,"props":7164,"children":7165},{"style":1047},[7166],{"type":998,"value":1129},{"type":993,"tag":1026,"props":7168,"children":7169},{"style":1058},[7170],{"type":998,"value":7171},"\"Weekly visitors: ",{"type":993,"tag":1026,"props":7173,"children":7174},{"style":1116},[7175],{"type":998,"value":1139},{"type":993,"tag":1026,"props":7177,"children":7178},{"style":1041},[7179],{"type":998,"value":7180},"(weekly_visitors)",{"type":993,"tag":1026,"props":7182,"children":7183},{"style":1116},[7184],{"type":998,"value":1149},{"type":993,"tag":1026,"props":7186,"children":7187},{"style":1058},[7188],{"type":998,"value":1154},{"type":993,"tag":1026,"props":7190,"children":7191},{"style":1041},[7192],{"type":998,"value":1159},{"type":993,"tag":1026,"props":7194,"children":7195},{"class":1028,"line":72},[7196],{"type":993,"tag":1026,"props":7197,"children":7198},{"emptyLinePlaceholder":13},[7199],{"type":998,"value":1102},{"type":993,"tag":1026,"props":7201,"children":7202},{"class":1028,"line":81},[7203],{"type":993,"tag":1026,"props":7204,"children":7205},{"style":1032},[7206],{"type":998,"value":7207},"# Find returning vs new visitors\n",{"type":993,"tag":1026,"props":7209,"children":7210},{"class":1028,"line":91},[7211,7216,7220,7225,7229],{"type":993,"tag":1026,"props":7212,"children":7213},{"style":1041},[7214],{"type":998,"value":7215},"returning ",{"type":993,"tag":1026,"props":7217,"children":7218},{"style":1047},[7219],{"type":998,"value":1050},{"type":993,"tag":1026,"props":7221,"children":7222},{"style":1041},[7223],{"type":998,"value":7224}," daily_visitors ",{"type":993,"tag":1026,"props":7226,"children":7227},{"style":1047},[7228],{"type":998,"value":6101},{"type":993,"tag":1026,"props":7230,"children":7231},{"style":1041},[7232],{"type":998,"value":7233}," weekly_visitors\n",{"type":993,"tag":1026,"props":7235,"children":7236},{"class":1028,"line":100},[7237,7242,7246,7251,7255],{"type":993,"tag":1026,"props":7238,"children":7239},{"style":1041},[7240],{"type":998,"value":7241},"new_this_week ",{"type":993,"tag":1026,"props":7243,"children":7244},{"style":1047},[7245],{"type":998,"value":1050},{"type":993,"tag":1026,"props":7247,"children":7248},{"style":1041},[7249],{"type":998,"value":7250}," weekly_visitors ",{"type":993,"tag":1026,"props":7252,"children":7253},{"style":1047},[7254],{"type":998,"value":4368},{"type":993,"tag":1026,"props":7256,"children":7257},{"style":1041},[7258],{"type":998,"value":7259}," daily_visitors\n",{"type":993,"tag":1026,"props":7261,"children":7262},{"class":1028,"line":109},[7263],{"type":993,"tag":1026,"props":7264,"children":7265},{"emptyLinePlaceholder":13},[7266],{"type":998,"value":1102},{"type":993,"tag":1026,"props":7268,"children":7269},{"class":1028,"line":118},[7270,7274,7278,7282,7287,7291,7296,7300,7304],{"type":993,"tag":1026,"props":7271,"children":7272},{"style":1116},[7273],{"type":998,"value":1119},{"type":993,"tag":1026,"props":7275,"children":7276},{"style":1041},[7277],{"type":998,"value":1124},{"type":993,"tag":1026,"props":7279,"children":7280},{"style":1047},[7281],{"type":998,"value":1129},{"type":993,"tag":1026,"props":7283,"children":7284},{"style":1058},[7285],{"type":998,"value":7286},"\"Returning visitors: ",{"type":993,"tag":1026,"props":7288,"children":7289},{"style":1116},[7290],{"type":998,"value":1258},{"type":993,"tag":1026,"props":7292,"children":7293},{"style":1041},[7294],{"type":998,"value":7295},"returning",{"type":993,"tag":1026,"props":7297,"children":7298},{"style":1116},[7299],{"type":998,"value":1149},{"type":993,"tag":1026,"props":7301,"children":7302},{"style":1058},[7303],{"type":998,"value":1154},{"type":993,"tag":1026,"props":7305,"children":7306},{"style":1041},[7307],{"type":998,"value":1159},{"type":993,"tag":1026,"props":7309,"children":7310},{"class":1028,"line":127},[7311,7315,7319,7323,7328,7332,7337,7341,7345],{"type":993,"tag":1026,"props":7312,"children":7313},{"style":1116},[7314],{"type":998,"value":1119},{"type":993,"tag":1026,"props":7316,"children":7317},{"style":1041},[7318],{"type":998,"value":1124},{"type":993,"tag":1026,"props":7320,"children":7321},{"style":1047},[7322],{"type":998,"value":1129},{"type":993,"tag":1026,"props":7324,"children":7325},{"style":1058},[7326],{"type":998,"value":7327},"\"New visitors this week: ",{"type":993,"tag":1026,"props":7329,"children":7330},{"style":1116},[7331],{"type":998,"value":1258},{"type":993,"tag":1026,"props":7333,"children":7334},{"style":1041},[7335],{"type":998,"value":7336},"new_this_week",{"type":993,"tag":1026,"props":7338,"children":7339},{"style":1116},[7340],{"type":998,"value":1149},{"type":993,"tag":1026,"props":7342,"children":7343},{"style":1058},[7344],{"type":998,"value":1154},{"type":993,"tag":1026,"props":7346,"children":7347},{"style":1041},[7348],{"type":998,"value":1159},{"type":993,"tag":1026,"props":7350,"children":7351},{"class":1028,"line":136},[7352],{"type":993,"tag":1026,"props":7353,"children":7354},{"emptyLinePlaceholder":13},[7355],{"type":998,"value":1102},{"type":993,"tag":1026,"props":7357,"children":7358},{"class":1028,"line":146},[7359],{"type":993,"tag":1026,"props":7360,"children":7361},{"style":1032},[7362],{"type":998,"value":7363},"# Calculate retention rate\n",{"type":993,"tag":1026,"props":7365,"children":7366},{"class":1028,"line":155},[7367,7371,7375,7380,7384,7389],{"type":993,"tag":1026,"props":7368,"children":7369},{"style":1047},[7370],{"type":998,"value":2344},{"type":993,"tag":1026,"props":7372,"children":7373},{"style":1116},[7374],{"type":998,"value":1736},{"type":993,"tag":1026,"props":7376,"children":7377},{"style":1041},[7378],{"type":998,"value":7379},"(daily_visitors) ",{"type":993,"tag":1026,"props":7381,"children":7382},{"style":1047},[7383],{"type":998,"value":3807},{"type":993,"tag":1026,"props":7385,"children":7386},{"style":1116},[7387],{"type":998,"value":7388}," 0",{"type":993,"tag":1026,"props":7390,"children":7391},{"style":1041},[7392],{"type":998,"value":3599},{"type":993,"tag":1026,"props":7394,"children":7395},{"class":1028,"line":164},[7396,7401,7405,7409,7414,7418,7422,7426,7431],{"type":993,"tag":1026,"props":7397,"children":7398},{"style":1041},[7399],{"type":998,"value":7400},"    retention_rate ",{"type":993,"tag":1026,"props":7402,"children":7403},{"style":1047},[7404],{"type":998,"value":1050},{"type":993,"tag":1026,"props":7406,"children":7407},{"style":1116},[7408],{"type":998,"value":1736},{"type":993,"tag":1026,"props":7410,"children":7411},{"style":1041},[7412],{"type":998,"value":7413},"(returning) ",{"type":993,"tag":1026,"props":7415,"children":7416},{"style":1047},[7417],{"type":998,"value":3645},{"type":993,"tag":1026,"props":7419,"children":7420},{"style":1116},[7421],{"type":998,"value":1736},{"type":993,"tag":1026,"props":7423,"children":7424},{"style":1041},[7425],{"type":998,"value":7379},{"type":993,"tag":1026,"props":7427,"children":7428},{"style":1047},[7429],{"type":998,"value":7430},"*",{"type":993,"tag":1026,"props":7432,"children":7433},{"style":1116},[7434],{"type":998,"value":7435}," 100\n",{"type":993,"tag":1026,"props":7437,"children":7438},{"class":1028,"line":173},[7439,7443,7447,7451,7456,7460,7465,7469,7473,7478],{"type":993,"tag":1026,"props":7440,"children":7441},{"style":1116},[7442],{"type":998,"value":2159},{"type":993,"tag":1026,"props":7444,"children":7445},{"style":1041},[7446],{"type":998,"value":1124},{"type":993,"tag":1026,"props":7448,"children":7449},{"style":1047},[7450],{"type":998,"value":1129},{"type":993,"tag":1026,"props":7452,"children":7453},{"style":1058},[7454],{"type":998,"value":7455},"\"Retention rate: ",{"type":993,"tag":1026,"props":7457,"children":7458},{"style":1116},[7459],{"type":998,"value":1258},{"type":993,"tag":1026,"props":7461,"children":7462},{"style":1041},[7463],{"type":998,"value":7464},"retention_rate",{"type":993,"tag":1026,"props":7466,"children":7467},{"style":1047},[7468],{"type":998,"value":3729},{"type":993,"tag":1026,"props":7470,"children":7471},{"style":1116},[7472],{"type":998,"value":1149},{"type":993,"tag":1026,"props":7474,"children":7475},{"style":1058},[7476],{"type":998,"value":7477},"%\"",{"type":993,"tag":1026,"props":7479,"children":7480},{"style":1041},[7481],{"type":998,"value":1159},{"type":993,"tag":1318,"props":7483,"children":7485},{"id":7484},"set-reading-reference",[7486],{"type":998,"value":7487},"📚 Set Reading Reference",{"type":993,"tag":1001,"props":7489,"children":7490},{},[7491],{"type":998,"value":7492},"Common set reading operations and their use cases:",{"type":993,"tag":7494,"props":7495,"children":7496},"table",{},[7497,7526],{"type":993,"tag":7498,"props":7499,"children":7500},"thead",{},[7501],{"type":993,"tag":7502,"props":7503,"children":7504},"tr",{},[7505,7511,7516,7521],{"type":993,"tag":7506,"props":7507,"children":7508},"th",{},[7509],{"type":998,"value":7510},"Operation",{"type":993,"tag":7506,"props":7512,"children":7513},{},[7514],{"type":998,"value":7515},"Syntax",{"type":993,"tag":7506,"props":7517,"children":7518},{},[7519],{"type":998,"value":7520},"Purpose",{"type":993,"tag":7506,"props":7522,"children":7523},{},[7524],{"type":998,"value":7525},"Example",{"type":993,"tag":7527,"props":7528,"children":7529},"tbody",{},[7530,7571,7611,7644,7684,7724,7763],{"type":993,"tag":7502,"props":7531,"children":7532},{},[7533,7542,7550,7555],{"type":993,"tag":7534,"props":7535,"children":7536},"td",{},[7537],{"type":993,"tag":1340,"props":7538,"children":7539},{},[7540],{"type":998,"value":7541},"Size",{"type":993,"tag":7534,"props":7543,"children":7544},{},[7545],{"type":993,"tag":1022,"props":7546,"children":7548},{"className":7547},[],[7549],{"type":998,"value":1358},{"type":993,"tag":7534,"props":7551,"children":7552},{},[7553],{"type":998,"value":7554},"Count elements",{"type":993,"tag":7534,"props":7556,"children":7557},{},[7558,7564,7566],{"type":993,"tag":1022,"props":7559,"children":7561},{"className":7560},[],[7562],{"type":998,"value":7563},"len({\"a\", \"b\", \"c\"})",{"type":998,"value":7565}," → ",{"type":993,"tag":1022,"props":7567,"children":7569},{"className":7568},[],[7570],{"type":998,"value":2317},{"type":993,"tag":7502,"props":7572,"children":7573},{},[7574,7582,7590,7595],{"type":993,"tag":7534,"props":7575,"children":7576},{},[7577],{"type":993,"tag":1340,"props":7578,"children":7579},{},[7580],{"type":998,"value":7581},"Membership",{"type":993,"tag":7534,"props":7583,"children":7584},{},[7585],{"type":993,"tag":1022,"props":7586,"children":7588},{"className":7587},[],[7589],{"type":998,"value":1396},{"type":993,"tag":7534,"props":7591,"children":7592},{},[7593],{"type":998,"value":7594},"Check existence",{"type":993,"tag":7534,"props":7596,"children":7597},{},[7598,7604,7605],{"type":993,"tag":1022,"props":7599,"children":7601},{"className":7600},[],[7602],{"type":998,"value":7603},"\"x\" in {\"x\", \"y\", \"z\"}",{"type":998,"value":7565},{"type":993,"tag":1022,"props":7606,"children":7608},{"className":7607},[],[7609],{"type":998,"value":7610},"True",{"type":993,"tag":7502,"props":7612,"children":7613},{},[7614,7622,7630,7635],{"type":993,"tag":7534,"props":7615,"children":7616},{},[7617],{"type":993,"tag":1340,"props":7618,"children":7619},{},[7620],{"type":998,"value":7621},"Iteration",{"type":993,"tag":7534,"props":7623,"children":7624},{},[7625],{"type":993,"tag":1022,"props":7626,"children":7628},{"className":7627},[],[7629],{"type":998,"value":2569},{"type":993,"tag":7534,"props":7631,"children":7632},{},[7633],{"type":998,"value":7634},"Process all elements",{"type":993,"tag":7534,"props":7636,"children":7637},{},[7638],{"type":993,"tag":1022,"props":7639,"children":7641},{"className":7640},[],[7642],{"type":998,"value":7643},"for color in colors:",{"type":993,"tag":7502,"props":7645,"children":7646},{},[7647,7655,7664,7669],{"type":993,"tag":7534,"props":7648,"children":7649},{},[7650],{"type":993,"tag":1340,"props":7651,"children":7652},{},[7653],{"type":998,"value":7654},"Empty Check",{"type":993,"tag":7534,"props":7656,"children":7657},{},[7658],{"type":993,"tag":1022,"props":7659,"children":7661},{"className":7660},[],[7662],{"type":998,"value":7663},"not set",{"type":993,"tag":7534,"props":7665,"children":7666},{},[7667],{"type":998,"value":7668},"Check if empty",{"type":993,"tag":7534,"props":7670,"children":7671},{},[7672,7678,7679],{"type":993,"tag":1022,"props":7673,"children":7675},{"className":7674},[],[7676],{"type":998,"value":7677},"not set()",{"type":998,"value":7565},{"type":993,"tag":1022,"props":7680,"children":7682},{"className":7681},[],[7683],{"type":998,"value":7610},{"type":993,"tag":7502,"props":7685,"children":7686},{},[7687,7695,7703,7708],{"type":993,"tag":7534,"props":7688,"children":7689},{},[7690],{"type":993,"tag":1340,"props":7691,"children":7692},{},[7693],{"type":998,"value":7694},"Convert List",{"type":993,"tag":7534,"props":7696,"children":7697},{},[7698],{"type":993,"tag":1022,"props":7699,"children":7701},{"className":7700},[],[7702],{"type":998,"value":3910},{"type":993,"tag":7534,"props":7704,"children":7705},{},[7706],{"type":998,"value":7707},"Get as list",{"type":993,"tag":7534,"props":7709,"children":7710},{},[7711,7717,7718],{"type":993,"tag":1022,"props":7712,"children":7714},{"className":7713},[],[7715],{"type":998,"value":7716},"list({3, 1, 2})",{"type":998,"value":7565},{"type":993,"tag":1022,"props":7719,"children":7721},{"className":7720},[],[7722],{"type":998,"value":7723},"[1, 2, 3]",{"type":993,"tag":7502,"props":7725,"children":7726},{},[7727,7735,7743,7748],{"type":993,"tag":7534,"props":7728,"children":7729},{},[7730],{"type":993,"tag":1340,"props":7731,"children":7732},{},[7733],{"type":998,"value":7734},"Sorted",{"type":993,"tag":7534,"props":7736,"children":7737},{},[7738],{"type":993,"tag":1022,"props":7739,"children":7741},{"className":7740},[],[7742],{"type":998,"value":3974},{"type":993,"tag":7534,"props":7744,"children":7745},{},[7746],{"type":998,"value":7747},"Get sorted list",{"type":993,"tag":7534,"props":7749,"children":7750},{},[7751,7757,7758],{"type":993,"tag":1022,"props":7752,"children":7754},{"className":7753},[],[7755],{"type":998,"value":7756},"sorted({3, 1, 2})",{"type":998,"value":7565},{"type":993,"tag":1022,"props":7759,"children":7761},{"className":7760},[],[7762],{"type":998,"value":7723},{"type":993,"tag":7502,"props":7764,"children":7765},{},[7766,7774,7782,7787],{"type":993,"tag":7534,"props":7767,"children":7768},{},[7769],{"type":993,"tag":1340,"props":7770,"children":7771},{},[7772],{"type":998,"value":7773},"Equality",{"type":993,"tag":7534,"props":7775,"children":7776},{},[7777],{"type":993,"tag":1022,"props":7778,"children":7780},{"className":7779},[],[7781],{"type":998,"value":4821},{"type":993,"tag":7534,"props":7783,"children":7784},{},[7785],{"type":998,"value":7786},"Compare contents",{"type":993,"tag":7534,"props":7788,"children":7789},{},[7790,7796,7797],{"type":993,"tag":1022,"props":7791,"children":7793},{"className":7792},[],[7794],{"type":998,"value":7795},"{1, 2} == {2, 1}",{"type":998,"value":7565},{"type":993,"tag":1022,"props":7798,"children":7800},{"className":7799},[],[7801],{"type":998,"value":7610},{"type":993,"tag":1001,"props":7803,"children":7804},{},[7805],{"type":998,"value":7806},"Choose the appropriate operation based on what information you need from your set.",{"type":993,"tag":1001,"props":7808,"children":7809},{},[7810,7812,7818,7820,7825],{"type":998,"value":7811},"Learn more about ",{"type":993,"tag":7813,"props":7814,"children":7815},"a",{"href":471},[7816],{"type":998,"value":7817},"adding to sets",{"type":998,"value":7819}," and ",{"type":993,"tag":7813,"props":7821,"children":7822},{"href":507},[7823],{"type":998,"value":7824},"set operations",{"type":998,"value":7826}," to continue mastering Python sets.",{"type":993,"tag":7828,"props":7829,"children":7832},"exercise",{"hint":7830,"prompt":7831},"Use the 'in' operator to check if an item exists in a set","Create a function that checks if a favorite color is in a set of available colors. Return True if found, False if not found.",[7833],{"type":993,"tag":1016,"props":7834,"children":7836},{"className":1018,"code":7835,"language":6,"meta":8,"style":8},"def check_color_available(available_colors, favorite_color):\n    # TODO: Check if favorite_color is in available_colors\n    # TODO: Return True or False\n    pass\n\n# Test data\ncolors = {'red', 'blue', 'green', 'yellow', 'purple'}\n\nresult1 = check_color_available(colors, 'blue')\nresult2 = check_color_available(colors, 'orange')\n\nprint(f\"Blue available: {result1}\")\nprint(f\"Orange available: {result2}\")\n",[7837],{"type":993,"tag":1022,"props":7838,"children":7839},{"__ignoreMap":8},[7840,7859,7877,7893,7901,7908,7916,7976,7983,8008,8033,8040,8081],{"type":993,"tag":1026,"props":7841,"children":7842},{"class":1028,"line":12},[7843,7848,7854],{"type":993,"tag":1026,"props":7844,"children":7845},{"style":1047},[7846],{"type":998,"value":7847},"def",{"type":993,"tag":1026,"props":7849,"children":7851},{"style":7850},"--shiki-default:#6F42C1;--shiki-app-dark-mode:#B392F0",[7852],{"type":998,"value":7853}," check_color_available",{"type":993,"tag":1026,"props":7855,"children":7856},{"style":1041},[7857],{"type":998,"value":7858},"(available_colors, favorite_color):\n",{"type":993,"tag":1026,"props":7860,"children":7861},{"class":1028,"line":27},[7862,7867,7872],{"type":993,"tag":1026,"props":7863,"children":7864},{"style":1032},[7865],{"type":998,"value":7866},"    # ",{"type":993,"tag":1026,"props":7868,"children":7869},{"style":1047},[7870],{"type":998,"value":7871},"TODO",{"type":993,"tag":1026,"props":7873,"children":7874},{"style":1032},[7875],{"type":998,"value":7876},": Check if favorite_color is in available_colors\n",{"type":993,"tag":1026,"props":7878,"children":7879},{"class":1028,"line":36},[7880,7884,7888],{"type":993,"tag":1026,"props":7881,"children":7882},{"style":1032},[7883],{"type":998,"value":7866},{"type":993,"tag":1026,"props":7885,"children":7886},{"style":1047},[7887],{"type":998,"value":7871},{"type":993,"tag":1026,"props":7889,"children":7890},{"style":1032},[7891],{"type":998,"value":7892},": Return True or False\n",{"type":993,"tag":1026,"props":7894,"children":7895},{"class":1028,"line":45},[7896],{"type":993,"tag":1026,"props":7897,"children":7898},{"style":1047},[7899],{"type":998,"value":7900},"    pass\n",{"type":993,"tag":1026,"props":7902,"children":7903},{"class":1028,"line":54},[7904],{"type":993,"tag":1026,"props":7905,"children":7906},{"emptyLinePlaceholder":13},[7907],{"type":998,"value":1102},{"type":993,"tag":1026,"props":7909,"children":7910},{"class":1028,"line":63},[7911],{"type":993,"tag":1026,"props":7912,"children":7913},{"style":1032},[7914],{"type":998,"value":7915},"# Test data\n",{"type":993,"tag":1026,"props":7917,"children":7918},{"class":1028,"line":72},[7919,7923,7927,7931,7936,7940,7945,7949,7954,7958,7963,7967,7972],{"type":993,"tag":1026,"props":7920,"children":7921},{"style":1041},[7922],{"type":998,"value":1044},{"type":993,"tag":1026,"props":7924,"children":7925},{"style":1047},[7926],{"type":998,"value":1050},{"type":993,"tag":1026,"props":7928,"children":7929},{"style":1041},[7930],{"type":998,"value":1055},{"type":993,"tag":1026,"props":7932,"children":7933},{"style":1058},[7934],{"type":998,"value":7935},"'red'",{"type":993,"tag":1026,"props":7937,"children":7938},{"style":1041},[7939],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7941,"children":7942},{"style":1058},[7943],{"type":998,"value":7944},"'blue'",{"type":993,"tag":1026,"props":7946,"children":7947},{"style":1041},[7948],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7950,"children":7951},{"style":1058},[7952],{"type":998,"value":7953},"'green'",{"type":993,"tag":1026,"props":7955,"children":7956},{"style":1041},[7957],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7959,"children":7960},{"style":1058},[7961],{"type":998,"value":7962},"'yellow'",{"type":993,"tag":1026,"props":7964,"children":7965},{"style":1041},[7966],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7968,"children":7969},{"style":1058},[7970],{"type":998,"value":7971},"'purple'",{"type":993,"tag":1026,"props":7973,"children":7974},{"style":1041},[7975],{"type":998,"value":1094},{"type":993,"tag":1026,"props":7977,"children":7978},{"class":1028,"line":81},[7979],{"type":993,"tag":1026,"props":7980,"children":7981},{"emptyLinePlaceholder":13},[7982],{"type":998,"value":1102},{"type":993,"tag":1026,"props":7984,"children":7985},{"class":1028,"line":91},[7986,7991,7995,8000,8004],{"type":993,"tag":1026,"props":7987,"children":7988},{"style":1041},[7989],{"type":998,"value":7990},"result1 ",{"type":993,"tag":1026,"props":7992,"children":7993},{"style":1047},[7994],{"type":998,"value":1050},{"type":993,"tag":1026,"props":7996,"children":7997},{"style":1041},[7998],{"type":998,"value":7999}," check_color_available(colors, ",{"type":993,"tag":1026,"props":8001,"children":8002},{"style":1058},[8003],{"type":998,"value":7944},{"type":993,"tag":1026,"props":8005,"children":8006},{"style":1041},[8007],{"type":998,"value":1159},{"type":993,"tag":1026,"props":8009,"children":8010},{"class":1028,"line":100},[8011,8016,8020,8024,8029],{"type":993,"tag":1026,"props":8012,"children":8013},{"style":1041},[8014],{"type":998,"value":8015},"result2 ",{"type":993,"tag":1026,"props":8017,"children":8018},{"style":1047},[8019],{"type":998,"value":1050},{"type":993,"tag":1026,"props":8021,"children":8022},{"style":1041},[8023],{"type":998,"value":7999},{"type":993,"tag":1026,"props":8025,"children":8026},{"style":1058},[8027],{"type":998,"value":8028},"'orange'",{"type":993,"tag":1026,"props":8030,"children":8031},{"style":1041},[8032],{"type":998,"value":1159},{"type":993,"tag":1026,"props":8034,"children":8035},{"class":1028,"line":109},[8036],{"type":993,"tag":1026,"props":8037,"children":8038},{"emptyLinePlaceholder":13},[8039],{"type":998,"value":1102},{"type":993,"tag":1026,"props":8041,"children":8042},{"class":1028,"line":118},[8043,8047,8051,8055,8060,8064,8069,8073,8077],{"type":993,"tag":1026,"props":8044,"children":8045},{"style":1116},[8046],{"type":998,"value":1119},{"type":993,"tag":1026,"props":8048,"children":8049},{"style":1041},[8050],{"type":998,"value":1124},{"type":993,"tag":1026,"props":8052,"children":8053},{"style":1047},[8054],{"type":998,"value":1129},{"type":993,"tag":1026,"props":8056,"children":8057},{"style":1058},[8058],{"type":998,"value":8059},"\"Blue available: ",{"type":993,"tag":1026,"props":8061,"children":8062},{"style":1116},[8063],{"type":998,"value":1258},{"type":993,"tag":1026,"props":8065,"children":8066},{"style":1041},[8067],{"type":998,"value":8068},"result1",{"type":993,"tag":1026,"props":8070,"children":8071},{"style":1116},[8072],{"type":998,"value":1149},{"type":993,"tag":1026,"props":8074,"children":8075},{"style":1058},[8076],{"type":998,"value":1154},{"type":993,"tag":1026,"props":8078,"children":8079},{"style":1041},[8080],{"type":998,"value":1159},{"type":993,"tag":1026,"props":8082,"children":8083},{"class":1028,"line":127},[8084,8088,8092,8096,8101,8105,8110,8114,8118],{"type":993,"tag":1026,"props":8085,"children":8086},{"style":1116},[8087],{"type":998,"value":1119},{"type":993,"tag":1026,"props":8089,"children":8090},{"style":1041},[8091],{"type":998,"value":1124},{"type":993,"tag":1026,"props":8093,"children":8094},{"style":1047},[8095],{"type":998,"value":1129},{"type":993,"tag":1026,"props":8097,"children":8098},{"style":1058},[8099],{"type":998,"value":8100},"\"Orange available: ",{"type":993,"tag":1026,"props":8102,"children":8103},{"style":1116},[8104],{"type":998,"value":1258},{"type":993,"tag":1026,"props":8106,"children":8107},{"style":1041},[8108],{"type":998,"value":8109},"result2",{"type":993,"tag":1026,"props":8111,"children":8112},{"style":1116},[8113],{"type":998,"value":1149},{"type":993,"tag":1026,"props":8115,"children":8116},{"style":1058},[8117],{"type":998,"value":1154},{"type":993,"tag":1026,"props":8119,"children":8120},{"style":1041},[8121],{"type":998,"value":1159},{"type":993,"tag":1442,"props":8123,"children":8125},{"id":8124},"solution-and-explanation",[8126],{"type":998,"value":8127},"Solution and Explanation 💡",{"type":993,"tag":8129,"props":8130,"children":8131},"details",{},[8132,8140,8402,8410],{"type":993,"tag":8133,"props":8134,"children":8137},"summary",{"className":8135},[8136],"cursor-pointer",[8138],{"type":998,"value":8139},"Click to see the complete solution",{"type":993,"tag":1012,"props":8141,"children":8142},{},[8143],{"type":993,"tag":1016,"props":8144,"children":8146},{"className":1018,"code":8145,"language":6,"meta":8,"style":8},"def check_color_available(available_colors, favorite_color):\n    # Check if favorite_color is in available_colors\n    return favorite_color in available_colors\n\n# Test data\ncolors = {'red', 'blue', 'green', 'yellow', 'purple'}\n\nresult1 = check_color_available(colors, 'blue')\nresult2 = check_color_available(colors, 'orange')\n\nprint(f\"Blue available: {result1}\")\nprint(f\"Orange available: {result2}\")\n",[8147],{"type":993,"tag":1022,"props":8148,"children":8149},{"__ignoreMap":8},[8150,8165,8173,8195,8202,8209,8264,8271,8294,8317,8324,8363],{"type":993,"tag":1026,"props":8151,"children":8152},{"class":1028,"line":12},[8153,8157,8161],{"type":993,"tag":1026,"props":8154,"children":8155},{"style":1047},[8156],{"type":998,"value":7847},{"type":993,"tag":1026,"props":8158,"children":8159},{"style":7850},[8160],{"type":998,"value":7853},{"type":993,"tag":1026,"props":8162,"children":8163},{"style":1041},[8164],{"type":998,"value":7858},{"type":993,"tag":1026,"props":8166,"children":8167},{"class":1028,"line":27},[8168],{"type":993,"tag":1026,"props":8169,"children":8170},{"style":1032},[8171],{"type":998,"value":8172},"    # Check if favorite_color is in available_colors\n",{"type":993,"tag":1026,"props":8174,"children":8175},{"class":1028,"line":36},[8176,8181,8186,8190],{"type":993,"tag":1026,"props":8177,"children":8178},{"style":1047},[8179],{"type":998,"value":8180},"    return",{"type":993,"tag":1026,"props":8182,"children":8183},{"style":1041},[8184],{"type":998,"value":8185}," favorite_color ",{"type":993,"tag":1026,"props":8187,"children":8188},{"style":1047},[8189],{"type":998,"value":2122},{"type":993,"tag":1026,"props":8191,"children":8192},{"style":1041},[8193],{"type":998,"value":8194}," available_colors\n",{"type":993,"tag":1026,"props":8196,"children":8197},{"class":1028,"line":45},[8198],{"type":993,"tag":1026,"props":8199,"children":8200},{"emptyLinePlaceholder":13},[8201],{"type":998,"value":1102},{"type":993,"tag":1026,"props":8203,"children":8204},{"class":1028,"line":54},[8205],{"type":993,"tag":1026,"props":8206,"children":8207},{"style":1032},[8208],{"type":998,"value":7915},{"type":993,"tag":1026,"props":8210,"children":8211},{"class":1028,"line":63},[8212,8216,8220,8224,8228,8232,8236,8240,8244,8248,8252,8256,8260],{"type":993,"tag":1026,"props":8213,"children":8214},{"style":1041},[8215],{"type":998,"value":1044},{"type":993,"tag":1026,"props":8217,"children":8218},{"style":1047},[8219],{"type":998,"value":1050},{"type":993,"tag":1026,"props":8221,"children":8222},{"style":1041},[8223],{"type":998,"value":1055},{"type":993,"tag":1026,"props":8225,"children":8226},{"style":1058},[8227],{"type":998,"value":7935},{"type":993,"tag":1026,"props":8229,"children":8230},{"style":1041},[8231],{"type":998,"value":1066},{"type":993,"tag":1026,"props":8233,"children":8234},{"style":1058},[8235],{"type":998,"value":7944},{"type":993,"tag":1026,"props":8237,"children":8238},{"style":1041},[8239],{"type":998,"value":1066},{"type":993,"tag":1026,"props":8241,"children":8242},{"style":1058},[8243],{"type":998,"value":7953},{"type":993,"tag":1026,"props":8245,"children":8246},{"style":1041},[8247],{"type":998,"value":1066},{"type":993,"tag":1026,"props":8249,"children":8250},{"style":1058},[8251],{"type":998,"value":7962},{"type":993,"tag":1026,"props":8253,"children":8254},{"style":1041},[8255],{"type":998,"value":1066},{"type":993,"tag":1026,"props":8257,"children":8258},{"style":1058},[8259],{"type":998,"value":7971},{"type":993,"tag":1026,"props":8261,"children":8262},{"style":1041},[8263],{"type":998,"value":1094},{"type":993,"tag":1026,"props":8265,"children":8266},{"class":1028,"line":72},[8267],{"type":993,"tag":1026,"props":8268,"children":8269},{"emptyLinePlaceholder":13},[8270],{"type":998,"value":1102},{"type":993,"tag":1026,"props":8272,"children":8273},{"class":1028,"line":81},[8274,8278,8282,8286,8290],{"type":993,"tag":1026,"props":8275,"children":8276},{"style":1041},[8277],{"type":998,"value":7990},{"type":993,"tag":1026,"props":8279,"children":8280},{"style":1047},[8281],{"type":998,"value":1050},{"type":993,"tag":1026,"props":8283,"children":8284},{"style":1041},[8285],{"type":998,"value":7999},{"type":993,"tag":1026,"props":8287,"children":8288},{"style":1058},[8289],{"type":998,"value":7944},{"type":993,"tag":1026,"props":8291,"children":8292},{"style":1041},[8293],{"type":998,"value":1159},{"type":993,"tag":1026,"props":8295,"children":8296},{"class":1028,"line":91},[8297,8301,8305,8309,8313],{"type":993,"tag":1026,"props":8298,"children":8299},{"style":1041},[8300],{"type":998,"value":8015},{"type":993,"tag":1026,"props":8302,"children":8303},{"style":1047},[8304],{"type":998,"value":1050},{"type":993,"tag":1026,"props":8306,"children":8307},{"style":1041},[8308],{"type":998,"value":7999},{"type":993,"tag":1026,"props":8310,"children":8311},{"style":1058},[8312],{"type":998,"value":8028},{"type":993,"tag":1026,"props":8314,"children":8315},{"style":1041},[8316],{"type":998,"value":1159},{"type":993,"tag":1026,"props":8318,"children":8319},{"class":1028,"line":100},[8320],{"type":993,"tag":1026,"props":8321,"children":8322},{"emptyLinePlaceholder":13},[8323],{"type":998,"value":1102},{"type":993,"tag":1026,"props":8325,"children":8326},{"class":1028,"line":109},[8327,8331,8335,8339,8343,8347,8351,8355,8359],{"type":993,"tag":1026,"props":8328,"children":8329},{"style":1116},[8330],{"type":998,"value":1119},{"type":993,"tag":1026,"props":8332,"children":8333},{"style":1041},[8334],{"type":998,"value":1124},{"type":993,"tag":1026,"props":8336,"children":8337},{"style":1047},[8338],{"type":998,"value":1129},{"type":993,"tag":1026,"props":8340,"children":8341},{"style":1058},[8342],{"type":998,"value":8059},{"type":993,"tag":1026,"props":8344,"children":8345},{"style":1116},[8346],{"type":998,"value":1258},{"type":993,"tag":1026,"props":8348,"children":8349},{"style":1041},[8350],{"type":998,"value":8068},{"type":993,"tag":1026,"props":8352,"children":8353},{"style":1116},[8354],{"type":998,"value":1149},{"type":993,"tag":1026,"props":8356,"children":8357},{"style":1058},[8358],{"type":998,"value":1154},{"type":993,"tag":1026,"props":8360,"children":8361},{"style":1041},[8362],{"type":998,"value":1159},{"type":993,"tag":1026,"props":8364,"children":8365},{"class":1028,"line":118},[8366,8370,8374,8378,8382,8386,8390,8394,8398],{"type":993,"tag":1026,"props":8367,"children":8368},{"style":1116},[8369],{"type":998,"value":1119},{"type":993,"tag":1026,"props":8371,"children":8372},{"style":1041},[8373],{"type":998,"value":1124},{"type":993,"tag":1026,"props":8375,"children":8376},{"style":1047},[8377],{"type":998,"value":1129},{"type":993,"tag":1026,"props":8379,"children":8380},{"style":1058},[8381],{"type":998,"value":8100},{"type":993,"tag":1026,"props":8383,"children":8384},{"style":1116},[8385],{"type":998,"value":1258},{"type":993,"tag":1026,"props":8387,"children":8388},{"style":1041},[8389],{"type":998,"value":8109},{"type":993,"tag":1026,"props":8391,"children":8392},{"style":1116},[8393],{"type":998,"value":1149},{"type":993,"tag":1026,"props":8395,"children":8396},{"style":1058},[8397],{"type":998,"value":1154},{"type":993,"tag":1026,"props":8399,"children":8400},{"style":1041},[8401],{"type":998,"value":1159},{"type":993,"tag":1001,"props":8403,"children":8404},{},[8405],{"type":993,"tag":1340,"props":8406,"children":8407},{},[8408],{"type":998,"value":8409},"Key Learning Points:",{"type":993,"tag":1346,"props":8411,"children":8412},{},[8413,8432,8443,8454],{"type":993,"tag":1350,"props":8414,"children":8415},{},[8416,8418,8423,8425,8430],{"type":998,"value":8417},"📌 ",{"type":993,"tag":1340,"props":8419,"children":8420},{},[8421],{"type":998,"value":8422},"Membership test",{"type":998,"value":8424},": Use ",{"type":993,"tag":1022,"props":8426,"children":8428},{"className":8427},[],[8429],{"type":998,"value":2122},{"type":998,"value":8431}," operator to check if item exists in set",{"type":993,"tag":1350,"props":8433,"children":8434},{},[8435,8436,8441],{"type":998,"value":8417},{"type":993,"tag":1340,"props":8437,"children":8438},{},[8439],{"type":998,"value":8440},"Boolean return",{"type":998,"value":8442},": Return True/False directly from the in operation",{"type":993,"tag":1350,"props":8444,"children":8445},{},[8446,8447,8452],{"type":998,"value":8417},{"type":993,"tag":1340,"props":8448,"children":8449},{},[8450],{"type":998,"value":8451},"Fast lookup",{"type":998,"value":8453},": Set membership testing is very fast (O(1) average)",{"type":993,"tag":1350,"props":8455,"children":8456},{},[8457,8458,8463],{"type":998,"value":8417},{"type":993,"tag":1340,"props":8459,"children":8460},{},[8461],{"type":998,"value":8462},"Practical use",{"type":998,"value":8464},": Great for checking if items are in allowed/available lists",{"type":993,"tag":1318,"props":8466,"children":8468},{"id":8467},"test-your-knowledge",[8469],{"type":998,"value":8470},"Test Your Knowledge",{"type":993,"tag":1001,"props":8472,"children":8473},{},[8474],{"type":998,"value":8475},"Test what you've learned about reading set data in Python:",{"type":993,"tag":8477,"props":8478,"children":8482},"redirect-button",{"icon":8479,"label":8480,"url":8481},"pi pi-send","Take Quiz","/tutorial-quiz/python/reading-set-data",[],{"type":993,"tag":1318,"props":8484,"children":8486},{"id":8485},"whats-next",[8487],{"type":998,"value":8488},"What's Next?",{"type":993,"tag":1001,"props":8490,"children":8491},{},[8492],{"type":998,"value":8493},"Now that you can read and examine set data, you're ready to learn how to modify sets by adding new elements. Understanding how to add items to sets is essential for building dynamic collections.",{"type":993,"tag":1001,"props":8495,"children":8496},{},[8497,8499,8503],{"type":998,"value":8498},"Ready to continue? Check out our lesson on ",{"type":993,"tag":7813,"props":8500,"children":8501},{"href":471},[8502],{"type":998,"value":472},{"type":998,"value":8504},".",{"type":993,"tag":8506,"props":8507,"children":8508},"style",{},[8509],{"type":998,"value":8510},"html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .app-dark-mode .shiki span {color: var(--shiki-app-dark-mode);background: var(--shiki-app-dark-mode-bg);font-style: var(--shiki-app-dark-mode-font-style);font-weight: var(--shiki-app-dark-mode-font-weight);text-decoration: var(--shiki-app-dark-mode-text-decoration);}html.app-dark-mode .shiki span {color: var(--shiki-app-dark-mode);background: var(--shiki-app-dark-mode-bg);font-style: var(--shiki-app-dark-mode-font-style);font-weight: var(--shiki-app-dark-mode-font-weight);text-decoration: var(--shiki-app-dark-mode-text-decoration);}",{"title":8,"searchDepth":36,"depth":36,"links":8512},[8513,8518,8523,8527,8532,8536,8539,8540],{"id":1320,"depth":27,"text":1323,"children":8514},[8515,8516,8517],{"id":1444,"depth":36,"text":1447},{"id":1795,"depth":36,"text":1798},{"id":2233,"depth":36,"text":2236},{"id":2535,"depth":27,"text":2538,"children":8519},[8520,8521,8522],{"id":2642,"depth":36,"text":2645},{"id":3031,"depth":36,"text":3034},{"id":3375,"depth":36,"text":3378},{"id":3877,"depth":27,"text":3880,"children":8524},[8525,8526],{"id":3989,"depth":36,"text":3992},{"id":4391,"depth":36,"text":4394},{"id":4787,"depth":27,"text":4790,"children":8528},[8529,8530,8531],{"id":4912,"depth":36,"text":4915},{"id":5379,"depth":36,"text":5382},{"id":5847,"depth":36,"text":5850},{"id":6396,"depth":27,"text":6399,"children":8533},[8534,8535],{"id":6490,"depth":36,"text":6493},{"id":6939,"depth":36,"text":6942},{"id":7484,"depth":27,"text":7487,"children":8537},[8538],{"id":8124,"depth":36,"text":8127},{"id":8467,"depth":27,"text":8470},{"id":8485,"depth":27,"text":8488},1782373741019]