[{"data":1,"prerenderedAt":5561},["ShallowReactive",2],{"tutorials-python":3,"category-items-python":987,"content-/python/combining-sets":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",[497],{"_path":498,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":499,"description":500,"slug":501,"parentId":443,"order":502,"body":989,"_type":15,"_id":503,"_source":17,"_file":504,"_stem":505,"_extension":20},{"type":990,"children":991,"toc":5533},"root",[992,1000,1006,1180,1187,1192,1199,1212,1446,1452,1457,1727,1733,1738,1826,1832,1844,2103,2109,2114,2382,2388,2393,2477,2483,2495,2724,2729,2734,2967,2973,2978,3187,3193,3396,3402,3407,3531,3537,3542,3698,3704,3709,3864,3870,3875,4030,4036,4042,4047,4416,4422,4427,4714,4719,4732,5075,5081,5481,5487,5492,5499,5505,5516,5527],{"type":993,"tag":994,"props":995,"children":996},"element","h1",{"id":501},[997],{"type":998,"value":999},"text","🔗 Combining Sets",{"type":993,"tag":1001,"props":1002,"children":1003},"p",{},[1004],{"type":998,"value":1005},"Python sets provide powerful methods to combine multiple sets in different ways. These operations help you merge, compare, and analyze relationships between different collections of data.",{"type":993,"tag":1007,"props":1008,"children":1009},"code-try",{},[1010],{"type":993,"tag":1011,"props":1012,"children":1015},"pre",{"className":1013,"code":1014,"language":6,"meta":8,"style":8},"language-python shiki shiki-themes github-light github-dark","# Basic set combination example\nset1 = {'apple', 'banana', 'orange'}\nset2 = {'banana', 'grape', 'kiwi'}\n\n# Union - combine all unique elements\ncombined = set1.union(set2)\nprint(\"Combined sets:\", combined)\n",[1016],{"type":993,"tag":1017,"props":1018,"children":1019},"code",{"__ignoreMap":8},[1020,1031,1081,1123,1131,1139,1156],{"type":993,"tag":1021,"props":1022,"children":1024},"span",{"class":1023,"line":12},"line",[1025],{"type":993,"tag":1021,"props":1026,"children":1028},{"style":1027},"--shiki-default:#6A737D;--shiki-app-dark-mode:#6A737D",[1029],{"type":998,"value":1030},"# Basic set combination example\n",{"type":993,"tag":1021,"props":1032,"children":1033},{"class":1023,"line":27},[1034,1040,1046,1051,1057,1062,1067,1071,1076],{"type":993,"tag":1021,"props":1035,"children":1037},{"style":1036},"--shiki-default:#24292E;--shiki-app-dark-mode:#E1E4E8",[1038],{"type":998,"value":1039},"set1 ",{"type":993,"tag":1021,"props":1041,"children":1043},{"style":1042},"--shiki-default:#D73A49;--shiki-app-dark-mode:#F97583",[1044],{"type":998,"value":1045},"=",{"type":993,"tag":1021,"props":1047,"children":1048},{"style":1036},[1049],{"type":998,"value":1050}," {",{"type":993,"tag":1021,"props":1052,"children":1054},{"style":1053},"--shiki-default:#032F62;--shiki-app-dark-mode:#9ECBFF",[1055],{"type":998,"value":1056},"'apple'",{"type":993,"tag":1021,"props":1058,"children":1059},{"style":1036},[1060],{"type":998,"value":1061},", ",{"type":993,"tag":1021,"props":1063,"children":1064},{"style":1053},[1065],{"type":998,"value":1066},"'banana'",{"type":993,"tag":1021,"props":1068,"children":1069},{"style":1036},[1070],{"type":998,"value":1061},{"type":993,"tag":1021,"props":1072,"children":1073},{"style":1053},[1074],{"type":998,"value":1075},"'orange'",{"type":993,"tag":1021,"props":1077,"children":1078},{"style":1036},[1079],{"type":998,"value":1080},"}\n",{"type":993,"tag":1021,"props":1082,"children":1083},{"class":1023,"line":36},[1084,1089,1093,1097,1101,1105,1110,1114,1119],{"type":993,"tag":1021,"props":1085,"children":1086},{"style":1036},[1087],{"type":998,"value":1088},"set2 ",{"type":993,"tag":1021,"props":1090,"children":1091},{"style":1042},[1092],{"type":998,"value":1045},{"type":993,"tag":1021,"props":1094,"children":1095},{"style":1036},[1096],{"type":998,"value":1050},{"type":993,"tag":1021,"props":1098,"children":1099},{"style":1053},[1100],{"type":998,"value":1066},{"type":993,"tag":1021,"props":1102,"children":1103},{"style":1036},[1104],{"type":998,"value":1061},{"type":993,"tag":1021,"props":1106,"children":1107},{"style":1053},[1108],{"type":998,"value":1109},"'grape'",{"type":993,"tag":1021,"props":1111,"children":1112},{"style":1036},[1113],{"type":998,"value":1061},{"type":993,"tag":1021,"props":1115,"children":1116},{"style":1053},[1117],{"type":998,"value":1118},"'kiwi'",{"type":993,"tag":1021,"props":1120,"children":1121},{"style":1036},[1122],{"type":998,"value":1080},{"type":993,"tag":1021,"props":1124,"children":1125},{"class":1023,"line":45},[1126],{"type":993,"tag":1021,"props":1127,"children":1128},{"emptyLinePlaceholder":13},[1129],{"type":998,"value":1130},"\n",{"type":993,"tag":1021,"props":1132,"children":1133},{"class":1023,"line":54},[1134],{"type":993,"tag":1021,"props":1135,"children":1136},{"style":1027},[1137],{"type":998,"value":1138},"# Union - combine all unique elements\n",{"type":993,"tag":1021,"props":1140,"children":1141},{"class":1023,"line":63},[1142,1147,1151],{"type":993,"tag":1021,"props":1143,"children":1144},{"style":1036},[1145],{"type":998,"value":1146},"combined ",{"type":993,"tag":1021,"props":1148,"children":1149},{"style":1042},[1150],{"type":998,"value":1045},{"type":993,"tag":1021,"props":1152,"children":1153},{"style":1036},[1154],{"type":998,"value":1155}," set1.union(set2)\n",{"type":993,"tag":1021,"props":1157,"children":1158},{"class":1023,"line":72},[1159,1165,1170,1175],{"type":993,"tag":1021,"props":1160,"children":1162},{"style":1161},"--shiki-default:#005CC5;--shiki-app-dark-mode:#79B8FF",[1163],{"type":998,"value":1164},"print",{"type":993,"tag":1021,"props":1166,"children":1167},{"style":1036},[1168],{"type":998,"value":1169},"(",{"type":993,"tag":1021,"props":1171,"children":1172},{"style":1053},[1173],{"type":998,"value":1174},"\"Combined sets:\"",{"type":993,"tag":1021,"props":1176,"children":1177},{"style":1036},[1178],{"type":998,"value":1179},", combined)\n",{"type":993,"tag":1181,"props":1182,"children":1184},"h2",{"id":1183},"union-operations",[1185],{"type":998,"value":1186},"🎯 Union Operations",{"type":993,"tag":1001,"props":1188,"children":1189},{},[1190],{"type":998,"value":1191},"Union operations merge all elements from multiple sets while automatically eliminating duplicates. This creates comprehensive collections from separate data sources.",{"type":993,"tag":1193,"props":1194,"children":1196},"h3",{"id":1195},"using-the-union-method",[1197],{"type":998,"value":1198},"Using the union() Method",{"type":993,"tag":1001,"props":1200,"children":1201},{},[1202,1204,1210],{"type":998,"value":1203},"The ",{"type":993,"tag":1017,"props":1205,"children":1207},{"className":1206},[],[1208],{"type":998,"value":1209},"union()",{"type":998,"value":1211}," method explicitly combines sets and supports multiple arguments for complex merging operations.",{"type":993,"tag":1007,"props":1213,"children":1214},{},[1215],{"type":993,"tag":1011,"props":1216,"children":1218},{"className":1013,"code":1217,"language":6,"meta":8,"style":8},"colors1 = {'red', 'blue', 'green'}\ncolors2 = {'blue', 'yellow', 'purple'}\n\n# Union using method\nall_colors = colors1.union(colors2)\nprint(\"All colors:\", all_colors)\n\n# Union with multiple sets\ncolors3 = {'orange', 'pink'}\nall_colors_multi = colors1.union(colors2, colors3)\nprint(\"Multiple union:\", all_colors_multi)\n",[1219],{"type":993,"tag":1017,"props":1220,"children":1221},{"__ignoreMap":8},[1222,1265,1307,1314,1322,1339,1360,1367,1375,1408,1425],{"type":993,"tag":1021,"props":1223,"children":1224},{"class":1023,"line":12},[1225,1230,1234,1238,1243,1247,1252,1256,1261],{"type":993,"tag":1021,"props":1226,"children":1227},{"style":1036},[1228],{"type":998,"value":1229},"colors1 ",{"type":993,"tag":1021,"props":1231,"children":1232},{"style":1042},[1233],{"type":998,"value":1045},{"type":993,"tag":1021,"props":1235,"children":1236},{"style":1036},[1237],{"type":998,"value":1050},{"type":993,"tag":1021,"props":1239,"children":1240},{"style":1053},[1241],{"type":998,"value":1242},"'red'",{"type":993,"tag":1021,"props":1244,"children":1245},{"style":1036},[1246],{"type":998,"value":1061},{"type":993,"tag":1021,"props":1248,"children":1249},{"style":1053},[1250],{"type":998,"value":1251},"'blue'",{"type":993,"tag":1021,"props":1253,"children":1254},{"style":1036},[1255],{"type":998,"value":1061},{"type":993,"tag":1021,"props":1257,"children":1258},{"style":1053},[1259],{"type":998,"value":1260},"'green'",{"type":993,"tag":1021,"props":1262,"children":1263},{"style":1036},[1264],{"type":998,"value":1080},{"type":993,"tag":1021,"props":1266,"children":1267},{"class":1023,"line":27},[1268,1273,1277,1281,1285,1289,1294,1298,1303],{"type":993,"tag":1021,"props":1269,"children":1270},{"style":1036},[1271],{"type":998,"value":1272},"colors2 ",{"type":993,"tag":1021,"props":1274,"children":1275},{"style":1042},[1276],{"type":998,"value":1045},{"type":993,"tag":1021,"props":1278,"children":1279},{"style":1036},[1280],{"type":998,"value":1050},{"type":993,"tag":1021,"props":1282,"children":1283},{"style":1053},[1284],{"type":998,"value":1251},{"type":993,"tag":1021,"props":1286,"children":1287},{"style":1036},[1288],{"type":998,"value":1061},{"type":993,"tag":1021,"props":1290,"children":1291},{"style":1053},[1292],{"type":998,"value":1293},"'yellow'",{"type":993,"tag":1021,"props":1295,"children":1296},{"style":1036},[1297],{"type":998,"value":1061},{"type":993,"tag":1021,"props":1299,"children":1300},{"style":1053},[1301],{"type":998,"value":1302},"'purple'",{"type":993,"tag":1021,"props":1304,"children":1305},{"style":1036},[1306],{"type":998,"value":1080},{"type":993,"tag":1021,"props":1308,"children":1309},{"class":1023,"line":36},[1310],{"type":993,"tag":1021,"props":1311,"children":1312},{"emptyLinePlaceholder":13},[1313],{"type":998,"value":1130},{"type":993,"tag":1021,"props":1315,"children":1316},{"class":1023,"line":45},[1317],{"type":993,"tag":1021,"props":1318,"children":1319},{"style":1027},[1320],{"type":998,"value":1321},"# Union using method\n",{"type":993,"tag":1021,"props":1323,"children":1324},{"class":1023,"line":54},[1325,1330,1334],{"type":993,"tag":1021,"props":1326,"children":1327},{"style":1036},[1328],{"type":998,"value":1329},"all_colors ",{"type":993,"tag":1021,"props":1331,"children":1332},{"style":1042},[1333],{"type":998,"value":1045},{"type":993,"tag":1021,"props":1335,"children":1336},{"style":1036},[1337],{"type":998,"value":1338}," colors1.union(colors2)\n",{"type":993,"tag":1021,"props":1340,"children":1341},{"class":1023,"line":63},[1342,1346,1350,1355],{"type":993,"tag":1021,"props":1343,"children":1344},{"style":1161},[1345],{"type":998,"value":1164},{"type":993,"tag":1021,"props":1347,"children":1348},{"style":1036},[1349],{"type":998,"value":1169},{"type":993,"tag":1021,"props":1351,"children":1352},{"style":1053},[1353],{"type":998,"value":1354},"\"All colors:\"",{"type":993,"tag":1021,"props":1356,"children":1357},{"style":1036},[1358],{"type":998,"value":1359},", all_colors)\n",{"type":993,"tag":1021,"props":1361,"children":1362},{"class":1023,"line":72},[1363],{"type":993,"tag":1021,"props":1364,"children":1365},{"emptyLinePlaceholder":13},[1366],{"type":998,"value":1130},{"type":993,"tag":1021,"props":1368,"children":1369},{"class":1023,"line":81},[1370],{"type":993,"tag":1021,"props":1371,"children":1372},{"style":1027},[1373],{"type":998,"value":1374},"# Union with multiple sets\n",{"type":993,"tag":1021,"props":1376,"children":1377},{"class":1023,"line":91},[1378,1383,1387,1391,1395,1399,1404],{"type":993,"tag":1021,"props":1379,"children":1380},{"style":1036},[1381],{"type":998,"value":1382},"colors3 ",{"type":993,"tag":1021,"props":1384,"children":1385},{"style":1042},[1386],{"type":998,"value":1045},{"type":993,"tag":1021,"props":1388,"children":1389},{"style":1036},[1390],{"type":998,"value":1050},{"type":993,"tag":1021,"props":1392,"children":1393},{"style":1053},[1394],{"type":998,"value":1075},{"type":993,"tag":1021,"props":1396,"children":1397},{"style":1036},[1398],{"type":998,"value":1061},{"type":993,"tag":1021,"props":1400,"children":1401},{"style":1053},[1402],{"type":998,"value":1403},"'pink'",{"type":993,"tag":1021,"props":1405,"children":1406},{"style":1036},[1407],{"type":998,"value":1080},{"type":993,"tag":1021,"props":1409,"children":1410},{"class":1023,"line":100},[1411,1416,1420],{"type":993,"tag":1021,"props":1412,"children":1413},{"style":1036},[1414],{"type":998,"value":1415},"all_colors_multi ",{"type":993,"tag":1021,"props":1417,"children":1418},{"style":1042},[1419],{"type":998,"value":1045},{"type":993,"tag":1021,"props":1421,"children":1422},{"style":1036},[1423],{"type":998,"value":1424}," colors1.union(colors2, colors3)\n",{"type":993,"tag":1021,"props":1426,"children":1427},{"class":1023,"line":109},[1428,1432,1436,1441],{"type":993,"tag":1021,"props":1429,"children":1430},{"style":1161},[1431],{"type":998,"value":1164},{"type":993,"tag":1021,"props":1433,"children":1434},{"style":1036},[1435],{"type":998,"value":1169},{"type":993,"tag":1021,"props":1437,"children":1438},{"style":1053},[1439],{"type":998,"value":1440},"\"Multiple union:\"",{"type":993,"tag":1021,"props":1442,"children":1443},{"style":1036},[1444],{"type":998,"value":1445},", all_colors_multi)\n",{"type":993,"tag":1193,"props":1447,"children":1449},{"id":1448},"using-the-operator",[1450],{"type":998,"value":1451},"Using the | Operator",{"type":993,"tag":1001,"props":1453,"children":1454},{},[1455],{"type":998,"value":1456},"The pipe operator provides concise syntax for union operations and supports operator chaining for multiple sets.",{"type":993,"tag":1007,"props":1458,"children":1459},{},[1460],{"type":993,"tag":1011,"props":1461,"children":1463},{"className":1013,"code":1462,"language":6,"meta":8,"style":8},"set_a = {1, 2, 3}\nset_b = {3, 4, 5}\n\n# Union using | operator\nresult = set_a | set_b\nprint(\"Union with |:\", result)\n\n# Chain multiple unions\nset_c = {5, 6, 7}\nchained = set_a | set_b | set_c\nprint(\"Chained union:\", chained)\n",[1464],{"type":993,"tag":1017,"props":1465,"children":1466},{"__ignoreMap":8},[1467,1510,1552,1559,1567,1594,1615,1622,1630,1672,1706],{"type":993,"tag":1021,"props":1468,"children":1469},{"class":1023,"line":12},[1470,1475,1479,1483,1488,1492,1497,1501,1506],{"type":993,"tag":1021,"props":1471,"children":1472},{"style":1036},[1473],{"type":998,"value":1474},"set_a ",{"type":993,"tag":1021,"props":1476,"children":1477},{"style":1042},[1478],{"type":998,"value":1045},{"type":993,"tag":1021,"props":1480,"children":1481},{"style":1036},[1482],{"type":998,"value":1050},{"type":993,"tag":1021,"props":1484,"children":1485},{"style":1161},[1486],{"type":998,"value":1487},"1",{"type":993,"tag":1021,"props":1489,"children":1490},{"style":1036},[1491],{"type":998,"value":1061},{"type":993,"tag":1021,"props":1493,"children":1494},{"style":1161},[1495],{"type":998,"value":1496},"2",{"type":993,"tag":1021,"props":1498,"children":1499},{"style":1036},[1500],{"type":998,"value":1061},{"type":993,"tag":1021,"props":1502,"children":1503},{"style":1161},[1504],{"type":998,"value":1505},"3",{"type":993,"tag":1021,"props":1507,"children":1508},{"style":1036},[1509],{"type":998,"value":1080},{"type":993,"tag":1021,"props":1511,"children":1512},{"class":1023,"line":27},[1513,1518,1522,1526,1530,1534,1539,1543,1548],{"type":993,"tag":1021,"props":1514,"children":1515},{"style":1036},[1516],{"type":998,"value":1517},"set_b ",{"type":993,"tag":1021,"props":1519,"children":1520},{"style":1042},[1521],{"type":998,"value":1045},{"type":993,"tag":1021,"props":1523,"children":1524},{"style":1036},[1525],{"type":998,"value":1050},{"type":993,"tag":1021,"props":1527,"children":1528},{"style":1161},[1529],{"type":998,"value":1505},{"type":993,"tag":1021,"props":1531,"children":1532},{"style":1036},[1533],{"type":998,"value":1061},{"type":993,"tag":1021,"props":1535,"children":1536},{"style":1161},[1537],{"type":998,"value":1538},"4",{"type":993,"tag":1021,"props":1540,"children":1541},{"style":1036},[1542],{"type":998,"value":1061},{"type":993,"tag":1021,"props":1544,"children":1545},{"style":1161},[1546],{"type":998,"value":1547},"5",{"type":993,"tag":1021,"props":1549,"children":1550},{"style":1036},[1551],{"type":998,"value":1080},{"type":993,"tag":1021,"props":1553,"children":1554},{"class":1023,"line":36},[1555],{"type":993,"tag":1021,"props":1556,"children":1557},{"emptyLinePlaceholder":13},[1558],{"type":998,"value":1130},{"type":993,"tag":1021,"props":1560,"children":1561},{"class":1023,"line":45},[1562],{"type":993,"tag":1021,"props":1563,"children":1564},{"style":1027},[1565],{"type":998,"value":1566},"# Union using | operator\n",{"type":993,"tag":1021,"props":1568,"children":1569},{"class":1023,"line":54},[1570,1575,1579,1584,1589],{"type":993,"tag":1021,"props":1571,"children":1572},{"style":1036},[1573],{"type":998,"value":1574},"result ",{"type":993,"tag":1021,"props":1576,"children":1577},{"style":1042},[1578],{"type":998,"value":1045},{"type":993,"tag":1021,"props":1580,"children":1581},{"style":1036},[1582],{"type":998,"value":1583}," set_a ",{"type":993,"tag":1021,"props":1585,"children":1586},{"style":1042},[1587],{"type":998,"value":1588},"|",{"type":993,"tag":1021,"props":1590,"children":1591},{"style":1036},[1592],{"type":998,"value":1593}," set_b\n",{"type":993,"tag":1021,"props":1595,"children":1596},{"class":1023,"line":63},[1597,1601,1605,1610],{"type":993,"tag":1021,"props":1598,"children":1599},{"style":1161},[1600],{"type":998,"value":1164},{"type":993,"tag":1021,"props":1602,"children":1603},{"style":1036},[1604],{"type":998,"value":1169},{"type":993,"tag":1021,"props":1606,"children":1607},{"style":1053},[1608],{"type":998,"value":1609},"\"Union with |:\"",{"type":993,"tag":1021,"props":1611,"children":1612},{"style":1036},[1613],{"type":998,"value":1614},", result)\n",{"type":993,"tag":1021,"props":1616,"children":1617},{"class":1023,"line":72},[1618],{"type":993,"tag":1021,"props":1619,"children":1620},{"emptyLinePlaceholder":13},[1621],{"type":998,"value":1130},{"type":993,"tag":1021,"props":1623,"children":1624},{"class":1023,"line":81},[1625],{"type":993,"tag":1021,"props":1626,"children":1627},{"style":1027},[1628],{"type":998,"value":1629},"# Chain multiple unions\n",{"type":993,"tag":1021,"props":1631,"children":1632},{"class":1023,"line":91},[1633,1638,1642,1646,1650,1654,1659,1663,1668],{"type":993,"tag":1021,"props":1634,"children":1635},{"style":1036},[1636],{"type":998,"value":1637},"set_c ",{"type":993,"tag":1021,"props":1639,"children":1640},{"style":1042},[1641],{"type":998,"value":1045},{"type":993,"tag":1021,"props":1643,"children":1644},{"style":1036},[1645],{"type":998,"value":1050},{"type":993,"tag":1021,"props":1647,"children":1648},{"style":1161},[1649],{"type":998,"value":1547},{"type":993,"tag":1021,"props":1651,"children":1652},{"style":1036},[1653],{"type":998,"value":1061},{"type":993,"tag":1021,"props":1655,"children":1656},{"style":1161},[1657],{"type":998,"value":1658},"6",{"type":993,"tag":1021,"props":1660,"children":1661},{"style":1036},[1662],{"type":998,"value":1061},{"type":993,"tag":1021,"props":1664,"children":1665},{"style":1161},[1666],{"type":998,"value":1667},"7",{"type":993,"tag":1021,"props":1669,"children":1670},{"style":1036},[1671],{"type":998,"value":1080},{"type":993,"tag":1021,"props":1673,"children":1674},{"class":1023,"line":100},[1675,1680,1684,1688,1692,1697,1701],{"type":993,"tag":1021,"props":1676,"children":1677},{"style":1036},[1678],{"type":998,"value":1679},"chained ",{"type":993,"tag":1021,"props":1681,"children":1682},{"style":1042},[1683],{"type":998,"value":1045},{"type":993,"tag":1021,"props":1685,"children":1686},{"style":1036},[1687],{"type":998,"value":1583},{"type":993,"tag":1021,"props":1689,"children":1690},{"style":1042},[1691],{"type":998,"value":1588},{"type":993,"tag":1021,"props":1693,"children":1694},{"style":1036},[1695],{"type":998,"value":1696}," set_b ",{"type":993,"tag":1021,"props":1698,"children":1699},{"style":1042},[1700],{"type":998,"value":1588},{"type":993,"tag":1021,"props":1702,"children":1703},{"style":1036},[1704],{"type":998,"value":1705}," set_c\n",{"type":993,"tag":1021,"props":1707,"children":1708},{"class":1023,"line":109},[1709,1713,1717,1722],{"type":993,"tag":1021,"props":1710,"children":1711},{"style":1161},[1712],{"type":998,"value":1164},{"type":993,"tag":1021,"props":1714,"children":1715},{"style":1036},[1716],{"type":998,"value":1169},{"type":993,"tag":1021,"props":1718,"children":1719},{"style":1053},[1720],{"type":998,"value":1721},"\"Chained union:\"",{"type":993,"tag":1021,"props":1723,"children":1724},{"style":1036},[1725],{"type":998,"value":1726},", chained)\n",{"type":993,"tag":1181,"props":1728,"children":1730},{"id":1729},"intersection-operations",[1731],{"type":998,"value":1732},"⚡ Intersection Operations",{"type":993,"tag":1001,"props":1734,"children":1735},{},[1736],{"type":998,"value":1737},"Intersection operations identify common elements across multiple sets. This is essential for finding shared characteristics or overlapping data.",{"type":993,"tag":1739,"props":1740,"children":1744},"info-box",{"emoji":1741,"title":1742,"type":1743},"🔍","Intersection Operations","info",[1745,1754,1774,1782,1800,1808],{"type":993,"tag":1001,"props":1746,"children":1747},{},[1748],{"type":993,"tag":1749,"props":1750,"children":1751},"strong",{},[1752],{"type":998,"value":1753},"intersection() Method:",{"type":993,"tag":1755,"props":1756,"children":1757},"ul",{},[1758,1764,1769],{"type":993,"tag":1759,"props":1760,"children":1761},"li",{},[1762],{"type":998,"value":1763},"Finds elements that exist in all specified sets",{"type":993,"tag":1759,"props":1765,"children":1766},{},[1767],{"type":998,"value":1768},"Supports multiple arguments",{"type":993,"tag":1759,"props":1770,"children":1771},{},[1772],{"type":998,"value":1773},"Returns new set with common elements",{"type":993,"tag":1001,"props":1775,"children":1776},{},[1777],{"type":993,"tag":1749,"props":1778,"children":1779},{},[1780],{"type":998,"value":1781},"& Operator:",{"type":993,"tag":1755,"props":1783,"children":1784},{},[1785,1790,1795],{"type":993,"tag":1759,"props":1786,"children":1787},{},[1788],{"type":998,"value":1789},"Mathematical notation for intersection",{"type":993,"tag":1759,"props":1791,"children":1792},{},[1793],{"type":998,"value":1794},"Clean, readable syntax",{"type":993,"tag":1759,"props":1796,"children":1797},{},[1798],{"type":998,"value":1799},"Chainable for multiple sets",{"type":993,"tag":1001,"props":1801,"children":1802},{},[1803],{"type":993,"tag":1749,"props":1804,"children":1805},{},[1806],{"type":998,"value":1807},"Common Use Cases:",{"type":993,"tag":1755,"props":1809,"children":1810},{},[1811,1816,1821],{"type":993,"tag":1759,"props":1812,"children":1813},{},[1814],{"type":998,"value":1815},"Finding shared permissions",{"type":993,"tag":1759,"props":1817,"children":1818},{},[1819],{"type":998,"value":1820},"Identifying common skills",{"type":993,"tag":1759,"props":1822,"children":1823},{},[1824],{"type":998,"value":1825},"Analyzing overlapping data",{"type":993,"tag":1193,"props":1827,"children":1829},{"id":1828},"using-the-intersection-method",[1830],{"type":998,"value":1831},"Using the intersection() Method",{"type":993,"tag":1001,"props":1833,"children":1834},{},[1835,1836,1842],{"type":998,"value":1203},{"type":993,"tag":1017,"props":1837,"children":1839},{"className":1838},[],[1840],{"type":998,"value":1841},"intersection()",{"type":998,"value":1843}," method finds elements that exist in all specified sets, enabling precise overlap detection.",{"type":993,"tag":1007,"props":1845,"children":1846},{},[1847],{"type":993,"tag":1011,"props":1848,"children":1850},{"className":1013,"code":1849,"language":6,"meta":8,"style":8},"students_math = {'Alice', 'Bob', 'Charlie', 'Diana'}\nstudents_science = {'Bob', 'Diana', 'Eve', 'Frank'}\n\n# Find students in both classes\nboth_classes = students_math.intersection(students_science)\nprint(\"Students in both classes:\", both_classes)\n\n# Multiple set intersection\nstudents_english = {'Alice', 'Bob', 'Grace'}\nall_three = students_math.intersection(students_science, students_english)\nprint(\"Students in all three classes:\", all_three)\n",[1851],{"type":993,"tag":1017,"props":1852,"children":1853},{"__ignoreMap":8},[1854,1906,1956,1963,1971,1988,2009,2016,2024,2065,2082],{"type":993,"tag":1021,"props":1855,"children":1856},{"class":1023,"line":12},[1857,1862,1866,1870,1875,1879,1884,1888,1893,1897,1902],{"type":993,"tag":1021,"props":1858,"children":1859},{"style":1036},[1860],{"type":998,"value":1861},"students_math ",{"type":993,"tag":1021,"props":1863,"children":1864},{"style":1042},[1865],{"type":998,"value":1045},{"type":993,"tag":1021,"props":1867,"children":1868},{"style":1036},[1869],{"type":998,"value":1050},{"type":993,"tag":1021,"props":1871,"children":1872},{"style":1053},[1873],{"type":998,"value":1874},"'Alice'",{"type":993,"tag":1021,"props":1876,"children":1877},{"style":1036},[1878],{"type":998,"value":1061},{"type":993,"tag":1021,"props":1880,"children":1881},{"style":1053},[1882],{"type":998,"value":1883},"'Bob'",{"type":993,"tag":1021,"props":1885,"children":1886},{"style":1036},[1887],{"type":998,"value":1061},{"type":993,"tag":1021,"props":1889,"children":1890},{"style":1053},[1891],{"type":998,"value":1892},"'Charlie'",{"type":993,"tag":1021,"props":1894,"children":1895},{"style":1036},[1896],{"type":998,"value":1061},{"type":993,"tag":1021,"props":1898,"children":1899},{"style":1053},[1900],{"type":998,"value":1901},"'Diana'",{"type":993,"tag":1021,"props":1903,"children":1904},{"style":1036},[1905],{"type":998,"value":1080},{"type":993,"tag":1021,"props":1907,"children":1908},{"class":1023,"line":27},[1909,1914,1918,1922,1926,1930,1934,1938,1943,1947,1952],{"type":993,"tag":1021,"props":1910,"children":1911},{"style":1036},[1912],{"type":998,"value":1913},"students_science ",{"type":993,"tag":1021,"props":1915,"children":1916},{"style":1042},[1917],{"type":998,"value":1045},{"type":993,"tag":1021,"props":1919,"children":1920},{"style":1036},[1921],{"type":998,"value":1050},{"type":993,"tag":1021,"props":1923,"children":1924},{"style":1053},[1925],{"type":998,"value":1883},{"type":993,"tag":1021,"props":1927,"children":1928},{"style":1036},[1929],{"type":998,"value":1061},{"type":993,"tag":1021,"props":1931,"children":1932},{"style":1053},[1933],{"type":998,"value":1901},{"type":993,"tag":1021,"props":1935,"children":1936},{"style":1036},[1937],{"type":998,"value":1061},{"type":993,"tag":1021,"props":1939,"children":1940},{"style":1053},[1941],{"type":998,"value":1942},"'Eve'",{"type":993,"tag":1021,"props":1944,"children":1945},{"style":1036},[1946],{"type":998,"value":1061},{"type":993,"tag":1021,"props":1948,"children":1949},{"style":1053},[1950],{"type":998,"value":1951},"'Frank'",{"type":993,"tag":1021,"props":1953,"children":1954},{"style":1036},[1955],{"type":998,"value":1080},{"type":993,"tag":1021,"props":1957,"children":1958},{"class":1023,"line":36},[1959],{"type":993,"tag":1021,"props":1960,"children":1961},{"emptyLinePlaceholder":13},[1962],{"type":998,"value":1130},{"type":993,"tag":1021,"props":1964,"children":1965},{"class":1023,"line":45},[1966],{"type":993,"tag":1021,"props":1967,"children":1968},{"style":1027},[1969],{"type":998,"value":1970},"# Find students in both classes\n",{"type":993,"tag":1021,"props":1972,"children":1973},{"class":1023,"line":54},[1974,1979,1983],{"type":993,"tag":1021,"props":1975,"children":1976},{"style":1036},[1977],{"type":998,"value":1978},"both_classes ",{"type":993,"tag":1021,"props":1980,"children":1981},{"style":1042},[1982],{"type":998,"value":1045},{"type":993,"tag":1021,"props":1984,"children":1985},{"style":1036},[1986],{"type":998,"value":1987}," students_math.intersection(students_science)\n",{"type":993,"tag":1021,"props":1989,"children":1990},{"class":1023,"line":63},[1991,1995,1999,2004],{"type":993,"tag":1021,"props":1992,"children":1993},{"style":1161},[1994],{"type":998,"value":1164},{"type":993,"tag":1021,"props":1996,"children":1997},{"style":1036},[1998],{"type":998,"value":1169},{"type":993,"tag":1021,"props":2000,"children":2001},{"style":1053},[2002],{"type":998,"value":2003},"\"Students in both classes:\"",{"type":993,"tag":1021,"props":2005,"children":2006},{"style":1036},[2007],{"type":998,"value":2008},", both_classes)\n",{"type":993,"tag":1021,"props":2010,"children":2011},{"class":1023,"line":72},[2012],{"type":993,"tag":1021,"props":2013,"children":2014},{"emptyLinePlaceholder":13},[2015],{"type":998,"value":1130},{"type":993,"tag":1021,"props":2017,"children":2018},{"class":1023,"line":81},[2019],{"type":993,"tag":1021,"props":2020,"children":2021},{"style":1027},[2022],{"type":998,"value":2023},"# Multiple set intersection\n",{"type":993,"tag":1021,"props":2025,"children":2026},{"class":1023,"line":91},[2027,2032,2036,2040,2044,2048,2052,2056,2061],{"type":993,"tag":1021,"props":2028,"children":2029},{"style":1036},[2030],{"type":998,"value":2031},"students_english ",{"type":993,"tag":1021,"props":2033,"children":2034},{"style":1042},[2035],{"type":998,"value":1045},{"type":993,"tag":1021,"props":2037,"children":2038},{"style":1036},[2039],{"type":998,"value":1050},{"type":993,"tag":1021,"props":2041,"children":2042},{"style":1053},[2043],{"type":998,"value":1874},{"type":993,"tag":1021,"props":2045,"children":2046},{"style":1036},[2047],{"type":998,"value":1061},{"type":993,"tag":1021,"props":2049,"children":2050},{"style":1053},[2051],{"type":998,"value":1883},{"type":993,"tag":1021,"props":2053,"children":2054},{"style":1036},[2055],{"type":998,"value":1061},{"type":993,"tag":1021,"props":2057,"children":2058},{"style":1053},[2059],{"type":998,"value":2060},"'Grace'",{"type":993,"tag":1021,"props":2062,"children":2063},{"style":1036},[2064],{"type":998,"value":1080},{"type":993,"tag":1021,"props":2066,"children":2067},{"class":1023,"line":100},[2068,2073,2077],{"type":993,"tag":1021,"props":2069,"children":2070},{"style":1036},[2071],{"type":998,"value":2072},"all_three ",{"type":993,"tag":1021,"props":2074,"children":2075},{"style":1042},[2076],{"type":998,"value":1045},{"type":993,"tag":1021,"props":2078,"children":2079},{"style":1036},[2080],{"type":998,"value":2081}," students_math.intersection(students_science, students_english)\n",{"type":993,"tag":1021,"props":2083,"children":2084},{"class":1023,"line":109},[2085,2089,2093,2098],{"type":993,"tag":1021,"props":2086,"children":2087},{"style":1161},[2088],{"type":998,"value":1164},{"type":993,"tag":1021,"props":2090,"children":2091},{"style":1036},[2092],{"type":998,"value":1169},{"type":993,"tag":1021,"props":2094,"children":2095},{"style":1053},[2096],{"type":998,"value":2097},"\"Students in all three classes:\"",{"type":993,"tag":1021,"props":2099,"children":2100},{"style":1036},[2101],{"type":998,"value":2102},", all_three)\n",{"type":993,"tag":1193,"props":2104,"children":2106},{"id":2105},"using-the-operator-1",[2107],{"type":998,"value":2108},"Using the & Operator",{"type":993,"tag":1001,"props":2110,"children":2111},{},[2112],{"type":998,"value":2113},"The ampersand operator provides mathematical notation for set intersection with clean, readable syntax.",{"type":993,"tag":1007,"props":2115,"children":2116},{},[2117],{"type":993,"tag":1011,"props":2118,"children":2120},{"className":1013,"code":2119,"language":6,"meta":8,"style":8},"skills_job1 = {'Python', 'SQL', 'Excel'}\nskills_job2 = {'Python', 'Java', 'SQL'}\n\n# Common skills needed\ncommon_skills = skills_job1 & skills_job2\nprint(\"Common skills:\", common_skills)\n\n# Chain intersections\nskills_job3 = {'Python', 'Git', 'SQL'}\nall_common = skills_job1 & skills_job2 & skills_job3\nprint(\"Skills needed for all jobs:\", all_common)\n",[2121],{"type":993,"tag":1017,"props":2122,"children":2123},{"__ignoreMap":8},[2124,2167,2208,2215,2223,2250,2271,2278,2286,2327,2361],{"type":993,"tag":1021,"props":2125,"children":2126},{"class":1023,"line":12},[2127,2132,2136,2140,2145,2149,2154,2158,2163],{"type":993,"tag":1021,"props":2128,"children":2129},{"style":1036},[2130],{"type":998,"value":2131},"skills_job1 ",{"type":993,"tag":1021,"props":2133,"children":2134},{"style":1042},[2135],{"type":998,"value":1045},{"type":993,"tag":1021,"props":2137,"children":2138},{"style":1036},[2139],{"type":998,"value":1050},{"type":993,"tag":1021,"props":2141,"children":2142},{"style":1053},[2143],{"type":998,"value":2144},"'Python'",{"type":993,"tag":1021,"props":2146,"children":2147},{"style":1036},[2148],{"type":998,"value":1061},{"type":993,"tag":1021,"props":2150,"children":2151},{"style":1053},[2152],{"type":998,"value":2153},"'SQL'",{"type":993,"tag":1021,"props":2155,"children":2156},{"style":1036},[2157],{"type":998,"value":1061},{"type":993,"tag":1021,"props":2159,"children":2160},{"style":1053},[2161],{"type":998,"value":2162},"'Excel'",{"type":993,"tag":1021,"props":2164,"children":2165},{"style":1036},[2166],{"type":998,"value":1080},{"type":993,"tag":1021,"props":2168,"children":2169},{"class":1023,"line":27},[2170,2175,2179,2183,2187,2191,2196,2200,2204],{"type":993,"tag":1021,"props":2171,"children":2172},{"style":1036},[2173],{"type":998,"value":2174},"skills_job2 ",{"type":993,"tag":1021,"props":2176,"children":2177},{"style":1042},[2178],{"type":998,"value":1045},{"type":993,"tag":1021,"props":2180,"children":2181},{"style":1036},[2182],{"type":998,"value":1050},{"type":993,"tag":1021,"props":2184,"children":2185},{"style":1053},[2186],{"type":998,"value":2144},{"type":993,"tag":1021,"props":2188,"children":2189},{"style":1036},[2190],{"type":998,"value":1061},{"type":993,"tag":1021,"props":2192,"children":2193},{"style":1053},[2194],{"type":998,"value":2195},"'Java'",{"type":993,"tag":1021,"props":2197,"children":2198},{"style":1036},[2199],{"type":998,"value":1061},{"type":993,"tag":1021,"props":2201,"children":2202},{"style":1053},[2203],{"type":998,"value":2153},{"type":993,"tag":1021,"props":2205,"children":2206},{"style":1036},[2207],{"type":998,"value":1080},{"type":993,"tag":1021,"props":2209,"children":2210},{"class":1023,"line":36},[2211],{"type":993,"tag":1021,"props":2212,"children":2213},{"emptyLinePlaceholder":13},[2214],{"type":998,"value":1130},{"type":993,"tag":1021,"props":2216,"children":2217},{"class":1023,"line":45},[2218],{"type":993,"tag":1021,"props":2219,"children":2220},{"style":1027},[2221],{"type":998,"value":2222},"# Common skills needed\n",{"type":993,"tag":1021,"props":2224,"children":2225},{"class":1023,"line":54},[2226,2231,2235,2240,2245],{"type":993,"tag":1021,"props":2227,"children":2228},{"style":1036},[2229],{"type":998,"value":2230},"common_skills ",{"type":993,"tag":1021,"props":2232,"children":2233},{"style":1042},[2234],{"type":998,"value":1045},{"type":993,"tag":1021,"props":2236,"children":2237},{"style":1036},[2238],{"type":998,"value":2239}," skills_job1 ",{"type":993,"tag":1021,"props":2241,"children":2242},{"style":1042},[2243],{"type":998,"value":2244},"&",{"type":993,"tag":1021,"props":2246,"children":2247},{"style":1036},[2248],{"type":998,"value":2249}," skills_job2\n",{"type":993,"tag":1021,"props":2251,"children":2252},{"class":1023,"line":63},[2253,2257,2261,2266],{"type":993,"tag":1021,"props":2254,"children":2255},{"style":1161},[2256],{"type":998,"value":1164},{"type":993,"tag":1021,"props":2258,"children":2259},{"style":1036},[2260],{"type":998,"value":1169},{"type":993,"tag":1021,"props":2262,"children":2263},{"style":1053},[2264],{"type":998,"value":2265},"\"Common skills:\"",{"type":993,"tag":1021,"props":2267,"children":2268},{"style":1036},[2269],{"type":998,"value":2270},", common_skills)\n",{"type":993,"tag":1021,"props":2272,"children":2273},{"class":1023,"line":72},[2274],{"type":993,"tag":1021,"props":2275,"children":2276},{"emptyLinePlaceholder":13},[2277],{"type":998,"value":1130},{"type":993,"tag":1021,"props":2279,"children":2280},{"class":1023,"line":81},[2281],{"type":993,"tag":1021,"props":2282,"children":2283},{"style":1027},[2284],{"type":998,"value":2285},"# Chain intersections\n",{"type":993,"tag":1021,"props":2287,"children":2288},{"class":1023,"line":91},[2289,2294,2298,2302,2306,2310,2315,2319,2323],{"type":993,"tag":1021,"props":2290,"children":2291},{"style":1036},[2292],{"type":998,"value":2293},"skills_job3 ",{"type":993,"tag":1021,"props":2295,"children":2296},{"style":1042},[2297],{"type":998,"value":1045},{"type":993,"tag":1021,"props":2299,"children":2300},{"style":1036},[2301],{"type":998,"value":1050},{"type":993,"tag":1021,"props":2303,"children":2304},{"style":1053},[2305],{"type":998,"value":2144},{"type":993,"tag":1021,"props":2307,"children":2308},{"style":1036},[2309],{"type":998,"value":1061},{"type":993,"tag":1021,"props":2311,"children":2312},{"style":1053},[2313],{"type":998,"value":2314},"'Git'",{"type":993,"tag":1021,"props":2316,"children":2317},{"style":1036},[2318],{"type":998,"value":1061},{"type":993,"tag":1021,"props":2320,"children":2321},{"style":1053},[2322],{"type":998,"value":2153},{"type":993,"tag":1021,"props":2324,"children":2325},{"style":1036},[2326],{"type":998,"value":1080},{"type":993,"tag":1021,"props":2328,"children":2329},{"class":1023,"line":100},[2330,2335,2339,2343,2347,2352,2356],{"type":993,"tag":1021,"props":2331,"children":2332},{"style":1036},[2333],{"type":998,"value":2334},"all_common ",{"type":993,"tag":1021,"props":2336,"children":2337},{"style":1042},[2338],{"type":998,"value":1045},{"type":993,"tag":1021,"props":2340,"children":2341},{"style":1036},[2342],{"type":998,"value":2239},{"type":993,"tag":1021,"props":2344,"children":2345},{"style":1042},[2346],{"type":998,"value":2244},{"type":993,"tag":1021,"props":2348,"children":2349},{"style":1036},[2350],{"type":998,"value":2351}," skills_job2 ",{"type":993,"tag":1021,"props":2353,"children":2354},{"style":1042},[2355],{"type":998,"value":2244},{"type":993,"tag":1021,"props":2357,"children":2358},{"style":1036},[2359],{"type":998,"value":2360}," skills_job3\n",{"type":993,"tag":1021,"props":2362,"children":2363},{"class":1023,"line":109},[2364,2368,2372,2377],{"type":993,"tag":1021,"props":2365,"children":2366},{"style":1161},[2367],{"type":998,"value":1164},{"type":993,"tag":1021,"props":2369,"children":2370},{"style":1036},[2371],{"type":998,"value":1169},{"type":993,"tag":1021,"props":2373,"children":2374},{"style":1053},[2375],{"type":998,"value":2376},"\"Skills needed for all jobs:\"",{"type":993,"tag":1021,"props":2378,"children":2379},{"style":1036},[2380],{"type":998,"value":2381},", all_common)\n",{"type":993,"tag":1181,"props":2383,"children":2385},{"id":2384},"difference-operations",[2386],{"type":998,"value":2387},"🚀 Difference Operations",{"type":993,"tag":1001,"props":2389,"children":2390},{},[2391],{"type":998,"value":2392},"Difference operations isolate elements that belong to one set but not another. This helps identify unique characteristics or missing data.",{"type":993,"tag":1739,"props":2394,"children":2398},{"emoji":2395,"title":2396,"type":2397},"➖","Difference Operations","success",[2399,2407,2425,2433,2451,2459],{"type":993,"tag":1001,"props":2400,"children":2401},{},[2402],{"type":993,"tag":1749,"props":2403,"children":2404},{},[2405],{"type":998,"value":2406},"difference() Method:",{"type":993,"tag":1755,"props":2408,"children":2409},{},[2410,2415,2420],{"type":993,"tag":1759,"props":2411,"children":2412},{},[2413],{"type":998,"value":2414},"Removes elements of second set from first set",{"type":993,"tag":1759,"props":2416,"children":2417},{},[2418],{"type":998,"value":2419},"Creates filtered collections",{"type":993,"tag":1759,"props":2421,"children":2422},{},[2423],{"type":998,"value":2424},"Non-destructive operation",{"type":993,"tag":1001,"props":2426,"children":2427},{},[2428],{"type":993,"tag":1749,"props":2429,"children":2430},{},[2431],{"type":998,"value":2432},"- Operator:",{"type":993,"tag":1755,"props":2434,"children":2435},{},[2436,2441,2446],{"type":993,"tag":1759,"props":2437,"children":2438},{},[2439],{"type":998,"value":2440},"Intuitive subtraction syntax",{"type":993,"tag":1759,"props":2442,"children":2443},{},[2444],{"type":998,"value":2445},"Chainable operations",{"type":993,"tag":1759,"props":2447,"children":2448},{},[2449],{"type":998,"value":2450},"Easy to read and understand",{"type":993,"tag":1001,"props":2452,"children":2453},{},[2454],{"type":993,"tag":1749,"props":2455,"children":2456},{},[2457],{"type":998,"value":2458},"Practical Applications:",{"type":993,"tag":1755,"props":2460,"children":2461},{},[2462,2467,2472],{"type":993,"tag":1759,"props":2463,"children":2464},{},[2465],{"type":998,"value":2466},"Finding missing items",{"type":993,"tag":1759,"props":2468,"children":2469},{},[2470],{"type":998,"value":2471},"Identifying unique elements",{"type":993,"tag":1759,"props":2473,"children":2474},{},[2475],{"type":998,"value":2476},"Filtering unwanted data",{"type":993,"tag":1193,"props":2478,"children":2480},{"id":2479},"using-the-difference-method",[2481],{"type":998,"value":2482},"Using the difference() Method",{"type":993,"tag":1001,"props":2484,"children":2485},{},[2486,2487,2493],{"type":998,"value":1203},{"type":993,"tag":1017,"props":2488,"children":2490},{"className":2489},[],[2491],{"type":998,"value":2492},"difference()",{"type":998,"value":2494}," method removes elements of the second set from the first set, creating filtered collections.",{"type":993,"tag":1007,"props":2496,"children":2497},{},[2498],{"type":993,"tag":1011,"props":2499,"children":2501},{"className":1013,"code":2500,"language":6,"meta":8,"style":8},"all_fruits = {'apple', 'banana', 'orange', 'grape'}\navailable_fruits = {'apple', 'orange'}\n\n# Find unavailable fruits\nunavailable = all_fruits.difference(available_fruits)\nprint(\"Unavailable fruits:\", unavailable)\n\n# Multiple differences\ntropical_fruits = {'banana', 'mango'}\nlocal_only = all_fruits.difference(available_fruits, tropical_fruits)\nprint(\"Local fruits only:\", local_only)\n",[2502],{"type":993,"tag":1017,"props":2503,"children":2504},{"__ignoreMap":8},[2505,2553,2585,2592,2600,2617,2638,2645,2653,2686,2703],{"type":993,"tag":1021,"props":2506,"children":2507},{"class":1023,"line":12},[2508,2513,2517,2521,2525,2529,2533,2537,2541,2545,2549],{"type":993,"tag":1021,"props":2509,"children":2510},{"style":1036},[2511],{"type":998,"value":2512},"all_fruits ",{"type":993,"tag":1021,"props":2514,"children":2515},{"style":1042},[2516],{"type":998,"value":1045},{"type":993,"tag":1021,"props":2518,"children":2519},{"style":1036},[2520],{"type":998,"value":1050},{"type":993,"tag":1021,"props":2522,"children":2523},{"style":1053},[2524],{"type":998,"value":1056},{"type":993,"tag":1021,"props":2526,"children":2527},{"style":1036},[2528],{"type":998,"value":1061},{"type":993,"tag":1021,"props":2530,"children":2531},{"style":1053},[2532],{"type":998,"value":1066},{"type":993,"tag":1021,"props":2534,"children":2535},{"style":1036},[2536],{"type":998,"value":1061},{"type":993,"tag":1021,"props":2538,"children":2539},{"style":1053},[2540],{"type":998,"value":1075},{"type":993,"tag":1021,"props":2542,"children":2543},{"style":1036},[2544],{"type":998,"value":1061},{"type":993,"tag":1021,"props":2546,"children":2547},{"style":1053},[2548],{"type":998,"value":1109},{"type":993,"tag":1021,"props":2550,"children":2551},{"style":1036},[2552],{"type":998,"value":1080},{"type":993,"tag":1021,"props":2554,"children":2555},{"class":1023,"line":27},[2556,2561,2565,2569,2573,2577,2581],{"type":993,"tag":1021,"props":2557,"children":2558},{"style":1036},[2559],{"type":998,"value":2560},"available_fruits ",{"type":993,"tag":1021,"props":2562,"children":2563},{"style":1042},[2564],{"type":998,"value":1045},{"type":993,"tag":1021,"props":2566,"children":2567},{"style":1036},[2568],{"type":998,"value":1050},{"type":993,"tag":1021,"props":2570,"children":2571},{"style":1053},[2572],{"type":998,"value":1056},{"type":993,"tag":1021,"props":2574,"children":2575},{"style":1036},[2576],{"type":998,"value":1061},{"type":993,"tag":1021,"props":2578,"children":2579},{"style":1053},[2580],{"type":998,"value":1075},{"type":993,"tag":1021,"props":2582,"children":2583},{"style":1036},[2584],{"type":998,"value":1080},{"type":993,"tag":1021,"props":2586,"children":2587},{"class":1023,"line":36},[2588],{"type":993,"tag":1021,"props":2589,"children":2590},{"emptyLinePlaceholder":13},[2591],{"type":998,"value":1130},{"type":993,"tag":1021,"props":2593,"children":2594},{"class":1023,"line":45},[2595],{"type":993,"tag":1021,"props":2596,"children":2597},{"style":1027},[2598],{"type":998,"value":2599},"# Find unavailable fruits\n",{"type":993,"tag":1021,"props":2601,"children":2602},{"class":1023,"line":54},[2603,2608,2612],{"type":993,"tag":1021,"props":2604,"children":2605},{"style":1036},[2606],{"type":998,"value":2607},"unavailable ",{"type":993,"tag":1021,"props":2609,"children":2610},{"style":1042},[2611],{"type":998,"value":1045},{"type":993,"tag":1021,"props":2613,"children":2614},{"style":1036},[2615],{"type":998,"value":2616}," all_fruits.difference(available_fruits)\n",{"type":993,"tag":1021,"props":2618,"children":2619},{"class":1023,"line":63},[2620,2624,2628,2633],{"type":993,"tag":1021,"props":2621,"children":2622},{"style":1161},[2623],{"type":998,"value":1164},{"type":993,"tag":1021,"props":2625,"children":2626},{"style":1036},[2627],{"type":998,"value":1169},{"type":993,"tag":1021,"props":2629,"children":2630},{"style":1053},[2631],{"type":998,"value":2632},"\"Unavailable fruits:\"",{"type":993,"tag":1021,"props":2634,"children":2635},{"style":1036},[2636],{"type":998,"value":2637},", unavailable)\n",{"type":993,"tag":1021,"props":2639,"children":2640},{"class":1023,"line":72},[2641],{"type":993,"tag":1021,"props":2642,"children":2643},{"emptyLinePlaceholder":13},[2644],{"type":998,"value":1130},{"type":993,"tag":1021,"props":2646,"children":2647},{"class":1023,"line":81},[2648],{"type":993,"tag":1021,"props":2649,"children":2650},{"style":1027},[2651],{"type":998,"value":2652},"# Multiple differences\n",{"type":993,"tag":1021,"props":2654,"children":2655},{"class":1023,"line":91},[2656,2661,2665,2669,2673,2677,2682],{"type":993,"tag":1021,"props":2657,"children":2658},{"style":1036},[2659],{"type":998,"value":2660},"tropical_fruits ",{"type":993,"tag":1021,"props":2662,"children":2663},{"style":1042},[2664],{"type":998,"value":1045},{"type":993,"tag":1021,"props":2666,"children":2667},{"style":1036},[2668],{"type":998,"value":1050},{"type":993,"tag":1021,"props":2670,"children":2671},{"style":1053},[2672],{"type":998,"value":1066},{"type":993,"tag":1021,"props":2674,"children":2675},{"style":1036},[2676],{"type":998,"value":1061},{"type":993,"tag":1021,"props":2678,"children":2679},{"style":1053},[2680],{"type":998,"value":2681},"'mango'",{"type":993,"tag":1021,"props":2683,"children":2684},{"style":1036},[2685],{"type":998,"value":1080},{"type":993,"tag":1021,"props":2687,"children":2688},{"class":1023,"line":100},[2689,2694,2698],{"type":993,"tag":1021,"props":2690,"children":2691},{"style":1036},[2692],{"type":998,"value":2693},"local_only ",{"type":993,"tag":1021,"props":2695,"children":2696},{"style":1042},[2697],{"type":998,"value":1045},{"type":993,"tag":1021,"props":2699,"children":2700},{"style":1036},[2701],{"type":998,"value":2702}," all_fruits.difference(available_fruits, tropical_fruits)\n",{"type":993,"tag":1021,"props":2704,"children":2705},{"class":1023,"line":109},[2706,2710,2714,2719],{"type":993,"tag":1021,"props":2707,"children":2708},{"style":1161},[2709],{"type":998,"value":1164},{"type":993,"tag":1021,"props":2711,"children":2712},{"style":1036},[2713],{"type":998,"value":1169},{"type":993,"tag":1021,"props":2715,"children":2716},{"style":1053},[2717],{"type":998,"value":2718},"\"Local fruits only:\"",{"type":993,"tag":1021,"props":2720,"children":2721},{"style":1036},[2722],{"type":998,"value":2723},", local_only)\n",{"type":993,"tag":1193,"props":2725,"children":2726},{"id":1448},[2727],{"type":998,"value":2728},"Using the - Operator",{"type":993,"tag":1001,"props":2730,"children":2731},{},[2732],{"type":998,"value":2733},"The minus operator provides intuitive subtraction syntax for set difference operations.",{"type":993,"tag":1007,"props":2735,"children":2736},{},[2737],{"type":993,"tag":1011,"props":2738,"children":2740},{"className":1013,"code":2739,"language":6,"meta":8,"style":8},"team_a = {'John', 'Jane', 'Bob', 'Alice'}\nteam_b = {'Bob', 'Alice', 'Charlie', 'Diana'}\n\n# Members only in team A\nonly_team_a = team_a - team_b\nprint(\"Only in team A:\", only_team_a)\n\n# Members only in team B\nonly_team_b = team_b - team_a\nprint(\"Only in team B:\", only_team_b)\n",[2741],{"type":993,"tag":1017,"props":2742,"children":2743},{"__ignoreMap":8},[2744,2794,2842,2849,2857,2884,2905,2912,2920,2946],{"type":993,"tag":1021,"props":2745,"children":2746},{"class":1023,"line":12},[2747,2752,2756,2760,2765,2769,2774,2778,2782,2786,2790],{"type":993,"tag":1021,"props":2748,"children":2749},{"style":1036},[2750],{"type":998,"value":2751},"team_a ",{"type":993,"tag":1021,"props":2753,"children":2754},{"style":1042},[2755],{"type":998,"value":1045},{"type":993,"tag":1021,"props":2757,"children":2758},{"style":1036},[2759],{"type":998,"value":1050},{"type":993,"tag":1021,"props":2761,"children":2762},{"style":1053},[2763],{"type":998,"value":2764},"'John'",{"type":993,"tag":1021,"props":2766,"children":2767},{"style":1036},[2768],{"type":998,"value":1061},{"type":993,"tag":1021,"props":2770,"children":2771},{"style":1053},[2772],{"type":998,"value":2773},"'Jane'",{"type":993,"tag":1021,"props":2775,"children":2776},{"style":1036},[2777],{"type":998,"value":1061},{"type":993,"tag":1021,"props":2779,"children":2780},{"style":1053},[2781],{"type":998,"value":1883},{"type":993,"tag":1021,"props":2783,"children":2784},{"style":1036},[2785],{"type":998,"value":1061},{"type":993,"tag":1021,"props":2787,"children":2788},{"style":1053},[2789],{"type":998,"value":1874},{"type":993,"tag":1021,"props":2791,"children":2792},{"style":1036},[2793],{"type":998,"value":1080},{"type":993,"tag":1021,"props":2795,"children":2796},{"class":1023,"line":27},[2797,2802,2806,2810,2814,2818,2822,2826,2830,2834,2838],{"type":993,"tag":1021,"props":2798,"children":2799},{"style":1036},[2800],{"type":998,"value":2801},"team_b ",{"type":993,"tag":1021,"props":2803,"children":2804},{"style":1042},[2805],{"type":998,"value":1045},{"type":993,"tag":1021,"props":2807,"children":2808},{"style":1036},[2809],{"type":998,"value":1050},{"type":993,"tag":1021,"props":2811,"children":2812},{"style":1053},[2813],{"type":998,"value":1883},{"type":993,"tag":1021,"props":2815,"children":2816},{"style":1036},[2817],{"type":998,"value":1061},{"type":993,"tag":1021,"props":2819,"children":2820},{"style":1053},[2821],{"type":998,"value":1874},{"type":993,"tag":1021,"props":2823,"children":2824},{"style":1036},[2825],{"type":998,"value":1061},{"type":993,"tag":1021,"props":2827,"children":2828},{"style":1053},[2829],{"type":998,"value":1892},{"type":993,"tag":1021,"props":2831,"children":2832},{"style":1036},[2833],{"type":998,"value":1061},{"type":993,"tag":1021,"props":2835,"children":2836},{"style":1053},[2837],{"type":998,"value":1901},{"type":993,"tag":1021,"props":2839,"children":2840},{"style":1036},[2841],{"type":998,"value":1080},{"type":993,"tag":1021,"props":2843,"children":2844},{"class":1023,"line":36},[2845],{"type":993,"tag":1021,"props":2846,"children":2847},{"emptyLinePlaceholder":13},[2848],{"type":998,"value":1130},{"type":993,"tag":1021,"props":2850,"children":2851},{"class":1023,"line":45},[2852],{"type":993,"tag":1021,"props":2853,"children":2854},{"style":1027},[2855],{"type":998,"value":2856},"# Members only in team A\n",{"type":993,"tag":1021,"props":2858,"children":2859},{"class":1023,"line":54},[2860,2865,2869,2874,2879],{"type":993,"tag":1021,"props":2861,"children":2862},{"style":1036},[2863],{"type":998,"value":2864},"only_team_a ",{"type":993,"tag":1021,"props":2866,"children":2867},{"style":1042},[2868],{"type":998,"value":1045},{"type":993,"tag":1021,"props":2870,"children":2871},{"style":1036},[2872],{"type":998,"value":2873}," team_a ",{"type":993,"tag":1021,"props":2875,"children":2876},{"style":1042},[2877],{"type":998,"value":2878},"-",{"type":993,"tag":1021,"props":2880,"children":2881},{"style":1036},[2882],{"type":998,"value":2883}," team_b\n",{"type":993,"tag":1021,"props":2885,"children":2886},{"class":1023,"line":63},[2887,2891,2895,2900],{"type":993,"tag":1021,"props":2888,"children":2889},{"style":1161},[2890],{"type":998,"value":1164},{"type":993,"tag":1021,"props":2892,"children":2893},{"style":1036},[2894],{"type":998,"value":1169},{"type":993,"tag":1021,"props":2896,"children":2897},{"style":1053},[2898],{"type":998,"value":2899},"\"Only in team A:\"",{"type":993,"tag":1021,"props":2901,"children":2902},{"style":1036},[2903],{"type":998,"value":2904},", only_team_a)\n",{"type":993,"tag":1021,"props":2906,"children":2907},{"class":1023,"line":72},[2908],{"type":993,"tag":1021,"props":2909,"children":2910},{"emptyLinePlaceholder":13},[2911],{"type":998,"value":1130},{"type":993,"tag":1021,"props":2913,"children":2914},{"class":1023,"line":81},[2915],{"type":993,"tag":1021,"props":2916,"children":2917},{"style":1027},[2918],{"type":998,"value":2919},"# Members only in team B\n",{"type":993,"tag":1021,"props":2921,"children":2922},{"class":1023,"line":91},[2923,2928,2932,2937,2941],{"type":993,"tag":1021,"props":2924,"children":2925},{"style":1036},[2926],{"type":998,"value":2927},"only_team_b ",{"type":993,"tag":1021,"props":2929,"children":2930},{"style":1042},[2931],{"type":998,"value":1045},{"type":993,"tag":1021,"props":2933,"children":2934},{"style":1036},[2935],{"type":998,"value":2936}," team_b ",{"type":993,"tag":1021,"props":2938,"children":2939},{"style":1042},[2940],{"type":998,"value":2878},{"type":993,"tag":1021,"props":2942,"children":2943},{"style":1036},[2944],{"type":998,"value":2945}," team_a\n",{"type":993,"tag":1021,"props":2947,"children":2948},{"class":1023,"line":100},[2949,2953,2957,2962],{"type":993,"tag":1021,"props":2950,"children":2951},{"style":1161},[2952],{"type":998,"value":1164},{"type":993,"tag":1021,"props":2954,"children":2955},{"style":1036},[2956],{"type":998,"value":1169},{"type":993,"tag":1021,"props":2958,"children":2959},{"style":1053},[2960],{"type":998,"value":2961},"\"Only in team B:\"",{"type":993,"tag":1021,"props":2963,"children":2964},{"style":1036},[2965],{"type":998,"value":2966},", only_team_b)\n",{"type":993,"tag":1181,"props":2968,"children":2970},{"id":2969},"symmetric-difference",[2971],{"type":998,"value":2972},"🌟 Symmetric Difference",{"type":993,"tag":1001,"props":2974,"children":2975},{},[2976],{"type":998,"value":2977},"Symmetric difference identifies elements that exist in either set but not in both. This operation finds exclusive elements across multiple collections.",{"type":993,"tag":1007,"props":2979,"children":2980},{},[2981],{"type":993,"tag":1011,"props":2982,"children":2984},{"className":1013,"code":2983,"language":6,"meta":8,"style":8},"languages_john = {'Python', 'Java', 'C++'}\nlanguages_jane = {'Python', 'JavaScript', 'Go'}\n\n# Languages known by either John or Jane, but not both\nunique_languages = languages_john.symmetric_difference(languages_jane)\nprint(\"Unique languages:\", unique_languages)\n\n# Using ^ operator\nunique_alt = languages_john ^ languages_jane\nprint(\"Using ^ operator:\", unique_alt)\n",[2985],{"type":993,"tag":1017,"props":2986,"children":2987},{"__ignoreMap":8},[2988,3029,3071,3078,3086,3103,3124,3131,3139,3166],{"type":993,"tag":1021,"props":2989,"children":2990},{"class":1023,"line":12},[2991,2996,3000,3004,3008,3012,3016,3020,3025],{"type":993,"tag":1021,"props":2992,"children":2993},{"style":1036},[2994],{"type":998,"value":2995},"languages_john ",{"type":993,"tag":1021,"props":2997,"children":2998},{"style":1042},[2999],{"type":998,"value":1045},{"type":993,"tag":1021,"props":3001,"children":3002},{"style":1036},[3003],{"type":998,"value":1050},{"type":993,"tag":1021,"props":3005,"children":3006},{"style":1053},[3007],{"type":998,"value":2144},{"type":993,"tag":1021,"props":3009,"children":3010},{"style":1036},[3011],{"type":998,"value":1061},{"type":993,"tag":1021,"props":3013,"children":3014},{"style":1053},[3015],{"type":998,"value":2195},{"type":993,"tag":1021,"props":3017,"children":3018},{"style":1036},[3019],{"type":998,"value":1061},{"type":993,"tag":1021,"props":3021,"children":3022},{"style":1053},[3023],{"type":998,"value":3024},"'C++'",{"type":993,"tag":1021,"props":3026,"children":3027},{"style":1036},[3028],{"type":998,"value":1080},{"type":993,"tag":1021,"props":3030,"children":3031},{"class":1023,"line":27},[3032,3037,3041,3045,3049,3053,3058,3062,3067],{"type":993,"tag":1021,"props":3033,"children":3034},{"style":1036},[3035],{"type":998,"value":3036},"languages_jane ",{"type":993,"tag":1021,"props":3038,"children":3039},{"style":1042},[3040],{"type":998,"value":1045},{"type":993,"tag":1021,"props":3042,"children":3043},{"style":1036},[3044],{"type":998,"value":1050},{"type":993,"tag":1021,"props":3046,"children":3047},{"style":1053},[3048],{"type":998,"value":2144},{"type":993,"tag":1021,"props":3050,"children":3051},{"style":1036},[3052],{"type":998,"value":1061},{"type":993,"tag":1021,"props":3054,"children":3055},{"style":1053},[3056],{"type":998,"value":3057},"'JavaScript'",{"type":993,"tag":1021,"props":3059,"children":3060},{"style":1036},[3061],{"type":998,"value":1061},{"type":993,"tag":1021,"props":3063,"children":3064},{"style":1053},[3065],{"type":998,"value":3066},"'Go'",{"type":993,"tag":1021,"props":3068,"children":3069},{"style":1036},[3070],{"type":998,"value":1080},{"type":993,"tag":1021,"props":3072,"children":3073},{"class":1023,"line":36},[3074],{"type":993,"tag":1021,"props":3075,"children":3076},{"emptyLinePlaceholder":13},[3077],{"type":998,"value":1130},{"type":993,"tag":1021,"props":3079,"children":3080},{"class":1023,"line":45},[3081],{"type":993,"tag":1021,"props":3082,"children":3083},{"style":1027},[3084],{"type":998,"value":3085},"# Languages known by either John or Jane, but not both\n",{"type":993,"tag":1021,"props":3087,"children":3088},{"class":1023,"line":54},[3089,3094,3098],{"type":993,"tag":1021,"props":3090,"children":3091},{"style":1036},[3092],{"type":998,"value":3093},"unique_languages ",{"type":993,"tag":1021,"props":3095,"children":3096},{"style":1042},[3097],{"type":998,"value":1045},{"type":993,"tag":1021,"props":3099,"children":3100},{"style":1036},[3101],{"type":998,"value":3102}," languages_john.symmetric_difference(languages_jane)\n",{"type":993,"tag":1021,"props":3104,"children":3105},{"class":1023,"line":63},[3106,3110,3114,3119],{"type":993,"tag":1021,"props":3107,"children":3108},{"style":1161},[3109],{"type":998,"value":1164},{"type":993,"tag":1021,"props":3111,"children":3112},{"style":1036},[3113],{"type":998,"value":1169},{"type":993,"tag":1021,"props":3115,"children":3116},{"style":1053},[3117],{"type":998,"value":3118},"\"Unique languages:\"",{"type":993,"tag":1021,"props":3120,"children":3121},{"style":1036},[3122],{"type":998,"value":3123},", unique_languages)\n",{"type":993,"tag":1021,"props":3125,"children":3126},{"class":1023,"line":72},[3127],{"type":993,"tag":1021,"props":3128,"children":3129},{"emptyLinePlaceholder":13},[3130],{"type":998,"value":1130},{"type":993,"tag":1021,"props":3132,"children":3133},{"class":1023,"line":81},[3134],{"type":993,"tag":1021,"props":3135,"children":3136},{"style":1027},[3137],{"type":998,"value":3138},"# Using ^ operator\n",{"type":993,"tag":1021,"props":3140,"children":3141},{"class":1023,"line":91},[3142,3147,3151,3156,3161],{"type":993,"tag":1021,"props":3143,"children":3144},{"style":1036},[3145],{"type":998,"value":3146},"unique_alt ",{"type":993,"tag":1021,"props":3148,"children":3149},{"style":1042},[3150],{"type":998,"value":1045},{"type":993,"tag":1021,"props":3152,"children":3153},{"style":1036},[3154],{"type":998,"value":3155}," languages_john ",{"type":993,"tag":1021,"props":3157,"children":3158},{"style":1042},[3159],{"type":998,"value":3160},"^",{"type":993,"tag":1021,"props":3162,"children":3163},{"style":1036},[3164],{"type":998,"value":3165}," languages_jane\n",{"type":993,"tag":1021,"props":3167,"children":3168},{"class":1023,"line":100},[3169,3173,3177,3182],{"type":993,"tag":1021,"props":3170,"children":3171},{"style":1161},[3172],{"type":998,"value":1164},{"type":993,"tag":1021,"props":3174,"children":3175},{"style":1036},[3176],{"type":998,"value":1169},{"type":993,"tag":1021,"props":3178,"children":3179},{"style":1053},[3180],{"type":998,"value":3181},"\"Using ^ operator:\"",{"type":993,"tag":1021,"props":3183,"children":3184},{"style":1036},[3185],{"type":998,"value":3186},", unique_alt)\n",{"type":993,"tag":1181,"props":3188,"children":3190},{"id":3189},"set-combination-methods-comparison",[3191],{"type":998,"value":3192},"📚 Set Combination Methods Comparison",{"type":993,"tag":3194,"props":3195,"children":3196},"table",{},[3197,3231],{"type":993,"tag":3198,"props":3199,"children":3200},"thead",{},[3201],{"type":993,"tag":3202,"props":3203,"children":3204},"tr",{},[3205,3211,3216,3221,3226],{"type":993,"tag":3206,"props":3207,"children":3208},"th",{},[3209],{"type":998,"value":3210},"Operation",{"type":993,"tag":3206,"props":3212,"children":3213},{},[3214],{"type":998,"value":3215},"Method",{"type":993,"tag":3206,"props":3217,"children":3218},{},[3219],{"type":998,"value":3220},"Operator",{"type":993,"tag":3206,"props":3222,"children":3223},{},[3224],{"type":998,"value":3225},"Description",{"type":993,"tag":3206,"props":3227,"children":3228},{},[3229],{"type":998,"value":3230},"Example",{"type":993,"tag":3232,"props":3233,"children":3234},"tbody",{},[3235,3276,3316,3356],{"type":993,"tag":3202,"props":3236,"children":3237},{},[3238,3244,3253,3262,3267],{"type":993,"tag":3239,"props":3240,"children":3241},"td",{},[3242],{"type":998,"value":3243},"Union",{"type":993,"tag":3239,"props":3245,"children":3246},{},[3247],{"type":993,"tag":1017,"props":3248,"children":3250},{"className":3249},[],[3251],{"type":998,"value":3252},"set1.union(set2)",{"type":993,"tag":3239,"props":3254,"children":3255},{},[3256],{"type":993,"tag":1017,"props":3257,"children":3259},{"className":3258},[],[3260],{"type":998,"value":3261},"set1 | set2",{"type":993,"tag":3239,"props":3263,"children":3264},{},[3265],{"type":998,"value":3266},"All elements from both sets",{"type":993,"tag":3239,"props":3268,"children":3269},{},[3270],{"type":993,"tag":1017,"props":3271,"children":3273},{"className":3272},[],[3274],{"type":998,"value":3275},"{1,2} | {2,3} = {1,2,3}",{"type":993,"tag":3202,"props":3277,"children":3278},{},[3279,3284,3293,3302,3307],{"type":993,"tag":3239,"props":3280,"children":3281},{},[3282],{"type":998,"value":3283},"Intersection",{"type":993,"tag":3239,"props":3285,"children":3286},{},[3287],{"type":993,"tag":1017,"props":3288,"children":3290},{"className":3289},[],[3291],{"type":998,"value":3292},"set1.intersection(set2)",{"type":993,"tag":3239,"props":3294,"children":3295},{},[3296],{"type":993,"tag":1017,"props":3297,"children":3299},{"className":3298},[],[3300],{"type":998,"value":3301},"set1 & set2",{"type":993,"tag":3239,"props":3303,"children":3304},{},[3305],{"type":998,"value":3306},"Elements in both sets",{"type":993,"tag":3239,"props":3308,"children":3309},{},[3310],{"type":993,"tag":1017,"props":3311,"children":3313},{"className":3312},[],[3314],{"type":998,"value":3315},"{1,2} & {2,3} = {2}",{"type":993,"tag":3202,"props":3317,"children":3318},{},[3319,3324,3333,3342,3347],{"type":993,"tag":3239,"props":3320,"children":3321},{},[3322],{"type":998,"value":3323},"Difference",{"type":993,"tag":3239,"props":3325,"children":3326},{},[3327],{"type":993,"tag":1017,"props":3328,"children":3330},{"className":3329},[],[3331],{"type":998,"value":3332},"set1.difference(set2)",{"type":993,"tag":3239,"props":3334,"children":3335},{},[3336],{"type":993,"tag":1017,"props":3337,"children":3339},{"className":3338},[],[3340],{"type":998,"value":3341},"set1 - set2",{"type":993,"tag":3239,"props":3343,"children":3344},{},[3345],{"type":998,"value":3346},"Elements in set1 but not set2",{"type":993,"tag":3239,"props":3348,"children":3349},{},[3350],{"type":993,"tag":1017,"props":3351,"children":3353},{"className":3352},[],[3354],{"type":998,"value":3355},"{1,2} - {2,3} = {1}",{"type":993,"tag":3202,"props":3357,"children":3358},{},[3359,3364,3373,3382,3387],{"type":993,"tag":3239,"props":3360,"children":3361},{},[3362],{"type":998,"value":3363},"Symmetric Difference",{"type":993,"tag":3239,"props":3365,"children":3366},{},[3367],{"type":993,"tag":1017,"props":3368,"children":3370},{"className":3369},[],[3371],{"type":998,"value":3372},"set1.symmetric_difference(set2)",{"type":993,"tag":3239,"props":3374,"children":3375},{},[3376],{"type":993,"tag":1017,"props":3377,"children":3379},{"className":3378},[],[3380],{"type":998,"value":3381},"set1 ^ set2",{"type":993,"tag":3239,"props":3383,"children":3384},{},[3385],{"type":998,"value":3386},"Elements in either set, but not both",{"type":993,"tag":3239,"props":3388,"children":3389},{},[3390],{"type":993,"tag":1017,"props":3391,"children":3393},{"className":3392},[],[3394],{"type":998,"value":3395},"{1,2} ^ {2,3} = {1,3}",{"type":993,"tag":1181,"props":3397,"children":3399},{"id":3398},"update-operations",[3400],{"type":998,"value":3401},"💡 Update Operations",{"type":993,"tag":1001,"props":3403,"children":3404},{},[3405],{"type":998,"value":3406},"Update operations modify existing sets by combining them with other sets. These in-place operations provide memory-efficient set manipulation.",{"type":993,"tag":1739,"props":3408,"children":3412},{"emoji":3409,"title":3410,"type":3411},"🔄","Update Operations","warning",[3413,3421,3439,3447,3505,3513],{"type":993,"tag":1001,"props":3414,"children":3415},{},[3416],{"type":993,"tag":1749,"props":3417,"children":3418},{},[3419],{"type":998,"value":3420},"In-Place Modification:",{"type":993,"tag":1755,"props":3422,"children":3423},{},[3424,3429,3434],{"type":993,"tag":1759,"props":3425,"children":3426},{},[3427],{"type":998,"value":3428},"Changes the original set directly",{"type":993,"tag":1759,"props":3430,"children":3431},{},[3432],{"type":998,"value":3433},"Memory efficient for large sets",{"type":993,"tag":1759,"props":3435,"children":3436},{},[3437],{"type":998,"value":3438},"Cannot be undone once applied",{"type":993,"tag":1001,"props":3440,"children":3441},{},[3442],{"type":993,"tag":1749,"props":3443,"children":3444},{},[3445],{"type":998,"value":3446},"Available Updates:",{"type":993,"tag":1755,"props":3448,"children":3449},{},[3450,3469,3487],{"type":993,"tag":1759,"props":3451,"children":3452},{},[3453,3455,3461,3463],{"type":998,"value":3454},"Union update: ",{"type":993,"tag":1017,"props":3456,"children":3458},{"className":3457},[],[3459],{"type":998,"value":3460},"|=",{"type":998,"value":3462}," or ",{"type":993,"tag":1017,"props":3464,"children":3466},{"className":3465},[],[3467],{"type":998,"value":3468},"update()",{"type":993,"tag":1759,"props":3470,"children":3471},{},[3472,3474,3480,3481],{"type":998,"value":3473},"Intersection update: ",{"type":993,"tag":1017,"props":3475,"children":3477},{"className":3476},[],[3478],{"type":998,"value":3479},"&=",{"type":998,"value":3462},{"type":993,"tag":1017,"props":3482,"children":3484},{"className":3483},[],[3485],{"type":998,"value":3486},"intersection_update()",{"type":993,"tag":1759,"props":3488,"children":3489},{},[3490,3492,3498,3499],{"type":998,"value":3491},"Difference update: ",{"type":993,"tag":1017,"props":3493,"children":3495},{"className":3494},[],[3496],{"type":998,"value":3497},"-=",{"type":998,"value":3462},{"type":993,"tag":1017,"props":3500,"children":3502},{"className":3501},[],[3503],{"type":998,"value":3504},"difference_update()",{"type":993,"tag":1001,"props":3506,"children":3507},{},[3508],{"type":993,"tag":1749,"props":3509,"children":3510},{},[3511],{"type":998,"value":3512},"When to Use:",{"type":993,"tag":1755,"props":3514,"children":3515},{},[3516,3521,3526],{"type":993,"tag":1759,"props":3517,"children":3518},{},[3519],{"type":998,"value":3520},"When you don't need the original set",{"type":993,"tag":1759,"props":3522,"children":3523},{},[3524],{"type":998,"value":3525},"Memory-constrained environments",{"type":993,"tag":1759,"props":3527,"children":3528},{},[3529],{"type":998,"value":3530},"Building sets incrementally",{"type":993,"tag":1193,"props":3532,"children":3534},{"id":3533},"union-update",[3535],{"type":998,"value":3536},"Union Update",{"type":993,"tag":1001,"props":3538,"children":3539},{},[3540],{"type":998,"value":3541},"Union update adds elements from another set to the current set, expanding the original collection.",{"type":993,"tag":1007,"props":3543,"children":3544},{},[3545],{"type":993,"tag":1011,"props":3546,"children":3548},{"className":1013,"code":3547,"language":6,"meta":8,"style":8},"main_set = {'a', 'b', 'c'}\nadditional = {'c', 'd', 'e'}\n\nprint(\"Before update:\", main_set)\nmain_set.update(additional)  # or main_set |= additional\nprint(\"After update:\", main_set)\n",[3549],{"type":993,"tag":1017,"props":3550,"children":3551},{"__ignoreMap":8},[3552,3595,3637,3644,3665,3678],{"type":993,"tag":1021,"props":3553,"children":3554},{"class":1023,"line":12},[3555,3560,3564,3568,3573,3577,3582,3586,3591],{"type":993,"tag":1021,"props":3556,"children":3557},{"style":1036},[3558],{"type":998,"value":3559},"main_set ",{"type":993,"tag":1021,"props":3561,"children":3562},{"style":1042},[3563],{"type":998,"value":1045},{"type":993,"tag":1021,"props":3565,"children":3566},{"style":1036},[3567],{"type":998,"value":1050},{"type":993,"tag":1021,"props":3569,"children":3570},{"style":1053},[3571],{"type":998,"value":3572},"'a'",{"type":993,"tag":1021,"props":3574,"children":3575},{"style":1036},[3576],{"type":998,"value":1061},{"type":993,"tag":1021,"props":3578,"children":3579},{"style":1053},[3580],{"type":998,"value":3581},"'b'",{"type":993,"tag":1021,"props":3583,"children":3584},{"style":1036},[3585],{"type":998,"value":1061},{"type":993,"tag":1021,"props":3587,"children":3588},{"style":1053},[3589],{"type":998,"value":3590},"'c'",{"type":993,"tag":1021,"props":3592,"children":3593},{"style":1036},[3594],{"type":998,"value":1080},{"type":993,"tag":1021,"props":3596,"children":3597},{"class":1023,"line":27},[3598,3603,3607,3611,3615,3619,3624,3628,3633],{"type":993,"tag":1021,"props":3599,"children":3600},{"style":1036},[3601],{"type":998,"value":3602},"additional ",{"type":993,"tag":1021,"props":3604,"children":3605},{"style":1042},[3606],{"type":998,"value":1045},{"type":993,"tag":1021,"props":3608,"children":3609},{"style":1036},[3610],{"type":998,"value":1050},{"type":993,"tag":1021,"props":3612,"children":3613},{"style":1053},[3614],{"type":998,"value":3590},{"type":993,"tag":1021,"props":3616,"children":3617},{"style":1036},[3618],{"type":998,"value":1061},{"type":993,"tag":1021,"props":3620,"children":3621},{"style":1053},[3622],{"type":998,"value":3623},"'d'",{"type":993,"tag":1021,"props":3625,"children":3626},{"style":1036},[3627],{"type":998,"value":1061},{"type":993,"tag":1021,"props":3629,"children":3630},{"style":1053},[3631],{"type":998,"value":3632},"'e'",{"type":993,"tag":1021,"props":3634,"children":3635},{"style":1036},[3636],{"type":998,"value":1080},{"type":993,"tag":1021,"props":3638,"children":3639},{"class":1023,"line":36},[3640],{"type":993,"tag":1021,"props":3641,"children":3642},{"emptyLinePlaceholder":13},[3643],{"type":998,"value":1130},{"type":993,"tag":1021,"props":3645,"children":3646},{"class":1023,"line":45},[3647,3651,3655,3660],{"type":993,"tag":1021,"props":3648,"children":3649},{"style":1161},[3650],{"type":998,"value":1164},{"type":993,"tag":1021,"props":3652,"children":3653},{"style":1036},[3654],{"type":998,"value":1169},{"type":993,"tag":1021,"props":3656,"children":3657},{"style":1053},[3658],{"type":998,"value":3659},"\"Before update:\"",{"type":993,"tag":1021,"props":3661,"children":3662},{"style":1036},[3663],{"type":998,"value":3664},", main_set)\n",{"type":993,"tag":1021,"props":3666,"children":3667},{"class":1023,"line":54},[3668,3673],{"type":993,"tag":1021,"props":3669,"children":3670},{"style":1036},[3671],{"type":998,"value":3672},"main_set.update(additional)  ",{"type":993,"tag":1021,"props":3674,"children":3675},{"style":1027},[3676],{"type":998,"value":3677},"# or main_set |= additional\n",{"type":993,"tag":1021,"props":3679,"children":3680},{"class":1023,"line":63},[3681,3685,3689,3694],{"type":993,"tag":1021,"props":3682,"children":3683},{"style":1161},[3684],{"type":998,"value":1164},{"type":993,"tag":1021,"props":3686,"children":3687},{"style":1036},[3688],{"type":998,"value":1169},{"type":993,"tag":1021,"props":3690,"children":3691},{"style":1053},[3692],{"type":998,"value":3693},"\"After update:\"",{"type":993,"tag":1021,"props":3695,"children":3696},{"style":1036},[3697],{"type":998,"value":3664},{"type":993,"tag":1193,"props":3699,"children":3701},{"id":3700},"intersection-update",[3702],{"type":998,"value":3703},"Intersection Update",{"type":993,"tag":1001,"props":3705,"children":3706},{},[3707],{"type":998,"value":3708},"Intersection update keeps only common elements, effectively filtering the original set to shared elements.",{"type":993,"tag":1007,"props":3710,"children":3711},{},[3712],{"type":993,"tag":1011,"props":3713,"children":3715},{"className":1013,"code":3714,"language":6,"meta":8,"style":8},"permissions = {'read', 'write', 'delete', 'admin'}\nallowed = {'read', 'write'}\n\nprint(\"Before restriction:\", permissions)\npermissions.intersection_update(allowed)  # or permissions &= allowed\nprint(\"After restriction:\", permissions)\n",[3716],{"type":993,"tag":1017,"props":3717,"children":3718},{"__ignoreMap":8},[3719,3771,3803,3810,3831,3844],{"type":993,"tag":1021,"props":3720,"children":3721},{"class":1023,"line":12},[3722,3727,3731,3735,3740,3744,3749,3753,3758,3762,3767],{"type":993,"tag":1021,"props":3723,"children":3724},{"style":1036},[3725],{"type":998,"value":3726},"permissions ",{"type":993,"tag":1021,"props":3728,"children":3729},{"style":1042},[3730],{"type":998,"value":1045},{"type":993,"tag":1021,"props":3732,"children":3733},{"style":1036},[3734],{"type":998,"value":1050},{"type":993,"tag":1021,"props":3736,"children":3737},{"style":1053},[3738],{"type":998,"value":3739},"'read'",{"type":993,"tag":1021,"props":3741,"children":3742},{"style":1036},[3743],{"type":998,"value":1061},{"type":993,"tag":1021,"props":3745,"children":3746},{"style":1053},[3747],{"type":998,"value":3748},"'write'",{"type":993,"tag":1021,"props":3750,"children":3751},{"style":1036},[3752],{"type":998,"value":1061},{"type":993,"tag":1021,"props":3754,"children":3755},{"style":1053},[3756],{"type":998,"value":3757},"'delete'",{"type":993,"tag":1021,"props":3759,"children":3760},{"style":1036},[3761],{"type":998,"value":1061},{"type":993,"tag":1021,"props":3763,"children":3764},{"style":1053},[3765],{"type":998,"value":3766},"'admin'",{"type":993,"tag":1021,"props":3768,"children":3769},{"style":1036},[3770],{"type":998,"value":1080},{"type":993,"tag":1021,"props":3772,"children":3773},{"class":1023,"line":27},[3774,3779,3783,3787,3791,3795,3799],{"type":993,"tag":1021,"props":3775,"children":3776},{"style":1036},[3777],{"type":998,"value":3778},"allowed ",{"type":993,"tag":1021,"props":3780,"children":3781},{"style":1042},[3782],{"type":998,"value":1045},{"type":993,"tag":1021,"props":3784,"children":3785},{"style":1036},[3786],{"type":998,"value":1050},{"type":993,"tag":1021,"props":3788,"children":3789},{"style":1053},[3790],{"type":998,"value":3739},{"type":993,"tag":1021,"props":3792,"children":3793},{"style":1036},[3794],{"type":998,"value":1061},{"type":993,"tag":1021,"props":3796,"children":3797},{"style":1053},[3798],{"type":998,"value":3748},{"type":993,"tag":1021,"props":3800,"children":3801},{"style":1036},[3802],{"type":998,"value":1080},{"type":993,"tag":1021,"props":3804,"children":3805},{"class":1023,"line":36},[3806],{"type":993,"tag":1021,"props":3807,"children":3808},{"emptyLinePlaceholder":13},[3809],{"type":998,"value":1130},{"type":993,"tag":1021,"props":3811,"children":3812},{"class":1023,"line":45},[3813,3817,3821,3826],{"type":993,"tag":1021,"props":3814,"children":3815},{"style":1161},[3816],{"type":998,"value":1164},{"type":993,"tag":1021,"props":3818,"children":3819},{"style":1036},[3820],{"type":998,"value":1169},{"type":993,"tag":1021,"props":3822,"children":3823},{"style":1053},[3824],{"type":998,"value":3825},"\"Before restriction:\"",{"type":993,"tag":1021,"props":3827,"children":3828},{"style":1036},[3829],{"type":998,"value":3830},", permissions)\n",{"type":993,"tag":1021,"props":3832,"children":3833},{"class":1023,"line":54},[3834,3839],{"type":993,"tag":1021,"props":3835,"children":3836},{"style":1036},[3837],{"type":998,"value":3838},"permissions.intersection_update(allowed)  ",{"type":993,"tag":1021,"props":3840,"children":3841},{"style":1027},[3842],{"type":998,"value":3843},"# or permissions &= allowed\n",{"type":993,"tag":1021,"props":3845,"children":3846},{"class":1023,"line":63},[3847,3851,3855,3860],{"type":993,"tag":1021,"props":3848,"children":3849},{"style":1161},[3850],{"type":998,"value":1164},{"type":993,"tag":1021,"props":3852,"children":3853},{"style":1036},[3854],{"type":998,"value":1169},{"type":993,"tag":1021,"props":3856,"children":3857},{"style":1053},[3858],{"type":998,"value":3859},"\"After restriction:\"",{"type":993,"tag":1021,"props":3861,"children":3862},{"style":1036},[3863],{"type":998,"value":3830},{"type":993,"tag":1193,"props":3865,"children":3867},{"id":3866},"difference-update",[3868],{"type":998,"value":3869},"Difference Update",{"type":993,"tag":1001,"props":3871,"children":3872},{},[3873],{"type":998,"value":3874},"Difference update removes specified elements from the original set, providing selective element removal.",{"type":993,"tag":1007,"props":3876,"children":3877},{},[3878],{"type":993,"tag":1011,"props":3879,"children":3881},{"className":1013,"code":3880,"language":6,"meta":8,"style":8},"current_users = {'user1', 'user2', 'user3', 'user4'}\ninactive_users = {'user2', 'user4'}\n\nprint(\"Before cleanup:\", current_users)\ncurrent_users.difference_update(inactive_users)  # or current_users -= inactive_users\nprint(\"After cleanup:\", current_users)\n",[3882],{"type":993,"tag":1017,"props":3883,"children":3884},{"__ignoreMap":8},[3885,3937,3969,3976,3997,4010],{"type":993,"tag":1021,"props":3886,"children":3887},{"class":1023,"line":12},[3888,3893,3897,3901,3906,3910,3915,3919,3924,3928,3933],{"type":993,"tag":1021,"props":3889,"children":3890},{"style":1036},[3891],{"type":998,"value":3892},"current_users ",{"type":993,"tag":1021,"props":3894,"children":3895},{"style":1042},[3896],{"type":998,"value":1045},{"type":993,"tag":1021,"props":3898,"children":3899},{"style":1036},[3900],{"type":998,"value":1050},{"type":993,"tag":1021,"props":3902,"children":3903},{"style":1053},[3904],{"type":998,"value":3905},"'user1'",{"type":993,"tag":1021,"props":3907,"children":3908},{"style":1036},[3909],{"type":998,"value":1061},{"type":993,"tag":1021,"props":3911,"children":3912},{"style":1053},[3913],{"type":998,"value":3914},"'user2'",{"type":993,"tag":1021,"props":3916,"children":3917},{"style":1036},[3918],{"type":998,"value":1061},{"type":993,"tag":1021,"props":3920,"children":3921},{"style":1053},[3922],{"type":998,"value":3923},"'user3'",{"type":993,"tag":1021,"props":3925,"children":3926},{"style":1036},[3927],{"type":998,"value":1061},{"type":993,"tag":1021,"props":3929,"children":3930},{"style":1053},[3931],{"type":998,"value":3932},"'user4'",{"type":993,"tag":1021,"props":3934,"children":3935},{"style":1036},[3936],{"type":998,"value":1080},{"type":993,"tag":1021,"props":3938,"children":3939},{"class":1023,"line":27},[3940,3945,3949,3953,3957,3961,3965],{"type":993,"tag":1021,"props":3941,"children":3942},{"style":1036},[3943],{"type":998,"value":3944},"inactive_users ",{"type":993,"tag":1021,"props":3946,"children":3947},{"style":1042},[3948],{"type":998,"value":1045},{"type":993,"tag":1021,"props":3950,"children":3951},{"style":1036},[3952],{"type":998,"value":1050},{"type":993,"tag":1021,"props":3954,"children":3955},{"style":1053},[3956],{"type":998,"value":3914},{"type":993,"tag":1021,"props":3958,"children":3959},{"style":1036},[3960],{"type":998,"value":1061},{"type":993,"tag":1021,"props":3962,"children":3963},{"style":1053},[3964],{"type":998,"value":3932},{"type":993,"tag":1021,"props":3966,"children":3967},{"style":1036},[3968],{"type":998,"value":1080},{"type":993,"tag":1021,"props":3970,"children":3971},{"class":1023,"line":36},[3972],{"type":993,"tag":1021,"props":3973,"children":3974},{"emptyLinePlaceholder":13},[3975],{"type":998,"value":1130},{"type":993,"tag":1021,"props":3977,"children":3978},{"class":1023,"line":45},[3979,3983,3987,3992],{"type":993,"tag":1021,"props":3980,"children":3981},{"style":1161},[3982],{"type":998,"value":1164},{"type":993,"tag":1021,"props":3984,"children":3985},{"style":1036},[3986],{"type":998,"value":1169},{"type":993,"tag":1021,"props":3988,"children":3989},{"style":1053},[3990],{"type":998,"value":3991},"\"Before cleanup:\"",{"type":993,"tag":1021,"props":3993,"children":3994},{"style":1036},[3995],{"type":998,"value":3996},", current_users)\n",{"type":993,"tag":1021,"props":3998,"children":3999},{"class":1023,"line":54},[4000,4005],{"type":993,"tag":1021,"props":4001,"children":4002},{"style":1036},[4003],{"type":998,"value":4004},"current_users.difference_update(inactive_users)  ",{"type":993,"tag":1021,"props":4006,"children":4007},{"style":1027},[4008],{"type":998,"value":4009},"# or current_users -= inactive_users\n",{"type":993,"tag":1021,"props":4011,"children":4012},{"class":1023,"line":63},[4013,4017,4021,4026],{"type":993,"tag":1021,"props":4014,"children":4015},{"style":1161},[4016],{"type":998,"value":1164},{"type":993,"tag":1021,"props":4018,"children":4019},{"style":1036},[4020],{"type":998,"value":1169},{"type":993,"tag":1021,"props":4022,"children":4023},{"style":1053},[4024],{"type":998,"value":4025},"\"After cleanup:\"",{"type":993,"tag":1021,"props":4027,"children":4028},{"style":1036},[4029],{"type":998,"value":3996},{"type":993,"tag":1181,"props":4031,"children":4033},{"id":4032},"practical-examples",[4034],{"type":998,"value":4035},"🎯 Practical Examples",{"type":993,"tag":1193,"props":4037,"children":4039},{"id":4038},"data-analysis",[4040],{"type":998,"value":4041},"Data Analysis",{"type":993,"tag":1001,"props":4043,"children":4044},{},[4045],{"type":998,"value":4046},"Website analytics require combining visitor data from different time periods to understand user behavior patterns.",{"type":993,"tag":1007,"props":4048,"children":4049},{},[4050],{"type":993,"tag":1011,"props":4051,"children":4053},{"className":1013,"code":4052,"language":6,"meta":8,"style":8},"# Website visitors analysis\nmonday_visitors = {'user1', 'user2', 'user3', 'user4'}\ntuesday_visitors = {'user3', 'user4', 'user5', 'user6'}\n\n# Total unique visitors\ntotal_visitors = monday_visitors | tuesday_visitors\nprint(\"Total unique visitors:\", len(total_visitors))\n\n# Returning visitors\nreturning = monday_visitors & tuesday_visitors\nprint(\"Returning visitors:\", returning)\n\n# New visitors on Tuesday\nnew_tuesday = tuesday_visitors - monday_visitors\nprint(\"New on Tuesday:\", new_tuesday)\n\n# Exclusive visitors (only one day)\nexclusive = monday_visitors ^ tuesday_visitors\nprint(\"Exclusive visitors:\", exclusive)\n",[4054],{"type":993,"tag":1017,"props":4055,"children":4056},{"__ignoreMap":8},[4057,4065,4113,4163,4170,4178,4204,4234,4241,4249,4273,4294,4301,4309,4335,4356,4363,4371,4395],{"type":993,"tag":1021,"props":4058,"children":4059},{"class":1023,"line":12},[4060],{"type":993,"tag":1021,"props":4061,"children":4062},{"style":1027},[4063],{"type":998,"value":4064},"# Website visitors analysis\n",{"type":993,"tag":1021,"props":4066,"children":4067},{"class":1023,"line":27},[4068,4073,4077,4081,4085,4089,4093,4097,4101,4105,4109],{"type":993,"tag":1021,"props":4069,"children":4070},{"style":1036},[4071],{"type":998,"value":4072},"monday_visitors ",{"type":993,"tag":1021,"props":4074,"children":4075},{"style":1042},[4076],{"type":998,"value":1045},{"type":993,"tag":1021,"props":4078,"children":4079},{"style":1036},[4080],{"type":998,"value":1050},{"type":993,"tag":1021,"props":4082,"children":4083},{"style":1053},[4084],{"type":998,"value":3905},{"type":993,"tag":1021,"props":4086,"children":4087},{"style":1036},[4088],{"type":998,"value":1061},{"type":993,"tag":1021,"props":4090,"children":4091},{"style":1053},[4092],{"type":998,"value":3914},{"type":993,"tag":1021,"props":4094,"children":4095},{"style":1036},[4096],{"type":998,"value":1061},{"type":993,"tag":1021,"props":4098,"children":4099},{"style":1053},[4100],{"type":998,"value":3923},{"type":993,"tag":1021,"props":4102,"children":4103},{"style":1036},[4104],{"type":998,"value":1061},{"type":993,"tag":1021,"props":4106,"children":4107},{"style":1053},[4108],{"type":998,"value":3932},{"type":993,"tag":1021,"props":4110,"children":4111},{"style":1036},[4112],{"type":998,"value":1080},{"type":993,"tag":1021,"props":4114,"children":4115},{"class":1023,"line":36},[4116,4121,4125,4129,4133,4137,4141,4145,4150,4154,4159],{"type":993,"tag":1021,"props":4117,"children":4118},{"style":1036},[4119],{"type":998,"value":4120},"tuesday_visitors ",{"type":993,"tag":1021,"props":4122,"children":4123},{"style":1042},[4124],{"type":998,"value":1045},{"type":993,"tag":1021,"props":4126,"children":4127},{"style":1036},[4128],{"type":998,"value":1050},{"type":993,"tag":1021,"props":4130,"children":4131},{"style":1053},[4132],{"type":998,"value":3923},{"type":993,"tag":1021,"props":4134,"children":4135},{"style":1036},[4136],{"type":998,"value":1061},{"type":993,"tag":1021,"props":4138,"children":4139},{"style":1053},[4140],{"type":998,"value":3932},{"type":993,"tag":1021,"props":4142,"children":4143},{"style":1036},[4144],{"type":998,"value":1061},{"type":993,"tag":1021,"props":4146,"children":4147},{"style":1053},[4148],{"type":998,"value":4149},"'user5'",{"type":993,"tag":1021,"props":4151,"children":4152},{"style":1036},[4153],{"type":998,"value":1061},{"type":993,"tag":1021,"props":4155,"children":4156},{"style":1053},[4157],{"type":998,"value":4158},"'user6'",{"type":993,"tag":1021,"props":4160,"children":4161},{"style":1036},[4162],{"type":998,"value":1080},{"type":993,"tag":1021,"props":4164,"children":4165},{"class":1023,"line":45},[4166],{"type":993,"tag":1021,"props":4167,"children":4168},{"emptyLinePlaceholder":13},[4169],{"type":998,"value":1130},{"type":993,"tag":1021,"props":4171,"children":4172},{"class":1023,"line":54},[4173],{"type":993,"tag":1021,"props":4174,"children":4175},{"style":1027},[4176],{"type":998,"value":4177},"# Total unique visitors\n",{"type":993,"tag":1021,"props":4179,"children":4180},{"class":1023,"line":63},[4181,4186,4190,4195,4199],{"type":993,"tag":1021,"props":4182,"children":4183},{"style":1036},[4184],{"type":998,"value":4185},"total_visitors ",{"type":993,"tag":1021,"props":4187,"children":4188},{"style":1042},[4189],{"type":998,"value":1045},{"type":993,"tag":1021,"props":4191,"children":4192},{"style":1036},[4193],{"type":998,"value":4194}," monday_visitors ",{"type":993,"tag":1021,"props":4196,"children":4197},{"style":1042},[4198],{"type":998,"value":1588},{"type":993,"tag":1021,"props":4200,"children":4201},{"style":1036},[4202],{"type":998,"value":4203}," tuesday_visitors\n",{"type":993,"tag":1021,"props":4205,"children":4206},{"class":1023,"line":72},[4207,4211,4215,4220,4224,4229],{"type":993,"tag":1021,"props":4208,"children":4209},{"style":1161},[4210],{"type":998,"value":1164},{"type":993,"tag":1021,"props":4212,"children":4213},{"style":1036},[4214],{"type":998,"value":1169},{"type":993,"tag":1021,"props":4216,"children":4217},{"style":1053},[4218],{"type":998,"value":4219},"\"Total unique visitors:\"",{"type":993,"tag":1021,"props":4221,"children":4222},{"style":1036},[4223],{"type":998,"value":1061},{"type":993,"tag":1021,"props":4225,"children":4226},{"style":1161},[4227],{"type":998,"value":4228},"len",{"type":993,"tag":1021,"props":4230,"children":4231},{"style":1036},[4232],{"type":998,"value":4233},"(total_visitors))\n",{"type":993,"tag":1021,"props":4235,"children":4236},{"class":1023,"line":81},[4237],{"type":993,"tag":1021,"props":4238,"children":4239},{"emptyLinePlaceholder":13},[4240],{"type":998,"value":1130},{"type":993,"tag":1021,"props":4242,"children":4243},{"class":1023,"line":91},[4244],{"type":993,"tag":1021,"props":4245,"children":4246},{"style":1027},[4247],{"type":998,"value":4248},"# Returning visitors\n",{"type":993,"tag":1021,"props":4250,"children":4251},{"class":1023,"line":100},[4252,4257,4261,4265,4269],{"type":993,"tag":1021,"props":4253,"children":4254},{"style":1036},[4255],{"type":998,"value":4256},"returning ",{"type":993,"tag":1021,"props":4258,"children":4259},{"style":1042},[4260],{"type":998,"value":1045},{"type":993,"tag":1021,"props":4262,"children":4263},{"style":1036},[4264],{"type":998,"value":4194},{"type":993,"tag":1021,"props":4266,"children":4267},{"style":1042},[4268],{"type":998,"value":2244},{"type":993,"tag":1021,"props":4270,"children":4271},{"style":1036},[4272],{"type":998,"value":4203},{"type":993,"tag":1021,"props":4274,"children":4275},{"class":1023,"line":109},[4276,4280,4284,4289],{"type":993,"tag":1021,"props":4277,"children":4278},{"style":1161},[4279],{"type":998,"value":1164},{"type":993,"tag":1021,"props":4281,"children":4282},{"style":1036},[4283],{"type":998,"value":1169},{"type":993,"tag":1021,"props":4285,"children":4286},{"style":1053},[4287],{"type":998,"value":4288},"\"Returning visitors:\"",{"type":993,"tag":1021,"props":4290,"children":4291},{"style":1036},[4292],{"type":998,"value":4293},", returning)\n",{"type":993,"tag":1021,"props":4295,"children":4296},{"class":1023,"line":118},[4297],{"type":993,"tag":1021,"props":4298,"children":4299},{"emptyLinePlaceholder":13},[4300],{"type":998,"value":1130},{"type":993,"tag":1021,"props":4302,"children":4303},{"class":1023,"line":127},[4304],{"type":993,"tag":1021,"props":4305,"children":4306},{"style":1027},[4307],{"type":998,"value":4308},"# New visitors on Tuesday\n",{"type":993,"tag":1021,"props":4310,"children":4311},{"class":1023,"line":136},[4312,4317,4321,4326,4330],{"type":993,"tag":1021,"props":4313,"children":4314},{"style":1036},[4315],{"type":998,"value":4316},"new_tuesday ",{"type":993,"tag":1021,"props":4318,"children":4319},{"style":1042},[4320],{"type":998,"value":1045},{"type":993,"tag":1021,"props":4322,"children":4323},{"style":1036},[4324],{"type":998,"value":4325}," tuesday_visitors ",{"type":993,"tag":1021,"props":4327,"children":4328},{"style":1042},[4329],{"type":998,"value":2878},{"type":993,"tag":1021,"props":4331,"children":4332},{"style":1036},[4333],{"type":998,"value":4334}," monday_visitors\n",{"type":993,"tag":1021,"props":4336,"children":4337},{"class":1023,"line":146},[4338,4342,4346,4351],{"type":993,"tag":1021,"props":4339,"children":4340},{"style":1161},[4341],{"type":998,"value":1164},{"type":993,"tag":1021,"props":4343,"children":4344},{"style":1036},[4345],{"type":998,"value":1169},{"type":993,"tag":1021,"props":4347,"children":4348},{"style":1053},[4349],{"type":998,"value":4350},"\"New on Tuesday:\"",{"type":993,"tag":1021,"props":4352,"children":4353},{"style":1036},[4354],{"type":998,"value":4355},", new_tuesday)\n",{"type":993,"tag":1021,"props":4357,"children":4358},{"class":1023,"line":155},[4359],{"type":993,"tag":1021,"props":4360,"children":4361},{"emptyLinePlaceholder":13},[4362],{"type":998,"value":1130},{"type":993,"tag":1021,"props":4364,"children":4365},{"class":1023,"line":164},[4366],{"type":993,"tag":1021,"props":4367,"children":4368},{"style":1027},[4369],{"type":998,"value":4370},"# Exclusive visitors (only one day)\n",{"type":993,"tag":1021,"props":4372,"children":4373},{"class":1023,"line":173},[4374,4379,4383,4387,4391],{"type":993,"tag":1021,"props":4375,"children":4376},{"style":1036},[4377],{"type":998,"value":4378},"exclusive ",{"type":993,"tag":1021,"props":4380,"children":4381},{"style":1042},[4382],{"type":998,"value":1045},{"type":993,"tag":1021,"props":4384,"children":4385},{"style":1036},[4386],{"type":998,"value":4194},{"type":993,"tag":1021,"props":4388,"children":4389},{"style":1042},[4390],{"type":998,"value":3160},{"type":993,"tag":1021,"props":4392,"children":4393},{"style":1036},[4394],{"type":998,"value":4203},{"type":993,"tag":1021,"props":4396,"children":4397},{"class":1023,"line":182},[4398,4402,4406,4411],{"type":993,"tag":1021,"props":4399,"children":4400},{"style":1161},[4401],{"type":998,"value":1164},{"type":993,"tag":1021,"props":4403,"children":4404},{"style":1036},[4405],{"type":998,"value":1169},{"type":993,"tag":1021,"props":4407,"children":4408},{"style":1053},[4409],{"type":998,"value":4410},"\"Exclusive visitors:\"",{"type":993,"tag":1021,"props":4412,"children":4413},{"style":1036},[4414],{"type":998,"value":4415},", exclusive)\n",{"type":993,"tag":1193,"props":4417,"children":4419},{"id":4418},"inventory-management",[4420],{"type":998,"value":4421},"Inventory Management",{"type":993,"tag":1001,"props":4423,"children":4424},{},[4425],{"type":998,"value":4426},"Warehouse management systems use set operations to track product availability across multiple locations.",{"type":993,"tag":1007,"props":4428,"children":4429},{},[4430],{"type":993,"tag":1011,"props":4431,"children":4433},{"className":1013,"code":4432,"language":6,"meta":8,"style":8},"warehouse_a = {'laptop', 'mouse', 'keyboard', 'monitor'}\nwarehouse_b = {'mouse', 'keyboard', 'printer', 'scanner'}\n\n# All available products\nall_products = warehouse_a.union(warehouse_b)\nprint(\"All products:\", all_products)\n\n# Products in both warehouses\ncommon_products = warehouse_a & warehouse_b\nprint(\"Common products:\", common_products)\n\n# Products only in warehouse A\nonly_a = warehouse_a - warehouse_b\nprint(\"Only in warehouse A:\", only_a)\n",[4434],{"type":993,"tag":1017,"props":4435,"children":4436},{"__ignoreMap":8},[4437,4489,4539,4546,4554,4571,4592,4599,4607,4633,4654,4661,4669,4693],{"type":993,"tag":1021,"props":4438,"children":4439},{"class":1023,"line":12},[4440,4445,4449,4453,4458,4462,4467,4471,4476,4480,4485],{"type":993,"tag":1021,"props":4441,"children":4442},{"style":1036},[4443],{"type":998,"value":4444},"warehouse_a ",{"type":993,"tag":1021,"props":4446,"children":4447},{"style":1042},[4448],{"type":998,"value":1045},{"type":993,"tag":1021,"props":4450,"children":4451},{"style":1036},[4452],{"type":998,"value":1050},{"type":993,"tag":1021,"props":4454,"children":4455},{"style":1053},[4456],{"type":998,"value":4457},"'laptop'",{"type":993,"tag":1021,"props":4459,"children":4460},{"style":1036},[4461],{"type":998,"value":1061},{"type":993,"tag":1021,"props":4463,"children":4464},{"style":1053},[4465],{"type":998,"value":4466},"'mouse'",{"type":993,"tag":1021,"props":4468,"children":4469},{"style":1036},[4470],{"type":998,"value":1061},{"type":993,"tag":1021,"props":4472,"children":4473},{"style":1053},[4474],{"type":998,"value":4475},"'keyboard'",{"type":993,"tag":1021,"props":4477,"children":4478},{"style":1036},[4479],{"type":998,"value":1061},{"type":993,"tag":1021,"props":4481,"children":4482},{"style":1053},[4483],{"type":998,"value":4484},"'monitor'",{"type":993,"tag":1021,"props":4486,"children":4487},{"style":1036},[4488],{"type":998,"value":1080},{"type":993,"tag":1021,"props":4490,"children":4491},{"class":1023,"line":27},[4492,4497,4501,4505,4509,4513,4517,4521,4526,4530,4535],{"type":993,"tag":1021,"props":4493,"children":4494},{"style":1036},[4495],{"type":998,"value":4496},"warehouse_b ",{"type":993,"tag":1021,"props":4498,"children":4499},{"style":1042},[4500],{"type":998,"value":1045},{"type":993,"tag":1021,"props":4502,"children":4503},{"style":1036},[4504],{"type":998,"value":1050},{"type":993,"tag":1021,"props":4506,"children":4507},{"style":1053},[4508],{"type":998,"value":4466},{"type":993,"tag":1021,"props":4510,"children":4511},{"style":1036},[4512],{"type":998,"value":1061},{"type":993,"tag":1021,"props":4514,"children":4515},{"style":1053},[4516],{"type":998,"value":4475},{"type":993,"tag":1021,"props":4518,"children":4519},{"style":1036},[4520],{"type":998,"value":1061},{"type":993,"tag":1021,"props":4522,"children":4523},{"style":1053},[4524],{"type":998,"value":4525},"'printer'",{"type":993,"tag":1021,"props":4527,"children":4528},{"style":1036},[4529],{"type":998,"value":1061},{"type":993,"tag":1021,"props":4531,"children":4532},{"style":1053},[4533],{"type":998,"value":4534},"'scanner'",{"type":993,"tag":1021,"props":4536,"children":4537},{"style":1036},[4538],{"type":998,"value":1080},{"type":993,"tag":1021,"props":4540,"children":4541},{"class":1023,"line":36},[4542],{"type":993,"tag":1021,"props":4543,"children":4544},{"emptyLinePlaceholder":13},[4545],{"type":998,"value":1130},{"type":993,"tag":1021,"props":4547,"children":4548},{"class":1023,"line":45},[4549],{"type":993,"tag":1021,"props":4550,"children":4551},{"style":1027},[4552],{"type":998,"value":4553},"# All available products\n",{"type":993,"tag":1021,"props":4555,"children":4556},{"class":1023,"line":54},[4557,4562,4566],{"type":993,"tag":1021,"props":4558,"children":4559},{"style":1036},[4560],{"type":998,"value":4561},"all_products ",{"type":993,"tag":1021,"props":4563,"children":4564},{"style":1042},[4565],{"type":998,"value":1045},{"type":993,"tag":1021,"props":4567,"children":4568},{"style":1036},[4569],{"type":998,"value":4570}," warehouse_a.union(warehouse_b)\n",{"type":993,"tag":1021,"props":4572,"children":4573},{"class":1023,"line":63},[4574,4578,4582,4587],{"type":993,"tag":1021,"props":4575,"children":4576},{"style":1161},[4577],{"type":998,"value":1164},{"type":993,"tag":1021,"props":4579,"children":4580},{"style":1036},[4581],{"type":998,"value":1169},{"type":993,"tag":1021,"props":4583,"children":4584},{"style":1053},[4585],{"type":998,"value":4586},"\"All products:\"",{"type":993,"tag":1021,"props":4588,"children":4589},{"style":1036},[4590],{"type":998,"value":4591},", all_products)\n",{"type":993,"tag":1021,"props":4593,"children":4594},{"class":1023,"line":72},[4595],{"type":993,"tag":1021,"props":4596,"children":4597},{"emptyLinePlaceholder":13},[4598],{"type":998,"value":1130},{"type":993,"tag":1021,"props":4600,"children":4601},{"class":1023,"line":81},[4602],{"type":993,"tag":1021,"props":4603,"children":4604},{"style":1027},[4605],{"type":998,"value":4606},"# Products in both warehouses\n",{"type":993,"tag":1021,"props":4608,"children":4609},{"class":1023,"line":91},[4610,4615,4619,4624,4628],{"type":993,"tag":1021,"props":4611,"children":4612},{"style":1036},[4613],{"type":998,"value":4614},"common_products ",{"type":993,"tag":1021,"props":4616,"children":4617},{"style":1042},[4618],{"type":998,"value":1045},{"type":993,"tag":1021,"props":4620,"children":4621},{"style":1036},[4622],{"type":998,"value":4623}," warehouse_a ",{"type":993,"tag":1021,"props":4625,"children":4626},{"style":1042},[4627],{"type":998,"value":2244},{"type":993,"tag":1021,"props":4629,"children":4630},{"style":1036},[4631],{"type":998,"value":4632}," warehouse_b\n",{"type":993,"tag":1021,"props":4634,"children":4635},{"class":1023,"line":100},[4636,4640,4644,4649],{"type":993,"tag":1021,"props":4637,"children":4638},{"style":1161},[4639],{"type":998,"value":1164},{"type":993,"tag":1021,"props":4641,"children":4642},{"style":1036},[4643],{"type":998,"value":1169},{"type":993,"tag":1021,"props":4645,"children":4646},{"style":1053},[4647],{"type":998,"value":4648},"\"Common products:\"",{"type":993,"tag":1021,"props":4650,"children":4651},{"style":1036},[4652],{"type":998,"value":4653},", common_products)\n",{"type":993,"tag":1021,"props":4655,"children":4656},{"class":1023,"line":109},[4657],{"type":993,"tag":1021,"props":4658,"children":4659},{"emptyLinePlaceholder":13},[4660],{"type":998,"value":1130},{"type":993,"tag":1021,"props":4662,"children":4663},{"class":1023,"line":118},[4664],{"type":993,"tag":1021,"props":4665,"children":4666},{"style":1027},[4667],{"type":998,"value":4668},"# Products only in warehouse A\n",{"type":993,"tag":1021,"props":4670,"children":4671},{"class":1023,"line":127},[4672,4677,4681,4685,4689],{"type":993,"tag":1021,"props":4673,"children":4674},{"style":1036},[4675],{"type":998,"value":4676},"only_a ",{"type":993,"tag":1021,"props":4678,"children":4679},{"style":1042},[4680],{"type":998,"value":1045},{"type":993,"tag":1021,"props":4682,"children":4683},{"style":1036},[4684],{"type":998,"value":4623},{"type":993,"tag":1021,"props":4686,"children":4687},{"style":1042},[4688],{"type":998,"value":2878},{"type":993,"tag":1021,"props":4690,"children":4691},{"style":1036},[4692],{"type":998,"value":4632},{"type":993,"tag":1021,"props":4694,"children":4695},{"class":1023,"line":136},[4696,4700,4704,4709],{"type":993,"tag":1021,"props":4697,"children":4698},{"style":1161},[4699],{"type":998,"value":1164},{"type":993,"tag":1021,"props":4701,"children":4702},{"style":1036},[4703],{"type":998,"value":1169},{"type":993,"tag":1021,"props":4705,"children":4706},{"style":1053},[4707],{"type":998,"value":4708},"\"Only in warehouse A:\"",{"type":993,"tag":1021,"props":4710,"children":4711},{"style":1036},[4712],{"type":998,"value":4713},", only_a)\n",{"type":993,"tag":4715,"props":4716,"children":4718},"content-exercise",{":widget-view":4717,"category":6,"id":501},"true",[],{"type":993,"tag":1001,"props":4720,"children":4721},{},[4722,4724,4730],{"type":998,"value":4723},"Learn more about ",{"type":993,"tag":4725,"props":4726,"children":4727},"a",{"href":507},[4728],{"type":998,"value":4729},"set operations",{"type":998,"value":4731}," to master advanced mathematical operations and comparisons with sets.",{"type":993,"tag":4733,"props":4734,"children":4737},"exercise",{"hint":4735,"prompt":4736},"Use the intersection operator (&) or intersection() method to find common elements between two sets","Create a function that finds common interests between two friends using set intersection. Return the set of shared hobbies.",[4738],{"type":993,"tag":1011,"props":4739,"children":4741},{"className":1013,"code":4740,"language":6,"meta":8,"style":8},"def find_common_hobbies(friend1_hobbies, friend2_hobbies):\n    # TODO: Find common hobbies using set intersection\n    # TODO: Return the set of shared hobbies\n    pass\n\n# Test data\nalice_hobbies = {'reading', 'swimming', 'cooking', 'painting'}\nbob_hobbies = {'swimming', 'gaming', 'cooking', 'music'}\n\ncommon = find_common_hobbies(alice_hobbies, bob_hobbies)\nprint(f\"Alice's hobbies: {alice_hobbies}\")\nprint(f\"Bob's hobbies: {bob_hobbies}\")\nprint(f\"Common hobbies: {common}\")\n",[4742],{"type":993,"tag":1017,"props":4743,"children":4744},{"__ignoreMap":8},[4745,4764,4782,4798,4806,4813,4821,4873,4923,4930,4947,4993,5034],{"type":993,"tag":1021,"props":4746,"children":4747},{"class":1023,"line":12},[4748,4753,4759],{"type":993,"tag":1021,"props":4749,"children":4750},{"style":1042},[4751],{"type":998,"value":4752},"def",{"type":993,"tag":1021,"props":4754,"children":4756},{"style":4755},"--shiki-default:#6F42C1;--shiki-app-dark-mode:#B392F0",[4757],{"type":998,"value":4758}," find_common_hobbies",{"type":993,"tag":1021,"props":4760,"children":4761},{"style":1036},[4762],{"type":998,"value":4763},"(friend1_hobbies, friend2_hobbies):\n",{"type":993,"tag":1021,"props":4765,"children":4766},{"class":1023,"line":27},[4767,4772,4777],{"type":993,"tag":1021,"props":4768,"children":4769},{"style":1027},[4770],{"type":998,"value":4771},"    # ",{"type":993,"tag":1021,"props":4773,"children":4774},{"style":1042},[4775],{"type":998,"value":4776},"TODO",{"type":993,"tag":1021,"props":4778,"children":4779},{"style":1027},[4780],{"type":998,"value":4781},": Find common hobbies using set intersection\n",{"type":993,"tag":1021,"props":4783,"children":4784},{"class":1023,"line":36},[4785,4789,4793],{"type":993,"tag":1021,"props":4786,"children":4787},{"style":1027},[4788],{"type":998,"value":4771},{"type":993,"tag":1021,"props":4790,"children":4791},{"style":1042},[4792],{"type":998,"value":4776},{"type":993,"tag":1021,"props":4794,"children":4795},{"style":1027},[4796],{"type":998,"value":4797},": Return the set of shared hobbies\n",{"type":993,"tag":1021,"props":4799,"children":4800},{"class":1023,"line":45},[4801],{"type":993,"tag":1021,"props":4802,"children":4803},{"style":1042},[4804],{"type":998,"value":4805},"    pass\n",{"type":993,"tag":1021,"props":4807,"children":4808},{"class":1023,"line":54},[4809],{"type":993,"tag":1021,"props":4810,"children":4811},{"emptyLinePlaceholder":13},[4812],{"type":998,"value":1130},{"type":993,"tag":1021,"props":4814,"children":4815},{"class":1023,"line":63},[4816],{"type":993,"tag":1021,"props":4817,"children":4818},{"style":1027},[4819],{"type":998,"value":4820},"# Test data\n",{"type":993,"tag":1021,"props":4822,"children":4823},{"class":1023,"line":72},[4824,4829,4833,4837,4842,4846,4851,4855,4860,4864,4869],{"type":993,"tag":1021,"props":4825,"children":4826},{"style":1036},[4827],{"type":998,"value":4828},"alice_hobbies ",{"type":993,"tag":1021,"props":4830,"children":4831},{"style":1042},[4832],{"type":998,"value":1045},{"type":993,"tag":1021,"props":4834,"children":4835},{"style":1036},[4836],{"type":998,"value":1050},{"type":993,"tag":1021,"props":4838,"children":4839},{"style":1053},[4840],{"type":998,"value":4841},"'reading'",{"type":993,"tag":1021,"props":4843,"children":4844},{"style":1036},[4845],{"type":998,"value":1061},{"type":993,"tag":1021,"props":4847,"children":4848},{"style":1053},[4849],{"type":998,"value":4850},"'swimming'",{"type":993,"tag":1021,"props":4852,"children":4853},{"style":1036},[4854],{"type":998,"value":1061},{"type":993,"tag":1021,"props":4856,"children":4857},{"style":1053},[4858],{"type":998,"value":4859},"'cooking'",{"type":993,"tag":1021,"props":4861,"children":4862},{"style":1036},[4863],{"type":998,"value":1061},{"type":993,"tag":1021,"props":4865,"children":4866},{"style":1053},[4867],{"type":998,"value":4868},"'painting'",{"type":993,"tag":1021,"props":4870,"children":4871},{"style":1036},[4872],{"type":998,"value":1080},{"type":993,"tag":1021,"props":4874,"children":4875},{"class":1023,"line":81},[4876,4881,4885,4889,4893,4897,4902,4906,4910,4914,4919],{"type":993,"tag":1021,"props":4877,"children":4878},{"style":1036},[4879],{"type":998,"value":4880},"bob_hobbies ",{"type":993,"tag":1021,"props":4882,"children":4883},{"style":1042},[4884],{"type":998,"value":1045},{"type":993,"tag":1021,"props":4886,"children":4887},{"style":1036},[4888],{"type":998,"value":1050},{"type":993,"tag":1021,"props":4890,"children":4891},{"style":1053},[4892],{"type":998,"value":4850},{"type":993,"tag":1021,"props":4894,"children":4895},{"style":1036},[4896],{"type":998,"value":1061},{"type":993,"tag":1021,"props":4898,"children":4899},{"style":1053},[4900],{"type":998,"value":4901},"'gaming'",{"type":993,"tag":1021,"props":4903,"children":4904},{"style":1036},[4905],{"type":998,"value":1061},{"type":993,"tag":1021,"props":4907,"children":4908},{"style":1053},[4909],{"type":998,"value":4859},{"type":993,"tag":1021,"props":4911,"children":4912},{"style":1036},[4913],{"type":998,"value":1061},{"type":993,"tag":1021,"props":4915,"children":4916},{"style":1053},[4917],{"type":998,"value":4918},"'music'",{"type":993,"tag":1021,"props":4920,"children":4921},{"style":1036},[4922],{"type":998,"value":1080},{"type":993,"tag":1021,"props":4924,"children":4925},{"class":1023,"line":91},[4926],{"type":993,"tag":1021,"props":4927,"children":4928},{"emptyLinePlaceholder":13},[4929],{"type":998,"value":1130},{"type":993,"tag":1021,"props":4931,"children":4932},{"class":1023,"line":100},[4933,4938,4942],{"type":993,"tag":1021,"props":4934,"children":4935},{"style":1036},[4936],{"type":998,"value":4937},"common ",{"type":993,"tag":1021,"props":4939,"children":4940},{"style":1042},[4941],{"type":998,"value":1045},{"type":993,"tag":1021,"props":4943,"children":4944},{"style":1036},[4945],{"type":998,"value":4946}," find_common_hobbies(alice_hobbies, bob_hobbies)\n",{"type":993,"tag":1021,"props":4948,"children":4949},{"class":1023,"line":109},[4950,4954,4958,4963,4968,4973,4978,4983,4988],{"type":993,"tag":1021,"props":4951,"children":4952},{"style":1161},[4953],{"type":998,"value":1164},{"type":993,"tag":1021,"props":4955,"children":4956},{"style":1036},[4957],{"type":998,"value":1169},{"type":993,"tag":1021,"props":4959,"children":4960},{"style":1042},[4961],{"type":998,"value":4962},"f",{"type":993,"tag":1021,"props":4964,"children":4965},{"style":1053},[4966],{"type":998,"value":4967},"\"Alice's hobbies: ",{"type":993,"tag":1021,"props":4969,"children":4970},{"style":1161},[4971],{"type":998,"value":4972},"{",{"type":993,"tag":1021,"props":4974,"children":4975},{"style":1036},[4976],{"type":998,"value":4977},"alice_hobbies",{"type":993,"tag":1021,"props":4979,"children":4980},{"style":1161},[4981],{"type":998,"value":4982},"}",{"type":993,"tag":1021,"props":4984,"children":4985},{"style":1053},[4986],{"type":998,"value":4987},"\"",{"type":993,"tag":1021,"props":4989,"children":4990},{"style":1036},[4991],{"type":998,"value":4992},")\n",{"type":993,"tag":1021,"props":4994,"children":4995},{"class":1023,"line":118},[4996,5000,5004,5008,5013,5017,5022,5026,5030],{"type":993,"tag":1021,"props":4997,"children":4998},{"style":1161},[4999],{"type":998,"value":1164},{"type":993,"tag":1021,"props":5001,"children":5002},{"style":1036},[5003],{"type":998,"value":1169},{"type":993,"tag":1021,"props":5005,"children":5006},{"style":1042},[5007],{"type":998,"value":4962},{"type":993,"tag":1021,"props":5009,"children":5010},{"style":1053},[5011],{"type":998,"value":5012},"\"Bob's hobbies: ",{"type":993,"tag":1021,"props":5014,"children":5015},{"style":1161},[5016],{"type":998,"value":4972},{"type":993,"tag":1021,"props":5018,"children":5019},{"style":1036},[5020],{"type":998,"value":5021},"bob_hobbies",{"type":993,"tag":1021,"props":5023,"children":5024},{"style":1161},[5025],{"type":998,"value":4982},{"type":993,"tag":1021,"props":5027,"children":5028},{"style":1053},[5029],{"type":998,"value":4987},{"type":993,"tag":1021,"props":5031,"children":5032},{"style":1036},[5033],{"type":998,"value":4992},{"type":993,"tag":1021,"props":5035,"children":5036},{"class":1023,"line":127},[5037,5041,5045,5049,5054,5058,5063,5067,5071],{"type":993,"tag":1021,"props":5038,"children":5039},{"style":1161},[5040],{"type":998,"value":1164},{"type":993,"tag":1021,"props":5042,"children":5043},{"style":1036},[5044],{"type":998,"value":1169},{"type":993,"tag":1021,"props":5046,"children":5047},{"style":1042},[5048],{"type":998,"value":4962},{"type":993,"tag":1021,"props":5050,"children":5051},{"style":1053},[5052],{"type":998,"value":5053},"\"Common hobbies: ",{"type":993,"tag":1021,"props":5055,"children":5056},{"style":1161},[5057],{"type":998,"value":4972},{"type":993,"tag":1021,"props":5059,"children":5060},{"style":1036},[5061],{"type":998,"value":5062},"common",{"type":993,"tag":1021,"props":5064,"children":5065},{"style":1161},[5066],{"type":998,"value":4982},{"type":993,"tag":1021,"props":5068,"children":5069},{"style":1053},[5070],{"type":998,"value":4987},{"type":993,"tag":1021,"props":5072,"children":5073},{"style":1036},[5074],{"type":998,"value":4992},{"type":993,"tag":1193,"props":5076,"children":5078},{"id":5077},"solution-and-explanation",[5079],{"type":998,"value":5080},"Solution and Explanation 💡",{"type":993,"tag":5082,"props":5083,"children":5084},"details",{},[5085,5093,5412,5420],{"type":993,"tag":5086,"props":5087,"children":5090},"summary",{"className":5088},[5089],"cursor-pointer",[5091],{"type":998,"value":5092},"Click to see the complete solution",{"type":993,"tag":1007,"props":5094,"children":5095},{},[5096],{"type":993,"tag":1011,"props":5097,"children":5099},{"className":1013,"code":5098,"language":6,"meta":8,"style":8},"def find_common_hobbies(friend1_hobbies, friend2_hobbies):\n    # Find common hobbies using set intersection\n    common_hobbies = friend1_hobbies & friend2_hobbies\n    return common_hobbies\n\n# Test data\nalice_hobbies = {'reading', 'swimming', 'cooking', 'painting'}\nbob_hobbies = {'swimming', 'gaming', 'cooking', 'music'}\n\ncommon = find_common_hobbies(alice_hobbies, bob_hobbies)\nprint(f\"Alice's hobbies: {alice_hobbies}\")\nprint(f\"Bob's hobbies: {bob_hobbies}\")\nprint(f\"Common hobbies: {common}\")\n",[5100],{"type":993,"tag":1017,"props":5101,"children":5102},{"__ignoreMap":8},[5103,5118,5126,5152,5165,5172,5179,5226,5273,5280,5295,5334,5373],{"type":993,"tag":1021,"props":5104,"children":5105},{"class":1023,"line":12},[5106,5110,5114],{"type":993,"tag":1021,"props":5107,"children":5108},{"style":1042},[5109],{"type":998,"value":4752},{"type":993,"tag":1021,"props":5111,"children":5112},{"style":4755},[5113],{"type":998,"value":4758},{"type":993,"tag":1021,"props":5115,"children":5116},{"style":1036},[5117],{"type":998,"value":4763},{"type":993,"tag":1021,"props":5119,"children":5120},{"class":1023,"line":27},[5121],{"type":993,"tag":1021,"props":5122,"children":5123},{"style":1027},[5124],{"type":998,"value":5125},"    # Find common hobbies using set intersection\n",{"type":993,"tag":1021,"props":5127,"children":5128},{"class":1023,"line":36},[5129,5134,5138,5143,5147],{"type":993,"tag":1021,"props":5130,"children":5131},{"style":1036},[5132],{"type":998,"value":5133},"    common_hobbies ",{"type":993,"tag":1021,"props":5135,"children":5136},{"style":1042},[5137],{"type":998,"value":1045},{"type":993,"tag":1021,"props":5139,"children":5140},{"style":1036},[5141],{"type":998,"value":5142}," friend1_hobbies ",{"type":993,"tag":1021,"props":5144,"children":5145},{"style":1042},[5146],{"type":998,"value":2244},{"type":993,"tag":1021,"props":5148,"children":5149},{"style":1036},[5150],{"type":998,"value":5151}," friend2_hobbies\n",{"type":993,"tag":1021,"props":5153,"children":5154},{"class":1023,"line":45},[5155,5160],{"type":993,"tag":1021,"props":5156,"children":5157},{"style":1042},[5158],{"type":998,"value":5159},"    return",{"type":993,"tag":1021,"props":5161,"children":5162},{"style":1036},[5163],{"type":998,"value":5164}," common_hobbies\n",{"type":993,"tag":1021,"props":5166,"children":5167},{"class":1023,"line":54},[5168],{"type":993,"tag":1021,"props":5169,"children":5170},{"emptyLinePlaceholder":13},[5171],{"type":998,"value":1130},{"type":993,"tag":1021,"props":5173,"children":5174},{"class":1023,"line":63},[5175],{"type":993,"tag":1021,"props":5176,"children":5177},{"style":1027},[5178],{"type":998,"value":4820},{"type":993,"tag":1021,"props":5180,"children":5181},{"class":1023,"line":72},[5182,5186,5190,5194,5198,5202,5206,5210,5214,5218,5222],{"type":993,"tag":1021,"props":5183,"children":5184},{"style":1036},[5185],{"type":998,"value":4828},{"type":993,"tag":1021,"props":5187,"children":5188},{"style":1042},[5189],{"type":998,"value":1045},{"type":993,"tag":1021,"props":5191,"children":5192},{"style":1036},[5193],{"type":998,"value":1050},{"type":993,"tag":1021,"props":5195,"children":5196},{"style":1053},[5197],{"type":998,"value":4841},{"type":993,"tag":1021,"props":5199,"children":5200},{"style":1036},[5201],{"type":998,"value":1061},{"type":993,"tag":1021,"props":5203,"children":5204},{"style":1053},[5205],{"type":998,"value":4850},{"type":993,"tag":1021,"props":5207,"children":5208},{"style":1036},[5209],{"type":998,"value":1061},{"type":993,"tag":1021,"props":5211,"children":5212},{"style":1053},[5213],{"type":998,"value":4859},{"type":993,"tag":1021,"props":5215,"children":5216},{"style":1036},[5217],{"type":998,"value":1061},{"type":993,"tag":1021,"props":5219,"children":5220},{"style":1053},[5221],{"type":998,"value":4868},{"type":993,"tag":1021,"props":5223,"children":5224},{"style":1036},[5225],{"type":998,"value":1080},{"type":993,"tag":1021,"props":5227,"children":5228},{"class":1023,"line":81},[5229,5233,5237,5241,5245,5249,5253,5257,5261,5265,5269],{"type":993,"tag":1021,"props":5230,"children":5231},{"style":1036},[5232],{"type":998,"value":4880},{"type":993,"tag":1021,"props":5234,"children":5235},{"style":1042},[5236],{"type":998,"value":1045},{"type":993,"tag":1021,"props":5238,"children":5239},{"style":1036},[5240],{"type":998,"value":1050},{"type":993,"tag":1021,"props":5242,"children":5243},{"style":1053},[5244],{"type":998,"value":4850},{"type":993,"tag":1021,"props":5246,"children":5247},{"style":1036},[5248],{"type":998,"value":1061},{"type":993,"tag":1021,"props":5250,"children":5251},{"style":1053},[5252],{"type":998,"value":4901},{"type":993,"tag":1021,"props":5254,"children":5255},{"style":1036},[5256],{"type":998,"value":1061},{"type":993,"tag":1021,"props":5258,"children":5259},{"style":1053},[5260],{"type":998,"value":4859},{"type":993,"tag":1021,"props":5262,"children":5263},{"style":1036},[5264],{"type":998,"value":1061},{"type":993,"tag":1021,"props":5266,"children":5267},{"style":1053},[5268],{"type":998,"value":4918},{"type":993,"tag":1021,"props":5270,"children":5271},{"style":1036},[5272],{"type":998,"value":1080},{"type":993,"tag":1021,"props":5274,"children":5275},{"class":1023,"line":91},[5276],{"type":993,"tag":1021,"props":5277,"children":5278},{"emptyLinePlaceholder":13},[5279],{"type":998,"value":1130},{"type":993,"tag":1021,"props":5281,"children":5282},{"class":1023,"line":100},[5283,5287,5291],{"type":993,"tag":1021,"props":5284,"children":5285},{"style":1036},[5286],{"type":998,"value":4937},{"type":993,"tag":1021,"props":5288,"children":5289},{"style":1042},[5290],{"type":998,"value":1045},{"type":993,"tag":1021,"props":5292,"children":5293},{"style":1036},[5294],{"type":998,"value":4946},{"type":993,"tag":1021,"props":5296,"children":5297},{"class":1023,"line":109},[5298,5302,5306,5310,5314,5318,5322,5326,5330],{"type":993,"tag":1021,"props":5299,"children":5300},{"style":1161},[5301],{"type":998,"value":1164},{"type":993,"tag":1021,"props":5303,"children":5304},{"style":1036},[5305],{"type":998,"value":1169},{"type":993,"tag":1021,"props":5307,"children":5308},{"style":1042},[5309],{"type":998,"value":4962},{"type":993,"tag":1021,"props":5311,"children":5312},{"style":1053},[5313],{"type":998,"value":4967},{"type":993,"tag":1021,"props":5315,"children":5316},{"style":1161},[5317],{"type":998,"value":4972},{"type":993,"tag":1021,"props":5319,"children":5320},{"style":1036},[5321],{"type":998,"value":4977},{"type":993,"tag":1021,"props":5323,"children":5324},{"style":1161},[5325],{"type":998,"value":4982},{"type":993,"tag":1021,"props":5327,"children":5328},{"style":1053},[5329],{"type":998,"value":4987},{"type":993,"tag":1021,"props":5331,"children":5332},{"style":1036},[5333],{"type":998,"value":4992},{"type":993,"tag":1021,"props":5335,"children":5336},{"class":1023,"line":118},[5337,5341,5345,5349,5353,5357,5361,5365,5369],{"type":993,"tag":1021,"props":5338,"children":5339},{"style":1161},[5340],{"type":998,"value":1164},{"type":993,"tag":1021,"props":5342,"children":5343},{"style":1036},[5344],{"type":998,"value":1169},{"type":993,"tag":1021,"props":5346,"children":5347},{"style":1042},[5348],{"type":998,"value":4962},{"type":993,"tag":1021,"props":5350,"children":5351},{"style":1053},[5352],{"type":998,"value":5012},{"type":993,"tag":1021,"props":5354,"children":5355},{"style":1161},[5356],{"type":998,"value":4972},{"type":993,"tag":1021,"props":5358,"children":5359},{"style":1036},[5360],{"type":998,"value":5021},{"type":993,"tag":1021,"props":5362,"children":5363},{"style":1161},[5364],{"type":998,"value":4982},{"type":993,"tag":1021,"props":5366,"children":5367},{"style":1053},[5368],{"type":998,"value":4987},{"type":993,"tag":1021,"props":5370,"children":5371},{"style":1036},[5372],{"type":998,"value":4992},{"type":993,"tag":1021,"props":5374,"children":5375},{"class":1023,"line":127},[5376,5380,5384,5388,5392,5396,5400,5404,5408],{"type":993,"tag":1021,"props":5377,"children":5378},{"style":1161},[5379],{"type":998,"value":1164},{"type":993,"tag":1021,"props":5381,"children":5382},{"style":1036},[5383],{"type":998,"value":1169},{"type":993,"tag":1021,"props":5385,"children":5386},{"style":1042},[5387],{"type":998,"value":4962},{"type":993,"tag":1021,"props":5389,"children":5390},{"style":1053},[5391],{"type":998,"value":5053},{"type":993,"tag":1021,"props":5393,"children":5394},{"style":1161},[5395],{"type":998,"value":4972},{"type":993,"tag":1021,"props":5397,"children":5398},{"style":1036},[5399],{"type":998,"value":5062},{"type":993,"tag":1021,"props":5401,"children":5402},{"style":1161},[5403],{"type":998,"value":4982},{"type":993,"tag":1021,"props":5405,"children":5406},{"style":1053},[5407],{"type":998,"value":4987},{"type":993,"tag":1021,"props":5409,"children":5410},{"style":1036},[5411],{"type":998,"value":4992},{"type":993,"tag":1001,"props":5413,"children":5414},{},[5415],{"type":993,"tag":1749,"props":5416,"children":5417},{},[5418],{"type":998,"value":5419},"Key Learning Points:",{"type":993,"tag":1755,"props":5421,"children":5422},{},[5423,5442,5453,5470],{"type":993,"tag":1759,"props":5424,"children":5425},{},[5426,5428,5433,5435,5440],{"type":998,"value":5427},"📌 ",{"type":993,"tag":1749,"props":5429,"children":5430},{},[5431],{"type":998,"value":5432},"Intersection operator",{"type":998,"value":5434},": Use ",{"type":993,"tag":1017,"props":5436,"children":5438},{"className":5437},[],[5439],{"type":998,"value":2244},{"type":998,"value":5441}," to find elements that exist in both sets",{"type":993,"tag":1759,"props":5443,"children":5444},{},[5445,5446,5451],{"type":998,"value":5427},{"type":993,"tag":1749,"props":5447,"children":5448},{},[5449],{"type":998,"value":5450},"Common elements",{"type":998,"value":5452},": Intersection returns only elements present in all sets",{"type":993,"tag":1759,"props":5454,"children":5455},{},[5456,5457,5462,5464],{"type":998,"value":5427},{"type":993,"tag":1749,"props":5458,"children":5459},{},[5460],{"type":998,"value":5461},"Set method alternative",{"type":998,"value":5463},": You can also use ",{"type":993,"tag":1017,"props":5465,"children":5467},{"className":5466},[],[5468],{"type":998,"value":5469},"friend1_hobbies.intersection(friend2_hobbies)",{"type":993,"tag":1759,"props":5471,"children":5472},{},[5473,5474,5479],{"type":998,"value":5427},{"type":993,"tag":1749,"props":5475,"children":5476},{},[5477],{"type":998,"value":5478},"Practical use",{"type":998,"value":5480},": Great for finding shared interests, common items, or overlapping data",{"type":993,"tag":1181,"props":5482,"children":5484},{"id":5483},"test-your-knowledge",[5485],{"type":998,"value":5486},"Test Your Knowledge",{"type":993,"tag":1001,"props":5488,"children":5489},{},[5490],{"type":998,"value":5491},"Test what you've learned about combining sets:",{"type":993,"tag":5493,"props":5494,"children":5498},"redirect-button",{"icon":5495,"label":5496,"url":5497},"pi pi-send","Take Quiz","/tutorial-quiz/python/combining-sets",[],{"type":993,"tag":1181,"props":5500,"children":5502},{"id":5501},"whats-next",[5503],{"type":998,"value":5504},"What's Next?",{"type":993,"tag":1001,"props":5506,"children":5507},{},[5508,5510,5514],{"type":998,"value":5509},"Congratulations! You've learned how to combine sets effectively. Next, you'll explore advanced ",{"type":993,"tag":4725,"props":5511,"children":5512},{"href":507},[5513],{"type":998,"value":508},{"type":998,"value":5515}," where you'll learn mathematical comparisons, subset testing, and advanced manipulation techniques.",{"type":993,"tag":1001,"props":5517,"children":5518},{},[5519,5521,5525],{"type":998,"value":5520},"Ready to continue? Check out our lesson on ",{"type":993,"tag":4725,"props":5522,"children":5523},{"href":507},[5524],{"type":998,"value":508},{"type":998,"value":5526},".",{"type":993,"tag":5528,"props":5529,"children":5530},"style",{},[5531],{"type":998,"value":5532},"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":5534},[5535,5539,5543,5547,5548,5549,5554,5559,5560],{"id":1183,"depth":27,"text":1186,"children":5536},[5537,5538],{"id":1195,"depth":36,"text":1198},{"id":1448,"depth":36,"text":1451},{"id":1729,"depth":27,"text":1732,"children":5540},[5541,5542],{"id":1828,"depth":36,"text":1831},{"id":2105,"depth":36,"text":2108},{"id":2384,"depth":27,"text":2387,"children":5544},[5545,5546],{"id":2479,"depth":36,"text":2482},{"id":1448,"depth":36,"text":2728},{"id":2969,"depth":27,"text":2972},{"id":3189,"depth":27,"text":3192},{"id":3398,"depth":27,"text":3401,"children":5550},[5551,5552,5553],{"id":3533,"depth":36,"text":3536},{"id":3700,"depth":36,"text":3703},{"id":3866,"depth":36,"text":3869},{"id":4032,"depth":27,"text":4035,"children":5555},[5556,5557,5558],{"id":4038,"depth":36,"text":4041},{"id":4418,"depth":36,"text":4421},{"id":5077,"depth":36,"text":5080},{"id":5483,"depth":27,"text":5486},{"id":5501,"depth":27,"text":5504},1782373741870]