[{"data":1,"prerenderedAt":7713},["ShallowReactive",2],{"tutorials-python":3,"category-items-python":987,"content-/python/creating-sets":988},[4,22,31,40,49,58,67,76,86,95,104,113,122,131,141,150,159,168,177,186,196,205,214,223,233,242,251,260,269,279,288,297,306,315,324,333,342,351,360,369,379,388,397,406,415,424,433,442,452,461,470,479,488,497,506,515,525,534,543,552,561,570,579,588,597,606,616,625,634,643,652,661,670,680,689,698,707,716,725,734,744,753,762,771,780,789,798,807,817,826,835,844,853,863,872,881,890,900,909,918,927,936,945,953,961,970,979],{"_path":5,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":9,"description":10,"slug":11,"order":12,"isParent":13,"icon":14,"_type":15,"_id":16,"_source":17,"_file":18,"_stem":19,"_extension":20,"children":21,"expanded":13},"/python/getting-started","python",false,"","Getting Started","Begin your Python programming journey. Learn what Python is, how to set it up, and write your first programs. Perfect for complete beginners starting their coding adventure.","getting-started",1,true,"pi pi-folder","markdown","content:python:1.getting-started.md","content","python/1.getting-started.md","python/1.getting-started","md",[22,31,40,49,58,67],{"_path":23,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":24,"description":25,"slug":26,"parentId":5,"order":27,"_type":15,"_id":28,"_source":17,"_file":29,"_stem":30,"_extension":20},"/python/what-is-python","What is Python","Discover Python's fascinating history, design philosophy, and key features. Learn why Python has become one of the world's most popular programming languages and perfect for beginners.","what-is-python",2,"content:python:2.what-is-python.md","python/2.what-is-python.md","python/2.what-is-python",{"_path":32,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":33,"description":34,"slug":35,"parentId":5,"order":36,"_type":15,"_id":37,"_source":17,"_file":38,"_stem":39,"_extension":20},"/python/setup-python","Setup Python","Learn how to install Python on your computer and set up your development environment. Step-by-step guide for Windows, macOS, and Linux with beginner-friendly instructions.","setup-python",3,"content:python:3.setup-python.md","python/3.setup-python.md","python/3.setup-python",{"_path":41,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":42,"description":43,"slug":44,"parentId":5,"order":45,"_type":15,"_id":46,"_source":17,"_file":47,"_stem":48,"_extension":20},"/python/your-first-program","Your First Program","Write and run your first Python program! Learn the basics of Python programming with simple examples and step-by-step instructions for beginners.","your-first-program",4,"content:python:4.your-first-program.md","python/4.your-first-program.md","python/4.your-first-program",{"_path":50,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":51,"description":52,"slug":53,"parentId":5,"order":54,"_type":15,"_id":55,"_source":17,"_file":56,"_stem":57,"_extension":20},"/python/python-code-structure","Python Code Structure","Learn how Python code is organized and structured. Understand indentation, line breaks, and the basic rules that make Python programs work correctly.","python-code-structure",5,"content:python:5.python-code-structure.md","python/5.python-code-structure.md","python/5.python-code-structure",{"_path":59,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":60,"description":61,"slug":62,"parentId":5,"order":63,"_type":15,"_id":64,"_source":17,"_file":65,"_stem":66,"_extension":20},"/python/writing-comments","Writing Comments","Learn how to write effective comments in Python. Discover when and how to document your code to make it clear, maintainable, and easy to understand.","writing-comments",6,"content:python:6.writing-comments.md","python/6.writing-comments.md","python/6.writing-comments",{"_path":68,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":69,"description":70,"slug":71,"parentId":5,"order":72,"_type":15,"_id":73,"_source":17,"_file":74,"_stem":75,"_extension":20},"/python/working-with-variables","Working with Variables","Learn how to create, use, and manage variables in Python. Understand how to store data, change values, and follow naming conventions for clean, readable code.","working-with-variables",7,"content:python:7.working-with-variables.md","python/7.working-with-variables.md","python/7.working-with-variables",{"_path":77,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":78,"description":79,"slug":80,"order":81,"isParent":13,"icon":14,"_type":15,"_id":82,"_source":17,"_file":83,"_stem":84,"_extension":20,"children":85,"expanded":13},"/python/basic-data-types","Basic Data Types","Learn about Python's fundamental data types including numbers, text, and boolean values","basic-data-types",8,"content:python:8.basic-data-types.md","python/8.basic-data-types.md","python/8.basic-data-types",[86,95,104,113,122],{"_path":87,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":88,"description":89,"slug":90,"parentId":77,"order":91,"_type":15,"_id":92,"_source":17,"_file":93,"_stem":94,"_extension":20},"/python/understanding-data-types","Understanding Data Types","Learn how Python identifies different data types and why they're important for programming","understanding-data-types",9,"content:python:9.understanding-data-types.md","python/9.understanding-data-types.md","python/9.understanding-data-types",{"_path":96,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":97,"description":98,"slug":99,"parentId":77,"order":100,"_type":15,"_id":101,"_source":17,"_file":102,"_stem":103,"_extension":20},"/python/working-with-numbers","Working with Numbers","Learn about Python's numeric data types including integers and floats, and how to perform calculations","working-with-numbers",10,"content:python:10.working-with-numbers.md","python/10.working-with-numbers.md","python/10.working-with-numbers",{"_path":105,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":106,"description":107,"slug":108,"parentId":77,"order":109,"_type":15,"_id":110,"_source":17,"_file":111,"_stem":112,"_extension":20},"/python/text-and-strings","Text and Strings","Learn how to work with text data in Python using strings, including creation, manipulation, and formatting","text-and-strings",11,"content:python:11.text-and-strings.md","python/11.text-and-strings.md","python/11.text-and-strings",{"_path":114,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":115,"description":116,"slug":117,"parentId":77,"order":118,"_type":15,"_id":119,"_source":17,"_file":120,"_stem":121,"_extension":20},"/python/true-false-values","True/False Values","Learn about boolean values in Python, including True/False logic, comparison operations, and how to use booleans for decision-making in your programs","true-false-values",12,"content:python:12.true-false-values.md","python/12.true-false-values.md","python/12.true-false-values",{"_path":123,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":124,"description":125,"slug":126,"parentId":77,"order":127,"_type":15,"_id":128,"_source":17,"_file":129,"_stem":130,"_extension":20},"/python/converting-types","Converting Types","Learn how to convert between different Python data types including strings, numbers, and booleans","converting-types",13,"content:python:13.converting-types.md","python/13.converting-types.md","python/13.converting-types",{"_path":132,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":133,"description":134,"slug":135,"order":136,"isParent":13,"icon":14,"_type":15,"_id":137,"_source":17,"_file":138,"_stem":139,"_extension":20,"children":140,"expanded":13},"/python/python-operators","Python Operators","Learn about Python operators - the symbols and keywords that perform operations on data. Discover arithmetic, comparison, logical, and assignment operators with simple examples.","python-operators",14,"content:python:14.python-operators.md","python/14.python-operators.md","python/14.python-operators",[141,150,159,168,177],{"_path":142,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":143,"description":144,"slug":145,"parentId":132,"order":146,"_type":15,"_id":147,"_source":17,"_file":148,"_stem":149,"_extension":20},"/python/math-operations","Math Operations","Learn Python's arithmetic operators for mathematical calculations. Master addition, subtraction, multiplication, division, and more with practical examples.","math-operations",15,"content:python:15.math-operations.md","python/15.math-operations.md","python/15.math-operations",{"_path":151,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":152,"description":153,"slug":154,"parentId":132,"order":155,"_type":15,"_id":156,"_source":17,"_file":157,"_stem":158,"_extension":20},"/python/comparing-values","Comparing Values","Learn Python's comparison operators to compare values and make decisions. Master equality, inequality, and relational operators with practical examples.","comparing-values",16,"content:python:16.comparing-values.md","python/16.comparing-values.md","python/16.comparing-values",{"_path":160,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":161,"description":162,"slug":163,"parentId":132,"order":164,"_type":15,"_id":165,"_source":17,"_file":166,"_stem":167,"_extension":20},"/python/logic-operations","Logic Operations","Learn about Python's logical operators for combining conditions and creating complex boolean expressions","logic-operations",17,"content:python:17.logic-operations.md","python/17.logic-operations.md","python/17.logic-operations",{"_path":169,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":170,"description":171,"slug":172,"parentId":132,"order":173,"_type":15,"_id":174,"_source":17,"_file":175,"_stem":176,"_extension":20},"/python/value-assignment","Value Assignment","Learn about Python's assignment operators for efficiently updating variables and performing calculations","value-assignment",18,"content:python:18.value-assignment.md","python/18.value-assignment.md","python/18.value-assignment",{"_path":178,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":179,"description":180,"slug":181,"parentId":132,"order":182,"_type":15,"_id":183,"_source":17,"_file":184,"_stem":185,"_extension":20},"/python/operator-precedence","Operator Precedence","Learn how Python evaluates expressions with multiple operators and how to control evaluation order","operator-precedence",19,"content:python:19.operator-precedence.md","python/19.operator-precedence.md","python/19.operator-precedence",{"_path":187,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":188,"description":189,"slug":190,"order":191,"isParent":13,"icon":14,"_type":15,"_id":192,"_source":17,"_file":193,"_stem":194,"_extension":20,"children":195,"expanded":13},"/python/decision-making","Decision Making","Learn how to make decisions in your Python programs using conditional statements and control flow","decision-making",20,"content:python:20.decision-making.md","python/20.decision-making.md","python/20.decision-making",[196,205,214],{"_path":197,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":198,"description":199,"slug":200,"parentId":187,"order":201,"_type":15,"_id":202,"_source":17,"_file":203,"_stem":204,"_extension":20},"/python/if-statements","If Statements","Learn how to use if statements to make decisions and control program flow in Python","if-statements",21,"content:python:21.if-statements.md","python/21.if-statements.md","python/21.if-statements",{"_path":206,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":207,"description":208,"slug":209,"parentId":187,"order":210,"_type":15,"_id":211,"_source":17,"_file":212,"_stem":213,"_extension":20},"/python/multiple-conditions","Multiple Conditions","Learn how to handle multiple conditions using elif statements and complex conditional logic in Python","multiple-conditions",22,"content:python:22.multiple-conditions.md","python/22.multiple-conditions.md","python/22.multiple-conditions",{"_path":215,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":216,"description":217,"slug":218,"parentId":187,"order":219,"_type":15,"_id":220,"_source":17,"_file":221,"_stem":222,"_extension":20},"/python/pattern-matching","Pattern Matching","Learn how to use Python's match-case statements for powerful pattern matching and complex decision making","pattern-matching",23,"content:python:23.pattern-matching.md","python/23.pattern-matching.md","python/23.pattern-matching",{"_path":224,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":225,"description":226,"slug":227,"order":228,"isParent":13,"icon":14,"_type":15,"_id":229,"_source":17,"_file":230,"_stem":231,"_extension":20,"children":232,"expanded":13},"/python/repetition-and-loops","Python Loops","Learn how to use loops to repeat code efficiently and handle repetitive tasks in Python","repetition-and-loops",24,"content:python:24.repetition-and-loops.md","python/24.repetition-and-loops.md","python/24.repetition-and-loops",[233,242,251,260],{"_path":234,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":235,"description":236,"slug":237,"parentId":224,"order":238,"_type":15,"_id":239,"_source":17,"_file":240,"_stem":241,"_extension":20},"/python/while-loops","While Loops","Learn how to use while loops for condition-based repetition and create loops that run until specific conditions are met","while-loops",25,"content:python:25.while-loops.md","python/25.while-loops.md","python/25.while-loops",{"_path":243,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":244,"description":245,"slug":246,"parentId":224,"order":247,"_type":15,"_id":248,"_source":17,"_file":249,"_stem":250,"_extension":20},"/python/for-loops","For Loops","Learn how to use for loops to iterate through sequences, collections, and ranges efficiently in Python","for-loops",26,"content:python:26.for-loops.md","python/26.for-loops.md","python/26.for-loops",{"_path":252,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":253,"description":254,"slug":255,"parentId":224,"order":256,"_type":15,"_id":257,"_source":17,"_file":258,"_stem":259,"_extension":20},"/python/loop-control","Loop Control","Master advanced loop control techniques including break, continue, and else clauses for sophisticated iteration patterns","loop-control",27,"content:python:27.loop-control.md","python/27.loop-control.md","python/27.loop-control",{"_path":261,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":262,"description":263,"slug":264,"parentId":224,"order":265,"_type":15,"_id":266,"_source":17,"_file":267,"_stem":268,"_extension":20},"/python/nested-loops","Nested Loops","Learn how to use nested loops to process multi-dimensional data, create patterns, and handle complex iteration scenarios","nested-loops",28,"content:python:28.nested-loops.md","python/28.nested-loops.md","python/28.nested-loops",{"_path":270,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":271,"description":272,"slug":273,"order":274,"isParent":13,"icon":14,"_type":15,"_id":275,"_source":17,"_file":276,"_stem":277,"_extension":20,"children":278,"expanded":13},"/python/python-lists","Python Lists","Learn about Python lists, one of the most important and versatile data structures for storing and organizing collections of data","python-lists",29,"content:python:29.python-lists.md","python/29.python-lists.md","python/29.python-lists",[279,288,297,306,315,324,333,342,351,360],{"_path":280,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":281,"description":282,"slug":283,"parentId":270,"order":284,"_type":15,"_id":285,"_source":17,"_file":286,"_stem":287,"_extension":20},"/python/creating-lists","Creating Lists","Learn different methods to create and initialize Python lists, from simple literals to advanced techniques","creating-lists",30,"content:python:30.creating-lists.md","python/30.creating-lists.md","python/30.creating-lists",{"_path":289,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":290,"description":291,"slug":292,"parentId":270,"order":293,"_type":15,"_id":294,"_source":17,"_file":295,"_stem":296,"_extension":20},"/python/reading-list-data","Reading List Data","Master techniques for accessing and retrieving data from Python lists using indexing, slicing, and built-in methods","reading-list-data",31,"content:python:31.reading-list-data.md","python/31.reading-list-data.md","python/31.reading-list-data",{"_path":298,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":299,"description":300,"slug":301,"parentId":270,"order":302,"_type":15,"_id":303,"_source":17,"_file":304,"_stem":305,"_extension":20},"/python/modifying-lists","Modifying Lists","Learn how to change, update, and modify existing elements in Python lists using indexing and various methods","modifying-lists",32,"content:python:32.modifying-lists.md","python/32.modifying-lists.md","python/32.modifying-lists",{"_path":307,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":308,"description":309,"slug":310,"parentId":270,"order":311,"_type":15,"_id":312,"_source":17,"_file":313,"_stem":314,"_extension":20},"/python/adding-to-lists","Adding to Lists","Learn various methods to add elements to Python lists including append, insert, extend, and concatenation techniques","adding-to-lists",33,"content:python:33.adding-to-lists.md","python/33.adding-to-lists.md","python/33.adding-to-lists",{"_path":316,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":317,"description":318,"slug":319,"parentId":270,"order":320,"_type":15,"_id":321,"_source":17,"_file":322,"_stem":323,"_extension":20},"/python/removing-from-lists","Removing from Lists","Learn different methods to remove and delete elements from Python lists including remove, pop, del, and clear","removing-from-lists",34,"content:python:34.removing-from-lists.md","python/34.removing-from-lists.md","python/34.removing-from-lists",{"_path":325,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":326,"description":327,"slug":328,"parentId":270,"order":329,"_type":15,"_id":330,"_source":17,"_file":331,"_stem":332,"_extension":20},"/python/looping-through-lists","Looping Through Lists","Learn different ways to iterate through Python lists using for loops, while loops, enumerate, and other iteration techniques","looping-through-lists",35,"content:python:35.looping-through-lists.md","python/35.looping-through-lists.md","python/35.looping-through-lists",{"_path":334,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":335,"description":336,"slug":337,"parentId":270,"order":338,"_type":15,"_id":339,"_source":17,"_file":340,"_stem":341,"_extension":20},"/python/list-shortcuts","List Shortcuts","Learn powerful Python list shortcuts including list comprehensions, slicing tricks, and built-in functions for efficient list operations","list-shortcuts",36,"content:python:36.list-shortcuts.md","python/36.list-shortcuts.md","python/36.list-shortcuts",{"_path":343,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":344,"description":345,"slug":346,"parentId":270,"order":347,"_type":15,"_id":348,"_source":17,"_file":349,"_stem":350,"_extension":20},"/python/organizing-lists","Organizing Lists","Learn how to sort, reverse, and organize Python lists using built-in methods and custom sorting techniques","organizing-lists",37,"content:python:37.organizing-lists.md","python/37.organizing-lists.md","python/37.organizing-lists",{"_path":352,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":353,"description":354,"slug":355,"parentId":270,"order":356,"_type":15,"_id":357,"_source":17,"_file":358,"_stem":359,"_extension":20},"/python/combining-lists","Combining Lists","Learn various techniques to combine, merge, and join Python lists including concatenation, zipping, and advanced merging strategies","combining-lists",38,"content:python:38.combining-lists.md","python/38.combining-lists.md","python/38.combining-lists",{"_path":361,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":362,"description":363,"slug":364,"parentId":270,"order":365,"_type":15,"_id":366,"_source":17,"_file":367,"_stem":368,"_extension":20},"/python/essential-list-tools","Essential List Tools","Master powerful built-in functions and advanced techniques for efficient Python list manipulation and data processing","essential-list-tools",39,"content:python:39.essential-list-tools.md","python/39.essential-list-tools.md","python/39.essential-list-tools",{"_path":370,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":371,"description":372,"slug":373,"order":374,"isParent":13,"icon":14,"_type":15,"_id":375,"_source":17,"_file":376,"_stem":377,"_extension":20,"children":378,"expanded":13},"/python/python-tuples","Python Tuples","Master Python tuples - immutable sequences perfect for storing related data that shouldn't change. Learn creation, access, and manipulation techniques.","python-tuples",40,"content:python:40.python-tuples.md","python/40.python-tuples.md","python/40.python-tuples",[379,388,397,406,415,424,433],{"_path":380,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":381,"description":382,"slug":383,"parentId":370,"order":384,"_type":15,"_id":385,"_source":17,"_file":386,"_stem":387,"_extension":20},"/python/creating-tuples","Creating Tuples","Learn different ways to create Python tuples, from basic syntax to advanced techniques. Master tuple initialization and understand when to use tuples.","creating-tuples",41,"content:python:41.creating-tuples.md","python/41.creating-tuples.md","python/41.creating-tuples",{"_path":389,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":390,"description":391,"slug":392,"parentId":370,"order":393,"_type":15,"_id":394,"_source":17,"_file":395,"_stem":396,"_extension":20},"/python/reading-tuple-data","Reading Tuple Data","Master accessing tuple elements through indexing, slicing, and searching. Learn efficient patterns for reading and working with tuple data.","reading-tuple-data",42,"content:python:42.reading-tuple-data.md","python/42.reading-tuple-data.md","python/42.reading-tuple-data",{"_path":398,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":399,"description":400,"slug":401,"parentId":370,"order":402,"_type":15,"_id":403,"_source":17,"_file":404,"_stem":405,"_extension":20},"/python/changing-tuples","Changing Tuples","Understand tuple immutability and learn techniques for working with unchangeable data. Master creating modified tuple versions and handling immutable constraints.","changing-tuples",43,"content:python:43.changing-tuples.md","python/43.changing-tuples.md","python/43.changing-tuples",{"_path":407,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":408,"description":409,"slug":410,"parentId":370,"order":411,"_type":15,"_id":412,"_source":17,"_file":413,"_stem":414,"_extension":20},"/python/tuple-unpacking","Tuple Unpacking","Master tuple unpacking for elegant variable assignment, function returns, and data extraction. Learn Python's powerful unpacking syntax and patterns.","tuple-unpacking",44,"content:python:44.tuple-unpacking.md","python/44.tuple-unpacking.md","python/44.tuple-unpacking",{"_path":416,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":417,"description":418,"slug":419,"parentId":370,"order":420,"_type":15,"_id":421,"_source":17,"_file":422,"_stem":423,"_extension":20},"/python/iterating-tuples","Iterating Tuples","Master tuple iteration techniques for processing sequence data. Learn basic loops, enumerate, nested iteration, and advanced patterns for efficient data processing.","iterating-tuples",45,"content:python:45.iterating-tuples.md","python/45.iterating-tuples.md","python/45.iterating-tuples",{"_path":425,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":426,"description":427,"slug":428,"parentId":370,"order":429,"_type":15,"_id":430,"_source":17,"_file":431,"_stem":432,"_extension":20},"/python/merging-tuples","Merging Tuples","Learn techniques for combining and merging tuples to create larger data structures. Master concatenation, joining multiple tuples, and advanced merging patterns.","merging-tuples",46,"content:python:46.merging-tuples.md","python/46.merging-tuples.md","python/46.merging-tuples",{"_path":434,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":435,"description":436,"slug":437,"parentId":370,"order":438,"_type":15,"_id":439,"_source":17,"_file":440,"_stem":441,"_extension":20},"/python/tuple-operations","Tuple Operations","Master comprehensive tuple operations including built-in functions, mathematical operations, comparisons, and advanced techniques for efficient tuple manipulation.","tuple-operations",47,"content:python:47.tuple-operations.md","python/47.tuple-operations.md","python/47.tuple-operations",{"_path":443,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":444,"description":445,"slug":446,"order":447,"isParent":13,"icon":14,"_type":15,"_id":448,"_source":17,"_file":449,"_stem":450,"_extension":20,"children":451,"expanded":13},"/python/python-sets","Python Sets","Discover Python sets - unique collections that automatically eliminate duplicates and provide powerful mathematical operations for data filtering and analysis.","python-sets",48,"content:python:48.python-sets.md","python/48.python-sets.md","python/48.python-sets",[452,461,470,479,488,497,506],{"_path":453,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":454,"description":455,"slug":456,"parentId":443,"order":457,"_type":15,"_id":458,"_source":17,"_file":459,"_stem":460,"_extension":20},"/python/creating-sets","Creating Sets","Learn multiple ways to create sets in Python including literal syntax, set() function, and set comprehensions. Master set creation from different data sources.","creating-sets",49,"content:python:49.creating-sets.md","python/49.creating-sets.md","python/49.creating-sets",{"_path":462,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":463,"description":464,"slug":465,"parentId":443,"order":466,"_type":15,"_id":467,"_source":17,"_file":468,"_stem":469,"_extension":20},"/python/reading-set-data","Reading Set Data","Learn how to access and examine set data in Python including membership testing, iteration, size checking, and converting sets to other data types.","reading-set-data",50,"content:python:50.reading-set-data.md","python/50.reading-set-data.md","python/50.reading-set-data",{"_path":471,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":472,"description":473,"slug":474,"parentId":443,"order":475,"_type":15,"_id":476,"_source":17,"_file":477,"_stem":478,"_extension":20},"/python/adding-to-sets","Adding to Sets","Learn how to add elements to sets in Python using add(), update(), and union operations. Master growing sets dynamically with single items and multiple elements.","adding-to-sets",51,"content:python:51.adding-to-sets.md","python/51.adding-to-sets.md","python/51.adding-to-sets",{"_path":480,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":481,"description":482,"slug":483,"parentId":443,"order":484,"_type":15,"_id":485,"_source":17,"_file":486,"_stem":487,"_extension":20},"/python/removing-from-sets","Removing from Sets","Learn how to remove elements from Python sets using different methods like remove(), discard(), pop(), and clear()","removing-from-sets",52,"content:python:52.removing-from-sets.md","python/52.removing-from-sets.md","python/52.removing-from-sets",{"_path":489,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":490,"description":491,"slug":492,"parentId":443,"order":493,"_type":15,"_id":494,"_source":17,"_file":495,"_stem":496,"_extension":20},"/python/iterating-sets","Iterating Sets","Learn different ways to iterate through Python sets using for loops, comprehensions, and built-in functions","iterating-sets",53,"content:python:53.iterating-sets.md","python/53.iterating-sets.md","python/53.iterating-sets",{"_path":498,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":499,"description":500,"slug":501,"parentId":443,"order":502,"_type":15,"_id":503,"_source":17,"_file":504,"_stem":505,"_extension":20},"/python/combining-sets","Combining Sets","Learn how to combine Python sets using union, intersection, difference, and other set operations","combining-sets",54,"content:python:54.combining-sets.md","python/54.combining-sets.md","python/54.combining-sets",{"_path":507,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":508,"description":509,"slug":510,"parentId":443,"order":511,"_type":15,"_id":512,"_source":17,"_file":513,"_stem":514,"_extension":20},"/python/set-operations","Set Operations","Learn advanced Python set operations including comparisons, subsets, supersets, and mathematical set relationships","set-operations",55,"content:python:55.set-operations.md","python/55.set-operations.md","python/55.set-operations",{"_path":516,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":517,"description":518,"slug":519,"order":520,"isParent":13,"icon":14,"_type":15,"_id":521,"_source":17,"_file":522,"_stem":523,"_extension":20,"children":524},"/python/python-dictionaries","Python Dictionaries","Learn about Python dictionaries - key-value data structures for storing and organizing related information","python-dictionaries",56,"content:python:56.python-dictionaries.md","python/56.python-dictionaries.md","python/56.python-dictionaries",[525,534,543,552,561,570,579,588,597],{"_path":526,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":527,"description":528,"slug":529,"parentId":516,"order":530,"_type":15,"_id":531,"_source":17,"_file":532,"_stem":533,"_extension":20},"/python/creating-dictionaries","Creating Dictionaries","Learn different methods to create Python dictionaries using literals, constructors, and comprehensions","creating-dictionaries",57,"content:python:57.creating-dictionaries.md","python/57.creating-dictionaries.md","python/57.creating-dictionaries",{"_path":535,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":536,"description":537,"slug":538,"parentId":516,"order":539,"_type":15,"_id":540,"_source":17,"_file":541,"_stem":542,"_extension":20},"/python/getting-dictionary-values","Getting Dictionary Values","Learn safe and efficient methods to retrieve data from Python dictionaries using various access techniques","getting-dictionary-values",58,"content:python:58.getting-dictionary-values.md","python/58.getting-dictionary-values.md","python/58.getting-dictionary-values",{"_path":544,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":545,"description":546,"slug":547,"parentId":516,"order":548,"_type":15,"_id":549,"_source":17,"_file":550,"_stem":551,"_extension":20},"/python/updating-dictionaries","Updating Dictionaries","Learn how to modify and maintain Python dictionary data using various update methods and techniques","updating-dictionaries",59,"content:python:59.updating-dictionaries.md","python/59.updating-dictionaries.md","python/59.updating-dictionaries",{"_path":553,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":554,"description":555,"slug":556,"parentId":516,"order":557,"_type":15,"_id":558,"_source":17,"_file":559,"_stem":560,"_extension":20},"/python/adding-dictionary-items","Adding Dictionary Items","Learn effective techniques for adding new items to Python dictionaries with various methods and best practices","adding-dictionary-items",60,"content:python:60.adding-dictionary-items.md","python/60.adding-dictionary-items.md","python/60.adding-dictionary-items",{"_path":562,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":563,"description":564,"slug":565,"parentId":516,"order":566,"_type":15,"_id":567,"_source":17,"_file":568,"_stem":569,"_extension":20},"/python/deleting-dictionary-items","Deleting Dictionary Items","Master safe and efficient techniques for removing items from Python dictionaries with various methods and error handling","deleting-dictionary-items",61,"content:python:61.deleting-dictionary-items.md","python/61.deleting-dictionary-items.md","python/61.deleting-dictionary-items",{"_path":571,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":572,"description":573,"slug":574,"parentId":516,"order":575,"_type":15,"_id":576,"_source":17,"_file":577,"_stem":578,"_extension":20},"/python/looping-dictionaries","Looping Dictionaries","Learn efficient techniques for iterating through Python dictionaries using keys, values, and items","looping-dictionaries",62,"content:python:62.looping-dictionaries.md","python/62.looping-dictionaries.md","python/62.looping-dictionaries",{"_path":580,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":581,"description":582,"slug":583,"parentId":516,"order":584,"_type":15,"_id":585,"_source":17,"_file":586,"_stem":587,"_extension":20},"/python/dictionary-copies","Dictionary Copies","Learn safe techniques for duplicating Python dictionaries using shallow and deep copy methods","dictionary-copies",63,"content:python:63.dictionary-copies.md","python/63.dictionary-copies.md","python/63.dictionary-copies",{"_path":589,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":590,"description":591,"slug":592,"parentId":516,"order":593,"_type":15,"_id":594,"_source":17,"_file":595,"_stem":596,"_extension":20},"/python/multi-level-dictionaries","Multi-level Dictionaries","Master working with nested Python dictionaries for complex data structures and hierarchical information","multi-level-dictionaries",64,"content:python:64.multi-level-dictionaries.md","python/64.multi-level-dictionaries.md","python/64.multi-level-dictionaries",{"_path":598,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":599,"description":600,"slug":601,"parentId":516,"order":602,"_type":15,"_id":603,"_source":17,"_file":604,"_stem":605,"_extension":20},"/python/dictionary-tools","Dictionary Tools","Explore powerful built-in functions and advanced techniques for efficient Python dictionary manipulation and analysis","dictionary-tools",65,"content:python:65.dictionary-tools.md","python/65.dictionary-tools.md","python/65.dictionary-tools",{"_path":607,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":608,"description":609,"slug":610,"order":611,"isParent":13,"icon":14,"_type":15,"_id":612,"_source":17,"_file":613,"_stem":614,"_extension":20,"children":615},"/python/python-functions","Python Functions","Learn how to create and use Python functions to organize code into reusable, modular components that make programs more efficient and maintainable","python-functions",66,"content:python:66.python-functions.md","python/66.python-functions.md","python/66.python-functions",[616,625,634,643,652,661],{"_path":617,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":618,"description":619,"slug":620,"parentId":607,"order":621,"_type":15,"_id":622,"_source":17,"_file":623,"_stem":624,"_extension":20},"/python/function-basics","Function Basics","Learn the fundamentals of creating and using Python functions to organize code into reusable, modular components","function-basics",67,"content:python:67.function-basics.md","python/67.function-basics.md","python/67.function-basics",{"_path":626,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":627,"description":628,"slug":629,"parentId":607,"order":630,"_type":15,"_id":631,"_source":17,"_file":632,"_stem":633,"_extension":20},"/python/function-parameters","Function Parameters","Master different types of Python function parameters including positional, keyword, default, and variable-length arguments","function-parameters",68,"content:python:68.function-parameters.md","python/68.function-parameters.md","python/68.function-parameters",{"_path":635,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":636,"description":637,"slug":638,"parentId":607,"order":639,"_type":15,"_id":640,"_source":17,"_file":641,"_stem":642,"_extension":20},"/python/returning-values","Returning Values","Learn different ways Python functions return data including single values, multiple values, and conditional returns","returning-values",69,"content:python:69.returning-values.md","python/69.returning-values.md","python/69.returning-values",{"_path":644,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":645,"description":646,"slug":647,"parentId":607,"order":648,"_type":15,"_id":649,"_source":17,"_file":650,"_stem":651,"_extension":20},"/python/variable-scope","Variable Scope","Understand Python variable scope including local, global, and nonlocal variables and how they affect function behavior","variable-scope",70,"content:python:70.variable-scope.md","python/70.variable-scope.md","python/70.variable-scope",{"_path":653,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":654,"description":655,"slug":656,"parentId":607,"order":657,"_type":15,"_id":658,"_source":17,"_file":659,"_stem":660,"_extension":20},"/python/anonymous-functions","Anonymous Functions","Learn to create and use Python lambda functions for concise, inline function definitions and functional programming patterns","anonymous-functions",71,"content:python:71.anonymous-functions.md","python/71.anonymous-functions.md","python/71.anonymous-functions",{"_path":662,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":663,"description":664,"slug":665,"parentId":607,"order":666,"_type":15,"_id":667,"_source":17,"_file":668,"_stem":669,"_extension":20},"/python/function-recursion","Function Recursion","Master recursive functions in Python by learning how functions can call themselves to solve complex problems with elegant, mathematical solutions","function-recursion",72,"content:python:72.function-recursion.md","python/72.function-recursion.md","python/72.function-recursion",{"_path":671,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":672,"description":673,"slug":674,"order":675,"isParent":13,"icon":14,"_type":15,"_id":676,"_source":17,"_file":677,"_stem":678,"_extension":20,"children":679},"/python/object-programming","Object Programming","Learn object-oriented programming (OOP) in Python - create classes, objects, and methods to build organized, reusable code","object-programming",73,"content:python:73.object-programming.md","python/73.object-programming.md","python/73.object-programming",[680,689,698,707,716,725],{"_path":681,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":682,"description":683,"slug":684,"parentId":671,"order":685,"_type":15,"_id":686,"_source":17,"_file":687,"_stem":688,"_extension":20},"/python/classes-and-objects","Classes and Objects","Learn to create Python classes and objects - the foundation of object-oriented programming for building reusable, organized code","classes-and-objects",74,"content:python:74.classes-and-objects.md","python/74.classes-and-objects.md","python/74.classes-and-objects",{"_path":690,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":691,"description":692,"slug":693,"parentId":671,"order":694,"_type":15,"_id":695,"_source":17,"_file":696,"_stem":697,"_extension":20},"/python/object-methods","Object Methods","Master object methods in Python - learn to define behaviors, work with parameters, and create interactive objects that respond to actions","object-methods",75,"content:python:75.object-methods.md","python/75.object-methods.md","python/75.object-methods",{"_path":699,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":700,"description":701,"slug":702,"parentId":671,"order":703,"_type":15,"_id":704,"_source":17,"_file":705,"_stem":706,"_extension":20},"/python/class-inheritance","Class Inheritance","Learn Python class inheritance - create specialized classes that build upon existing functionality while adding new features and behaviors","class-inheritance",76,"content:python:76.class-inheritance.md","python/76.class-inheritance.md","python/76.class-inheritance",{"_path":708,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":709,"description":710,"slug":711,"parentId":671,"order":712,"_type":15,"_id":713,"_source":17,"_file":714,"_stem":715,"_extension":20},"/python/method-overriding","Method Overriding","Master method overriding in Python - learn to customize inherited methods, use super(), and create specialized behaviors while maintaining inheritance benefits","method-overriding",77,"content:python:77.method-overriding.md","python/77.method-overriding.md","python/77.method-overriding",{"_path":717,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":718,"description":719,"slug":720,"parentId":671,"order":721,"_type":15,"_id":722,"_source":17,"_file":723,"_stem":724,"_extension":20},"/python/variable-visibility","Variable Visibility","Master Python variable visibility - learn public, protected, and private attributes to control access and create well-encapsulated classes","variable-visibility",78,"content:python:78.variable-visibility.md","python/78.variable-visibility.md","python/78.variable-visibility",{"_path":726,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":727,"description":728,"slug":729,"parentId":671,"order":730,"_type":15,"_id":731,"_source":17,"_file":732,"_stem":733,"_extension":20},"/python/special-methods","Special Methods","Master Python special methods (magic methods) - learn to implement __str__, __len__, __eq__ and more to make your classes work seamlessly with Python's built-in functions","special-methods",79,"content:python:79.special-methods.md","python/79.special-methods.md","python/79.special-methods",{"_path":735,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":736,"description":737,"slug":738,"order":739,"isParent":13,"icon":14,"_type":15,"_id":740,"_source":17,"_file":741,"_stem":742,"_extension":20,"children":743},"/python/advanced-concepts","Advanced Concepts","Master advanced Python programming concepts - work with dates, mathematics, JSON data, pattern matching, and more sophisticated programming techniques","advanced-concepts",80,"content:python:80.advanced-concepts.md","python/80.advanced-concepts.md","python/80.advanced-concepts",[744,753,762,771,780,789,798],{"_path":745,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":746,"description":747,"slug":748,"parentId":735,"order":749,"_type":15,"_id":750,"_source":17,"_file":751,"_stem":752,"_extension":20},"/python/working-with-dates","Working with Dates","Master Python date and time handling - work with datetime objects, format dates, calculate durations, and build time-aware applications","working-with-dates",81,"content:python:81.working-with-dates.md","python/81.working-with-dates.md","python/81.working-with-dates",{"_path":754,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":755,"description":756,"slug":757,"parentId":735,"order":758,"_type":15,"_id":759,"_source":17,"_file":760,"_stem":761,"_extension":20},"/python/mathematical-operations","Mathematical Operations","Master Python mathematical computing - use math functions, perform statistical calculations, and implement scientific computing for data analysis and problem-solving","mathematical-operations",82,"content:python:82.mathematical-operations.md","python/82.mathematical-operations.md","python/82.mathematical-operations",{"_path":763,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":764,"description":765,"slug":766,"parentId":735,"order":767,"_type":15,"_id":768,"_source":17,"_file":769,"_stem":770,"_extension":20},"/python/json-data","JSON Data","Master JSON data handling in Python - serialize and deserialize data, work with APIs, manage configuration files, and exchange data between applications","json-data",83,"content:python:83.json-data.md","python/83.json-data.md","python/83.json-data",{"_path":772,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":773,"description":774,"slug":775,"parentId":735,"order":776,"_type":15,"_id":777,"_source":17,"_file":778,"_stem":779,"_extension":20},"/python/package-management","Package Management","Master Python package management with pip and virtual environments - install libraries, manage dependencies, create isolated environments, and distribute packages professionally","package-management",85,"content:python:85.package-management.md","python/85.package-management.md","python/85.package-management",{"_path":781,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":782,"description":783,"slug":784,"parentId":735,"order":785,"_type":15,"_id":786,"_source":17,"_file":787,"_stem":788,"_extension":20},"/python/error-handling","Error Handling","Master Python error handling with try/except blocks, exception types, custom exceptions, debugging techniques, and best practices for robust application development","error-handling",86,"content:python:86.error-handling.md","python/86.error-handling.md","python/86.error-handling",{"_path":790,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":791,"description":792,"slug":793,"parentId":735,"order":794,"_type":15,"_id":795,"_source":17,"_file":796,"_stem":797,"_extension":20},"/python/getting-user-input","Getting User Input","Master user input handling in Python with input validation, data type conversion, interactive programs, and command-line interfaces for engaging user experiences","getting-user-input",87,"content:python:87.getting-user-input.md","python/87.getting-user-input.md","python/87.getting-user-input",{"_path":799,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":800,"description":801,"slug":802,"parentId":735,"order":803,"_type":15,"_id":804,"_source":17,"_file":805,"_stem":806,"_extension":20},"/python/text-formatting","Text Formatting","Master Python text formatting with f-strings, format methods, alignment, number formatting, and advanced techniques for professional, readable output","text-formatting",88,"content:python:88.text-formatting.md","python/88.text-formatting.md","python/88.text-formatting",{"_path":808,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":809,"description":810,"slug":811,"order":812,"isParent":13,"icon":14,"_type":15,"_id":813,"_source":17,"_file":814,"_stem":815,"_extension":20,"children":816},"/python/file-operations","File Operations","Master Python file handling with reading, writing, and managing files for data persistence and real-world applications","file-operations",89,"content:python:89.file-operations.md","python/89.file-operations.md","python/89.file-operations",[817,826,835,844],{"_path":818,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":819,"description":820,"slug":821,"parentId":808,"order":822,"_type":15,"_id":823,"_source":17,"_file":824,"_stem":825,"_extension":20},"/python/file-basics","File Basics","Learn fundamental Python file operations including opening files, understanding file modes, using context managers, and basic file handling concepts","file-basics",90,"content:python:90.file-basics.md","python/90.file-basics.md","python/90.file-basics",{"_path":827,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":828,"description":829,"slug":830,"parentId":808,"order":831,"_type":15,"_id":832,"_source":17,"_file":833,"_stem":834,"_extension":20},"/python/reading-files","Reading Files","Master Python file reading techniques including reading entire files, line-by-line processing, and handling different file formats for efficient data processing","reading-files",91,"content:python:91.reading-files.md","python/91.reading-files.md","python/91.reading-files",{"_path":836,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":837,"description":838,"slug":839,"parentId":808,"order":840,"_type":15,"_id":841,"_source":17,"_file":842,"_stem":843,"_extension":20},"/python/writing-files","Writing Files","Learn Python file writing techniques including creating new files, appending content, updating existing files, and saving different data formats safely","writing-files",92,"content:python:92.writing-files.md","python/92.writing-files.md","python/92.writing-files",{"_path":845,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":846,"description":847,"slug":848,"parentId":808,"order":849,"_type":15,"_id":850,"_source":17,"_file":851,"_stem":852,"_extension":20},"/python/file-management","File Management","Learn Python file management techniques including checking file properties, organizing files, directory operations, and implementing file system maintenance tasks","file-management",93,"content:python:93.file-management.md","python/93.file-management.md","python/93.file-management",{"_path":854,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":855,"description":856,"slug":857,"order":858,"isParent":13,"icon":14,"_type":15,"_id":859,"_source":17,"_file":860,"_stem":861,"_extension":20,"children":862},"/python/code-organization","Code Organization","Master Python code organization with modules, built-in libraries, and path management for creating maintainable and reusable applications","code-organization",94,"content:python:94.code-organization.md","python/94.code-organization.md","python/94.code-organization",[863,872,881],{"_path":864,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":865,"description":866,"slug":867,"parentId":854,"order":868,"_type":15,"_id":869,"_source":17,"_file":870,"_stem":871,"_extension":20},"/python/creating-modules","Creating Modules","Learn how to create custom Python modules, organize functions and classes, write reusable code components, and design effective module structures","creating-modules",95,"content:python:95.creating-modules.md","python/95.creating-modules.md","python/95.creating-modules",{"_path":873,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":874,"description":875,"slug":876,"parentId":854,"order":877,"_type":15,"_id":878,"_source":17,"_file":879,"_stem":880,"_extension":20},"/python/using-built-in-modules","Using Built-in Modules","Discover Python's extensive standard library and learn to effectively use built-in modules for common programming tasks, data processing, and system operations","using-built-in-modules",96,"content:python:96.using-built-in-modules.md","python/96.using-built-in-modules.md","python/96.using-built-in-modules",{"_path":882,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":883,"description":884,"slug":885,"parentId":854,"order":886,"_type":15,"_id":887,"_source":17,"_file":888,"_stem":889,"_extension":20},"/python/module-paths","Module Paths","Understand Python's module search system, manage import paths, work with packages, and organize larger projects with proper module path management","module-paths",97,"content:python:97.module-paths.md","python/97.module-paths.md","python/97.module-paths",{"_path":891,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":892,"description":893,"slug":894,"order":895,"isParent":13,"icon":14,"_type":15,"_id":896,"_source":17,"_file":897,"_stem":898,"_extension":20,"children":899,"expanded":13},"/python/reference-materials","Reference Materials","Comprehensive Python reference materials including reserved words, built-in functions, and operation guides for quick lookup and development support","reference-materials",98,"content:python:98.reference-materials.md","python/98.reference-materials.md","python/98.reference-materials",[900,909,918,927,936,945,953,961,970],{"_path":901,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":902,"description":903,"slug":904,"parentId":891,"order":905,"_type":15,"_id":906,"_source":17,"_file":907,"_stem":908,"_extension":20},"/python/reserved-words","Reserved Words","Complete reference of Python keywords and reserved words with descriptions, usage examples, and syntax guidelines","reserved-words",99,"content:python:99.reserved-words.md","python/99.reserved-words.md","python/99.reserved-words",{"_path":910,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":911,"description":912,"slug":913,"parentId":891,"order":914,"_type":15,"_id":915,"_source":17,"_file":916,"_stem":917,"_extension":20},"/python/built-in-functions","Built-in Functions","Comprehensive reference of Python's built-in functions with parameters, return values, and practical usage examples","built-in-functions",100,"content:python:100.built-in-functions.md","python/100.built-in-functions.md","python/100.built-in-functions",{"_path":919,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":920,"description":921,"slug":922,"parentId":891,"order":923,"_type":15,"_id":924,"_source":17,"_file":925,"_stem":926,"_extension":20},"/python/string-operations","String Operations","Complete reference of Python string methods, operations, and formatting techniques with examples and use cases","string-operations",101,"content:python:101.string-operations.md","python/101.string-operations.md","python/101.string-operations",{"_path":928,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":929,"description":930,"slug":931,"parentId":891,"order":932,"_type":15,"_id":933,"_source":17,"_file":934,"_stem":935,"_extension":20},"/python/list-operations","List Operations","Complete reference of Python list methods, operations, and manipulation techniques with examples and performance notes","list-operations",102,"content:python:102.list-operations.md","python/102.list-operations.md","python/102.list-operations",{"_path":937,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":938,"description":939,"slug":940,"parentId":891,"order":941,"_type":15,"_id":942,"_source":17,"_file":943,"_stem":944,"_extension":20},"/python/dictionary-operations","Dictionary Operations","Complete reference of Python dictionary methods, operations, and manipulation techniques with examples and use cases","dictionary-operations",103,"content:python:103.dictionary-operations.md","python/103.dictionary-operations.md","python/103.dictionary-operations",{"_path":946,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":435,"description":947,"slug":948,"parentId":891,"order":949,"_type":15,"_id":950,"_source":17,"_file":951,"_stem":952,"_extension":20},"/python/tuple-methods","Complete reference of Python tuple operations, methods, and techniques with examples and use cases","tuple-methods",104,"content:python:104.tuple-methods.md","python/104.tuple-methods.md","python/104.tuple-methods",{"_path":954,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":508,"description":955,"slug":956,"parentId":891,"order":957,"_type":15,"_id":958,"_source":17,"_file":959,"_stem":960,"_extension":20},"/python/set-methods","Complete reference of Python set operations, methods, and mathematical set operations with examples and use cases","set-methods",105,"content:python:105.set-methods.md","python/105.set-methods.md","python/105.set-methods",{"_path":962,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":963,"description":964,"slug":965,"parentId":891,"order":966,"_type":15,"_id":967,"_source":17,"_file":968,"_stem":969,"_extension":20},"/python/file-operations-reference","File Operations Reference","Complete reference of Python file operations, modes, methods, and file handling techniques with examples","file-operations-reference",106,"content:python:106.file-operations-reference.md","python/106.file-operations-reference.md","python/106.file-operations-reference",{"_path":971,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":972,"description":973,"slug":974,"parentId":891,"order":975,"_type":15,"_id":976,"_source":17,"_file":977,"_stem":978,"_extension":20},"/python/error-types","Error Types","Complete reference of Python exception types, error handling patterns, and debugging techniques with examples","error-types",107,"content:python:107.error-types.md","python/107.error-types.md","python/107.error-types",{"_path":980,"_dir":8,"_draft":7,"_partial":7,"_locale":8,"title":981,"description":10,"slug":982,"order":983,"icon":14,"_type":15,"_id":984,"_source":17,"_file":985,"_stem":986,"_extension":20},"/python","Introduction","python-tutorial",0,"content:python:index.md","python/index.md","python/index",[452],{"_path":453,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":454,"description":455,"slug":456,"parentId":443,"order":457,"body":989,"_type":15,"_id":458,"_source":17,"_file":459,"_stem":460,"_extension":20},{"type":990,"children":991,"toc":7683},"root",[992,1000,1023,1028,1344,1351,1356,1467,1474,1479,1780,1786,1791,2144,2150,2155,2482,2488,2500,2617,2623,2628,2869,2875,2880,3268,3274,3279,3546,3551,3557,3562,3652,3658,3663,4070,4076,4081,4498,4504,4509,4900,4906,4911,4994,5000,5005,5300,5306,5311,5853,5859,5864,5965,5971,5976,6405,6411,6416,6765,6771,6776,7014,7019,7039,7309,7315,7637,7643,7648,7655,7661,7666,7677],{"type":993,"tag":994,"props":995,"children":996},"element","h1",{"id":456},[997],{"type":998,"value":999},"text","🔨 Creating Sets",{"type":993,"tag":1001,"props":1002,"children":1003},"p",{},[1004,1006,1013,1015,1021],{"type":998,"value":1005},"Creating sets in Python is easy and flexible. You can make sets using curly braces ",{"type":993,"tag":1007,"props":1008,"children":1010},"code",{"className":1009},[],[1011],{"type":998,"value":1012},"{}",{"type":998,"value":1014},", the ",{"type":993,"tag":1007,"props":1016,"children":1018},{"className":1017},[],[1019],{"type":998,"value":1020},"set()",{"type":998,"value":1022}," function, or set comprehensions. Each method has its own advantages depending on your situation and data source.",{"type":993,"tag":1001,"props":1024,"children":1025},{},[1026],{"type":998,"value":1027},"Let's explore all the ways to create sets:",{"type":993,"tag":1029,"props":1030,"children":1031},"code-try",{},[1032],{"type":993,"tag":1033,"props":1034,"children":1037},"pre",{"className":1035,"code":1036,"language":6,"meta":8,"style":8},"language-python shiki shiki-themes github-light github-dark","# Basic set creation\nnumbers = {1, 2, 3, 4, 5}\ncolors = {\"red\", \"green\", \"blue\"}\nmixed = {1, \"hello\", 3.14}\n\nprint(f\"Numbers: {numbers}\")\nprint(f\"Colors: {colors}\")\nprint(f\"Mixed types: {mixed}\")\n",[1038],{"type":993,"tag":1007,"props":1039,"children":1040},{"__ignoreMap":8},[1041,1052,1120,1164,1206,1214,1262,1303],{"type":993,"tag":1042,"props":1043,"children":1045},"span",{"class":1044,"line":12},"line",[1046],{"type":993,"tag":1042,"props":1047,"children":1049},{"style":1048},"--shiki-default:#6A737D;--shiki-app-dark-mode:#6A737D",[1050],{"type":998,"value":1051},"# Basic set creation\n",{"type":993,"tag":1042,"props":1053,"children":1054},{"class":1044,"line":27},[1055,1061,1067,1072,1078,1083,1088,1092,1097,1101,1106,1110,1115],{"type":993,"tag":1042,"props":1056,"children":1058},{"style":1057},"--shiki-default:#24292E;--shiki-app-dark-mode:#E1E4E8",[1059],{"type":998,"value":1060},"numbers ",{"type":993,"tag":1042,"props":1062,"children":1064},{"style":1063},"--shiki-default:#D73A49;--shiki-app-dark-mode:#F97583",[1065],{"type":998,"value":1066},"=",{"type":993,"tag":1042,"props":1068,"children":1069},{"style":1057},[1070],{"type":998,"value":1071}," {",{"type":993,"tag":1042,"props":1073,"children":1075},{"style":1074},"--shiki-default:#005CC5;--shiki-app-dark-mode:#79B8FF",[1076],{"type":998,"value":1077},"1",{"type":993,"tag":1042,"props":1079,"children":1080},{"style":1057},[1081],{"type":998,"value":1082},", ",{"type":993,"tag":1042,"props":1084,"children":1085},{"style":1074},[1086],{"type":998,"value":1087},"2",{"type":993,"tag":1042,"props":1089,"children":1090},{"style":1057},[1091],{"type":998,"value":1082},{"type":993,"tag":1042,"props":1093,"children":1094},{"style":1074},[1095],{"type":998,"value":1096},"3",{"type":993,"tag":1042,"props":1098,"children":1099},{"style":1057},[1100],{"type":998,"value":1082},{"type":993,"tag":1042,"props":1102,"children":1103},{"style":1074},[1104],{"type":998,"value":1105},"4",{"type":993,"tag":1042,"props":1107,"children":1108},{"style":1057},[1109],{"type":998,"value":1082},{"type":993,"tag":1042,"props":1111,"children":1112},{"style":1074},[1113],{"type":998,"value":1114},"5",{"type":993,"tag":1042,"props":1116,"children":1117},{"style":1057},[1118],{"type":998,"value":1119},"}\n",{"type":993,"tag":1042,"props":1121,"children":1122},{"class":1044,"line":36},[1123,1128,1132,1136,1142,1146,1151,1155,1160],{"type":993,"tag":1042,"props":1124,"children":1125},{"style":1057},[1126],{"type":998,"value":1127},"colors ",{"type":993,"tag":1042,"props":1129,"children":1130},{"style":1063},[1131],{"type":998,"value":1066},{"type":993,"tag":1042,"props":1133,"children":1134},{"style":1057},[1135],{"type":998,"value":1071},{"type":993,"tag":1042,"props":1137,"children":1139},{"style":1138},"--shiki-default:#032F62;--shiki-app-dark-mode:#9ECBFF",[1140],{"type":998,"value":1141},"\"red\"",{"type":993,"tag":1042,"props":1143,"children":1144},{"style":1057},[1145],{"type":998,"value":1082},{"type":993,"tag":1042,"props":1147,"children":1148},{"style":1138},[1149],{"type":998,"value":1150},"\"green\"",{"type":993,"tag":1042,"props":1152,"children":1153},{"style":1057},[1154],{"type":998,"value":1082},{"type":993,"tag":1042,"props":1156,"children":1157},{"style":1138},[1158],{"type":998,"value":1159},"\"blue\"",{"type":993,"tag":1042,"props":1161,"children":1162},{"style":1057},[1163],{"type":998,"value":1119},{"type":993,"tag":1042,"props":1165,"children":1166},{"class":1044,"line":45},[1167,1172,1176,1180,1184,1188,1193,1197,1202],{"type":993,"tag":1042,"props":1168,"children":1169},{"style":1057},[1170],{"type":998,"value":1171},"mixed ",{"type":993,"tag":1042,"props":1173,"children":1174},{"style":1063},[1175],{"type":998,"value":1066},{"type":993,"tag":1042,"props":1177,"children":1178},{"style":1057},[1179],{"type":998,"value":1071},{"type":993,"tag":1042,"props":1181,"children":1182},{"style":1074},[1183],{"type":998,"value":1077},{"type":993,"tag":1042,"props":1185,"children":1186},{"style":1057},[1187],{"type":998,"value":1082},{"type":993,"tag":1042,"props":1189,"children":1190},{"style":1138},[1191],{"type":998,"value":1192},"\"hello\"",{"type":993,"tag":1042,"props":1194,"children":1195},{"style":1057},[1196],{"type":998,"value":1082},{"type":993,"tag":1042,"props":1198,"children":1199},{"style":1074},[1200],{"type":998,"value":1201},"3.14",{"type":993,"tag":1042,"props":1203,"children":1204},{"style":1057},[1205],{"type":998,"value":1119},{"type":993,"tag":1042,"props":1207,"children":1208},{"class":1044,"line":54},[1209],{"type":993,"tag":1042,"props":1210,"children":1211},{"emptyLinePlaceholder":13},[1212],{"type":998,"value":1213},"\n",{"type":993,"tag":1042,"props":1215,"children":1216},{"class":1044,"line":63},[1217,1222,1227,1232,1237,1242,1247,1252,1257],{"type":993,"tag":1042,"props":1218,"children":1219},{"style":1074},[1220],{"type":998,"value":1221},"print",{"type":993,"tag":1042,"props":1223,"children":1224},{"style":1057},[1225],{"type":998,"value":1226},"(",{"type":993,"tag":1042,"props":1228,"children":1229},{"style":1063},[1230],{"type":998,"value":1231},"f",{"type":993,"tag":1042,"props":1233,"children":1234},{"style":1138},[1235],{"type":998,"value":1236},"\"Numbers: ",{"type":993,"tag":1042,"props":1238,"children":1239},{"style":1074},[1240],{"type":998,"value":1241},"{",{"type":993,"tag":1042,"props":1243,"children":1244},{"style":1057},[1245],{"type":998,"value":1246},"numbers",{"type":993,"tag":1042,"props":1248,"children":1249},{"style":1074},[1250],{"type":998,"value":1251},"}",{"type":993,"tag":1042,"props":1253,"children":1254},{"style":1138},[1255],{"type":998,"value":1256},"\"",{"type":993,"tag":1042,"props":1258,"children":1259},{"style":1057},[1260],{"type":998,"value":1261},")\n",{"type":993,"tag":1042,"props":1263,"children":1264},{"class":1044,"line":72},[1265,1269,1273,1277,1282,1286,1291,1295,1299],{"type":993,"tag":1042,"props":1266,"children":1267},{"style":1074},[1268],{"type":998,"value":1221},{"type":993,"tag":1042,"props":1270,"children":1271},{"style":1057},[1272],{"type":998,"value":1226},{"type":993,"tag":1042,"props":1274,"children":1275},{"style":1063},[1276],{"type":998,"value":1231},{"type":993,"tag":1042,"props":1278,"children":1279},{"style":1138},[1280],{"type":998,"value":1281},"\"Colors: ",{"type":993,"tag":1042,"props":1283,"children":1284},{"style":1074},[1285],{"type":998,"value":1241},{"type":993,"tag":1042,"props":1287,"children":1288},{"style":1057},[1289],{"type":998,"value":1290},"colors",{"type":993,"tag":1042,"props":1292,"children":1293},{"style":1074},[1294],{"type":998,"value":1251},{"type":993,"tag":1042,"props":1296,"children":1297},{"style":1138},[1298],{"type":998,"value":1256},{"type":993,"tag":1042,"props":1300,"children":1301},{"style":1057},[1302],{"type":998,"value":1261},{"type":993,"tag":1042,"props":1304,"children":1305},{"class":1044,"line":81},[1306,1310,1314,1318,1323,1327,1332,1336,1340],{"type":993,"tag":1042,"props":1307,"children":1308},{"style":1074},[1309],{"type":998,"value":1221},{"type":993,"tag":1042,"props":1311,"children":1312},{"style":1057},[1313],{"type":998,"value":1226},{"type":993,"tag":1042,"props":1315,"children":1316},{"style":1063},[1317],{"type":998,"value":1231},{"type":993,"tag":1042,"props":1319,"children":1320},{"style":1138},[1321],{"type":998,"value":1322},"\"Mixed types: ",{"type":993,"tag":1042,"props":1324,"children":1325},{"style":1074},[1326],{"type":998,"value":1241},{"type":993,"tag":1042,"props":1328,"children":1329},{"style":1057},[1330],{"type":998,"value":1331},"mixed",{"type":993,"tag":1042,"props":1333,"children":1334},{"style":1074},[1335],{"type":998,"value":1251},{"type":993,"tag":1042,"props":1337,"children":1338},{"style":1138},[1339],{"type":998,"value":1256},{"type":993,"tag":1042,"props":1341,"children":1342},{"style":1057},[1343],{"type":998,"value":1261},{"type":993,"tag":1345,"props":1346,"children":1348},"h2",{"id":1347},"basic-set-creation-syntax",[1349],{"type":998,"value":1350},"🎯 Basic Set Creation Syntax",{"type":993,"tag":1001,"props":1352,"children":1353},{},[1354],{"type":998,"value":1355},"The most common way to create sets is using curly braces with comma-separated values.",{"type":993,"tag":1357,"props":1358,"children":1362},"info-box",{"emoji":1359,"title":1360,"type":1361},"🔨","Set Creation Methods","info",[1363,1372,1398,1406,1435,1443],{"type":993,"tag":1001,"props":1364,"children":1365},{},[1366],{"type":993,"tag":1367,"props":1368,"children":1369},"strong",{},[1370],{"type":998,"value":1371},"Curly Braces {}:",{"type":993,"tag":1373,"props":1374,"children":1375},"ul",{},[1376,1388,1393],{"type":993,"tag":1377,"props":1378,"children":1379},"li",{},[1380,1382],{"type":998,"value":1381},"Direct syntax: ",{"type":993,"tag":1007,"props":1383,"children":1385},{"className":1384},[],[1386],{"type":998,"value":1387},"{1, 2, 3}",{"type":993,"tag":1377,"props":1389,"children":1390},{},[1391],{"type":998,"value":1392},"Automatic duplicate removal",{"type":993,"tag":1377,"props":1394,"children":1395},{},[1396],{"type":998,"value":1397},"Most readable for small sets",{"type":993,"tag":1001,"props":1399,"children":1400},{},[1401],{"type":993,"tag":1367,"props":1402,"children":1403},{},[1404],{"type":998,"value":1405},"set() Function:",{"type":993,"tag":1373,"props":1407,"children":1408},{},[1409,1420,1430],{"type":993,"tag":1377,"props":1410,"children":1411},{},[1412,1414],{"type":998,"value":1413},"From iterables: ",{"type":993,"tag":1007,"props":1415,"children":1417},{"className":1416},[],[1418],{"type":998,"value":1419},"set([1, 2, 3])",{"type":993,"tag":1377,"props":1421,"children":1422},{},[1423,1425],{"type":998,"value":1424},"Empty sets: ",{"type":993,"tag":1007,"props":1426,"children":1428},{"className":1427},[],[1429],{"type":998,"value":1020},{"type":993,"tag":1377,"props":1431,"children":1432},{},[1433],{"type":998,"value":1434},"Convert other data types",{"type":993,"tag":1001,"props":1436,"children":1437},{},[1438],{"type":993,"tag":1367,"props":1439,"children":1440},{},[1441],{"type":998,"value":1442},"Set Comprehensions:",{"type":993,"tag":1373,"props":1444,"children":1445},{},[1446,1457,1462],{"type":993,"tag":1377,"props":1447,"children":1448},{},[1449,1451],{"type":998,"value":1450},"Filter and transform: ",{"type":993,"tag":1007,"props":1452,"children":1454},{"className":1453},[],[1455],{"type":998,"value":1456},"{x*2 for x in range(5)}",{"type":993,"tag":1377,"props":1458,"children":1459},{},[1460],{"type":998,"value":1461},"Memory efficient",{"type":993,"tag":1377,"props":1463,"children":1464},{},[1465],{"type":998,"value":1466},"Complex logic in creation",{"type":993,"tag":1468,"props":1469,"children":1471},"h3",{"id":1470},"using-curly-braces",[1472],{"type":998,"value":1473},"Using Curly Braces",{"type":993,"tag":1001,"props":1475,"children":1476},{},[1477],{"type":998,"value":1478},"Creating sets directly with curly brace syntax.",{"type":993,"tag":1029,"props":1480,"children":1481},{},[1482],{"type":993,"tag":1033,"props":1483,"children":1485},{"className":1035,"code":1484,"language":6,"meta":8,"style":8},"# Creating sets with curly braces\nfruits = {\"apple\", \"banana\", \"orange\"}\nnumbers = {10, 20, 30, 40}\ngrades = {\"A\", \"B\", \"C\", \"D\", \"F\"}\n\nprint(f\"Fruits: {fruits}\")\nprint(f\"Numbers: {numbers}\")\nprint(f\"Grades: {grades}\")\n",[1486],{"type":993,"tag":1007,"props":1487,"children":1488},{"__ignoreMap":8},[1489,1497,1540,1591,1652,1659,1700,1739],{"type":993,"tag":1042,"props":1490,"children":1491},{"class":1044,"line":12},[1492],{"type":993,"tag":1042,"props":1493,"children":1494},{"style":1048},[1495],{"type":998,"value":1496},"# Creating sets with curly braces\n",{"type":993,"tag":1042,"props":1498,"children":1499},{"class":1044,"line":27},[1500,1505,1509,1513,1518,1522,1527,1531,1536],{"type":993,"tag":1042,"props":1501,"children":1502},{"style":1057},[1503],{"type":998,"value":1504},"fruits ",{"type":993,"tag":1042,"props":1506,"children":1507},{"style":1063},[1508],{"type":998,"value":1066},{"type":993,"tag":1042,"props":1510,"children":1511},{"style":1057},[1512],{"type":998,"value":1071},{"type":993,"tag":1042,"props":1514,"children":1515},{"style":1138},[1516],{"type":998,"value":1517},"\"apple\"",{"type":993,"tag":1042,"props":1519,"children":1520},{"style":1057},[1521],{"type":998,"value":1082},{"type":993,"tag":1042,"props":1523,"children":1524},{"style":1138},[1525],{"type":998,"value":1526},"\"banana\"",{"type":993,"tag":1042,"props":1528,"children":1529},{"style":1057},[1530],{"type":998,"value":1082},{"type":993,"tag":1042,"props":1532,"children":1533},{"style":1138},[1534],{"type":998,"value":1535},"\"orange\"",{"type":993,"tag":1042,"props":1537,"children":1538},{"style":1057},[1539],{"type":998,"value":1119},{"type":993,"tag":1042,"props":1541,"children":1542},{"class":1044,"line":36},[1543,1547,1551,1555,1560,1564,1569,1573,1578,1582,1587],{"type":993,"tag":1042,"props":1544,"children":1545},{"style":1057},[1546],{"type":998,"value":1060},{"type":993,"tag":1042,"props":1548,"children":1549},{"style":1063},[1550],{"type":998,"value":1066},{"type":993,"tag":1042,"props":1552,"children":1553},{"style":1057},[1554],{"type":998,"value":1071},{"type":993,"tag":1042,"props":1556,"children":1557},{"style":1074},[1558],{"type":998,"value":1559},"10",{"type":993,"tag":1042,"props":1561,"children":1562},{"style":1057},[1563],{"type":998,"value":1082},{"type":993,"tag":1042,"props":1565,"children":1566},{"style":1074},[1567],{"type":998,"value":1568},"20",{"type":993,"tag":1042,"props":1570,"children":1571},{"style":1057},[1572],{"type":998,"value":1082},{"type":993,"tag":1042,"props":1574,"children":1575},{"style":1074},[1576],{"type":998,"value":1577},"30",{"type":993,"tag":1042,"props":1579,"children":1580},{"style":1057},[1581],{"type":998,"value":1082},{"type":993,"tag":1042,"props":1583,"children":1584},{"style":1074},[1585],{"type":998,"value":1586},"40",{"type":993,"tag":1042,"props":1588,"children":1589},{"style":1057},[1590],{"type":998,"value":1119},{"type":993,"tag":1042,"props":1592,"children":1593},{"class":1044,"line":45},[1594,1599,1603,1607,1612,1616,1621,1625,1630,1634,1639,1643,1648],{"type":993,"tag":1042,"props":1595,"children":1596},{"style":1057},[1597],{"type":998,"value":1598},"grades ",{"type":993,"tag":1042,"props":1600,"children":1601},{"style":1063},[1602],{"type":998,"value":1066},{"type":993,"tag":1042,"props":1604,"children":1605},{"style":1057},[1606],{"type":998,"value":1071},{"type":993,"tag":1042,"props":1608,"children":1609},{"style":1138},[1610],{"type":998,"value":1611},"\"A\"",{"type":993,"tag":1042,"props":1613,"children":1614},{"style":1057},[1615],{"type":998,"value":1082},{"type":993,"tag":1042,"props":1617,"children":1618},{"style":1138},[1619],{"type":998,"value":1620},"\"B\"",{"type":993,"tag":1042,"props":1622,"children":1623},{"style":1057},[1624],{"type":998,"value":1082},{"type":993,"tag":1042,"props":1626,"children":1627},{"style":1138},[1628],{"type":998,"value":1629},"\"C\"",{"type":993,"tag":1042,"props":1631,"children":1632},{"style":1057},[1633],{"type":998,"value":1082},{"type":993,"tag":1042,"props":1635,"children":1636},{"style":1138},[1637],{"type":998,"value":1638},"\"D\"",{"type":993,"tag":1042,"props":1640,"children":1641},{"style":1057},[1642],{"type":998,"value":1082},{"type":993,"tag":1042,"props":1644,"children":1645},{"style":1138},[1646],{"type":998,"value":1647},"\"F\"",{"type":993,"tag":1042,"props":1649,"children":1650},{"style":1057},[1651],{"type":998,"value":1119},{"type":993,"tag":1042,"props":1653,"children":1654},{"class":1044,"line":54},[1655],{"type":993,"tag":1042,"props":1656,"children":1657},{"emptyLinePlaceholder":13},[1658],{"type":998,"value":1213},{"type":993,"tag":1042,"props":1660,"children":1661},{"class":1044,"line":63},[1662,1666,1670,1674,1679,1683,1688,1692,1696],{"type":993,"tag":1042,"props":1663,"children":1664},{"style":1074},[1665],{"type":998,"value":1221},{"type":993,"tag":1042,"props":1667,"children":1668},{"style":1057},[1669],{"type":998,"value":1226},{"type":993,"tag":1042,"props":1671,"children":1672},{"style":1063},[1673],{"type":998,"value":1231},{"type":993,"tag":1042,"props":1675,"children":1676},{"style":1138},[1677],{"type":998,"value":1678},"\"Fruits: ",{"type":993,"tag":1042,"props":1680,"children":1681},{"style":1074},[1682],{"type":998,"value":1241},{"type":993,"tag":1042,"props":1684,"children":1685},{"style":1057},[1686],{"type":998,"value":1687},"fruits",{"type":993,"tag":1042,"props":1689,"children":1690},{"style":1074},[1691],{"type":998,"value":1251},{"type":993,"tag":1042,"props":1693,"children":1694},{"style":1138},[1695],{"type":998,"value":1256},{"type":993,"tag":1042,"props":1697,"children":1698},{"style":1057},[1699],{"type":998,"value":1261},{"type":993,"tag":1042,"props":1701,"children":1702},{"class":1044,"line":72},[1703,1707,1711,1715,1719,1723,1727,1731,1735],{"type":993,"tag":1042,"props":1704,"children":1705},{"style":1074},[1706],{"type":998,"value":1221},{"type":993,"tag":1042,"props":1708,"children":1709},{"style":1057},[1710],{"type":998,"value":1226},{"type":993,"tag":1042,"props":1712,"children":1713},{"style":1063},[1714],{"type":998,"value":1231},{"type":993,"tag":1042,"props":1716,"children":1717},{"style":1138},[1718],{"type":998,"value":1236},{"type":993,"tag":1042,"props":1720,"children":1721},{"style":1074},[1722],{"type":998,"value":1241},{"type":993,"tag":1042,"props":1724,"children":1725},{"style":1057},[1726],{"type":998,"value":1246},{"type":993,"tag":1042,"props":1728,"children":1729},{"style":1074},[1730],{"type":998,"value":1251},{"type":993,"tag":1042,"props":1732,"children":1733},{"style":1138},[1734],{"type":998,"value":1256},{"type":993,"tag":1042,"props":1736,"children":1737},{"style":1057},[1738],{"type":998,"value":1261},{"type":993,"tag":1042,"props":1740,"children":1741},{"class":1044,"line":81},[1742,1746,1750,1754,1759,1763,1768,1772,1776],{"type":993,"tag":1042,"props":1743,"children":1744},{"style":1074},[1745],{"type":998,"value":1221},{"type":993,"tag":1042,"props":1747,"children":1748},{"style":1057},[1749],{"type":998,"value":1226},{"type":993,"tag":1042,"props":1751,"children":1752},{"style":1063},[1753],{"type":998,"value":1231},{"type":993,"tag":1042,"props":1755,"children":1756},{"style":1138},[1757],{"type":998,"value":1758},"\"Grades: ",{"type":993,"tag":1042,"props":1760,"children":1761},{"style":1074},[1762],{"type":998,"value":1241},{"type":993,"tag":1042,"props":1764,"children":1765},{"style":1057},[1766],{"type":998,"value":1767},"grades",{"type":993,"tag":1042,"props":1769,"children":1770},{"style":1074},[1771],{"type":998,"value":1251},{"type":993,"tag":1042,"props":1773,"children":1774},{"style":1138},[1775],{"type":998,"value":1256},{"type":993,"tag":1042,"props":1777,"children":1778},{"style":1057},[1779],{"type":998,"value":1261},{"type":993,"tag":1468,"props":1781,"children":1783},{"id":1782},"automatic-duplicate-removal",[1784],{"type":998,"value":1785},"Automatic Duplicate Removal",{"type":993,"tag":1001,"props":1787,"children":1788},{},[1789],{"type":998,"value":1790},"Sets automatically remove duplicate values during creation.",{"type":993,"tag":1029,"props":1792,"children":1793},{},[1794],{"type":993,"tag":1033,"props":1795,"children":1797},{"className":1035,"code":1796,"language":6,"meta":8,"style":8},"# Duplicates are automatically removed\nnumbers_with_duplicates = {1, 2, 2, 3, 3, 3, 4}\nprint(f\"Original: {1, 2, 2, 3, 3, 3, 4}\")\nprint(f\"Set result: {numbers_with_duplicates}\")\n\n# Useful for cleaning data\nsurvey_responses = {\"yes\", \"no\", \"yes\", \"maybe\", \"yes\", \"no\"}\nunique_responses = survey_responses\nprint(f\"Unique survey responses: {unique_responses}\")\n",[1798],{"type":993,"tag":1007,"props":1799,"children":1800},{"__ignoreMap":8},[1801,1809,1881,1963,2004,2011,2019,2086,2103],{"type":993,"tag":1042,"props":1802,"children":1803},{"class":1044,"line":12},[1804],{"type":993,"tag":1042,"props":1805,"children":1806},{"style":1048},[1807],{"type":998,"value":1808},"# Duplicates are automatically removed\n",{"type":993,"tag":1042,"props":1810,"children":1811},{"class":1044,"line":27},[1812,1817,1821,1825,1829,1833,1837,1841,1845,1849,1853,1857,1861,1865,1869,1873,1877],{"type":993,"tag":1042,"props":1813,"children":1814},{"style":1057},[1815],{"type":998,"value":1816},"numbers_with_duplicates ",{"type":993,"tag":1042,"props":1818,"children":1819},{"style":1063},[1820],{"type":998,"value":1066},{"type":993,"tag":1042,"props":1822,"children":1823},{"style":1057},[1824],{"type":998,"value":1071},{"type":993,"tag":1042,"props":1826,"children":1827},{"style":1074},[1828],{"type":998,"value":1077},{"type":993,"tag":1042,"props":1830,"children":1831},{"style":1057},[1832],{"type":998,"value":1082},{"type":993,"tag":1042,"props":1834,"children":1835},{"style":1074},[1836],{"type":998,"value":1087},{"type":993,"tag":1042,"props":1838,"children":1839},{"style":1057},[1840],{"type":998,"value":1082},{"type":993,"tag":1042,"props":1842,"children":1843},{"style":1074},[1844],{"type":998,"value":1087},{"type":993,"tag":1042,"props":1846,"children":1847},{"style":1057},[1848],{"type":998,"value":1082},{"type":993,"tag":1042,"props":1850,"children":1851},{"style":1074},[1852],{"type":998,"value":1096},{"type":993,"tag":1042,"props":1854,"children":1855},{"style":1057},[1856],{"type":998,"value":1082},{"type":993,"tag":1042,"props":1858,"children":1859},{"style":1074},[1860],{"type":998,"value":1096},{"type":993,"tag":1042,"props":1862,"children":1863},{"style":1057},[1864],{"type":998,"value":1082},{"type":993,"tag":1042,"props":1866,"children":1867},{"style":1074},[1868],{"type":998,"value":1096},{"type":993,"tag":1042,"props":1870,"children":1871},{"style":1057},[1872],{"type":998,"value":1082},{"type":993,"tag":1042,"props":1874,"children":1875},{"style":1074},[1876],{"type":998,"value":1105},{"type":993,"tag":1042,"props":1878,"children":1879},{"style":1057},[1880],{"type":998,"value":1119},{"type":993,"tag":1042,"props":1882,"children":1883},{"class":1044,"line":36},[1884,1888,1892,1896,1901,1906,1910,1914,1918,1922,1926,1930,1934,1938,1942,1946,1950,1955,1959],{"type":993,"tag":1042,"props":1885,"children":1886},{"style":1074},[1887],{"type":998,"value":1221},{"type":993,"tag":1042,"props":1889,"children":1890},{"style":1057},[1891],{"type":998,"value":1226},{"type":993,"tag":1042,"props":1893,"children":1894},{"style":1063},[1895],{"type":998,"value":1231},{"type":993,"tag":1042,"props":1897,"children":1898},{"style":1138},[1899],{"type":998,"value":1900},"\"Original: ",{"type":993,"tag":1042,"props":1902,"children":1903},{"style":1074},[1904],{"type":998,"value":1905},"{1",{"type":993,"tag":1042,"props":1907,"children":1908},{"style":1057},[1909],{"type":998,"value":1082},{"type":993,"tag":1042,"props":1911,"children":1912},{"style":1074},[1913],{"type":998,"value":1087},{"type":993,"tag":1042,"props":1915,"children":1916},{"style":1057},[1917],{"type":998,"value":1082},{"type":993,"tag":1042,"props":1919,"children":1920},{"style":1074},[1921],{"type":998,"value":1087},{"type":993,"tag":1042,"props":1923,"children":1924},{"style":1057},[1925],{"type":998,"value":1082},{"type":993,"tag":1042,"props":1927,"children":1928},{"style":1074},[1929],{"type":998,"value":1096},{"type":993,"tag":1042,"props":1931,"children":1932},{"style":1057},[1933],{"type":998,"value":1082},{"type":993,"tag":1042,"props":1935,"children":1936},{"style":1074},[1937],{"type":998,"value":1096},{"type":993,"tag":1042,"props":1939,"children":1940},{"style":1057},[1941],{"type":998,"value":1082},{"type":993,"tag":1042,"props":1943,"children":1944},{"style":1074},[1945],{"type":998,"value":1096},{"type":993,"tag":1042,"props":1947,"children":1948},{"style":1057},[1949],{"type":998,"value":1082},{"type":993,"tag":1042,"props":1951,"children":1952},{"style":1074},[1953],{"type":998,"value":1954},"4}",{"type":993,"tag":1042,"props":1956,"children":1957},{"style":1138},[1958],{"type":998,"value":1256},{"type":993,"tag":1042,"props":1960,"children":1961},{"style":1057},[1962],{"type":998,"value":1261},{"type":993,"tag":1042,"props":1964,"children":1965},{"class":1044,"line":45},[1966,1970,1974,1978,1983,1987,1992,1996,2000],{"type":993,"tag":1042,"props":1967,"children":1968},{"style":1074},[1969],{"type":998,"value":1221},{"type":993,"tag":1042,"props":1971,"children":1972},{"style":1057},[1973],{"type":998,"value":1226},{"type":993,"tag":1042,"props":1975,"children":1976},{"style":1063},[1977],{"type":998,"value":1231},{"type":993,"tag":1042,"props":1979,"children":1980},{"style":1138},[1981],{"type":998,"value":1982},"\"Set result: ",{"type":993,"tag":1042,"props":1984,"children":1985},{"style":1074},[1986],{"type":998,"value":1241},{"type":993,"tag":1042,"props":1988,"children":1989},{"style":1057},[1990],{"type":998,"value":1991},"numbers_with_duplicates",{"type":993,"tag":1042,"props":1993,"children":1994},{"style":1074},[1995],{"type":998,"value":1251},{"type":993,"tag":1042,"props":1997,"children":1998},{"style":1138},[1999],{"type":998,"value":1256},{"type":993,"tag":1042,"props":2001,"children":2002},{"style":1057},[2003],{"type":998,"value":1261},{"type":993,"tag":1042,"props":2005,"children":2006},{"class":1044,"line":54},[2007],{"type":993,"tag":1042,"props":2008,"children":2009},{"emptyLinePlaceholder":13},[2010],{"type":998,"value":1213},{"type":993,"tag":1042,"props":2012,"children":2013},{"class":1044,"line":63},[2014],{"type":993,"tag":1042,"props":2015,"children":2016},{"style":1048},[2017],{"type":998,"value":2018},"# Useful for cleaning data\n",{"type":993,"tag":1042,"props":2020,"children":2021},{"class":1044,"line":72},[2022,2027,2031,2035,2040,2044,2049,2053,2057,2061,2066,2070,2074,2078,2082],{"type":993,"tag":1042,"props":2023,"children":2024},{"style":1057},[2025],{"type":998,"value":2026},"survey_responses ",{"type":993,"tag":1042,"props":2028,"children":2029},{"style":1063},[2030],{"type":998,"value":1066},{"type":993,"tag":1042,"props":2032,"children":2033},{"style":1057},[2034],{"type":998,"value":1071},{"type":993,"tag":1042,"props":2036,"children":2037},{"style":1138},[2038],{"type":998,"value":2039},"\"yes\"",{"type":993,"tag":1042,"props":2041,"children":2042},{"style":1057},[2043],{"type":998,"value":1082},{"type":993,"tag":1042,"props":2045,"children":2046},{"style":1138},[2047],{"type":998,"value":2048},"\"no\"",{"type":993,"tag":1042,"props":2050,"children":2051},{"style":1057},[2052],{"type":998,"value":1082},{"type":993,"tag":1042,"props":2054,"children":2055},{"style":1138},[2056],{"type":998,"value":2039},{"type":993,"tag":1042,"props":2058,"children":2059},{"style":1057},[2060],{"type":998,"value":1082},{"type":993,"tag":1042,"props":2062,"children":2063},{"style":1138},[2064],{"type":998,"value":2065},"\"maybe\"",{"type":993,"tag":1042,"props":2067,"children":2068},{"style":1057},[2069],{"type":998,"value":1082},{"type":993,"tag":1042,"props":2071,"children":2072},{"style":1138},[2073],{"type":998,"value":2039},{"type":993,"tag":1042,"props":2075,"children":2076},{"style":1057},[2077],{"type":998,"value":1082},{"type":993,"tag":1042,"props":2079,"children":2080},{"style":1138},[2081],{"type":998,"value":2048},{"type":993,"tag":1042,"props":2083,"children":2084},{"style":1057},[2085],{"type":998,"value":1119},{"type":993,"tag":1042,"props":2087,"children":2088},{"class":1044,"line":81},[2089,2094,2098],{"type":993,"tag":1042,"props":2090,"children":2091},{"style":1057},[2092],{"type":998,"value":2093},"unique_responses ",{"type":993,"tag":1042,"props":2095,"children":2096},{"style":1063},[2097],{"type":998,"value":1066},{"type":993,"tag":1042,"props":2099,"children":2100},{"style":1057},[2101],{"type":998,"value":2102}," survey_responses\n",{"type":993,"tag":1042,"props":2104,"children":2105},{"class":1044,"line":91},[2106,2110,2114,2118,2123,2127,2132,2136,2140],{"type":993,"tag":1042,"props":2107,"children":2108},{"style":1074},[2109],{"type":998,"value":1221},{"type":993,"tag":1042,"props":2111,"children":2112},{"style":1057},[2113],{"type":998,"value":1226},{"type":993,"tag":1042,"props":2115,"children":2116},{"style":1063},[2117],{"type":998,"value":1231},{"type":993,"tag":1042,"props":2119,"children":2120},{"style":1138},[2121],{"type":998,"value":2122},"\"Unique survey responses: ",{"type":993,"tag":1042,"props":2124,"children":2125},{"style":1074},[2126],{"type":998,"value":1241},{"type":993,"tag":1042,"props":2128,"children":2129},{"style":1057},[2130],{"type":998,"value":2131},"unique_responses",{"type":993,"tag":1042,"props":2133,"children":2134},{"style":1074},[2135],{"type":998,"value":1251},{"type":993,"tag":1042,"props":2137,"children":2138},{"style":1138},[2139],{"type":998,"value":1256},{"type":993,"tag":1042,"props":2141,"children":2142},{"style":1057},[2143],{"type":998,"value":1261},{"type":993,"tag":1468,"props":2145,"children":2147},{"id":2146},"mixed-data-types",[2148],{"type":998,"value":2149},"Mixed Data Types",{"type":993,"tag":1001,"props":2151,"children":2152},{},[2153],{"type":998,"value":2154},"Sets can contain different types of immutable objects.",{"type":993,"tag":1029,"props":2156,"children":2157},{},[2158],{"type":993,"tag":1033,"props":2159,"children":2161},{"className":1035,"code":2160,"language":6,"meta":8,"style":8},"# Mixed data types in sets\nmixed_set = {42, \"hello\", 3.14, True}\ncoordinates = {(0, 0), (1, 1), (2, 2)}\nidentifiers = {1001, \"USER123\", (2024, 1, 15)}\n\nprint(f\"Mixed set: {mixed_set}\")\nprint(f\"Coordinate set: {coordinates}\")\nprint(f\"ID set: {identifiers}\")\n",[2162],{"type":993,"tag":1007,"props":2163,"children":2164},{"__ignoreMap":8},[2165,2173,2223,2291,2352,2359,2400,2441],{"type":993,"tag":1042,"props":2166,"children":2167},{"class":1044,"line":12},[2168],{"type":993,"tag":1042,"props":2169,"children":2170},{"style":1048},[2171],{"type":998,"value":2172},"# Mixed data types in sets\n",{"type":993,"tag":1042,"props":2174,"children":2175},{"class":1044,"line":27},[2176,2181,2185,2189,2194,2198,2202,2206,2210,2214,2219],{"type":993,"tag":1042,"props":2177,"children":2178},{"style":1057},[2179],{"type":998,"value":2180},"mixed_set ",{"type":993,"tag":1042,"props":2182,"children":2183},{"style":1063},[2184],{"type":998,"value":1066},{"type":993,"tag":1042,"props":2186,"children":2187},{"style":1057},[2188],{"type":998,"value":1071},{"type":993,"tag":1042,"props":2190,"children":2191},{"style":1074},[2192],{"type":998,"value":2193},"42",{"type":993,"tag":1042,"props":2195,"children":2196},{"style":1057},[2197],{"type":998,"value":1082},{"type":993,"tag":1042,"props":2199,"children":2200},{"style":1138},[2201],{"type":998,"value":1192},{"type":993,"tag":1042,"props":2203,"children":2204},{"style":1057},[2205],{"type":998,"value":1082},{"type":993,"tag":1042,"props":2207,"children":2208},{"style":1074},[2209],{"type":998,"value":1201},{"type":993,"tag":1042,"props":2211,"children":2212},{"style":1057},[2213],{"type":998,"value":1082},{"type":993,"tag":1042,"props":2215,"children":2216},{"style":1074},[2217],{"type":998,"value":2218},"True",{"type":993,"tag":1042,"props":2220,"children":2221},{"style":1057},[2222],{"type":998,"value":1119},{"type":993,"tag":1042,"props":2224,"children":2225},{"class":1044,"line":36},[2226,2231,2235,2240,2245,2249,2253,2258,2262,2266,2270,2274,2278,2282,2286],{"type":993,"tag":1042,"props":2227,"children":2228},{"style":1057},[2229],{"type":998,"value":2230},"coordinates ",{"type":993,"tag":1042,"props":2232,"children":2233},{"style":1063},[2234],{"type":998,"value":1066},{"type":993,"tag":1042,"props":2236,"children":2237},{"style":1057},[2238],{"type":998,"value":2239}," {(",{"type":993,"tag":1042,"props":2241,"children":2242},{"style":1074},[2243],{"type":998,"value":2244},"0",{"type":993,"tag":1042,"props":2246,"children":2247},{"style":1057},[2248],{"type":998,"value":1082},{"type":993,"tag":1042,"props":2250,"children":2251},{"style":1074},[2252],{"type":998,"value":2244},{"type":993,"tag":1042,"props":2254,"children":2255},{"style":1057},[2256],{"type":998,"value":2257},"), (",{"type":993,"tag":1042,"props":2259,"children":2260},{"style":1074},[2261],{"type":998,"value":1077},{"type":993,"tag":1042,"props":2263,"children":2264},{"style":1057},[2265],{"type":998,"value":1082},{"type":993,"tag":1042,"props":2267,"children":2268},{"style":1074},[2269],{"type":998,"value":1077},{"type":993,"tag":1042,"props":2271,"children":2272},{"style":1057},[2273],{"type":998,"value":2257},{"type":993,"tag":1042,"props":2275,"children":2276},{"style":1074},[2277],{"type":998,"value":1087},{"type":993,"tag":1042,"props":2279,"children":2280},{"style":1057},[2281],{"type":998,"value":1082},{"type":993,"tag":1042,"props":2283,"children":2284},{"style":1074},[2285],{"type":998,"value":1087},{"type":993,"tag":1042,"props":2287,"children":2288},{"style":1057},[2289],{"type":998,"value":2290},")}\n",{"type":993,"tag":1042,"props":2292,"children":2293},{"class":1044,"line":45},[2294,2299,2303,2307,2312,2316,2321,2326,2331,2335,2339,2343,2348],{"type":993,"tag":1042,"props":2295,"children":2296},{"style":1057},[2297],{"type":998,"value":2298},"identifiers ",{"type":993,"tag":1042,"props":2300,"children":2301},{"style":1063},[2302],{"type":998,"value":1066},{"type":993,"tag":1042,"props":2304,"children":2305},{"style":1057},[2306],{"type":998,"value":1071},{"type":993,"tag":1042,"props":2308,"children":2309},{"style":1074},[2310],{"type":998,"value":2311},"1001",{"type":993,"tag":1042,"props":2313,"children":2314},{"style":1057},[2315],{"type":998,"value":1082},{"type":993,"tag":1042,"props":2317,"children":2318},{"style":1138},[2319],{"type":998,"value":2320},"\"USER123\"",{"type":993,"tag":1042,"props":2322,"children":2323},{"style":1057},[2324],{"type":998,"value":2325},", (",{"type":993,"tag":1042,"props":2327,"children":2328},{"style":1074},[2329],{"type":998,"value":2330},"2024",{"type":993,"tag":1042,"props":2332,"children":2333},{"style":1057},[2334],{"type":998,"value":1082},{"type":993,"tag":1042,"props":2336,"children":2337},{"style":1074},[2338],{"type":998,"value":1077},{"type":993,"tag":1042,"props":2340,"children":2341},{"style":1057},[2342],{"type":998,"value":1082},{"type":993,"tag":1042,"props":2344,"children":2345},{"style":1074},[2346],{"type":998,"value":2347},"15",{"type":993,"tag":1042,"props":2349,"children":2350},{"style":1057},[2351],{"type":998,"value":2290},{"type":993,"tag":1042,"props":2353,"children":2354},{"class":1044,"line":54},[2355],{"type":993,"tag":1042,"props":2356,"children":2357},{"emptyLinePlaceholder":13},[2358],{"type":998,"value":1213},{"type":993,"tag":1042,"props":2360,"children":2361},{"class":1044,"line":63},[2362,2366,2370,2374,2379,2383,2388,2392,2396],{"type":993,"tag":1042,"props":2363,"children":2364},{"style":1074},[2365],{"type":998,"value":1221},{"type":993,"tag":1042,"props":2367,"children":2368},{"style":1057},[2369],{"type":998,"value":1226},{"type":993,"tag":1042,"props":2371,"children":2372},{"style":1063},[2373],{"type":998,"value":1231},{"type":993,"tag":1042,"props":2375,"children":2376},{"style":1138},[2377],{"type":998,"value":2378},"\"Mixed set: ",{"type":993,"tag":1042,"props":2380,"children":2381},{"style":1074},[2382],{"type":998,"value":1241},{"type":993,"tag":1042,"props":2384,"children":2385},{"style":1057},[2386],{"type":998,"value":2387},"mixed_set",{"type":993,"tag":1042,"props":2389,"children":2390},{"style":1074},[2391],{"type":998,"value":1251},{"type":993,"tag":1042,"props":2393,"children":2394},{"style":1138},[2395],{"type":998,"value":1256},{"type":993,"tag":1042,"props":2397,"children":2398},{"style":1057},[2399],{"type":998,"value":1261},{"type":993,"tag":1042,"props":2401,"children":2402},{"class":1044,"line":72},[2403,2407,2411,2415,2420,2424,2429,2433,2437],{"type":993,"tag":1042,"props":2404,"children":2405},{"style":1074},[2406],{"type":998,"value":1221},{"type":993,"tag":1042,"props":2408,"children":2409},{"style":1057},[2410],{"type":998,"value":1226},{"type":993,"tag":1042,"props":2412,"children":2413},{"style":1063},[2414],{"type":998,"value":1231},{"type":993,"tag":1042,"props":2416,"children":2417},{"style":1138},[2418],{"type":998,"value":2419},"\"Coordinate set: ",{"type":993,"tag":1042,"props":2421,"children":2422},{"style":1074},[2423],{"type":998,"value":1241},{"type":993,"tag":1042,"props":2425,"children":2426},{"style":1057},[2427],{"type":998,"value":2428},"coordinates",{"type":993,"tag":1042,"props":2430,"children":2431},{"style":1074},[2432],{"type":998,"value":1251},{"type":993,"tag":1042,"props":2434,"children":2435},{"style":1138},[2436],{"type":998,"value":1256},{"type":993,"tag":1042,"props":2438,"children":2439},{"style":1057},[2440],{"type":998,"value":1261},{"type":993,"tag":1042,"props":2442,"children":2443},{"class":1044,"line":81},[2444,2448,2452,2456,2461,2465,2470,2474,2478],{"type":993,"tag":1042,"props":2445,"children":2446},{"style":1074},[2447],{"type":998,"value":1221},{"type":993,"tag":1042,"props":2449,"children":2450},{"style":1057},[2451],{"type":998,"value":1226},{"type":993,"tag":1042,"props":2453,"children":2454},{"style":1063},[2455],{"type":998,"value":1231},{"type":993,"tag":1042,"props":2457,"children":2458},{"style":1138},[2459],{"type":998,"value":2460},"\"ID set: ",{"type":993,"tag":1042,"props":2462,"children":2463},{"style":1074},[2464],{"type":998,"value":1241},{"type":993,"tag":1042,"props":2466,"children":2467},{"style":1057},[2468],{"type":998,"value":2469},"identifiers",{"type":993,"tag":1042,"props":2471,"children":2472},{"style":1074},[2473],{"type":998,"value":1251},{"type":993,"tag":1042,"props":2475,"children":2476},{"style":1138},[2477],{"type":998,"value":1256},{"type":993,"tag":1042,"props":2479,"children":2480},{"style":1057},[2481],{"type":998,"value":1261},{"type":993,"tag":1345,"props":2483,"children":2485},{"id":2484},"using-the-set-function",[2486],{"type":998,"value":2487},"⚡ Using the set() Function",{"type":993,"tag":1001,"props":2489,"children":2490},{},[2491,2493,2498],{"type":998,"value":2492},"The ",{"type":993,"tag":1007,"props":2494,"children":2496},{"className":2495},[],[2497],{"type":998,"value":1020},{"type":998,"value":2499}," function is more flexible and can create sets from other data types.",{"type":993,"tag":1357,"props":2501,"children":2505},{"emoji":2502,"title":2503,"type":2504},"🔧","set() Function Benefits","success",[2506,2514,2542,2550,2596,2604],{"type":993,"tag":1001,"props":2507,"children":2508},{},[2509],{"type":993,"tag":1367,"props":2510,"children":2511},{},[2512],{"type":998,"value":2513},"Creating Empty Sets:",{"type":993,"tag":1373,"props":2515,"children":2516},{},[2517,2522,2532],{"type":993,"tag":1377,"props":2518,"children":2519},{},[2520],{"type":998,"value":2521},"Only way to create empty set",{"type":993,"tag":1377,"props":2523,"children":2524},{},[2525,2530],{"type":993,"tag":1007,"props":2526,"children":2528},{"className":2527},[],[2529],{"type":998,"value":1012},{"type":998,"value":2531}," creates empty dictionary, not set",{"type":993,"tag":1377,"props":2533,"children":2534},{},[2535,2540],{"type":993,"tag":1007,"props":2536,"children":2538},{"className":2537},[],[2539],{"type":998,"value":1020},{"type":998,"value":2541}," creates empty set",{"type":993,"tag":1001,"props":2543,"children":2544},{},[2545],{"type":993,"tag":1367,"props":2546,"children":2547},{},[2548],{"type":998,"value":2549},"From Other Data Types:",{"type":993,"tag":1373,"props":2551,"children":2552},{},[2553,2563,2574,2585],{"type":993,"tag":1377,"props":2554,"children":2555},{},[2556,2558],{"type":998,"value":2557},"Lists: ",{"type":993,"tag":1007,"props":2559,"children":2561},{"className":2560},[],[2562],{"type":998,"value":1419},{"type":993,"tag":1377,"props":2564,"children":2565},{},[2566,2568],{"type":998,"value":2567},"Tuples: ",{"type":993,"tag":1007,"props":2569,"children":2571},{"className":2570},[],[2572],{"type":998,"value":2573},"set((1, 2, 3))",{"type":993,"tag":1377,"props":2575,"children":2576},{},[2577,2579],{"type":998,"value":2578},"Strings: ",{"type":993,"tag":1007,"props":2580,"children":2582},{"className":2581},[],[2583],{"type":998,"value":2584},"set(\"hello\")",{"type":993,"tag":1377,"props":2586,"children":2587},{},[2588,2590],{"type":998,"value":2589},"Ranges: ",{"type":993,"tag":1007,"props":2591,"children":2593},{"className":2592},[],[2594],{"type":998,"value":2595},"set(range(5))",{"type":993,"tag":1001,"props":2597,"children":2598},{},[2599],{"type":993,"tag":1367,"props":2600,"children":2601},{},[2602],{"type":998,"value":2603},"Duplicate Removal:",{"type":993,"tag":1373,"props":2605,"children":2606},{},[2607,2612],{"type":993,"tag":1377,"props":2608,"children":2609},{},[2610],{"type":998,"value":2611},"Automatically removes duplicates from source",{"type":993,"tag":1377,"props":2613,"children":2614},{},[2615],{"type":998,"value":2616},"Preserves unique elements only",{"type":993,"tag":1468,"props":2618,"children":2620},{"id":2619},"creating-empty-sets",[2621],{"type":998,"value":2622},"Creating Empty Sets",{"type":993,"tag":1001,"props":2624,"children":2625},{},[2626],{"type":998,"value":2627},"The correct way to create an empty set.",{"type":993,"tag":1029,"props":2629,"children":2630},{},[2631],{"type":993,"tag":1033,"props":2632,"children":2634},{"className":1035,"code":2633,"language":6,"meta":8,"style":8},"# Creating empty sets\nempty_set = set()  # Correct way\nprint(f\"Empty set: {empty_set}\")\nprint(f\"Type: {type(empty_set)}\")\n\n# This creates a dictionary, not a set!\nempty_dict = {}\nprint(f\"Empty dict: {empty_dict}\")\nprint(f\"Type: {type(empty_dict)}\")\n",[2635],{"type":993,"tag":1007,"props":2636,"children":2637},{"__ignoreMap":8},[2638,2646,2673,2714,2756,2763,2771,2788,2829],{"type":993,"tag":1042,"props":2639,"children":2640},{"class":1044,"line":12},[2641],{"type":993,"tag":1042,"props":2642,"children":2643},{"style":1048},[2644],{"type":998,"value":2645},"# Creating empty sets\n",{"type":993,"tag":1042,"props":2647,"children":2648},{"class":1044,"line":27},[2649,2654,2658,2663,2668],{"type":993,"tag":1042,"props":2650,"children":2651},{"style":1057},[2652],{"type":998,"value":2653},"empty_set ",{"type":993,"tag":1042,"props":2655,"children":2656},{"style":1063},[2657],{"type":998,"value":1066},{"type":993,"tag":1042,"props":2659,"children":2660},{"style":1074},[2661],{"type":998,"value":2662}," set",{"type":993,"tag":1042,"props":2664,"children":2665},{"style":1057},[2666],{"type":998,"value":2667},"()  ",{"type":993,"tag":1042,"props":2669,"children":2670},{"style":1048},[2671],{"type":998,"value":2672},"# Correct way\n",{"type":993,"tag":1042,"props":2674,"children":2675},{"class":1044,"line":36},[2676,2680,2684,2688,2693,2697,2702,2706,2710],{"type":993,"tag":1042,"props":2677,"children":2678},{"style":1074},[2679],{"type":998,"value":1221},{"type":993,"tag":1042,"props":2681,"children":2682},{"style":1057},[2683],{"type":998,"value":1226},{"type":993,"tag":1042,"props":2685,"children":2686},{"style":1063},[2687],{"type":998,"value":1231},{"type":993,"tag":1042,"props":2689,"children":2690},{"style":1138},[2691],{"type":998,"value":2692},"\"Empty set: ",{"type":993,"tag":1042,"props":2694,"children":2695},{"style":1074},[2696],{"type":998,"value":1241},{"type":993,"tag":1042,"props":2698,"children":2699},{"style":1057},[2700],{"type":998,"value":2701},"empty_set",{"type":993,"tag":1042,"props":2703,"children":2704},{"style":1074},[2705],{"type":998,"value":1251},{"type":993,"tag":1042,"props":2707,"children":2708},{"style":1138},[2709],{"type":998,"value":1256},{"type":993,"tag":1042,"props":2711,"children":2712},{"style":1057},[2713],{"type":998,"value":1261},{"type":993,"tag":1042,"props":2715,"children":2716},{"class":1044,"line":45},[2717,2721,2725,2729,2734,2739,2744,2748,2752],{"type":993,"tag":1042,"props":2718,"children":2719},{"style":1074},[2720],{"type":998,"value":1221},{"type":993,"tag":1042,"props":2722,"children":2723},{"style":1057},[2724],{"type":998,"value":1226},{"type":993,"tag":1042,"props":2726,"children":2727},{"style":1063},[2728],{"type":998,"value":1231},{"type":993,"tag":1042,"props":2730,"children":2731},{"style":1138},[2732],{"type":998,"value":2733},"\"Type: ",{"type":993,"tag":1042,"props":2735,"children":2736},{"style":1074},[2737],{"type":998,"value":2738},"{type",{"type":993,"tag":1042,"props":2740,"children":2741},{"style":1057},[2742],{"type":998,"value":2743},"(empty_set)",{"type":993,"tag":1042,"props":2745,"children":2746},{"style":1074},[2747],{"type":998,"value":1251},{"type":993,"tag":1042,"props":2749,"children":2750},{"style":1138},[2751],{"type":998,"value":1256},{"type":993,"tag":1042,"props":2753,"children":2754},{"style":1057},[2755],{"type":998,"value":1261},{"type":993,"tag":1042,"props":2757,"children":2758},{"class":1044,"line":54},[2759],{"type":993,"tag":1042,"props":2760,"children":2761},{"emptyLinePlaceholder":13},[2762],{"type":998,"value":1213},{"type":993,"tag":1042,"props":2764,"children":2765},{"class":1044,"line":63},[2766],{"type":993,"tag":1042,"props":2767,"children":2768},{"style":1048},[2769],{"type":998,"value":2770},"# This creates a dictionary, not a set!\n",{"type":993,"tag":1042,"props":2772,"children":2773},{"class":1044,"line":72},[2774,2779,2783],{"type":993,"tag":1042,"props":2775,"children":2776},{"style":1057},[2777],{"type":998,"value":2778},"empty_dict ",{"type":993,"tag":1042,"props":2780,"children":2781},{"style":1063},[2782],{"type":998,"value":1066},{"type":993,"tag":1042,"props":2784,"children":2785},{"style":1057},[2786],{"type":998,"value":2787}," {}\n",{"type":993,"tag":1042,"props":2789,"children":2790},{"class":1044,"line":81},[2791,2795,2799,2803,2808,2812,2817,2821,2825],{"type":993,"tag":1042,"props":2792,"children":2793},{"style":1074},[2794],{"type":998,"value":1221},{"type":993,"tag":1042,"props":2796,"children":2797},{"style":1057},[2798],{"type":998,"value":1226},{"type":993,"tag":1042,"props":2800,"children":2801},{"style":1063},[2802],{"type":998,"value":1231},{"type":993,"tag":1042,"props":2804,"children":2805},{"style":1138},[2806],{"type":998,"value":2807},"\"Empty dict: ",{"type":993,"tag":1042,"props":2809,"children":2810},{"style":1074},[2811],{"type":998,"value":1241},{"type":993,"tag":1042,"props":2813,"children":2814},{"style":1057},[2815],{"type":998,"value":2816},"empty_dict",{"type":993,"tag":1042,"props":2818,"children":2819},{"style":1074},[2820],{"type":998,"value":1251},{"type":993,"tag":1042,"props":2822,"children":2823},{"style":1138},[2824],{"type":998,"value":1256},{"type":993,"tag":1042,"props":2826,"children":2827},{"style":1057},[2828],{"type":998,"value":1261},{"type":993,"tag":1042,"props":2830,"children":2831},{"class":1044,"line":91},[2832,2836,2840,2844,2848,2852,2857,2861,2865],{"type":993,"tag":1042,"props":2833,"children":2834},{"style":1074},[2835],{"type":998,"value":1221},{"type":993,"tag":1042,"props":2837,"children":2838},{"style":1057},[2839],{"type":998,"value":1226},{"type":993,"tag":1042,"props":2841,"children":2842},{"style":1063},[2843],{"type":998,"value":1231},{"type":993,"tag":1042,"props":2845,"children":2846},{"style":1138},[2847],{"type":998,"value":2733},{"type":993,"tag":1042,"props":2849,"children":2850},{"style":1074},[2851],{"type":998,"value":2738},{"type":993,"tag":1042,"props":2853,"children":2854},{"style":1057},[2855],{"type":998,"value":2856},"(empty_dict)",{"type":993,"tag":1042,"props":2858,"children":2859},{"style":1074},[2860],{"type":998,"value":1251},{"type":993,"tag":1042,"props":2862,"children":2863},{"style":1138},[2864],{"type":998,"value":1256},{"type":993,"tag":1042,"props":2866,"children":2867},{"style":1057},[2868],{"type":998,"value":1261},{"type":993,"tag":1468,"props":2870,"children":2872},{"id":2871},"from-lists-and-tuples",[2873],{"type":998,"value":2874},"From Lists and Tuples",{"type":993,"tag":1001,"props":2876,"children":2877},{},[2878],{"type":998,"value":2879},"Converting lists and tuples to sets.",{"type":993,"tag":1029,"props":2881,"children":2882},{},[2883],{"type":993,"tag":1033,"props":2884,"children":2886},{"className":1035,"code":2885,"language":6,"meta":8,"style":8},"# From lists\nnumber_list = [1, 2, 3, 4, 5, 1, 2]  # Has duplicates\nnumber_set = set(number_list)\nprint(f\"From list: {number_set}\")\n\n# From tuples\ncolor_tuple = (\"red\", \"green\", \"blue\", \"red\")\ncolor_set = set(color_tuple)\nprint(f\"From tuple: {color_set}\")\n\n# From ranges\nrange_set = set(range(1, 6))\nprint(f\"From range: {range_set}\")\n",[2887],{"type":993,"tag":1007,"props":2888,"children":2889},{"__ignoreMap":8},[2890,2898,2977,2998,3039,3046,3054,3103,3124,3165,3172,3180,3227],{"type":993,"tag":1042,"props":2891,"children":2892},{"class":1044,"line":12},[2893],{"type":993,"tag":1042,"props":2894,"children":2895},{"style":1048},[2896],{"type":998,"value":2897},"# From lists\n",{"type":993,"tag":1042,"props":2899,"children":2900},{"class":1044,"line":27},[2901,2906,2910,2915,2919,2923,2927,2931,2935,2939,2943,2947,2951,2955,2959,2963,2967,2972],{"type":993,"tag":1042,"props":2902,"children":2903},{"style":1057},[2904],{"type":998,"value":2905},"number_list ",{"type":993,"tag":1042,"props":2907,"children":2908},{"style":1063},[2909],{"type":998,"value":1066},{"type":993,"tag":1042,"props":2911,"children":2912},{"style":1057},[2913],{"type":998,"value":2914}," [",{"type":993,"tag":1042,"props":2916,"children":2917},{"style":1074},[2918],{"type":998,"value":1077},{"type":993,"tag":1042,"props":2920,"children":2921},{"style":1057},[2922],{"type":998,"value":1082},{"type":993,"tag":1042,"props":2924,"children":2925},{"style":1074},[2926],{"type":998,"value":1087},{"type":993,"tag":1042,"props":2928,"children":2929},{"style":1057},[2930],{"type":998,"value":1082},{"type":993,"tag":1042,"props":2932,"children":2933},{"style":1074},[2934],{"type":998,"value":1096},{"type":993,"tag":1042,"props":2936,"children":2937},{"style":1057},[2938],{"type":998,"value":1082},{"type":993,"tag":1042,"props":2940,"children":2941},{"style":1074},[2942],{"type":998,"value":1105},{"type":993,"tag":1042,"props":2944,"children":2945},{"style":1057},[2946],{"type":998,"value":1082},{"type":993,"tag":1042,"props":2948,"children":2949},{"style":1074},[2950],{"type":998,"value":1114},{"type":993,"tag":1042,"props":2952,"children":2953},{"style":1057},[2954],{"type":998,"value":1082},{"type":993,"tag":1042,"props":2956,"children":2957},{"style":1074},[2958],{"type":998,"value":1077},{"type":993,"tag":1042,"props":2960,"children":2961},{"style":1057},[2962],{"type":998,"value":1082},{"type":993,"tag":1042,"props":2964,"children":2965},{"style":1074},[2966],{"type":998,"value":1087},{"type":993,"tag":1042,"props":2968,"children":2969},{"style":1057},[2970],{"type":998,"value":2971},"]  ",{"type":993,"tag":1042,"props":2973,"children":2974},{"style":1048},[2975],{"type":998,"value":2976},"# Has duplicates\n",{"type":993,"tag":1042,"props":2978,"children":2979},{"class":1044,"line":36},[2980,2985,2989,2993],{"type":993,"tag":1042,"props":2981,"children":2982},{"style":1057},[2983],{"type":998,"value":2984},"number_set ",{"type":993,"tag":1042,"props":2986,"children":2987},{"style":1063},[2988],{"type":998,"value":1066},{"type":993,"tag":1042,"props":2990,"children":2991},{"style":1074},[2992],{"type":998,"value":2662},{"type":993,"tag":1042,"props":2994,"children":2995},{"style":1057},[2996],{"type":998,"value":2997},"(number_list)\n",{"type":993,"tag":1042,"props":2999,"children":3000},{"class":1044,"line":45},[3001,3005,3009,3013,3018,3022,3027,3031,3035],{"type":993,"tag":1042,"props":3002,"children":3003},{"style":1074},[3004],{"type":998,"value":1221},{"type":993,"tag":1042,"props":3006,"children":3007},{"style":1057},[3008],{"type":998,"value":1226},{"type":993,"tag":1042,"props":3010,"children":3011},{"style":1063},[3012],{"type":998,"value":1231},{"type":993,"tag":1042,"props":3014,"children":3015},{"style":1138},[3016],{"type":998,"value":3017},"\"From list: ",{"type":993,"tag":1042,"props":3019,"children":3020},{"style":1074},[3021],{"type":998,"value":1241},{"type":993,"tag":1042,"props":3023,"children":3024},{"style":1057},[3025],{"type":998,"value":3026},"number_set",{"type":993,"tag":1042,"props":3028,"children":3029},{"style":1074},[3030],{"type":998,"value":1251},{"type":993,"tag":1042,"props":3032,"children":3033},{"style":1138},[3034],{"type":998,"value":1256},{"type":993,"tag":1042,"props":3036,"children":3037},{"style":1057},[3038],{"type":998,"value":1261},{"type":993,"tag":1042,"props":3040,"children":3041},{"class":1044,"line":54},[3042],{"type":993,"tag":1042,"props":3043,"children":3044},{"emptyLinePlaceholder":13},[3045],{"type":998,"value":1213},{"type":993,"tag":1042,"props":3047,"children":3048},{"class":1044,"line":63},[3049],{"type":993,"tag":1042,"props":3050,"children":3051},{"style":1048},[3052],{"type":998,"value":3053},"# From tuples\n",{"type":993,"tag":1042,"props":3055,"children":3056},{"class":1044,"line":72},[3057,3062,3066,3071,3075,3079,3083,3087,3091,3095,3099],{"type":993,"tag":1042,"props":3058,"children":3059},{"style":1057},[3060],{"type":998,"value":3061},"color_tuple ",{"type":993,"tag":1042,"props":3063,"children":3064},{"style":1063},[3065],{"type":998,"value":1066},{"type":993,"tag":1042,"props":3067,"children":3068},{"style":1057},[3069],{"type":998,"value":3070}," (",{"type":993,"tag":1042,"props":3072,"children":3073},{"style":1138},[3074],{"type":998,"value":1141},{"type":993,"tag":1042,"props":3076,"children":3077},{"style":1057},[3078],{"type":998,"value":1082},{"type":993,"tag":1042,"props":3080,"children":3081},{"style":1138},[3082],{"type":998,"value":1150},{"type":993,"tag":1042,"props":3084,"children":3085},{"style":1057},[3086],{"type":998,"value":1082},{"type":993,"tag":1042,"props":3088,"children":3089},{"style":1138},[3090],{"type":998,"value":1159},{"type":993,"tag":1042,"props":3092,"children":3093},{"style":1057},[3094],{"type":998,"value":1082},{"type":993,"tag":1042,"props":3096,"children":3097},{"style":1138},[3098],{"type":998,"value":1141},{"type":993,"tag":1042,"props":3100,"children":3101},{"style":1057},[3102],{"type":998,"value":1261},{"type":993,"tag":1042,"props":3104,"children":3105},{"class":1044,"line":81},[3106,3111,3115,3119],{"type":993,"tag":1042,"props":3107,"children":3108},{"style":1057},[3109],{"type":998,"value":3110},"color_set ",{"type":993,"tag":1042,"props":3112,"children":3113},{"style":1063},[3114],{"type":998,"value":1066},{"type":993,"tag":1042,"props":3116,"children":3117},{"style":1074},[3118],{"type":998,"value":2662},{"type":993,"tag":1042,"props":3120,"children":3121},{"style":1057},[3122],{"type":998,"value":3123},"(color_tuple)\n",{"type":993,"tag":1042,"props":3125,"children":3126},{"class":1044,"line":91},[3127,3131,3135,3139,3144,3148,3153,3157,3161],{"type":993,"tag":1042,"props":3128,"children":3129},{"style":1074},[3130],{"type":998,"value":1221},{"type":993,"tag":1042,"props":3132,"children":3133},{"style":1057},[3134],{"type":998,"value":1226},{"type":993,"tag":1042,"props":3136,"children":3137},{"style":1063},[3138],{"type":998,"value":1231},{"type":993,"tag":1042,"props":3140,"children":3141},{"style":1138},[3142],{"type":998,"value":3143},"\"From tuple: ",{"type":993,"tag":1042,"props":3145,"children":3146},{"style":1074},[3147],{"type":998,"value":1241},{"type":993,"tag":1042,"props":3149,"children":3150},{"style":1057},[3151],{"type":998,"value":3152},"color_set",{"type":993,"tag":1042,"props":3154,"children":3155},{"style":1074},[3156],{"type":998,"value":1251},{"type":993,"tag":1042,"props":3158,"children":3159},{"style":1138},[3160],{"type":998,"value":1256},{"type":993,"tag":1042,"props":3162,"children":3163},{"style":1057},[3164],{"type":998,"value":1261},{"type":993,"tag":1042,"props":3166,"children":3167},{"class":1044,"line":100},[3168],{"type":993,"tag":1042,"props":3169,"children":3170},{"emptyLinePlaceholder":13},[3171],{"type":998,"value":1213},{"type":993,"tag":1042,"props":3173,"children":3174},{"class":1044,"line":109},[3175],{"type":993,"tag":1042,"props":3176,"children":3177},{"style":1048},[3178],{"type":998,"value":3179},"# From ranges\n",{"type":993,"tag":1042,"props":3181,"children":3182},{"class":1044,"line":118},[3183,3188,3192,3196,3200,3205,3209,3213,3217,3222],{"type":993,"tag":1042,"props":3184,"children":3185},{"style":1057},[3186],{"type":998,"value":3187},"range_set ",{"type":993,"tag":1042,"props":3189,"children":3190},{"style":1063},[3191],{"type":998,"value":1066},{"type":993,"tag":1042,"props":3193,"children":3194},{"style":1074},[3195],{"type":998,"value":2662},{"type":993,"tag":1042,"props":3197,"children":3198},{"style":1057},[3199],{"type":998,"value":1226},{"type":993,"tag":1042,"props":3201,"children":3202},{"style":1074},[3203],{"type":998,"value":3204},"range",{"type":993,"tag":1042,"props":3206,"children":3207},{"style":1057},[3208],{"type":998,"value":1226},{"type":993,"tag":1042,"props":3210,"children":3211},{"style":1074},[3212],{"type":998,"value":1077},{"type":993,"tag":1042,"props":3214,"children":3215},{"style":1057},[3216],{"type":998,"value":1082},{"type":993,"tag":1042,"props":3218,"children":3219},{"style":1074},[3220],{"type":998,"value":3221},"6",{"type":993,"tag":1042,"props":3223,"children":3224},{"style":1057},[3225],{"type":998,"value":3226},"))\n",{"type":993,"tag":1042,"props":3228,"children":3229},{"class":1044,"line":127},[3230,3234,3238,3242,3247,3251,3256,3260,3264],{"type":993,"tag":1042,"props":3231,"children":3232},{"style":1074},[3233],{"type":998,"value":1221},{"type":993,"tag":1042,"props":3235,"children":3236},{"style":1057},[3237],{"type":998,"value":1226},{"type":993,"tag":1042,"props":3239,"children":3240},{"style":1063},[3241],{"type":998,"value":1231},{"type":993,"tag":1042,"props":3243,"children":3244},{"style":1138},[3245],{"type":998,"value":3246},"\"From range: ",{"type":993,"tag":1042,"props":3248,"children":3249},{"style":1074},[3250],{"type":998,"value":1241},{"type":993,"tag":1042,"props":3252,"children":3253},{"style":1057},[3254],{"type":998,"value":3255},"range_set",{"type":993,"tag":1042,"props":3257,"children":3258},{"style":1074},[3259],{"type":998,"value":1251},{"type":993,"tag":1042,"props":3261,"children":3262},{"style":1138},[3263],{"type":998,"value":1256},{"type":993,"tag":1042,"props":3265,"children":3266},{"style":1057},[3267],{"type":998,"value":1261},{"type":993,"tag":1468,"props":3269,"children":3271},{"id":3270},"from-strings",[3272],{"type":998,"value":3273},"From Strings",{"type":993,"tag":1001,"props":3275,"children":3276},{},[3277],{"type":998,"value":3278},"Creating sets from string characters.",{"type":993,"tag":1029,"props":3280,"children":3281},{},[3282],{"type":993,"tag":1033,"props":3283,"children":3285},{"className":1035,"code":3284,"language":6,"meta":8,"style":8},"# Sets from strings\nword = \"hello\"\nletter_set = set(word)\nprint(f\"Letters in '{word}': {letter_set}\")\n\n# Remove duplicate letters\ntext = \"programming\"\nunique_letters = set(text)\nprint(f\"Unique letters in '{text}': {unique_letters}\")\nprint(f\"Number of unique letters: {len(unique_letters)}\")\n",[3286],{"type":993,"tag":1007,"props":3287,"children":3288},{"__ignoreMap":8},[3289,3297,3314,3335,3394,3401,3409,3426,3447,3504],{"type":993,"tag":1042,"props":3290,"children":3291},{"class":1044,"line":12},[3292],{"type":993,"tag":1042,"props":3293,"children":3294},{"style":1048},[3295],{"type":998,"value":3296},"# Sets from strings\n",{"type":993,"tag":1042,"props":3298,"children":3299},{"class":1044,"line":27},[3300,3305,3309],{"type":993,"tag":1042,"props":3301,"children":3302},{"style":1057},[3303],{"type":998,"value":3304},"word ",{"type":993,"tag":1042,"props":3306,"children":3307},{"style":1063},[3308],{"type":998,"value":1066},{"type":993,"tag":1042,"props":3310,"children":3311},{"style":1138},[3312],{"type":998,"value":3313}," \"hello\"\n",{"type":993,"tag":1042,"props":3315,"children":3316},{"class":1044,"line":36},[3317,3322,3326,3330],{"type":993,"tag":1042,"props":3318,"children":3319},{"style":1057},[3320],{"type":998,"value":3321},"letter_set ",{"type":993,"tag":1042,"props":3323,"children":3324},{"style":1063},[3325],{"type":998,"value":1066},{"type":993,"tag":1042,"props":3327,"children":3328},{"style":1074},[3329],{"type":998,"value":2662},{"type":993,"tag":1042,"props":3331,"children":3332},{"style":1057},[3333],{"type":998,"value":3334},"(word)\n",{"type":993,"tag":1042,"props":3336,"children":3337},{"class":1044,"line":45},[3338,3342,3346,3350,3355,3359,3364,3368,3373,3377,3382,3386,3390],{"type":993,"tag":1042,"props":3339,"children":3340},{"style":1074},[3341],{"type":998,"value":1221},{"type":993,"tag":1042,"props":3343,"children":3344},{"style":1057},[3345],{"type":998,"value":1226},{"type":993,"tag":1042,"props":3347,"children":3348},{"style":1063},[3349],{"type":998,"value":1231},{"type":993,"tag":1042,"props":3351,"children":3352},{"style":1138},[3353],{"type":998,"value":3354},"\"Letters in '",{"type":993,"tag":1042,"props":3356,"children":3357},{"style":1074},[3358],{"type":998,"value":1241},{"type":993,"tag":1042,"props":3360,"children":3361},{"style":1057},[3362],{"type":998,"value":3363},"word",{"type":993,"tag":1042,"props":3365,"children":3366},{"style":1074},[3367],{"type":998,"value":1251},{"type":993,"tag":1042,"props":3369,"children":3370},{"style":1138},[3371],{"type":998,"value":3372},"': ",{"type":993,"tag":1042,"props":3374,"children":3375},{"style":1074},[3376],{"type":998,"value":1241},{"type":993,"tag":1042,"props":3378,"children":3379},{"style":1057},[3380],{"type":998,"value":3381},"letter_set",{"type":993,"tag":1042,"props":3383,"children":3384},{"style":1074},[3385],{"type":998,"value":1251},{"type":993,"tag":1042,"props":3387,"children":3388},{"style":1138},[3389],{"type":998,"value":1256},{"type":993,"tag":1042,"props":3391,"children":3392},{"style":1057},[3393],{"type":998,"value":1261},{"type":993,"tag":1042,"props":3395,"children":3396},{"class":1044,"line":54},[3397],{"type":993,"tag":1042,"props":3398,"children":3399},{"emptyLinePlaceholder":13},[3400],{"type":998,"value":1213},{"type":993,"tag":1042,"props":3402,"children":3403},{"class":1044,"line":63},[3404],{"type":993,"tag":1042,"props":3405,"children":3406},{"style":1048},[3407],{"type":998,"value":3408},"# Remove duplicate letters\n",{"type":993,"tag":1042,"props":3410,"children":3411},{"class":1044,"line":72},[3412,3417,3421],{"type":993,"tag":1042,"props":3413,"children":3414},{"style":1057},[3415],{"type":998,"value":3416},"text ",{"type":993,"tag":1042,"props":3418,"children":3419},{"style":1063},[3420],{"type":998,"value":1066},{"type":993,"tag":1042,"props":3422,"children":3423},{"style":1138},[3424],{"type":998,"value":3425}," \"programming\"\n",{"type":993,"tag":1042,"props":3427,"children":3428},{"class":1044,"line":81},[3429,3434,3438,3442],{"type":993,"tag":1042,"props":3430,"children":3431},{"style":1057},[3432],{"type":998,"value":3433},"unique_letters ",{"type":993,"tag":1042,"props":3435,"children":3436},{"style":1063},[3437],{"type":998,"value":1066},{"type":993,"tag":1042,"props":3439,"children":3440},{"style":1074},[3441],{"type":998,"value":2662},{"type":993,"tag":1042,"props":3443,"children":3444},{"style":1057},[3445],{"type":998,"value":3446},"(text)\n",{"type":993,"tag":1042,"props":3448,"children":3449},{"class":1044,"line":91},[3450,3454,3458,3462,3467,3471,3475,3479,3483,3487,3492,3496,3500],{"type":993,"tag":1042,"props":3451,"children":3452},{"style":1074},[3453],{"type":998,"value":1221},{"type":993,"tag":1042,"props":3455,"children":3456},{"style":1057},[3457],{"type":998,"value":1226},{"type":993,"tag":1042,"props":3459,"children":3460},{"style":1063},[3461],{"type":998,"value":1231},{"type":993,"tag":1042,"props":3463,"children":3464},{"style":1138},[3465],{"type":998,"value":3466},"\"Unique letters in '",{"type":993,"tag":1042,"props":3468,"children":3469},{"style":1074},[3470],{"type":998,"value":1241},{"type":993,"tag":1042,"props":3472,"children":3473},{"style":1057},[3474],{"type":998,"value":998},{"type":993,"tag":1042,"props":3476,"children":3477},{"style":1074},[3478],{"type":998,"value":1251},{"type":993,"tag":1042,"props":3480,"children":3481},{"style":1138},[3482],{"type":998,"value":3372},{"type":993,"tag":1042,"props":3484,"children":3485},{"style":1074},[3486],{"type":998,"value":1241},{"type":993,"tag":1042,"props":3488,"children":3489},{"style":1057},[3490],{"type":998,"value":3491},"unique_letters",{"type":993,"tag":1042,"props":3493,"children":3494},{"style":1074},[3495],{"type":998,"value":1251},{"type":993,"tag":1042,"props":3497,"children":3498},{"style":1138},[3499],{"type":998,"value":1256},{"type":993,"tag":1042,"props":3501,"children":3502},{"style":1057},[3503],{"type":998,"value":1261},{"type":993,"tag":1042,"props":3505,"children":3506},{"class":1044,"line":100},[3507,3511,3515,3519,3524,3529,3534,3538,3542],{"type":993,"tag":1042,"props":3508,"children":3509},{"style":1074},[3510],{"type":998,"value":1221},{"type":993,"tag":1042,"props":3512,"children":3513},{"style":1057},[3514],{"type":998,"value":1226},{"type":993,"tag":1042,"props":3516,"children":3517},{"style":1063},[3518],{"type":998,"value":1231},{"type":993,"tag":1042,"props":3520,"children":3521},{"style":1138},[3522],{"type":998,"value":3523},"\"Number of unique letters: ",{"type":993,"tag":1042,"props":3525,"children":3526},{"style":1074},[3527],{"type":998,"value":3528},"{len",{"type":993,"tag":1042,"props":3530,"children":3531},{"style":1057},[3532],{"type":998,"value":3533},"(unique_letters)",{"type":993,"tag":1042,"props":3535,"children":3536},{"style":1074},[3537],{"type":998,"value":1251},{"type":993,"tag":1042,"props":3539,"children":3540},{"style":1138},[3541],{"type":998,"value":1256},{"type":993,"tag":1042,"props":3543,"children":3544},{"style":1057},[3545],{"type":998,"value":1261},{"type":993,"tag":3547,"props":3548,"children":3550},"content-exercise",{":widget-view":3549,"category":6,"id":456},"true",[],{"type":993,"tag":1345,"props":3552,"children":3554},{"id":3553},"set-comprehensions",[3555],{"type":998,"value":3556},"🚀 Set Comprehensions",{"type":993,"tag":1001,"props":3558,"children":3559},{},[3560],{"type":998,"value":3561},"Set comprehensions create sets using a compact syntax similar to list comprehensions.",{"type":993,"tag":1357,"props":3563,"children":3566},{"emoji":3564,"title":3565,"type":1361},"📝","Set Comprehension Syntax",[3567,3575,3597,3605,3627,3635],{"type":993,"tag":1001,"props":3568,"children":3569},{},[3570],{"type":993,"tag":1367,"props":3571,"children":3572},{},[3573],{"type":998,"value":3574},"Basic Pattern:",{"type":993,"tag":1373,"props":3576,"children":3577},{},[3578,3587,3592],{"type":993,"tag":1377,"props":3579,"children":3580},{},[3581],{"type":993,"tag":1007,"props":3582,"children":3584},{"className":3583},[],[3585],{"type":998,"value":3586},"{expression for item in iterable}",{"type":993,"tag":1377,"props":3588,"children":3589},{},[3590],{"type":998,"value":3591},"Creates set from expression results",{"type":993,"tag":1377,"props":3593,"children":3594},{},[3595],{"type":998,"value":3596},"Automatically removes duplicates",{"type":993,"tag":1001,"props":3598,"children":3599},{},[3600],{"type":993,"tag":1367,"props":3601,"children":3602},{},[3603],{"type":998,"value":3604},"With Conditions:",{"type":993,"tag":1373,"props":3606,"children":3607},{},[3608,3617,3622],{"type":993,"tag":1377,"props":3609,"children":3610},{},[3611],{"type":993,"tag":1007,"props":3612,"children":3614},{"className":3613},[],[3615],{"type":998,"value":3616},"{expression for item in iterable if condition}",{"type":993,"tag":1377,"props":3618,"children":3619},{},[3620],{"type":998,"value":3621},"Filter elements during creation",{"type":993,"tag":1377,"props":3623,"children":3624},{},[3625],{"type":998,"value":3626},"Apply transformations selectively",{"type":993,"tag":1001,"props":3628,"children":3629},{},[3630],{"type":993,"tag":1367,"props":3631,"children":3632},{},[3633],{"type":998,"value":3634},"Advantages:",{"type":993,"tag":1373,"props":3636,"children":3637},{},[3638,3642,3647],{"type":993,"tag":1377,"props":3639,"children":3640},{},[3641],{"type":998,"value":1461},{"type":993,"tag":1377,"props":3643,"children":3644},{},[3645],{"type":998,"value":3646},"Readable for simple transformations",{"type":993,"tag":1377,"props":3648,"children":3649},{},[3650],{"type":998,"value":3651},"Combines filtering and creation",{"type":993,"tag":1468,"props":3653,"children":3655},{"id":3654},"basic-set-comprehensions",[3656],{"type":998,"value":3657},"Basic Set Comprehensions",{"type":993,"tag":1001,"props":3659,"children":3660},{},[3661],{"type":998,"value":3662},"Creating sets using comprehension syntax.",{"type":993,"tag":1029,"props":3664,"children":3665},{},[3666],{"type":993,"tag":1033,"props":3667,"children":3669},{"className":1035,"code":3668,"language":6,"meta":8,"style":8},"# Basic set comprehensions\nsquares = {x**2 for x in range(6)}\nprint(f\"Squares: {squares}\")\n\n# From existing data\nnumbers = [1, 2, 3, 4, 5]\ndoubled = {x * 2 for x in numbers}\nprint(f\"Doubled: {doubled}\")\n\n# String transformations\nwords = [\"apple\", \"BANANA\", \"Orange\"]\nlowercase = {word.lower() for word in words}\nprint(f\"Lowercase: {lowercase}\")\n",[3670],{"type":993,"tag":1007,"props":3671,"children":3672},{"__ignoreMap":8},[3673,3681,3739,3780,3787,3795,3851,3895,3936,3943,3951,3993,4029],{"type":993,"tag":1042,"props":3674,"children":3675},{"class":1044,"line":12},[3676],{"type":993,"tag":1042,"props":3677,"children":3678},{"style":1048},[3679],{"type":998,"value":3680},"# Basic set comprehensions\n",{"type":993,"tag":1042,"props":3682,"children":3683},{"class":1044,"line":27},[3684,3689,3693,3698,3703,3707,3712,3717,3722,3727,3731,3735],{"type":993,"tag":1042,"props":3685,"children":3686},{"style":1057},[3687],{"type":998,"value":3688},"squares ",{"type":993,"tag":1042,"props":3690,"children":3691},{"style":1063},[3692],{"type":998,"value":1066},{"type":993,"tag":1042,"props":3694,"children":3695},{"style":1057},[3696],{"type":998,"value":3697}," {x",{"type":993,"tag":1042,"props":3699,"children":3700},{"style":1063},[3701],{"type":998,"value":3702},"**",{"type":993,"tag":1042,"props":3704,"children":3705},{"style":1074},[3706],{"type":998,"value":1087},{"type":993,"tag":1042,"props":3708,"children":3709},{"style":1063},[3710],{"type":998,"value":3711}," for",{"type":993,"tag":1042,"props":3713,"children":3714},{"style":1057},[3715],{"type":998,"value":3716}," x ",{"type":993,"tag":1042,"props":3718,"children":3719},{"style":1063},[3720],{"type":998,"value":3721},"in",{"type":993,"tag":1042,"props":3723,"children":3724},{"style":1074},[3725],{"type":998,"value":3726}," range",{"type":993,"tag":1042,"props":3728,"children":3729},{"style":1057},[3730],{"type":998,"value":1226},{"type":993,"tag":1042,"props":3732,"children":3733},{"style":1074},[3734],{"type":998,"value":3221},{"type":993,"tag":1042,"props":3736,"children":3737},{"style":1057},[3738],{"type":998,"value":2290},{"type":993,"tag":1042,"props":3740,"children":3741},{"class":1044,"line":36},[3742,3746,3750,3754,3759,3763,3768,3772,3776],{"type":993,"tag":1042,"props":3743,"children":3744},{"style":1074},[3745],{"type":998,"value":1221},{"type":993,"tag":1042,"props":3747,"children":3748},{"style":1057},[3749],{"type":998,"value":1226},{"type":993,"tag":1042,"props":3751,"children":3752},{"style":1063},[3753],{"type":998,"value":1231},{"type":993,"tag":1042,"props":3755,"children":3756},{"style":1138},[3757],{"type":998,"value":3758},"\"Squares: ",{"type":993,"tag":1042,"props":3760,"children":3761},{"style":1074},[3762],{"type":998,"value":1241},{"type":993,"tag":1042,"props":3764,"children":3765},{"style":1057},[3766],{"type":998,"value":3767},"squares",{"type":993,"tag":1042,"props":3769,"children":3770},{"style":1074},[3771],{"type":998,"value":1251},{"type":993,"tag":1042,"props":3773,"children":3774},{"style":1138},[3775],{"type":998,"value":1256},{"type":993,"tag":1042,"props":3777,"children":3778},{"style":1057},[3779],{"type":998,"value":1261},{"type":993,"tag":1042,"props":3781,"children":3782},{"class":1044,"line":45},[3783],{"type":993,"tag":1042,"props":3784,"children":3785},{"emptyLinePlaceholder":13},[3786],{"type":998,"value":1213},{"type":993,"tag":1042,"props":3788,"children":3789},{"class":1044,"line":54},[3790],{"type":993,"tag":1042,"props":3791,"children":3792},{"style":1048},[3793],{"type":998,"value":3794},"# From existing data\n",{"type":993,"tag":1042,"props":3796,"children":3797},{"class":1044,"line":63},[3798,3802,3806,3810,3814,3818,3822,3826,3830,3834,3838,3842,3846],{"type":993,"tag":1042,"props":3799,"children":3800},{"style":1057},[3801],{"type":998,"value":1060},{"type":993,"tag":1042,"props":3803,"children":3804},{"style":1063},[3805],{"type":998,"value":1066},{"type":993,"tag":1042,"props":3807,"children":3808},{"style":1057},[3809],{"type":998,"value":2914},{"type":993,"tag":1042,"props":3811,"children":3812},{"style":1074},[3813],{"type":998,"value":1077},{"type":993,"tag":1042,"props":3815,"children":3816},{"style":1057},[3817],{"type":998,"value":1082},{"type":993,"tag":1042,"props":3819,"children":3820},{"style":1074},[3821],{"type":998,"value":1087},{"type":993,"tag":1042,"props":3823,"children":3824},{"style":1057},[3825],{"type":998,"value":1082},{"type":993,"tag":1042,"props":3827,"children":3828},{"style":1074},[3829],{"type":998,"value":1096},{"type":993,"tag":1042,"props":3831,"children":3832},{"style":1057},[3833],{"type":998,"value":1082},{"type":993,"tag":1042,"props":3835,"children":3836},{"style":1074},[3837],{"type":998,"value":1105},{"type":993,"tag":1042,"props":3839,"children":3840},{"style":1057},[3841],{"type":998,"value":1082},{"type":993,"tag":1042,"props":3843,"children":3844},{"style":1074},[3845],{"type":998,"value":1114},{"type":993,"tag":1042,"props":3847,"children":3848},{"style":1057},[3849],{"type":998,"value":3850},"]\n",{"type":993,"tag":1042,"props":3852,"children":3853},{"class":1044,"line":72},[3854,3859,3863,3868,3873,3878,3882,3886,3890],{"type":993,"tag":1042,"props":3855,"children":3856},{"style":1057},[3857],{"type":998,"value":3858},"doubled ",{"type":993,"tag":1042,"props":3860,"children":3861},{"style":1063},[3862],{"type":998,"value":1066},{"type":993,"tag":1042,"props":3864,"children":3865},{"style":1057},[3866],{"type":998,"value":3867}," {x ",{"type":993,"tag":1042,"props":3869,"children":3870},{"style":1063},[3871],{"type":998,"value":3872},"*",{"type":993,"tag":1042,"props":3874,"children":3875},{"style":1074},[3876],{"type":998,"value":3877}," 2",{"type":993,"tag":1042,"props":3879,"children":3880},{"style":1063},[3881],{"type":998,"value":3711},{"type":993,"tag":1042,"props":3883,"children":3884},{"style":1057},[3885],{"type":998,"value":3716},{"type":993,"tag":1042,"props":3887,"children":3888},{"style":1063},[3889],{"type":998,"value":3721},{"type":993,"tag":1042,"props":3891,"children":3892},{"style":1057},[3893],{"type":998,"value":3894}," numbers}\n",{"type":993,"tag":1042,"props":3896,"children":3897},{"class":1044,"line":81},[3898,3902,3906,3910,3915,3919,3924,3928,3932],{"type":993,"tag":1042,"props":3899,"children":3900},{"style":1074},[3901],{"type":998,"value":1221},{"type":993,"tag":1042,"props":3903,"children":3904},{"style":1057},[3905],{"type":998,"value":1226},{"type":993,"tag":1042,"props":3907,"children":3908},{"style":1063},[3909],{"type":998,"value":1231},{"type":993,"tag":1042,"props":3911,"children":3912},{"style":1138},[3913],{"type":998,"value":3914},"\"Doubled: ",{"type":993,"tag":1042,"props":3916,"children":3917},{"style":1074},[3918],{"type":998,"value":1241},{"type":993,"tag":1042,"props":3920,"children":3921},{"style":1057},[3922],{"type":998,"value":3923},"doubled",{"type":993,"tag":1042,"props":3925,"children":3926},{"style":1074},[3927],{"type":998,"value":1251},{"type":993,"tag":1042,"props":3929,"children":3930},{"style":1138},[3931],{"type":998,"value":1256},{"type":993,"tag":1042,"props":3933,"children":3934},{"style":1057},[3935],{"type":998,"value":1261},{"type":993,"tag":1042,"props":3937,"children":3938},{"class":1044,"line":91},[3939],{"type":993,"tag":1042,"props":3940,"children":3941},{"emptyLinePlaceholder":13},[3942],{"type":998,"value":1213},{"type":993,"tag":1042,"props":3944,"children":3945},{"class":1044,"line":100},[3946],{"type":993,"tag":1042,"props":3947,"children":3948},{"style":1048},[3949],{"type":998,"value":3950},"# String transformations\n",{"type":993,"tag":1042,"props":3952,"children":3953},{"class":1044,"line":109},[3954,3959,3963,3967,3971,3975,3980,3984,3989],{"type":993,"tag":1042,"props":3955,"children":3956},{"style":1057},[3957],{"type":998,"value":3958},"words ",{"type":993,"tag":1042,"props":3960,"children":3961},{"style":1063},[3962],{"type":998,"value":1066},{"type":993,"tag":1042,"props":3964,"children":3965},{"style":1057},[3966],{"type":998,"value":2914},{"type":993,"tag":1042,"props":3968,"children":3969},{"style":1138},[3970],{"type":998,"value":1517},{"type":993,"tag":1042,"props":3972,"children":3973},{"style":1057},[3974],{"type":998,"value":1082},{"type":993,"tag":1042,"props":3976,"children":3977},{"style":1138},[3978],{"type":998,"value":3979},"\"BANANA\"",{"type":993,"tag":1042,"props":3981,"children":3982},{"style":1057},[3983],{"type":998,"value":1082},{"type":993,"tag":1042,"props":3985,"children":3986},{"style":1138},[3987],{"type":998,"value":3988},"\"Orange\"",{"type":993,"tag":1042,"props":3990,"children":3991},{"style":1057},[3992],{"type":998,"value":3850},{"type":993,"tag":1042,"props":3994,"children":3995},{"class":1044,"line":118},[3996,4001,4005,4010,4015,4020,4024],{"type":993,"tag":1042,"props":3997,"children":3998},{"style":1057},[3999],{"type":998,"value":4000},"lowercase ",{"type":993,"tag":1042,"props":4002,"children":4003},{"style":1063},[4004],{"type":998,"value":1066},{"type":993,"tag":1042,"props":4006,"children":4007},{"style":1057},[4008],{"type":998,"value":4009}," {word.lower() ",{"type":993,"tag":1042,"props":4011,"children":4012},{"style":1063},[4013],{"type":998,"value":4014},"for",{"type":993,"tag":1042,"props":4016,"children":4017},{"style":1057},[4018],{"type":998,"value":4019}," word ",{"type":993,"tag":1042,"props":4021,"children":4022},{"style":1063},[4023],{"type":998,"value":3721},{"type":993,"tag":1042,"props":4025,"children":4026},{"style":1057},[4027],{"type":998,"value":4028}," words}\n",{"type":993,"tag":1042,"props":4030,"children":4031},{"class":1044,"line":127},[4032,4036,4040,4044,4049,4053,4058,4062,4066],{"type":993,"tag":1042,"props":4033,"children":4034},{"style":1074},[4035],{"type":998,"value":1221},{"type":993,"tag":1042,"props":4037,"children":4038},{"style":1057},[4039],{"type":998,"value":1226},{"type":993,"tag":1042,"props":4041,"children":4042},{"style":1063},[4043],{"type":998,"value":1231},{"type":993,"tag":1042,"props":4045,"children":4046},{"style":1138},[4047],{"type":998,"value":4048},"\"Lowercase: ",{"type":993,"tag":1042,"props":4050,"children":4051},{"style":1074},[4052],{"type":998,"value":1241},{"type":993,"tag":1042,"props":4054,"children":4055},{"style":1057},[4056],{"type":998,"value":4057},"lowercase",{"type":993,"tag":1042,"props":4059,"children":4060},{"style":1074},[4061],{"type":998,"value":1251},{"type":993,"tag":1042,"props":4063,"children":4064},{"style":1138},[4065],{"type":998,"value":1256},{"type":993,"tag":1042,"props":4067,"children":4068},{"style":1057},[4069],{"type":998,"value":1261},{"type":993,"tag":1468,"props":4071,"children":4073},{"id":4072},"conditional-set-comprehensions",[4074],{"type":998,"value":4075},"Conditional Set Comprehensions",{"type":993,"tag":1001,"props":4077,"children":4078},{},[4079],{"type":998,"value":4080},"Adding conditions to filter elements during creation.",{"type":993,"tag":1029,"props":4082,"children":4083},{},[4084],{"type":993,"tag":1033,"props":4085,"children":4087},{"className":1035,"code":4086,"language":6,"meta":8,"style":8},"# Set comprehensions with conditions\nnumbers = range(1, 11)\n\n# Even numbers only\nevens = {x for x in numbers if x % 2 == 0}\nprint(f\"Even numbers: {evens}\")\n\n# Numbers divisible by 3\ndivisible_by_3 = {x for x in numbers if x % 3 == 0}\nprint(f\"Divisible by 3: {divisible_by_3}\")\n\n# Squared odd numbers\nodd_squares = {x**2 for x in numbers if x % 2 == 1}\nprint(f\"Squared odd numbers: {odd_squares}\")\n",[4088],{"type":993,"tag":1007,"props":4089,"children":4090},{"__ignoreMap":8},[4091,4099,4135,4142,4150,4215,4256,4263,4271,4332,4373,4380,4388,4457],{"type":993,"tag":1042,"props":4092,"children":4093},{"class":1044,"line":12},[4094],{"type":993,"tag":1042,"props":4095,"children":4096},{"style":1048},[4097],{"type":998,"value":4098},"# Set comprehensions with conditions\n",{"type":993,"tag":1042,"props":4100,"children":4101},{"class":1044,"line":27},[4102,4106,4110,4114,4118,4122,4126,4131],{"type":993,"tag":1042,"props":4103,"children":4104},{"style":1057},[4105],{"type":998,"value":1060},{"type":993,"tag":1042,"props":4107,"children":4108},{"style":1063},[4109],{"type":998,"value":1066},{"type":993,"tag":1042,"props":4111,"children":4112},{"style":1074},[4113],{"type":998,"value":3726},{"type":993,"tag":1042,"props":4115,"children":4116},{"style":1057},[4117],{"type":998,"value":1226},{"type":993,"tag":1042,"props":4119,"children":4120},{"style":1074},[4121],{"type":998,"value":1077},{"type":993,"tag":1042,"props":4123,"children":4124},{"style":1057},[4125],{"type":998,"value":1082},{"type":993,"tag":1042,"props":4127,"children":4128},{"style":1074},[4129],{"type":998,"value":4130},"11",{"type":993,"tag":1042,"props":4132,"children":4133},{"style":1057},[4134],{"type":998,"value":1261},{"type":993,"tag":1042,"props":4136,"children":4137},{"class":1044,"line":36},[4138],{"type":993,"tag":1042,"props":4139,"children":4140},{"emptyLinePlaceholder":13},[4141],{"type":998,"value":1213},{"type":993,"tag":1042,"props":4143,"children":4144},{"class":1044,"line":45},[4145],{"type":993,"tag":1042,"props":4146,"children":4147},{"style":1048},[4148],{"type":998,"value":4149},"# Even numbers only\n",{"type":993,"tag":1042,"props":4151,"children":4152},{"class":1044,"line":54},[4153,4158,4162,4166,4170,4174,4178,4183,4188,4192,4197,4201,4206,4211],{"type":993,"tag":1042,"props":4154,"children":4155},{"style":1057},[4156],{"type":998,"value":4157},"evens ",{"type":993,"tag":1042,"props":4159,"children":4160},{"style":1063},[4161],{"type":998,"value":1066},{"type":993,"tag":1042,"props":4163,"children":4164},{"style":1057},[4165],{"type":998,"value":3867},{"type":993,"tag":1042,"props":4167,"children":4168},{"style":1063},[4169],{"type":998,"value":4014},{"type":993,"tag":1042,"props":4171,"children":4172},{"style":1057},[4173],{"type":998,"value":3716},{"type":993,"tag":1042,"props":4175,"children":4176},{"style":1063},[4177],{"type":998,"value":3721},{"type":993,"tag":1042,"props":4179,"children":4180},{"style":1057},[4181],{"type":998,"value":4182}," numbers ",{"type":993,"tag":1042,"props":4184,"children":4185},{"style":1063},[4186],{"type":998,"value":4187},"if",{"type":993,"tag":1042,"props":4189,"children":4190},{"style":1057},[4191],{"type":998,"value":3716},{"type":993,"tag":1042,"props":4193,"children":4194},{"style":1063},[4195],{"type":998,"value":4196},"%",{"type":993,"tag":1042,"props":4198,"children":4199},{"style":1074},[4200],{"type":998,"value":3877},{"type":993,"tag":1042,"props":4202,"children":4203},{"style":1063},[4204],{"type":998,"value":4205}," ==",{"type":993,"tag":1042,"props":4207,"children":4208},{"style":1074},[4209],{"type":998,"value":4210}," 0",{"type":993,"tag":1042,"props":4212,"children":4213},{"style":1057},[4214],{"type":998,"value":1119},{"type":993,"tag":1042,"props":4216,"children":4217},{"class":1044,"line":63},[4218,4222,4226,4230,4235,4239,4244,4248,4252],{"type":993,"tag":1042,"props":4219,"children":4220},{"style":1074},[4221],{"type":998,"value":1221},{"type":993,"tag":1042,"props":4223,"children":4224},{"style":1057},[4225],{"type":998,"value":1226},{"type":993,"tag":1042,"props":4227,"children":4228},{"style":1063},[4229],{"type":998,"value":1231},{"type":993,"tag":1042,"props":4231,"children":4232},{"style":1138},[4233],{"type":998,"value":4234},"\"Even numbers: ",{"type":993,"tag":1042,"props":4236,"children":4237},{"style":1074},[4238],{"type":998,"value":1241},{"type":993,"tag":1042,"props":4240,"children":4241},{"style":1057},[4242],{"type":998,"value":4243},"evens",{"type":993,"tag":1042,"props":4245,"children":4246},{"style":1074},[4247],{"type":998,"value":1251},{"type":993,"tag":1042,"props":4249,"children":4250},{"style":1138},[4251],{"type":998,"value":1256},{"type":993,"tag":1042,"props":4253,"children":4254},{"style":1057},[4255],{"type":998,"value":1261},{"type":993,"tag":1042,"props":4257,"children":4258},{"class":1044,"line":72},[4259],{"type":993,"tag":1042,"props":4260,"children":4261},{"emptyLinePlaceholder":13},[4262],{"type":998,"value":1213},{"type":993,"tag":1042,"props":4264,"children":4265},{"class":1044,"line":81},[4266],{"type":993,"tag":1042,"props":4267,"children":4268},{"style":1048},[4269],{"type":998,"value":4270},"# Numbers divisible by 3\n",{"type":993,"tag":1042,"props":4272,"children":4273},{"class":1044,"line":91},[4274,4279,4283,4287,4291,4295,4299,4303,4307,4311,4315,4320,4324,4328],{"type":993,"tag":1042,"props":4275,"children":4276},{"style":1057},[4277],{"type":998,"value":4278},"divisible_by_3 ",{"type":993,"tag":1042,"props":4280,"children":4281},{"style":1063},[4282],{"type":998,"value":1066},{"type":993,"tag":1042,"props":4284,"children":4285},{"style":1057},[4286],{"type":998,"value":3867},{"type":993,"tag":1042,"props":4288,"children":4289},{"style":1063},[4290],{"type":998,"value":4014},{"type":993,"tag":1042,"props":4292,"children":4293},{"style":1057},[4294],{"type":998,"value":3716},{"type":993,"tag":1042,"props":4296,"children":4297},{"style":1063},[4298],{"type":998,"value":3721},{"type":993,"tag":1042,"props":4300,"children":4301},{"style":1057},[4302],{"type":998,"value":4182},{"type":993,"tag":1042,"props":4304,"children":4305},{"style":1063},[4306],{"type":998,"value":4187},{"type":993,"tag":1042,"props":4308,"children":4309},{"style":1057},[4310],{"type":998,"value":3716},{"type":993,"tag":1042,"props":4312,"children":4313},{"style":1063},[4314],{"type":998,"value":4196},{"type":993,"tag":1042,"props":4316,"children":4317},{"style":1074},[4318],{"type":998,"value":4319}," 3",{"type":993,"tag":1042,"props":4321,"children":4322},{"style":1063},[4323],{"type":998,"value":4205},{"type":993,"tag":1042,"props":4325,"children":4326},{"style":1074},[4327],{"type":998,"value":4210},{"type":993,"tag":1042,"props":4329,"children":4330},{"style":1057},[4331],{"type":998,"value":1119},{"type":993,"tag":1042,"props":4333,"children":4334},{"class":1044,"line":100},[4335,4339,4343,4347,4352,4356,4361,4365,4369],{"type":993,"tag":1042,"props":4336,"children":4337},{"style":1074},[4338],{"type":998,"value":1221},{"type":993,"tag":1042,"props":4340,"children":4341},{"style":1057},[4342],{"type":998,"value":1226},{"type":993,"tag":1042,"props":4344,"children":4345},{"style":1063},[4346],{"type":998,"value":1231},{"type":993,"tag":1042,"props":4348,"children":4349},{"style":1138},[4350],{"type":998,"value":4351},"\"Divisible by 3: ",{"type":993,"tag":1042,"props":4353,"children":4354},{"style":1074},[4355],{"type":998,"value":1241},{"type":993,"tag":1042,"props":4357,"children":4358},{"style":1057},[4359],{"type":998,"value":4360},"divisible_by_3",{"type":993,"tag":1042,"props":4362,"children":4363},{"style":1074},[4364],{"type":998,"value":1251},{"type":993,"tag":1042,"props":4366,"children":4367},{"style":1138},[4368],{"type":998,"value":1256},{"type":993,"tag":1042,"props":4370,"children":4371},{"style":1057},[4372],{"type":998,"value":1261},{"type":993,"tag":1042,"props":4374,"children":4375},{"class":1044,"line":109},[4376],{"type":993,"tag":1042,"props":4377,"children":4378},{"emptyLinePlaceholder":13},[4379],{"type":998,"value":1213},{"type":993,"tag":1042,"props":4381,"children":4382},{"class":1044,"line":118},[4383],{"type":993,"tag":1042,"props":4384,"children":4385},{"style":1048},[4386],{"type":998,"value":4387},"# Squared odd numbers\n",{"type":993,"tag":1042,"props":4389,"children":4390},{"class":1044,"line":127},[4391,4396,4400,4404,4408,4412,4416,4420,4424,4428,4432,4436,4440,4444,4448,4453],{"type":993,"tag":1042,"props":4392,"children":4393},{"style":1057},[4394],{"type":998,"value":4395},"odd_squares ",{"type":993,"tag":1042,"props":4397,"children":4398},{"style":1063},[4399],{"type":998,"value":1066},{"type":993,"tag":1042,"props":4401,"children":4402},{"style":1057},[4403],{"type":998,"value":3697},{"type":993,"tag":1042,"props":4405,"children":4406},{"style":1063},[4407],{"type":998,"value":3702},{"type":993,"tag":1042,"props":4409,"children":4410},{"style":1074},[4411],{"type":998,"value":1087},{"type":993,"tag":1042,"props":4413,"children":4414},{"style":1063},[4415],{"type":998,"value":3711},{"type":993,"tag":1042,"props":4417,"children":4418},{"style":1057},[4419],{"type":998,"value":3716},{"type":993,"tag":1042,"props":4421,"children":4422},{"style":1063},[4423],{"type":998,"value":3721},{"type":993,"tag":1042,"props":4425,"children":4426},{"style":1057},[4427],{"type":998,"value":4182},{"type":993,"tag":1042,"props":4429,"children":4430},{"style":1063},[4431],{"type":998,"value":4187},{"type":993,"tag":1042,"props":4433,"children":4434},{"style":1057},[4435],{"type":998,"value":3716},{"type":993,"tag":1042,"props":4437,"children":4438},{"style":1063},[4439],{"type":998,"value":4196},{"type":993,"tag":1042,"props":4441,"children":4442},{"style":1074},[4443],{"type":998,"value":3877},{"type":993,"tag":1042,"props":4445,"children":4446},{"style":1063},[4447],{"type":998,"value":4205},{"type":993,"tag":1042,"props":4449,"children":4450},{"style":1074},[4451],{"type":998,"value":4452}," 1",{"type":993,"tag":1042,"props":4454,"children":4455},{"style":1057},[4456],{"type":998,"value":1119},{"type":993,"tag":1042,"props":4458,"children":4459},{"class":1044,"line":136},[4460,4464,4468,4472,4477,4481,4486,4490,4494],{"type":993,"tag":1042,"props":4461,"children":4462},{"style":1074},[4463],{"type":998,"value":1221},{"type":993,"tag":1042,"props":4465,"children":4466},{"style":1057},[4467],{"type":998,"value":1226},{"type":993,"tag":1042,"props":4469,"children":4470},{"style":1063},[4471],{"type":998,"value":1231},{"type":993,"tag":1042,"props":4473,"children":4474},{"style":1138},[4475],{"type":998,"value":4476},"\"Squared odd numbers: ",{"type":993,"tag":1042,"props":4478,"children":4479},{"style":1074},[4480],{"type":998,"value":1241},{"type":993,"tag":1042,"props":4482,"children":4483},{"style":1057},[4484],{"type":998,"value":4485},"odd_squares",{"type":993,"tag":1042,"props":4487,"children":4488},{"style":1074},[4489],{"type":998,"value":1251},{"type":993,"tag":1042,"props":4491,"children":4492},{"style":1138},[4493],{"type":998,"value":1256},{"type":993,"tag":1042,"props":4495,"children":4496},{"style":1057},[4497],{"type":998,"value":1261},{"type":993,"tag":1468,"props":4499,"children":4501},{"id":4500},"complex-transformations",[4502],{"type":998,"value":4503},"Complex Transformations",{"type":993,"tag":1001,"props":4505,"children":4506},{},[4507],{"type":998,"value":4508},"Using comprehensions for more complex data processing.",{"type":993,"tag":1029,"props":4510,"children":4511},{},[4512],{"type":993,"tag":1033,"props":4513,"children":4515},{"className":1035,"code":4514,"language":6,"meta":8,"style":8},"# Complex transformations\nwords = [\"python\", \"java\", \"javascript\", \"go\", \"rust\"]\n\n# Words longer than 4 characters, uppercase\nlong_words = {word.upper() for word in words if len(word) > 4}\nprint(f\"Long words (uppercase): {long_words}\")\n\n# First letter of each word\nfirst_letters = {word[0] for word in words}\nprint(f\"First letters: {first_letters}\")\n\n# Word lengths\nword_lengths = {len(word) for word in words}\nprint(f\"Word lengths: {word_lengths}\")\n",[4516],{"type":993,"tag":1007,"props":4517,"children":4518},{"__ignoreMap":8},[4519,4527,4587,4594,4602,4664,4705,4712,4720,4762,4803,4810,4818,4859],{"type":993,"tag":1042,"props":4520,"children":4521},{"class":1044,"line":12},[4522],{"type":993,"tag":1042,"props":4523,"children":4524},{"style":1048},[4525],{"type":998,"value":4526},"# Complex transformations\n",{"type":993,"tag":1042,"props":4528,"children":4529},{"class":1044,"line":27},[4530,4534,4538,4542,4547,4551,4556,4560,4565,4569,4574,4578,4583],{"type":993,"tag":1042,"props":4531,"children":4532},{"style":1057},[4533],{"type":998,"value":3958},{"type":993,"tag":1042,"props":4535,"children":4536},{"style":1063},[4537],{"type":998,"value":1066},{"type":993,"tag":1042,"props":4539,"children":4540},{"style":1057},[4541],{"type":998,"value":2914},{"type":993,"tag":1042,"props":4543,"children":4544},{"style":1138},[4545],{"type":998,"value":4546},"\"python\"",{"type":993,"tag":1042,"props":4548,"children":4549},{"style":1057},[4550],{"type":998,"value":1082},{"type":993,"tag":1042,"props":4552,"children":4553},{"style":1138},[4554],{"type":998,"value":4555},"\"java\"",{"type":993,"tag":1042,"props":4557,"children":4558},{"style":1057},[4559],{"type":998,"value":1082},{"type":993,"tag":1042,"props":4561,"children":4562},{"style":1138},[4563],{"type":998,"value":4564},"\"javascript\"",{"type":993,"tag":1042,"props":4566,"children":4567},{"style":1057},[4568],{"type":998,"value":1082},{"type":993,"tag":1042,"props":4570,"children":4571},{"style":1138},[4572],{"type":998,"value":4573},"\"go\"",{"type":993,"tag":1042,"props":4575,"children":4576},{"style":1057},[4577],{"type":998,"value":1082},{"type":993,"tag":1042,"props":4579,"children":4580},{"style":1138},[4581],{"type":998,"value":4582},"\"rust\"",{"type":993,"tag":1042,"props":4584,"children":4585},{"style":1057},[4586],{"type":998,"value":3850},{"type":993,"tag":1042,"props":4588,"children":4589},{"class":1044,"line":36},[4590],{"type":993,"tag":1042,"props":4591,"children":4592},{"emptyLinePlaceholder":13},[4593],{"type":998,"value":1213},{"type":993,"tag":1042,"props":4595,"children":4596},{"class":1044,"line":45},[4597],{"type":993,"tag":1042,"props":4598,"children":4599},{"style":1048},[4600],{"type":998,"value":4601},"# Words longer than 4 characters, uppercase\n",{"type":993,"tag":1042,"props":4603,"children":4604},{"class":1044,"line":54},[4605,4610,4614,4619,4623,4627,4631,4636,4640,4645,4650,4655,4660],{"type":993,"tag":1042,"props":4606,"children":4607},{"style":1057},[4608],{"type":998,"value":4609},"long_words ",{"type":993,"tag":1042,"props":4611,"children":4612},{"style":1063},[4613],{"type":998,"value":1066},{"type":993,"tag":1042,"props":4615,"children":4616},{"style":1057},[4617],{"type":998,"value":4618}," {word.upper() ",{"type":993,"tag":1042,"props":4620,"children":4621},{"style":1063},[4622],{"type":998,"value":4014},{"type":993,"tag":1042,"props":4624,"children":4625},{"style":1057},[4626],{"type":998,"value":4019},{"type":993,"tag":1042,"props":4628,"children":4629},{"style":1063},[4630],{"type":998,"value":3721},{"type":993,"tag":1042,"props":4632,"children":4633},{"style":1057},[4634],{"type":998,"value":4635}," words ",{"type":993,"tag":1042,"props":4637,"children":4638},{"style":1063},[4639],{"type":998,"value":4187},{"type":993,"tag":1042,"props":4641,"children":4642},{"style":1074},[4643],{"type":998,"value":4644}," len",{"type":993,"tag":1042,"props":4646,"children":4647},{"style":1057},[4648],{"type":998,"value":4649},"(word) ",{"type":993,"tag":1042,"props":4651,"children":4652},{"style":1063},[4653],{"type":998,"value":4654},">",{"type":993,"tag":1042,"props":4656,"children":4657},{"style":1074},[4658],{"type":998,"value":4659}," 4",{"type":993,"tag":1042,"props":4661,"children":4662},{"style":1057},[4663],{"type":998,"value":1119},{"type":993,"tag":1042,"props":4665,"children":4666},{"class":1044,"line":63},[4667,4671,4675,4679,4684,4688,4693,4697,4701],{"type":993,"tag":1042,"props":4668,"children":4669},{"style":1074},[4670],{"type":998,"value":1221},{"type":993,"tag":1042,"props":4672,"children":4673},{"style":1057},[4674],{"type":998,"value":1226},{"type":993,"tag":1042,"props":4676,"children":4677},{"style":1063},[4678],{"type":998,"value":1231},{"type":993,"tag":1042,"props":4680,"children":4681},{"style":1138},[4682],{"type":998,"value":4683},"\"Long words (uppercase): ",{"type":993,"tag":1042,"props":4685,"children":4686},{"style":1074},[4687],{"type":998,"value":1241},{"type":993,"tag":1042,"props":4689,"children":4690},{"style":1057},[4691],{"type":998,"value":4692},"long_words",{"type":993,"tag":1042,"props":4694,"children":4695},{"style":1074},[4696],{"type":998,"value":1251},{"type":993,"tag":1042,"props":4698,"children":4699},{"style":1138},[4700],{"type":998,"value":1256},{"type":993,"tag":1042,"props":4702,"children":4703},{"style":1057},[4704],{"type":998,"value":1261},{"type":993,"tag":1042,"props":4706,"children":4707},{"class":1044,"line":72},[4708],{"type":993,"tag":1042,"props":4709,"children":4710},{"emptyLinePlaceholder":13},[4711],{"type":998,"value":1213},{"type":993,"tag":1042,"props":4713,"children":4714},{"class":1044,"line":81},[4715],{"type":993,"tag":1042,"props":4716,"children":4717},{"style":1048},[4718],{"type":998,"value":4719},"# First letter of each word\n",{"type":993,"tag":1042,"props":4721,"children":4722},{"class":1044,"line":91},[4723,4728,4732,4737,4741,4746,4750,4754,4758],{"type":993,"tag":1042,"props":4724,"children":4725},{"style":1057},[4726],{"type":998,"value":4727},"first_letters ",{"type":993,"tag":1042,"props":4729,"children":4730},{"style":1063},[4731],{"type":998,"value":1066},{"type":993,"tag":1042,"props":4733,"children":4734},{"style":1057},[4735],{"type":998,"value":4736}," {word[",{"type":993,"tag":1042,"props":4738,"children":4739},{"style":1074},[4740],{"type":998,"value":2244},{"type":993,"tag":1042,"props":4742,"children":4743},{"style":1057},[4744],{"type":998,"value":4745},"] ",{"type":993,"tag":1042,"props":4747,"children":4748},{"style":1063},[4749],{"type":998,"value":4014},{"type":993,"tag":1042,"props":4751,"children":4752},{"style":1057},[4753],{"type":998,"value":4019},{"type":993,"tag":1042,"props":4755,"children":4756},{"style":1063},[4757],{"type":998,"value":3721},{"type":993,"tag":1042,"props":4759,"children":4760},{"style":1057},[4761],{"type":998,"value":4028},{"type":993,"tag":1042,"props":4763,"children":4764},{"class":1044,"line":100},[4765,4769,4773,4777,4782,4786,4791,4795,4799],{"type":993,"tag":1042,"props":4766,"children":4767},{"style":1074},[4768],{"type":998,"value":1221},{"type":993,"tag":1042,"props":4770,"children":4771},{"style":1057},[4772],{"type":998,"value":1226},{"type":993,"tag":1042,"props":4774,"children":4775},{"style":1063},[4776],{"type":998,"value":1231},{"type":993,"tag":1042,"props":4778,"children":4779},{"style":1138},[4780],{"type":998,"value":4781},"\"First letters: ",{"type":993,"tag":1042,"props":4783,"children":4784},{"style":1074},[4785],{"type":998,"value":1241},{"type":993,"tag":1042,"props":4787,"children":4788},{"style":1057},[4789],{"type":998,"value":4790},"first_letters",{"type":993,"tag":1042,"props":4792,"children":4793},{"style":1074},[4794],{"type":998,"value":1251},{"type":993,"tag":1042,"props":4796,"children":4797},{"style":1138},[4798],{"type":998,"value":1256},{"type":993,"tag":1042,"props":4800,"children":4801},{"style":1057},[4802],{"type":998,"value":1261},{"type":993,"tag":1042,"props":4804,"children":4805},{"class":1044,"line":109},[4806],{"type":993,"tag":1042,"props":4807,"children":4808},{"emptyLinePlaceholder":13},[4809],{"type":998,"value":1213},{"type":993,"tag":1042,"props":4811,"children":4812},{"class":1044,"line":118},[4813],{"type":993,"tag":1042,"props":4814,"children":4815},{"style":1048},[4816],{"type":998,"value":4817},"# Word lengths\n",{"type":993,"tag":1042,"props":4819,"children":4820},{"class":1044,"line":127},[4821,4826,4830,4834,4839,4843,4847,4851,4855],{"type":993,"tag":1042,"props":4822,"children":4823},{"style":1057},[4824],{"type":998,"value":4825},"word_lengths ",{"type":993,"tag":1042,"props":4827,"children":4828},{"style":1063},[4829],{"type":998,"value":1066},{"type":993,"tag":1042,"props":4831,"children":4832},{"style":1057},[4833],{"type":998,"value":1071},{"type":993,"tag":1042,"props":4835,"children":4836},{"style":1074},[4837],{"type":998,"value":4838},"len",{"type":993,"tag":1042,"props":4840,"children":4841},{"style":1057},[4842],{"type":998,"value":4649},{"type":993,"tag":1042,"props":4844,"children":4845},{"style":1063},[4846],{"type":998,"value":4014},{"type":993,"tag":1042,"props":4848,"children":4849},{"style":1057},[4850],{"type":998,"value":4019},{"type":993,"tag":1042,"props":4852,"children":4853},{"style":1063},[4854],{"type":998,"value":3721},{"type":993,"tag":1042,"props":4856,"children":4857},{"style":1057},[4858],{"type":998,"value":4028},{"type":993,"tag":1042,"props":4860,"children":4861},{"class":1044,"line":136},[4862,4866,4870,4874,4879,4883,4888,4892,4896],{"type":993,"tag":1042,"props":4863,"children":4864},{"style":1074},[4865],{"type":998,"value":1221},{"type":993,"tag":1042,"props":4867,"children":4868},{"style":1057},[4869],{"type":998,"value":1226},{"type":993,"tag":1042,"props":4871,"children":4872},{"style":1063},[4873],{"type":998,"value":1231},{"type":993,"tag":1042,"props":4875,"children":4876},{"style":1138},[4877],{"type":998,"value":4878},"\"Word lengths: ",{"type":993,"tag":1042,"props":4880,"children":4881},{"style":1074},[4882],{"type":998,"value":1241},{"type":993,"tag":1042,"props":4884,"children":4885},{"style":1057},[4886],{"type":998,"value":4887},"word_lengths",{"type":993,"tag":1042,"props":4889,"children":4890},{"style":1074},[4891],{"type":998,"value":1251},{"type":993,"tag":1042,"props":4893,"children":4894},{"style":1138},[4895],{"type":998,"value":1256},{"type":993,"tag":1042,"props":4897,"children":4898},{"style":1057},[4899],{"type":998,"value":1261},{"type":993,"tag":1345,"props":4901,"children":4903},{"id":4902},"creating-sets-from-different-sources",[4904],{"type":998,"value":4905},"🌟 Creating Sets from Different Sources",{"type":993,"tag":1001,"props":4907,"children":4908},{},[4909],{"type":998,"value":4910},"Sets can be created from various data sources depending on your needs.",{"type":993,"tag":1357,"props":4912,"children":4916},{"emoji":4913,"title":4914,"type":4915},"📊","Data Source Considerations","warning",[4917,4925,4942,4950,4968,4976],{"type":993,"tag":1001,"props":4918,"children":4919},{},[4920],{"type":993,"tag":1367,"props":4921,"children":4922},{},[4923],{"type":998,"value":4924},"File Data:",{"type":993,"tag":1373,"props":4926,"children":4927},{},[4928,4933,4937],{"type":993,"tag":1377,"props":4929,"children":4930},{},[4931],{"type":998,"value":4932},"Read lines and convert to set",{"type":993,"tag":1377,"props":4934,"children":4935},{},[4936],{"type":998,"value":1392},{"type":993,"tag":1377,"props":4938,"children":4939},{},[4940],{"type":998,"value":4941},"Good for unique record tracking",{"type":993,"tag":1001,"props":4943,"children":4944},{},[4945],{"type":993,"tag":1367,"props":4946,"children":4947},{},[4948],{"type":998,"value":4949},"User Input:",{"type":993,"tag":1373,"props":4951,"children":4952},{},[4953,4958,4963],{"type":993,"tag":1377,"props":4954,"children":4955},{},[4956],{"type":998,"value":4957},"Split input strings into sets",{"type":993,"tag":1377,"props":4959,"children":4960},{},[4961],{"type":998,"value":4962},"Clean and validate data",{"type":993,"tag":1377,"props":4964,"children":4965},{},[4966],{"type":998,"value":4967},"Handle case sensitivity",{"type":993,"tag":1001,"props":4969,"children":4970},{},[4971],{"type":993,"tag":1367,"props":4972,"children":4973},{},[4974],{"type":998,"value":4975},"Database Results:",{"type":993,"tag":1373,"props":4977,"children":4978},{},[4979,4984,4989],{"type":993,"tag":1377,"props":4980,"children":4981},{},[4982],{"type":998,"value":4983},"Convert query results to sets",{"type":993,"tag":1377,"props":4985,"children":4986},{},[4987],{"type":998,"value":4988},"Find unique values across records",{"type":993,"tag":1377,"props":4990,"children":4991},{},[4992],{"type":998,"value":4993},"Perform set operations on data",{"type":993,"tag":1468,"props":4995,"children":4997},{"id":4996},"from-user-input",[4998],{"type":998,"value":4999},"From User Input",{"type":993,"tag":1001,"props":5001,"children":5002},{},[5003],{"type":998,"value":5004},"Creating sets from user-provided data.",{"type":993,"tag":1029,"props":5006,"children":5007},{},[5008],{"type":993,"tag":1033,"props":5009,"children":5011},{"className":1035,"code":5010,"language":6,"meta":8,"style":8},"# Simulate user input (in real code, use input())\nuser_input = \"apple,banana,apple,orange,banana\"\nprint(f\"User input: {user_input}\")\n\n# Split and create set\nfruit_list = user_input.split(\",\")\nfruit_set = set(fruit_list)\nprint(f\"Unique fruits: {fruit_set}\")\n\n# Clean whitespace\nmessy_input = \" red , green , blue , red \"\ncleaned = {item.strip() for item in messy_input.split(\",\")}\nprint(f\"Cleaned set: {cleaned}\")\n",[5012],{"type":993,"tag":1007,"props":5013,"children":5014},{"__ignoreMap":8},[5015,5023,5040,5081,5088,5096,5122,5143,5184,5191,5199,5216,5259],{"type":993,"tag":1042,"props":5016,"children":5017},{"class":1044,"line":12},[5018],{"type":993,"tag":1042,"props":5019,"children":5020},{"style":1048},[5021],{"type":998,"value":5022},"# Simulate user input (in real code, use input())\n",{"type":993,"tag":1042,"props":5024,"children":5025},{"class":1044,"line":27},[5026,5031,5035],{"type":993,"tag":1042,"props":5027,"children":5028},{"style":1057},[5029],{"type":998,"value":5030},"user_input ",{"type":993,"tag":1042,"props":5032,"children":5033},{"style":1063},[5034],{"type":998,"value":1066},{"type":993,"tag":1042,"props":5036,"children":5037},{"style":1138},[5038],{"type":998,"value":5039}," \"apple,banana,apple,orange,banana\"\n",{"type":993,"tag":1042,"props":5041,"children":5042},{"class":1044,"line":36},[5043,5047,5051,5055,5060,5064,5069,5073,5077],{"type":993,"tag":1042,"props":5044,"children":5045},{"style":1074},[5046],{"type":998,"value":1221},{"type":993,"tag":1042,"props":5048,"children":5049},{"style":1057},[5050],{"type":998,"value":1226},{"type":993,"tag":1042,"props":5052,"children":5053},{"style":1063},[5054],{"type":998,"value":1231},{"type":993,"tag":1042,"props":5056,"children":5057},{"style":1138},[5058],{"type":998,"value":5059},"\"User input: ",{"type":993,"tag":1042,"props":5061,"children":5062},{"style":1074},[5063],{"type":998,"value":1241},{"type":993,"tag":1042,"props":5065,"children":5066},{"style":1057},[5067],{"type":998,"value":5068},"user_input",{"type":993,"tag":1042,"props":5070,"children":5071},{"style":1074},[5072],{"type":998,"value":1251},{"type":993,"tag":1042,"props":5074,"children":5075},{"style":1138},[5076],{"type":998,"value":1256},{"type":993,"tag":1042,"props":5078,"children":5079},{"style":1057},[5080],{"type":998,"value":1261},{"type":993,"tag":1042,"props":5082,"children":5083},{"class":1044,"line":45},[5084],{"type":993,"tag":1042,"props":5085,"children":5086},{"emptyLinePlaceholder":13},[5087],{"type":998,"value":1213},{"type":993,"tag":1042,"props":5089,"children":5090},{"class":1044,"line":54},[5091],{"type":993,"tag":1042,"props":5092,"children":5093},{"style":1048},[5094],{"type":998,"value":5095},"# Split and create set\n",{"type":993,"tag":1042,"props":5097,"children":5098},{"class":1044,"line":63},[5099,5104,5108,5113,5118],{"type":993,"tag":1042,"props":5100,"children":5101},{"style":1057},[5102],{"type":998,"value":5103},"fruit_list ",{"type":993,"tag":1042,"props":5105,"children":5106},{"style":1063},[5107],{"type":998,"value":1066},{"type":993,"tag":1042,"props":5109,"children":5110},{"style":1057},[5111],{"type":998,"value":5112}," user_input.split(",{"type":993,"tag":1042,"props":5114,"children":5115},{"style":1138},[5116],{"type":998,"value":5117},"\",\"",{"type":993,"tag":1042,"props":5119,"children":5120},{"style":1057},[5121],{"type":998,"value":1261},{"type":993,"tag":1042,"props":5123,"children":5124},{"class":1044,"line":72},[5125,5130,5134,5138],{"type":993,"tag":1042,"props":5126,"children":5127},{"style":1057},[5128],{"type":998,"value":5129},"fruit_set ",{"type":993,"tag":1042,"props":5131,"children":5132},{"style":1063},[5133],{"type":998,"value":1066},{"type":993,"tag":1042,"props":5135,"children":5136},{"style":1074},[5137],{"type":998,"value":2662},{"type":993,"tag":1042,"props":5139,"children":5140},{"style":1057},[5141],{"type":998,"value":5142},"(fruit_list)\n",{"type":993,"tag":1042,"props":5144,"children":5145},{"class":1044,"line":81},[5146,5150,5154,5158,5163,5167,5172,5176,5180],{"type":993,"tag":1042,"props":5147,"children":5148},{"style":1074},[5149],{"type":998,"value":1221},{"type":993,"tag":1042,"props":5151,"children":5152},{"style":1057},[5153],{"type":998,"value":1226},{"type":993,"tag":1042,"props":5155,"children":5156},{"style":1063},[5157],{"type":998,"value":1231},{"type":993,"tag":1042,"props":5159,"children":5160},{"style":1138},[5161],{"type":998,"value":5162},"\"Unique fruits: ",{"type":993,"tag":1042,"props":5164,"children":5165},{"style":1074},[5166],{"type":998,"value":1241},{"type":993,"tag":1042,"props":5168,"children":5169},{"style":1057},[5170],{"type":998,"value":5171},"fruit_set",{"type":993,"tag":1042,"props":5173,"children":5174},{"style":1074},[5175],{"type":998,"value":1251},{"type":993,"tag":1042,"props":5177,"children":5178},{"style":1138},[5179],{"type":998,"value":1256},{"type":993,"tag":1042,"props":5181,"children":5182},{"style":1057},[5183],{"type":998,"value":1261},{"type":993,"tag":1042,"props":5185,"children":5186},{"class":1044,"line":91},[5187],{"type":993,"tag":1042,"props":5188,"children":5189},{"emptyLinePlaceholder":13},[5190],{"type":998,"value":1213},{"type":993,"tag":1042,"props":5192,"children":5193},{"class":1044,"line":100},[5194],{"type":993,"tag":1042,"props":5195,"children":5196},{"style":1048},[5197],{"type":998,"value":5198},"# Clean whitespace\n",{"type":993,"tag":1042,"props":5200,"children":5201},{"class":1044,"line":109},[5202,5207,5211],{"type":993,"tag":1042,"props":5203,"children":5204},{"style":1057},[5205],{"type":998,"value":5206},"messy_input ",{"type":993,"tag":1042,"props":5208,"children":5209},{"style":1063},[5210],{"type":998,"value":1066},{"type":993,"tag":1042,"props":5212,"children":5213},{"style":1138},[5214],{"type":998,"value":5215}," \" red , green , blue , red \"\n",{"type":993,"tag":1042,"props":5217,"children":5218},{"class":1044,"line":118},[5219,5224,5228,5233,5237,5242,5246,5251,5255],{"type":993,"tag":1042,"props":5220,"children":5221},{"style":1057},[5222],{"type":998,"value":5223},"cleaned ",{"type":993,"tag":1042,"props":5225,"children":5226},{"style":1063},[5227],{"type":998,"value":1066},{"type":993,"tag":1042,"props":5229,"children":5230},{"style":1057},[5231],{"type":998,"value":5232}," {item.strip() ",{"type":993,"tag":1042,"props":5234,"children":5235},{"style":1063},[5236],{"type":998,"value":4014},{"type":993,"tag":1042,"props":5238,"children":5239},{"style":1057},[5240],{"type":998,"value":5241}," item ",{"type":993,"tag":1042,"props":5243,"children":5244},{"style":1063},[5245],{"type":998,"value":3721},{"type":993,"tag":1042,"props":5247,"children":5248},{"style":1057},[5249],{"type":998,"value":5250}," messy_input.split(",{"type":993,"tag":1042,"props":5252,"children":5253},{"style":1138},[5254],{"type":998,"value":5117},{"type":993,"tag":1042,"props":5256,"children":5257},{"style":1057},[5258],{"type":998,"value":2290},{"type":993,"tag":1042,"props":5260,"children":5261},{"class":1044,"line":127},[5262,5266,5270,5274,5279,5283,5288,5292,5296],{"type":993,"tag":1042,"props":5263,"children":5264},{"style":1074},[5265],{"type":998,"value":1221},{"type":993,"tag":1042,"props":5267,"children":5268},{"style":1057},[5269],{"type":998,"value":1226},{"type":993,"tag":1042,"props":5271,"children":5272},{"style":1063},[5273],{"type":998,"value":1231},{"type":993,"tag":1042,"props":5275,"children":5276},{"style":1138},[5277],{"type":998,"value":5278},"\"Cleaned set: ",{"type":993,"tag":1042,"props":5280,"children":5281},{"style":1074},[5282],{"type":998,"value":1241},{"type":993,"tag":1042,"props":5284,"children":5285},{"style":1057},[5286],{"type":998,"value":5287},"cleaned",{"type":993,"tag":1042,"props":5289,"children":5290},{"style":1074},[5291],{"type":998,"value":1251},{"type":993,"tag":1042,"props":5293,"children":5294},{"style":1138},[5295],{"type":998,"value":1256},{"type":993,"tag":1042,"props":5297,"children":5298},{"style":1057},[5299],{"type":998,"value":1261},{"type":993,"tag":1468,"props":5301,"children":5303},{"id":5302},"from-nested-data",[5304],{"type":998,"value":5305},"From Nested Data",{"type":993,"tag":1001,"props":5307,"children":5308},{},[5309],{"type":998,"value":5310},"Creating sets from complex data structures.",{"type":993,"tag":1029,"props":5312,"children":5313},{},[5314],{"type":993,"tag":1033,"props":5315,"children":5317},{"className":1035,"code":5316,"language":6,"meta":8,"style":8},"# From nested lists\nstudent_groups = [\n    [\"Alice\", \"Bob\", \"Carol\"],\n    [\"Bob\", \"David\", \"Eve\"],\n    [\"Carol\", \"Frank\", \"Alice\"]\n]\n\n# Get all unique students\nall_students = set()\nfor group in student_groups:\n    all_students.update(group)\nprint(f\"All students: {all_students}\")\n\n# Using comprehension (flattened)\nstudents_flat = {student for group in student_groups for student in group}\nprint(f\"Students (comprehension): {students_flat}\")\n\n# Extract email domains\nemails = [\n    \"alice@gmail.com\",\n    \"bob@yahoo.com\", \n    \"carol@gmail.com\",\n    \"david@yahoo.com\"\n]\n\ndomains = {email.split(\"@\")[1] for email in emails}\nprint(f\"Email domains: {domains}\")\n",[5318],{"type":993,"tag":1007,"props":5319,"children":5320},{"__ignoreMap":8},[5321,5329,5346,5382,5415,5447,5454,5461,5469,5490,5511,5519,5560,5567,5575,5627,5668,5675,5683,5699,5712,5725,5737,5745,5752,5759,5812],{"type":993,"tag":1042,"props":5322,"children":5323},{"class":1044,"line":12},[5324],{"type":993,"tag":1042,"props":5325,"children":5326},{"style":1048},[5327],{"type":998,"value":5328},"# From nested lists\n",{"type":993,"tag":1042,"props":5330,"children":5331},{"class":1044,"line":27},[5332,5337,5341],{"type":993,"tag":1042,"props":5333,"children":5334},{"style":1057},[5335],{"type":998,"value":5336},"student_groups ",{"type":993,"tag":1042,"props":5338,"children":5339},{"style":1063},[5340],{"type":998,"value":1066},{"type":993,"tag":1042,"props":5342,"children":5343},{"style":1057},[5344],{"type":998,"value":5345}," [\n",{"type":993,"tag":1042,"props":5347,"children":5348},{"class":1044,"line":36},[5349,5354,5359,5363,5368,5372,5377],{"type":993,"tag":1042,"props":5350,"children":5351},{"style":1057},[5352],{"type":998,"value":5353},"    [",{"type":993,"tag":1042,"props":5355,"children":5356},{"style":1138},[5357],{"type":998,"value":5358},"\"Alice\"",{"type":993,"tag":1042,"props":5360,"children":5361},{"style":1057},[5362],{"type":998,"value":1082},{"type":993,"tag":1042,"props":5364,"children":5365},{"style":1138},[5366],{"type":998,"value":5367},"\"Bob\"",{"type":993,"tag":1042,"props":5369,"children":5370},{"style":1057},[5371],{"type":998,"value":1082},{"type":993,"tag":1042,"props":5373,"children":5374},{"style":1138},[5375],{"type":998,"value":5376},"\"Carol\"",{"type":993,"tag":1042,"props":5378,"children":5379},{"style":1057},[5380],{"type":998,"value":5381},"],\n",{"type":993,"tag":1042,"props":5383,"children":5384},{"class":1044,"line":45},[5385,5389,5393,5397,5402,5406,5411],{"type":993,"tag":1042,"props":5386,"children":5387},{"style":1057},[5388],{"type":998,"value":5353},{"type":993,"tag":1042,"props":5390,"children":5391},{"style":1138},[5392],{"type":998,"value":5367},{"type":993,"tag":1042,"props":5394,"children":5395},{"style":1057},[5396],{"type":998,"value":1082},{"type":993,"tag":1042,"props":5398,"children":5399},{"style":1138},[5400],{"type":998,"value":5401},"\"David\"",{"type":993,"tag":1042,"props":5403,"children":5404},{"style":1057},[5405],{"type":998,"value":1082},{"type":993,"tag":1042,"props":5407,"children":5408},{"style":1138},[5409],{"type":998,"value":5410},"\"Eve\"",{"type":993,"tag":1042,"props":5412,"children":5413},{"style":1057},[5414],{"type":998,"value":5381},{"type":993,"tag":1042,"props":5416,"children":5417},{"class":1044,"line":54},[5418,5422,5426,5430,5435,5439,5443],{"type":993,"tag":1042,"props":5419,"children":5420},{"style":1057},[5421],{"type":998,"value":5353},{"type":993,"tag":1042,"props":5423,"children":5424},{"style":1138},[5425],{"type":998,"value":5376},{"type":993,"tag":1042,"props":5427,"children":5428},{"style":1057},[5429],{"type":998,"value":1082},{"type":993,"tag":1042,"props":5431,"children":5432},{"style":1138},[5433],{"type":998,"value":5434},"\"Frank\"",{"type":993,"tag":1042,"props":5436,"children":5437},{"style":1057},[5438],{"type":998,"value":1082},{"type":993,"tag":1042,"props":5440,"children":5441},{"style":1138},[5442],{"type":998,"value":5358},{"type":993,"tag":1042,"props":5444,"children":5445},{"style":1057},[5446],{"type":998,"value":3850},{"type":993,"tag":1042,"props":5448,"children":5449},{"class":1044,"line":63},[5450],{"type":993,"tag":1042,"props":5451,"children":5452},{"style":1057},[5453],{"type":998,"value":3850},{"type":993,"tag":1042,"props":5455,"children":5456},{"class":1044,"line":72},[5457],{"type":993,"tag":1042,"props":5458,"children":5459},{"emptyLinePlaceholder":13},[5460],{"type":998,"value":1213},{"type":993,"tag":1042,"props":5462,"children":5463},{"class":1044,"line":81},[5464],{"type":993,"tag":1042,"props":5465,"children":5466},{"style":1048},[5467],{"type":998,"value":5468},"# Get all unique students\n",{"type":993,"tag":1042,"props":5470,"children":5471},{"class":1044,"line":91},[5472,5477,5481,5485],{"type":993,"tag":1042,"props":5473,"children":5474},{"style":1057},[5475],{"type":998,"value":5476},"all_students ",{"type":993,"tag":1042,"props":5478,"children":5479},{"style":1063},[5480],{"type":998,"value":1066},{"type":993,"tag":1042,"props":5482,"children":5483},{"style":1074},[5484],{"type":998,"value":2662},{"type":993,"tag":1042,"props":5486,"children":5487},{"style":1057},[5488],{"type":998,"value":5489},"()\n",{"type":993,"tag":1042,"props":5491,"children":5492},{"class":1044,"line":100},[5493,5497,5502,5506],{"type":993,"tag":1042,"props":5494,"children":5495},{"style":1063},[5496],{"type":998,"value":4014},{"type":993,"tag":1042,"props":5498,"children":5499},{"style":1057},[5500],{"type":998,"value":5501}," group ",{"type":993,"tag":1042,"props":5503,"children":5504},{"style":1063},[5505],{"type":998,"value":3721},{"type":993,"tag":1042,"props":5507,"children":5508},{"style":1057},[5509],{"type":998,"value":5510}," student_groups:\n",{"type":993,"tag":1042,"props":5512,"children":5513},{"class":1044,"line":109},[5514],{"type":993,"tag":1042,"props":5515,"children":5516},{"style":1057},[5517],{"type":998,"value":5518},"    all_students.update(group)\n",{"type":993,"tag":1042,"props":5520,"children":5521},{"class":1044,"line":118},[5522,5526,5530,5534,5539,5543,5548,5552,5556],{"type":993,"tag":1042,"props":5523,"children":5524},{"style":1074},[5525],{"type":998,"value":1221},{"type":993,"tag":1042,"props":5527,"children":5528},{"style":1057},[5529],{"type":998,"value":1226},{"type":993,"tag":1042,"props":5531,"children":5532},{"style":1063},[5533],{"type":998,"value":1231},{"type":993,"tag":1042,"props":5535,"children":5536},{"style":1138},[5537],{"type":998,"value":5538},"\"All students: ",{"type":993,"tag":1042,"props":5540,"children":5541},{"style":1074},[5542],{"type":998,"value":1241},{"type":993,"tag":1042,"props":5544,"children":5545},{"style":1057},[5546],{"type":998,"value":5547},"all_students",{"type":993,"tag":1042,"props":5549,"children":5550},{"style":1074},[5551],{"type":998,"value":1251},{"type":993,"tag":1042,"props":5553,"children":5554},{"style":1138},[5555],{"type":998,"value":1256},{"type":993,"tag":1042,"props":5557,"children":5558},{"style":1057},[5559],{"type":998,"value":1261},{"type":993,"tag":1042,"props":5561,"children":5562},{"class":1044,"line":127},[5563],{"type":993,"tag":1042,"props":5564,"children":5565},{"emptyLinePlaceholder":13},[5566],{"type":998,"value":1213},{"type":993,"tag":1042,"props":5568,"children":5569},{"class":1044,"line":136},[5570],{"type":993,"tag":1042,"props":5571,"children":5572},{"style":1048},[5573],{"type":998,"value":5574},"# Using comprehension (flattened)\n",{"type":993,"tag":1042,"props":5576,"children":5577},{"class":1044,"line":146},[5578,5583,5587,5592,5596,5600,5604,5609,5613,5618,5622],{"type":993,"tag":1042,"props":5579,"children":5580},{"style":1057},[5581],{"type":998,"value":5582},"students_flat ",{"type":993,"tag":1042,"props":5584,"children":5585},{"style":1063},[5586],{"type":998,"value":1066},{"type":993,"tag":1042,"props":5588,"children":5589},{"style":1057},[5590],{"type":998,"value":5591}," {student ",{"type":993,"tag":1042,"props":5593,"children":5594},{"style":1063},[5595],{"type":998,"value":4014},{"type":993,"tag":1042,"props":5597,"children":5598},{"style":1057},[5599],{"type":998,"value":5501},{"type":993,"tag":1042,"props":5601,"children":5602},{"style":1063},[5603],{"type":998,"value":3721},{"type":993,"tag":1042,"props":5605,"children":5606},{"style":1057},[5607],{"type":998,"value":5608}," student_groups ",{"type":993,"tag":1042,"props":5610,"children":5611},{"style":1063},[5612],{"type":998,"value":4014},{"type":993,"tag":1042,"props":5614,"children":5615},{"style":1057},[5616],{"type":998,"value":5617}," student ",{"type":993,"tag":1042,"props":5619,"children":5620},{"style":1063},[5621],{"type":998,"value":3721},{"type":993,"tag":1042,"props":5623,"children":5624},{"style":1057},[5625],{"type":998,"value":5626}," group}\n",{"type":993,"tag":1042,"props":5628,"children":5629},{"class":1044,"line":155},[5630,5634,5638,5642,5647,5651,5656,5660,5664],{"type":993,"tag":1042,"props":5631,"children":5632},{"style":1074},[5633],{"type":998,"value":1221},{"type":993,"tag":1042,"props":5635,"children":5636},{"style":1057},[5637],{"type":998,"value":1226},{"type":993,"tag":1042,"props":5639,"children":5640},{"style":1063},[5641],{"type":998,"value":1231},{"type":993,"tag":1042,"props":5643,"children":5644},{"style":1138},[5645],{"type":998,"value":5646},"\"Students (comprehension): ",{"type":993,"tag":1042,"props":5648,"children":5649},{"style":1074},[5650],{"type":998,"value":1241},{"type":993,"tag":1042,"props":5652,"children":5653},{"style":1057},[5654],{"type":998,"value":5655},"students_flat",{"type":993,"tag":1042,"props":5657,"children":5658},{"style":1074},[5659],{"type":998,"value":1251},{"type":993,"tag":1042,"props":5661,"children":5662},{"style":1138},[5663],{"type":998,"value":1256},{"type":993,"tag":1042,"props":5665,"children":5666},{"style":1057},[5667],{"type":998,"value":1261},{"type":993,"tag":1042,"props":5669,"children":5670},{"class":1044,"line":164},[5671],{"type":993,"tag":1042,"props":5672,"children":5673},{"emptyLinePlaceholder":13},[5674],{"type":998,"value":1213},{"type":993,"tag":1042,"props":5676,"children":5677},{"class":1044,"line":173},[5678],{"type":993,"tag":1042,"props":5679,"children":5680},{"style":1048},[5681],{"type":998,"value":5682},"# Extract email domains\n",{"type":993,"tag":1042,"props":5684,"children":5685},{"class":1044,"line":182},[5686,5691,5695],{"type":993,"tag":1042,"props":5687,"children":5688},{"style":1057},[5689],{"type":998,"value":5690},"emails ",{"type":993,"tag":1042,"props":5692,"children":5693},{"style":1063},[5694],{"type":998,"value":1066},{"type":993,"tag":1042,"props":5696,"children":5697},{"style":1057},[5698],{"type":998,"value":5345},{"type":993,"tag":1042,"props":5700,"children":5701},{"class":1044,"line":191},[5702,5707],{"type":993,"tag":1042,"props":5703,"children":5704},{"style":1138},[5705],{"type":998,"value":5706},"    \"alice@gmail.com\"",{"type":993,"tag":1042,"props":5708,"children":5709},{"style":1057},[5710],{"type":998,"value":5711},",\n",{"type":993,"tag":1042,"props":5713,"children":5714},{"class":1044,"line":201},[5715,5720],{"type":993,"tag":1042,"props":5716,"children":5717},{"style":1138},[5718],{"type":998,"value":5719},"    \"bob@yahoo.com\"",{"type":993,"tag":1042,"props":5721,"children":5722},{"style":1057},[5723],{"type":998,"value":5724},", \n",{"type":993,"tag":1042,"props":5726,"children":5727},{"class":1044,"line":210},[5728,5733],{"type":993,"tag":1042,"props":5729,"children":5730},{"style":1138},[5731],{"type":998,"value":5732},"    \"carol@gmail.com\"",{"type":993,"tag":1042,"props":5734,"children":5735},{"style":1057},[5736],{"type":998,"value":5711},{"type":993,"tag":1042,"props":5738,"children":5739},{"class":1044,"line":219},[5740],{"type":993,"tag":1042,"props":5741,"children":5742},{"style":1138},[5743],{"type":998,"value":5744},"    \"david@yahoo.com\"\n",{"type":993,"tag":1042,"props":5746,"children":5747},{"class":1044,"line":228},[5748],{"type":993,"tag":1042,"props":5749,"children":5750},{"style":1057},[5751],{"type":998,"value":3850},{"type":993,"tag":1042,"props":5753,"children":5754},{"class":1044,"line":238},[5755],{"type":993,"tag":1042,"props":5756,"children":5757},{"emptyLinePlaceholder":13},[5758],{"type":998,"value":1213},{"type":993,"tag":1042,"props":5760,"children":5761},{"class":1044,"line":247},[5762,5767,5771,5776,5781,5786,5790,5794,5798,5803,5807],{"type":993,"tag":1042,"props":5763,"children":5764},{"style":1057},[5765],{"type":998,"value":5766},"domains ",{"type":993,"tag":1042,"props":5768,"children":5769},{"style":1063},[5770],{"type":998,"value":1066},{"type":993,"tag":1042,"props":5772,"children":5773},{"style":1057},[5774],{"type":998,"value":5775}," {email.split(",{"type":993,"tag":1042,"props":5777,"children":5778},{"style":1138},[5779],{"type":998,"value":5780},"\"@\"",{"type":993,"tag":1042,"props":5782,"children":5783},{"style":1057},[5784],{"type":998,"value":5785},")[",{"type":993,"tag":1042,"props":5787,"children":5788},{"style":1074},[5789],{"type":998,"value":1077},{"type":993,"tag":1042,"props":5791,"children":5792},{"style":1057},[5793],{"type":998,"value":4745},{"type":993,"tag":1042,"props":5795,"children":5796},{"style":1063},[5797],{"type":998,"value":4014},{"type":993,"tag":1042,"props":5799,"children":5800},{"style":1057},[5801],{"type":998,"value":5802}," email ",{"type":993,"tag":1042,"props":5804,"children":5805},{"style":1063},[5806],{"type":998,"value":3721},{"type":993,"tag":1042,"props":5808,"children":5809},{"style":1057},[5810],{"type":998,"value":5811}," emails}\n",{"type":993,"tag":1042,"props":5813,"children":5814},{"class":1044,"line":256},[5815,5819,5823,5827,5832,5836,5841,5845,5849],{"type":993,"tag":1042,"props":5816,"children":5817},{"style":1074},[5818],{"type":998,"value":1221},{"type":993,"tag":1042,"props":5820,"children":5821},{"style":1057},[5822],{"type":998,"value":1226},{"type":993,"tag":1042,"props":5824,"children":5825},{"style":1063},[5826],{"type":998,"value":1231},{"type":993,"tag":1042,"props":5828,"children":5829},{"style":1138},[5830],{"type":998,"value":5831},"\"Email domains: ",{"type":993,"tag":1042,"props":5833,"children":5834},{"style":1074},[5835],{"type":998,"value":1241},{"type":993,"tag":1042,"props":5837,"children":5838},{"style":1057},[5839],{"type":998,"value":5840},"domains",{"type":993,"tag":1042,"props":5842,"children":5843},{"style":1074},[5844],{"type":998,"value":1251},{"type":993,"tag":1042,"props":5846,"children":5847},{"style":1138},[5848],{"type":998,"value":1256},{"type":993,"tag":1042,"props":5850,"children":5851},{"style":1057},[5852],{"type":998,"value":1261},{"type":993,"tag":1345,"props":5854,"children":5856},{"id":5855},"set-creation-best-practices",[5857],{"type":998,"value":5858},"💡 Set Creation Best Practices",{"type":993,"tag":1001,"props":5860,"children":5861},{},[5862],{"type":998,"value":5863},"Following best practices ensures efficient and maintainable set creation.",{"type":993,"tag":1357,"props":5865,"children":5868},{"emoji":5866,"title":5867,"type":2504},"✅","Best Practices",[5869,5877,5908,5916,5939,5947],{"type":993,"tag":1001,"props":5870,"children":5871},{},[5872],{"type":993,"tag":1367,"props":5873,"children":5874},{},[5875],{"type":998,"value":5876},"Choose Right Method:",{"type":993,"tag":1373,"props":5878,"children":5879},{},[5880,5892,5903],{"type":993,"tag":1377,"props":5881,"children":5882},{},[5883,5885,5890],{"type":998,"value":5884},"Use ",{"type":993,"tag":1007,"props":5886,"children":5888},{"className":5887},[],[5889],{"type":998,"value":1012},{"type":998,"value":5891}," for small, known sets",{"type":993,"tag":1377,"props":5893,"children":5894},{},[5895,5896,5901],{"type":998,"value":5884},{"type":993,"tag":1007,"props":5897,"children":5899},{"className":5898},[],[5900],{"type":998,"value":1020},{"type":998,"value":5902}," for conversions and empty sets",{"type":993,"tag":1377,"props":5904,"children":5905},{},[5906],{"type":998,"value":5907},"Use comprehensions for transformations",{"type":993,"tag":1001,"props":5909,"children":5910},{},[5911],{"type":993,"tag":1367,"props":5912,"children":5913},{},[5914],{"type":998,"value":5915},"Performance Tips:",{"type":993,"tag":1373,"props":5917,"children":5918},{},[5919,5924,5934],{"type":993,"tag":1377,"props":5920,"children":5921},{},[5922],{"type":998,"value":5923},"Comprehensions are often faster than loops",{"type":993,"tag":1377,"props":5925,"children":5926},{},[5927,5932],{"type":993,"tag":1007,"props":5928,"children":5930},{"className":5929},[],[5931],{"type":998,"value":1020},{"type":998,"value":5933}," is efficient for duplicate removal",{"type":993,"tag":1377,"props":5935,"children":5936},{},[5937],{"type":998,"value":5938},"Consider memory usage with large datasets",{"type":993,"tag":1001,"props":5940,"children":5941},{},[5942],{"type":993,"tag":1367,"props":5943,"children":5944},{},[5945],{"type":998,"value":5946},"Code Clarity:",{"type":993,"tag":1373,"props":5948,"children":5949},{},[5950,5955,5960],{"type":993,"tag":1377,"props":5951,"children":5952},{},[5953],{"type":998,"value":5954},"Use descriptive variable names",{"type":993,"tag":1377,"props":5956,"children":5957},{},[5958],{"type":998,"value":5959},"Comment complex comprehensions",{"type":993,"tag":1377,"props":5961,"children":5962},{},[5963],{"type":998,"value":5964},"Break down complex operations",{"type":993,"tag":1468,"props":5966,"children":5968},{"id":5967},"efficient-set-creation",[5969],{"type":998,"value":5970},"Efficient Set Creation",{"type":993,"tag":1001,"props":5972,"children":5973},{},[5974],{"type":998,"value":5975},"Choosing the most efficient method for different scenarios.",{"type":993,"tag":1029,"props":5977,"children":5978},{},[5979],{"type":993,"tag":1033,"props":5980,"children":5982},{"className":1035,"code":5981,"language":6,"meta":8,"style":8},"# Efficient methods for different cases\n\n# Small known sets - use literal syntax\nprimary_colors = {\"red\", \"green\", \"blue\"}\n\n# Remove duplicates - use set() function\ndata_with_dupes = [1, 2, 2, 3, 3, 3, 4, 4]\nunique_data = set(data_with_dupes)\n\n# Transform data - use comprehension\nnumbers = range(10)\neven_squares = {x**2 for x in numbers if x % 2 == 0}\n\nprint(f\"Primary colors: {primary_colors}\")\nprint(f\"Unique data: {unique_data}\")\nprint(f\"Even squares: {even_squares}\")\n",[5983],{"type":993,"tag":1007,"props":5984,"children":5985},{"__ignoreMap":8},[5986,5994,6001,6009,6049,6056,6064,6144,6165,6172,6180,6207,6275,6282,6323,6364],{"type":993,"tag":1042,"props":5987,"children":5988},{"class":1044,"line":12},[5989],{"type":993,"tag":1042,"props":5990,"children":5991},{"style":1048},[5992],{"type":998,"value":5993},"# Efficient methods for different cases\n",{"type":993,"tag":1042,"props":5995,"children":5996},{"class":1044,"line":27},[5997],{"type":993,"tag":1042,"props":5998,"children":5999},{"emptyLinePlaceholder":13},[6000],{"type":998,"value":1213},{"type":993,"tag":1042,"props":6002,"children":6003},{"class":1044,"line":36},[6004],{"type":993,"tag":1042,"props":6005,"children":6006},{"style":1048},[6007],{"type":998,"value":6008},"# Small known sets - use literal syntax\n",{"type":993,"tag":1042,"props":6010,"children":6011},{"class":1044,"line":45},[6012,6017,6021,6025,6029,6033,6037,6041,6045],{"type":993,"tag":1042,"props":6013,"children":6014},{"style":1057},[6015],{"type":998,"value":6016},"primary_colors ",{"type":993,"tag":1042,"props":6018,"children":6019},{"style":1063},[6020],{"type":998,"value":1066},{"type":993,"tag":1042,"props":6022,"children":6023},{"style":1057},[6024],{"type":998,"value":1071},{"type":993,"tag":1042,"props":6026,"children":6027},{"style":1138},[6028],{"type":998,"value":1141},{"type":993,"tag":1042,"props":6030,"children":6031},{"style":1057},[6032],{"type":998,"value":1082},{"type":993,"tag":1042,"props":6034,"children":6035},{"style":1138},[6036],{"type":998,"value":1150},{"type":993,"tag":1042,"props":6038,"children":6039},{"style":1057},[6040],{"type":998,"value":1082},{"type":993,"tag":1042,"props":6042,"children":6043},{"style":1138},[6044],{"type":998,"value":1159},{"type":993,"tag":1042,"props":6046,"children":6047},{"style":1057},[6048],{"type":998,"value":1119},{"type":993,"tag":1042,"props":6050,"children":6051},{"class":1044,"line":54},[6052],{"type":993,"tag":1042,"props":6053,"children":6054},{"emptyLinePlaceholder":13},[6055],{"type":998,"value":1213},{"type":993,"tag":1042,"props":6057,"children":6058},{"class":1044,"line":63},[6059],{"type":993,"tag":1042,"props":6060,"children":6061},{"style":1048},[6062],{"type":998,"value":6063},"# Remove duplicates - use set() function\n",{"type":993,"tag":1042,"props":6065,"children":6066},{"class":1044,"line":72},[6067,6072,6076,6080,6084,6088,6092,6096,6100,6104,6108,6112,6116,6120,6124,6128,6132,6136,6140],{"type":993,"tag":1042,"props":6068,"children":6069},{"style":1057},[6070],{"type":998,"value":6071},"data_with_dupes ",{"type":993,"tag":1042,"props":6073,"children":6074},{"style":1063},[6075],{"type":998,"value":1066},{"type":993,"tag":1042,"props":6077,"children":6078},{"style":1057},[6079],{"type":998,"value":2914},{"type":993,"tag":1042,"props":6081,"children":6082},{"style":1074},[6083],{"type":998,"value":1077},{"type":993,"tag":1042,"props":6085,"children":6086},{"style":1057},[6087],{"type":998,"value":1082},{"type":993,"tag":1042,"props":6089,"children":6090},{"style":1074},[6091],{"type":998,"value":1087},{"type":993,"tag":1042,"props":6093,"children":6094},{"style":1057},[6095],{"type":998,"value":1082},{"type":993,"tag":1042,"props":6097,"children":6098},{"style":1074},[6099],{"type":998,"value":1087},{"type":993,"tag":1042,"props":6101,"children":6102},{"style":1057},[6103],{"type":998,"value":1082},{"type":993,"tag":1042,"props":6105,"children":6106},{"style":1074},[6107],{"type":998,"value":1096},{"type":993,"tag":1042,"props":6109,"children":6110},{"style":1057},[6111],{"type":998,"value":1082},{"type":993,"tag":1042,"props":6113,"children":6114},{"style":1074},[6115],{"type":998,"value":1096},{"type":993,"tag":1042,"props":6117,"children":6118},{"style":1057},[6119],{"type":998,"value":1082},{"type":993,"tag":1042,"props":6121,"children":6122},{"style":1074},[6123],{"type":998,"value":1096},{"type":993,"tag":1042,"props":6125,"children":6126},{"style":1057},[6127],{"type":998,"value":1082},{"type":993,"tag":1042,"props":6129,"children":6130},{"style":1074},[6131],{"type":998,"value":1105},{"type":993,"tag":1042,"props":6133,"children":6134},{"style":1057},[6135],{"type":998,"value":1082},{"type":993,"tag":1042,"props":6137,"children":6138},{"style":1074},[6139],{"type":998,"value":1105},{"type":993,"tag":1042,"props":6141,"children":6142},{"style":1057},[6143],{"type":998,"value":3850},{"type":993,"tag":1042,"props":6145,"children":6146},{"class":1044,"line":81},[6147,6152,6156,6160],{"type":993,"tag":1042,"props":6148,"children":6149},{"style":1057},[6150],{"type":998,"value":6151},"unique_data ",{"type":993,"tag":1042,"props":6153,"children":6154},{"style":1063},[6155],{"type":998,"value":1066},{"type":993,"tag":1042,"props":6157,"children":6158},{"style":1074},[6159],{"type":998,"value":2662},{"type":993,"tag":1042,"props":6161,"children":6162},{"style":1057},[6163],{"type":998,"value":6164},"(data_with_dupes)\n",{"type":993,"tag":1042,"props":6166,"children":6167},{"class":1044,"line":91},[6168],{"type":993,"tag":1042,"props":6169,"children":6170},{"emptyLinePlaceholder":13},[6171],{"type":998,"value":1213},{"type":993,"tag":1042,"props":6173,"children":6174},{"class":1044,"line":100},[6175],{"type":993,"tag":1042,"props":6176,"children":6177},{"style":1048},[6178],{"type":998,"value":6179},"# Transform data - use comprehension\n",{"type":993,"tag":1042,"props":6181,"children":6182},{"class":1044,"line":109},[6183,6187,6191,6195,6199,6203],{"type":993,"tag":1042,"props":6184,"children":6185},{"style":1057},[6186],{"type":998,"value":1060},{"type":993,"tag":1042,"props":6188,"children":6189},{"style":1063},[6190],{"type":998,"value":1066},{"type":993,"tag":1042,"props":6192,"children":6193},{"style":1074},[6194],{"type":998,"value":3726},{"type":993,"tag":1042,"props":6196,"children":6197},{"style":1057},[6198],{"type":998,"value":1226},{"type":993,"tag":1042,"props":6200,"children":6201},{"style":1074},[6202],{"type":998,"value":1559},{"type":993,"tag":1042,"props":6204,"children":6205},{"style":1057},[6206],{"type":998,"value":1261},{"type":993,"tag":1042,"props":6208,"children":6209},{"class":1044,"line":118},[6210,6215,6219,6223,6227,6231,6235,6239,6243,6247,6251,6255,6259,6263,6267,6271],{"type":993,"tag":1042,"props":6211,"children":6212},{"style":1057},[6213],{"type":998,"value":6214},"even_squares ",{"type":993,"tag":1042,"props":6216,"children":6217},{"style":1063},[6218],{"type":998,"value":1066},{"type":993,"tag":1042,"props":6220,"children":6221},{"style":1057},[6222],{"type":998,"value":3697},{"type":993,"tag":1042,"props":6224,"children":6225},{"style":1063},[6226],{"type":998,"value":3702},{"type":993,"tag":1042,"props":6228,"children":6229},{"style":1074},[6230],{"type":998,"value":1087},{"type":993,"tag":1042,"props":6232,"children":6233},{"style":1063},[6234],{"type":998,"value":3711},{"type":993,"tag":1042,"props":6236,"children":6237},{"style":1057},[6238],{"type":998,"value":3716},{"type":993,"tag":1042,"props":6240,"children":6241},{"style":1063},[6242],{"type":998,"value":3721},{"type":993,"tag":1042,"props":6244,"children":6245},{"style":1057},[6246],{"type":998,"value":4182},{"type":993,"tag":1042,"props":6248,"children":6249},{"style":1063},[6250],{"type":998,"value":4187},{"type":993,"tag":1042,"props":6252,"children":6253},{"style":1057},[6254],{"type":998,"value":3716},{"type":993,"tag":1042,"props":6256,"children":6257},{"style":1063},[6258],{"type":998,"value":4196},{"type":993,"tag":1042,"props":6260,"children":6261},{"style":1074},[6262],{"type":998,"value":3877},{"type":993,"tag":1042,"props":6264,"children":6265},{"style":1063},[6266],{"type":998,"value":4205},{"type":993,"tag":1042,"props":6268,"children":6269},{"style":1074},[6270],{"type":998,"value":4210},{"type":993,"tag":1042,"props":6272,"children":6273},{"style":1057},[6274],{"type":998,"value":1119},{"type":993,"tag":1042,"props":6276,"children":6277},{"class":1044,"line":127},[6278],{"type":993,"tag":1042,"props":6279,"children":6280},{"emptyLinePlaceholder":13},[6281],{"type":998,"value":1213},{"type":993,"tag":1042,"props":6283,"children":6284},{"class":1044,"line":136},[6285,6289,6293,6297,6302,6306,6311,6315,6319],{"type":993,"tag":1042,"props":6286,"children":6287},{"style":1074},[6288],{"type":998,"value":1221},{"type":993,"tag":1042,"props":6290,"children":6291},{"style":1057},[6292],{"type":998,"value":1226},{"type":993,"tag":1042,"props":6294,"children":6295},{"style":1063},[6296],{"type":998,"value":1231},{"type":993,"tag":1042,"props":6298,"children":6299},{"style":1138},[6300],{"type":998,"value":6301},"\"Primary colors: ",{"type":993,"tag":1042,"props":6303,"children":6304},{"style":1074},[6305],{"type":998,"value":1241},{"type":993,"tag":1042,"props":6307,"children":6308},{"style":1057},[6309],{"type":998,"value":6310},"primary_colors",{"type":993,"tag":1042,"props":6312,"children":6313},{"style":1074},[6314],{"type":998,"value":1251},{"type":993,"tag":1042,"props":6316,"children":6317},{"style":1138},[6318],{"type":998,"value":1256},{"type":993,"tag":1042,"props":6320,"children":6321},{"style":1057},[6322],{"type":998,"value":1261},{"type":993,"tag":1042,"props":6324,"children":6325},{"class":1044,"line":146},[6326,6330,6334,6338,6343,6347,6352,6356,6360],{"type":993,"tag":1042,"props":6327,"children":6328},{"style":1074},[6329],{"type":998,"value":1221},{"type":993,"tag":1042,"props":6331,"children":6332},{"style":1057},[6333],{"type":998,"value":1226},{"type":993,"tag":1042,"props":6335,"children":6336},{"style":1063},[6337],{"type":998,"value":1231},{"type":993,"tag":1042,"props":6339,"children":6340},{"style":1138},[6341],{"type":998,"value":6342},"\"Unique data: ",{"type":993,"tag":1042,"props":6344,"children":6345},{"style":1074},[6346],{"type":998,"value":1241},{"type":993,"tag":1042,"props":6348,"children":6349},{"style":1057},[6350],{"type":998,"value":6351},"unique_data",{"type":993,"tag":1042,"props":6353,"children":6354},{"style":1074},[6355],{"type":998,"value":1251},{"type":993,"tag":1042,"props":6357,"children":6358},{"style":1138},[6359],{"type":998,"value":1256},{"type":993,"tag":1042,"props":6361,"children":6362},{"style":1057},[6363],{"type":998,"value":1261},{"type":993,"tag":1042,"props":6365,"children":6366},{"class":1044,"line":155},[6367,6371,6375,6379,6384,6388,6393,6397,6401],{"type":993,"tag":1042,"props":6368,"children":6369},{"style":1074},[6370],{"type":998,"value":1221},{"type":993,"tag":1042,"props":6372,"children":6373},{"style":1057},[6374],{"type":998,"value":1226},{"type":993,"tag":1042,"props":6376,"children":6377},{"style":1063},[6378],{"type":998,"value":1231},{"type":993,"tag":1042,"props":6380,"children":6381},{"style":1138},[6382],{"type":998,"value":6383},"\"Even squares: ",{"type":993,"tag":1042,"props":6385,"children":6386},{"style":1074},[6387],{"type":998,"value":1241},{"type":993,"tag":1042,"props":6389,"children":6390},{"style":1057},[6391],{"type":998,"value":6392},"even_squares",{"type":993,"tag":1042,"props":6394,"children":6395},{"style":1074},[6396],{"type":998,"value":1251},{"type":993,"tag":1042,"props":6398,"children":6399},{"style":1138},[6400],{"type":998,"value":1256},{"type":993,"tag":1042,"props":6402,"children":6403},{"style":1057},[6404],{"type":998,"value":1261},{"type":993,"tag":1468,"props":6406,"children":6408},{"id":6407},"error-free-set-creation",[6409],{"type":998,"value":6410},"Error-Free Set Creation",{"type":993,"tag":1001,"props":6412,"children":6413},{},[6414],{"type":998,"value":6415},"Avoiding common mistakes when creating sets.",{"type":993,"tag":1029,"props":6417,"children":6418},{},[6419],{"type":993,"tag":1033,"props":6420,"children":6422},{"className":1035,"code":6421,"language":6,"meta":8,"style":8},"# Common mistakes and solutions\n\n# Mistake: Using {} for empty set\n# empty_set = {}  # This creates a dict!\ncorrect_empty_set = set()  # Correct\n\n# Mistake: Trying to add mutable objects\n# invalid_set = {[1, 2], [3, 4]}  # Error!\nvalid_set = {(1, 2), (3, 4)}  # Use tuples instead\n\n# Mistake: Expecting order preservation\nunordered = {3, 1, 4, 1, 5}  # Order not guaranteed\n\nprint(f\"Empty set: {correct_empty_set}\")\nprint(f\"Valid set: {valid_set}\")\nprint(f\"Unordered set: {unordered}\")\n",[6423],{"type":993,"tag":1007,"props":6424,"children":6425},{"__ignoreMap":8},[6426,6434,6441,6449,6457,6482,6489,6497,6505,6559,6566,6574,6636,6643,6683,6724],{"type":993,"tag":1042,"props":6427,"children":6428},{"class":1044,"line":12},[6429],{"type":993,"tag":1042,"props":6430,"children":6431},{"style":1048},[6432],{"type":998,"value":6433},"# Common mistakes and solutions\n",{"type":993,"tag":1042,"props":6435,"children":6436},{"class":1044,"line":27},[6437],{"type":993,"tag":1042,"props":6438,"children":6439},{"emptyLinePlaceholder":13},[6440],{"type":998,"value":1213},{"type":993,"tag":1042,"props":6442,"children":6443},{"class":1044,"line":36},[6444],{"type":993,"tag":1042,"props":6445,"children":6446},{"style":1048},[6447],{"type":998,"value":6448},"# Mistake: Using {} for empty set\n",{"type":993,"tag":1042,"props":6450,"children":6451},{"class":1044,"line":45},[6452],{"type":993,"tag":1042,"props":6453,"children":6454},{"style":1048},[6455],{"type":998,"value":6456},"# empty_set = {}  # This creates a dict!\n",{"type":993,"tag":1042,"props":6458,"children":6459},{"class":1044,"line":54},[6460,6465,6469,6473,6477],{"type":993,"tag":1042,"props":6461,"children":6462},{"style":1057},[6463],{"type":998,"value":6464},"correct_empty_set ",{"type":993,"tag":1042,"props":6466,"children":6467},{"style":1063},[6468],{"type":998,"value":1066},{"type":993,"tag":1042,"props":6470,"children":6471},{"style":1074},[6472],{"type":998,"value":2662},{"type":993,"tag":1042,"props":6474,"children":6475},{"style":1057},[6476],{"type":998,"value":2667},{"type":993,"tag":1042,"props":6478,"children":6479},{"style":1048},[6480],{"type":998,"value":6481},"# Correct\n",{"type":993,"tag":1042,"props":6483,"children":6484},{"class":1044,"line":63},[6485],{"type":993,"tag":1042,"props":6486,"children":6487},{"emptyLinePlaceholder":13},[6488],{"type":998,"value":1213},{"type":993,"tag":1042,"props":6490,"children":6491},{"class":1044,"line":72},[6492],{"type":993,"tag":1042,"props":6493,"children":6494},{"style":1048},[6495],{"type":998,"value":6496},"# Mistake: Trying to add mutable objects\n",{"type":993,"tag":1042,"props":6498,"children":6499},{"class":1044,"line":81},[6500],{"type":993,"tag":1042,"props":6501,"children":6502},{"style":1048},[6503],{"type":998,"value":6504},"# invalid_set = {[1, 2], [3, 4]}  # Error!\n",{"type":993,"tag":1042,"props":6506,"children":6507},{"class":1044,"line":91},[6508,6513,6517,6521,6525,6529,6533,6537,6541,6545,6549,6554],{"type":993,"tag":1042,"props":6509,"children":6510},{"style":1057},[6511],{"type":998,"value":6512},"valid_set ",{"type":993,"tag":1042,"props":6514,"children":6515},{"style":1063},[6516],{"type":998,"value":1066},{"type":993,"tag":1042,"props":6518,"children":6519},{"style":1057},[6520],{"type":998,"value":2239},{"type":993,"tag":1042,"props":6522,"children":6523},{"style":1074},[6524],{"type":998,"value":1077},{"type":993,"tag":1042,"props":6526,"children":6527},{"style":1057},[6528],{"type":998,"value":1082},{"type":993,"tag":1042,"props":6530,"children":6531},{"style":1074},[6532],{"type":998,"value":1087},{"type":993,"tag":1042,"props":6534,"children":6535},{"style":1057},[6536],{"type":998,"value":2257},{"type":993,"tag":1042,"props":6538,"children":6539},{"style":1074},[6540],{"type":998,"value":1096},{"type":993,"tag":1042,"props":6542,"children":6543},{"style":1057},[6544],{"type":998,"value":1082},{"type":993,"tag":1042,"props":6546,"children":6547},{"style":1074},[6548],{"type":998,"value":1105},{"type":993,"tag":1042,"props":6550,"children":6551},{"style":1057},[6552],{"type":998,"value":6553},")}  ",{"type":993,"tag":1042,"props":6555,"children":6556},{"style":1048},[6557],{"type":998,"value":6558},"# Use tuples instead\n",{"type":993,"tag":1042,"props":6560,"children":6561},{"class":1044,"line":100},[6562],{"type":993,"tag":1042,"props":6563,"children":6564},{"emptyLinePlaceholder":13},[6565],{"type":998,"value":1213},{"type":993,"tag":1042,"props":6567,"children":6568},{"class":1044,"line":109},[6569],{"type":993,"tag":1042,"props":6570,"children":6571},{"style":1048},[6572],{"type":998,"value":6573},"# Mistake: Expecting order preservation\n",{"type":993,"tag":1042,"props":6575,"children":6576},{"class":1044,"line":118},[6577,6582,6586,6590,6594,6598,6602,6606,6610,6614,6618,6622,6626,6631],{"type":993,"tag":1042,"props":6578,"children":6579},{"style":1057},[6580],{"type":998,"value":6581},"unordered ",{"type":993,"tag":1042,"props":6583,"children":6584},{"style":1063},[6585],{"type":998,"value":1066},{"type":993,"tag":1042,"props":6587,"children":6588},{"style":1057},[6589],{"type":998,"value":1071},{"type":993,"tag":1042,"props":6591,"children":6592},{"style":1074},[6593],{"type":998,"value":1096},{"type":993,"tag":1042,"props":6595,"children":6596},{"style":1057},[6597],{"type":998,"value":1082},{"type":993,"tag":1042,"props":6599,"children":6600},{"style":1074},[6601],{"type":998,"value":1077},{"type":993,"tag":1042,"props":6603,"children":6604},{"style":1057},[6605],{"type":998,"value":1082},{"type":993,"tag":1042,"props":6607,"children":6608},{"style":1074},[6609],{"type":998,"value":1105},{"type":993,"tag":1042,"props":6611,"children":6612},{"style":1057},[6613],{"type":998,"value":1082},{"type":993,"tag":1042,"props":6615,"children":6616},{"style":1074},[6617],{"type":998,"value":1077},{"type":993,"tag":1042,"props":6619,"children":6620},{"style":1057},[6621],{"type":998,"value":1082},{"type":993,"tag":1042,"props":6623,"children":6624},{"style":1074},[6625],{"type":998,"value":1114},{"type":993,"tag":1042,"props":6627,"children":6628},{"style":1057},[6629],{"type":998,"value":6630},"}  ",{"type":993,"tag":1042,"props":6632,"children":6633},{"style":1048},[6634],{"type":998,"value":6635},"# Order not guaranteed\n",{"type":993,"tag":1042,"props":6637,"children":6638},{"class":1044,"line":127},[6639],{"type":993,"tag":1042,"props":6640,"children":6641},{"emptyLinePlaceholder":13},[6642],{"type":998,"value":1213},{"type":993,"tag":1042,"props":6644,"children":6645},{"class":1044,"line":136},[6646,6650,6654,6658,6662,6666,6671,6675,6679],{"type":993,"tag":1042,"props":6647,"children":6648},{"style":1074},[6649],{"type":998,"value":1221},{"type":993,"tag":1042,"props":6651,"children":6652},{"style":1057},[6653],{"type":998,"value":1226},{"type":993,"tag":1042,"props":6655,"children":6656},{"style":1063},[6657],{"type":998,"value":1231},{"type":993,"tag":1042,"props":6659,"children":6660},{"style":1138},[6661],{"type":998,"value":2692},{"type":993,"tag":1042,"props":6663,"children":6664},{"style":1074},[6665],{"type":998,"value":1241},{"type":993,"tag":1042,"props":6667,"children":6668},{"style":1057},[6669],{"type":998,"value":6670},"correct_empty_set",{"type":993,"tag":1042,"props":6672,"children":6673},{"style":1074},[6674],{"type":998,"value":1251},{"type":993,"tag":1042,"props":6676,"children":6677},{"style":1138},[6678],{"type":998,"value":1256},{"type":993,"tag":1042,"props":6680,"children":6681},{"style":1057},[6682],{"type":998,"value":1261},{"type":993,"tag":1042,"props":6684,"children":6685},{"class":1044,"line":146},[6686,6690,6694,6698,6703,6707,6712,6716,6720],{"type":993,"tag":1042,"props":6687,"children":6688},{"style":1074},[6689],{"type":998,"value":1221},{"type":993,"tag":1042,"props":6691,"children":6692},{"style":1057},[6693],{"type":998,"value":1226},{"type":993,"tag":1042,"props":6695,"children":6696},{"style":1063},[6697],{"type":998,"value":1231},{"type":993,"tag":1042,"props":6699,"children":6700},{"style":1138},[6701],{"type":998,"value":6702},"\"Valid set: ",{"type":993,"tag":1042,"props":6704,"children":6705},{"style":1074},[6706],{"type":998,"value":1241},{"type":993,"tag":1042,"props":6708,"children":6709},{"style":1057},[6710],{"type":998,"value":6711},"valid_set",{"type":993,"tag":1042,"props":6713,"children":6714},{"style":1074},[6715],{"type":998,"value":1251},{"type":993,"tag":1042,"props":6717,"children":6718},{"style":1138},[6719],{"type":998,"value":1256},{"type":993,"tag":1042,"props":6721,"children":6722},{"style":1057},[6723],{"type":998,"value":1261},{"type":993,"tag":1042,"props":6725,"children":6726},{"class":1044,"line":155},[6727,6731,6735,6739,6744,6748,6753,6757,6761],{"type":993,"tag":1042,"props":6728,"children":6729},{"style":1074},[6730],{"type":998,"value":1221},{"type":993,"tag":1042,"props":6732,"children":6733},{"style":1057},[6734],{"type":998,"value":1226},{"type":993,"tag":1042,"props":6736,"children":6737},{"style":1063},[6738],{"type":998,"value":1231},{"type":993,"tag":1042,"props":6740,"children":6741},{"style":1138},[6742],{"type":998,"value":6743},"\"Unordered set: ",{"type":993,"tag":1042,"props":6745,"children":6746},{"style":1074},[6747],{"type":998,"value":1241},{"type":993,"tag":1042,"props":6749,"children":6750},{"style":1057},[6751],{"type":998,"value":6752},"unordered",{"type":993,"tag":1042,"props":6754,"children":6755},{"style":1074},[6756],{"type":998,"value":1251},{"type":993,"tag":1042,"props":6758,"children":6759},{"style":1138},[6760],{"type":998,"value":1256},{"type":993,"tag":1042,"props":6762,"children":6763},{"style":1057},[6764],{"type":998,"value":1261},{"type":993,"tag":1345,"props":6766,"children":6768},{"id":6767},"set-creation-reference",[6769],{"type":998,"value":6770},"📚 Set Creation Reference",{"type":993,"tag":1001,"props":6772,"children":6773},{},[6774],{"type":998,"value":6775},"Common set creation patterns and their use cases:",{"type":993,"tag":6777,"props":6778,"children":6779},"table",{},[6780,6809],{"type":993,"tag":6781,"props":6782,"children":6783},"thead",{},[6784],{"type":993,"tag":6785,"props":6786,"children":6787},"tr",{},[6788,6794,6799,6804],{"type":993,"tag":6789,"props":6790,"children":6791},"th",{},[6792],{"type":998,"value":6793},"Method",{"type":993,"tag":6789,"props":6795,"children":6796},{},[6797],{"type":998,"value":6798},"Syntax",{"type":993,"tag":6789,"props":6800,"children":6801},{},[6802],{"type":998,"value":6803},"Use Case",{"type":993,"tag":6789,"props":6805,"children":6806},{},[6807],{"type":998,"value":6808},"Example",{"type":993,"tag":6810,"props":6811,"children":6812},"tbody",{},[6813,6847,6880,6914,6947,6980],{"type":993,"tag":6785,"props":6814,"children":6815},{},[6816,6825,6833,6838],{"type":993,"tag":6817,"props":6818,"children":6819},"td",{},[6820],{"type":993,"tag":1367,"props":6821,"children":6822},{},[6823],{"type":998,"value":6824},"Literal",{"type":993,"tag":6817,"props":6826,"children":6827},{},[6828],{"type":993,"tag":1007,"props":6829,"children":6831},{"className":6830},[],[6832],{"type":998,"value":1387},{"type":993,"tag":6817,"props":6834,"children":6835},{},[6836],{"type":998,"value":6837},"Small known sets",{"type":993,"tag":6817,"props":6839,"children":6840},{},[6841],{"type":993,"tag":1007,"props":6842,"children":6844},{"className":6843},[],[6845],{"type":998,"value":6846},"colors = {\"red\", \"green\", \"blue\"}",{"type":993,"tag":6785,"props":6848,"children":6849},{},[6850,6858,6866,6871],{"type":993,"tag":6817,"props":6851,"children":6852},{},[6853],{"type":993,"tag":1367,"props":6854,"children":6855},{},[6856],{"type":998,"value":6857},"Empty",{"type":993,"tag":6817,"props":6859,"children":6860},{},[6861],{"type":993,"tag":1007,"props":6862,"children":6864},{"className":6863},[],[6865],{"type":998,"value":1020},{"type":993,"tag":6817,"props":6867,"children":6868},{},[6869],{"type":998,"value":6870},"Initialize empty",{"type":993,"tag":6817,"props":6872,"children":6873},{},[6874],{"type":993,"tag":1007,"props":6875,"children":6877},{"className":6876},[],[6878],{"type":998,"value":6879},"unique_items = set()",{"type":993,"tag":6785,"props":6881,"children":6882},{},[6883,6891,6900,6905],{"type":993,"tag":6817,"props":6884,"children":6885},{},[6886],{"type":993,"tag":1367,"props":6887,"children":6888},{},[6889],{"type":998,"value":6890},"From List",{"type":993,"tag":6817,"props":6892,"children":6893},{},[6894],{"type":993,"tag":1007,"props":6895,"children":6897},{"className":6896},[],[6898],{"type":998,"value":6899},"set(list)",{"type":993,"tag":6817,"props":6901,"children":6902},{},[6903],{"type":998,"value":6904},"Remove duplicates",{"type":993,"tag":6817,"props":6906,"children":6907},{},[6908],{"type":993,"tag":1007,"props":6909,"children":6911},{"className":6910},[],[6912],{"type":998,"value":6913},"set([1, 2, 2, 3])",{"type":993,"tag":6785,"props":6915,"children":6916},{},[6917,6925,6934,6939],{"type":993,"tag":6817,"props":6918,"children":6919},{},[6920],{"type":993,"tag":1367,"props":6921,"children":6922},{},[6923],{"type":998,"value":6924},"From String",{"type":993,"tag":6817,"props":6926,"children":6927},{},[6928],{"type":993,"tag":1007,"props":6929,"children":6931},{"className":6930},[],[6932],{"type":998,"value":6933},"set(string)",{"type":993,"tag":6817,"props":6935,"children":6936},{},[6937],{"type":998,"value":6938},"Unique characters",{"type":993,"tag":6817,"props":6940,"children":6941},{},[6942],{"type":993,"tag":1007,"props":6943,"children":6945},{"className":6944},[],[6946],{"type":998,"value":2584},{"type":993,"tag":6785,"props":6948,"children":6949},{},[6950,6958,6967,6972],{"type":993,"tag":6817,"props":6951,"children":6952},{},[6953],{"type":993,"tag":1367,"props":6954,"children":6955},{},[6956],{"type":998,"value":6957},"Comprehension",{"type":993,"tag":6817,"props":6959,"children":6960},{},[6961],{"type":993,"tag":1007,"props":6962,"children":6964},{"className":6963},[],[6965],{"type":998,"value":6966},"{expr for x in iter}",{"type":993,"tag":6817,"props":6968,"children":6969},{},[6970],{"type":998,"value":6971},"Transform data",{"type":993,"tag":6817,"props":6973,"children":6974},{},[6975],{"type":993,"tag":1007,"props":6976,"children":6978},{"className":6977},[],[6979],{"type":998,"value":1456},{"type":993,"tag":6785,"props":6981,"children":6982},{},[6983,6991,7000,7005],{"type":993,"tag":6817,"props":6984,"children":6985},{},[6986],{"type":993,"tag":1367,"props":6987,"children":6988},{},[6989],{"type":998,"value":6990},"Conditional",{"type":993,"tag":6817,"props":6992,"children":6993},{},[6994],{"type":993,"tag":1007,"props":6995,"children":6997},{"className":6996},[],[6998],{"type":998,"value":6999},"{expr for x in iter if cond}",{"type":993,"tag":6817,"props":7001,"children":7002},{},[7003],{"type":998,"value":7004},"Filter + transform",{"type":993,"tag":6817,"props":7006,"children":7007},{},[7008],{"type":993,"tag":1007,"props":7009,"children":7011},{"className":7010},[],[7012],{"type":998,"value":7013},"{x for x in range(10) if x % 2 == 0}",{"type":993,"tag":1001,"props":7015,"children":7016},{},[7017],{"type":998,"value":7018},"Choose the method that best fits your data source and requirements.",{"type":993,"tag":1001,"props":7020,"children":7021},{},[7022,7024,7030,7032,7037],{"type":998,"value":7023},"Learn more about ",{"type":993,"tag":7025,"props":7026,"children":7027},"a",{"href":462},[7028],{"type":998,"value":7029},"reading set data",{"type":998,"value":7031}," and ",{"type":993,"tag":7025,"props":7033,"children":7034},{"href":471},[7035],{"type":998,"value":7036},"adding to sets",{"type":998,"value":7038}," to continue working with sets.",{"type":993,"tag":7040,"props":7041,"children":7044},"exercise",{"hint":7042,"prompt":7043},"Use set() to create a set from the list, then use add() to add a new number","Create a set of unique numbers from a list that contains duplicates. Then add a new number to the set.",[7045],{"type":993,"tag":1033,"props":7046,"children":7048},{"className":1035,"code":7047,"language":6,"meta":8,"style":8},"numbers = [1, 2, 3, 2, 1, 4, 3, 5]\n\n# TODO: Create a set from the numbers list\nunique_numbers = # TODO: Your set here\n\n# TODO: Add the number 6 to the set\n# TODO: Your add operation here\n\nprint(f\"Original list: {numbers}\")\nprint(f\"Unique numbers: {unique_numbers}\")\n",[7049],{"type":993,"tag":1007,"props":7050,"children":7051},{"__ignoreMap":8},[7052,7131,7138,7156,7182,7189,7205,7221,7228,7268],{"type":993,"tag":1042,"props":7053,"children":7054},{"class":1044,"line":12},[7055,7059,7063,7067,7071,7075,7079,7083,7087,7091,7095,7099,7103,7107,7111,7115,7119,7123,7127],{"type":993,"tag":1042,"props":7056,"children":7057},{"style":1057},[7058],{"type":998,"value":1060},{"type":993,"tag":1042,"props":7060,"children":7061},{"style":1063},[7062],{"type":998,"value":1066},{"type":993,"tag":1042,"props":7064,"children":7065},{"style":1057},[7066],{"type":998,"value":2914},{"type":993,"tag":1042,"props":7068,"children":7069},{"style":1074},[7070],{"type":998,"value":1077},{"type":993,"tag":1042,"props":7072,"children":7073},{"style":1057},[7074],{"type":998,"value":1082},{"type":993,"tag":1042,"props":7076,"children":7077},{"style":1074},[7078],{"type":998,"value":1087},{"type":993,"tag":1042,"props":7080,"children":7081},{"style":1057},[7082],{"type":998,"value":1082},{"type":993,"tag":1042,"props":7084,"children":7085},{"style":1074},[7086],{"type":998,"value":1096},{"type":993,"tag":1042,"props":7088,"children":7089},{"style":1057},[7090],{"type":998,"value":1082},{"type":993,"tag":1042,"props":7092,"children":7093},{"style":1074},[7094],{"type":998,"value":1087},{"type":993,"tag":1042,"props":7096,"children":7097},{"style":1057},[7098],{"type":998,"value":1082},{"type":993,"tag":1042,"props":7100,"children":7101},{"style":1074},[7102],{"type":998,"value":1077},{"type":993,"tag":1042,"props":7104,"children":7105},{"style":1057},[7106],{"type":998,"value":1082},{"type":993,"tag":1042,"props":7108,"children":7109},{"style":1074},[7110],{"type":998,"value":1105},{"type":993,"tag":1042,"props":7112,"children":7113},{"style":1057},[7114],{"type":998,"value":1082},{"type":993,"tag":1042,"props":7116,"children":7117},{"style":1074},[7118],{"type":998,"value":1096},{"type":993,"tag":1042,"props":7120,"children":7121},{"style":1057},[7122],{"type":998,"value":1082},{"type":993,"tag":1042,"props":7124,"children":7125},{"style":1074},[7126],{"type":998,"value":1114},{"type":993,"tag":1042,"props":7128,"children":7129},{"style":1057},[7130],{"type":998,"value":3850},{"type":993,"tag":1042,"props":7132,"children":7133},{"class":1044,"line":27},[7134],{"type":993,"tag":1042,"props":7135,"children":7136},{"emptyLinePlaceholder":13},[7137],{"type":998,"value":1213},{"type":993,"tag":1042,"props":7139,"children":7140},{"class":1044,"line":36},[7141,7146,7151],{"type":993,"tag":1042,"props":7142,"children":7143},{"style":1048},[7144],{"type":998,"value":7145},"# ",{"type":993,"tag":1042,"props":7147,"children":7148},{"style":1063},[7149],{"type":998,"value":7150},"TODO",{"type":993,"tag":1042,"props":7152,"children":7153},{"style":1048},[7154],{"type":998,"value":7155},": Create a set from the numbers list\n",{"type":993,"tag":1042,"props":7157,"children":7158},{"class":1044,"line":45},[7159,7164,7168,7173,7177],{"type":993,"tag":1042,"props":7160,"children":7161},{"style":1057},[7162],{"type":998,"value":7163},"unique_numbers ",{"type":993,"tag":1042,"props":7165,"children":7166},{"style":1063},[7167],{"type":998,"value":1066},{"type":993,"tag":1042,"props":7169,"children":7170},{"style":1048},[7171],{"type":998,"value":7172}," # ",{"type":993,"tag":1042,"props":7174,"children":7175},{"style":1063},[7176],{"type":998,"value":7150},{"type":993,"tag":1042,"props":7178,"children":7179},{"style":1048},[7180],{"type":998,"value":7181},": Your set here\n",{"type":993,"tag":1042,"props":7183,"children":7184},{"class":1044,"line":54},[7185],{"type":993,"tag":1042,"props":7186,"children":7187},{"emptyLinePlaceholder":13},[7188],{"type":998,"value":1213},{"type":993,"tag":1042,"props":7190,"children":7191},{"class":1044,"line":63},[7192,7196,7200],{"type":993,"tag":1042,"props":7193,"children":7194},{"style":1048},[7195],{"type":998,"value":7145},{"type":993,"tag":1042,"props":7197,"children":7198},{"style":1063},[7199],{"type":998,"value":7150},{"type":993,"tag":1042,"props":7201,"children":7202},{"style":1048},[7203],{"type":998,"value":7204},": Add the number 6 to the set\n",{"type":993,"tag":1042,"props":7206,"children":7207},{"class":1044,"line":72},[7208,7212,7216],{"type":993,"tag":1042,"props":7209,"children":7210},{"style":1048},[7211],{"type":998,"value":7145},{"type":993,"tag":1042,"props":7213,"children":7214},{"style":1063},[7215],{"type":998,"value":7150},{"type":993,"tag":1042,"props":7217,"children":7218},{"style":1048},[7219],{"type":998,"value":7220},": Your add operation here\n",{"type":993,"tag":1042,"props":7222,"children":7223},{"class":1044,"line":81},[7224],{"type":993,"tag":1042,"props":7225,"children":7226},{"emptyLinePlaceholder":13},[7227],{"type":998,"value":1213},{"type":993,"tag":1042,"props":7229,"children":7230},{"class":1044,"line":91},[7231,7235,7239,7243,7248,7252,7256,7260,7264],{"type":993,"tag":1042,"props":7232,"children":7233},{"style":1074},[7234],{"type":998,"value":1221},{"type":993,"tag":1042,"props":7236,"children":7237},{"style":1057},[7238],{"type":998,"value":1226},{"type":993,"tag":1042,"props":7240,"children":7241},{"style":1063},[7242],{"type":998,"value":1231},{"type":993,"tag":1042,"props":7244,"children":7245},{"style":1138},[7246],{"type":998,"value":7247},"\"Original list: ",{"type":993,"tag":1042,"props":7249,"children":7250},{"style":1074},[7251],{"type":998,"value":1241},{"type":993,"tag":1042,"props":7253,"children":7254},{"style":1057},[7255],{"type":998,"value":1246},{"type":993,"tag":1042,"props":7257,"children":7258},{"style":1074},[7259],{"type":998,"value":1251},{"type":993,"tag":1042,"props":7261,"children":7262},{"style":1138},[7263],{"type":998,"value":1256},{"type":993,"tag":1042,"props":7265,"children":7266},{"style":1057},[7267],{"type":998,"value":1261},{"type":993,"tag":1042,"props":7269,"children":7270},{"class":1044,"line":100},[7271,7275,7279,7283,7288,7292,7297,7301,7305],{"type":993,"tag":1042,"props":7272,"children":7273},{"style":1074},[7274],{"type":998,"value":1221},{"type":993,"tag":1042,"props":7276,"children":7277},{"style":1057},[7278],{"type":998,"value":1226},{"type":993,"tag":1042,"props":7280,"children":7281},{"style":1063},[7282],{"type":998,"value":1231},{"type":993,"tag":1042,"props":7284,"children":7285},{"style":1138},[7286],{"type":998,"value":7287},"\"Unique numbers: ",{"type":993,"tag":1042,"props":7289,"children":7290},{"style":1074},[7291],{"type":998,"value":1241},{"type":993,"tag":1042,"props":7293,"children":7294},{"style":1057},[7295],{"type":998,"value":7296},"unique_numbers",{"type":993,"tag":1042,"props":7298,"children":7299},{"style":1074},[7300],{"type":998,"value":1251},{"type":993,"tag":1042,"props":7302,"children":7303},{"style":1138},[7304],{"type":998,"value":1256},{"type":993,"tag":1042,"props":7306,"children":7307},{"style":1057},[7308],{"type":998,"value":1261},{"type":993,"tag":1468,"props":7310,"children":7312},{"id":7311},"solution-and-explanation",[7313],{"type":998,"value":7314},"Solution and Explanation 💡",{"type":993,"tag":7316,"props":7317,"children":7318},"details",{},[7319,7327,7567,7575],{"type":993,"tag":7320,"props":7321,"children":7324},"summary",{"className":7322},[7323],"cursor-pointer",[7325],{"type":998,"value":7326},"Click to see the complete solution",{"type":993,"tag":1029,"props":7328,"children":7329},{},[7330],{"type":993,"tag":1033,"props":7331,"children":7333},{"className":1035,"code":7332,"language":6,"meta":8,"style":8},"numbers = [1, 2, 3, 2, 1, 4, 3, 5]\n\n# Create a set from the numbers list\nunique_numbers = set(numbers)\n\n# Add the number 6 to the set\nunique_numbers.add(6)\n\nprint(f\"Original list: {numbers}\")\nprint(f\"Unique numbers: {unique_numbers}\")\n",[7334],{"type":993,"tag":1007,"props":7335,"children":7336},{"__ignoreMap":8},[7337,7416,7423,7431,7451,7458,7466,7482,7489,7528],{"type":993,"tag":1042,"props":7338,"children":7339},{"class":1044,"line":12},[7340,7344,7348,7352,7356,7360,7364,7368,7372,7376,7380,7384,7388,7392,7396,7400,7404,7408,7412],{"type":993,"tag":1042,"props":7341,"children":7342},{"style":1057},[7343],{"type":998,"value":1060},{"type":993,"tag":1042,"props":7345,"children":7346},{"style":1063},[7347],{"type":998,"value":1066},{"type":993,"tag":1042,"props":7349,"children":7350},{"style":1057},[7351],{"type":998,"value":2914},{"type":993,"tag":1042,"props":7353,"children":7354},{"style":1074},[7355],{"type":998,"value":1077},{"type":993,"tag":1042,"props":7357,"children":7358},{"style":1057},[7359],{"type":998,"value":1082},{"type":993,"tag":1042,"props":7361,"children":7362},{"style":1074},[7363],{"type":998,"value":1087},{"type":993,"tag":1042,"props":7365,"children":7366},{"style":1057},[7367],{"type":998,"value":1082},{"type":993,"tag":1042,"props":7369,"children":7370},{"style":1074},[7371],{"type":998,"value":1096},{"type":993,"tag":1042,"props":7373,"children":7374},{"style":1057},[7375],{"type":998,"value":1082},{"type":993,"tag":1042,"props":7377,"children":7378},{"style":1074},[7379],{"type":998,"value":1087},{"type":993,"tag":1042,"props":7381,"children":7382},{"style":1057},[7383],{"type":998,"value":1082},{"type":993,"tag":1042,"props":7385,"children":7386},{"style":1074},[7387],{"type":998,"value":1077},{"type":993,"tag":1042,"props":7389,"children":7390},{"style":1057},[7391],{"type":998,"value":1082},{"type":993,"tag":1042,"props":7393,"children":7394},{"style":1074},[7395],{"type":998,"value":1105},{"type":993,"tag":1042,"props":7397,"children":7398},{"style":1057},[7399],{"type":998,"value":1082},{"type":993,"tag":1042,"props":7401,"children":7402},{"style":1074},[7403],{"type":998,"value":1096},{"type":993,"tag":1042,"props":7405,"children":7406},{"style":1057},[7407],{"type":998,"value":1082},{"type":993,"tag":1042,"props":7409,"children":7410},{"style":1074},[7411],{"type":998,"value":1114},{"type":993,"tag":1042,"props":7413,"children":7414},{"style":1057},[7415],{"type":998,"value":3850},{"type":993,"tag":1042,"props":7417,"children":7418},{"class":1044,"line":27},[7419],{"type":993,"tag":1042,"props":7420,"children":7421},{"emptyLinePlaceholder":13},[7422],{"type":998,"value":1213},{"type":993,"tag":1042,"props":7424,"children":7425},{"class":1044,"line":36},[7426],{"type":993,"tag":1042,"props":7427,"children":7428},{"style":1048},[7429],{"type":998,"value":7430},"# Create a set from the numbers list\n",{"type":993,"tag":1042,"props":7432,"children":7433},{"class":1044,"line":45},[7434,7438,7442,7446],{"type":993,"tag":1042,"props":7435,"children":7436},{"style":1057},[7437],{"type":998,"value":7163},{"type":993,"tag":1042,"props":7439,"children":7440},{"style":1063},[7441],{"type":998,"value":1066},{"type":993,"tag":1042,"props":7443,"children":7444},{"style":1074},[7445],{"type":998,"value":2662},{"type":993,"tag":1042,"props":7447,"children":7448},{"style":1057},[7449],{"type":998,"value":7450},"(numbers)\n",{"type":993,"tag":1042,"props":7452,"children":7453},{"class":1044,"line":54},[7454],{"type":993,"tag":1042,"props":7455,"children":7456},{"emptyLinePlaceholder":13},[7457],{"type":998,"value":1213},{"type":993,"tag":1042,"props":7459,"children":7460},{"class":1044,"line":63},[7461],{"type":993,"tag":1042,"props":7462,"children":7463},{"style":1048},[7464],{"type":998,"value":7465},"# Add the number 6 to the set\n",{"type":993,"tag":1042,"props":7467,"children":7468},{"class":1044,"line":72},[7469,7474,7478],{"type":993,"tag":1042,"props":7470,"children":7471},{"style":1057},[7472],{"type":998,"value":7473},"unique_numbers.add(",{"type":993,"tag":1042,"props":7475,"children":7476},{"style":1074},[7477],{"type":998,"value":3221},{"type":993,"tag":1042,"props":7479,"children":7480},{"style":1057},[7481],{"type":998,"value":1261},{"type":993,"tag":1042,"props":7483,"children":7484},{"class":1044,"line":81},[7485],{"type":993,"tag":1042,"props":7486,"children":7487},{"emptyLinePlaceholder":13},[7488],{"type":998,"value":1213},{"type":993,"tag":1042,"props":7490,"children":7491},{"class":1044,"line":91},[7492,7496,7500,7504,7508,7512,7516,7520,7524],{"type":993,"tag":1042,"props":7493,"children":7494},{"style":1074},[7495],{"type":998,"value":1221},{"type":993,"tag":1042,"props":7497,"children":7498},{"style":1057},[7499],{"type":998,"value":1226},{"type":993,"tag":1042,"props":7501,"children":7502},{"style":1063},[7503],{"type":998,"value":1231},{"type":993,"tag":1042,"props":7505,"children":7506},{"style":1138},[7507],{"type":998,"value":7247},{"type":993,"tag":1042,"props":7509,"children":7510},{"style":1074},[7511],{"type":998,"value":1241},{"type":993,"tag":1042,"props":7513,"children":7514},{"style":1057},[7515],{"type":998,"value":1246},{"type":993,"tag":1042,"props":7517,"children":7518},{"style":1074},[7519],{"type":998,"value":1251},{"type":993,"tag":1042,"props":7521,"children":7522},{"style":1138},[7523],{"type":998,"value":1256},{"type":993,"tag":1042,"props":7525,"children":7526},{"style":1057},[7527],{"type":998,"value":1261},{"type":993,"tag":1042,"props":7529,"children":7530},{"class":1044,"line":100},[7531,7535,7539,7543,7547,7551,7555,7559,7563],{"type":993,"tag":1042,"props":7532,"children":7533},{"style":1074},[7534],{"type":998,"value":1221},{"type":993,"tag":1042,"props":7536,"children":7537},{"style":1057},[7538],{"type":998,"value":1226},{"type":993,"tag":1042,"props":7540,"children":7541},{"style":1063},[7542],{"type":998,"value":1231},{"type":993,"tag":1042,"props":7544,"children":7545},{"style":1138},[7546],{"type":998,"value":7287},{"type":993,"tag":1042,"props":7548,"children":7549},{"style":1074},[7550],{"type":998,"value":1241},{"type":993,"tag":1042,"props":7552,"children":7553},{"style":1057},[7554],{"type":998,"value":7296},{"type":993,"tag":1042,"props":7556,"children":7557},{"style":1074},[7558],{"type":998,"value":1251},{"type":993,"tag":1042,"props":7560,"children":7561},{"style":1138},[7562],{"type":998,"value":1256},{"type":993,"tag":1042,"props":7564,"children":7565},{"style":1057},[7566],{"type":998,"value":1261},{"type":993,"tag":1001,"props":7568,"children":7569},{},[7570],{"type":993,"tag":1367,"props":7571,"children":7572},{},[7573],{"type":998,"value":7574},"Key Learning Points:",{"type":993,"tag":1373,"props":7576,"children":7577},{},[7578,7597,7608,7626],{"type":993,"tag":1377,"props":7579,"children":7580},{},[7581,7583,7588,7590,7595],{"type":998,"value":7582},"📌 ",{"type":993,"tag":1367,"props":7584,"children":7585},{},[7586],{"type":998,"value":7587},"set() function",{"type":998,"value":7589},": Use ",{"type":993,"tag":1007,"props":7591,"children":7593},{"className":7592},[],[7594],{"type":998,"value":6899},{"type":998,"value":7596}," to create a set from a list and remove duplicates",{"type":993,"tag":1377,"props":7598,"children":7599},{},[7600,7601,7606],{"type":998,"value":7582},{"type":993,"tag":1367,"props":7602,"children":7603},{},[7604],{"type":998,"value":7605},"Automatic deduplication",{"type":998,"value":7607},": Sets automatically remove duplicate values",{"type":993,"tag":1377,"props":7609,"children":7610},{},[7611,7612,7617,7618,7624],{"type":998,"value":7582},{"type":993,"tag":1367,"props":7613,"children":7614},{},[7615],{"type":998,"value":7616},"add() method",{"type":998,"value":7589},{"type":993,"tag":1007,"props":7619,"children":7621},{"className":7620},[],[7622],{"type":998,"value":7623},"set.add(item)",{"type":998,"value":7625}," to add a single item to a set",{"type":993,"tag":1377,"props":7627,"children":7628},{},[7629,7630,7635],{"type":998,"value":7582},{"type":993,"tag":1367,"props":7631,"children":7632},{},[7633],{"type":998,"value":7634},"Unordered collection",{"type":998,"value":7636},": Sets don't maintain the original order of elements",{"type":993,"tag":1345,"props":7638,"children":7640},{"id":7639},"test-your-knowledge",[7641],{"type":998,"value":7642},"Test Your Knowledge",{"type":993,"tag":1001,"props":7644,"children":7645},{},[7646],{"type":998,"value":7647},"Test what you've learned about creating sets in Python:",{"type":993,"tag":7649,"props":7650,"children":7654},"redirect-button",{"icon":7651,"label":7652,"url":7653},"pi pi-send","Take Quiz","/tutorial-quiz/python/creating-sets",[],{"type":993,"tag":1345,"props":7656,"children":7658},{"id":7657},"whats-next",[7659],{"type":998,"value":7660},"What's Next?",{"type":993,"tag":1001,"props":7662,"children":7663},{},[7664],{"type":998,"value":7665},"Now that you can create sets, you're ready to learn how to access and examine set data. Understanding how to read set information is essential for working with set contents effectively.",{"type":993,"tag":1001,"props":7667,"children":7668},{},[7669,7671,7675],{"type":998,"value":7670},"Ready to continue? Check out our lesson on ",{"type":993,"tag":7025,"props":7672,"children":7673},{"href":462},[7674],{"type":998,"value":463},{"type":998,"value":7676},".",{"type":993,"tag":7678,"props":7679,"children":7680},"style",{},[7681],{"type":998,"value":7682},"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":7684},[7685,7690,7695,7700,7704,7708,7711,7712],{"id":1347,"depth":27,"text":1350,"children":7686},[7687,7688,7689],{"id":1470,"depth":36,"text":1473},{"id":1782,"depth":36,"text":1785},{"id":2146,"depth":36,"text":2149},{"id":2484,"depth":27,"text":2487,"children":7691},[7692,7693,7694],{"id":2619,"depth":36,"text":2622},{"id":2871,"depth":36,"text":2874},{"id":3270,"depth":36,"text":3273},{"id":3553,"depth":27,"text":3556,"children":7696},[7697,7698,7699],{"id":3654,"depth":36,"text":3657},{"id":4072,"depth":36,"text":4075},{"id":4500,"depth":36,"text":4503},{"id":4902,"depth":27,"text":4905,"children":7701},[7702,7703],{"id":4996,"depth":36,"text":4999},{"id":5302,"depth":36,"text":5305},{"id":5855,"depth":27,"text":5858,"children":7705},[7706,7707],{"id":5967,"depth":36,"text":5970},{"id":6407,"depth":36,"text":6410},{"id":6767,"depth":27,"text":6770,"children":7709},[7710],{"id":7311,"depth":36,"text":7314},{"id":7639,"depth":27,"text":7642},{"id":7657,"depth":27,"text":7660},1782373740399]