[{"data":1,"prerenderedAt":4836},["ShallowReactive",2],{"tutorials-python":3,"category-items-python":987,"content-/python/python-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},"/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",[442],{"_path":443,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":444,"description":445,"slug":446,"order":447,"isParent":13,"icon":14,"body":989,"_type":15,"_id":448,"_source":17,"_file":449,"_stem":450,"_extension":20},{"type":990,"children":991,"toc":4813},"root",[992,1000,1006,1011,1365,1372,1377,1470,1477,1482,1767,1773,1778,2041,2047,2052,2336,2342,2347,2446,2452,2457,2746,2752,2757,3043,3049,3054,3327,3333,3338,3422,3428,3433,3672,3678,3683,3965,3971,3976,4059,4065,4070,4411,4417,4422,4631,4636,4656,4662,4667,4767,4773,4778,4785,4791,4796,4807],{"type":993,"tag":994,"props":995,"children":996},"element","h1",{"id":446},[997],{"type":998,"value":999},"text","🧩 Python Sets",{"type":993,"tag":1001,"props":1002,"children":1003},"p",{},[1004],{"type":998,"value":1005},"Sets are special collections in Python that store unique items only - no duplicates allowed! Think of them like a bag where you can't put two identical things. Sets are perfect for removing duplicates from data, checking membership quickly, and performing mathematical operations like finding common elements between groups.",{"type":993,"tag":1001,"props":1007,"children":1008},{},[1009],{"type":998,"value":1010},"Sets are mutable (you can change them) but can only contain immutable (unchangeable) items like numbers, strings, and tuples.",{"type":993,"tag":1012,"props":1013,"children":1014},"code-try",{},[1015],{"type":993,"tag":1016,"props":1017,"children":1020},"pre",{"className":1018,"code":1019,"language":6,"meta":8,"style":8},"language-python shiki shiki-themes github-light github-dark","# Creating and using sets\nnumbers = {1, 2, 3, 4, 5}\nfruits = {\"apple\", \"banana\", \"orange\"}\n\nprint(f\"Numbers: {numbers}\")\nprint(f\"Fruits: {fruits}\")\n\n# Sets automatically remove duplicates\nduplicate_numbers = {1, 2, 2, 3, 3, 4}\nprint(f\"With duplicates removed: {duplicate_numbers}\")\n",[1021],{"type":993,"tag":1022,"props":1023,"children":1024},"code",{"__ignoreMap":8},[1025,1036,1104,1148,1156,1204,1245,1252,1260,1324],{"type":993,"tag":1026,"props":1027,"children":1029},"span",{"class":1028,"line":12},"line",[1030],{"type":993,"tag":1026,"props":1031,"children":1033},{"style":1032},"--shiki-default:#6A737D;--shiki-app-dark-mode:#6A737D",[1034],{"type":998,"value":1035},"# Creating and using sets\n",{"type":993,"tag":1026,"props":1037,"children":1038},{"class":1028,"line":27},[1039,1045,1051,1056,1062,1067,1072,1076,1081,1085,1090,1094,1099],{"type":993,"tag":1026,"props":1040,"children":1042},{"style":1041},"--shiki-default:#24292E;--shiki-app-dark-mode:#E1E4E8",[1043],{"type":998,"value":1044},"numbers ",{"type":993,"tag":1026,"props":1046,"children":1048},{"style":1047},"--shiki-default:#D73A49;--shiki-app-dark-mode:#F97583",[1049],{"type":998,"value":1050},"=",{"type":993,"tag":1026,"props":1052,"children":1053},{"style":1041},[1054],{"type":998,"value":1055}," {",{"type":993,"tag":1026,"props":1057,"children":1059},{"style":1058},"--shiki-default:#005CC5;--shiki-app-dark-mode:#79B8FF",[1060],{"type":998,"value":1061},"1",{"type":993,"tag":1026,"props":1063,"children":1064},{"style":1041},[1065],{"type":998,"value":1066},", ",{"type":993,"tag":1026,"props":1068,"children":1069},{"style":1058},[1070],{"type":998,"value":1071},"2",{"type":993,"tag":1026,"props":1073,"children":1074},{"style":1041},[1075],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1077,"children":1078},{"style":1058},[1079],{"type":998,"value":1080},"3",{"type":993,"tag":1026,"props":1082,"children":1083},{"style":1041},[1084],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1086,"children":1087},{"style":1058},[1088],{"type":998,"value":1089},"4",{"type":993,"tag":1026,"props":1091,"children":1092},{"style":1041},[1093],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1095,"children":1096},{"style":1058},[1097],{"type":998,"value":1098},"5",{"type":993,"tag":1026,"props":1100,"children":1101},{"style":1041},[1102],{"type":998,"value":1103},"}\n",{"type":993,"tag":1026,"props":1105,"children":1106},{"class":1028,"line":36},[1107,1112,1116,1120,1126,1130,1135,1139,1144],{"type":993,"tag":1026,"props":1108,"children":1109},{"style":1041},[1110],{"type":998,"value":1111},"fruits ",{"type":993,"tag":1026,"props":1113,"children":1114},{"style":1047},[1115],{"type":998,"value":1050},{"type":993,"tag":1026,"props":1117,"children":1118},{"style":1041},[1119],{"type":998,"value":1055},{"type":993,"tag":1026,"props":1121,"children":1123},{"style":1122},"--shiki-default:#032F62;--shiki-app-dark-mode:#9ECBFF",[1124],{"type":998,"value":1125},"\"apple\"",{"type":993,"tag":1026,"props":1127,"children":1128},{"style":1041},[1129],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1131,"children":1132},{"style":1122},[1133],{"type":998,"value":1134},"\"banana\"",{"type":993,"tag":1026,"props":1136,"children":1137},{"style":1041},[1138],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1140,"children":1141},{"style":1122},[1142],{"type":998,"value":1143},"\"orange\"",{"type":993,"tag":1026,"props":1145,"children":1146},{"style":1041},[1147],{"type":998,"value":1103},{"type":993,"tag":1026,"props":1149,"children":1150},{"class":1028,"line":45},[1151],{"type":993,"tag":1026,"props":1152,"children":1153},{"emptyLinePlaceholder":13},[1154],{"type":998,"value":1155},"\n",{"type":993,"tag":1026,"props":1157,"children":1158},{"class":1028,"line":54},[1159,1164,1169,1174,1179,1184,1189,1194,1199],{"type":993,"tag":1026,"props":1160,"children":1161},{"style":1058},[1162],{"type":998,"value":1163},"print",{"type":993,"tag":1026,"props":1165,"children":1166},{"style":1041},[1167],{"type":998,"value":1168},"(",{"type":993,"tag":1026,"props":1170,"children":1171},{"style":1047},[1172],{"type":998,"value":1173},"f",{"type":993,"tag":1026,"props":1175,"children":1176},{"style":1122},[1177],{"type":998,"value":1178},"\"Numbers: ",{"type":993,"tag":1026,"props":1180,"children":1181},{"style":1058},[1182],{"type":998,"value":1183},"{",{"type":993,"tag":1026,"props":1185,"children":1186},{"style":1041},[1187],{"type":998,"value":1188},"numbers",{"type":993,"tag":1026,"props":1190,"children":1191},{"style":1058},[1192],{"type":998,"value":1193},"}",{"type":993,"tag":1026,"props":1195,"children":1196},{"style":1122},[1197],{"type":998,"value":1198},"\"",{"type":993,"tag":1026,"props":1200,"children":1201},{"style":1041},[1202],{"type":998,"value":1203},")\n",{"type":993,"tag":1026,"props":1205,"children":1206},{"class":1028,"line":63},[1207,1211,1215,1219,1224,1228,1233,1237,1241],{"type":993,"tag":1026,"props":1208,"children":1209},{"style":1058},[1210],{"type":998,"value":1163},{"type":993,"tag":1026,"props":1212,"children":1213},{"style":1041},[1214],{"type":998,"value":1168},{"type":993,"tag":1026,"props":1216,"children":1217},{"style":1047},[1218],{"type":998,"value":1173},{"type":993,"tag":1026,"props":1220,"children":1221},{"style":1122},[1222],{"type":998,"value":1223},"\"Fruits: ",{"type":993,"tag":1026,"props":1225,"children":1226},{"style":1058},[1227],{"type":998,"value":1183},{"type":993,"tag":1026,"props":1229,"children":1230},{"style":1041},[1231],{"type":998,"value":1232},"fruits",{"type":993,"tag":1026,"props":1234,"children":1235},{"style":1058},[1236],{"type":998,"value":1193},{"type":993,"tag":1026,"props":1238,"children":1239},{"style":1122},[1240],{"type":998,"value":1198},{"type":993,"tag":1026,"props":1242,"children":1243},{"style":1041},[1244],{"type":998,"value":1203},{"type":993,"tag":1026,"props":1246,"children":1247},{"class":1028,"line":72},[1248],{"type":993,"tag":1026,"props":1249,"children":1250},{"emptyLinePlaceholder":13},[1251],{"type":998,"value":1155},{"type":993,"tag":1026,"props":1253,"children":1254},{"class":1028,"line":81},[1255],{"type":993,"tag":1026,"props":1256,"children":1257},{"style":1032},[1258],{"type":998,"value":1259},"# Sets automatically remove duplicates\n",{"type":993,"tag":1026,"props":1261,"children":1262},{"class":1028,"line":91},[1263,1268,1272,1276,1280,1284,1288,1292,1296,1300,1304,1308,1312,1316,1320],{"type":993,"tag":1026,"props":1264,"children":1265},{"style":1041},[1266],{"type":998,"value":1267},"duplicate_numbers ",{"type":993,"tag":1026,"props":1269,"children":1270},{"style":1047},[1271],{"type":998,"value":1050},{"type":993,"tag":1026,"props":1273,"children":1274},{"style":1041},[1275],{"type":998,"value":1055},{"type":993,"tag":1026,"props":1277,"children":1278},{"style":1058},[1279],{"type":998,"value":1061},{"type":993,"tag":1026,"props":1281,"children":1282},{"style":1041},[1283],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1285,"children":1286},{"style":1058},[1287],{"type":998,"value":1071},{"type":993,"tag":1026,"props":1289,"children":1290},{"style":1041},[1291],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1293,"children":1294},{"style":1058},[1295],{"type":998,"value":1071},{"type":993,"tag":1026,"props":1297,"children":1298},{"style":1041},[1299],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1301,"children":1302},{"style":1058},[1303],{"type":998,"value":1080},{"type":993,"tag":1026,"props":1305,"children":1306},{"style":1041},[1307],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1309,"children":1310},{"style":1058},[1311],{"type":998,"value":1080},{"type":993,"tag":1026,"props":1313,"children":1314},{"style":1041},[1315],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1317,"children":1318},{"style":1058},[1319],{"type":998,"value":1089},{"type":993,"tag":1026,"props":1321,"children":1322},{"style":1041},[1323],{"type":998,"value":1103},{"type":993,"tag":1026,"props":1325,"children":1326},{"class":1028,"line":100},[1327,1331,1335,1339,1344,1348,1353,1357,1361],{"type":993,"tag":1026,"props":1328,"children":1329},{"style":1058},[1330],{"type":998,"value":1163},{"type":993,"tag":1026,"props":1332,"children":1333},{"style":1041},[1334],{"type":998,"value":1168},{"type":993,"tag":1026,"props":1336,"children":1337},{"style":1047},[1338],{"type":998,"value":1173},{"type":993,"tag":1026,"props":1340,"children":1341},{"style":1122},[1342],{"type":998,"value":1343},"\"With duplicates removed: ",{"type":993,"tag":1026,"props":1345,"children":1346},{"style":1058},[1347],{"type":998,"value":1183},{"type":993,"tag":1026,"props":1349,"children":1350},{"style":1041},[1351],{"type":998,"value":1352},"duplicate_numbers",{"type":993,"tag":1026,"props":1354,"children":1355},{"style":1058},[1356],{"type":998,"value":1193},{"type":993,"tag":1026,"props":1358,"children":1359},{"style":1122},[1360],{"type":998,"value":1198},{"type":993,"tag":1026,"props":1362,"children":1363},{"style":1041},[1364],{"type":998,"value":1203},{"type":993,"tag":1366,"props":1367,"children":1369},"h2",{"id":1368},"what-makes-sets-special",[1370],{"type":998,"value":1371},"🎯 What Makes Sets Special",{"type":993,"tag":1001,"props":1373,"children":1374},{},[1375],{"type":998,"value":1376},"Sets have unique properties that make them different from lists and tuples, offering specific advantages for certain types of data operations.",{"type":993,"tag":1378,"props":1379,"children":1383},"info-box",{"emoji":1380,"title":1381,"type":1382},"✨","Set Characteristics","info",[1384,1393,1413,1421,1444,1452],{"type":993,"tag":1001,"props":1385,"children":1386},{},[1387],{"type":993,"tag":1388,"props":1389,"children":1390},"strong",{},[1391],{"type":998,"value":1392},"Unique Elements Only:",{"type":993,"tag":1394,"props":1395,"children":1396},"ul",{},[1397,1403,1408],{"type":993,"tag":1398,"props":1399,"children":1400},"li",{},[1401],{"type":998,"value":1402},"Automatically removes duplicate values",{"type":993,"tag":1398,"props":1404,"children":1405},{},[1406],{"type":998,"value":1407},"Each item appears exactly once",{"type":993,"tag":1398,"props":1409,"children":1410},{},[1411],{"type":998,"value":1412},"Perfect for filtering unique data",{"type":993,"tag":1001,"props":1414,"children":1415},{},[1416],{"type":993,"tag":1388,"props":1417,"children":1418},{},[1419],{"type":998,"value":1420},"Mathematical Operations:",{"type":993,"tag":1394,"props":1422,"children":1423},{},[1424,1429,1434,1439],{"type":993,"tag":1398,"props":1425,"children":1426},{},[1427],{"type":998,"value":1428},"Union: combine sets",{"type":993,"tag":1398,"props":1430,"children":1431},{},[1432],{"type":998,"value":1433},"Intersection: find common elements",{"type":993,"tag":1398,"props":1435,"children":1436},{},[1437],{"type":998,"value":1438},"Difference: find unique elements",{"type":993,"tag":1398,"props":1440,"children":1441},{},[1442],{"type":998,"value":1443},"Symmetric difference: find exclusive elements",{"type":993,"tag":1001,"props":1445,"children":1446},{},[1447],{"type":993,"tag":1388,"props":1448,"children":1449},{},[1450],{"type":998,"value":1451},"Fast Membership Testing:",{"type":993,"tag":1394,"props":1453,"children":1454},{},[1455,1460,1465],{"type":993,"tag":1398,"props":1456,"children":1457},{},[1458],{"type":998,"value":1459},"Very quick to check if item exists",{"type":993,"tag":1398,"props":1461,"children":1462},{},[1463],{"type":998,"value":1464},"Much faster than lists for large datasets",{"type":993,"tag":1398,"props":1466,"children":1467},{},[1468],{"type":998,"value":1469},"Uses hash table internally for speed",{"type":993,"tag":1471,"props":1472,"children":1474},"h3",{"id":1473},"no-duplicate-values",[1475],{"type":998,"value":1476},"No Duplicate Values",{"type":993,"tag":1001,"props":1478,"children":1479},{},[1480],{"type":998,"value":1481},"Sets automatically ensure all elements are unique.",{"type":993,"tag":1012,"props":1483,"children":1484},{},[1485],{"type":993,"tag":1016,"props":1486,"children":1488},{"className":1018,"code":1487,"language":6,"meta":8,"style":8},"# Removing duplicates with sets\nstudent_ids = [101, 102, 101, 103, 102, 104]\nprint(f\"Original list: {student_ids}\")\n\n# Convert to set to remove duplicates\nunique_ids = set(student_ids)\nprint(f\"Unique IDs: {unique_ids}\")\n\n# Convert back to list if needed\nunique_list = list(unique_ids)\nprint(f\"Back to list: {unique_list}\")\n",[1489],{"type":993,"tag":1022,"props":1490,"children":1491},{"__ignoreMap":8},[1492,1500,1570,1611,1618,1626,1648,1689,1696,1704,1726],{"type":993,"tag":1026,"props":1493,"children":1494},{"class":1028,"line":12},[1495],{"type":993,"tag":1026,"props":1496,"children":1497},{"style":1032},[1498],{"type":998,"value":1499},"# Removing duplicates with sets\n",{"type":993,"tag":1026,"props":1501,"children":1502},{"class":1028,"line":27},[1503,1508,1512,1517,1522,1526,1531,1535,1539,1543,1548,1552,1556,1560,1565],{"type":993,"tag":1026,"props":1504,"children":1505},{"style":1041},[1506],{"type":998,"value":1507},"student_ids ",{"type":993,"tag":1026,"props":1509,"children":1510},{"style":1047},[1511],{"type":998,"value":1050},{"type":993,"tag":1026,"props":1513,"children":1514},{"style":1041},[1515],{"type":998,"value":1516}," [",{"type":993,"tag":1026,"props":1518,"children":1519},{"style":1058},[1520],{"type":998,"value":1521},"101",{"type":993,"tag":1026,"props":1523,"children":1524},{"style":1041},[1525],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1527,"children":1528},{"style":1058},[1529],{"type":998,"value":1530},"102",{"type":993,"tag":1026,"props":1532,"children":1533},{"style":1041},[1534],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1536,"children":1537},{"style":1058},[1538],{"type":998,"value":1521},{"type":993,"tag":1026,"props":1540,"children":1541},{"style":1041},[1542],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1544,"children":1545},{"style":1058},[1546],{"type":998,"value":1547},"103",{"type":993,"tag":1026,"props":1549,"children":1550},{"style":1041},[1551],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1553,"children":1554},{"style":1058},[1555],{"type":998,"value":1530},{"type":993,"tag":1026,"props":1557,"children":1558},{"style":1041},[1559],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1561,"children":1562},{"style":1058},[1563],{"type":998,"value":1564},"104",{"type":993,"tag":1026,"props":1566,"children":1567},{"style":1041},[1568],{"type":998,"value":1569},"]\n",{"type":993,"tag":1026,"props":1571,"children":1572},{"class":1028,"line":36},[1573,1577,1581,1585,1590,1594,1599,1603,1607],{"type":993,"tag":1026,"props":1574,"children":1575},{"style":1058},[1576],{"type":998,"value":1163},{"type":993,"tag":1026,"props":1578,"children":1579},{"style":1041},[1580],{"type":998,"value":1168},{"type":993,"tag":1026,"props":1582,"children":1583},{"style":1047},[1584],{"type":998,"value":1173},{"type":993,"tag":1026,"props":1586,"children":1587},{"style":1122},[1588],{"type":998,"value":1589},"\"Original list: ",{"type":993,"tag":1026,"props":1591,"children":1592},{"style":1058},[1593],{"type":998,"value":1183},{"type":993,"tag":1026,"props":1595,"children":1596},{"style":1041},[1597],{"type":998,"value":1598},"student_ids",{"type":993,"tag":1026,"props":1600,"children":1601},{"style":1058},[1602],{"type":998,"value":1193},{"type":993,"tag":1026,"props":1604,"children":1605},{"style":1122},[1606],{"type":998,"value":1198},{"type":993,"tag":1026,"props":1608,"children":1609},{"style":1041},[1610],{"type":998,"value":1203},{"type":993,"tag":1026,"props":1612,"children":1613},{"class":1028,"line":45},[1614],{"type":993,"tag":1026,"props":1615,"children":1616},{"emptyLinePlaceholder":13},[1617],{"type":998,"value":1155},{"type":993,"tag":1026,"props":1619,"children":1620},{"class":1028,"line":54},[1621],{"type":993,"tag":1026,"props":1622,"children":1623},{"style":1032},[1624],{"type":998,"value":1625},"# Convert to set to remove duplicates\n",{"type":993,"tag":1026,"props":1627,"children":1628},{"class":1028,"line":63},[1629,1634,1638,1643],{"type":993,"tag":1026,"props":1630,"children":1631},{"style":1041},[1632],{"type":998,"value":1633},"unique_ids ",{"type":993,"tag":1026,"props":1635,"children":1636},{"style":1047},[1637],{"type":998,"value":1050},{"type":993,"tag":1026,"props":1639,"children":1640},{"style":1058},[1641],{"type":998,"value":1642}," set",{"type":993,"tag":1026,"props":1644,"children":1645},{"style":1041},[1646],{"type":998,"value":1647},"(student_ids)\n",{"type":993,"tag":1026,"props":1649,"children":1650},{"class":1028,"line":72},[1651,1655,1659,1663,1668,1672,1677,1681,1685],{"type":993,"tag":1026,"props":1652,"children":1653},{"style":1058},[1654],{"type":998,"value":1163},{"type":993,"tag":1026,"props":1656,"children":1657},{"style":1041},[1658],{"type":998,"value":1168},{"type":993,"tag":1026,"props":1660,"children":1661},{"style":1047},[1662],{"type":998,"value":1173},{"type":993,"tag":1026,"props":1664,"children":1665},{"style":1122},[1666],{"type":998,"value":1667},"\"Unique IDs: ",{"type":993,"tag":1026,"props":1669,"children":1670},{"style":1058},[1671],{"type":998,"value":1183},{"type":993,"tag":1026,"props":1673,"children":1674},{"style":1041},[1675],{"type":998,"value":1676},"unique_ids",{"type":993,"tag":1026,"props":1678,"children":1679},{"style":1058},[1680],{"type":998,"value":1193},{"type":993,"tag":1026,"props":1682,"children":1683},{"style":1122},[1684],{"type":998,"value":1198},{"type":993,"tag":1026,"props":1686,"children":1687},{"style":1041},[1688],{"type":998,"value":1203},{"type":993,"tag":1026,"props":1690,"children":1691},{"class":1028,"line":81},[1692],{"type":993,"tag":1026,"props":1693,"children":1694},{"emptyLinePlaceholder":13},[1695],{"type":998,"value":1155},{"type":993,"tag":1026,"props":1697,"children":1698},{"class":1028,"line":91},[1699],{"type":993,"tag":1026,"props":1700,"children":1701},{"style":1032},[1702],{"type":998,"value":1703},"# Convert back to list if needed\n",{"type":993,"tag":1026,"props":1705,"children":1706},{"class":1028,"line":100},[1707,1712,1716,1721],{"type":993,"tag":1026,"props":1708,"children":1709},{"style":1041},[1710],{"type":998,"value":1711},"unique_list ",{"type":993,"tag":1026,"props":1713,"children":1714},{"style":1047},[1715],{"type":998,"value":1050},{"type":993,"tag":1026,"props":1717,"children":1718},{"style":1058},[1719],{"type":998,"value":1720}," list",{"type":993,"tag":1026,"props":1722,"children":1723},{"style":1041},[1724],{"type":998,"value":1725},"(unique_ids)\n",{"type":993,"tag":1026,"props":1727,"children":1728},{"class":1028,"line":109},[1729,1733,1737,1741,1746,1750,1755,1759,1763],{"type":993,"tag":1026,"props":1730,"children":1731},{"style":1058},[1732],{"type":998,"value":1163},{"type":993,"tag":1026,"props":1734,"children":1735},{"style":1041},[1736],{"type":998,"value":1168},{"type":993,"tag":1026,"props":1738,"children":1739},{"style":1047},[1740],{"type":998,"value":1173},{"type":993,"tag":1026,"props":1742,"children":1743},{"style":1122},[1744],{"type":998,"value":1745},"\"Back to list: ",{"type":993,"tag":1026,"props":1747,"children":1748},{"style":1058},[1749],{"type":998,"value":1183},{"type":993,"tag":1026,"props":1751,"children":1752},{"style":1041},[1753],{"type":998,"value":1754},"unique_list",{"type":993,"tag":1026,"props":1756,"children":1757},{"style":1058},[1758],{"type":998,"value":1193},{"type":993,"tag":1026,"props":1760,"children":1761},{"style":1122},[1762],{"type":998,"value":1198},{"type":993,"tag":1026,"props":1764,"children":1765},{"style":1041},[1766],{"type":998,"value":1203},{"type":993,"tag":1471,"props":1768,"children":1770},{"id":1769},"fast-membership-testing",[1771],{"type":998,"value":1772},"Fast Membership Testing",{"type":993,"tag":1001,"props":1774,"children":1775},{},[1776],{"type":998,"value":1777},"Checking if an item exists in a set is very fast.",{"type":993,"tag":1012,"props":1779,"children":1780},{},[1781],{"type":993,"tag":1016,"props":1782,"children":1784},{"className":1018,"code":1783,"language":6,"meta":8,"style":8},"# Fast membership testing\nlarge_set = set(range(1000))  # Set with numbers 0-999\n\n# Very fast lookup\nnumber_exists = 500 in large_set\nprint(f\"Is 500 in the set? {number_exists}\")\n\n# Compare with list (would be slower for large data)\nnumber_list = list(range(1000))\nexists_in_list = 500 in number_list\nprint(f\"Found in list too: {exists_in_list}\")\n",[1785],{"type":993,"tag":1022,"props":1786,"children":1787},{"__ignoreMap":8},[1788,1796,1840,1847,1855,1882,1923,1930,1938,1975,2000],{"type":993,"tag":1026,"props":1789,"children":1790},{"class":1028,"line":12},[1791],{"type":993,"tag":1026,"props":1792,"children":1793},{"style":1032},[1794],{"type":998,"value":1795},"# Fast membership testing\n",{"type":993,"tag":1026,"props":1797,"children":1798},{"class":1028,"line":27},[1799,1804,1808,1812,1816,1821,1825,1830,1835],{"type":993,"tag":1026,"props":1800,"children":1801},{"style":1041},[1802],{"type":998,"value":1803},"large_set ",{"type":993,"tag":1026,"props":1805,"children":1806},{"style":1047},[1807],{"type":998,"value":1050},{"type":993,"tag":1026,"props":1809,"children":1810},{"style":1058},[1811],{"type":998,"value":1642},{"type":993,"tag":1026,"props":1813,"children":1814},{"style":1041},[1815],{"type":998,"value":1168},{"type":993,"tag":1026,"props":1817,"children":1818},{"style":1058},[1819],{"type":998,"value":1820},"range",{"type":993,"tag":1026,"props":1822,"children":1823},{"style":1041},[1824],{"type":998,"value":1168},{"type":993,"tag":1026,"props":1826,"children":1827},{"style":1058},[1828],{"type":998,"value":1829},"1000",{"type":993,"tag":1026,"props":1831,"children":1832},{"style":1041},[1833],{"type":998,"value":1834},"))  ",{"type":993,"tag":1026,"props":1836,"children":1837},{"style":1032},[1838],{"type":998,"value":1839},"# Set with numbers 0-999\n",{"type":993,"tag":1026,"props":1841,"children":1842},{"class":1028,"line":36},[1843],{"type":993,"tag":1026,"props":1844,"children":1845},{"emptyLinePlaceholder":13},[1846],{"type":998,"value":1155},{"type":993,"tag":1026,"props":1848,"children":1849},{"class":1028,"line":45},[1850],{"type":993,"tag":1026,"props":1851,"children":1852},{"style":1032},[1853],{"type":998,"value":1854},"# Very fast lookup\n",{"type":993,"tag":1026,"props":1856,"children":1857},{"class":1028,"line":54},[1858,1863,1867,1872,1877],{"type":993,"tag":1026,"props":1859,"children":1860},{"style":1041},[1861],{"type":998,"value":1862},"number_exists ",{"type":993,"tag":1026,"props":1864,"children":1865},{"style":1047},[1866],{"type":998,"value":1050},{"type":993,"tag":1026,"props":1868,"children":1869},{"style":1058},[1870],{"type":998,"value":1871}," 500",{"type":993,"tag":1026,"props":1873,"children":1874},{"style":1047},[1875],{"type":998,"value":1876}," in",{"type":993,"tag":1026,"props":1878,"children":1879},{"style":1041},[1880],{"type":998,"value":1881}," large_set\n",{"type":993,"tag":1026,"props":1883,"children":1884},{"class":1028,"line":63},[1885,1889,1893,1897,1902,1906,1911,1915,1919],{"type":993,"tag":1026,"props":1886,"children":1887},{"style":1058},[1888],{"type":998,"value":1163},{"type":993,"tag":1026,"props":1890,"children":1891},{"style":1041},[1892],{"type":998,"value":1168},{"type":993,"tag":1026,"props":1894,"children":1895},{"style":1047},[1896],{"type":998,"value":1173},{"type":993,"tag":1026,"props":1898,"children":1899},{"style":1122},[1900],{"type":998,"value":1901},"\"Is 500 in the set? ",{"type":993,"tag":1026,"props":1903,"children":1904},{"style":1058},[1905],{"type":998,"value":1183},{"type":993,"tag":1026,"props":1907,"children":1908},{"style":1041},[1909],{"type":998,"value":1910},"number_exists",{"type":993,"tag":1026,"props":1912,"children":1913},{"style":1058},[1914],{"type":998,"value":1193},{"type":993,"tag":1026,"props":1916,"children":1917},{"style":1122},[1918],{"type":998,"value":1198},{"type":993,"tag":1026,"props":1920,"children":1921},{"style":1041},[1922],{"type":998,"value":1203},{"type":993,"tag":1026,"props":1924,"children":1925},{"class":1028,"line":72},[1926],{"type":993,"tag":1026,"props":1927,"children":1928},{"emptyLinePlaceholder":13},[1929],{"type":998,"value":1155},{"type":993,"tag":1026,"props":1931,"children":1932},{"class":1028,"line":81},[1933],{"type":993,"tag":1026,"props":1934,"children":1935},{"style":1032},[1936],{"type":998,"value":1937},"# Compare with list (would be slower for large data)\n",{"type":993,"tag":1026,"props":1939,"children":1940},{"class":1028,"line":91},[1941,1946,1950,1954,1958,1962,1966,1970],{"type":993,"tag":1026,"props":1942,"children":1943},{"style":1041},[1944],{"type":998,"value":1945},"number_list ",{"type":993,"tag":1026,"props":1947,"children":1948},{"style":1047},[1949],{"type":998,"value":1050},{"type":993,"tag":1026,"props":1951,"children":1952},{"style":1058},[1953],{"type":998,"value":1720},{"type":993,"tag":1026,"props":1955,"children":1956},{"style":1041},[1957],{"type":998,"value":1168},{"type":993,"tag":1026,"props":1959,"children":1960},{"style":1058},[1961],{"type":998,"value":1820},{"type":993,"tag":1026,"props":1963,"children":1964},{"style":1041},[1965],{"type":998,"value":1168},{"type":993,"tag":1026,"props":1967,"children":1968},{"style":1058},[1969],{"type":998,"value":1829},{"type":993,"tag":1026,"props":1971,"children":1972},{"style":1041},[1973],{"type":998,"value":1974},"))\n",{"type":993,"tag":1026,"props":1976,"children":1977},{"class":1028,"line":100},[1978,1983,1987,1991,1995],{"type":993,"tag":1026,"props":1979,"children":1980},{"style":1041},[1981],{"type":998,"value":1982},"exists_in_list ",{"type":993,"tag":1026,"props":1984,"children":1985},{"style":1047},[1986],{"type":998,"value":1050},{"type":993,"tag":1026,"props":1988,"children":1989},{"style":1058},[1990],{"type":998,"value":1871},{"type":993,"tag":1026,"props":1992,"children":1993},{"style":1047},[1994],{"type":998,"value":1876},{"type":993,"tag":1026,"props":1996,"children":1997},{"style":1041},[1998],{"type":998,"value":1999}," number_list\n",{"type":993,"tag":1026,"props":2001,"children":2002},{"class":1028,"line":109},[2003,2007,2011,2015,2020,2024,2029,2033,2037],{"type":993,"tag":1026,"props":2004,"children":2005},{"style":1058},[2006],{"type":998,"value":1163},{"type":993,"tag":1026,"props":2008,"children":2009},{"style":1041},[2010],{"type":998,"value":1168},{"type":993,"tag":1026,"props":2012,"children":2013},{"style":1047},[2014],{"type":998,"value":1173},{"type":993,"tag":1026,"props":2016,"children":2017},{"style":1122},[2018],{"type":998,"value":2019},"\"Found in list too: ",{"type":993,"tag":1026,"props":2021,"children":2022},{"style":1058},[2023],{"type":998,"value":1183},{"type":993,"tag":1026,"props":2025,"children":2026},{"style":1041},[2027],{"type":998,"value":2028},"exists_in_list",{"type":993,"tag":1026,"props":2030,"children":2031},{"style":1058},[2032],{"type":998,"value":1193},{"type":993,"tag":1026,"props":2034,"children":2035},{"style":1122},[2036],{"type":998,"value":1198},{"type":993,"tag":1026,"props":2038,"children":2039},{"style":1041},[2040],{"type":998,"value":1203},{"type":993,"tag":1471,"props":2042,"children":2044},{"id":2043},"mathematical-set-operations",[2045],{"type":998,"value":2046},"Mathematical Set Operations",{"type":993,"tag":1001,"props":2048,"children":2049},{},[2050],{"type":998,"value":2051},"Sets support mathematical operations for data analysis.",{"type":993,"tag":1012,"props":2053,"children":2054},{},[2055],{"type":993,"tag":1016,"props":2056,"children":2058},{"className":1018,"code":2057,"language":6,"meta":8,"style":8},"# Set operations\npython_students = {\"Alice\", \"Bob\", \"Carol\", \"David\"}\njava_students = {\"Bob\", \"Carol\", \"Eve\", \"Frank\"}\n\n# Find students in both classes\nboth_classes = python_students & java_students\nprint(f\"Students in both classes: {both_classes}\")\n\n# Find all students\nall_students = python_students | java_students\nprint(f\"All students: {all_students}\")\n",[2059],{"type":993,"tag":1022,"props":2060,"children":2061},{"__ignoreMap":8},[2062,2070,2122,2172,2179,2187,2214,2255,2262,2270,2295],{"type":993,"tag":1026,"props":2063,"children":2064},{"class":1028,"line":12},[2065],{"type":993,"tag":1026,"props":2066,"children":2067},{"style":1032},[2068],{"type":998,"value":2069},"# Set operations\n",{"type":993,"tag":1026,"props":2071,"children":2072},{"class":1028,"line":27},[2073,2078,2082,2086,2091,2095,2100,2104,2109,2113,2118],{"type":993,"tag":1026,"props":2074,"children":2075},{"style":1041},[2076],{"type":998,"value":2077},"python_students ",{"type":993,"tag":1026,"props":2079,"children":2080},{"style":1047},[2081],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2083,"children":2084},{"style":1041},[2085],{"type":998,"value":1055},{"type":993,"tag":1026,"props":2087,"children":2088},{"style":1122},[2089],{"type":998,"value":2090},"\"Alice\"",{"type":993,"tag":1026,"props":2092,"children":2093},{"style":1041},[2094],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2096,"children":2097},{"style":1122},[2098],{"type":998,"value":2099},"\"Bob\"",{"type":993,"tag":1026,"props":2101,"children":2102},{"style":1041},[2103],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2105,"children":2106},{"style":1122},[2107],{"type":998,"value":2108},"\"Carol\"",{"type":993,"tag":1026,"props":2110,"children":2111},{"style":1041},[2112],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2114,"children":2115},{"style":1122},[2116],{"type":998,"value":2117},"\"David\"",{"type":993,"tag":1026,"props":2119,"children":2120},{"style":1041},[2121],{"type":998,"value":1103},{"type":993,"tag":1026,"props":2123,"children":2124},{"class":1028,"line":36},[2125,2130,2134,2138,2142,2146,2150,2154,2159,2163,2168],{"type":993,"tag":1026,"props":2126,"children":2127},{"style":1041},[2128],{"type":998,"value":2129},"java_students ",{"type":993,"tag":1026,"props":2131,"children":2132},{"style":1047},[2133],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2135,"children":2136},{"style":1041},[2137],{"type":998,"value":1055},{"type":993,"tag":1026,"props":2139,"children":2140},{"style":1122},[2141],{"type":998,"value":2099},{"type":993,"tag":1026,"props":2143,"children":2144},{"style":1041},[2145],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2147,"children":2148},{"style":1122},[2149],{"type":998,"value":2108},{"type":993,"tag":1026,"props":2151,"children":2152},{"style":1041},[2153],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2155,"children":2156},{"style":1122},[2157],{"type":998,"value":2158},"\"Eve\"",{"type":993,"tag":1026,"props":2160,"children":2161},{"style":1041},[2162],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2164,"children":2165},{"style":1122},[2166],{"type":998,"value":2167},"\"Frank\"",{"type":993,"tag":1026,"props":2169,"children":2170},{"style":1041},[2171],{"type":998,"value":1103},{"type":993,"tag":1026,"props":2173,"children":2174},{"class":1028,"line":45},[2175],{"type":993,"tag":1026,"props":2176,"children":2177},{"emptyLinePlaceholder":13},[2178],{"type":998,"value":1155},{"type":993,"tag":1026,"props":2180,"children":2181},{"class":1028,"line":54},[2182],{"type":993,"tag":1026,"props":2183,"children":2184},{"style":1032},[2185],{"type":998,"value":2186},"# Find students in both classes\n",{"type":993,"tag":1026,"props":2188,"children":2189},{"class":1028,"line":63},[2190,2195,2199,2204,2209],{"type":993,"tag":1026,"props":2191,"children":2192},{"style":1041},[2193],{"type":998,"value":2194},"both_classes ",{"type":993,"tag":1026,"props":2196,"children":2197},{"style":1047},[2198],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2200,"children":2201},{"style":1041},[2202],{"type":998,"value":2203}," python_students ",{"type":993,"tag":1026,"props":2205,"children":2206},{"style":1047},[2207],{"type":998,"value":2208},"&",{"type":993,"tag":1026,"props":2210,"children":2211},{"style":1041},[2212],{"type":998,"value":2213}," java_students\n",{"type":993,"tag":1026,"props":2215,"children":2216},{"class":1028,"line":72},[2217,2221,2225,2229,2234,2238,2243,2247,2251],{"type":993,"tag":1026,"props":2218,"children":2219},{"style":1058},[2220],{"type":998,"value":1163},{"type":993,"tag":1026,"props":2222,"children":2223},{"style":1041},[2224],{"type":998,"value":1168},{"type":993,"tag":1026,"props":2226,"children":2227},{"style":1047},[2228],{"type":998,"value":1173},{"type":993,"tag":1026,"props":2230,"children":2231},{"style":1122},[2232],{"type":998,"value":2233},"\"Students in both classes: ",{"type":993,"tag":1026,"props":2235,"children":2236},{"style":1058},[2237],{"type":998,"value":1183},{"type":993,"tag":1026,"props":2239,"children":2240},{"style":1041},[2241],{"type":998,"value":2242},"both_classes",{"type":993,"tag":1026,"props":2244,"children":2245},{"style":1058},[2246],{"type":998,"value":1193},{"type":993,"tag":1026,"props":2248,"children":2249},{"style":1122},[2250],{"type":998,"value":1198},{"type":993,"tag":1026,"props":2252,"children":2253},{"style":1041},[2254],{"type":998,"value":1203},{"type":993,"tag":1026,"props":2256,"children":2257},{"class":1028,"line":81},[2258],{"type":993,"tag":1026,"props":2259,"children":2260},{"emptyLinePlaceholder":13},[2261],{"type":998,"value":1155},{"type":993,"tag":1026,"props":2263,"children":2264},{"class":1028,"line":91},[2265],{"type":993,"tag":1026,"props":2266,"children":2267},{"style":1032},[2268],{"type":998,"value":2269},"# Find all students\n",{"type":993,"tag":1026,"props":2271,"children":2272},{"class":1028,"line":100},[2273,2278,2282,2286,2291],{"type":993,"tag":1026,"props":2274,"children":2275},{"style":1041},[2276],{"type":998,"value":2277},"all_students ",{"type":993,"tag":1026,"props":2279,"children":2280},{"style":1047},[2281],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2283,"children":2284},{"style":1041},[2285],{"type":998,"value":2203},{"type":993,"tag":1026,"props":2287,"children":2288},{"style":1047},[2289],{"type":998,"value":2290},"|",{"type":993,"tag":1026,"props":2292,"children":2293},{"style":1041},[2294],{"type":998,"value":2213},{"type":993,"tag":1026,"props":2296,"children":2297},{"class":1028,"line":109},[2298,2302,2306,2310,2315,2319,2324,2328,2332],{"type":993,"tag":1026,"props":2299,"children":2300},{"style":1058},[2301],{"type":998,"value":1163},{"type":993,"tag":1026,"props":2303,"children":2304},{"style":1041},[2305],{"type":998,"value":1168},{"type":993,"tag":1026,"props":2307,"children":2308},{"style":1047},[2309],{"type":998,"value":1173},{"type":993,"tag":1026,"props":2311,"children":2312},{"style":1122},[2313],{"type":998,"value":2314},"\"All students: ",{"type":993,"tag":1026,"props":2316,"children":2317},{"style":1058},[2318],{"type":998,"value":1183},{"type":993,"tag":1026,"props":2320,"children":2321},{"style":1041},[2322],{"type":998,"value":2323},"all_students",{"type":993,"tag":1026,"props":2325,"children":2326},{"style":1058},[2327],{"type":998,"value":1193},{"type":993,"tag":1026,"props":2329,"children":2330},{"style":1122},[2331],{"type":998,"value":1198},{"type":993,"tag":1026,"props":2333,"children":2334},{"style":1041},[2335],{"type":998,"value":1203},{"type":993,"tag":1366,"props":2337,"children":2339},{"id":2338},"when-to-use-sets",[2340],{"type":998,"value":2341},"🚀 When to Use Sets",{"type":993,"tag":1001,"props":2343,"children":2344},{},[2345],{"type":998,"value":2346},"Understanding when sets are the best choice helps you write more efficient and cleaner code.",{"type":993,"tag":1378,"props":2348,"children":2352},{"emoji":2349,"title":2350,"type":2351},"💡","Set Use Cases","success",[2353,2361,2389,2397,2420,2428],{"type":993,"tag":1001,"props":2354,"children":2355},{},[2356],{"type":993,"tag":1388,"props":2357,"children":2358},{},[2359],{"type":998,"value":2360},"Perfect for:",{"type":993,"tag":1394,"props":2362,"children":2363},{},[2364,2369,2374,2379,2384],{"type":993,"tag":1398,"props":2365,"children":2366},{},[2367],{"type":998,"value":2368},"Removing duplicates from data",{"type":993,"tag":1398,"props":2370,"children":2371},{},[2372],{"type":998,"value":2373},"Fast membership testing",{"type":993,"tag":1398,"props":2375,"children":2376},{},[2377],{"type":998,"value":2378},"Mathematical set operations",{"type":993,"tag":1398,"props":2380,"children":2381},{},[2382],{"type":998,"value":2383},"Tracking unique visitors/users",{"type":993,"tag":1398,"props":2385,"children":2386},{},[2387],{"type":998,"value":2388},"Finding common elements between groups",{"type":993,"tag":1001,"props":2390,"children":2391},{},[2392],{"type":993,"tag":1388,"props":2393,"children":2394},{},[2395],{"type":998,"value":2396},"Not ideal for:",{"type":993,"tag":1394,"props":2398,"children":2399},{},[2400,2405,2410,2415],{"type":993,"tag":1398,"props":2401,"children":2402},{},[2403],{"type":998,"value":2404},"Maintaining order (sets are unordered)",{"type":993,"tag":1398,"props":2406,"children":2407},{},[2408],{"type":998,"value":2409},"Storing duplicate values intentionally",{"type":993,"tag":1398,"props":2411,"children":2412},{},[2413],{"type":998,"value":2414},"Indexing (sets don't support indexing)",{"type":993,"tag":1398,"props":2416,"children":2417},{},[2418],{"type":998,"value":2419},"Storing mutable objects (like lists)",{"type":993,"tag":1001,"props":2421,"children":2422},{},[2423],{"type":993,"tag":1388,"props":2424,"children":2425},{},[2426],{"type":998,"value":2427},"Performance Benefits:",{"type":993,"tag":1394,"props":2429,"children":2430},{},[2431,2436,2441],{"type":993,"tag":1398,"props":2432,"children":2433},{},[2434],{"type":998,"value":2435},"O(1) average time for membership testing",{"type":993,"tag":1398,"props":2437,"children":2438},{},[2439],{"type":998,"value":2440},"Efficient union and intersection operations",{"type":993,"tag":1398,"props":2442,"children":2443},{},[2444],{"type":998,"value":2445},"Memory efficient for unique data storage",{"type":993,"tag":1471,"props":2447,"children":2449},{"id":2448},"removing-duplicates",[2450],{"type":998,"value":2451},"Removing Duplicates",{"type":993,"tag":1001,"props":2453,"children":2454},{},[2455],{"type":998,"value":2456},"Converting data to sets removes duplicates automatically.",{"type":993,"tag":1012,"props":2458,"children":2459},{},[2460],{"type":993,"tag":1016,"props":2461,"children":2463},{"className":1018,"code":2462,"language":6,"meta":8,"style":8},"# Remove duplicates from survey responses\nresponses = [\"yes\", \"no\", \"yes\", \"maybe\", \"yes\", \"no\", \"maybe\"]\nprint(f\"All responses: {responses}\")\n\n# Get unique responses\nunique_responses = set(responses)\nprint(f\"Unique responses: {unique_responses}\")\n\n# Count unique responses\nresponse_count = len(unique_responses)\nprint(f\"Number of unique responses: {response_count}\")\n",[2464],{"type":993,"tag":1022,"props":2465,"children":2466},{"__ignoreMap":8},[2467,2475,2550,2591,2598,2606,2627,2668,2675,2683,2705],{"type":993,"tag":1026,"props":2468,"children":2469},{"class":1028,"line":12},[2470],{"type":993,"tag":1026,"props":2471,"children":2472},{"style":1032},[2473],{"type":998,"value":2474},"# Remove duplicates from survey responses\n",{"type":993,"tag":1026,"props":2476,"children":2477},{"class":1028,"line":27},[2478,2483,2487,2491,2496,2500,2505,2509,2513,2517,2522,2526,2530,2534,2538,2542,2546],{"type":993,"tag":1026,"props":2479,"children":2480},{"style":1041},[2481],{"type":998,"value":2482},"responses ",{"type":993,"tag":1026,"props":2484,"children":2485},{"style":1047},[2486],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2488,"children":2489},{"style":1041},[2490],{"type":998,"value":1516},{"type":993,"tag":1026,"props":2492,"children":2493},{"style":1122},[2494],{"type":998,"value":2495},"\"yes\"",{"type":993,"tag":1026,"props":2497,"children":2498},{"style":1041},[2499],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2501,"children":2502},{"style":1122},[2503],{"type":998,"value":2504},"\"no\"",{"type":993,"tag":1026,"props":2506,"children":2507},{"style":1041},[2508],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2510,"children":2511},{"style":1122},[2512],{"type":998,"value":2495},{"type":993,"tag":1026,"props":2514,"children":2515},{"style":1041},[2516],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2518,"children":2519},{"style":1122},[2520],{"type":998,"value":2521},"\"maybe\"",{"type":993,"tag":1026,"props":2523,"children":2524},{"style":1041},[2525],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2527,"children":2528},{"style":1122},[2529],{"type":998,"value":2495},{"type":993,"tag":1026,"props":2531,"children":2532},{"style":1041},[2533],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2535,"children":2536},{"style":1122},[2537],{"type":998,"value":2504},{"type":993,"tag":1026,"props":2539,"children":2540},{"style":1041},[2541],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2543,"children":2544},{"style":1122},[2545],{"type":998,"value":2521},{"type":993,"tag":1026,"props":2547,"children":2548},{"style":1041},[2549],{"type":998,"value":1569},{"type":993,"tag":1026,"props":2551,"children":2552},{"class":1028,"line":36},[2553,2557,2561,2565,2570,2574,2579,2583,2587],{"type":993,"tag":1026,"props":2554,"children":2555},{"style":1058},[2556],{"type":998,"value":1163},{"type":993,"tag":1026,"props":2558,"children":2559},{"style":1041},[2560],{"type":998,"value":1168},{"type":993,"tag":1026,"props":2562,"children":2563},{"style":1047},[2564],{"type":998,"value":1173},{"type":993,"tag":1026,"props":2566,"children":2567},{"style":1122},[2568],{"type":998,"value":2569},"\"All responses: ",{"type":993,"tag":1026,"props":2571,"children":2572},{"style":1058},[2573],{"type":998,"value":1183},{"type":993,"tag":1026,"props":2575,"children":2576},{"style":1041},[2577],{"type":998,"value":2578},"responses",{"type":993,"tag":1026,"props":2580,"children":2581},{"style":1058},[2582],{"type":998,"value":1193},{"type":993,"tag":1026,"props":2584,"children":2585},{"style":1122},[2586],{"type":998,"value":1198},{"type":993,"tag":1026,"props":2588,"children":2589},{"style":1041},[2590],{"type":998,"value":1203},{"type":993,"tag":1026,"props":2592,"children":2593},{"class":1028,"line":45},[2594],{"type":993,"tag":1026,"props":2595,"children":2596},{"emptyLinePlaceholder":13},[2597],{"type":998,"value":1155},{"type":993,"tag":1026,"props":2599,"children":2600},{"class":1028,"line":54},[2601],{"type":993,"tag":1026,"props":2602,"children":2603},{"style":1032},[2604],{"type":998,"value":2605},"# Get unique responses\n",{"type":993,"tag":1026,"props":2607,"children":2608},{"class":1028,"line":63},[2609,2614,2618,2622],{"type":993,"tag":1026,"props":2610,"children":2611},{"style":1041},[2612],{"type":998,"value":2613},"unique_responses ",{"type":993,"tag":1026,"props":2615,"children":2616},{"style":1047},[2617],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2619,"children":2620},{"style":1058},[2621],{"type":998,"value":1642},{"type":993,"tag":1026,"props":2623,"children":2624},{"style":1041},[2625],{"type":998,"value":2626},"(responses)\n",{"type":993,"tag":1026,"props":2628,"children":2629},{"class":1028,"line":72},[2630,2634,2638,2642,2647,2651,2656,2660,2664],{"type":993,"tag":1026,"props":2631,"children":2632},{"style":1058},[2633],{"type":998,"value":1163},{"type":993,"tag":1026,"props":2635,"children":2636},{"style":1041},[2637],{"type":998,"value":1168},{"type":993,"tag":1026,"props":2639,"children":2640},{"style":1047},[2641],{"type":998,"value":1173},{"type":993,"tag":1026,"props":2643,"children":2644},{"style":1122},[2645],{"type":998,"value":2646},"\"Unique responses: ",{"type":993,"tag":1026,"props":2648,"children":2649},{"style":1058},[2650],{"type":998,"value":1183},{"type":993,"tag":1026,"props":2652,"children":2653},{"style":1041},[2654],{"type":998,"value":2655},"unique_responses",{"type":993,"tag":1026,"props":2657,"children":2658},{"style":1058},[2659],{"type":998,"value":1193},{"type":993,"tag":1026,"props":2661,"children":2662},{"style":1122},[2663],{"type":998,"value":1198},{"type":993,"tag":1026,"props":2665,"children":2666},{"style":1041},[2667],{"type":998,"value":1203},{"type":993,"tag":1026,"props":2669,"children":2670},{"class":1028,"line":81},[2671],{"type":993,"tag":1026,"props":2672,"children":2673},{"emptyLinePlaceholder":13},[2674],{"type":998,"value":1155},{"type":993,"tag":1026,"props":2676,"children":2677},{"class":1028,"line":91},[2678],{"type":993,"tag":1026,"props":2679,"children":2680},{"style":1032},[2681],{"type":998,"value":2682},"# Count unique responses\n",{"type":993,"tag":1026,"props":2684,"children":2685},{"class":1028,"line":100},[2686,2691,2695,2700],{"type":993,"tag":1026,"props":2687,"children":2688},{"style":1041},[2689],{"type":998,"value":2690},"response_count ",{"type":993,"tag":1026,"props":2692,"children":2693},{"style":1047},[2694],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2696,"children":2697},{"style":1058},[2698],{"type":998,"value":2699}," len",{"type":993,"tag":1026,"props":2701,"children":2702},{"style":1041},[2703],{"type":998,"value":2704},"(unique_responses)\n",{"type":993,"tag":1026,"props":2706,"children":2707},{"class":1028,"line":109},[2708,2712,2716,2720,2725,2729,2734,2738,2742],{"type":993,"tag":1026,"props":2709,"children":2710},{"style":1058},[2711],{"type":998,"value":1163},{"type":993,"tag":1026,"props":2713,"children":2714},{"style":1041},[2715],{"type":998,"value":1168},{"type":993,"tag":1026,"props":2717,"children":2718},{"style":1047},[2719],{"type":998,"value":1173},{"type":993,"tag":1026,"props":2721,"children":2722},{"style":1122},[2723],{"type":998,"value":2724},"\"Number of unique responses: ",{"type":993,"tag":1026,"props":2726,"children":2727},{"style":1058},[2728],{"type":998,"value":1183},{"type":993,"tag":1026,"props":2730,"children":2731},{"style":1041},[2732],{"type":998,"value":2733},"response_count",{"type":993,"tag":1026,"props":2735,"children":2736},{"style":1058},[2737],{"type":998,"value":1193},{"type":993,"tag":1026,"props":2739,"children":2740},{"style":1122},[2741],{"type":998,"value":1198},{"type":993,"tag":1026,"props":2743,"children":2744},{"style":1041},[2745],{"type":998,"value":1203},{"type":993,"tag":1471,"props":2747,"children":2749},{"id":2748},"data-analysis",[2750],{"type":998,"value":2751},"Data Analysis",{"type":993,"tag":1001,"props":2753,"children":2754},{},[2755],{"type":998,"value":2756},"Using sets for finding relationships between data groups.",{"type":993,"tag":1012,"props":2758,"children":2759},{},[2760],{"type":993,"tag":1016,"props":2761,"children":2763},{"className":1018,"code":2762,"language":6,"meta":8,"style":8},"# Analyze customer preferences\ncustomers_pizza = {\"Alice\", \"Bob\", \"Carol\", \"David\", \"Eve\"}\ncustomers_burger = {\"Bob\", \"David\", \"Frank\", \"Grace\"}\n\n# Find customers who like both\nboth_foods = customers_pizza & customers_burger\nprint(f\"Like both pizza and burgers: {both_foods}\")\n\n# Find customers who like only pizza\nonly_pizza = customers_pizza - customers_burger\nprint(f\"Like only pizza: {only_pizza}\")\n",[2764],{"type":993,"tag":1022,"props":2765,"children":2766},{"__ignoreMap":8},[2767,2775,2831,2880,2887,2895,2921,2962,2969,2977,3002],{"type":993,"tag":1026,"props":2768,"children":2769},{"class":1028,"line":12},[2770],{"type":993,"tag":1026,"props":2771,"children":2772},{"style":1032},[2773],{"type":998,"value":2774},"# Analyze customer preferences\n",{"type":993,"tag":1026,"props":2776,"children":2777},{"class":1028,"line":27},[2778,2783,2787,2791,2795,2799,2803,2807,2811,2815,2819,2823,2827],{"type":993,"tag":1026,"props":2779,"children":2780},{"style":1041},[2781],{"type":998,"value":2782},"customers_pizza ",{"type":993,"tag":1026,"props":2784,"children":2785},{"style":1047},[2786],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2788,"children":2789},{"style":1041},[2790],{"type":998,"value":1055},{"type":993,"tag":1026,"props":2792,"children":2793},{"style":1122},[2794],{"type":998,"value":2090},{"type":993,"tag":1026,"props":2796,"children":2797},{"style":1041},[2798],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2800,"children":2801},{"style":1122},[2802],{"type":998,"value":2099},{"type":993,"tag":1026,"props":2804,"children":2805},{"style":1041},[2806],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2808,"children":2809},{"style":1122},[2810],{"type":998,"value":2108},{"type":993,"tag":1026,"props":2812,"children":2813},{"style":1041},[2814],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2816,"children":2817},{"style":1122},[2818],{"type":998,"value":2117},{"type":993,"tag":1026,"props":2820,"children":2821},{"style":1041},[2822],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2824,"children":2825},{"style":1122},[2826],{"type":998,"value":2158},{"type":993,"tag":1026,"props":2828,"children":2829},{"style":1041},[2830],{"type":998,"value":1103},{"type":993,"tag":1026,"props":2832,"children":2833},{"class":1028,"line":36},[2834,2839,2843,2847,2851,2855,2859,2863,2867,2871,2876],{"type":993,"tag":1026,"props":2835,"children":2836},{"style":1041},[2837],{"type":998,"value":2838},"customers_burger ",{"type":993,"tag":1026,"props":2840,"children":2841},{"style":1047},[2842],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2844,"children":2845},{"style":1041},[2846],{"type":998,"value":1055},{"type":993,"tag":1026,"props":2848,"children":2849},{"style":1122},[2850],{"type":998,"value":2099},{"type":993,"tag":1026,"props":2852,"children":2853},{"style":1041},[2854],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2856,"children":2857},{"style":1122},[2858],{"type":998,"value":2117},{"type":993,"tag":1026,"props":2860,"children":2861},{"style":1041},[2862],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2864,"children":2865},{"style":1122},[2866],{"type":998,"value":2167},{"type":993,"tag":1026,"props":2868,"children":2869},{"style":1041},[2870],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2872,"children":2873},{"style":1122},[2874],{"type":998,"value":2875},"\"Grace\"",{"type":993,"tag":1026,"props":2877,"children":2878},{"style":1041},[2879],{"type":998,"value":1103},{"type":993,"tag":1026,"props":2881,"children":2882},{"class":1028,"line":45},[2883],{"type":993,"tag":1026,"props":2884,"children":2885},{"emptyLinePlaceholder":13},[2886],{"type":998,"value":1155},{"type":993,"tag":1026,"props":2888,"children":2889},{"class":1028,"line":54},[2890],{"type":993,"tag":1026,"props":2891,"children":2892},{"style":1032},[2893],{"type":998,"value":2894},"# Find customers who like both\n",{"type":993,"tag":1026,"props":2896,"children":2897},{"class":1028,"line":63},[2898,2903,2907,2912,2916],{"type":993,"tag":1026,"props":2899,"children":2900},{"style":1041},[2901],{"type":998,"value":2902},"both_foods ",{"type":993,"tag":1026,"props":2904,"children":2905},{"style":1047},[2906],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2908,"children":2909},{"style":1041},[2910],{"type":998,"value":2911}," customers_pizza ",{"type":993,"tag":1026,"props":2913,"children":2914},{"style":1047},[2915],{"type":998,"value":2208},{"type":993,"tag":1026,"props":2917,"children":2918},{"style":1041},[2919],{"type":998,"value":2920}," customers_burger\n",{"type":993,"tag":1026,"props":2922,"children":2923},{"class":1028,"line":72},[2924,2928,2932,2936,2941,2945,2950,2954,2958],{"type":993,"tag":1026,"props":2925,"children":2926},{"style":1058},[2927],{"type":998,"value":1163},{"type":993,"tag":1026,"props":2929,"children":2930},{"style":1041},[2931],{"type":998,"value":1168},{"type":993,"tag":1026,"props":2933,"children":2934},{"style":1047},[2935],{"type":998,"value":1173},{"type":993,"tag":1026,"props":2937,"children":2938},{"style":1122},[2939],{"type":998,"value":2940},"\"Like both pizza and burgers: ",{"type":993,"tag":1026,"props":2942,"children":2943},{"style":1058},[2944],{"type":998,"value":1183},{"type":993,"tag":1026,"props":2946,"children":2947},{"style":1041},[2948],{"type":998,"value":2949},"both_foods",{"type":993,"tag":1026,"props":2951,"children":2952},{"style":1058},[2953],{"type":998,"value":1193},{"type":993,"tag":1026,"props":2955,"children":2956},{"style":1122},[2957],{"type":998,"value":1198},{"type":993,"tag":1026,"props":2959,"children":2960},{"style":1041},[2961],{"type":998,"value":1203},{"type":993,"tag":1026,"props":2963,"children":2964},{"class":1028,"line":81},[2965],{"type":993,"tag":1026,"props":2966,"children":2967},{"emptyLinePlaceholder":13},[2968],{"type":998,"value":1155},{"type":993,"tag":1026,"props":2970,"children":2971},{"class":1028,"line":91},[2972],{"type":993,"tag":1026,"props":2973,"children":2974},{"style":1032},[2975],{"type":998,"value":2976},"# Find customers who like only pizza\n",{"type":993,"tag":1026,"props":2978,"children":2979},{"class":1028,"line":100},[2980,2985,2989,2993,2998],{"type":993,"tag":1026,"props":2981,"children":2982},{"style":1041},[2983],{"type":998,"value":2984},"only_pizza ",{"type":993,"tag":1026,"props":2986,"children":2987},{"style":1047},[2988],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2990,"children":2991},{"style":1041},[2992],{"type":998,"value":2911},{"type":993,"tag":1026,"props":2994,"children":2995},{"style":1047},[2996],{"type":998,"value":2997},"-",{"type":993,"tag":1026,"props":2999,"children":3000},{"style":1041},[3001],{"type":998,"value":2920},{"type":993,"tag":1026,"props":3003,"children":3004},{"class":1028,"line":109},[3005,3009,3013,3017,3022,3026,3031,3035,3039],{"type":993,"tag":1026,"props":3006,"children":3007},{"style":1058},[3008],{"type":998,"value":1163},{"type":993,"tag":1026,"props":3010,"children":3011},{"style":1041},[3012],{"type":998,"value":1168},{"type":993,"tag":1026,"props":3014,"children":3015},{"style":1047},[3016],{"type":998,"value":1173},{"type":993,"tag":1026,"props":3018,"children":3019},{"style":1122},[3020],{"type":998,"value":3021},"\"Like only pizza: ",{"type":993,"tag":1026,"props":3023,"children":3024},{"style":1058},[3025],{"type":998,"value":1183},{"type":993,"tag":1026,"props":3027,"children":3028},{"style":1041},[3029],{"type":998,"value":3030},"only_pizza",{"type":993,"tag":1026,"props":3032,"children":3033},{"style":1058},[3034],{"type":998,"value":1193},{"type":993,"tag":1026,"props":3036,"children":3037},{"style":1122},[3038],{"type":998,"value":1198},{"type":993,"tag":1026,"props":3040,"children":3041},{"style":1041},[3042],{"type":998,"value":1203},{"type":993,"tag":1471,"props":3044,"children":3046},{"id":3045},"tracking-unique-items",[3047],{"type":998,"value":3048},"Tracking Unique Items",{"type":993,"tag":1001,"props":3050,"children":3051},{},[3052],{"type":998,"value":3053},"Sets excel at tracking unique occurrences.",{"type":993,"tag":1012,"props":3055,"children":3056},{},[3057],{"type":993,"tag":1016,"props":3058,"children":3060},{"className":1018,"code":3059,"language":6,"meta":8,"style":8},"# Track unique website visitors\ndaily_visitors = set()\n\n# Simulate visitor tracking\nvisitor_ids = [101, 102, 101, 103, 102, 104, 101]\n\nfor visitor in visitor_ids:\n    daily_visitors.add(visitor)\n    print(f\"Visitor {visitor} added. Unique visitors: {len(daily_visitors)}\")\n\nprint(f\"Total unique visitors today: {daily_visitors}\")\n",[3061],{"type":993,"tag":1022,"props":3062,"children":3063},{"__ignoreMap":8},[3064,3072,3093,3100,3108,3180,3187,3210,3218,3279,3286],{"type":993,"tag":1026,"props":3065,"children":3066},{"class":1028,"line":12},[3067],{"type":993,"tag":1026,"props":3068,"children":3069},{"style":1032},[3070],{"type":998,"value":3071},"# Track unique website visitors\n",{"type":993,"tag":1026,"props":3073,"children":3074},{"class":1028,"line":27},[3075,3080,3084,3088],{"type":993,"tag":1026,"props":3076,"children":3077},{"style":1041},[3078],{"type":998,"value":3079},"daily_visitors ",{"type":993,"tag":1026,"props":3081,"children":3082},{"style":1047},[3083],{"type":998,"value":1050},{"type":993,"tag":1026,"props":3085,"children":3086},{"style":1058},[3087],{"type":998,"value":1642},{"type":993,"tag":1026,"props":3089,"children":3090},{"style":1041},[3091],{"type":998,"value":3092},"()\n",{"type":993,"tag":1026,"props":3094,"children":3095},{"class":1028,"line":36},[3096],{"type":993,"tag":1026,"props":3097,"children":3098},{"emptyLinePlaceholder":13},[3099],{"type":998,"value":1155},{"type":993,"tag":1026,"props":3101,"children":3102},{"class":1028,"line":45},[3103],{"type":993,"tag":1026,"props":3104,"children":3105},{"style":1032},[3106],{"type":998,"value":3107},"# Simulate visitor tracking\n",{"type":993,"tag":1026,"props":3109,"children":3110},{"class":1028,"line":54},[3111,3116,3120,3124,3128,3132,3136,3140,3144,3148,3152,3156,3160,3164,3168,3172,3176],{"type":993,"tag":1026,"props":3112,"children":3113},{"style":1041},[3114],{"type":998,"value":3115},"visitor_ids ",{"type":993,"tag":1026,"props":3117,"children":3118},{"style":1047},[3119],{"type":998,"value":1050},{"type":993,"tag":1026,"props":3121,"children":3122},{"style":1041},[3123],{"type":998,"value":1516},{"type":993,"tag":1026,"props":3125,"children":3126},{"style":1058},[3127],{"type":998,"value":1521},{"type":993,"tag":1026,"props":3129,"children":3130},{"style":1041},[3131],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3133,"children":3134},{"style":1058},[3135],{"type":998,"value":1530},{"type":993,"tag":1026,"props":3137,"children":3138},{"style":1041},[3139],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3141,"children":3142},{"style":1058},[3143],{"type":998,"value":1521},{"type":993,"tag":1026,"props":3145,"children":3146},{"style":1041},[3147],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3149,"children":3150},{"style":1058},[3151],{"type":998,"value":1547},{"type":993,"tag":1026,"props":3153,"children":3154},{"style":1041},[3155],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3157,"children":3158},{"style":1058},[3159],{"type":998,"value":1530},{"type":993,"tag":1026,"props":3161,"children":3162},{"style":1041},[3163],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3165,"children":3166},{"style":1058},[3167],{"type":998,"value":1564},{"type":993,"tag":1026,"props":3169,"children":3170},{"style":1041},[3171],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3173,"children":3174},{"style":1058},[3175],{"type":998,"value":1521},{"type":993,"tag":1026,"props":3177,"children":3178},{"style":1041},[3179],{"type":998,"value":1569},{"type":993,"tag":1026,"props":3181,"children":3182},{"class":1028,"line":63},[3183],{"type":993,"tag":1026,"props":3184,"children":3185},{"emptyLinePlaceholder":13},[3186],{"type":998,"value":1155},{"type":993,"tag":1026,"props":3188,"children":3189},{"class":1028,"line":72},[3190,3195,3200,3205],{"type":993,"tag":1026,"props":3191,"children":3192},{"style":1047},[3193],{"type":998,"value":3194},"for",{"type":993,"tag":1026,"props":3196,"children":3197},{"style":1041},[3198],{"type":998,"value":3199}," visitor ",{"type":993,"tag":1026,"props":3201,"children":3202},{"style":1047},[3203],{"type":998,"value":3204},"in",{"type":993,"tag":1026,"props":3206,"children":3207},{"style":1041},[3208],{"type":998,"value":3209}," visitor_ids:\n",{"type":993,"tag":1026,"props":3211,"children":3212},{"class":1028,"line":81},[3213],{"type":993,"tag":1026,"props":3214,"children":3215},{"style":1041},[3216],{"type":998,"value":3217},"    daily_visitors.add(visitor)\n",{"type":993,"tag":1026,"props":3219,"children":3220},{"class":1028,"line":91},[3221,3226,3230,3234,3239,3243,3248,3252,3257,3262,3267,3271,3275],{"type":993,"tag":1026,"props":3222,"children":3223},{"style":1058},[3224],{"type":998,"value":3225},"    print",{"type":993,"tag":1026,"props":3227,"children":3228},{"style":1041},[3229],{"type":998,"value":1168},{"type":993,"tag":1026,"props":3231,"children":3232},{"style":1047},[3233],{"type":998,"value":1173},{"type":993,"tag":1026,"props":3235,"children":3236},{"style":1122},[3237],{"type":998,"value":3238},"\"Visitor ",{"type":993,"tag":1026,"props":3240,"children":3241},{"style":1058},[3242],{"type":998,"value":1183},{"type":993,"tag":1026,"props":3244,"children":3245},{"style":1041},[3246],{"type":998,"value":3247},"visitor",{"type":993,"tag":1026,"props":3249,"children":3250},{"style":1058},[3251],{"type":998,"value":1193},{"type":993,"tag":1026,"props":3253,"children":3254},{"style":1122},[3255],{"type":998,"value":3256}," added. Unique visitors: ",{"type":993,"tag":1026,"props":3258,"children":3259},{"style":1058},[3260],{"type":998,"value":3261},"{len",{"type":993,"tag":1026,"props":3263,"children":3264},{"style":1041},[3265],{"type":998,"value":3266},"(daily_visitors)",{"type":993,"tag":1026,"props":3268,"children":3269},{"style":1058},[3270],{"type":998,"value":1193},{"type":993,"tag":1026,"props":3272,"children":3273},{"style":1122},[3274],{"type":998,"value":1198},{"type":993,"tag":1026,"props":3276,"children":3277},{"style":1041},[3278],{"type":998,"value":1203},{"type":993,"tag":1026,"props":3280,"children":3281},{"class":1028,"line":100},[3282],{"type":993,"tag":1026,"props":3283,"children":3284},{"emptyLinePlaceholder":13},[3285],{"type":998,"value":1155},{"type":993,"tag":1026,"props":3287,"children":3288},{"class":1028,"line":109},[3289,3293,3297,3301,3306,3310,3315,3319,3323],{"type":993,"tag":1026,"props":3290,"children":3291},{"style":1058},[3292],{"type":998,"value":1163},{"type":993,"tag":1026,"props":3294,"children":3295},{"style":1041},[3296],{"type":998,"value":1168},{"type":993,"tag":1026,"props":3298,"children":3299},{"style":1047},[3300],{"type":998,"value":1173},{"type":993,"tag":1026,"props":3302,"children":3303},{"style":1122},[3304],{"type":998,"value":3305},"\"Total unique visitors today: ",{"type":993,"tag":1026,"props":3307,"children":3308},{"style":1058},[3309],{"type":998,"value":1183},{"type":993,"tag":1026,"props":3311,"children":3312},{"style":1041},[3313],{"type":998,"value":3314},"daily_visitors",{"type":993,"tag":1026,"props":3316,"children":3317},{"style":1058},[3318],{"type":998,"value":1193},{"type":993,"tag":1026,"props":3320,"children":3321},{"style":1122},[3322],{"type":998,"value":1198},{"type":993,"tag":1026,"props":3324,"children":3325},{"style":1041},[3326],{"type":998,"value":1203},{"type":993,"tag":1366,"props":3328,"children":3330},{"id":3329},"️-set-limitations",[3331],{"type":998,"value":3332},"⚠️ Set Limitations",{"type":993,"tag":1001,"props":3334,"children":3335},{},[3336],{"type":998,"value":3337},"Understanding set limitations helps you choose the right data structure for your needs.",{"type":993,"tag":1378,"props":3339,"children":3343},{"emoji":3340,"title":3341,"type":3342},"🚫","Set Limitations","warning",[3344,3352,3370,3378,3396,3404],{"type":993,"tag":1001,"props":3345,"children":3346},{},[3347],{"type":993,"tag":1388,"props":3348,"children":3349},{},[3350],{"type":998,"value":3351},"No Ordering:",{"type":993,"tag":1394,"props":3353,"children":3354},{},[3355,3360,3365],{"type":993,"tag":1398,"props":3356,"children":3357},{},[3358],{"type":998,"value":3359},"Sets don't maintain insertion order",{"type":993,"tag":1398,"props":3361,"children":3362},{},[3363],{"type":998,"value":3364},"Cannot access elements by index",{"type":993,"tag":1398,"props":3366,"children":3367},{},[3368],{"type":998,"value":3369},"Use lists if order matters",{"type":993,"tag":1001,"props":3371,"children":3372},{},[3373],{"type":993,"tag":1388,"props":3374,"children":3375},{},[3376],{"type":998,"value":3377},"Immutable Elements Only:",{"type":993,"tag":1394,"props":3379,"children":3380},{},[3381,3386,3391],{"type":993,"tag":1398,"props":3382,"children":3383},{},[3384],{"type":998,"value":3385},"Cannot store lists, dictionaries, or other sets",{"type":993,"tag":1398,"props":3387,"children":3388},{},[3389],{"type":998,"value":3390},"Can store numbers, strings, tuples",{"type":993,"tag":1398,"props":3392,"children":3393},{},[3394],{"type":998,"value":3395},"Convert mutable objects to immutable first",{"type":993,"tag":1001,"props":3397,"children":3398},{},[3399],{"type":993,"tag":1388,"props":3400,"children":3401},{},[3402],{"type":998,"value":3403},"No Duplicate Storage:",{"type":993,"tag":1394,"props":3405,"children":3406},{},[3407,3412,3417],{"type":993,"tag":1398,"props":3408,"children":3409},{},[3410],{"type":998,"value":3411},"Cannot intentionally store duplicates",{"type":993,"tag":1398,"props":3413,"children":3414},{},[3415],{"type":998,"value":3416},"Use lists if duplicates are meaningful",{"type":993,"tag":1398,"props":3418,"children":3419},{},[3420],{"type":998,"value":3421},"Consider collections.Counter for counting",{"type":993,"tag":1471,"props":3423,"children":3425},{"id":3424},"no-index-access",[3426],{"type":998,"value":3427},"No Index Access",{"type":993,"tag":1001,"props":3429,"children":3430},{},[3431],{"type":998,"value":3432},"Sets don't support indexing like lists.",{"type":993,"tag":1012,"props":3434,"children":3435},{},[3436],{"type":993,"tag":1016,"props":3437,"children":3439},{"className":1018,"code":3438,"language":6,"meta":8,"style":8},"# Sets don't support indexing\nmy_set = {10, 20, 30, 40, 50}\nprint(f\"My set: {my_set}\")\n\n# This would cause an error:\n# print(my_set[0])  # TypeError!\n\n# To access elements, use iteration\nprint(\"Set elements:\")\nfor element in my_set:\n    print(f\"  {element}\")\n",[3440],{"type":993,"tag":1022,"props":3441,"children":3442},{"__ignoreMap":8},[3443,3451,3512,3553,3560,3568,3576,3583,3591,3611,3632],{"type":993,"tag":1026,"props":3444,"children":3445},{"class":1028,"line":12},[3446],{"type":993,"tag":1026,"props":3447,"children":3448},{"style":1032},[3449],{"type":998,"value":3450},"# Sets don't support indexing\n",{"type":993,"tag":1026,"props":3452,"children":3453},{"class":1028,"line":27},[3454,3459,3463,3467,3472,3476,3481,3485,3490,3494,3499,3503,3508],{"type":993,"tag":1026,"props":3455,"children":3456},{"style":1041},[3457],{"type":998,"value":3458},"my_set ",{"type":993,"tag":1026,"props":3460,"children":3461},{"style":1047},[3462],{"type":998,"value":1050},{"type":993,"tag":1026,"props":3464,"children":3465},{"style":1041},[3466],{"type":998,"value":1055},{"type":993,"tag":1026,"props":3468,"children":3469},{"style":1058},[3470],{"type":998,"value":3471},"10",{"type":993,"tag":1026,"props":3473,"children":3474},{"style":1041},[3475],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3477,"children":3478},{"style":1058},[3479],{"type":998,"value":3480},"20",{"type":993,"tag":1026,"props":3482,"children":3483},{"style":1041},[3484],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3486,"children":3487},{"style":1058},[3488],{"type":998,"value":3489},"30",{"type":993,"tag":1026,"props":3491,"children":3492},{"style":1041},[3493],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3495,"children":3496},{"style":1058},[3497],{"type":998,"value":3498},"40",{"type":993,"tag":1026,"props":3500,"children":3501},{"style":1041},[3502],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3504,"children":3505},{"style":1058},[3506],{"type":998,"value":3507},"50",{"type":993,"tag":1026,"props":3509,"children":3510},{"style":1041},[3511],{"type":998,"value":1103},{"type":993,"tag":1026,"props":3513,"children":3514},{"class":1028,"line":36},[3515,3519,3523,3527,3532,3536,3541,3545,3549],{"type":993,"tag":1026,"props":3516,"children":3517},{"style":1058},[3518],{"type":998,"value":1163},{"type":993,"tag":1026,"props":3520,"children":3521},{"style":1041},[3522],{"type":998,"value":1168},{"type":993,"tag":1026,"props":3524,"children":3525},{"style":1047},[3526],{"type":998,"value":1173},{"type":993,"tag":1026,"props":3528,"children":3529},{"style":1122},[3530],{"type":998,"value":3531},"\"My set: ",{"type":993,"tag":1026,"props":3533,"children":3534},{"style":1058},[3535],{"type":998,"value":1183},{"type":993,"tag":1026,"props":3537,"children":3538},{"style":1041},[3539],{"type":998,"value":3540},"my_set",{"type":993,"tag":1026,"props":3542,"children":3543},{"style":1058},[3544],{"type":998,"value":1193},{"type":993,"tag":1026,"props":3546,"children":3547},{"style":1122},[3548],{"type":998,"value":1198},{"type":993,"tag":1026,"props":3550,"children":3551},{"style":1041},[3552],{"type":998,"value":1203},{"type":993,"tag":1026,"props":3554,"children":3555},{"class":1028,"line":45},[3556],{"type":993,"tag":1026,"props":3557,"children":3558},{"emptyLinePlaceholder":13},[3559],{"type":998,"value":1155},{"type":993,"tag":1026,"props":3561,"children":3562},{"class":1028,"line":54},[3563],{"type":993,"tag":1026,"props":3564,"children":3565},{"style":1032},[3566],{"type":998,"value":3567},"# This would cause an error:\n",{"type":993,"tag":1026,"props":3569,"children":3570},{"class":1028,"line":63},[3571],{"type":993,"tag":1026,"props":3572,"children":3573},{"style":1032},[3574],{"type":998,"value":3575},"# print(my_set[0])  # TypeError!\n",{"type":993,"tag":1026,"props":3577,"children":3578},{"class":1028,"line":72},[3579],{"type":993,"tag":1026,"props":3580,"children":3581},{"emptyLinePlaceholder":13},[3582],{"type":998,"value":1155},{"type":993,"tag":1026,"props":3584,"children":3585},{"class":1028,"line":81},[3586],{"type":993,"tag":1026,"props":3587,"children":3588},{"style":1032},[3589],{"type":998,"value":3590},"# To access elements, use iteration\n",{"type":993,"tag":1026,"props":3592,"children":3593},{"class":1028,"line":91},[3594,3598,3602,3607],{"type":993,"tag":1026,"props":3595,"children":3596},{"style":1058},[3597],{"type":998,"value":1163},{"type":993,"tag":1026,"props":3599,"children":3600},{"style":1041},[3601],{"type":998,"value":1168},{"type":993,"tag":1026,"props":3603,"children":3604},{"style":1122},[3605],{"type":998,"value":3606},"\"Set elements:\"",{"type":993,"tag":1026,"props":3608,"children":3609},{"style":1041},[3610],{"type":998,"value":1203},{"type":993,"tag":1026,"props":3612,"children":3613},{"class":1028,"line":100},[3614,3618,3623,3627],{"type":993,"tag":1026,"props":3615,"children":3616},{"style":1047},[3617],{"type":998,"value":3194},{"type":993,"tag":1026,"props":3619,"children":3620},{"style":1041},[3621],{"type":998,"value":3622}," element ",{"type":993,"tag":1026,"props":3624,"children":3625},{"style":1047},[3626],{"type":998,"value":3204},{"type":993,"tag":1026,"props":3628,"children":3629},{"style":1041},[3630],{"type":998,"value":3631}," my_set:\n",{"type":993,"tag":1026,"props":3633,"children":3634},{"class":1028,"line":109},[3635,3639,3643,3647,3652,3656,3660,3664,3668],{"type":993,"tag":1026,"props":3636,"children":3637},{"style":1058},[3638],{"type":998,"value":3225},{"type":993,"tag":1026,"props":3640,"children":3641},{"style":1041},[3642],{"type":998,"value":1168},{"type":993,"tag":1026,"props":3644,"children":3645},{"style":1047},[3646],{"type":998,"value":1173},{"type":993,"tag":1026,"props":3648,"children":3649},{"style":1122},[3650],{"type":998,"value":3651},"\"  ",{"type":993,"tag":1026,"props":3653,"children":3654},{"style":1058},[3655],{"type":998,"value":1183},{"type":993,"tag":1026,"props":3657,"children":3658},{"style":1041},[3659],{"type":998,"value":993},{"type":993,"tag":1026,"props":3661,"children":3662},{"style":1058},[3663],{"type":998,"value":1193},{"type":993,"tag":1026,"props":3665,"children":3666},{"style":1122},[3667],{"type":998,"value":1198},{"type":993,"tag":1026,"props":3669,"children":3670},{"style":1041},[3671],{"type":998,"value":1203},{"type":993,"tag":1471,"props":3673,"children":3675},{"id":3674},"mutable-objects-not-allowed",[3676],{"type":998,"value":3677},"Mutable Objects Not Allowed",{"type":993,"tag":1001,"props":3679,"children":3680},{},[3681],{"type":998,"value":3682},"Sets can only contain immutable objects.",{"type":993,"tag":1012,"props":3684,"children":3685},{},[3686],{"type":993,"tag":1016,"props":3687,"children":3689},{"className":1018,"code":3688,"language":6,"meta":8,"style":8},"# Valid set elements (immutable)\nvalid_set = {1, \"hello\", (1, 2), 3.14}\nprint(f\"Valid set: {valid_set}\")\n\n# These would cause errors:\n# invalid_set = {[1, 2], {3, 4}}  # Lists and sets not allowed\n\n# Convert to immutable first\nlist_data = [1, 2, 3]\ntuple_data = tuple(list_data)  # Convert to tuple\nset_with_tuple = {tuple_data}\nprint(f\"Set with tuple: {set_with_tuple}\")\n",[3690],{"type":993,"tag":1022,"props":3691,"children":3692},{"__ignoreMap":8},[3693,3701,3761,3802,3809,3817,3825,3832,3840,3880,3907,3924],{"type":993,"tag":1026,"props":3694,"children":3695},{"class":1028,"line":12},[3696],{"type":993,"tag":1026,"props":3697,"children":3698},{"style":1032},[3699],{"type":998,"value":3700},"# Valid set elements (immutable)\n",{"type":993,"tag":1026,"props":3702,"children":3703},{"class":1028,"line":27},[3704,3709,3713,3717,3721,3725,3730,3735,3739,3743,3747,3752,3757],{"type":993,"tag":1026,"props":3705,"children":3706},{"style":1041},[3707],{"type":998,"value":3708},"valid_set ",{"type":993,"tag":1026,"props":3710,"children":3711},{"style":1047},[3712],{"type":998,"value":1050},{"type":993,"tag":1026,"props":3714,"children":3715},{"style":1041},[3716],{"type":998,"value":1055},{"type":993,"tag":1026,"props":3718,"children":3719},{"style":1058},[3720],{"type":998,"value":1061},{"type":993,"tag":1026,"props":3722,"children":3723},{"style":1041},[3724],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3726,"children":3727},{"style":1122},[3728],{"type":998,"value":3729},"\"hello\"",{"type":993,"tag":1026,"props":3731,"children":3732},{"style":1041},[3733],{"type":998,"value":3734},", (",{"type":993,"tag":1026,"props":3736,"children":3737},{"style":1058},[3738],{"type":998,"value":1061},{"type":993,"tag":1026,"props":3740,"children":3741},{"style":1041},[3742],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3744,"children":3745},{"style":1058},[3746],{"type":998,"value":1071},{"type":993,"tag":1026,"props":3748,"children":3749},{"style":1041},[3750],{"type":998,"value":3751},"), ",{"type":993,"tag":1026,"props":3753,"children":3754},{"style":1058},[3755],{"type":998,"value":3756},"3.14",{"type":993,"tag":1026,"props":3758,"children":3759},{"style":1041},[3760],{"type":998,"value":1103},{"type":993,"tag":1026,"props":3762,"children":3763},{"class":1028,"line":36},[3764,3768,3772,3776,3781,3785,3790,3794,3798],{"type":993,"tag":1026,"props":3765,"children":3766},{"style":1058},[3767],{"type":998,"value":1163},{"type":993,"tag":1026,"props":3769,"children":3770},{"style":1041},[3771],{"type":998,"value":1168},{"type":993,"tag":1026,"props":3773,"children":3774},{"style":1047},[3775],{"type":998,"value":1173},{"type":993,"tag":1026,"props":3777,"children":3778},{"style":1122},[3779],{"type":998,"value":3780},"\"Valid set: ",{"type":993,"tag":1026,"props":3782,"children":3783},{"style":1058},[3784],{"type":998,"value":1183},{"type":993,"tag":1026,"props":3786,"children":3787},{"style":1041},[3788],{"type":998,"value":3789},"valid_set",{"type":993,"tag":1026,"props":3791,"children":3792},{"style":1058},[3793],{"type":998,"value":1193},{"type":993,"tag":1026,"props":3795,"children":3796},{"style":1122},[3797],{"type":998,"value":1198},{"type":993,"tag":1026,"props":3799,"children":3800},{"style":1041},[3801],{"type":998,"value":1203},{"type":993,"tag":1026,"props":3803,"children":3804},{"class":1028,"line":45},[3805],{"type":993,"tag":1026,"props":3806,"children":3807},{"emptyLinePlaceholder":13},[3808],{"type":998,"value":1155},{"type":993,"tag":1026,"props":3810,"children":3811},{"class":1028,"line":54},[3812],{"type":993,"tag":1026,"props":3813,"children":3814},{"style":1032},[3815],{"type":998,"value":3816},"# These would cause errors:\n",{"type":993,"tag":1026,"props":3818,"children":3819},{"class":1028,"line":63},[3820],{"type":993,"tag":1026,"props":3821,"children":3822},{"style":1032},[3823],{"type":998,"value":3824},"# invalid_set = {[1, 2], {3, 4}}  # Lists and sets not allowed\n",{"type":993,"tag":1026,"props":3826,"children":3827},{"class":1028,"line":72},[3828],{"type":993,"tag":1026,"props":3829,"children":3830},{"emptyLinePlaceholder":13},[3831],{"type":998,"value":1155},{"type":993,"tag":1026,"props":3833,"children":3834},{"class":1028,"line":81},[3835],{"type":993,"tag":1026,"props":3836,"children":3837},{"style":1032},[3838],{"type":998,"value":3839},"# Convert to immutable first\n",{"type":993,"tag":1026,"props":3841,"children":3842},{"class":1028,"line":91},[3843,3848,3852,3856,3860,3864,3868,3872,3876],{"type":993,"tag":1026,"props":3844,"children":3845},{"style":1041},[3846],{"type":998,"value":3847},"list_data ",{"type":993,"tag":1026,"props":3849,"children":3850},{"style":1047},[3851],{"type":998,"value":1050},{"type":993,"tag":1026,"props":3853,"children":3854},{"style":1041},[3855],{"type":998,"value":1516},{"type":993,"tag":1026,"props":3857,"children":3858},{"style":1058},[3859],{"type":998,"value":1061},{"type":993,"tag":1026,"props":3861,"children":3862},{"style":1041},[3863],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3865,"children":3866},{"style":1058},[3867],{"type":998,"value":1071},{"type":993,"tag":1026,"props":3869,"children":3870},{"style":1041},[3871],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3873,"children":3874},{"style":1058},[3875],{"type":998,"value":1080},{"type":993,"tag":1026,"props":3877,"children":3878},{"style":1041},[3879],{"type":998,"value":1569},{"type":993,"tag":1026,"props":3881,"children":3882},{"class":1028,"line":100},[3883,3888,3892,3897,3902],{"type":993,"tag":1026,"props":3884,"children":3885},{"style":1041},[3886],{"type":998,"value":3887},"tuple_data ",{"type":993,"tag":1026,"props":3889,"children":3890},{"style":1047},[3891],{"type":998,"value":1050},{"type":993,"tag":1026,"props":3893,"children":3894},{"style":1058},[3895],{"type":998,"value":3896}," tuple",{"type":993,"tag":1026,"props":3898,"children":3899},{"style":1041},[3900],{"type":998,"value":3901},"(list_data)  ",{"type":993,"tag":1026,"props":3903,"children":3904},{"style":1032},[3905],{"type":998,"value":3906},"# Convert to tuple\n",{"type":993,"tag":1026,"props":3908,"children":3909},{"class":1028,"line":109},[3910,3915,3919],{"type":993,"tag":1026,"props":3911,"children":3912},{"style":1041},[3913],{"type":998,"value":3914},"set_with_tuple ",{"type":993,"tag":1026,"props":3916,"children":3917},{"style":1047},[3918],{"type":998,"value":1050},{"type":993,"tag":1026,"props":3920,"children":3921},{"style":1041},[3922],{"type":998,"value":3923}," {tuple_data}\n",{"type":993,"tag":1026,"props":3925,"children":3926},{"class":1028,"line":118},[3927,3931,3935,3939,3944,3948,3953,3957,3961],{"type":993,"tag":1026,"props":3928,"children":3929},{"style":1058},[3930],{"type":998,"value":1163},{"type":993,"tag":1026,"props":3932,"children":3933},{"style":1041},[3934],{"type":998,"value":1168},{"type":993,"tag":1026,"props":3936,"children":3937},{"style":1047},[3938],{"type":998,"value":1173},{"type":993,"tag":1026,"props":3940,"children":3941},{"style":1122},[3942],{"type":998,"value":3943},"\"Set with tuple: ",{"type":993,"tag":1026,"props":3945,"children":3946},{"style":1058},[3947],{"type":998,"value":1183},{"type":993,"tag":1026,"props":3949,"children":3950},{"style":1041},[3951],{"type":998,"value":3952},"set_with_tuple",{"type":993,"tag":1026,"props":3954,"children":3955},{"style":1058},[3956],{"type":998,"value":1193},{"type":993,"tag":1026,"props":3958,"children":3959},{"style":1122},[3960],{"type":998,"value":1198},{"type":993,"tag":1026,"props":3962,"children":3963},{"style":1041},[3964],{"type":998,"value":1203},{"type":993,"tag":1366,"props":3966,"children":3968},{"id":3967},"set-types-in-python",[3969],{"type":998,"value":3970},"📊 Set Types in Python",{"type":993,"tag":1001,"props":3972,"children":3973},{},[3974],{"type":998,"value":3975},"Python provides different types of sets for various use cases and requirements.",{"type":993,"tag":1378,"props":3977,"children":3980},{"emoji":3978,"title":3979,"type":1382},"🔧","Set Types",[3981,3989,4007,4015,4033,4041],{"type":993,"tag":1001,"props":3982,"children":3983},{},[3984],{"type":993,"tag":1388,"props":3985,"children":3986},{},[3987],{"type":998,"value":3988},"Regular Sets (set):",{"type":993,"tag":1394,"props":3990,"children":3991},{},[3992,3997,4002],{"type":993,"tag":1398,"props":3993,"children":3994},{},[3995],{"type":998,"value":3996},"Mutable - can add/remove elements",{"type":993,"tag":1398,"props":3998,"children":3999},{},[4000],{"type":998,"value":4001},"Created with {} or set()",{"type":993,"tag":1398,"props":4003,"children":4004},{},[4005],{"type":998,"value":4006},"Most commonly used type",{"type":993,"tag":1001,"props":4008,"children":4009},{},[4010],{"type":993,"tag":1388,"props":4011,"children":4012},{},[4013],{"type":998,"value":4014},"Frozen Sets (frozenset):",{"type":993,"tag":1394,"props":4016,"children":4017},{},[4018,4023,4028],{"type":993,"tag":1398,"props":4019,"children":4020},{},[4021],{"type":998,"value":4022},"Immutable - cannot change after creation",{"type":993,"tag":1398,"props":4024,"children":4025},{},[4026],{"type":998,"value":4027},"Can be used as dictionary keys",{"type":993,"tag":1398,"props":4029,"children":4030},{},[4031],{"type":998,"value":4032},"Can be elements in other sets",{"type":993,"tag":1001,"props":4034,"children":4035},{},[4036],{"type":993,"tag":1388,"props":4037,"children":4038},{},[4039],{"type":998,"value":4040},"Set Comprehensions:",{"type":993,"tag":1394,"props":4042,"children":4043},{},[4044,4049,4054],{"type":993,"tag":1398,"props":4045,"children":4046},{},[4047],{"type":998,"value":4048},"Create sets using comprehension syntax",{"type":993,"tag":1398,"props":4050,"children":4051},{},[4052],{"type":998,"value":4053},"Filter and transform data while creating",{"type":993,"tag":1398,"props":4055,"children":4056},{},[4057],{"type":998,"value":4058},"Memory efficient for large datasets",{"type":993,"tag":1471,"props":4060,"children":4062},{"id":4061},"regular-vs-frozen-sets",[4063],{"type":998,"value":4064},"Regular vs Frozen Sets",{"type":993,"tag":1001,"props":4066,"children":4067},{},[4068],{"type":998,"value":4069},"Understanding mutable vs immutable sets.",{"type":993,"tag":1012,"props":4071,"children":4072},{},[4073],{"type":993,"tag":1016,"props":4074,"children":4076},{"className":1018,"code":4075,"language":6,"meta":8,"style":8},"# Regular set (mutable)\nregular_set = {1, 2, 3}\nregular_set.add(4)\nprint(f\"Regular set after adding: {regular_set}\")\n\n# Frozen set (immutable)\nfrozen_set = frozenset([1, 2, 3])\nprint(f\"Frozen set: {frozen_set}\")\n\n# Frozen sets can be in other sets\nset_of_sets = {frozenset([1, 2]), frozenset([3, 4])}\nprint(f\"Set of frozen sets: {set_of_sets}\")\n",[4077],{"type":993,"tag":1022,"props":4078,"children":4079},{"__ignoreMap":8},[4080,4088,4128,4144,4185,4192,4200,4247,4288,4295,4303,4370],{"type":993,"tag":1026,"props":4081,"children":4082},{"class":1028,"line":12},[4083],{"type":993,"tag":1026,"props":4084,"children":4085},{"style":1032},[4086],{"type":998,"value":4087},"# Regular set (mutable)\n",{"type":993,"tag":1026,"props":4089,"children":4090},{"class":1028,"line":27},[4091,4096,4100,4104,4108,4112,4116,4120,4124],{"type":993,"tag":1026,"props":4092,"children":4093},{"style":1041},[4094],{"type":998,"value":4095},"regular_set ",{"type":993,"tag":1026,"props":4097,"children":4098},{"style":1047},[4099],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4101,"children":4102},{"style":1041},[4103],{"type":998,"value":1055},{"type":993,"tag":1026,"props":4105,"children":4106},{"style":1058},[4107],{"type":998,"value":1061},{"type":993,"tag":1026,"props":4109,"children":4110},{"style":1041},[4111],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4113,"children":4114},{"style":1058},[4115],{"type":998,"value":1071},{"type":993,"tag":1026,"props":4117,"children":4118},{"style":1041},[4119],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4121,"children":4122},{"style":1058},[4123],{"type":998,"value":1080},{"type":993,"tag":1026,"props":4125,"children":4126},{"style":1041},[4127],{"type":998,"value":1103},{"type":993,"tag":1026,"props":4129,"children":4130},{"class":1028,"line":36},[4131,4136,4140],{"type":993,"tag":1026,"props":4132,"children":4133},{"style":1041},[4134],{"type":998,"value":4135},"regular_set.add(",{"type":993,"tag":1026,"props":4137,"children":4138},{"style":1058},[4139],{"type":998,"value":1089},{"type":993,"tag":1026,"props":4141,"children":4142},{"style":1041},[4143],{"type":998,"value":1203},{"type":993,"tag":1026,"props":4145,"children":4146},{"class":1028,"line":45},[4147,4151,4155,4159,4164,4168,4173,4177,4181],{"type":993,"tag":1026,"props":4148,"children":4149},{"style":1058},[4150],{"type":998,"value":1163},{"type":993,"tag":1026,"props":4152,"children":4153},{"style":1041},[4154],{"type":998,"value":1168},{"type":993,"tag":1026,"props":4156,"children":4157},{"style":1047},[4158],{"type":998,"value":1173},{"type":993,"tag":1026,"props":4160,"children":4161},{"style":1122},[4162],{"type":998,"value":4163},"\"Regular set after adding: ",{"type":993,"tag":1026,"props":4165,"children":4166},{"style":1058},[4167],{"type":998,"value":1183},{"type":993,"tag":1026,"props":4169,"children":4170},{"style":1041},[4171],{"type":998,"value":4172},"regular_set",{"type":993,"tag":1026,"props":4174,"children":4175},{"style":1058},[4176],{"type":998,"value":1193},{"type":993,"tag":1026,"props":4178,"children":4179},{"style":1122},[4180],{"type":998,"value":1198},{"type":993,"tag":1026,"props":4182,"children":4183},{"style":1041},[4184],{"type":998,"value":1203},{"type":993,"tag":1026,"props":4186,"children":4187},{"class":1028,"line":54},[4188],{"type":993,"tag":1026,"props":4189,"children":4190},{"emptyLinePlaceholder":13},[4191],{"type":998,"value":1155},{"type":993,"tag":1026,"props":4193,"children":4194},{"class":1028,"line":63},[4195],{"type":993,"tag":1026,"props":4196,"children":4197},{"style":1032},[4198],{"type":998,"value":4199},"# Frozen set (immutable)\n",{"type":993,"tag":1026,"props":4201,"children":4202},{"class":1028,"line":72},[4203,4208,4212,4217,4222,4226,4230,4234,4238,4242],{"type":993,"tag":1026,"props":4204,"children":4205},{"style":1041},[4206],{"type":998,"value":4207},"frozen_set ",{"type":993,"tag":1026,"props":4209,"children":4210},{"style":1047},[4211],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4213,"children":4214},{"style":1058},[4215],{"type":998,"value":4216}," frozenset",{"type":993,"tag":1026,"props":4218,"children":4219},{"style":1041},[4220],{"type":998,"value":4221},"([",{"type":993,"tag":1026,"props":4223,"children":4224},{"style":1058},[4225],{"type":998,"value":1061},{"type":993,"tag":1026,"props":4227,"children":4228},{"style":1041},[4229],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4231,"children":4232},{"style":1058},[4233],{"type":998,"value":1071},{"type":993,"tag":1026,"props":4235,"children":4236},{"style":1041},[4237],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4239,"children":4240},{"style":1058},[4241],{"type":998,"value":1080},{"type":993,"tag":1026,"props":4243,"children":4244},{"style":1041},[4245],{"type":998,"value":4246},"])\n",{"type":993,"tag":1026,"props":4248,"children":4249},{"class":1028,"line":81},[4250,4254,4258,4262,4267,4271,4276,4280,4284],{"type":993,"tag":1026,"props":4251,"children":4252},{"style":1058},[4253],{"type":998,"value":1163},{"type":993,"tag":1026,"props":4255,"children":4256},{"style":1041},[4257],{"type":998,"value":1168},{"type":993,"tag":1026,"props":4259,"children":4260},{"style":1047},[4261],{"type":998,"value":1173},{"type":993,"tag":1026,"props":4263,"children":4264},{"style":1122},[4265],{"type":998,"value":4266},"\"Frozen set: ",{"type":993,"tag":1026,"props":4268,"children":4269},{"style":1058},[4270],{"type":998,"value":1183},{"type":993,"tag":1026,"props":4272,"children":4273},{"style":1041},[4274],{"type":998,"value":4275},"frozen_set",{"type":993,"tag":1026,"props":4277,"children":4278},{"style":1058},[4279],{"type":998,"value":1193},{"type":993,"tag":1026,"props":4281,"children":4282},{"style":1122},[4283],{"type":998,"value":1198},{"type":993,"tag":1026,"props":4285,"children":4286},{"style":1041},[4287],{"type":998,"value":1203},{"type":993,"tag":1026,"props":4289,"children":4290},{"class":1028,"line":91},[4291],{"type":993,"tag":1026,"props":4292,"children":4293},{"emptyLinePlaceholder":13},[4294],{"type":998,"value":1155},{"type":993,"tag":1026,"props":4296,"children":4297},{"class":1028,"line":100},[4298],{"type":993,"tag":1026,"props":4299,"children":4300},{"style":1032},[4301],{"type":998,"value":4302},"# Frozen sets can be in other sets\n",{"type":993,"tag":1026,"props":4304,"children":4305},{"class":1028,"line":109},[4306,4311,4315,4319,4324,4328,4332,4336,4340,4345,4349,4353,4357,4361,4365],{"type":993,"tag":1026,"props":4307,"children":4308},{"style":1041},[4309],{"type":998,"value":4310},"set_of_sets ",{"type":993,"tag":1026,"props":4312,"children":4313},{"style":1047},[4314],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4316,"children":4317},{"style":1041},[4318],{"type":998,"value":1055},{"type":993,"tag":1026,"props":4320,"children":4321},{"style":1058},[4322],{"type":998,"value":4323},"frozenset",{"type":993,"tag":1026,"props":4325,"children":4326},{"style":1041},[4327],{"type":998,"value":4221},{"type":993,"tag":1026,"props":4329,"children":4330},{"style":1058},[4331],{"type":998,"value":1061},{"type":993,"tag":1026,"props":4333,"children":4334},{"style":1041},[4335],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4337,"children":4338},{"style":1058},[4339],{"type":998,"value":1071},{"type":993,"tag":1026,"props":4341,"children":4342},{"style":1041},[4343],{"type":998,"value":4344},"]), ",{"type":993,"tag":1026,"props":4346,"children":4347},{"style":1058},[4348],{"type":998,"value":4323},{"type":993,"tag":1026,"props":4350,"children":4351},{"style":1041},[4352],{"type":998,"value":4221},{"type":993,"tag":1026,"props":4354,"children":4355},{"style":1058},[4356],{"type":998,"value":1080},{"type":993,"tag":1026,"props":4358,"children":4359},{"style":1041},[4360],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4362,"children":4363},{"style":1058},[4364],{"type":998,"value":1089},{"type":993,"tag":1026,"props":4366,"children":4367},{"style":1041},[4368],{"type":998,"value":4369},"])}\n",{"type":993,"tag":1026,"props":4371,"children":4372},{"class":1028,"line":118},[4373,4377,4381,4385,4390,4394,4399,4403,4407],{"type":993,"tag":1026,"props":4374,"children":4375},{"style":1058},[4376],{"type":998,"value":1163},{"type":993,"tag":1026,"props":4378,"children":4379},{"style":1041},[4380],{"type":998,"value":1168},{"type":993,"tag":1026,"props":4382,"children":4383},{"style":1047},[4384],{"type":998,"value":1173},{"type":993,"tag":1026,"props":4386,"children":4387},{"style":1122},[4388],{"type":998,"value":4389},"\"Set of frozen sets: ",{"type":993,"tag":1026,"props":4391,"children":4392},{"style":1058},[4393],{"type":998,"value":1183},{"type":993,"tag":1026,"props":4395,"children":4396},{"style":1041},[4397],{"type":998,"value":4398},"set_of_sets",{"type":993,"tag":1026,"props":4400,"children":4401},{"style":1058},[4402],{"type":998,"value":1193},{"type":993,"tag":1026,"props":4404,"children":4405},{"style":1122},[4406],{"type":998,"value":1198},{"type":993,"tag":1026,"props":4408,"children":4409},{"style":1041},[4410],{"type":998,"value":1203},{"type":993,"tag":1366,"props":4412,"children":4414},{"id":4413},"set-vs-other-data-types",[4415],{"type":998,"value":4416},"📚 Set vs Other Data Types",{"type":993,"tag":1001,"props":4418,"children":4419},{},[4420],{"type":998,"value":4421},"Comparing sets with other Python data structures helps you choose the right tool.",{"type":993,"tag":4423,"props":4424,"children":4425},"table",{},[4426,4460],{"type":993,"tag":4427,"props":4428,"children":4429},"thead",{},[4430],{"type":993,"tag":4431,"props":4432,"children":4433},"tr",{},[4434,4440,4445,4450,4455],{"type":993,"tag":4435,"props":4436,"children":4437},"th",{},[4438],{"type":998,"value":4439},"Feature",{"type":993,"tag":4435,"props":4441,"children":4442},{},[4443],{"type":998,"value":4444},"Set",{"type":993,"tag":4435,"props":4446,"children":4447},{},[4448],{"type":998,"value":4449},"List",{"type":993,"tag":4435,"props":4451,"children":4452},{},[4453],{"type":998,"value":4454},"Tuple",{"type":993,"tag":4435,"props":4456,"children":4457},{},[4458],{"type":998,"value":4459},"Dictionary",{"type":993,"tag":4461,"props":4462,"children":4463},"tbody",{},[4464,4495,4523,4550,4578,4605],{"type":993,"tag":4431,"props":4465,"children":4466},{},[4467,4476,4481,4486,4490],{"type":993,"tag":4468,"props":4469,"children":4470},"td",{},[4471],{"type":993,"tag":1388,"props":4472,"children":4473},{},[4474],{"type":998,"value":4475},"Duplicates",{"type":993,"tag":4468,"props":4477,"children":4478},{},[4479],{"type":998,"value":4480},"No",{"type":993,"tag":4468,"props":4482,"children":4483},{},[4484],{"type":998,"value":4485},"Yes",{"type":993,"tag":4468,"props":4487,"children":4488},{},[4489],{"type":998,"value":4485},{"type":993,"tag":4468,"props":4491,"children":4492},{},[4493],{"type":998,"value":4494},"Keys: No, Values: Yes",{"type":993,"tag":4431,"props":4496,"children":4497},{},[4498,4506,4510,4514,4518],{"type":993,"tag":4468,"props":4499,"children":4500},{},[4501],{"type":993,"tag":1388,"props":4502,"children":4503},{},[4504],{"type":998,"value":4505},"Ordered",{"type":993,"tag":4468,"props":4507,"children":4508},{},[4509],{"type":998,"value":4480},{"type":993,"tag":4468,"props":4511,"children":4512},{},[4513],{"type":998,"value":4485},{"type":993,"tag":4468,"props":4515,"children":4516},{},[4517],{"type":998,"value":4485},{"type":993,"tag":4468,"props":4519,"children":4520},{},[4521],{"type":998,"value":4522},"Yes (Python 3.7+)",{"type":993,"tag":4431,"props":4524,"children":4525},{},[4526,4534,4538,4542,4546],{"type":993,"tag":4468,"props":4527,"children":4528},{},[4529],{"type":993,"tag":1388,"props":4530,"children":4531},{},[4532],{"type":998,"value":4533},"Mutable",{"type":993,"tag":4468,"props":4535,"children":4536},{},[4537],{"type":998,"value":4485},{"type":993,"tag":4468,"props":4539,"children":4540},{},[4541],{"type":998,"value":4485},{"type":993,"tag":4468,"props":4543,"children":4544},{},[4545],{"type":998,"value":4480},{"type":993,"tag":4468,"props":4547,"children":4548},{},[4549],{"type":998,"value":4485},{"type":993,"tag":4431,"props":4551,"children":4552},{},[4553,4561,4565,4569,4573],{"type":993,"tag":4468,"props":4554,"children":4555},{},[4556],{"type":993,"tag":1388,"props":4557,"children":4558},{},[4559],{"type":998,"value":4560},"Indexed",{"type":993,"tag":4468,"props":4562,"children":4563},{},[4564],{"type":998,"value":4480},{"type":993,"tag":4468,"props":4566,"children":4567},{},[4568],{"type":998,"value":4485},{"type":993,"tag":4468,"props":4570,"children":4571},{},[4572],{"type":998,"value":4485},{"type":993,"tag":4468,"props":4574,"children":4575},{},[4576],{"type":998,"value":4577},"By key",{"type":993,"tag":4431,"props":4579,"children":4580},{},[4581,4589,4593,4597,4601],{"type":993,"tag":4468,"props":4582,"children":4583},{},[4584],{"type":993,"tag":1388,"props":4585,"children":4586},{},[4587],{"type":998,"value":4588},"Fast Lookup",{"type":993,"tag":4468,"props":4590,"children":4591},{},[4592],{"type":998,"value":4485},{"type":993,"tag":4468,"props":4594,"children":4595},{},[4596],{"type":998,"value":4480},{"type":993,"tag":4468,"props":4598,"children":4599},{},[4600],{"type":998,"value":4480},{"type":993,"tag":4468,"props":4602,"children":4603},{},[4604],{"type":998,"value":4485},{"type":993,"tag":4431,"props":4606,"children":4607},{},[4608,4615,4619,4623,4627],{"type":993,"tag":4468,"props":4609,"children":4610},{},[4611],{"type":993,"tag":1388,"props":4612,"children":4613},{},[4614],{"type":998,"value":143},{"type":993,"tag":4468,"props":4616,"children":4617},{},[4618],{"type":998,"value":4485},{"type":993,"tag":4468,"props":4620,"children":4621},{},[4622],{"type":998,"value":4480},{"type":993,"tag":4468,"props":4624,"children":4625},{},[4626],{"type":998,"value":4480},{"type":993,"tag":4468,"props":4628,"children":4629},{},[4630],{"type":998,"value":4480},{"type":993,"tag":1001,"props":4632,"children":4633},{},[4634],{"type":998,"value":4635},"Choose sets when you need unique elements and fast membership testing.",{"type":993,"tag":1001,"props":4637,"children":4638},{},[4639,4641,4647,4649,4654],{"type":998,"value":4640},"Learn more about ",{"type":993,"tag":4642,"props":4643,"children":4644},"a",{"href":453},[4645],{"type":998,"value":4646},"creating sets",{"type":998,"value":4648}," and ",{"type":993,"tag":4642,"props":4650,"children":4651},{"href":462},[4652],{"type":998,"value":4653},"reading set data",{"type":998,"value":4655}," to start working with this powerful data structure.",{"type":993,"tag":1366,"props":4657,"children":4659},{"id":4658},"what-youll-learn",[4660],{"type":998,"value":4661},"What You'll Learn",{"type":993,"tag":1001,"props":4663,"children":4664},{},[4665],{"type":998,"value":4666},"This section covers everything you need to master Python sets:",{"type":993,"tag":1394,"props":4668,"children":4669},{},[4670,4682,4694,4706,4718,4730,4742,4754],{"type":993,"tag":1398,"props":4671,"children":4672},{},[4673,4680],{"type":993,"tag":1388,"props":4674,"children":4675},{},[4676],{"type":993,"tag":4642,"props":4677,"children":4678},{"href":453},[4679],{"type":998,"value":454},{"type":998,"value":4681}," - Learn different ways to create and initialize sets",{"type":993,"tag":1398,"props":4683,"children":4684},{},[4685,4692],{"type":993,"tag":1388,"props":4686,"children":4687},{},[4688],{"type":993,"tag":4642,"props":4689,"children":4690},{"href":462},[4691],{"type":998,"value":463},{"type":998,"value":4693}," - Master accessing and searching set elements",{"type":993,"tag":1398,"props":4695,"children":4696},{},[4697,4704],{"type":993,"tag":1388,"props":4698,"children":4699},{},[4700],{"type":993,"tag":4642,"props":4701,"children":4702},{"href":471},[4703],{"type":998,"value":472},{"type":998,"value":4705}," - Discover methods to insert new items into sets",{"type":993,"tag":1398,"props":4707,"children":4708},{},[4709,4716],{"type":993,"tag":1388,"props":4710,"children":4711},{},[4712],{"type":993,"tag":4642,"props":4713,"children":4714},{"href":480},[4715],{"type":998,"value":481},{"type":998,"value":4717}," - Learn techniques to delete items from sets",{"type":993,"tag":1398,"props":4719,"children":4720},{},[4721,4728],{"type":993,"tag":1388,"props":4722,"children":4723},{},[4724],{"type":993,"tag":4642,"props":4725,"children":4726},{"href":489},[4727],{"type":998,"value":490},{"type":998,"value":4729}," - Master patterns for looping through set elements",{"type":993,"tag":1398,"props":4731,"children":4732},{},[4733,4740],{"type":993,"tag":1388,"props":4734,"children":4735},{},[4736],{"type":993,"tag":4642,"props":4737,"children":4738},{"href":498},[4739],{"type":998,"value":499},{"type":998,"value":4741}," - Understand union, intersection, and merge operations",{"type":993,"tag":1398,"props":4743,"children":4744},{},[4745,4752],{"type":993,"tag":1388,"props":4746,"children":4747},{},[4748],{"type":993,"tag":4642,"props":4749,"children":4750},{"href":507},[4751],{"type":998,"value":508},{"type":998,"value":4753}," - Explore advanced mathematical and comparison methods",{"type":993,"tag":1398,"props":4755,"children":4756},{},[4757,4765],{"type":993,"tag":1388,"props":4758,"children":4759},{},[4760],{"type":993,"tag":4642,"props":4761,"children":4762},{"href":954},[4763],{"type":998,"value":4764},"Set Methods",{"type":998,"value":4766}," - Set methods and operations reference",{"type":993,"tag":1366,"props":4768,"children":4770},{"id":4769},"test-your-knowledge",[4771],{"type":998,"value":4772},"Test Your Knowledge",{"type":993,"tag":1001,"props":4774,"children":4775},{},[4776],{"type":998,"value":4777},"Test what you've learned about Python sets:",{"type":993,"tag":4779,"props":4780,"children":4784},"redirect-button",{"icon":4781,"label":4782,"url":4783},"pi pi-send","Take Quiz","/tutorial-quiz/python/python-sets",[],{"type":993,"tag":1366,"props":4786,"children":4788},{"id":4787},"whats-next",[4789],{"type":998,"value":4790},"What's Next?",{"type":993,"tag":1001,"props":4792,"children":4793},{},[4794],{"type":998,"value":4795},"Now that you understand what sets are and when to use them, you're ready to learn how to create sets in Python. Understanding set creation is the foundation for all set operations.",{"type":993,"tag":1001,"props":4797,"children":4798},{},[4799,4801,4805],{"type":998,"value":4800},"Ready to continue? Check out our lesson on ",{"type":993,"tag":4642,"props":4802,"children":4803},{"href":453},[4804],{"type":998,"value":454},{"type":998,"value":4806},".",{"type":993,"tag":4808,"props":4809,"children":4810},"style",{},[4811],{"type":998,"value":4812},"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":4814},[4815,4820,4825,4829,4832,4833,4834,4835],{"id":1368,"depth":27,"text":1371,"children":4816},[4817,4818,4819],{"id":1473,"depth":36,"text":1476},{"id":1769,"depth":36,"text":1772},{"id":2043,"depth":36,"text":2046},{"id":2338,"depth":27,"text":2341,"children":4821},[4822,4823,4824],{"id":2448,"depth":36,"text":2451},{"id":2748,"depth":36,"text":2751},{"id":3045,"depth":36,"text":3048},{"id":3329,"depth":27,"text":3332,"children":4826},[4827,4828],{"id":3424,"depth":36,"text":3427},{"id":3674,"depth":36,"text":3677},{"id":3967,"depth":27,"text":3970,"children":4830},[4831],{"id":4061,"depth":36,"text":4064},{"id":4413,"depth":27,"text":4416},{"id":4658,"depth":27,"text":4661},{"id":4769,"depth":27,"text":4772},{"id":4787,"depth":27,"text":4790},1782373740157]