[{"data":1,"prerenderedAt":9435},["ShallowReactive",2],{"tutorials-python":3,"category-items-python":987,"content-/python/combining-lists":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},"/python/python-tuples","Python Tuples","Master Python tuples - immutable sequences perfect for storing related data that shouldn't change. Learn creation, access, and manipulation techniques.","python-tuples",40,"content:python:40.python-tuples.md","python/40.python-tuples.md","python/40.python-tuples",[379,388,397,406,415,424,433],{"_path":380,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":381,"description":382,"slug":383,"parentId":370,"order":384,"_type":15,"_id":385,"_source":17,"_file":386,"_stem":387,"_extension":20},"/python/creating-tuples","Creating Tuples","Learn different ways to create Python tuples, from basic syntax to advanced techniques. Master tuple initialization and understand when to use tuples.","creating-tuples",41,"content:python:41.creating-tuples.md","python/41.creating-tuples.md","python/41.creating-tuples",{"_path":389,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":390,"description":391,"slug":392,"parentId":370,"order":393,"_type":15,"_id":394,"_source":17,"_file":395,"_stem":396,"_extension":20},"/python/reading-tuple-data","Reading Tuple Data","Master accessing tuple elements through indexing, slicing, and searching. Learn efficient patterns for reading and working with tuple data.","reading-tuple-data",42,"content:python:42.reading-tuple-data.md","python/42.reading-tuple-data.md","python/42.reading-tuple-data",{"_path":398,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":399,"description":400,"slug":401,"parentId":370,"order":402,"_type":15,"_id":403,"_source":17,"_file":404,"_stem":405,"_extension":20},"/python/changing-tuples","Changing Tuples","Understand tuple immutability and learn techniques for working with unchangeable data. Master creating modified tuple versions and handling immutable constraints.","changing-tuples",43,"content:python:43.changing-tuples.md","python/43.changing-tuples.md","python/43.changing-tuples",{"_path":407,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":408,"description":409,"slug":410,"parentId":370,"order":411,"_type":15,"_id":412,"_source":17,"_file":413,"_stem":414,"_extension":20},"/python/tuple-unpacking","Tuple Unpacking","Master tuple unpacking for elegant variable assignment, function returns, and data extraction. Learn Python's powerful unpacking syntax and patterns.","tuple-unpacking",44,"content:python:44.tuple-unpacking.md","python/44.tuple-unpacking.md","python/44.tuple-unpacking",{"_path":416,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":417,"description":418,"slug":419,"parentId":370,"order":420,"_type":15,"_id":421,"_source":17,"_file":422,"_stem":423,"_extension":20},"/python/iterating-tuples","Iterating Tuples","Master tuple iteration techniques for processing sequence data. Learn basic loops, enumerate, nested iteration, and advanced patterns for efficient data processing.","iterating-tuples",45,"content:python:45.iterating-tuples.md","python/45.iterating-tuples.md","python/45.iterating-tuples",{"_path":425,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":426,"description":427,"slug":428,"parentId":370,"order":429,"_type":15,"_id":430,"_source":17,"_file":431,"_stem":432,"_extension":20},"/python/merging-tuples","Merging Tuples","Learn techniques for combining and merging tuples to create larger data structures. Master concatenation, joining multiple tuples, and advanced merging patterns.","merging-tuples",46,"content:python:46.merging-tuples.md","python/46.merging-tuples.md","python/46.merging-tuples",{"_path":434,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":435,"description":436,"slug":437,"parentId":370,"order":438,"_type":15,"_id":439,"_source":17,"_file":440,"_stem":441,"_extension":20},"/python/tuple-operations","Tuple Operations","Master comprehensive tuple operations including built-in functions, mathematical operations, comparisons, and advanced techniques for efficient tuple manipulation.","tuple-operations",47,"content:python:47.tuple-operations.md","python/47.tuple-operations.md","python/47.tuple-operations",{"_path":443,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":444,"description":445,"slug":446,"order":447,"isParent":13,"icon":14,"_type":15,"_id":448,"_source":17,"_file":449,"_stem":450,"_extension":20,"children":451},"/python/python-sets","Python Sets","Discover Python sets - unique collections that automatically eliminate duplicates and provide powerful mathematical operations for data filtering and analysis.","python-sets",48,"content:python:48.python-sets.md","python/48.python-sets.md","python/48.python-sets",[452,461,470,479,488,497,506],{"_path":453,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":454,"description":455,"slug":456,"parentId":443,"order":457,"_type":15,"_id":458,"_source":17,"_file":459,"_stem":460,"_extension":20},"/python/creating-sets","Creating Sets","Learn multiple ways to create sets in Python including literal syntax, set() function, and set comprehensions. Master set creation from different data sources.","creating-sets",49,"content:python:49.creating-sets.md","python/49.creating-sets.md","python/49.creating-sets",{"_path":462,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":463,"description":464,"slug":465,"parentId":443,"order":466,"_type":15,"_id":467,"_source":17,"_file":468,"_stem":469,"_extension":20},"/python/reading-set-data","Reading Set Data","Learn how to access and examine set data in Python including membership testing, iteration, size checking, and converting sets to other data types.","reading-set-data",50,"content:python:50.reading-set-data.md","python/50.reading-set-data.md","python/50.reading-set-data",{"_path":471,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":472,"description":473,"slug":474,"parentId":443,"order":475,"_type":15,"_id":476,"_source":17,"_file":477,"_stem":478,"_extension":20},"/python/adding-to-sets","Adding to Sets","Learn how to add elements to sets in Python using add(), update(), and union operations. Master growing sets dynamically with single items and multiple elements.","adding-to-sets",51,"content:python:51.adding-to-sets.md","python/51.adding-to-sets.md","python/51.adding-to-sets",{"_path":480,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":481,"description":482,"slug":483,"parentId":443,"order":484,"_type":15,"_id":485,"_source":17,"_file":486,"_stem":487,"_extension":20},"/python/removing-from-sets","Removing from Sets","Learn how to remove elements from Python sets using different methods like remove(), discard(), pop(), and clear()","removing-from-sets",52,"content:python:52.removing-from-sets.md","python/52.removing-from-sets.md","python/52.removing-from-sets",{"_path":489,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":490,"description":491,"slug":492,"parentId":443,"order":493,"_type":15,"_id":494,"_source":17,"_file":495,"_stem":496,"_extension":20},"/python/iterating-sets","Iterating Sets","Learn different ways to iterate through Python sets using for loops, comprehensions, and built-in functions","iterating-sets",53,"content:python:53.iterating-sets.md","python/53.iterating-sets.md","python/53.iterating-sets",{"_path":498,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":499,"description":500,"slug":501,"parentId":443,"order":502,"_type":15,"_id":503,"_source":17,"_file":504,"_stem":505,"_extension":20},"/python/combining-sets","Combining Sets","Learn how to combine Python sets using union, intersection, difference, and other set operations","combining-sets",54,"content:python:54.combining-sets.md","python/54.combining-sets.md","python/54.combining-sets",{"_path":507,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":508,"description":509,"slug":510,"parentId":443,"order":511,"_type":15,"_id":512,"_source":17,"_file":513,"_stem":514,"_extension":20},"/python/set-operations","Set Operations","Learn advanced Python set operations including comparisons, subsets, supersets, and mathematical set relationships","set-operations",55,"content:python:55.set-operations.md","python/55.set-operations.md","python/55.set-operations",{"_path":516,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":517,"description":518,"slug":519,"order":520,"isParent":13,"icon":14,"_type":15,"_id":521,"_source":17,"_file":522,"_stem":523,"_extension":20,"children":524},"/python/python-dictionaries","Python Dictionaries","Learn about Python dictionaries - key-value data structures for storing and organizing related information","python-dictionaries",56,"content:python:56.python-dictionaries.md","python/56.python-dictionaries.md","python/56.python-dictionaries",[525,534,543,552,561,570,579,588,597],{"_path":526,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":527,"description":528,"slug":529,"parentId":516,"order":530,"_type":15,"_id":531,"_source":17,"_file":532,"_stem":533,"_extension":20},"/python/creating-dictionaries","Creating Dictionaries","Learn different methods to create Python dictionaries using literals, constructors, and comprehensions","creating-dictionaries",57,"content:python:57.creating-dictionaries.md","python/57.creating-dictionaries.md","python/57.creating-dictionaries",{"_path":535,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":536,"description":537,"slug":538,"parentId":516,"order":539,"_type":15,"_id":540,"_source":17,"_file":541,"_stem":542,"_extension":20},"/python/getting-dictionary-values","Getting Dictionary Values","Learn safe and efficient methods to retrieve data from Python dictionaries using various access techniques","getting-dictionary-values",58,"content:python:58.getting-dictionary-values.md","python/58.getting-dictionary-values.md","python/58.getting-dictionary-values",{"_path":544,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":545,"description":546,"slug":547,"parentId":516,"order":548,"_type":15,"_id":549,"_source":17,"_file":550,"_stem":551,"_extension":20},"/python/updating-dictionaries","Updating Dictionaries","Learn how to modify and maintain Python dictionary data using various update methods and techniques","updating-dictionaries",59,"content:python:59.updating-dictionaries.md","python/59.updating-dictionaries.md","python/59.updating-dictionaries",{"_path":553,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":554,"description":555,"slug":556,"parentId":516,"order":557,"_type":15,"_id":558,"_source":17,"_file":559,"_stem":560,"_extension":20},"/python/adding-dictionary-items","Adding Dictionary Items","Learn effective techniques for adding new items to Python dictionaries with various methods and best practices","adding-dictionary-items",60,"content:python:60.adding-dictionary-items.md","python/60.adding-dictionary-items.md","python/60.adding-dictionary-items",{"_path":562,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":563,"description":564,"slug":565,"parentId":516,"order":566,"_type":15,"_id":567,"_source":17,"_file":568,"_stem":569,"_extension":20},"/python/deleting-dictionary-items","Deleting Dictionary Items","Master safe and efficient techniques for removing items from Python dictionaries with various methods and error handling","deleting-dictionary-items",61,"content:python:61.deleting-dictionary-items.md","python/61.deleting-dictionary-items.md","python/61.deleting-dictionary-items",{"_path":571,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":572,"description":573,"slug":574,"parentId":516,"order":575,"_type":15,"_id":576,"_source":17,"_file":577,"_stem":578,"_extension":20},"/python/looping-dictionaries","Looping Dictionaries","Learn efficient techniques for iterating through Python dictionaries using keys, values, and items","looping-dictionaries",62,"content:python:62.looping-dictionaries.md","python/62.looping-dictionaries.md","python/62.looping-dictionaries",{"_path":580,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":581,"description":582,"slug":583,"parentId":516,"order":584,"_type":15,"_id":585,"_source":17,"_file":586,"_stem":587,"_extension":20},"/python/dictionary-copies","Dictionary Copies","Learn safe techniques for duplicating Python dictionaries using shallow and deep copy methods","dictionary-copies",63,"content:python:63.dictionary-copies.md","python/63.dictionary-copies.md","python/63.dictionary-copies",{"_path":589,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":590,"description":591,"slug":592,"parentId":516,"order":593,"_type":15,"_id":594,"_source":17,"_file":595,"_stem":596,"_extension":20},"/python/multi-level-dictionaries","Multi-level Dictionaries","Master working with nested Python dictionaries for complex data structures and hierarchical information","multi-level-dictionaries",64,"content:python:64.multi-level-dictionaries.md","python/64.multi-level-dictionaries.md","python/64.multi-level-dictionaries",{"_path":598,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":599,"description":600,"slug":601,"parentId":516,"order":602,"_type":15,"_id":603,"_source":17,"_file":604,"_stem":605,"_extension":20},"/python/dictionary-tools","Dictionary Tools","Explore powerful built-in functions and advanced techniques for efficient Python dictionary manipulation and analysis","dictionary-tools",65,"content:python:65.dictionary-tools.md","python/65.dictionary-tools.md","python/65.dictionary-tools",{"_path":607,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":608,"description":609,"slug":610,"order":611,"isParent":13,"icon":14,"_type":15,"_id":612,"_source":17,"_file":613,"_stem":614,"_extension":20,"children":615},"/python/python-functions","Python Functions","Learn how to create and use Python functions to organize code into reusable, modular components that make programs more efficient and maintainable","python-functions",66,"content:python:66.python-functions.md","python/66.python-functions.md","python/66.python-functions",[616,625,634,643,652,661],{"_path":617,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":618,"description":619,"slug":620,"parentId":607,"order":621,"_type":15,"_id":622,"_source":17,"_file":623,"_stem":624,"_extension":20},"/python/function-basics","Function Basics","Learn the fundamentals of creating and using Python functions to organize code into reusable, modular components","function-basics",67,"content:python:67.function-basics.md","python/67.function-basics.md","python/67.function-basics",{"_path":626,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":627,"description":628,"slug":629,"parentId":607,"order":630,"_type":15,"_id":631,"_source":17,"_file":632,"_stem":633,"_extension":20},"/python/function-parameters","Function Parameters","Master different types of Python function parameters including positional, keyword, default, and variable-length arguments","function-parameters",68,"content:python:68.function-parameters.md","python/68.function-parameters.md","python/68.function-parameters",{"_path":635,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":636,"description":637,"slug":638,"parentId":607,"order":639,"_type":15,"_id":640,"_source":17,"_file":641,"_stem":642,"_extension":20},"/python/returning-values","Returning Values","Learn different ways Python functions return data including single values, multiple values, and conditional returns","returning-values",69,"content:python:69.returning-values.md","python/69.returning-values.md","python/69.returning-values",{"_path":644,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":645,"description":646,"slug":647,"parentId":607,"order":648,"_type":15,"_id":649,"_source":17,"_file":650,"_stem":651,"_extension":20},"/python/variable-scope","Variable Scope","Understand Python variable scope including local, global, and nonlocal variables and how they affect function behavior","variable-scope",70,"content:python:70.variable-scope.md","python/70.variable-scope.md","python/70.variable-scope",{"_path":653,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":654,"description":655,"slug":656,"parentId":607,"order":657,"_type":15,"_id":658,"_source":17,"_file":659,"_stem":660,"_extension":20},"/python/anonymous-functions","Anonymous Functions","Learn to create and use Python lambda functions for concise, inline function definitions and functional programming patterns","anonymous-functions",71,"content:python:71.anonymous-functions.md","python/71.anonymous-functions.md","python/71.anonymous-functions",{"_path":662,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":663,"description":664,"slug":665,"parentId":607,"order":666,"_type":15,"_id":667,"_source":17,"_file":668,"_stem":669,"_extension":20},"/python/function-recursion","Function Recursion","Master recursive functions in Python by learning how functions can call themselves to solve complex problems with elegant, mathematical solutions","function-recursion",72,"content:python:72.function-recursion.md","python/72.function-recursion.md","python/72.function-recursion",{"_path":671,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":672,"description":673,"slug":674,"order":675,"isParent":13,"icon":14,"_type":15,"_id":676,"_source":17,"_file":677,"_stem":678,"_extension":20,"children":679},"/python/object-programming","Object Programming","Learn object-oriented programming (OOP) in Python - create classes, objects, and methods to build organized, reusable code","object-programming",73,"content:python:73.object-programming.md","python/73.object-programming.md","python/73.object-programming",[680,689,698,707,716,725],{"_path":681,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":682,"description":683,"slug":684,"parentId":671,"order":685,"_type":15,"_id":686,"_source":17,"_file":687,"_stem":688,"_extension":20},"/python/classes-and-objects","Classes and Objects","Learn to create Python classes and objects - the foundation of object-oriented programming for building reusable, organized code","classes-and-objects",74,"content:python:74.classes-and-objects.md","python/74.classes-and-objects.md","python/74.classes-and-objects",{"_path":690,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":691,"description":692,"slug":693,"parentId":671,"order":694,"_type":15,"_id":695,"_source":17,"_file":696,"_stem":697,"_extension":20},"/python/object-methods","Object Methods","Master object methods in Python - learn to define behaviors, work with parameters, and create interactive objects that respond to actions","object-methods",75,"content:python:75.object-methods.md","python/75.object-methods.md","python/75.object-methods",{"_path":699,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":700,"description":701,"slug":702,"parentId":671,"order":703,"_type":15,"_id":704,"_source":17,"_file":705,"_stem":706,"_extension":20},"/python/class-inheritance","Class Inheritance","Learn Python class inheritance - create specialized classes that build upon existing functionality while adding new features and behaviors","class-inheritance",76,"content:python:76.class-inheritance.md","python/76.class-inheritance.md","python/76.class-inheritance",{"_path":708,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":709,"description":710,"slug":711,"parentId":671,"order":712,"_type":15,"_id":713,"_source":17,"_file":714,"_stem":715,"_extension":20},"/python/method-overriding","Method Overriding","Master method overriding in Python - learn to customize inherited methods, use super(), and create specialized behaviors while maintaining inheritance benefits","method-overriding",77,"content:python:77.method-overriding.md","python/77.method-overriding.md","python/77.method-overriding",{"_path":717,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":718,"description":719,"slug":720,"parentId":671,"order":721,"_type":15,"_id":722,"_source":17,"_file":723,"_stem":724,"_extension":20},"/python/variable-visibility","Variable Visibility","Master Python variable visibility - learn public, protected, and private attributes to control access and create well-encapsulated classes","variable-visibility",78,"content:python:78.variable-visibility.md","python/78.variable-visibility.md","python/78.variable-visibility",{"_path":726,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":727,"description":728,"slug":729,"parentId":671,"order":730,"_type":15,"_id":731,"_source":17,"_file":732,"_stem":733,"_extension":20},"/python/special-methods","Special Methods","Master Python special methods (magic methods) - learn to implement __str__, __len__, __eq__ and more to make your classes work seamlessly with Python's built-in functions","special-methods",79,"content:python:79.special-methods.md","python/79.special-methods.md","python/79.special-methods",{"_path":735,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":736,"description":737,"slug":738,"order":739,"isParent":13,"icon":14,"_type":15,"_id":740,"_source":17,"_file":741,"_stem":742,"_extension":20,"children":743},"/python/advanced-concepts","Advanced Concepts","Master advanced Python programming concepts - work with dates, mathematics, JSON data, pattern matching, and more sophisticated programming techniques","advanced-concepts",80,"content:python:80.advanced-concepts.md","python/80.advanced-concepts.md","python/80.advanced-concepts",[744,753,762,771,780,789,798],{"_path":745,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":746,"description":747,"slug":748,"parentId":735,"order":749,"_type":15,"_id":750,"_source":17,"_file":751,"_stem":752,"_extension":20},"/python/working-with-dates","Working with Dates","Master Python date and time handling - work with datetime objects, format dates, calculate durations, and build time-aware applications","working-with-dates",81,"content:python:81.working-with-dates.md","python/81.working-with-dates.md","python/81.working-with-dates",{"_path":754,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":755,"description":756,"slug":757,"parentId":735,"order":758,"_type":15,"_id":759,"_source":17,"_file":760,"_stem":761,"_extension":20},"/python/mathematical-operations","Mathematical Operations","Master Python mathematical computing - use math functions, perform statistical calculations, and implement scientific computing for data analysis and problem-solving","mathematical-operations",82,"content:python:82.mathematical-operations.md","python/82.mathematical-operations.md","python/82.mathematical-operations",{"_path":763,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":764,"description":765,"slug":766,"parentId":735,"order":767,"_type":15,"_id":768,"_source":17,"_file":769,"_stem":770,"_extension":20},"/python/json-data","JSON Data","Master JSON data handling in Python - serialize and deserialize data, work with APIs, manage configuration files, and exchange data between applications","json-data",83,"content:python:83.json-data.md","python/83.json-data.md","python/83.json-data",{"_path":772,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":773,"description":774,"slug":775,"parentId":735,"order":776,"_type":15,"_id":777,"_source":17,"_file":778,"_stem":779,"_extension":20},"/python/package-management","Package Management","Master Python package management with pip and virtual environments - install libraries, manage dependencies, create isolated environments, and distribute packages professionally","package-management",85,"content:python:85.package-management.md","python/85.package-management.md","python/85.package-management",{"_path":781,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":782,"description":783,"slug":784,"parentId":735,"order":785,"_type":15,"_id":786,"_source":17,"_file":787,"_stem":788,"_extension":20},"/python/error-handling","Error Handling","Master Python error handling with try/except blocks, exception types, custom exceptions, debugging techniques, and best practices for robust application development","error-handling",86,"content:python:86.error-handling.md","python/86.error-handling.md","python/86.error-handling",{"_path":790,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":791,"description":792,"slug":793,"parentId":735,"order":794,"_type":15,"_id":795,"_source":17,"_file":796,"_stem":797,"_extension":20},"/python/getting-user-input","Getting User Input","Master user input handling in Python with input validation, data type conversion, interactive programs, and command-line interfaces for engaging user experiences","getting-user-input",87,"content:python:87.getting-user-input.md","python/87.getting-user-input.md","python/87.getting-user-input",{"_path":799,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":800,"description":801,"slug":802,"parentId":735,"order":803,"_type":15,"_id":804,"_source":17,"_file":805,"_stem":806,"_extension":20},"/python/text-formatting","Text Formatting","Master Python text formatting with f-strings, format methods, alignment, number formatting, and advanced techniques for professional, readable output","text-formatting",88,"content:python:88.text-formatting.md","python/88.text-formatting.md","python/88.text-formatting",{"_path":808,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":809,"description":810,"slug":811,"order":812,"isParent":13,"icon":14,"_type":15,"_id":813,"_source":17,"_file":814,"_stem":815,"_extension":20,"children":816},"/python/file-operations","File Operations","Master Python file handling with reading, writing, and managing files for data persistence and real-world applications","file-operations",89,"content:python:89.file-operations.md","python/89.file-operations.md","python/89.file-operations",[817,826,835,844],{"_path":818,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":819,"description":820,"slug":821,"parentId":808,"order":822,"_type":15,"_id":823,"_source":17,"_file":824,"_stem":825,"_extension":20},"/python/file-basics","File Basics","Learn fundamental Python file operations including opening files, understanding file modes, using context managers, and basic file handling concepts","file-basics",90,"content:python:90.file-basics.md","python/90.file-basics.md","python/90.file-basics",{"_path":827,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":828,"description":829,"slug":830,"parentId":808,"order":831,"_type":15,"_id":832,"_source":17,"_file":833,"_stem":834,"_extension":20},"/python/reading-files","Reading Files","Master Python file reading techniques including reading entire files, line-by-line processing, and handling different file formats for efficient data processing","reading-files",91,"content:python:91.reading-files.md","python/91.reading-files.md","python/91.reading-files",{"_path":836,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":837,"description":838,"slug":839,"parentId":808,"order":840,"_type":15,"_id":841,"_source":17,"_file":842,"_stem":843,"_extension":20},"/python/writing-files","Writing Files","Learn Python file writing techniques including creating new files, appending content, updating existing files, and saving different data formats safely","writing-files",92,"content:python:92.writing-files.md","python/92.writing-files.md","python/92.writing-files",{"_path":845,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":846,"description":847,"slug":848,"parentId":808,"order":849,"_type":15,"_id":850,"_source":17,"_file":851,"_stem":852,"_extension":20},"/python/file-management","File Management","Learn Python file management techniques including checking file properties, organizing files, directory operations, and implementing file system maintenance tasks","file-management",93,"content:python:93.file-management.md","python/93.file-management.md","python/93.file-management",{"_path":854,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":855,"description":856,"slug":857,"order":858,"isParent":13,"icon":14,"_type":15,"_id":859,"_source":17,"_file":860,"_stem":861,"_extension":20,"children":862},"/python/code-organization","Code Organization","Master Python code organization with modules, built-in libraries, and path management for creating maintainable and reusable applications","code-organization",94,"content:python:94.code-organization.md","python/94.code-organization.md","python/94.code-organization",[863,872,881],{"_path":864,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":865,"description":866,"slug":867,"parentId":854,"order":868,"_type":15,"_id":869,"_source":17,"_file":870,"_stem":871,"_extension":20},"/python/creating-modules","Creating Modules","Learn how to create custom Python modules, organize functions and classes, write reusable code components, and design effective module structures","creating-modules",95,"content:python:95.creating-modules.md","python/95.creating-modules.md","python/95.creating-modules",{"_path":873,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":874,"description":875,"slug":876,"parentId":854,"order":877,"_type":15,"_id":878,"_source":17,"_file":879,"_stem":880,"_extension":20},"/python/using-built-in-modules","Using Built-in Modules","Discover Python's extensive standard library and learn to effectively use built-in modules for common programming tasks, data processing, and system operations","using-built-in-modules",96,"content:python:96.using-built-in-modules.md","python/96.using-built-in-modules.md","python/96.using-built-in-modules",{"_path":882,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":883,"description":884,"slug":885,"parentId":854,"order":886,"_type":15,"_id":887,"_source":17,"_file":888,"_stem":889,"_extension":20},"/python/module-paths","Module Paths","Understand Python's module search system, manage import paths, work with packages, and organize larger projects with proper module path management","module-paths",97,"content:python:97.module-paths.md","python/97.module-paths.md","python/97.module-paths",{"_path":891,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":892,"description":893,"slug":894,"order":895,"isParent":13,"icon":14,"_type":15,"_id":896,"_source":17,"_file":897,"_stem":898,"_extension":20,"children":899,"expanded":13},"/python/reference-materials","Reference Materials","Comprehensive Python reference materials including reserved words, built-in functions, and operation guides for quick lookup and development support","reference-materials",98,"content:python:98.reference-materials.md","python/98.reference-materials.md","python/98.reference-materials",[900,909,918,927,936,945,953,961,970],{"_path":901,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":902,"description":903,"slug":904,"parentId":891,"order":905,"_type":15,"_id":906,"_source":17,"_file":907,"_stem":908,"_extension":20},"/python/reserved-words","Reserved Words","Complete reference of Python keywords and reserved words with descriptions, usage examples, and syntax guidelines","reserved-words",99,"content:python:99.reserved-words.md","python/99.reserved-words.md","python/99.reserved-words",{"_path":910,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":911,"description":912,"slug":913,"parentId":891,"order":914,"_type":15,"_id":915,"_source":17,"_file":916,"_stem":917,"_extension":20},"/python/built-in-functions","Built-in Functions","Comprehensive reference of Python's built-in functions with parameters, return values, and practical usage examples","built-in-functions",100,"content:python:100.built-in-functions.md","python/100.built-in-functions.md","python/100.built-in-functions",{"_path":919,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":920,"description":921,"slug":922,"parentId":891,"order":923,"_type":15,"_id":924,"_source":17,"_file":925,"_stem":926,"_extension":20},"/python/string-operations","String Operations","Complete reference of Python string methods, operations, and formatting techniques with examples and use cases","string-operations",101,"content:python:101.string-operations.md","python/101.string-operations.md","python/101.string-operations",{"_path":928,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":929,"description":930,"slug":931,"parentId":891,"order":932,"_type":15,"_id":933,"_source":17,"_file":934,"_stem":935,"_extension":20},"/python/list-operations","List Operations","Complete reference of Python list methods, operations, and manipulation techniques with examples and performance notes","list-operations",102,"content:python:102.list-operations.md","python/102.list-operations.md","python/102.list-operations",{"_path":937,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":938,"description":939,"slug":940,"parentId":891,"order":941,"_type":15,"_id":942,"_source":17,"_file":943,"_stem":944,"_extension":20},"/python/dictionary-operations","Dictionary Operations","Complete reference of Python dictionary methods, operations, and manipulation techniques with examples and use cases","dictionary-operations",103,"content:python:103.dictionary-operations.md","python/103.dictionary-operations.md","python/103.dictionary-operations",{"_path":946,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":435,"description":947,"slug":948,"parentId":891,"order":949,"_type":15,"_id":950,"_source":17,"_file":951,"_stem":952,"_extension":20},"/python/tuple-methods","Complete reference of Python tuple operations, methods, and techniques with examples and use cases","tuple-methods",104,"content:python:104.tuple-methods.md","python/104.tuple-methods.md","python/104.tuple-methods",{"_path":954,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":508,"description":955,"slug":956,"parentId":891,"order":957,"_type":15,"_id":958,"_source":17,"_file":959,"_stem":960,"_extension":20},"/python/set-methods","Complete reference of Python set operations, methods, and mathematical set operations with examples and use cases","set-methods",105,"content:python:105.set-methods.md","python/105.set-methods.md","python/105.set-methods",{"_path":962,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":963,"description":964,"slug":965,"parentId":891,"order":966,"_type":15,"_id":967,"_source":17,"_file":968,"_stem":969,"_extension":20},"/python/file-operations-reference","File Operations Reference","Complete reference of Python file operations, modes, methods, and file handling techniques with examples","file-operations-reference",106,"content:python:106.file-operations-reference.md","python/106.file-operations-reference.md","python/106.file-operations-reference",{"_path":971,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":972,"description":973,"slug":974,"parentId":891,"order":975,"_type":15,"_id":976,"_source":17,"_file":977,"_stem":978,"_extension":20},"/python/error-types","Error Types","Complete reference of Python exception types, error handling patterns, and debugging techniques with examples","error-types",107,"content:python:107.error-types.md","python/107.error-types.md","python/107.error-types",{"_path":980,"_dir":8,"_draft":7,"_partial":7,"_locale":8,"title":981,"description":10,"slug":982,"order":983,"icon":14,"_type":15,"_id":984,"_source":17,"_file":985,"_stem":986,"_extension":20},"/python","Introduction","python-tutorial",0,"content:python:index.md","python/index.md","python/index",[351],{"_path":352,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":353,"description":354,"slug":355,"parentId":270,"order":356,"body":989,"_type":15,"_id":357,"_source":17,"_file":358,"_stem":359,"_extension":20},{"type":990,"children":991,"toc":9390},"root",[992,1000,1006,1011,1393,1400,1412,1500,1507,1512,1702,1708,1713,1904,1910,1915,2113,2119,2124,2366,2372,2384,2469,2475,2480,2651,2657,2662,2860,2866,2871,3127,3132,3138,3150,3258,3264,3269,3524,3530,3535,3839,3845,3850,4028,4034,4039,4250,4256,4261,4266,4272,4277,4474,4480,4485,4780,4786,4791,5066,5072,5077,5375,5381,5386,5391,5463,5469,5474,5817,5823,5828,6072,6078,6083,6296,6302,6307,6312,6318,6323,6502,6508,6513,6932,6938,6943,7161,7476,7482,7992,7998,8003,8269,8274,8280,8285,8291,8296,8557,8563,8568,8716,8722,8727,9023,9029,9034,9242,9332,9345,9351,9356,9362,9368,9373,9384],{"type":993,"tag":994,"props":995,"children":996},"element","h1",{"id":355},[997],{"type":998,"value":999},"text","🔗 Combining Lists",{"type":993,"tag":1001,"props":1002,"children":1003},"p",{},[1004],{"type":998,"value":1005},"Combining lists is a fundamental operation in data processing and analysis. Python provides multiple ways to merge, concatenate, and join lists together, each suited for different scenarios. Whether you need to merge data from different sources, combine related information, or create complex data structures, understanding these techniques is essential.",{"type":993,"tag":1001,"props":1007,"children":1008},{},[1009],{"type":998,"value":1010},"Effective list combination enables you to work with data from multiple sources and create comprehensive datasets for analysis and processing.",{"type":993,"tag":1012,"props":1013,"children":1014},"code-try",{},[1015],{"type":993,"tag":1016,"props":1017,"children":1020},"pre",{"className":1018,"code":1019,"language":6,"meta":8,"style":8},"language-python shiki shiki-themes github-light github-dark","# Basic list combination examples\nlist1 = [1, 2, 3]\nlist2 = [4, 5, 6]\nnames = [\"Alice\", \"Bob\", \"Charlie\"]\nages = [25, 30, 35]\n\n# Simple concatenation\ncombined = list1 + list2\nprint(\"Concatenated:\", combined)\n\n# Zipping related data\npaired = list(zip(names, ages))\nprint(\"Zipped:\", paired)\n\n# Extending one list with another\nlist1.extend(list2)\nprint(\"Extended:\", list1)\n",[1021],{"type":993,"tag":1022,"props":1023,"children":1024},"code",{"__ignoreMap":8},[1025,1036,1086,1129,1173,1216,1224,1232,1259,1282,1289,1297,1328,1349,1356,1364,1372],{"type":993,"tag":1026,"props":1027,"children":1029},"span",{"class":1028,"line":12},"line",[1030],{"type":993,"tag":1026,"props":1031,"children":1033},{"style":1032},"--shiki-default:#6A737D;--shiki-app-dark-mode:#6A737D",[1034],{"type":998,"value":1035},"# Basic list combination examples\n",{"type":993,"tag":1026,"props":1037,"children":1038},{"class":1028,"line":27},[1039,1045,1051,1056,1062,1067,1072,1076,1081],{"type":993,"tag":1026,"props":1040,"children":1042},{"style":1041},"--shiki-default:#24292E;--shiki-app-dark-mode:#E1E4E8",[1043],{"type":998,"value":1044},"list1 ",{"type":993,"tag":1026,"props":1046,"children":1048},{"style":1047},"--shiki-default:#D73A49;--shiki-app-dark-mode:#F97583",[1049],{"type":998,"value":1050},"=",{"type":993,"tag":1026,"props":1052,"children":1053},{"style":1041},[1054],{"type":998,"value":1055}," [",{"type":993,"tag":1026,"props":1057,"children":1059},{"style":1058},"--shiki-default:#005CC5;--shiki-app-dark-mode:#79B8FF",[1060],{"type":998,"value":1061},"1",{"type":993,"tag":1026,"props":1063,"children":1064},{"style":1041},[1065],{"type":998,"value":1066},", ",{"type":993,"tag":1026,"props":1068,"children":1069},{"style":1058},[1070],{"type":998,"value":1071},"2",{"type":993,"tag":1026,"props":1073,"children":1074},{"style":1041},[1075],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1077,"children":1078},{"style":1058},[1079],{"type":998,"value":1080},"3",{"type":993,"tag":1026,"props":1082,"children":1083},{"style":1041},[1084],{"type":998,"value":1085},"]\n",{"type":993,"tag":1026,"props":1087,"children":1088},{"class":1028,"line":36},[1089,1094,1098,1102,1107,1111,1116,1120,1125],{"type":993,"tag":1026,"props":1090,"children":1091},{"style":1041},[1092],{"type":998,"value":1093},"list2 ",{"type":993,"tag":1026,"props":1095,"children":1096},{"style":1047},[1097],{"type":998,"value":1050},{"type":993,"tag":1026,"props":1099,"children":1100},{"style":1041},[1101],{"type":998,"value":1055},{"type":993,"tag":1026,"props":1103,"children":1104},{"style":1058},[1105],{"type":998,"value":1106},"4",{"type":993,"tag":1026,"props":1108,"children":1109},{"style":1041},[1110],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1112,"children":1113},{"style":1058},[1114],{"type":998,"value":1115},"5",{"type":993,"tag":1026,"props":1117,"children":1118},{"style":1041},[1119],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1121,"children":1122},{"style":1058},[1123],{"type":998,"value":1124},"6",{"type":993,"tag":1026,"props":1126,"children":1127},{"style":1041},[1128],{"type":998,"value":1085},{"type":993,"tag":1026,"props":1130,"children":1131},{"class":1028,"line":45},[1132,1137,1141,1145,1151,1155,1160,1164,1169],{"type":993,"tag":1026,"props":1133,"children":1134},{"style":1041},[1135],{"type":998,"value":1136},"names ",{"type":993,"tag":1026,"props":1138,"children":1139},{"style":1047},[1140],{"type":998,"value":1050},{"type":993,"tag":1026,"props":1142,"children":1143},{"style":1041},[1144],{"type":998,"value":1055},{"type":993,"tag":1026,"props":1146,"children":1148},{"style":1147},"--shiki-default:#032F62;--shiki-app-dark-mode:#9ECBFF",[1149],{"type":998,"value":1150},"\"Alice\"",{"type":993,"tag":1026,"props":1152,"children":1153},{"style":1041},[1154],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1156,"children":1157},{"style":1147},[1158],{"type":998,"value":1159},"\"Bob\"",{"type":993,"tag":1026,"props":1161,"children":1162},{"style":1041},[1163],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1165,"children":1166},{"style":1147},[1167],{"type":998,"value":1168},"\"Charlie\"",{"type":993,"tag":1026,"props":1170,"children":1171},{"style":1041},[1172],{"type":998,"value":1085},{"type":993,"tag":1026,"props":1174,"children":1175},{"class":1028,"line":54},[1176,1181,1185,1189,1194,1198,1203,1207,1212],{"type":993,"tag":1026,"props":1177,"children":1178},{"style":1041},[1179],{"type":998,"value":1180},"ages ",{"type":993,"tag":1026,"props":1182,"children":1183},{"style":1047},[1184],{"type":998,"value":1050},{"type":993,"tag":1026,"props":1186,"children":1187},{"style":1041},[1188],{"type":998,"value":1055},{"type":993,"tag":1026,"props":1190,"children":1191},{"style":1058},[1192],{"type":998,"value":1193},"25",{"type":993,"tag":1026,"props":1195,"children":1196},{"style":1041},[1197],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1199,"children":1200},{"style":1058},[1201],{"type":998,"value":1202},"30",{"type":993,"tag":1026,"props":1204,"children":1205},{"style":1041},[1206],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1208,"children":1209},{"style":1058},[1210],{"type":998,"value":1211},"35",{"type":993,"tag":1026,"props":1213,"children":1214},{"style":1041},[1215],{"type":998,"value":1085},{"type":993,"tag":1026,"props":1217,"children":1218},{"class":1028,"line":63},[1219],{"type":993,"tag":1026,"props":1220,"children":1221},{"emptyLinePlaceholder":13},[1222],{"type":998,"value":1223},"\n",{"type":993,"tag":1026,"props":1225,"children":1226},{"class":1028,"line":72},[1227],{"type":993,"tag":1026,"props":1228,"children":1229},{"style":1032},[1230],{"type":998,"value":1231},"# Simple concatenation\n",{"type":993,"tag":1026,"props":1233,"children":1234},{"class":1028,"line":81},[1235,1240,1244,1249,1254],{"type":993,"tag":1026,"props":1236,"children":1237},{"style":1041},[1238],{"type":998,"value":1239},"combined ",{"type":993,"tag":1026,"props":1241,"children":1242},{"style":1047},[1243],{"type":998,"value":1050},{"type":993,"tag":1026,"props":1245,"children":1246},{"style":1041},[1247],{"type":998,"value":1248}," list1 ",{"type":993,"tag":1026,"props":1250,"children":1251},{"style":1047},[1252],{"type":998,"value":1253},"+",{"type":993,"tag":1026,"props":1255,"children":1256},{"style":1041},[1257],{"type":998,"value":1258}," list2\n",{"type":993,"tag":1026,"props":1260,"children":1261},{"class":1028,"line":91},[1262,1267,1272,1277],{"type":993,"tag":1026,"props":1263,"children":1264},{"style":1058},[1265],{"type":998,"value":1266},"print",{"type":993,"tag":1026,"props":1268,"children":1269},{"style":1041},[1270],{"type":998,"value":1271},"(",{"type":993,"tag":1026,"props":1273,"children":1274},{"style":1147},[1275],{"type":998,"value":1276},"\"Concatenated:\"",{"type":993,"tag":1026,"props":1278,"children":1279},{"style":1041},[1280],{"type":998,"value":1281},", combined)\n",{"type":993,"tag":1026,"props":1283,"children":1284},{"class":1028,"line":100},[1285],{"type":993,"tag":1026,"props":1286,"children":1287},{"emptyLinePlaceholder":13},[1288],{"type":998,"value":1223},{"type":993,"tag":1026,"props":1290,"children":1291},{"class":1028,"line":109},[1292],{"type":993,"tag":1026,"props":1293,"children":1294},{"style":1032},[1295],{"type":998,"value":1296},"# Zipping related data\n",{"type":993,"tag":1026,"props":1298,"children":1299},{"class":1028,"line":118},[1300,1305,1309,1314,1318,1323],{"type":993,"tag":1026,"props":1301,"children":1302},{"style":1041},[1303],{"type":998,"value":1304},"paired ",{"type":993,"tag":1026,"props":1306,"children":1307},{"style":1047},[1308],{"type":998,"value":1050},{"type":993,"tag":1026,"props":1310,"children":1311},{"style":1058},[1312],{"type":998,"value":1313}," list",{"type":993,"tag":1026,"props":1315,"children":1316},{"style":1041},[1317],{"type":998,"value":1271},{"type":993,"tag":1026,"props":1319,"children":1320},{"style":1058},[1321],{"type":998,"value":1322},"zip",{"type":993,"tag":1026,"props":1324,"children":1325},{"style":1041},[1326],{"type":998,"value":1327},"(names, ages))\n",{"type":993,"tag":1026,"props":1329,"children":1330},{"class":1028,"line":127},[1331,1335,1339,1344],{"type":993,"tag":1026,"props":1332,"children":1333},{"style":1058},[1334],{"type":998,"value":1266},{"type":993,"tag":1026,"props":1336,"children":1337},{"style":1041},[1338],{"type":998,"value":1271},{"type":993,"tag":1026,"props":1340,"children":1341},{"style":1147},[1342],{"type":998,"value":1343},"\"Zipped:\"",{"type":993,"tag":1026,"props":1345,"children":1346},{"style":1041},[1347],{"type":998,"value":1348},", paired)\n",{"type":993,"tag":1026,"props":1350,"children":1351},{"class":1028,"line":136},[1352],{"type":993,"tag":1026,"props":1353,"children":1354},{"emptyLinePlaceholder":13},[1355],{"type":998,"value":1223},{"type":993,"tag":1026,"props":1357,"children":1358},{"class":1028,"line":146},[1359],{"type":993,"tag":1026,"props":1360,"children":1361},{"style":1032},[1362],{"type":998,"value":1363},"# Extending one list with another\n",{"type":993,"tag":1026,"props":1365,"children":1366},{"class":1028,"line":155},[1367],{"type":993,"tag":1026,"props":1368,"children":1369},{"style":1041},[1370],{"type":998,"value":1371},"list1.extend(list2)\n",{"type":993,"tag":1026,"props":1373,"children":1374},{"class":1028,"line":164},[1375,1379,1383,1388],{"type":993,"tag":1026,"props":1376,"children":1377},{"style":1058},[1378],{"type":998,"value":1266},{"type":993,"tag":1026,"props":1380,"children":1381},{"style":1041},[1382],{"type":998,"value":1271},{"type":993,"tag":1026,"props":1384,"children":1385},{"style":1147},[1386],{"type":998,"value":1387},"\"Extended:\"",{"type":993,"tag":1026,"props":1389,"children":1390},{"style":1041},[1391],{"type":998,"value":1392},", list1)\n",{"type":993,"tag":1394,"props":1395,"children":1397},"h2",{"id":1396},"list-concatenation-with-operator",[1398],{"type":998,"value":1399},"➕ List Concatenation with + Operator",{"type":993,"tag":1001,"props":1401,"children":1402},{},[1403,1405,1410],{"type":998,"value":1404},"The ",{"type":993,"tag":1022,"props":1406,"children":1408},{"className":1407},[],[1409],{"type":998,"value":1253},{"type":998,"value":1411}," operator is the simplest way to combine lists. It creates a new list containing all elements from both lists without modifying the originals.",{"type":993,"tag":1413,"props":1414,"children":1418},"info-box",{"title":1415,"type":1416,"emoji":1417},"Concatenation Characteristics","info","➕",[1419,1428,1459,1467,1490],{"type":993,"tag":1001,"props":1420,"children":1421},{},[1422],{"type":993,"tag":1423,"props":1424,"children":1425},"strong",{},[1426],{"type":998,"value":1427},"How + Operator Works:",{"type":993,"tag":1429,"props":1430,"children":1431},"ul",{},[1432,1438,1443,1454],{"type":993,"tag":1433,"props":1434,"children":1435},"li",{},[1436],{"type":998,"value":1437},"Creates a new list (doesn't modify originals)",{"type":993,"tag":1433,"props":1439,"children":1440},{},[1441],{"type":998,"value":1442},"Combines elements in order (left list first, then right)",{"type":993,"tag":1433,"props":1444,"children":1445},{},[1446,1448],{"type":998,"value":1447},"Works with any number of lists: ",{"type":993,"tag":1022,"props":1449,"children":1451},{"className":1450},[],[1452],{"type":998,"value":1453},"a + b + c",{"type":993,"tag":1433,"props":1455,"children":1456},{},[1457],{"type":998,"value":1458},"Both operands must be lists (or same sequence type)",{"type":993,"tag":1001,"props":1460,"children":1461},{},[1462],{"type":993,"tag":1423,"props":1463,"children":1464},{},[1465],{"type":998,"value":1466},"Memory Considerations:",{"type":993,"tag":1429,"props":1468,"children":1469},{},[1470,1475,1480,1485],{"type":993,"tag":1433,"props":1471,"children":1472},{},[1473],{"type":998,"value":1474},"Creates new list in memory",{"type":993,"tag":1433,"props":1476,"children":1477},{},[1478],{"type":998,"value":1479},"Original lists remain unchanged",{"type":993,"tag":1433,"props":1481,"children":1482},{},[1483],{"type":998,"value":1484},"Good for preserving original data",{"type":993,"tag":1433,"props":1486,"children":1487},{},[1488],{"type":998,"value":1489},"Less memory efficient than in-place methods",{"type":993,"tag":1001,"props":1491,"children":1492},{},[1493,1498],{"type":993,"tag":1423,"props":1494,"children":1495},{},[1496],{"type":998,"value":1497},"Use When:",{"type":998,"value":1499}," You need to preserve original lists or create multiple combinations",{"type":993,"tag":1501,"props":1502,"children":1504},"h3",{"id":1503},"basic-concatenation",[1505],{"type":998,"value":1506},"Basic Concatenation",{"type":993,"tag":1001,"props":1508,"children":1509},{},[1510],{"type":998,"value":1511},"Simple list joining for creating new combined datasets.",{"type":993,"tag":1012,"props":1513,"children":1514},{},[1515],{"type":993,"tag":1016,"props":1516,"children":1518},{"className":1018,"code":1517,"language":6,"meta":8,"style":8},"# Basic list concatenation\nfruits = [\"apple\", \"banana\"]\nvegetables = [\"carrot\", \"broccoli\"]\n\n# Combine with + operator\nfood = fruits + vegetables\nprint(\"Fruits:\", fruits)\nprint(\"Vegetables:\", vegetables)\nprint(\"Combined food:\", food)\n",[1519],{"type":993,"tag":1022,"props":1520,"children":1521},{"__ignoreMap":8},[1522,1530,1564,1598,1605,1613,1639,1660,1681],{"type":993,"tag":1026,"props":1523,"children":1524},{"class":1028,"line":12},[1525],{"type":993,"tag":1026,"props":1526,"children":1527},{"style":1032},[1528],{"type":998,"value":1529},"# Basic list concatenation\n",{"type":993,"tag":1026,"props":1531,"children":1532},{"class":1028,"line":27},[1533,1538,1542,1546,1551,1555,1560],{"type":993,"tag":1026,"props":1534,"children":1535},{"style":1041},[1536],{"type":998,"value":1537},"fruits ",{"type":993,"tag":1026,"props":1539,"children":1540},{"style":1047},[1541],{"type":998,"value":1050},{"type":993,"tag":1026,"props":1543,"children":1544},{"style":1041},[1545],{"type":998,"value":1055},{"type":993,"tag":1026,"props":1547,"children":1548},{"style":1147},[1549],{"type":998,"value":1550},"\"apple\"",{"type":993,"tag":1026,"props":1552,"children":1553},{"style":1041},[1554],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1556,"children":1557},{"style":1147},[1558],{"type":998,"value":1559},"\"banana\"",{"type":993,"tag":1026,"props":1561,"children":1562},{"style":1041},[1563],{"type":998,"value":1085},{"type":993,"tag":1026,"props":1565,"children":1566},{"class":1028,"line":36},[1567,1572,1576,1580,1585,1589,1594],{"type":993,"tag":1026,"props":1568,"children":1569},{"style":1041},[1570],{"type":998,"value":1571},"vegetables ",{"type":993,"tag":1026,"props":1573,"children":1574},{"style":1047},[1575],{"type":998,"value":1050},{"type":993,"tag":1026,"props":1577,"children":1578},{"style":1041},[1579],{"type":998,"value":1055},{"type":993,"tag":1026,"props":1581,"children":1582},{"style":1147},[1583],{"type":998,"value":1584},"\"carrot\"",{"type":993,"tag":1026,"props":1586,"children":1587},{"style":1041},[1588],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1590,"children":1591},{"style":1147},[1592],{"type":998,"value":1593},"\"broccoli\"",{"type":993,"tag":1026,"props":1595,"children":1596},{"style":1041},[1597],{"type":998,"value":1085},{"type":993,"tag":1026,"props":1599,"children":1600},{"class":1028,"line":45},[1601],{"type":993,"tag":1026,"props":1602,"children":1603},{"emptyLinePlaceholder":13},[1604],{"type":998,"value":1223},{"type":993,"tag":1026,"props":1606,"children":1607},{"class":1028,"line":54},[1608],{"type":993,"tag":1026,"props":1609,"children":1610},{"style":1032},[1611],{"type":998,"value":1612},"# Combine with + operator\n",{"type":993,"tag":1026,"props":1614,"children":1615},{"class":1028,"line":63},[1616,1621,1625,1630,1634],{"type":993,"tag":1026,"props":1617,"children":1618},{"style":1041},[1619],{"type":998,"value":1620},"food ",{"type":993,"tag":1026,"props":1622,"children":1623},{"style":1047},[1624],{"type":998,"value":1050},{"type":993,"tag":1026,"props":1626,"children":1627},{"style":1041},[1628],{"type":998,"value":1629}," fruits ",{"type":993,"tag":1026,"props":1631,"children":1632},{"style":1047},[1633],{"type":998,"value":1253},{"type":993,"tag":1026,"props":1635,"children":1636},{"style":1041},[1637],{"type":998,"value":1638}," vegetables\n",{"type":993,"tag":1026,"props":1640,"children":1641},{"class":1028,"line":72},[1642,1646,1650,1655],{"type":993,"tag":1026,"props":1643,"children":1644},{"style":1058},[1645],{"type":998,"value":1266},{"type":993,"tag":1026,"props":1647,"children":1648},{"style":1041},[1649],{"type":998,"value":1271},{"type":993,"tag":1026,"props":1651,"children":1652},{"style":1147},[1653],{"type":998,"value":1654},"\"Fruits:\"",{"type":993,"tag":1026,"props":1656,"children":1657},{"style":1041},[1658],{"type":998,"value":1659},", fruits)\n",{"type":993,"tag":1026,"props":1661,"children":1662},{"class":1028,"line":81},[1663,1667,1671,1676],{"type":993,"tag":1026,"props":1664,"children":1665},{"style":1058},[1666],{"type":998,"value":1266},{"type":993,"tag":1026,"props":1668,"children":1669},{"style":1041},[1670],{"type":998,"value":1271},{"type":993,"tag":1026,"props":1672,"children":1673},{"style":1147},[1674],{"type":998,"value":1675},"\"Vegetables:\"",{"type":993,"tag":1026,"props":1677,"children":1678},{"style":1041},[1679],{"type":998,"value":1680},", vegetables)\n",{"type":993,"tag":1026,"props":1682,"children":1683},{"class":1028,"line":91},[1684,1688,1692,1697],{"type":993,"tag":1026,"props":1685,"children":1686},{"style":1058},[1687],{"type":998,"value":1266},{"type":993,"tag":1026,"props":1689,"children":1690},{"style":1041},[1691],{"type":998,"value":1271},{"type":993,"tag":1026,"props":1693,"children":1694},{"style":1147},[1695],{"type":998,"value":1696},"\"Combined food:\"",{"type":993,"tag":1026,"props":1698,"children":1699},{"style":1041},[1700],{"type":998,"value":1701},", food)\n",{"type":993,"tag":1501,"props":1703,"children":1705},{"id":1704},"multiple-list-concatenation",[1706],{"type":998,"value":1707},"Multiple List Concatenation",{"type":993,"tag":1001,"props":1709,"children":1710},{},[1711],{"type":998,"value":1712},"Chaining multiple lists together for comprehensive data collection.",{"type":993,"tag":1012,"props":1714,"children":1715},{},[1716],{"type":993,"tag":1016,"props":1717,"children":1719},{"className":1018,"code":1718,"language":6,"meta":8,"style":8},"# Combining multiple lists\nbreakfast = [\"eggs\", \"toast\"]\nlunch = [\"sandwich\", \"soup\"]\ndinner = [\"pasta\", \"salad\"]\n\n# Combine all meals\nall_meals = breakfast + lunch + dinner\nprint(\"All meals:\", all_meals)\n",[1720],{"type":993,"tag":1022,"props":1721,"children":1722},{"__ignoreMap":8},[1723,1731,1765,1799,1833,1840,1848,1883],{"type":993,"tag":1026,"props":1724,"children":1725},{"class":1028,"line":12},[1726],{"type":993,"tag":1026,"props":1727,"children":1728},{"style":1032},[1729],{"type":998,"value":1730},"# Combining multiple lists\n",{"type":993,"tag":1026,"props":1732,"children":1733},{"class":1028,"line":27},[1734,1739,1743,1747,1752,1756,1761],{"type":993,"tag":1026,"props":1735,"children":1736},{"style":1041},[1737],{"type":998,"value":1738},"breakfast ",{"type":993,"tag":1026,"props":1740,"children":1741},{"style":1047},[1742],{"type":998,"value":1050},{"type":993,"tag":1026,"props":1744,"children":1745},{"style":1041},[1746],{"type":998,"value":1055},{"type":993,"tag":1026,"props":1748,"children":1749},{"style":1147},[1750],{"type":998,"value":1751},"\"eggs\"",{"type":993,"tag":1026,"props":1753,"children":1754},{"style":1041},[1755],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1757,"children":1758},{"style":1147},[1759],{"type":998,"value":1760},"\"toast\"",{"type":993,"tag":1026,"props":1762,"children":1763},{"style":1041},[1764],{"type":998,"value":1085},{"type":993,"tag":1026,"props":1766,"children":1767},{"class":1028,"line":36},[1768,1773,1777,1781,1786,1790,1795],{"type":993,"tag":1026,"props":1769,"children":1770},{"style":1041},[1771],{"type":998,"value":1772},"lunch ",{"type":993,"tag":1026,"props":1774,"children":1775},{"style":1047},[1776],{"type":998,"value":1050},{"type":993,"tag":1026,"props":1778,"children":1779},{"style":1041},[1780],{"type":998,"value":1055},{"type":993,"tag":1026,"props":1782,"children":1783},{"style":1147},[1784],{"type":998,"value":1785},"\"sandwich\"",{"type":993,"tag":1026,"props":1787,"children":1788},{"style":1041},[1789],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1791,"children":1792},{"style":1147},[1793],{"type":998,"value":1794},"\"soup\"",{"type":993,"tag":1026,"props":1796,"children":1797},{"style":1041},[1798],{"type":998,"value":1085},{"type":993,"tag":1026,"props":1800,"children":1801},{"class":1028,"line":45},[1802,1807,1811,1815,1820,1824,1829],{"type":993,"tag":1026,"props":1803,"children":1804},{"style":1041},[1805],{"type":998,"value":1806},"dinner ",{"type":993,"tag":1026,"props":1808,"children":1809},{"style":1047},[1810],{"type":998,"value":1050},{"type":993,"tag":1026,"props":1812,"children":1813},{"style":1041},[1814],{"type":998,"value":1055},{"type":993,"tag":1026,"props":1816,"children":1817},{"style":1147},[1818],{"type":998,"value":1819},"\"pasta\"",{"type":993,"tag":1026,"props":1821,"children":1822},{"style":1041},[1823],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1825,"children":1826},{"style":1147},[1827],{"type":998,"value":1828},"\"salad\"",{"type":993,"tag":1026,"props":1830,"children":1831},{"style":1041},[1832],{"type":998,"value":1085},{"type":993,"tag":1026,"props":1834,"children":1835},{"class":1028,"line":54},[1836],{"type":993,"tag":1026,"props":1837,"children":1838},{"emptyLinePlaceholder":13},[1839],{"type":998,"value":1223},{"type":993,"tag":1026,"props":1841,"children":1842},{"class":1028,"line":63},[1843],{"type":993,"tag":1026,"props":1844,"children":1845},{"style":1032},[1846],{"type":998,"value":1847},"# Combine all meals\n",{"type":993,"tag":1026,"props":1849,"children":1850},{"class":1028,"line":72},[1851,1856,1860,1865,1869,1874,1878],{"type":993,"tag":1026,"props":1852,"children":1853},{"style":1041},[1854],{"type":998,"value":1855},"all_meals ",{"type":993,"tag":1026,"props":1857,"children":1858},{"style":1047},[1859],{"type":998,"value":1050},{"type":993,"tag":1026,"props":1861,"children":1862},{"style":1041},[1863],{"type":998,"value":1864}," breakfast ",{"type":993,"tag":1026,"props":1866,"children":1867},{"style":1047},[1868],{"type":998,"value":1253},{"type":993,"tag":1026,"props":1870,"children":1871},{"style":1041},[1872],{"type":998,"value":1873}," lunch ",{"type":993,"tag":1026,"props":1875,"children":1876},{"style":1047},[1877],{"type":998,"value":1253},{"type":993,"tag":1026,"props":1879,"children":1880},{"style":1041},[1881],{"type":998,"value":1882}," dinner\n",{"type":993,"tag":1026,"props":1884,"children":1885},{"class":1028,"line":81},[1886,1890,1894,1899],{"type":993,"tag":1026,"props":1887,"children":1888},{"style":1058},[1889],{"type":998,"value":1266},{"type":993,"tag":1026,"props":1891,"children":1892},{"style":1041},[1893],{"type":998,"value":1271},{"type":993,"tag":1026,"props":1895,"children":1896},{"style":1147},[1897],{"type":998,"value":1898},"\"All meals:\"",{"type":993,"tag":1026,"props":1900,"children":1901},{"style":1041},[1902],{"type":998,"value":1903},", all_meals)\n",{"type":993,"tag":1501,"props":1905,"children":1907},{"id":1906},"concatenation-with-mixed-types",[1908],{"type":998,"value":1909},"Concatenation with Mixed Types",{"type":993,"tag":1001,"props":1911,"children":1912},{},[1913],{"type":998,"value":1914},"Combining lists containing different data types for heterogeneous collections.",{"type":993,"tag":1012,"props":1916,"children":1917},{},[1918],{"type":993,"tag":1016,"props":1919,"children":1921},{"className":1018,"code":1920,"language":6,"meta":8,"style":8},"# Combining lists with different data types\nnumbers = [1, 2, 3]\nstrings = [\"a\", \"b\", \"c\"]\nbooleans = [True, False]\n\nmixed = numbers + strings + booleans\nprint(\"Mixed list:\", mixed)\n",[1922],{"type":993,"tag":1022,"props":1923,"children":1924},{"__ignoreMap":8},[1925,1933,1973,2016,2050,2057,2092],{"type":993,"tag":1026,"props":1926,"children":1927},{"class":1028,"line":12},[1928],{"type":993,"tag":1026,"props":1929,"children":1930},{"style":1032},[1931],{"type":998,"value":1932},"# Combining lists with different data types\n",{"type":993,"tag":1026,"props":1934,"children":1935},{"class":1028,"line":27},[1936,1941,1945,1949,1953,1957,1961,1965,1969],{"type":993,"tag":1026,"props":1937,"children":1938},{"style":1041},[1939],{"type":998,"value":1940},"numbers ",{"type":993,"tag":1026,"props":1942,"children":1943},{"style":1047},[1944],{"type":998,"value":1050},{"type":993,"tag":1026,"props":1946,"children":1947},{"style":1041},[1948],{"type":998,"value":1055},{"type":993,"tag":1026,"props":1950,"children":1951},{"style":1058},[1952],{"type":998,"value":1061},{"type":993,"tag":1026,"props":1954,"children":1955},{"style":1041},[1956],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1958,"children":1959},{"style":1058},[1960],{"type":998,"value":1071},{"type":993,"tag":1026,"props":1962,"children":1963},{"style":1041},[1964],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1966,"children":1967},{"style":1058},[1968],{"type":998,"value":1080},{"type":993,"tag":1026,"props":1970,"children":1971},{"style":1041},[1972],{"type":998,"value":1085},{"type":993,"tag":1026,"props":1974,"children":1975},{"class":1028,"line":36},[1976,1981,1985,1989,1994,1998,2003,2007,2012],{"type":993,"tag":1026,"props":1977,"children":1978},{"style":1041},[1979],{"type":998,"value":1980},"strings ",{"type":993,"tag":1026,"props":1982,"children":1983},{"style":1047},[1984],{"type":998,"value":1050},{"type":993,"tag":1026,"props":1986,"children":1987},{"style":1041},[1988],{"type":998,"value":1055},{"type":993,"tag":1026,"props":1990,"children":1991},{"style":1147},[1992],{"type":998,"value":1993},"\"a\"",{"type":993,"tag":1026,"props":1995,"children":1996},{"style":1041},[1997],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1999,"children":2000},{"style":1147},[2001],{"type":998,"value":2002},"\"b\"",{"type":993,"tag":1026,"props":2004,"children":2005},{"style":1041},[2006],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2008,"children":2009},{"style":1147},[2010],{"type":998,"value":2011},"\"c\"",{"type":993,"tag":1026,"props":2013,"children":2014},{"style":1041},[2015],{"type":998,"value":1085},{"type":993,"tag":1026,"props":2017,"children":2018},{"class":1028,"line":45},[2019,2024,2028,2032,2037,2041,2046],{"type":993,"tag":1026,"props":2020,"children":2021},{"style":1041},[2022],{"type":998,"value":2023},"booleans ",{"type":993,"tag":1026,"props":2025,"children":2026},{"style":1047},[2027],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2029,"children":2030},{"style":1041},[2031],{"type":998,"value":1055},{"type":993,"tag":1026,"props":2033,"children":2034},{"style":1058},[2035],{"type":998,"value":2036},"True",{"type":993,"tag":1026,"props":2038,"children":2039},{"style":1041},[2040],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2042,"children":2043},{"style":1058},[2044],{"type":998,"value":2045},"False",{"type":993,"tag":1026,"props":2047,"children":2048},{"style":1041},[2049],{"type":998,"value":1085},{"type":993,"tag":1026,"props":2051,"children":2052},{"class":1028,"line":54},[2053],{"type":993,"tag":1026,"props":2054,"children":2055},{"emptyLinePlaceholder":13},[2056],{"type":998,"value":1223},{"type":993,"tag":1026,"props":2058,"children":2059},{"class":1028,"line":63},[2060,2065,2069,2074,2078,2083,2087],{"type":993,"tag":1026,"props":2061,"children":2062},{"style":1041},[2063],{"type":998,"value":2064},"mixed ",{"type":993,"tag":1026,"props":2066,"children":2067},{"style":1047},[2068],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2070,"children":2071},{"style":1041},[2072],{"type":998,"value":2073}," numbers ",{"type":993,"tag":1026,"props":2075,"children":2076},{"style":1047},[2077],{"type":998,"value":1253},{"type":993,"tag":1026,"props":2079,"children":2080},{"style":1041},[2081],{"type":998,"value":2082}," strings ",{"type":993,"tag":1026,"props":2084,"children":2085},{"style":1047},[2086],{"type":998,"value":1253},{"type":993,"tag":1026,"props":2088,"children":2089},{"style":1041},[2090],{"type":998,"value":2091}," booleans\n",{"type":993,"tag":1026,"props":2093,"children":2094},{"class":1028,"line":72},[2095,2099,2103,2108],{"type":993,"tag":1026,"props":2096,"children":2097},{"style":1058},[2098],{"type":998,"value":1266},{"type":993,"tag":1026,"props":2100,"children":2101},{"style":1041},[2102],{"type":998,"value":1271},{"type":993,"tag":1026,"props":2104,"children":2105},{"style":1147},[2106],{"type":998,"value":2107},"\"Mixed list:\"",{"type":993,"tag":1026,"props":2109,"children":2110},{"style":1041},[2111],{"type":998,"value":2112},", mixed)\n",{"type":993,"tag":1501,"props":2114,"children":2116},{"id":2115},"building-complex-structures",[2117],{"type":998,"value":2118},"Building Complex Structures",{"type":993,"tag":1001,"props":2120,"children":2121},{},[2122],{"type":998,"value":2123},"Creating structured data formats like tables or matrices through concatenation.",{"type":993,"tag":1012,"props":2125,"children":2126},{},[2127],{"type":993,"tag":1016,"props":2128,"children":2130},{"className":1018,"code":2129,"language":6,"meta":8,"style":8},"# Building complex data structures\nheaders = [\"Name\", \"Age\", \"City\"]\nrow1 = [\"Alice\", 25, \"New York\"]\nrow2 = [\"Bob\", 30, \"London\"]\n\ntable = [headers] + [row1] + [row2]\nprint(\"Table structure:\")\nfor row in table:\n    print(row)\n",[2131],{"type":993,"tag":1022,"props":2132,"children":2133},{"__ignoreMap":8},[2134,2142,2185,2226,2267,2274,2309,2330,2353],{"type":993,"tag":1026,"props":2135,"children":2136},{"class":1028,"line":12},[2137],{"type":993,"tag":1026,"props":2138,"children":2139},{"style":1032},[2140],{"type":998,"value":2141},"# Building complex data structures\n",{"type":993,"tag":1026,"props":2143,"children":2144},{"class":1028,"line":27},[2145,2150,2154,2158,2163,2167,2172,2176,2181],{"type":993,"tag":1026,"props":2146,"children":2147},{"style":1041},[2148],{"type":998,"value":2149},"headers ",{"type":993,"tag":1026,"props":2151,"children":2152},{"style":1047},[2153],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2155,"children":2156},{"style":1041},[2157],{"type":998,"value":1055},{"type":993,"tag":1026,"props":2159,"children":2160},{"style":1147},[2161],{"type":998,"value":2162},"\"Name\"",{"type":993,"tag":1026,"props":2164,"children":2165},{"style":1041},[2166],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2168,"children":2169},{"style":1147},[2170],{"type":998,"value":2171},"\"Age\"",{"type":993,"tag":1026,"props":2173,"children":2174},{"style":1041},[2175],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2177,"children":2178},{"style":1147},[2179],{"type":998,"value":2180},"\"City\"",{"type":993,"tag":1026,"props":2182,"children":2183},{"style":1041},[2184],{"type":998,"value":1085},{"type":993,"tag":1026,"props":2186,"children":2187},{"class":1028,"line":36},[2188,2193,2197,2201,2205,2209,2213,2217,2222],{"type":993,"tag":1026,"props":2189,"children":2190},{"style":1041},[2191],{"type":998,"value":2192},"row1 ",{"type":993,"tag":1026,"props":2194,"children":2195},{"style":1047},[2196],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2198,"children":2199},{"style":1041},[2200],{"type":998,"value":1055},{"type":993,"tag":1026,"props":2202,"children":2203},{"style":1147},[2204],{"type":998,"value":1150},{"type":993,"tag":1026,"props":2206,"children":2207},{"style":1041},[2208],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2210,"children":2211},{"style":1058},[2212],{"type":998,"value":1193},{"type":993,"tag":1026,"props":2214,"children":2215},{"style":1041},[2216],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2218,"children":2219},{"style":1147},[2220],{"type":998,"value":2221},"\"New York\"",{"type":993,"tag":1026,"props":2223,"children":2224},{"style":1041},[2225],{"type":998,"value":1085},{"type":993,"tag":1026,"props":2227,"children":2228},{"class":1028,"line":45},[2229,2234,2238,2242,2246,2250,2254,2258,2263],{"type":993,"tag":1026,"props":2230,"children":2231},{"style":1041},[2232],{"type":998,"value":2233},"row2 ",{"type":993,"tag":1026,"props":2235,"children":2236},{"style":1047},[2237],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2239,"children":2240},{"style":1041},[2241],{"type":998,"value":1055},{"type":993,"tag":1026,"props":2243,"children":2244},{"style":1147},[2245],{"type":998,"value":1159},{"type":993,"tag":1026,"props":2247,"children":2248},{"style":1041},[2249],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2251,"children":2252},{"style":1058},[2253],{"type":998,"value":1202},{"type":993,"tag":1026,"props":2255,"children":2256},{"style":1041},[2257],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2259,"children":2260},{"style":1147},[2261],{"type":998,"value":2262},"\"London\"",{"type":993,"tag":1026,"props":2264,"children":2265},{"style":1041},[2266],{"type":998,"value":1085},{"type":993,"tag":1026,"props":2268,"children":2269},{"class":1028,"line":54},[2270],{"type":993,"tag":1026,"props":2271,"children":2272},{"emptyLinePlaceholder":13},[2273],{"type":998,"value":1223},{"type":993,"tag":1026,"props":2275,"children":2276},{"class":1028,"line":63},[2277,2282,2286,2291,2295,2300,2304],{"type":993,"tag":1026,"props":2278,"children":2279},{"style":1041},[2280],{"type":998,"value":2281},"table ",{"type":993,"tag":1026,"props":2283,"children":2284},{"style":1047},[2285],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2287,"children":2288},{"style":1041},[2289],{"type":998,"value":2290}," [headers] ",{"type":993,"tag":1026,"props":2292,"children":2293},{"style":1047},[2294],{"type":998,"value":1253},{"type":993,"tag":1026,"props":2296,"children":2297},{"style":1041},[2298],{"type":998,"value":2299}," [row1] ",{"type":993,"tag":1026,"props":2301,"children":2302},{"style":1047},[2303],{"type":998,"value":1253},{"type":993,"tag":1026,"props":2305,"children":2306},{"style":1041},[2307],{"type":998,"value":2308}," [row2]\n",{"type":993,"tag":1026,"props":2310,"children":2311},{"class":1028,"line":72},[2312,2316,2320,2325],{"type":993,"tag":1026,"props":2313,"children":2314},{"style":1058},[2315],{"type":998,"value":1266},{"type":993,"tag":1026,"props":2317,"children":2318},{"style":1041},[2319],{"type":998,"value":1271},{"type":993,"tag":1026,"props":2321,"children":2322},{"style":1147},[2323],{"type":998,"value":2324},"\"Table structure:\"",{"type":993,"tag":1026,"props":2326,"children":2327},{"style":1041},[2328],{"type":998,"value":2329},")\n",{"type":993,"tag":1026,"props":2331,"children":2332},{"class":1028,"line":81},[2333,2338,2343,2348],{"type":993,"tag":1026,"props":2334,"children":2335},{"style":1047},[2336],{"type":998,"value":2337},"for",{"type":993,"tag":1026,"props":2339,"children":2340},{"style":1041},[2341],{"type":998,"value":2342}," row ",{"type":993,"tag":1026,"props":2344,"children":2345},{"style":1047},[2346],{"type":998,"value":2347},"in",{"type":993,"tag":1026,"props":2349,"children":2350},{"style":1041},[2351],{"type":998,"value":2352}," table:\n",{"type":993,"tag":1026,"props":2354,"children":2355},{"class":1028,"line":91},[2356,2361],{"type":993,"tag":1026,"props":2357,"children":2358},{"style":1058},[2359],{"type":998,"value":2360},"    print",{"type":993,"tag":1026,"props":2362,"children":2363},{"style":1041},[2364],{"type":998,"value":2365},"(row)\n",{"type":993,"tag":1394,"props":2367,"children":2369},{"id":2368},"using-extend-method",[2370],{"type":998,"value":2371},"📈 Using extend() Method",{"type":993,"tag":1001,"props":2373,"children":2374},{},[2375,2376,2382],{"type":998,"value":1404},{"type":993,"tag":1022,"props":2377,"children":2379},{"className":2378},[],[2380],{"type":998,"value":2381},"extend()",{"type":998,"value":2383}," method adds all elements from one list to another, modifying the original list. This is more memory-efficient than concatenation when you don't need to preserve the original.",{"type":993,"tag":1413,"props":2385,"children":2389},{"title":2386,"type":2387,"emoji":2388},"extend() Method Benefits","success","📈",[2390,2398,2429,2437,2460],{"type":993,"tag":1001,"props":2391,"children":2392},{},[2393],{"type":993,"tag":1423,"props":2394,"children":2395},{},[2396],{"type":998,"value":2397},"Key Characteristics:",{"type":993,"tag":1429,"props":2399,"children":2400},{},[2401,2406,2411,2424],{"type":993,"tag":1433,"props":2402,"children":2403},{},[2404],{"type":998,"value":2405},"Modifies the original list in-place",{"type":993,"tag":1433,"props":2407,"children":2408},{},[2409],{"type":998,"value":2410},"More memory efficient than concatenation",{"type":993,"tag":1433,"props":2412,"children":2413},{},[2414,2416,2422],{"type":998,"value":2415},"Returns ",{"type":993,"tag":1022,"props":2417,"children":2419},{"className":2418},[],[2420],{"type":998,"value":2421},"None",{"type":998,"value":2423}," (doesn't return new list)",{"type":993,"tag":1433,"props":2425,"children":2426},{},[2427],{"type":998,"value":2428},"Accepts any iterable (lists, tuples, strings, etc.)",{"type":993,"tag":1001,"props":2430,"children":2431},{},[2432],{"type":993,"tag":1423,"props":2433,"children":2434},{},[2435],{"type":998,"value":2436},"Performance Advantages:",{"type":993,"tag":1429,"props":2438,"children":2439},{},[2440,2445,2450,2455],{"type":993,"tag":1433,"props":2441,"children":2442},{},[2443],{"type":998,"value":2444},"No new list creation",{"type":993,"tag":1433,"props":2446,"children":2447},{},[2448],{"type":998,"value":2449},"Lower memory usage",{"type":993,"tag":1433,"props":2451,"children":2452},{},[2453],{"type":998,"value":2454},"Faster for large lists",{"type":993,"tag":1433,"props":2456,"children":2457},{},[2458],{"type":998,"value":2459},"Ideal for building lists incrementally",{"type":993,"tag":1001,"props":2461,"children":2462},{},[2463,2467],{"type":993,"tag":1423,"props":2464,"children":2465},{},[2466],{"type":998,"value":1497},{"type":998,"value":2468}," You want to modify existing list or build lists dynamically",{"type":993,"tag":1501,"props":2470,"children":2472},{"id":2471},"basic-extend-usage",[2473],{"type":998,"value":2474},"Basic extend() Usage",{"type":993,"tag":1001,"props":2476,"children":2477},{},[2478],{"type":998,"value":2479},"In-place list growth for efficient memory usage and dynamic list building.",{"type":993,"tag":1012,"props":2481,"children":2482},{},[2483],{"type":993,"tag":1016,"props":2484,"children":2486},{"className":1018,"code":2485,"language":6,"meta":8,"style":8},"# Using extend() method\nshopping_list = [\"bread\", \"milk\"]\nprint(\"Original shopping list:\", shopping_list)\n\nadditional_items = [\"eggs\", \"cheese\", \"butter\"]\nshopping_list.extend(additional_items)\nprint(\"After extending:\", shopping_list)\nprint(\"Additional items unchanged:\", additional_items)\n",[2487],{"type":993,"tag":1022,"props":2488,"children":2489},{"__ignoreMap":8},[2490,2498,2532,2553,2560,2602,2610,2630],{"type":993,"tag":1026,"props":2491,"children":2492},{"class":1028,"line":12},[2493],{"type":993,"tag":1026,"props":2494,"children":2495},{"style":1032},[2496],{"type":998,"value":2497},"# Using extend() method\n",{"type":993,"tag":1026,"props":2499,"children":2500},{"class":1028,"line":27},[2501,2506,2510,2514,2519,2523,2528],{"type":993,"tag":1026,"props":2502,"children":2503},{"style":1041},[2504],{"type":998,"value":2505},"shopping_list ",{"type":993,"tag":1026,"props":2507,"children":2508},{"style":1047},[2509],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2511,"children":2512},{"style":1041},[2513],{"type":998,"value":1055},{"type":993,"tag":1026,"props":2515,"children":2516},{"style":1147},[2517],{"type":998,"value":2518},"\"bread\"",{"type":993,"tag":1026,"props":2520,"children":2521},{"style":1041},[2522],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2524,"children":2525},{"style":1147},[2526],{"type":998,"value":2527},"\"milk\"",{"type":993,"tag":1026,"props":2529,"children":2530},{"style":1041},[2531],{"type":998,"value":1085},{"type":993,"tag":1026,"props":2533,"children":2534},{"class":1028,"line":36},[2535,2539,2543,2548],{"type":993,"tag":1026,"props":2536,"children":2537},{"style":1058},[2538],{"type":998,"value":1266},{"type":993,"tag":1026,"props":2540,"children":2541},{"style":1041},[2542],{"type":998,"value":1271},{"type":993,"tag":1026,"props":2544,"children":2545},{"style":1147},[2546],{"type":998,"value":2547},"\"Original shopping list:\"",{"type":993,"tag":1026,"props":2549,"children":2550},{"style":1041},[2551],{"type":998,"value":2552},", shopping_list)\n",{"type":993,"tag":1026,"props":2554,"children":2555},{"class":1028,"line":45},[2556],{"type":993,"tag":1026,"props":2557,"children":2558},{"emptyLinePlaceholder":13},[2559],{"type":998,"value":1223},{"type":993,"tag":1026,"props":2561,"children":2562},{"class":1028,"line":54},[2563,2568,2572,2576,2580,2584,2589,2593,2598],{"type":993,"tag":1026,"props":2564,"children":2565},{"style":1041},[2566],{"type":998,"value":2567},"additional_items ",{"type":993,"tag":1026,"props":2569,"children":2570},{"style":1047},[2571],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2573,"children":2574},{"style":1041},[2575],{"type":998,"value":1055},{"type":993,"tag":1026,"props":2577,"children":2578},{"style":1147},[2579],{"type":998,"value":1751},{"type":993,"tag":1026,"props":2581,"children":2582},{"style":1041},[2583],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2585,"children":2586},{"style":1147},[2587],{"type":998,"value":2588},"\"cheese\"",{"type":993,"tag":1026,"props":2590,"children":2591},{"style":1041},[2592],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2594,"children":2595},{"style":1147},[2596],{"type":998,"value":2597},"\"butter\"",{"type":993,"tag":1026,"props":2599,"children":2600},{"style":1041},[2601],{"type":998,"value":1085},{"type":993,"tag":1026,"props":2603,"children":2604},{"class":1028,"line":63},[2605],{"type":993,"tag":1026,"props":2606,"children":2607},{"style":1041},[2608],{"type":998,"value":2609},"shopping_list.extend(additional_items)\n",{"type":993,"tag":1026,"props":2611,"children":2612},{"class":1028,"line":72},[2613,2617,2621,2626],{"type":993,"tag":1026,"props":2614,"children":2615},{"style":1058},[2616],{"type":998,"value":1266},{"type":993,"tag":1026,"props":2618,"children":2619},{"style":1041},[2620],{"type":998,"value":1271},{"type":993,"tag":1026,"props":2622,"children":2623},{"style":1147},[2624],{"type":998,"value":2625},"\"After extending:\"",{"type":993,"tag":1026,"props":2627,"children":2628},{"style":1041},[2629],{"type":998,"value":2552},{"type":993,"tag":1026,"props":2631,"children":2632},{"class":1028,"line":81},[2633,2637,2641,2646],{"type":993,"tag":1026,"props":2634,"children":2635},{"style":1058},[2636],{"type":998,"value":1266},{"type":993,"tag":1026,"props":2638,"children":2639},{"style":1041},[2640],{"type":998,"value":1271},{"type":993,"tag":1026,"props":2642,"children":2643},{"style":1147},[2644],{"type":998,"value":2645},"\"Additional items unchanged:\"",{"type":993,"tag":1026,"props":2647,"children":2648},{"style":1041},[2649],{"type":998,"value":2650},", additional_items)\n",{"type":993,"tag":1501,"props":2652,"children":2654},{"id":2653},"extending-with-different-iterables",[2655],{"type":998,"value":2656},"Extending with Different Iterables",{"type":993,"tag":1001,"props":2658,"children":2659},{},[2660],{"type":998,"value":2661},"Flexible list growth using various iterable types for diverse data sources.",{"type":993,"tag":1012,"props":2663,"children":2664},{},[2665],{"type":993,"tag":1016,"props":2666,"children":2668},{"className":1018,"code":2667,"language":6,"meta":8,"style":8},"# Extending with various iterables\nnumbers = [1, 2, 3]\nprint(\"Original numbers:\", numbers)\n\n# Extend with tuple\nnumbers.extend((4, 5, 6))\nprint(\"After tuple extend:\", numbers)\n\n# Extend with string (each character)\nnumbers.extend(\"789\")\nprint(\"After string extend:\", numbers)\n",[2669],{"type":993,"tag":1022,"props":2670,"children":2671},{"__ignoreMap":8},[2672,2680,2719,2740,2747,2755,2788,2808,2815,2823,2840],{"type":993,"tag":1026,"props":2673,"children":2674},{"class":1028,"line":12},[2675],{"type":993,"tag":1026,"props":2676,"children":2677},{"style":1032},[2678],{"type":998,"value":2679},"# Extending with various iterables\n",{"type":993,"tag":1026,"props":2681,"children":2682},{"class":1028,"line":27},[2683,2687,2691,2695,2699,2703,2707,2711,2715],{"type":993,"tag":1026,"props":2684,"children":2685},{"style":1041},[2686],{"type":998,"value":1940},{"type":993,"tag":1026,"props":2688,"children":2689},{"style":1047},[2690],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2692,"children":2693},{"style":1041},[2694],{"type":998,"value":1055},{"type":993,"tag":1026,"props":2696,"children":2697},{"style":1058},[2698],{"type":998,"value":1061},{"type":993,"tag":1026,"props":2700,"children":2701},{"style":1041},[2702],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2704,"children":2705},{"style":1058},[2706],{"type":998,"value":1071},{"type":993,"tag":1026,"props":2708,"children":2709},{"style":1041},[2710],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2712,"children":2713},{"style":1058},[2714],{"type":998,"value":1080},{"type":993,"tag":1026,"props":2716,"children":2717},{"style":1041},[2718],{"type":998,"value":1085},{"type":993,"tag":1026,"props":2720,"children":2721},{"class":1028,"line":36},[2722,2726,2730,2735],{"type":993,"tag":1026,"props":2723,"children":2724},{"style":1058},[2725],{"type":998,"value":1266},{"type":993,"tag":1026,"props":2727,"children":2728},{"style":1041},[2729],{"type":998,"value":1271},{"type":993,"tag":1026,"props":2731,"children":2732},{"style":1147},[2733],{"type":998,"value":2734},"\"Original numbers:\"",{"type":993,"tag":1026,"props":2736,"children":2737},{"style":1041},[2738],{"type":998,"value":2739},", numbers)\n",{"type":993,"tag":1026,"props":2741,"children":2742},{"class":1028,"line":45},[2743],{"type":993,"tag":1026,"props":2744,"children":2745},{"emptyLinePlaceholder":13},[2746],{"type":998,"value":1223},{"type":993,"tag":1026,"props":2748,"children":2749},{"class":1028,"line":54},[2750],{"type":993,"tag":1026,"props":2751,"children":2752},{"style":1032},[2753],{"type":998,"value":2754},"# Extend with tuple\n",{"type":993,"tag":1026,"props":2756,"children":2757},{"class":1028,"line":63},[2758,2763,2767,2771,2775,2779,2783],{"type":993,"tag":1026,"props":2759,"children":2760},{"style":1041},[2761],{"type":998,"value":2762},"numbers.extend((",{"type":993,"tag":1026,"props":2764,"children":2765},{"style":1058},[2766],{"type":998,"value":1106},{"type":993,"tag":1026,"props":2768,"children":2769},{"style":1041},[2770],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2772,"children":2773},{"style":1058},[2774],{"type":998,"value":1115},{"type":993,"tag":1026,"props":2776,"children":2777},{"style":1041},[2778],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2780,"children":2781},{"style":1058},[2782],{"type":998,"value":1124},{"type":993,"tag":1026,"props":2784,"children":2785},{"style":1041},[2786],{"type":998,"value":2787},"))\n",{"type":993,"tag":1026,"props":2789,"children":2790},{"class":1028,"line":72},[2791,2795,2799,2804],{"type":993,"tag":1026,"props":2792,"children":2793},{"style":1058},[2794],{"type":998,"value":1266},{"type":993,"tag":1026,"props":2796,"children":2797},{"style":1041},[2798],{"type":998,"value":1271},{"type":993,"tag":1026,"props":2800,"children":2801},{"style":1147},[2802],{"type":998,"value":2803},"\"After tuple extend:\"",{"type":993,"tag":1026,"props":2805,"children":2806},{"style":1041},[2807],{"type":998,"value":2739},{"type":993,"tag":1026,"props":2809,"children":2810},{"class":1028,"line":81},[2811],{"type":993,"tag":1026,"props":2812,"children":2813},{"emptyLinePlaceholder":13},[2814],{"type":998,"value":1223},{"type":993,"tag":1026,"props":2816,"children":2817},{"class":1028,"line":91},[2818],{"type":993,"tag":1026,"props":2819,"children":2820},{"style":1032},[2821],{"type":998,"value":2822},"# Extend with string (each character)\n",{"type":993,"tag":1026,"props":2824,"children":2825},{"class":1028,"line":100},[2826,2831,2836],{"type":993,"tag":1026,"props":2827,"children":2828},{"style":1041},[2829],{"type":998,"value":2830},"numbers.extend(",{"type":993,"tag":1026,"props":2832,"children":2833},{"style":1147},[2834],{"type":998,"value":2835},"\"789\"",{"type":993,"tag":1026,"props":2837,"children":2838},{"style":1041},[2839],{"type":998,"value":2329},{"type":993,"tag":1026,"props":2841,"children":2842},{"class":1028,"line":109},[2843,2847,2851,2856],{"type":993,"tag":1026,"props":2844,"children":2845},{"style":1058},[2846],{"type":998,"value":1266},{"type":993,"tag":1026,"props":2848,"children":2849},{"style":1041},[2850],{"type":998,"value":1271},{"type":993,"tag":1026,"props":2852,"children":2853},{"style":1147},[2854],{"type":998,"value":2855},"\"After string extend:\"",{"type":993,"tag":1026,"props":2857,"children":2858},{"style":1041},[2859],{"type":998,"value":2739},{"type":993,"tag":1501,"props":2861,"children":2863},{"id":2862},"building-lists-incrementally",[2864],{"type":998,"value":2865},"Building Lists Incrementally",{"type":993,"tag":1001,"props":2867,"children":2868},{},[2869],{"type":998,"value":2870},"Dynamic list construction through iterative extension for data collection workflows.",{"type":993,"tag":1012,"props":2872,"children":2873},{},[2874],{"type":993,"tag":1016,"props":2875,"children":2877},{"className":1018,"code":2876,"language":6,"meta":8,"style":8},"# Building lists incrementally\nresult = []\ndata_sources = [\n    [1, 2, 3],\n    [4, 5, 6],\n    [7, 8, 9]\n]\n\nfor source in data_sources:\n    result.extend(source)\n    print(f\"After adding {source}: {result}\")\n",[2878],{"type":993,"tag":1022,"props":2879,"children":2880},{"__ignoreMap":8},[2881,2889,2906,2923,2956,2987,3021,3028,3035,3056,3064],{"type":993,"tag":1026,"props":2882,"children":2883},{"class":1028,"line":12},[2884],{"type":993,"tag":1026,"props":2885,"children":2886},{"style":1032},[2887],{"type":998,"value":2888},"# Building lists incrementally\n",{"type":993,"tag":1026,"props":2890,"children":2891},{"class":1028,"line":27},[2892,2897,2901],{"type":993,"tag":1026,"props":2893,"children":2894},{"style":1041},[2895],{"type":998,"value":2896},"result ",{"type":993,"tag":1026,"props":2898,"children":2899},{"style":1047},[2900],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2902,"children":2903},{"style":1041},[2904],{"type":998,"value":2905}," []\n",{"type":993,"tag":1026,"props":2907,"children":2908},{"class":1028,"line":36},[2909,2914,2918],{"type":993,"tag":1026,"props":2910,"children":2911},{"style":1041},[2912],{"type":998,"value":2913},"data_sources ",{"type":993,"tag":1026,"props":2915,"children":2916},{"style":1047},[2917],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2919,"children":2920},{"style":1041},[2921],{"type":998,"value":2922}," [\n",{"type":993,"tag":1026,"props":2924,"children":2925},{"class":1028,"line":45},[2926,2931,2935,2939,2943,2947,2951],{"type":993,"tag":1026,"props":2927,"children":2928},{"style":1041},[2929],{"type":998,"value":2930},"    [",{"type":993,"tag":1026,"props":2932,"children":2933},{"style":1058},[2934],{"type":998,"value":1061},{"type":993,"tag":1026,"props":2936,"children":2937},{"style":1041},[2938],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2940,"children":2941},{"style":1058},[2942],{"type":998,"value":1071},{"type":993,"tag":1026,"props":2944,"children":2945},{"style":1041},[2946],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2948,"children":2949},{"style":1058},[2950],{"type":998,"value":1080},{"type":993,"tag":1026,"props":2952,"children":2953},{"style":1041},[2954],{"type":998,"value":2955},"],\n",{"type":993,"tag":1026,"props":2957,"children":2958},{"class":1028,"line":54},[2959,2963,2967,2971,2975,2979,2983],{"type":993,"tag":1026,"props":2960,"children":2961},{"style":1041},[2962],{"type":998,"value":2930},{"type":993,"tag":1026,"props":2964,"children":2965},{"style":1058},[2966],{"type":998,"value":1106},{"type":993,"tag":1026,"props":2968,"children":2969},{"style":1041},[2970],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2972,"children":2973},{"style":1058},[2974],{"type":998,"value":1115},{"type":993,"tag":1026,"props":2976,"children":2977},{"style":1041},[2978],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2980,"children":2981},{"style":1058},[2982],{"type":998,"value":1124},{"type":993,"tag":1026,"props":2984,"children":2985},{"style":1041},[2986],{"type":998,"value":2955},{"type":993,"tag":1026,"props":2988,"children":2989},{"class":1028,"line":63},[2990,2994,2999,3003,3008,3012,3017],{"type":993,"tag":1026,"props":2991,"children":2992},{"style":1041},[2993],{"type":998,"value":2930},{"type":993,"tag":1026,"props":2995,"children":2996},{"style":1058},[2997],{"type":998,"value":2998},"7",{"type":993,"tag":1026,"props":3000,"children":3001},{"style":1041},[3002],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3004,"children":3005},{"style":1058},[3006],{"type":998,"value":3007},"8",{"type":993,"tag":1026,"props":3009,"children":3010},{"style":1041},[3011],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3013,"children":3014},{"style":1058},[3015],{"type":998,"value":3016},"9",{"type":993,"tag":1026,"props":3018,"children":3019},{"style":1041},[3020],{"type":998,"value":1085},{"type":993,"tag":1026,"props":3022,"children":3023},{"class":1028,"line":72},[3024],{"type":993,"tag":1026,"props":3025,"children":3026},{"style":1041},[3027],{"type":998,"value":1085},{"type":993,"tag":1026,"props":3029,"children":3030},{"class":1028,"line":81},[3031],{"type":993,"tag":1026,"props":3032,"children":3033},{"emptyLinePlaceholder":13},[3034],{"type":998,"value":1223},{"type":993,"tag":1026,"props":3036,"children":3037},{"class":1028,"line":91},[3038,3042,3047,3051],{"type":993,"tag":1026,"props":3039,"children":3040},{"style":1047},[3041],{"type":998,"value":2337},{"type":993,"tag":1026,"props":3043,"children":3044},{"style":1041},[3045],{"type":998,"value":3046}," source ",{"type":993,"tag":1026,"props":3048,"children":3049},{"style":1047},[3050],{"type":998,"value":2347},{"type":993,"tag":1026,"props":3052,"children":3053},{"style":1041},[3054],{"type":998,"value":3055}," data_sources:\n",{"type":993,"tag":1026,"props":3057,"children":3058},{"class":1028,"line":100},[3059],{"type":993,"tag":1026,"props":3060,"children":3061},{"style":1041},[3062],{"type":998,"value":3063},"    result.extend(source)\n",{"type":993,"tag":1026,"props":3065,"children":3066},{"class":1028,"line":109},[3067,3071,3075,3080,3085,3090,3095,3100,3105,3109,3114,3118,3123],{"type":993,"tag":1026,"props":3068,"children":3069},{"style":1058},[3070],{"type":998,"value":2360},{"type":993,"tag":1026,"props":3072,"children":3073},{"style":1041},[3074],{"type":998,"value":1271},{"type":993,"tag":1026,"props":3076,"children":3077},{"style":1047},[3078],{"type":998,"value":3079},"f",{"type":993,"tag":1026,"props":3081,"children":3082},{"style":1147},[3083],{"type":998,"value":3084},"\"After adding ",{"type":993,"tag":1026,"props":3086,"children":3087},{"style":1058},[3088],{"type":998,"value":3089},"{",{"type":993,"tag":1026,"props":3091,"children":3092},{"style":1041},[3093],{"type":998,"value":3094},"source",{"type":993,"tag":1026,"props":3096,"children":3097},{"style":1058},[3098],{"type":998,"value":3099},"}",{"type":993,"tag":1026,"props":3101,"children":3102},{"style":1147},[3103],{"type":998,"value":3104},": ",{"type":993,"tag":1026,"props":3106,"children":3107},{"style":1058},[3108],{"type":998,"value":3089},{"type":993,"tag":1026,"props":3110,"children":3111},{"style":1041},[3112],{"type":998,"value":3113},"result",{"type":993,"tag":1026,"props":3115,"children":3116},{"style":1058},[3117],{"type":998,"value":3099},{"type":993,"tag":1026,"props":3119,"children":3120},{"style":1147},[3121],{"type":998,"value":3122},"\"",{"type":993,"tag":1026,"props":3124,"children":3125},{"style":1041},[3126],{"type":998,"value":2329},{"type":993,"tag":3128,"props":3129,"children":3131},"content-exercise",{":widget-view":3130,"category":6,"id":355},"true",[],{"type":993,"tag":1394,"props":3133,"children":3135},{"id":3134},"zipping-lists-together",[3136],{"type":998,"value":3137},"🤐 Zipping Lists Together",{"type":993,"tag":1001,"props":3139,"children":3140},{},[3141,3142,3148],{"type":998,"value":1404},{"type":993,"tag":1022,"props":3143,"children":3145},{"className":3144},[],[3146],{"type":998,"value":3147},"zip()",{"type":998,"value":3149}," function combines multiple lists element-wise, creating pairs or tuples of corresponding elements. This is essential for working with related data stored in separate lists.",{"type":993,"tag":1413,"props":3151,"children":3154},{"title":3152,"type":1416,"emoji":3153},"zip() Function Behavior","🤐",[3155,3163,3186,3194,3232,3240],{"type":993,"tag":1001,"props":3156,"children":3157},{},[3158],{"type":993,"tag":1423,"props":3159,"children":3160},{},[3161],{"type":998,"value":3162},"How zip() Works:",{"type":993,"tag":1429,"props":3164,"children":3165},{},[3166,3171,3176,3181],{"type":993,"tag":1433,"props":3167,"children":3168},{},[3169],{"type":998,"value":3170},"Combines elements at same positions",{"type":993,"tag":1433,"props":3172,"children":3173},{},[3174],{"type":998,"value":3175},"Returns iterator of tuples",{"type":993,"tag":1433,"props":3177,"children":3178},{},[3179],{"type":998,"value":3180},"Stops at shortest list length",{"type":993,"tag":1433,"props":3182,"children":3183},{},[3184],{"type":998,"value":3185},"Creates structured data from parallel lists",{"type":993,"tag":1001,"props":3187,"children":3188},{},[3189],{"type":993,"tag":1423,"props":3190,"children":3191},{},[3192],{"type":998,"value":3193},"Important Notes:",{"type":993,"tag":1429,"props":3195,"children":3196},{},[3197,3210,3215,3227],{"type":993,"tag":1433,"props":3198,"children":3199},{},[3200,3202,3208],{"type":998,"value":3201},"Use ",{"type":993,"tag":1022,"props":3203,"children":3205},{"className":3204},[],[3206],{"type":998,"value":3207},"list(zip(...))",{"type":998,"value":3209}," to get actual list",{"type":993,"tag":1433,"props":3211,"children":3212},{},[3213],{"type":998,"value":3214},"Unequal lengths: stops at shortest",{"type":993,"tag":1433,"props":3216,"children":3217},{},[3218,3219,3225],{"type":998,"value":3201},{"type":993,"tag":1022,"props":3220,"children":3222},{"className":3221},[],[3223],{"type":998,"value":3224},"zip(*data)",{"type":998,"value":3226}," to unzip",{"type":993,"tag":1433,"props":3228,"children":3229},{},[3230],{"type":998,"value":3231},"Memory efficient (returns iterator)",{"type":993,"tag":1001,"props":3233,"children":3234},{},[3235],{"type":993,"tag":1423,"props":3236,"children":3237},{},[3238],{"type":998,"value":3239},"Common Use Cases:",{"type":993,"tag":1429,"props":3241,"children":3242},{},[3243,3248,3253],{"type":993,"tag":1433,"props":3244,"children":3245},{},[3246],{"type":998,"value":3247},"Pairing related data",{"type":993,"tag":1433,"props":3249,"children":3250},{},[3251],{"type":998,"value":3252},"Creating dictionaries from keys/values",{"type":993,"tag":1433,"props":3254,"children":3255},{},[3256],{"type":998,"value":3257},"Processing parallel datasets",{"type":993,"tag":1501,"props":3259,"children":3261},{"id":3260},"basic-zipping",[3262],{"type":998,"value":3263},"Basic Zipping",{"type":993,"tag":1001,"props":3265,"children":3266},{},[3267],{"type":998,"value":3268},"Element-wise combination for creating structured relationships between parallel data.",{"type":993,"tag":1012,"props":3270,"children":3271},{},[3272],{"type":993,"tag":1016,"props":3273,"children":3275},{"className":1018,"code":3274,"language":6,"meta":8,"style":8},"# Basic zipping\nnames = [\"Alice\", \"Bob\", \"Charlie\"]\nages = [25, 30, 35]\n\n# Zip into pairs\npairs = list(zip(names, ages))\nprint(\"Name-age pairs:\", pairs)\n\n# Access individual pairs\nfor name, age in pairs:\n    print(f\"{name} is {age} years old\")\n",[3276],{"type":993,"tag":1022,"props":3277,"children":3278},{"__ignoreMap":8},[3279,3287,3326,3365,3372,3380,3408,3429,3436,3444,3465],{"type":993,"tag":1026,"props":3280,"children":3281},{"class":1028,"line":12},[3282],{"type":993,"tag":1026,"props":3283,"children":3284},{"style":1032},[3285],{"type":998,"value":3286},"# Basic zipping\n",{"type":993,"tag":1026,"props":3288,"children":3289},{"class":1028,"line":27},[3290,3294,3298,3302,3306,3310,3314,3318,3322],{"type":993,"tag":1026,"props":3291,"children":3292},{"style":1041},[3293],{"type":998,"value":1136},{"type":993,"tag":1026,"props":3295,"children":3296},{"style":1047},[3297],{"type":998,"value":1050},{"type":993,"tag":1026,"props":3299,"children":3300},{"style":1041},[3301],{"type":998,"value":1055},{"type":993,"tag":1026,"props":3303,"children":3304},{"style":1147},[3305],{"type":998,"value":1150},{"type":993,"tag":1026,"props":3307,"children":3308},{"style":1041},[3309],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3311,"children":3312},{"style":1147},[3313],{"type":998,"value":1159},{"type":993,"tag":1026,"props":3315,"children":3316},{"style":1041},[3317],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3319,"children":3320},{"style":1147},[3321],{"type":998,"value":1168},{"type":993,"tag":1026,"props":3323,"children":3324},{"style":1041},[3325],{"type":998,"value":1085},{"type":993,"tag":1026,"props":3327,"children":3328},{"class":1028,"line":36},[3329,3333,3337,3341,3345,3349,3353,3357,3361],{"type":993,"tag":1026,"props":3330,"children":3331},{"style":1041},[3332],{"type":998,"value":1180},{"type":993,"tag":1026,"props":3334,"children":3335},{"style":1047},[3336],{"type":998,"value":1050},{"type":993,"tag":1026,"props":3338,"children":3339},{"style":1041},[3340],{"type":998,"value":1055},{"type":993,"tag":1026,"props":3342,"children":3343},{"style":1058},[3344],{"type":998,"value":1193},{"type":993,"tag":1026,"props":3346,"children":3347},{"style":1041},[3348],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3350,"children":3351},{"style":1058},[3352],{"type":998,"value":1202},{"type":993,"tag":1026,"props":3354,"children":3355},{"style":1041},[3356],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3358,"children":3359},{"style":1058},[3360],{"type":998,"value":1211},{"type":993,"tag":1026,"props":3362,"children":3363},{"style":1041},[3364],{"type":998,"value":1085},{"type":993,"tag":1026,"props":3366,"children":3367},{"class":1028,"line":45},[3368],{"type":993,"tag":1026,"props":3369,"children":3370},{"emptyLinePlaceholder":13},[3371],{"type":998,"value":1223},{"type":993,"tag":1026,"props":3373,"children":3374},{"class":1028,"line":54},[3375],{"type":993,"tag":1026,"props":3376,"children":3377},{"style":1032},[3378],{"type":998,"value":3379},"# Zip into pairs\n",{"type":993,"tag":1026,"props":3381,"children":3382},{"class":1028,"line":63},[3383,3388,3392,3396,3400,3404],{"type":993,"tag":1026,"props":3384,"children":3385},{"style":1041},[3386],{"type":998,"value":3387},"pairs ",{"type":993,"tag":1026,"props":3389,"children":3390},{"style":1047},[3391],{"type":998,"value":1050},{"type":993,"tag":1026,"props":3393,"children":3394},{"style":1058},[3395],{"type":998,"value":1313},{"type":993,"tag":1026,"props":3397,"children":3398},{"style":1041},[3399],{"type":998,"value":1271},{"type":993,"tag":1026,"props":3401,"children":3402},{"style":1058},[3403],{"type":998,"value":1322},{"type":993,"tag":1026,"props":3405,"children":3406},{"style":1041},[3407],{"type":998,"value":1327},{"type":993,"tag":1026,"props":3409,"children":3410},{"class":1028,"line":72},[3411,3415,3419,3424],{"type":993,"tag":1026,"props":3412,"children":3413},{"style":1058},[3414],{"type":998,"value":1266},{"type":993,"tag":1026,"props":3416,"children":3417},{"style":1041},[3418],{"type":998,"value":1271},{"type":993,"tag":1026,"props":3420,"children":3421},{"style":1147},[3422],{"type":998,"value":3423},"\"Name-age pairs:\"",{"type":993,"tag":1026,"props":3425,"children":3426},{"style":1041},[3427],{"type":998,"value":3428},", pairs)\n",{"type":993,"tag":1026,"props":3430,"children":3431},{"class":1028,"line":81},[3432],{"type":993,"tag":1026,"props":3433,"children":3434},{"emptyLinePlaceholder":13},[3435],{"type":998,"value":1223},{"type":993,"tag":1026,"props":3437,"children":3438},{"class":1028,"line":91},[3439],{"type":993,"tag":1026,"props":3440,"children":3441},{"style":1032},[3442],{"type":998,"value":3443},"# Access individual pairs\n",{"type":993,"tag":1026,"props":3445,"children":3446},{"class":1028,"line":100},[3447,3451,3456,3460],{"type":993,"tag":1026,"props":3448,"children":3449},{"style":1047},[3450],{"type":998,"value":2337},{"type":993,"tag":1026,"props":3452,"children":3453},{"style":1041},[3454],{"type":998,"value":3455}," name, age ",{"type":993,"tag":1026,"props":3457,"children":3458},{"style":1047},[3459],{"type":998,"value":2347},{"type":993,"tag":1026,"props":3461,"children":3462},{"style":1041},[3463],{"type":998,"value":3464}," pairs:\n",{"type":993,"tag":1026,"props":3466,"children":3467},{"class":1028,"line":109},[3468,3472,3476,3480,3484,3488,3493,3497,3502,3506,3511,3515,3520],{"type":993,"tag":1026,"props":3469,"children":3470},{"style":1058},[3471],{"type":998,"value":2360},{"type":993,"tag":1026,"props":3473,"children":3474},{"style":1041},[3475],{"type":998,"value":1271},{"type":993,"tag":1026,"props":3477,"children":3478},{"style":1047},[3479],{"type":998,"value":3079},{"type":993,"tag":1026,"props":3481,"children":3482},{"style":1147},[3483],{"type":998,"value":3122},{"type":993,"tag":1026,"props":3485,"children":3486},{"style":1058},[3487],{"type":998,"value":3089},{"type":993,"tag":1026,"props":3489,"children":3490},{"style":1041},[3491],{"type":998,"value":3492},"name",{"type":993,"tag":1026,"props":3494,"children":3495},{"style":1058},[3496],{"type":998,"value":3099},{"type":993,"tag":1026,"props":3498,"children":3499},{"style":1147},[3500],{"type":998,"value":3501}," is ",{"type":993,"tag":1026,"props":3503,"children":3504},{"style":1058},[3505],{"type":998,"value":3089},{"type":993,"tag":1026,"props":3507,"children":3508},{"style":1041},[3509],{"type":998,"value":3510},"age",{"type":993,"tag":1026,"props":3512,"children":3513},{"style":1058},[3514],{"type":998,"value":3099},{"type":993,"tag":1026,"props":3516,"children":3517},{"style":1147},[3518],{"type":998,"value":3519}," years old\"",{"type":993,"tag":1026,"props":3521,"children":3522},{"style":1041},[3523],{"type":998,"value":2329},{"type":993,"tag":1501,"props":3525,"children":3527},{"id":3526},"zipping-multiple-lists",[3528],{"type":998,"value":3529},"Zipping Multiple Lists",{"type":993,"tag":1001,"props":3531,"children":3532},{},[3533],{"type":998,"value":3534},"Multi-dimensional data combination for complex record structures.",{"type":993,"tag":1012,"props":3536,"children":3537},{},[3538],{"type":993,"tag":1016,"props":3539,"children":3541},{"className":1018,"code":3540,"language":6,"meta":8,"style":8},"# Zipping three lists\nstudents = [\"Alice\", \"Bob\", \"Charlie\"]\nsubjects = [\"Math\", \"Science\", \"English\"]\ngrades = [85, 92, 78]\n\n# Combine all three\nrecords = list(zip(students, subjects, grades))\nprint(\"Student records:\")\nfor student, subject, grade in records:\n    print(f\"{student}: {subject} = {grade}\")\n",[3542],{"type":993,"tag":1022,"props":3543,"children":3544},{"__ignoreMap":8},[3545,3553,3593,3636,3679,3686,3694,3723,3743,3764],{"type":993,"tag":1026,"props":3546,"children":3547},{"class":1028,"line":12},[3548],{"type":993,"tag":1026,"props":3549,"children":3550},{"style":1032},[3551],{"type":998,"value":3552},"# Zipping three lists\n",{"type":993,"tag":1026,"props":3554,"children":3555},{"class":1028,"line":27},[3556,3561,3565,3569,3573,3577,3581,3585,3589],{"type":993,"tag":1026,"props":3557,"children":3558},{"style":1041},[3559],{"type":998,"value":3560},"students ",{"type":993,"tag":1026,"props":3562,"children":3563},{"style":1047},[3564],{"type":998,"value":1050},{"type":993,"tag":1026,"props":3566,"children":3567},{"style":1041},[3568],{"type":998,"value":1055},{"type":993,"tag":1026,"props":3570,"children":3571},{"style":1147},[3572],{"type":998,"value":1150},{"type":993,"tag":1026,"props":3574,"children":3575},{"style":1041},[3576],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3578,"children":3579},{"style":1147},[3580],{"type":998,"value":1159},{"type":993,"tag":1026,"props":3582,"children":3583},{"style":1041},[3584],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3586,"children":3587},{"style":1147},[3588],{"type":998,"value":1168},{"type":993,"tag":1026,"props":3590,"children":3591},{"style":1041},[3592],{"type":998,"value":1085},{"type":993,"tag":1026,"props":3594,"children":3595},{"class":1028,"line":36},[3596,3601,3605,3609,3614,3618,3623,3627,3632],{"type":993,"tag":1026,"props":3597,"children":3598},{"style":1041},[3599],{"type":998,"value":3600},"subjects ",{"type":993,"tag":1026,"props":3602,"children":3603},{"style":1047},[3604],{"type":998,"value":1050},{"type":993,"tag":1026,"props":3606,"children":3607},{"style":1041},[3608],{"type":998,"value":1055},{"type":993,"tag":1026,"props":3610,"children":3611},{"style":1147},[3612],{"type":998,"value":3613},"\"Math\"",{"type":993,"tag":1026,"props":3615,"children":3616},{"style":1041},[3617],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3619,"children":3620},{"style":1147},[3621],{"type":998,"value":3622},"\"Science\"",{"type":993,"tag":1026,"props":3624,"children":3625},{"style":1041},[3626],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3628,"children":3629},{"style":1147},[3630],{"type":998,"value":3631},"\"English\"",{"type":993,"tag":1026,"props":3633,"children":3634},{"style":1041},[3635],{"type":998,"value":1085},{"type":993,"tag":1026,"props":3637,"children":3638},{"class":1028,"line":45},[3639,3644,3648,3652,3657,3661,3666,3670,3675],{"type":993,"tag":1026,"props":3640,"children":3641},{"style":1041},[3642],{"type":998,"value":3643},"grades ",{"type":993,"tag":1026,"props":3645,"children":3646},{"style":1047},[3647],{"type":998,"value":1050},{"type":993,"tag":1026,"props":3649,"children":3650},{"style":1041},[3651],{"type":998,"value":1055},{"type":993,"tag":1026,"props":3653,"children":3654},{"style":1058},[3655],{"type":998,"value":3656},"85",{"type":993,"tag":1026,"props":3658,"children":3659},{"style":1041},[3660],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3662,"children":3663},{"style":1058},[3664],{"type":998,"value":3665},"92",{"type":993,"tag":1026,"props":3667,"children":3668},{"style":1041},[3669],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3671,"children":3672},{"style":1058},[3673],{"type":998,"value":3674},"78",{"type":993,"tag":1026,"props":3676,"children":3677},{"style":1041},[3678],{"type":998,"value":1085},{"type":993,"tag":1026,"props":3680,"children":3681},{"class":1028,"line":54},[3682],{"type":993,"tag":1026,"props":3683,"children":3684},{"emptyLinePlaceholder":13},[3685],{"type":998,"value":1223},{"type":993,"tag":1026,"props":3687,"children":3688},{"class":1028,"line":63},[3689],{"type":993,"tag":1026,"props":3690,"children":3691},{"style":1032},[3692],{"type":998,"value":3693},"# Combine all three\n",{"type":993,"tag":1026,"props":3695,"children":3696},{"class":1028,"line":72},[3697,3702,3706,3710,3714,3718],{"type":993,"tag":1026,"props":3698,"children":3699},{"style":1041},[3700],{"type":998,"value":3701},"records ",{"type":993,"tag":1026,"props":3703,"children":3704},{"style":1047},[3705],{"type":998,"value":1050},{"type":993,"tag":1026,"props":3707,"children":3708},{"style":1058},[3709],{"type":998,"value":1313},{"type":993,"tag":1026,"props":3711,"children":3712},{"style":1041},[3713],{"type":998,"value":1271},{"type":993,"tag":1026,"props":3715,"children":3716},{"style":1058},[3717],{"type":998,"value":1322},{"type":993,"tag":1026,"props":3719,"children":3720},{"style":1041},[3721],{"type":998,"value":3722},"(students, subjects, grades))\n",{"type":993,"tag":1026,"props":3724,"children":3725},{"class":1028,"line":81},[3726,3730,3734,3739],{"type":993,"tag":1026,"props":3727,"children":3728},{"style":1058},[3729],{"type":998,"value":1266},{"type":993,"tag":1026,"props":3731,"children":3732},{"style":1041},[3733],{"type":998,"value":1271},{"type":993,"tag":1026,"props":3735,"children":3736},{"style":1147},[3737],{"type":998,"value":3738},"\"Student records:\"",{"type":993,"tag":1026,"props":3740,"children":3741},{"style":1041},[3742],{"type":998,"value":2329},{"type":993,"tag":1026,"props":3744,"children":3745},{"class":1028,"line":91},[3746,3750,3755,3759],{"type":993,"tag":1026,"props":3747,"children":3748},{"style":1047},[3749],{"type":998,"value":2337},{"type":993,"tag":1026,"props":3751,"children":3752},{"style":1041},[3753],{"type":998,"value":3754}," student, subject, grade ",{"type":993,"tag":1026,"props":3756,"children":3757},{"style":1047},[3758],{"type":998,"value":2347},{"type":993,"tag":1026,"props":3760,"children":3761},{"style":1041},[3762],{"type":998,"value":3763}," records:\n",{"type":993,"tag":1026,"props":3765,"children":3766},{"class":1028,"line":100},[3767,3771,3775,3779,3783,3787,3792,3796,3800,3804,3809,3813,3818,3822,3827,3831,3835],{"type":993,"tag":1026,"props":3768,"children":3769},{"style":1058},[3770],{"type":998,"value":2360},{"type":993,"tag":1026,"props":3772,"children":3773},{"style":1041},[3774],{"type":998,"value":1271},{"type":993,"tag":1026,"props":3776,"children":3777},{"style":1047},[3778],{"type":998,"value":3079},{"type":993,"tag":1026,"props":3780,"children":3781},{"style":1147},[3782],{"type":998,"value":3122},{"type":993,"tag":1026,"props":3784,"children":3785},{"style":1058},[3786],{"type":998,"value":3089},{"type":993,"tag":1026,"props":3788,"children":3789},{"style":1041},[3790],{"type":998,"value":3791},"student",{"type":993,"tag":1026,"props":3793,"children":3794},{"style":1058},[3795],{"type":998,"value":3099},{"type":993,"tag":1026,"props":3797,"children":3798},{"style":1147},[3799],{"type":998,"value":3104},{"type":993,"tag":1026,"props":3801,"children":3802},{"style":1058},[3803],{"type":998,"value":3089},{"type":993,"tag":1026,"props":3805,"children":3806},{"style":1041},[3807],{"type":998,"value":3808},"subject",{"type":993,"tag":1026,"props":3810,"children":3811},{"style":1058},[3812],{"type":998,"value":3099},{"type":993,"tag":1026,"props":3814,"children":3815},{"style":1147},[3816],{"type":998,"value":3817}," = ",{"type":993,"tag":1026,"props":3819,"children":3820},{"style":1058},[3821],{"type":998,"value":3089},{"type":993,"tag":1026,"props":3823,"children":3824},{"style":1041},[3825],{"type":998,"value":3826},"grade",{"type":993,"tag":1026,"props":3828,"children":3829},{"style":1058},[3830],{"type":998,"value":3099},{"type":993,"tag":1026,"props":3832,"children":3833},{"style":1147},[3834],{"type":998,"value":3122},{"type":993,"tag":1026,"props":3836,"children":3837},{"style":1041},[3838],{"type":998,"value":2329},{"type":993,"tag":1501,"props":3840,"children":3842},{"id":3841},"handling-different-length-lists",[3843],{"type":998,"value":3844},"Handling Different Length Lists",{"type":993,"tag":1001,"props":3846,"children":3847},{},[3848],{"type":998,"value":3849},"Understanding zip behavior with unequal list lengths for robust data processing.",{"type":993,"tag":1012,"props":3851,"children":3852},{},[3853],{"type":993,"tag":1016,"props":3854,"children":3856},{"className":1018,"code":3855,"language":6,"meta":8,"style":8},"# Zipping lists of different lengths\ncolors = [\"red\", \"green\", \"blue\", \"yellow\"]\nnumbers = [1, 2, 3]  # Shorter list\n\n# zip stops at shortest list\npaired = list(zip(colors, numbers))\nprint(\"Paired (stops at shortest):\", paired)\n",[3857],{"type":993,"tag":1022,"props":3858,"children":3859},{"__ignoreMap":8},[3860,3868,3920,3965,3972,3980,4008],{"type":993,"tag":1026,"props":3861,"children":3862},{"class":1028,"line":12},[3863],{"type":993,"tag":1026,"props":3864,"children":3865},{"style":1032},[3866],{"type":998,"value":3867},"# Zipping lists of different lengths\n",{"type":993,"tag":1026,"props":3869,"children":3870},{"class":1028,"line":27},[3871,3876,3880,3884,3889,3893,3898,3902,3907,3911,3916],{"type":993,"tag":1026,"props":3872,"children":3873},{"style":1041},[3874],{"type":998,"value":3875},"colors ",{"type":993,"tag":1026,"props":3877,"children":3878},{"style":1047},[3879],{"type":998,"value":1050},{"type":993,"tag":1026,"props":3881,"children":3882},{"style":1041},[3883],{"type":998,"value":1055},{"type":993,"tag":1026,"props":3885,"children":3886},{"style":1147},[3887],{"type":998,"value":3888},"\"red\"",{"type":993,"tag":1026,"props":3890,"children":3891},{"style":1041},[3892],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3894,"children":3895},{"style":1147},[3896],{"type":998,"value":3897},"\"green\"",{"type":993,"tag":1026,"props":3899,"children":3900},{"style":1041},[3901],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3903,"children":3904},{"style":1147},[3905],{"type":998,"value":3906},"\"blue\"",{"type":993,"tag":1026,"props":3908,"children":3909},{"style":1041},[3910],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3912,"children":3913},{"style":1147},[3914],{"type":998,"value":3915},"\"yellow\"",{"type":993,"tag":1026,"props":3917,"children":3918},{"style":1041},[3919],{"type":998,"value":1085},{"type":993,"tag":1026,"props":3921,"children":3922},{"class":1028,"line":36},[3923,3927,3931,3935,3939,3943,3947,3951,3955,3960],{"type":993,"tag":1026,"props":3924,"children":3925},{"style":1041},[3926],{"type":998,"value":1940},{"type":993,"tag":1026,"props":3928,"children":3929},{"style":1047},[3930],{"type":998,"value":1050},{"type":993,"tag":1026,"props":3932,"children":3933},{"style":1041},[3934],{"type":998,"value":1055},{"type":993,"tag":1026,"props":3936,"children":3937},{"style":1058},[3938],{"type":998,"value":1061},{"type":993,"tag":1026,"props":3940,"children":3941},{"style":1041},[3942],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3944,"children":3945},{"style":1058},[3946],{"type":998,"value":1071},{"type":993,"tag":1026,"props":3948,"children":3949},{"style":1041},[3950],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3952,"children":3953},{"style":1058},[3954],{"type":998,"value":1080},{"type":993,"tag":1026,"props":3956,"children":3957},{"style":1041},[3958],{"type":998,"value":3959},"]  ",{"type":993,"tag":1026,"props":3961,"children":3962},{"style":1032},[3963],{"type":998,"value":3964},"# Shorter list\n",{"type":993,"tag":1026,"props":3966,"children":3967},{"class":1028,"line":45},[3968],{"type":993,"tag":1026,"props":3969,"children":3970},{"emptyLinePlaceholder":13},[3971],{"type":998,"value":1223},{"type":993,"tag":1026,"props":3973,"children":3974},{"class":1028,"line":54},[3975],{"type":993,"tag":1026,"props":3976,"children":3977},{"style":1032},[3978],{"type":998,"value":3979},"# zip stops at shortest list\n",{"type":993,"tag":1026,"props":3981,"children":3982},{"class":1028,"line":63},[3983,3987,3991,3995,3999,4003],{"type":993,"tag":1026,"props":3984,"children":3985},{"style":1041},[3986],{"type":998,"value":1304},{"type":993,"tag":1026,"props":3988,"children":3989},{"style":1047},[3990],{"type":998,"value":1050},{"type":993,"tag":1026,"props":3992,"children":3993},{"style":1058},[3994],{"type":998,"value":1313},{"type":993,"tag":1026,"props":3996,"children":3997},{"style":1041},[3998],{"type":998,"value":1271},{"type":993,"tag":1026,"props":4000,"children":4001},{"style":1058},[4002],{"type":998,"value":1322},{"type":993,"tag":1026,"props":4004,"children":4005},{"style":1041},[4006],{"type":998,"value":4007},"(colors, numbers))\n",{"type":993,"tag":1026,"props":4009,"children":4010},{"class":1028,"line":72},[4011,4015,4019,4024],{"type":993,"tag":1026,"props":4012,"children":4013},{"style":1058},[4014],{"type":998,"value":1266},{"type":993,"tag":1026,"props":4016,"children":4017},{"style":1041},[4018],{"type":998,"value":1271},{"type":993,"tag":1026,"props":4020,"children":4021},{"style":1147},[4022],{"type":998,"value":4023},"\"Paired (stops at shortest):\"",{"type":993,"tag":1026,"props":4025,"children":4026},{"style":1041},[4027],{"type":998,"value":1348},{"type":993,"tag":1501,"props":4029,"children":4031},{"id":4030},"unzipping-lists",[4032],{"type":998,"value":4033},"Unzipping Lists",{"type":993,"tag":1001,"props":4035,"children":4036},{},[4037],{"type":998,"value":4038},"Separating combined data back into individual lists for analysis or processing.",{"type":993,"tag":1012,"props":4040,"children":4041},{},[4042],{"type":993,"tag":1016,"props":4043,"children":4045},{"className":1018,"code":4044,"language":6,"meta":8,"style":8},"# Unzipping combined data\npaired_data = [(\"Alice\", 25), (\"Bob\", 30), (\"Charlie\", 35)]\nprint(\"Original paired data:\", paired_data)\n\n# * Unzip using zip with\nnames, ages = zip(*paired_data)\nprint(\"Names:\", list(names))\nprint(\"Ages:\", list(ages))\n",[4046],{"type":993,"tag":1022,"props":4047,"children":4048},{"__ignoreMap":8},[4049,4057,4124,4145,4152,4160,4191,4221],{"type":993,"tag":1026,"props":4050,"children":4051},{"class":1028,"line":12},[4052],{"type":993,"tag":1026,"props":4053,"children":4054},{"style":1032},[4055],{"type":998,"value":4056},"# Unzipping combined data\n",{"type":993,"tag":1026,"props":4058,"children":4059},{"class":1028,"line":27},[4060,4065,4069,4074,4078,4082,4086,4091,4095,4099,4103,4107,4111,4115,4119],{"type":993,"tag":1026,"props":4061,"children":4062},{"style":1041},[4063],{"type":998,"value":4064},"paired_data ",{"type":993,"tag":1026,"props":4066,"children":4067},{"style":1047},[4068],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4070,"children":4071},{"style":1041},[4072],{"type":998,"value":4073}," [(",{"type":993,"tag":1026,"props":4075,"children":4076},{"style":1147},[4077],{"type":998,"value":1150},{"type":993,"tag":1026,"props":4079,"children":4080},{"style":1041},[4081],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4083,"children":4084},{"style":1058},[4085],{"type":998,"value":1193},{"type":993,"tag":1026,"props":4087,"children":4088},{"style":1041},[4089],{"type":998,"value":4090},"), (",{"type":993,"tag":1026,"props":4092,"children":4093},{"style":1147},[4094],{"type":998,"value":1159},{"type":993,"tag":1026,"props":4096,"children":4097},{"style":1041},[4098],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4100,"children":4101},{"style":1058},[4102],{"type":998,"value":1202},{"type":993,"tag":1026,"props":4104,"children":4105},{"style":1041},[4106],{"type":998,"value":4090},{"type":993,"tag":1026,"props":4108,"children":4109},{"style":1147},[4110],{"type":998,"value":1168},{"type":993,"tag":1026,"props":4112,"children":4113},{"style":1041},[4114],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4116,"children":4117},{"style":1058},[4118],{"type":998,"value":1211},{"type":993,"tag":1026,"props":4120,"children":4121},{"style":1041},[4122],{"type":998,"value":4123},")]\n",{"type":993,"tag":1026,"props":4125,"children":4126},{"class":1028,"line":36},[4127,4131,4135,4140],{"type":993,"tag":1026,"props":4128,"children":4129},{"style":1058},[4130],{"type":998,"value":1266},{"type":993,"tag":1026,"props":4132,"children":4133},{"style":1041},[4134],{"type":998,"value":1271},{"type":993,"tag":1026,"props":4136,"children":4137},{"style":1147},[4138],{"type":998,"value":4139},"\"Original paired data:\"",{"type":993,"tag":1026,"props":4141,"children":4142},{"style":1041},[4143],{"type":998,"value":4144},", paired_data)\n",{"type":993,"tag":1026,"props":4146,"children":4147},{"class":1028,"line":45},[4148],{"type":993,"tag":1026,"props":4149,"children":4150},{"emptyLinePlaceholder":13},[4151],{"type":998,"value":1223},{"type":993,"tag":1026,"props":4153,"children":4154},{"class":1028,"line":54},[4155],{"type":993,"tag":1026,"props":4156,"children":4157},{"style":1032},[4158],{"type":998,"value":4159},"# * Unzip using zip with\n",{"type":993,"tag":1026,"props":4161,"children":4162},{"class":1028,"line":63},[4163,4168,4172,4177,4181,4186],{"type":993,"tag":1026,"props":4164,"children":4165},{"style":1041},[4166],{"type":998,"value":4167},"names, ages ",{"type":993,"tag":1026,"props":4169,"children":4170},{"style":1047},[4171],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4173,"children":4174},{"style":1058},[4175],{"type":998,"value":4176}," zip",{"type":993,"tag":1026,"props":4178,"children":4179},{"style":1041},[4180],{"type":998,"value":1271},{"type":993,"tag":1026,"props":4182,"children":4183},{"style":1047},[4184],{"type":998,"value":4185},"*",{"type":993,"tag":1026,"props":4187,"children":4188},{"style":1041},[4189],{"type":998,"value":4190},"paired_data)\n",{"type":993,"tag":1026,"props":4192,"children":4193},{"class":1028,"line":72},[4194,4198,4202,4207,4211,4216],{"type":993,"tag":1026,"props":4195,"children":4196},{"style":1058},[4197],{"type":998,"value":1266},{"type":993,"tag":1026,"props":4199,"children":4200},{"style":1041},[4201],{"type":998,"value":1271},{"type":993,"tag":1026,"props":4203,"children":4204},{"style":1147},[4205],{"type":998,"value":4206},"\"Names:\"",{"type":993,"tag":1026,"props":4208,"children":4209},{"style":1041},[4210],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4212,"children":4213},{"style":1058},[4214],{"type":998,"value":4215},"list",{"type":993,"tag":1026,"props":4217,"children":4218},{"style":1041},[4219],{"type":998,"value":4220},"(names))\n",{"type":993,"tag":1026,"props":4222,"children":4223},{"class":1028,"line":81},[4224,4228,4232,4237,4241,4245],{"type":993,"tag":1026,"props":4225,"children":4226},{"style":1058},[4227],{"type":998,"value":1266},{"type":993,"tag":1026,"props":4229,"children":4230},{"style":1041},[4231],{"type":998,"value":1271},{"type":993,"tag":1026,"props":4233,"children":4234},{"style":1147},[4235],{"type":998,"value":4236},"\"Ages:\"",{"type":993,"tag":1026,"props":4238,"children":4239},{"style":1041},[4240],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4242,"children":4243},{"style":1058},[4244],{"type":998,"value":4215},{"type":993,"tag":1026,"props":4246,"children":4247},{"style":1041},[4248],{"type":998,"value":4249},"(ages))\n",{"type":993,"tag":1394,"props":4251,"children":4253},{"id":4252},"advanced-combination-techniques-️",[4254],{"type":998,"value":4255},"Advanced Combination Techniques 🎛️",{"type":993,"tag":1001,"props":4257,"children":4258},{},[4259],{"type":998,"value":4260},"Beyond basic concatenation and zipping, Python offers advanced techniques for combining lists in sophisticated ways.",{"type":993,"tag":1001,"props":4262,"children":4263},{},[4264],{"type":998,"value":4265},"Advanced techniques handle complex data merging scenarios and specialized combination requirements.",{"type":993,"tag":1501,"props":4267,"children":4269},{"id":4268},"interleaving-lists",[4270],{"type":998,"value":4271},"Interleaving Lists",{"type":993,"tag":1001,"props":4273,"children":4274},{},[4275],{"type":998,"value":4276},"Alternating elements from multiple lists for specific data patterns.",{"type":993,"tag":1012,"props":4278,"children":4279},{},[4280],{"type":993,"tag":1016,"props":4281,"children":4283},{"className":1018,"code":4282,"language":6,"meta":8,"style":8},"# Interleaving two lists\nlist1 = [1, 3, 5, 7]\nlist2 = [2, 4, 6, 8]\n\n# Interleave elements\ninterleaved = []\nfor a, b in zip(list1, list2):\n    interleaved.extend([a, b])\nprint(\"Interleaved:\", interleaved)\n",[4284],{"type":993,"tag":1022,"props":4285,"children":4286},{"__ignoreMap":8},[4287,4295,4342,4389,4396,4404,4420,4445,4453],{"type":993,"tag":1026,"props":4288,"children":4289},{"class":1028,"line":12},[4290],{"type":993,"tag":1026,"props":4291,"children":4292},{"style":1032},[4293],{"type":998,"value":4294},"# Interleaving two lists\n",{"type":993,"tag":1026,"props":4296,"children":4297},{"class":1028,"line":27},[4298,4302,4306,4310,4314,4318,4322,4326,4330,4334,4338],{"type":993,"tag":1026,"props":4299,"children":4300},{"style":1041},[4301],{"type":998,"value":1044},{"type":993,"tag":1026,"props":4303,"children":4304},{"style":1047},[4305],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4307,"children":4308},{"style":1041},[4309],{"type":998,"value":1055},{"type":993,"tag":1026,"props":4311,"children":4312},{"style":1058},[4313],{"type":998,"value":1061},{"type":993,"tag":1026,"props":4315,"children":4316},{"style":1041},[4317],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4319,"children":4320},{"style":1058},[4321],{"type":998,"value":1080},{"type":993,"tag":1026,"props":4323,"children":4324},{"style":1041},[4325],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4327,"children":4328},{"style":1058},[4329],{"type":998,"value":1115},{"type":993,"tag":1026,"props":4331,"children":4332},{"style":1041},[4333],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4335,"children":4336},{"style":1058},[4337],{"type":998,"value":2998},{"type":993,"tag":1026,"props":4339,"children":4340},{"style":1041},[4341],{"type":998,"value":1085},{"type":993,"tag":1026,"props":4343,"children":4344},{"class":1028,"line":36},[4345,4349,4353,4357,4361,4365,4369,4373,4377,4381,4385],{"type":993,"tag":1026,"props":4346,"children":4347},{"style":1041},[4348],{"type":998,"value":1093},{"type":993,"tag":1026,"props":4350,"children":4351},{"style":1047},[4352],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4354,"children":4355},{"style":1041},[4356],{"type":998,"value":1055},{"type":993,"tag":1026,"props":4358,"children":4359},{"style":1058},[4360],{"type":998,"value":1071},{"type":993,"tag":1026,"props":4362,"children":4363},{"style":1041},[4364],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4366,"children":4367},{"style":1058},[4368],{"type":998,"value":1106},{"type":993,"tag":1026,"props":4370,"children":4371},{"style":1041},[4372],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4374,"children":4375},{"style":1058},[4376],{"type":998,"value":1124},{"type":993,"tag":1026,"props":4378,"children":4379},{"style":1041},[4380],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4382,"children":4383},{"style":1058},[4384],{"type":998,"value":3007},{"type":993,"tag":1026,"props":4386,"children":4387},{"style":1041},[4388],{"type":998,"value":1085},{"type":993,"tag":1026,"props":4390,"children":4391},{"class":1028,"line":45},[4392],{"type":993,"tag":1026,"props":4393,"children":4394},{"emptyLinePlaceholder":13},[4395],{"type":998,"value":1223},{"type":993,"tag":1026,"props":4397,"children":4398},{"class":1028,"line":54},[4399],{"type":993,"tag":1026,"props":4400,"children":4401},{"style":1032},[4402],{"type":998,"value":4403},"# Interleave elements\n",{"type":993,"tag":1026,"props":4405,"children":4406},{"class":1028,"line":63},[4407,4412,4416],{"type":993,"tag":1026,"props":4408,"children":4409},{"style":1041},[4410],{"type":998,"value":4411},"interleaved ",{"type":993,"tag":1026,"props":4413,"children":4414},{"style":1047},[4415],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4417,"children":4418},{"style":1041},[4419],{"type":998,"value":2905},{"type":993,"tag":1026,"props":4421,"children":4422},{"class":1028,"line":72},[4423,4427,4432,4436,4440],{"type":993,"tag":1026,"props":4424,"children":4425},{"style":1047},[4426],{"type":998,"value":2337},{"type":993,"tag":1026,"props":4428,"children":4429},{"style":1041},[4430],{"type":998,"value":4431}," a, b ",{"type":993,"tag":1026,"props":4433,"children":4434},{"style":1047},[4435],{"type":998,"value":2347},{"type":993,"tag":1026,"props":4437,"children":4438},{"style":1058},[4439],{"type":998,"value":4176},{"type":993,"tag":1026,"props":4441,"children":4442},{"style":1041},[4443],{"type":998,"value":4444},"(list1, list2):\n",{"type":993,"tag":1026,"props":4446,"children":4447},{"class":1028,"line":81},[4448],{"type":993,"tag":1026,"props":4449,"children":4450},{"style":1041},[4451],{"type":998,"value":4452},"    interleaved.extend([a, b])\n",{"type":993,"tag":1026,"props":4454,"children":4455},{"class":1028,"line":91},[4456,4460,4464,4469],{"type":993,"tag":1026,"props":4457,"children":4458},{"style":1058},[4459],{"type":998,"value":1266},{"type":993,"tag":1026,"props":4461,"children":4462},{"style":1041},[4463],{"type":998,"value":1271},{"type":993,"tag":1026,"props":4465,"children":4466},{"style":1147},[4467],{"type":998,"value":4468},"\"Interleaved:\"",{"type":993,"tag":1026,"props":4470,"children":4471},{"style":1041},[4472],{"type":998,"value":4473},", interleaved)\n",{"type":993,"tag":1501,"props":4475,"children":4477},{"id":4476},"merging-with-conditions",[4478],{"type":998,"value":4479},"Merging with Conditions",{"type":993,"tag":1001,"props":4481,"children":4482},{},[4483],{"type":998,"value":4484},"Conditional list combination based on data properties or business rules.",{"type":993,"tag":1012,"props":4486,"children":4487},{},[4488],{"type":993,"tag":1016,"props":4489,"children":4491},{"className":1018,"code":4490,"language":6,"meta":8,"style":8},"# Conditional merging\npositive_nums = [1, 3, 5, 7]\nnegative_nums = [-2, -4, -6]\nzeros = [0, 0]\n\n# Merge based on conditions\ncombined = []\nif len(positive_nums) > 0:\n    combined.extend(positive_nums)\nif len(negative_nums) > 2:\n    combined.extend(negative_nums)\ncombined.extend(zeros)\n\nprint(\"Conditionally merged:\", combined)\n",[4492],{"type":993,"tag":1022,"props":4493,"children":4494},{"__ignoreMap":8},[4495,4503,4551,4604,4637,4644,4652,4667,4700,4708,4737,4745,4753,4760],{"type":993,"tag":1026,"props":4496,"children":4497},{"class":1028,"line":12},[4498],{"type":993,"tag":1026,"props":4499,"children":4500},{"style":1032},[4501],{"type":998,"value":4502},"# Conditional merging\n",{"type":993,"tag":1026,"props":4504,"children":4505},{"class":1028,"line":27},[4506,4511,4515,4519,4523,4527,4531,4535,4539,4543,4547],{"type":993,"tag":1026,"props":4507,"children":4508},{"style":1041},[4509],{"type":998,"value":4510},"positive_nums ",{"type":993,"tag":1026,"props":4512,"children":4513},{"style":1047},[4514],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4516,"children":4517},{"style":1041},[4518],{"type":998,"value":1055},{"type":993,"tag":1026,"props":4520,"children":4521},{"style":1058},[4522],{"type":998,"value":1061},{"type":993,"tag":1026,"props":4524,"children":4525},{"style":1041},[4526],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4528,"children":4529},{"style":1058},[4530],{"type":998,"value":1080},{"type":993,"tag":1026,"props":4532,"children":4533},{"style":1041},[4534],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4536,"children":4537},{"style":1058},[4538],{"type":998,"value":1115},{"type":993,"tag":1026,"props":4540,"children":4541},{"style":1041},[4542],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4544,"children":4545},{"style":1058},[4546],{"type":998,"value":2998},{"type":993,"tag":1026,"props":4548,"children":4549},{"style":1041},[4550],{"type":998,"value":1085},{"type":993,"tag":1026,"props":4552,"children":4553},{"class":1028,"line":36},[4554,4559,4563,4567,4572,4576,4580,4584,4588,4592,4596,4600],{"type":993,"tag":1026,"props":4555,"children":4556},{"style":1041},[4557],{"type":998,"value":4558},"negative_nums ",{"type":993,"tag":1026,"props":4560,"children":4561},{"style":1047},[4562],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4564,"children":4565},{"style":1041},[4566],{"type":998,"value":1055},{"type":993,"tag":1026,"props":4568,"children":4569},{"style":1047},[4570],{"type":998,"value":4571},"-",{"type":993,"tag":1026,"props":4573,"children":4574},{"style":1058},[4575],{"type":998,"value":1071},{"type":993,"tag":1026,"props":4577,"children":4578},{"style":1041},[4579],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4581,"children":4582},{"style":1047},[4583],{"type":998,"value":4571},{"type":993,"tag":1026,"props":4585,"children":4586},{"style":1058},[4587],{"type":998,"value":1106},{"type":993,"tag":1026,"props":4589,"children":4590},{"style":1041},[4591],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4593,"children":4594},{"style":1047},[4595],{"type":998,"value":4571},{"type":993,"tag":1026,"props":4597,"children":4598},{"style":1058},[4599],{"type":998,"value":1124},{"type":993,"tag":1026,"props":4601,"children":4602},{"style":1041},[4603],{"type":998,"value":1085},{"type":993,"tag":1026,"props":4605,"children":4606},{"class":1028,"line":45},[4607,4612,4616,4620,4625,4629,4633],{"type":993,"tag":1026,"props":4608,"children":4609},{"style":1041},[4610],{"type":998,"value":4611},"zeros ",{"type":993,"tag":1026,"props":4613,"children":4614},{"style":1047},[4615],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4617,"children":4618},{"style":1041},[4619],{"type":998,"value":1055},{"type":993,"tag":1026,"props":4621,"children":4622},{"style":1058},[4623],{"type":998,"value":4624},"0",{"type":993,"tag":1026,"props":4626,"children":4627},{"style":1041},[4628],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4630,"children":4631},{"style":1058},[4632],{"type":998,"value":4624},{"type":993,"tag":1026,"props":4634,"children":4635},{"style":1041},[4636],{"type":998,"value":1085},{"type":993,"tag":1026,"props":4638,"children":4639},{"class":1028,"line":54},[4640],{"type":993,"tag":1026,"props":4641,"children":4642},{"emptyLinePlaceholder":13},[4643],{"type":998,"value":1223},{"type":993,"tag":1026,"props":4645,"children":4646},{"class":1028,"line":63},[4647],{"type":993,"tag":1026,"props":4648,"children":4649},{"style":1032},[4650],{"type":998,"value":4651},"# Merge based on conditions\n",{"type":993,"tag":1026,"props":4653,"children":4654},{"class":1028,"line":72},[4655,4659,4663],{"type":993,"tag":1026,"props":4656,"children":4657},{"style":1041},[4658],{"type":998,"value":1239},{"type":993,"tag":1026,"props":4660,"children":4661},{"style":1047},[4662],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4664,"children":4665},{"style":1041},[4666],{"type":998,"value":2905},{"type":993,"tag":1026,"props":4668,"children":4669},{"class":1028,"line":81},[4670,4675,4680,4685,4690,4695],{"type":993,"tag":1026,"props":4671,"children":4672},{"style":1047},[4673],{"type":998,"value":4674},"if",{"type":993,"tag":1026,"props":4676,"children":4677},{"style":1058},[4678],{"type":998,"value":4679}," len",{"type":993,"tag":1026,"props":4681,"children":4682},{"style":1041},[4683],{"type":998,"value":4684},"(positive_nums) ",{"type":993,"tag":1026,"props":4686,"children":4687},{"style":1047},[4688],{"type":998,"value":4689},">",{"type":993,"tag":1026,"props":4691,"children":4692},{"style":1058},[4693],{"type":998,"value":4694}," 0",{"type":993,"tag":1026,"props":4696,"children":4697},{"style":1041},[4698],{"type":998,"value":4699},":\n",{"type":993,"tag":1026,"props":4701,"children":4702},{"class":1028,"line":91},[4703],{"type":993,"tag":1026,"props":4704,"children":4705},{"style":1041},[4706],{"type":998,"value":4707},"    combined.extend(positive_nums)\n",{"type":993,"tag":1026,"props":4709,"children":4710},{"class":1028,"line":100},[4711,4715,4719,4724,4728,4733],{"type":993,"tag":1026,"props":4712,"children":4713},{"style":1047},[4714],{"type":998,"value":4674},{"type":993,"tag":1026,"props":4716,"children":4717},{"style":1058},[4718],{"type":998,"value":4679},{"type":993,"tag":1026,"props":4720,"children":4721},{"style":1041},[4722],{"type":998,"value":4723},"(negative_nums) ",{"type":993,"tag":1026,"props":4725,"children":4726},{"style":1047},[4727],{"type":998,"value":4689},{"type":993,"tag":1026,"props":4729,"children":4730},{"style":1058},[4731],{"type":998,"value":4732}," 2",{"type":993,"tag":1026,"props":4734,"children":4735},{"style":1041},[4736],{"type":998,"value":4699},{"type":993,"tag":1026,"props":4738,"children":4739},{"class":1028,"line":109},[4740],{"type":993,"tag":1026,"props":4741,"children":4742},{"style":1041},[4743],{"type":998,"value":4744},"    combined.extend(negative_nums)\n",{"type":993,"tag":1026,"props":4746,"children":4747},{"class":1028,"line":118},[4748],{"type":993,"tag":1026,"props":4749,"children":4750},{"style":1041},[4751],{"type":998,"value":4752},"combined.extend(zeros)\n",{"type":993,"tag":1026,"props":4754,"children":4755},{"class":1028,"line":127},[4756],{"type":993,"tag":1026,"props":4757,"children":4758},{"emptyLinePlaceholder":13},[4759],{"type":998,"value":1223},{"type":993,"tag":1026,"props":4761,"children":4762},{"class":1028,"line":136},[4763,4767,4771,4776],{"type":993,"tag":1026,"props":4764,"children":4765},{"style":1058},[4766],{"type":998,"value":1266},{"type":993,"tag":1026,"props":4768,"children":4769},{"style":1041},[4770],{"type":998,"value":1271},{"type":993,"tag":1026,"props":4772,"children":4773},{"style":1147},[4774],{"type":998,"value":4775},"\"Conditionally merged:\"",{"type":993,"tag":1026,"props":4777,"children":4778},{"style":1041},[4779],{"type":998,"value":1281},{"type":993,"tag":1501,"props":4781,"children":4783},{"id":4782},"flattening-nested-lists",[4784],{"type":998,"value":4785},"Flattening Nested Lists",{"type":993,"tag":1001,"props":4787,"children":4788},{},[4789],{"type":998,"value":4790},"Converting multi-dimensional list structures into single-level lists.",{"type":993,"tag":1012,"props":4792,"children":4793},{},[4794],{"type":993,"tag":1016,"props":4795,"children":4797},{"className":1018,"code":4796,"language":6,"meta":8,"style":8},"# Flattening nested lists\nnested = [[1, 2], [3, 4], [5, 6]]\nprint(\"Nested lists:\", nested)\n\n# Flatten using extend\nflattened = []\nfor sublist in nested:\n    flattened.extend(sublist)\nprint(\"Flattened:\", flattened)\n\n# Flatten using list comprehension\nflat_comp = [item for sublist in nested for item in sublist]\nprint(\"Flattened (comprehension):\", flat_comp)\n",[4798],{"type":993,"tag":1022,"props":4799,"children":4800},{"__ignoreMap":8},[4801,4809,4876,4897,4904,4912,4928,4949,4957,4978,4985,4993,5045],{"type":993,"tag":1026,"props":4802,"children":4803},{"class":1028,"line":12},[4804],{"type":993,"tag":1026,"props":4805,"children":4806},{"style":1032},[4807],{"type":998,"value":4808},"# Flattening nested lists\n",{"type":993,"tag":1026,"props":4810,"children":4811},{"class":1028,"line":27},[4812,4817,4821,4826,4830,4834,4838,4843,4847,4851,4855,4859,4863,4867,4871],{"type":993,"tag":1026,"props":4813,"children":4814},{"style":1041},[4815],{"type":998,"value":4816},"nested ",{"type":993,"tag":1026,"props":4818,"children":4819},{"style":1047},[4820],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4822,"children":4823},{"style":1041},[4824],{"type":998,"value":4825}," [[",{"type":993,"tag":1026,"props":4827,"children":4828},{"style":1058},[4829],{"type":998,"value":1061},{"type":993,"tag":1026,"props":4831,"children":4832},{"style":1041},[4833],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4835,"children":4836},{"style":1058},[4837],{"type":998,"value":1071},{"type":993,"tag":1026,"props":4839,"children":4840},{"style":1041},[4841],{"type":998,"value":4842},"], [",{"type":993,"tag":1026,"props":4844,"children":4845},{"style":1058},[4846],{"type":998,"value":1080},{"type":993,"tag":1026,"props":4848,"children":4849},{"style":1041},[4850],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4852,"children":4853},{"style":1058},[4854],{"type":998,"value":1106},{"type":993,"tag":1026,"props":4856,"children":4857},{"style":1041},[4858],{"type":998,"value":4842},{"type":993,"tag":1026,"props":4860,"children":4861},{"style":1058},[4862],{"type":998,"value":1115},{"type":993,"tag":1026,"props":4864,"children":4865},{"style":1041},[4866],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4868,"children":4869},{"style":1058},[4870],{"type":998,"value":1124},{"type":993,"tag":1026,"props":4872,"children":4873},{"style":1041},[4874],{"type":998,"value":4875},"]]\n",{"type":993,"tag":1026,"props":4877,"children":4878},{"class":1028,"line":36},[4879,4883,4887,4892],{"type":993,"tag":1026,"props":4880,"children":4881},{"style":1058},[4882],{"type":998,"value":1266},{"type":993,"tag":1026,"props":4884,"children":4885},{"style":1041},[4886],{"type":998,"value":1271},{"type":993,"tag":1026,"props":4888,"children":4889},{"style":1147},[4890],{"type":998,"value":4891},"\"Nested lists:\"",{"type":993,"tag":1026,"props":4893,"children":4894},{"style":1041},[4895],{"type":998,"value":4896},", nested)\n",{"type":993,"tag":1026,"props":4898,"children":4899},{"class":1028,"line":45},[4900],{"type":993,"tag":1026,"props":4901,"children":4902},{"emptyLinePlaceholder":13},[4903],{"type":998,"value":1223},{"type":993,"tag":1026,"props":4905,"children":4906},{"class":1028,"line":54},[4907],{"type":993,"tag":1026,"props":4908,"children":4909},{"style":1032},[4910],{"type":998,"value":4911},"# Flatten using extend\n",{"type":993,"tag":1026,"props":4913,"children":4914},{"class":1028,"line":63},[4915,4920,4924],{"type":993,"tag":1026,"props":4916,"children":4917},{"style":1041},[4918],{"type":998,"value":4919},"flattened ",{"type":993,"tag":1026,"props":4921,"children":4922},{"style":1047},[4923],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4925,"children":4926},{"style":1041},[4927],{"type":998,"value":2905},{"type":993,"tag":1026,"props":4929,"children":4930},{"class":1028,"line":72},[4931,4935,4940,4944],{"type":993,"tag":1026,"props":4932,"children":4933},{"style":1047},[4934],{"type":998,"value":2337},{"type":993,"tag":1026,"props":4936,"children":4937},{"style":1041},[4938],{"type":998,"value":4939}," sublist ",{"type":993,"tag":1026,"props":4941,"children":4942},{"style":1047},[4943],{"type":998,"value":2347},{"type":993,"tag":1026,"props":4945,"children":4946},{"style":1041},[4947],{"type":998,"value":4948}," nested:\n",{"type":993,"tag":1026,"props":4950,"children":4951},{"class":1028,"line":81},[4952],{"type":993,"tag":1026,"props":4953,"children":4954},{"style":1041},[4955],{"type":998,"value":4956},"    flattened.extend(sublist)\n",{"type":993,"tag":1026,"props":4958,"children":4959},{"class":1028,"line":91},[4960,4964,4968,4973],{"type":993,"tag":1026,"props":4961,"children":4962},{"style":1058},[4963],{"type":998,"value":1266},{"type":993,"tag":1026,"props":4965,"children":4966},{"style":1041},[4967],{"type":998,"value":1271},{"type":993,"tag":1026,"props":4969,"children":4970},{"style":1147},[4971],{"type":998,"value":4972},"\"Flattened:\"",{"type":993,"tag":1026,"props":4974,"children":4975},{"style":1041},[4976],{"type":998,"value":4977},", flattened)\n",{"type":993,"tag":1026,"props":4979,"children":4980},{"class":1028,"line":100},[4981],{"type":993,"tag":1026,"props":4982,"children":4983},{"emptyLinePlaceholder":13},[4984],{"type":998,"value":1223},{"type":993,"tag":1026,"props":4986,"children":4987},{"class":1028,"line":109},[4988],{"type":993,"tag":1026,"props":4989,"children":4990},{"style":1032},[4991],{"type":998,"value":4992},"# Flatten using list comprehension\n",{"type":993,"tag":1026,"props":4994,"children":4995},{"class":1028,"line":118},[4996,5001,5005,5010,5014,5018,5022,5027,5031,5036,5040],{"type":993,"tag":1026,"props":4997,"children":4998},{"style":1041},[4999],{"type":998,"value":5000},"flat_comp ",{"type":993,"tag":1026,"props":5002,"children":5003},{"style":1047},[5004],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5006,"children":5007},{"style":1041},[5008],{"type":998,"value":5009}," [item ",{"type":993,"tag":1026,"props":5011,"children":5012},{"style":1047},[5013],{"type":998,"value":2337},{"type":993,"tag":1026,"props":5015,"children":5016},{"style":1041},[5017],{"type":998,"value":4939},{"type":993,"tag":1026,"props":5019,"children":5020},{"style":1047},[5021],{"type":998,"value":2347},{"type":993,"tag":1026,"props":5023,"children":5024},{"style":1041},[5025],{"type":998,"value":5026}," nested ",{"type":993,"tag":1026,"props":5028,"children":5029},{"style":1047},[5030],{"type":998,"value":2337},{"type":993,"tag":1026,"props":5032,"children":5033},{"style":1041},[5034],{"type":998,"value":5035}," item ",{"type":993,"tag":1026,"props":5037,"children":5038},{"style":1047},[5039],{"type":998,"value":2347},{"type":993,"tag":1026,"props":5041,"children":5042},{"style":1041},[5043],{"type":998,"value":5044}," sublist]\n",{"type":993,"tag":1026,"props":5046,"children":5047},{"class":1028,"line":127},[5048,5052,5056,5061],{"type":993,"tag":1026,"props":5049,"children":5050},{"style":1058},[5051],{"type":998,"value":1266},{"type":993,"tag":1026,"props":5053,"children":5054},{"style":1041},[5055],{"type":998,"value":1271},{"type":993,"tag":1026,"props":5057,"children":5058},{"style":1147},[5059],{"type":998,"value":5060},"\"Flattened (comprehension):\"",{"type":993,"tag":1026,"props":5062,"children":5063},{"style":1041},[5064],{"type":998,"value":5065},", flat_comp)\n",{"type":993,"tag":1501,"props":5067,"children":5069},{"id":5068},"merging-dictionaries-in-lists",[5070],{"type":998,"value":5071},"Merging Dictionaries in Lists",{"type":993,"tag":1001,"props":5073,"children":5074},{},[5075],{"type":998,"value":5076},"Combining lists containing dictionary objects for complex data structures.",{"type":993,"tag":1012,"props":5078,"children":5079},{},[5080],{"type":993,"tag":1016,"props":5081,"children":5083},{"className":1018,"code":5082,"language":6,"meta":8,"style":8},"# Combining lists of dictionaries\nusers1 = [{\"name\": \"Alice\", \"age\": 25}]\nusers2 = [{\"name\": \"Bob\", \"age\": 30}]\nusers3 = [{\"name\": \"Charlie\", \"age\": 35}]\n\n# Combine all user lists\nall_users = users1 + users2 + users3\nprint(\"All users:\")\nfor user in all_users:\n    print(f\"  {user}\")\n",[5084],{"type":993,"tag":1022,"props":5085,"children":5086},{"__ignoreMap":8},[5087,5095,5147,5195,5243,5250,5258,5293,5313,5334],{"type":993,"tag":1026,"props":5088,"children":5089},{"class":1028,"line":12},[5090],{"type":993,"tag":1026,"props":5091,"children":5092},{"style":1032},[5093],{"type":998,"value":5094},"# Combining lists of dictionaries\n",{"type":993,"tag":1026,"props":5096,"children":5097},{"class":1028,"line":27},[5098,5103,5107,5112,5117,5121,5125,5129,5134,5138,5142],{"type":993,"tag":1026,"props":5099,"children":5100},{"style":1041},[5101],{"type":998,"value":5102},"users1 ",{"type":993,"tag":1026,"props":5104,"children":5105},{"style":1047},[5106],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5108,"children":5109},{"style":1041},[5110],{"type":998,"value":5111}," [{",{"type":993,"tag":1026,"props":5113,"children":5114},{"style":1147},[5115],{"type":998,"value":5116},"\"name\"",{"type":993,"tag":1026,"props":5118,"children":5119},{"style":1041},[5120],{"type":998,"value":3104},{"type":993,"tag":1026,"props":5122,"children":5123},{"style":1147},[5124],{"type":998,"value":1150},{"type":993,"tag":1026,"props":5126,"children":5127},{"style":1041},[5128],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5130,"children":5131},{"style":1147},[5132],{"type":998,"value":5133},"\"age\"",{"type":993,"tag":1026,"props":5135,"children":5136},{"style":1041},[5137],{"type":998,"value":3104},{"type":993,"tag":1026,"props":5139,"children":5140},{"style":1058},[5141],{"type":998,"value":1193},{"type":993,"tag":1026,"props":5143,"children":5144},{"style":1041},[5145],{"type":998,"value":5146},"}]\n",{"type":993,"tag":1026,"props":5148,"children":5149},{"class":1028,"line":36},[5150,5155,5159,5163,5167,5171,5175,5179,5183,5187,5191],{"type":993,"tag":1026,"props":5151,"children":5152},{"style":1041},[5153],{"type":998,"value":5154},"users2 ",{"type":993,"tag":1026,"props":5156,"children":5157},{"style":1047},[5158],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5160,"children":5161},{"style":1041},[5162],{"type":998,"value":5111},{"type":993,"tag":1026,"props":5164,"children":5165},{"style":1147},[5166],{"type":998,"value":5116},{"type":993,"tag":1026,"props":5168,"children":5169},{"style":1041},[5170],{"type":998,"value":3104},{"type":993,"tag":1026,"props":5172,"children":5173},{"style":1147},[5174],{"type":998,"value":1159},{"type":993,"tag":1026,"props":5176,"children":5177},{"style":1041},[5178],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5180,"children":5181},{"style":1147},[5182],{"type":998,"value":5133},{"type":993,"tag":1026,"props":5184,"children":5185},{"style":1041},[5186],{"type":998,"value":3104},{"type":993,"tag":1026,"props":5188,"children":5189},{"style":1058},[5190],{"type":998,"value":1202},{"type":993,"tag":1026,"props":5192,"children":5193},{"style":1041},[5194],{"type":998,"value":5146},{"type":993,"tag":1026,"props":5196,"children":5197},{"class":1028,"line":45},[5198,5203,5207,5211,5215,5219,5223,5227,5231,5235,5239],{"type":993,"tag":1026,"props":5199,"children":5200},{"style":1041},[5201],{"type":998,"value":5202},"users3 ",{"type":993,"tag":1026,"props":5204,"children":5205},{"style":1047},[5206],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5208,"children":5209},{"style":1041},[5210],{"type":998,"value":5111},{"type":993,"tag":1026,"props":5212,"children":5213},{"style":1147},[5214],{"type":998,"value":5116},{"type":993,"tag":1026,"props":5216,"children":5217},{"style":1041},[5218],{"type":998,"value":3104},{"type":993,"tag":1026,"props":5220,"children":5221},{"style":1147},[5222],{"type":998,"value":1168},{"type":993,"tag":1026,"props":5224,"children":5225},{"style":1041},[5226],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5228,"children":5229},{"style":1147},[5230],{"type":998,"value":5133},{"type":993,"tag":1026,"props":5232,"children":5233},{"style":1041},[5234],{"type":998,"value":3104},{"type":993,"tag":1026,"props":5236,"children":5237},{"style":1058},[5238],{"type":998,"value":1211},{"type":993,"tag":1026,"props":5240,"children":5241},{"style":1041},[5242],{"type":998,"value":5146},{"type":993,"tag":1026,"props":5244,"children":5245},{"class":1028,"line":54},[5246],{"type":993,"tag":1026,"props":5247,"children":5248},{"emptyLinePlaceholder":13},[5249],{"type":998,"value":1223},{"type":993,"tag":1026,"props":5251,"children":5252},{"class":1028,"line":63},[5253],{"type":993,"tag":1026,"props":5254,"children":5255},{"style":1032},[5256],{"type":998,"value":5257},"# Combine all user lists\n",{"type":993,"tag":1026,"props":5259,"children":5260},{"class":1028,"line":72},[5261,5266,5270,5275,5279,5284,5288],{"type":993,"tag":1026,"props":5262,"children":5263},{"style":1041},[5264],{"type":998,"value":5265},"all_users ",{"type":993,"tag":1026,"props":5267,"children":5268},{"style":1047},[5269],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5271,"children":5272},{"style":1041},[5273],{"type":998,"value":5274}," users1 ",{"type":993,"tag":1026,"props":5276,"children":5277},{"style":1047},[5278],{"type":998,"value":1253},{"type":993,"tag":1026,"props":5280,"children":5281},{"style":1041},[5282],{"type":998,"value":5283}," users2 ",{"type":993,"tag":1026,"props":5285,"children":5286},{"style":1047},[5287],{"type":998,"value":1253},{"type":993,"tag":1026,"props":5289,"children":5290},{"style":1041},[5291],{"type":998,"value":5292}," users3\n",{"type":993,"tag":1026,"props":5294,"children":5295},{"class":1028,"line":81},[5296,5300,5304,5309],{"type":993,"tag":1026,"props":5297,"children":5298},{"style":1058},[5299],{"type":998,"value":1266},{"type":993,"tag":1026,"props":5301,"children":5302},{"style":1041},[5303],{"type":998,"value":1271},{"type":993,"tag":1026,"props":5305,"children":5306},{"style":1147},[5307],{"type":998,"value":5308},"\"All users:\"",{"type":993,"tag":1026,"props":5310,"children":5311},{"style":1041},[5312],{"type":998,"value":2329},{"type":993,"tag":1026,"props":5314,"children":5315},{"class":1028,"line":91},[5316,5320,5325,5329],{"type":993,"tag":1026,"props":5317,"children":5318},{"style":1047},[5319],{"type":998,"value":2337},{"type":993,"tag":1026,"props":5321,"children":5322},{"style":1041},[5323],{"type":998,"value":5324}," user ",{"type":993,"tag":1026,"props":5326,"children":5327},{"style":1047},[5328],{"type":998,"value":2347},{"type":993,"tag":1026,"props":5330,"children":5331},{"style":1041},[5332],{"type":998,"value":5333}," all_users:\n",{"type":993,"tag":1026,"props":5335,"children":5336},{"class":1028,"line":100},[5337,5341,5345,5349,5354,5358,5363,5367,5371],{"type":993,"tag":1026,"props":5338,"children":5339},{"style":1058},[5340],{"type":998,"value":2360},{"type":993,"tag":1026,"props":5342,"children":5343},{"style":1041},[5344],{"type":998,"value":1271},{"type":993,"tag":1026,"props":5346,"children":5347},{"style":1047},[5348],{"type":998,"value":3079},{"type":993,"tag":1026,"props":5350,"children":5351},{"style":1147},[5352],{"type":998,"value":5353},"\"  ",{"type":993,"tag":1026,"props":5355,"children":5356},{"style":1058},[5357],{"type":998,"value":3089},{"type":993,"tag":1026,"props":5359,"children":5360},{"style":1041},[5361],{"type":998,"value":5362},"user",{"type":993,"tag":1026,"props":5364,"children":5365},{"style":1058},[5366],{"type":998,"value":3099},{"type":993,"tag":1026,"props":5368,"children":5369},{"style":1147},[5370],{"type":998,"value":3122},{"type":993,"tag":1026,"props":5372,"children":5373},{"style":1041},[5374],{"type":998,"value":2329},{"type":993,"tag":1394,"props":5376,"children":5378},{"id":5377},"combining-with-duplicates-handling",[5379],{"type":998,"value":5380},"Combining with Duplicates Handling",{"type":993,"tag":1001,"props":5382,"children":5383},{},[5384],{"type":998,"value":5385},"When combining lists, you often need to handle duplicate values. Python provides several approaches for managing duplicates during combination.",{"type":993,"tag":1001,"props":5387,"children":5388},{},[5389],{"type":998,"value":5390},"Duplicate handling ensures data quality and prevents redundant information in combined datasets.",{"type":993,"tag":1413,"props":5392,"children":5395},{"title":5393,"type":5394},"Duplicate Handling Strategies","warning",[5396,5404,5427,5435,5453],{"type":993,"tag":1001,"props":5397,"children":5398},{},[5399],{"type":993,"tag":1423,"props":5400,"children":5401},{},[5402],{"type":998,"value":5403},"Common Approaches:",{"type":993,"tag":1429,"props":5405,"children":5406},{},[5407,5412,5417,5422],{"type":993,"tag":1433,"props":5408,"children":5409},{},[5410],{"type":998,"value":5411},"Remove after combining: Simple but less efficient",{"type":993,"tag":1433,"props":5413,"children":5414},{},[5415],{"type":998,"value":5416},"Use sets: Fast but loses order",{"type":993,"tag":1433,"props":5418,"children":5419},{},[5420],{"type":998,"value":5421},"Use dict.fromkeys(): Preserves order (Python 3.7+)",{"type":993,"tag":1433,"props":5423,"children":5424},{},[5425],{"type":998,"value":5426},"Manual checking: Full control but slower",{"type":993,"tag":1001,"props":5428,"children":5429},{},[5430],{"type":993,"tag":1423,"props":5431,"children":5432},{},[5433],{"type":998,"value":5434},"Performance Considerations:",{"type":993,"tag":1429,"props":5436,"children":5437},{},[5438,5443,5448],{"type":993,"tag":1433,"props":5439,"children":5440},{},[5441],{"type":998,"value":5442},"Sets: Fastest for large datasets",{"type":993,"tag":1433,"props":5444,"children":5445},{},[5446],{"type":998,"value":5447},"Order preservation: Use dict.fromkeys() or manual checking",{"type":993,"tag":1433,"props":5449,"children":5450},{},[5451],{"type":998,"value":5452},"Memory usage: Sets use more memory initially",{"type":993,"tag":1001,"props":5454,"children":5455},{},[5456,5461],{"type":993,"tag":1423,"props":5457,"children":5458},{},[5459],{"type":998,"value":5460},"Choose Based On:",{"type":998,"value":5462}," Whether order matters and dataset size",{"type":993,"tag":1501,"props":5464,"children":5466},{"id":5465},"removing-duplicates-after-combination",[5467],{"type":998,"value":5468},"Removing Duplicates After Combination",{"type":993,"tag":1001,"props":5470,"children":5471},{},[5472],{"type":998,"value":5473},"Post-combination duplicate removal with order preservation.",{"type":993,"tag":1012,"props":5475,"children":5476},{},[5477],{"type":993,"tag":1016,"props":5478,"children":5480},{"className":1018,"code":5479,"language":6,"meta":8,"style":8},"# Removing duplicates after combining\nlist1 = [1, 2, 3, 4]\nlist2 = [3, 4, 5, 6]\n\n# Combine first\ncombined = list1 + list2\nprint(\"Combined with duplicates:\", combined)\n\n# Remove duplicates while preserving order\nunique = []\nfor item in combined:\n    if item not in unique:\n        unique.append(item)\nprint(\"Unique items:\", unique)\n\n# Using dict.fromkeys() for order preservation\nunique_ordered = list(dict.fromkeys(combined))\nprint(\"Unique (dict method):\", unique_ordered)\n",[5481],{"type":993,"tag":1022,"props":5482,"children":5483},{"__ignoreMap":8},[5484,5492,5539,5586,5593,5601,5624,5644,5651,5659,5675,5695,5722,5730,5751,5758,5766,5796],{"type":993,"tag":1026,"props":5485,"children":5486},{"class":1028,"line":12},[5487],{"type":993,"tag":1026,"props":5488,"children":5489},{"style":1032},[5490],{"type":998,"value":5491},"# Removing duplicates after combining\n",{"type":993,"tag":1026,"props":5493,"children":5494},{"class":1028,"line":27},[5495,5499,5503,5507,5511,5515,5519,5523,5527,5531,5535],{"type":993,"tag":1026,"props":5496,"children":5497},{"style":1041},[5498],{"type":998,"value":1044},{"type":993,"tag":1026,"props":5500,"children":5501},{"style":1047},[5502],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5504,"children":5505},{"style":1041},[5506],{"type":998,"value":1055},{"type":993,"tag":1026,"props":5508,"children":5509},{"style":1058},[5510],{"type":998,"value":1061},{"type":993,"tag":1026,"props":5512,"children":5513},{"style":1041},[5514],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5516,"children":5517},{"style":1058},[5518],{"type":998,"value":1071},{"type":993,"tag":1026,"props":5520,"children":5521},{"style":1041},[5522],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5524,"children":5525},{"style":1058},[5526],{"type":998,"value":1080},{"type":993,"tag":1026,"props":5528,"children":5529},{"style":1041},[5530],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5532,"children":5533},{"style":1058},[5534],{"type":998,"value":1106},{"type":993,"tag":1026,"props":5536,"children":5537},{"style":1041},[5538],{"type":998,"value":1085},{"type":993,"tag":1026,"props":5540,"children":5541},{"class":1028,"line":36},[5542,5546,5550,5554,5558,5562,5566,5570,5574,5578,5582],{"type":993,"tag":1026,"props":5543,"children":5544},{"style":1041},[5545],{"type":998,"value":1093},{"type":993,"tag":1026,"props":5547,"children":5548},{"style":1047},[5549],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5551,"children":5552},{"style":1041},[5553],{"type":998,"value":1055},{"type":993,"tag":1026,"props":5555,"children":5556},{"style":1058},[5557],{"type":998,"value":1080},{"type":993,"tag":1026,"props":5559,"children":5560},{"style":1041},[5561],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5563,"children":5564},{"style":1058},[5565],{"type":998,"value":1106},{"type":993,"tag":1026,"props":5567,"children":5568},{"style":1041},[5569],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5571,"children":5572},{"style":1058},[5573],{"type":998,"value":1115},{"type":993,"tag":1026,"props":5575,"children":5576},{"style":1041},[5577],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5579,"children":5580},{"style":1058},[5581],{"type":998,"value":1124},{"type":993,"tag":1026,"props":5583,"children":5584},{"style":1041},[5585],{"type":998,"value":1085},{"type":993,"tag":1026,"props":5587,"children":5588},{"class":1028,"line":45},[5589],{"type":993,"tag":1026,"props":5590,"children":5591},{"emptyLinePlaceholder":13},[5592],{"type":998,"value":1223},{"type":993,"tag":1026,"props":5594,"children":5595},{"class":1028,"line":54},[5596],{"type":993,"tag":1026,"props":5597,"children":5598},{"style":1032},[5599],{"type":998,"value":5600},"# Combine first\n",{"type":993,"tag":1026,"props":5602,"children":5603},{"class":1028,"line":63},[5604,5608,5612,5616,5620],{"type":993,"tag":1026,"props":5605,"children":5606},{"style":1041},[5607],{"type":998,"value":1239},{"type":993,"tag":1026,"props":5609,"children":5610},{"style":1047},[5611],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5613,"children":5614},{"style":1041},[5615],{"type":998,"value":1248},{"type":993,"tag":1026,"props":5617,"children":5618},{"style":1047},[5619],{"type":998,"value":1253},{"type":993,"tag":1026,"props":5621,"children":5622},{"style":1041},[5623],{"type":998,"value":1258},{"type":993,"tag":1026,"props":5625,"children":5626},{"class":1028,"line":72},[5627,5631,5635,5640],{"type":993,"tag":1026,"props":5628,"children":5629},{"style":1058},[5630],{"type":998,"value":1266},{"type":993,"tag":1026,"props":5632,"children":5633},{"style":1041},[5634],{"type":998,"value":1271},{"type":993,"tag":1026,"props":5636,"children":5637},{"style":1147},[5638],{"type":998,"value":5639},"\"Combined with duplicates:\"",{"type":993,"tag":1026,"props":5641,"children":5642},{"style":1041},[5643],{"type":998,"value":1281},{"type":993,"tag":1026,"props":5645,"children":5646},{"class":1028,"line":81},[5647],{"type":993,"tag":1026,"props":5648,"children":5649},{"emptyLinePlaceholder":13},[5650],{"type":998,"value":1223},{"type":993,"tag":1026,"props":5652,"children":5653},{"class":1028,"line":91},[5654],{"type":993,"tag":1026,"props":5655,"children":5656},{"style":1032},[5657],{"type":998,"value":5658},"# Remove duplicates while preserving order\n",{"type":993,"tag":1026,"props":5660,"children":5661},{"class":1028,"line":100},[5662,5667,5671],{"type":993,"tag":1026,"props":5663,"children":5664},{"style":1041},[5665],{"type":998,"value":5666},"unique ",{"type":993,"tag":1026,"props":5668,"children":5669},{"style":1047},[5670],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5672,"children":5673},{"style":1041},[5674],{"type":998,"value":2905},{"type":993,"tag":1026,"props":5676,"children":5677},{"class":1028,"line":109},[5678,5682,5686,5690],{"type":993,"tag":1026,"props":5679,"children":5680},{"style":1047},[5681],{"type":998,"value":2337},{"type":993,"tag":1026,"props":5683,"children":5684},{"style":1041},[5685],{"type":998,"value":5035},{"type":993,"tag":1026,"props":5687,"children":5688},{"style":1047},[5689],{"type":998,"value":2347},{"type":993,"tag":1026,"props":5691,"children":5692},{"style":1041},[5693],{"type":998,"value":5694}," combined:\n",{"type":993,"tag":1026,"props":5696,"children":5697},{"class":1028,"line":118},[5698,5703,5707,5712,5717],{"type":993,"tag":1026,"props":5699,"children":5700},{"style":1047},[5701],{"type":998,"value":5702},"    if",{"type":993,"tag":1026,"props":5704,"children":5705},{"style":1041},[5706],{"type":998,"value":5035},{"type":993,"tag":1026,"props":5708,"children":5709},{"style":1047},[5710],{"type":998,"value":5711},"not",{"type":993,"tag":1026,"props":5713,"children":5714},{"style":1047},[5715],{"type":998,"value":5716}," in",{"type":993,"tag":1026,"props":5718,"children":5719},{"style":1041},[5720],{"type":998,"value":5721}," unique:\n",{"type":993,"tag":1026,"props":5723,"children":5724},{"class":1028,"line":127},[5725],{"type":993,"tag":1026,"props":5726,"children":5727},{"style":1041},[5728],{"type":998,"value":5729},"        unique.append(item)\n",{"type":993,"tag":1026,"props":5731,"children":5732},{"class":1028,"line":136},[5733,5737,5741,5746],{"type":993,"tag":1026,"props":5734,"children":5735},{"style":1058},[5736],{"type":998,"value":1266},{"type":993,"tag":1026,"props":5738,"children":5739},{"style":1041},[5740],{"type":998,"value":1271},{"type":993,"tag":1026,"props":5742,"children":5743},{"style":1147},[5744],{"type":998,"value":5745},"\"Unique items:\"",{"type":993,"tag":1026,"props":5747,"children":5748},{"style":1041},[5749],{"type":998,"value":5750},", unique)\n",{"type":993,"tag":1026,"props":5752,"children":5753},{"class":1028,"line":146},[5754],{"type":993,"tag":1026,"props":5755,"children":5756},{"emptyLinePlaceholder":13},[5757],{"type":998,"value":1223},{"type":993,"tag":1026,"props":5759,"children":5760},{"class":1028,"line":155},[5761],{"type":993,"tag":1026,"props":5762,"children":5763},{"style":1032},[5764],{"type":998,"value":5765},"# Using dict.fromkeys() for order preservation\n",{"type":993,"tag":1026,"props":5767,"children":5768},{"class":1028,"line":164},[5769,5774,5778,5782,5786,5791],{"type":993,"tag":1026,"props":5770,"children":5771},{"style":1041},[5772],{"type":998,"value":5773},"unique_ordered ",{"type":993,"tag":1026,"props":5775,"children":5776},{"style":1047},[5777],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5779,"children":5780},{"style":1058},[5781],{"type":998,"value":1313},{"type":993,"tag":1026,"props":5783,"children":5784},{"style":1041},[5785],{"type":998,"value":1271},{"type":993,"tag":1026,"props":5787,"children":5788},{"style":1058},[5789],{"type":998,"value":5790},"dict",{"type":993,"tag":1026,"props":5792,"children":5793},{"style":1041},[5794],{"type":998,"value":5795},".fromkeys(combined))\n",{"type":993,"tag":1026,"props":5797,"children":5798},{"class":1028,"line":173},[5799,5803,5807,5812],{"type":993,"tag":1026,"props":5800,"children":5801},{"style":1058},[5802],{"type":998,"value":1266},{"type":993,"tag":1026,"props":5804,"children":5805},{"style":1041},[5806],{"type":998,"value":1271},{"type":993,"tag":1026,"props":5808,"children":5809},{"style":1147},[5810],{"type":998,"value":5811},"\"Unique (dict method):\"",{"type":993,"tag":1026,"props":5813,"children":5814},{"style":1041},[5815],{"type":998,"value":5816},", unique_ordered)\n",{"type":993,"tag":1501,"props":5818,"children":5820},{"id":5819},"using-sets-for-unique-combination",[5821],{"type":998,"value":5822},"Using Sets for Unique Combination",{"type":993,"tag":1001,"props":5824,"children":5825},{},[5826],{"type":998,"value":5827},"Set-based duplicate elimination for fast processing of large datasets.",{"type":993,"tag":1012,"props":5829,"children":5830},{},[5831],{"type":993,"tag":1016,"props":5832,"children":5834},{"className":1018,"code":5833,"language":6,"meta":8,"style":8},"# Using sets to eliminate duplicates\ncolors1 = [\"red\", \"blue\", \"green\"]\ncolors2 = [\"blue\", \"yellow\", \"red\"]\n\n# Combine and remove duplicates\nunique_colors = list(set(colors1 + colors2))\nprint(\"Unique colors (unordered):\", unique_colors)\n\n# Preserve order with dict\nunique_ordered = list(dict.fromkeys(colors1 + colors2))\nprint(\"Unique colors (ordered):\", unique_ordered)\n",[5835],{"type":993,"tag":1022,"props":5836,"children":5837},{"__ignoreMap":8},[5838,5846,5886,5926,5933,5941,5980,6001,6008,6016,6052],{"type":993,"tag":1026,"props":5839,"children":5840},{"class":1028,"line":12},[5841],{"type":993,"tag":1026,"props":5842,"children":5843},{"style":1032},[5844],{"type":998,"value":5845},"# Using sets to eliminate duplicates\n",{"type":993,"tag":1026,"props":5847,"children":5848},{"class":1028,"line":27},[5849,5854,5858,5862,5866,5870,5874,5878,5882],{"type":993,"tag":1026,"props":5850,"children":5851},{"style":1041},[5852],{"type":998,"value":5853},"colors1 ",{"type":993,"tag":1026,"props":5855,"children":5856},{"style":1047},[5857],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5859,"children":5860},{"style":1041},[5861],{"type":998,"value":1055},{"type":993,"tag":1026,"props":5863,"children":5864},{"style":1147},[5865],{"type":998,"value":3888},{"type":993,"tag":1026,"props":5867,"children":5868},{"style":1041},[5869],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5871,"children":5872},{"style":1147},[5873],{"type":998,"value":3906},{"type":993,"tag":1026,"props":5875,"children":5876},{"style":1041},[5877],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5879,"children":5880},{"style":1147},[5881],{"type":998,"value":3897},{"type":993,"tag":1026,"props":5883,"children":5884},{"style":1041},[5885],{"type":998,"value":1085},{"type":993,"tag":1026,"props":5887,"children":5888},{"class":1028,"line":36},[5889,5894,5898,5902,5906,5910,5914,5918,5922],{"type":993,"tag":1026,"props":5890,"children":5891},{"style":1041},[5892],{"type":998,"value":5893},"colors2 ",{"type":993,"tag":1026,"props":5895,"children":5896},{"style":1047},[5897],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5899,"children":5900},{"style":1041},[5901],{"type":998,"value":1055},{"type":993,"tag":1026,"props":5903,"children":5904},{"style":1147},[5905],{"type":998,"value":3906},{"type":993,"tag":1026,"props":5907,"children":5908},{"style":1041},[5909],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5911,"children":5912},{"style":1147},[5913],{"type":998,"value":3915},{"type":993,"tag":1026,"props":5915,"children":5916},{"style":1041},[5917],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5919,"children":5920},{"style":1147},[5921],{"type":998,"value":3888},{"type":993,"tag":1026,"props":5923,"children":5924},{"style":1041},[5925],{"type":998,"value":1085},{"type":993,"tag":1026,"props":5927,"children":5928},{"class":1028,"line":45},[5929],{"type":993,"tag":1026,"props":5930,"children":5931},{"emptyLinePlaceholder":13},[5932],{"type":998,"value":1223},{"type":993,"tag":1026,"props":5934,"children":5935},{"class":1028,"line":54},[5936],{"type":993,"tag":1026,"props":5937,"children":5938},{"style":1032},[5939],{"type":998,"value":5940},"# Combine and remove duplicates\n",{"type":993,"tag":1026,"props":5942,"children":5943},{"class":1028,"line":63},[5944,5949,5953,5957,5961,5966,5971,5975],{"type":993,"tag":1026,"props":5945,"children":5946},{"style":1041},[5947],{"type":998,"value":5948},"unique_colors ",{"type":993,"tag":1026,"props":5950,"children":5951},{"style":1047},[5952],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5954,"children":5955},{"style":1058},[5956],{"type":998,"value":1313},{"type":993,"tag":1026,"props":5958,"children":5959},{"style":1041},[5960],{"type":998,"value":1271},{"type":993,"tag":1026,"props":5962,"children":5963},{"style":1058},[5964],{"type":998,"value":5965},"set",{"type":993,"tag":1026,"props":5967,"children":5968},{"style":1041},[5969],{"type":998,"value":5970},"(colors1 ",{"type":993,"tag":1026,"props":5972,"children":5973},{"style":1047},[5974],{"type":998,"value":1253},{"type":993,"tag":1026,"props":5976,"children":5977},{"style":1041},[5978],{"type":998,"value":5979}," colors2))\n",{"type":993,"tag":1026,"props":5981,"children":5982},{"class":1028,"line":72},[5983,5987,5991,5996],{"type":993,"tag":1026,"props":5984,"children":5985},{"style":1058},[5986],{"type":998,"value":1266},{"type":993,"tag":1026,"props":5988,"children":5989},{"style":1041},[5990],{"type":998,"value":1271},{"type":993,"tag":1026,"props":5992,"children":5993},{"style":1147},[5994],{"type":998,"value":5995},"\"Unique colors (unordered):\"",{"type":993,"tag":1026,"props":5997,"children":5998},{"style":1041},[5999],{"type":998,"value":6000},", unique_colors)\n",{"type":993,"tag":1026,"props":6002,"children":6003},{"class":1028,"line":81},[6004],{"type":993,"tag":1026,"props":6005,"children":6006},{"emptyLinePlaceholder":13},[6007],{"type":998,"value":1223},{"type":993,"tag":1026,"props":6009,"children":6010},{"class":1028,"line":91},[6011],{"type":993,"tag":1026,"props":6012,"children":6013},{"style":1032},[6014],{"type":998,"value":6015},"# Preserve order with dict\n",{"type":993,"tag":1026,"props":6017,"children":6018},{"class":1028,"line":100},[6019,6023,6027,6031,6035,6039,6044,6048],{"type":993,"tag":1026,"props":6020,"children":6021},{"style":1041},[6022],{"type":998,"value":5773},{"type":993,"tag":1026,"props":6024,"children":6025},{"style":1047},[6026],{"type":998,"value":1050},{"type":993,"tag":1026,"props":6028,"children":6029},{"style":1058},[6030],{"type":998,"value":1313},{"type":993,"tag":1026,"props":6032,"children":6033},{"style":1041},[6034],{"type":998,"value":1271},{"type":993,"tag":1026,"props":6036,"children":6037},{"style":1058},[6038],{"type":998,"value":5790},{"type":993,"tag":1026,"props":6040,"children":6041},{"style":1041},[6042],{"type":998,"value":6043},".fromkeys(colors1 ",{"type":993,"tag":1026,"props":6045,"children":6046},{"style":1047},[6047],{"type":998,"value":1253},{"type":993,"tag":1026,"props":6049,"children":6050},{"style":1041},[6051],{"type":998,"value":5979},{"type":993,"tag":1026,"props":6053,"children":6054},{"class":1028,"line":109},[6055,6059,6063,6068],{"type":993,"tag":1026,"props":6056,"children":6057},{"style":1058},[6058],{"type":998,"value":1266},{"type":993,"tag":1026,"props":6060,"children":6061},{"style":1041},[6062],{"type":998,"value":1271},{"type":993,"tag":1026,"props":6064,"children":6065},{"style":1147},[6066],{"type":998,"value":6067},"\"Unique colors (ordered):\"",{"type":993,"tag":1026,"props":6069,"children":6070},{"style":1041},[6071],{"type":998,"value":5816},{"type":993,"tag":1501,"props":6073,"children":6075},{"id":6074},"conditional-duplicate-handling",[6076],{"type":998,"value":6077},"Conditional Duplicate Handling",{"type":993,"tag":1001,"props":6079,"children":6080},{},[6081],{"type":998,"value":6082},"Selective duplicate management based on specific criteria or business logic.",{"type":993,"tag":1012,"props":6084,"children":6085},{},[6086],{"type":993,"tag":1016,"props":6087,"children":6089},{"className":1018,"code":6088,"language":6,"meta":8,"style":8},"# Conditional duplicate handling\ninventory1 = [\"apple\", \"banana\", \"cherry\"]\ninventory2 = [\"banana\", \"date\", \"elderberry\"]\n\n# Only add items not already present\ncombined_inventory = inventory1.copy()\nfor item in inventory2:\n    if item not in combined_inventory:\n        combined_inventory.append(item)\n\nprint(\"Combined inventory:\", combined_inventory)\n",[6090],{"type":993,"tag":1022,"props":6091,"children":6092},{"__ignoreMap":8},[6093,6101,6142,6184,6191,6199,6216,6236,6260,6268,6275],{"type":993,"tag":1026,"props":6094,"children":6095},{"class":1028,"line":12},[6096],{"type":993,"tag":1026,"props":6097,"children":6098},{"style":1032},[6099],{"type":998,"value":6100},"# Conditional duplicate handling\n",{"type":993,"tag":1026,"props":6102,"children":6103},{"class":1028,"line":27},[6104,6109,6113,6117,6121,6125,6129,6133,6138],{"type":993,"tag":1026,"props":6105,"children":6106},{"style":1041},[6107],{"type":998,"value":6108},"inventory1 ",{"type":993,"tag":1026,"props":6110,"children":6111},{"style":1047},[6112],{"type":998,"value":1050},{"type":993,"tag":1026,"props":6114,"children":6115},{"style":1041},[6116],{"type":998,"value":1055},{"type":993,"tag":1026,"props":6118,"children":6119},{"style":1147},[6120],{"type":998,"value":1550},{"type":993,"tag":1026,"props":6122,"children":6123},{"style":1041},[6124],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6126,"children":6127},{"style":1147},[6128],{"type":998,"value":1559},{"type":993,"tag":1026,"props":6130,"children":6131},{"style":1041},[6132],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6134,"children":6135},{"style":1147},[6136],{"type":998,"value":6137},"\"cherry\"",{"type":993,"tag":1026,"props":6139,"children":6140},{"style":1041},[6141],{"type":998,"value":1085},{"type":993,"tag":1026,"props":6143,"children":6144},{"class":1028,"line":36},[6145,6150,6154,6158,6162,6166,6171,6175,6180],{"type":993,"tag":1026,"props":6146,"children":6147},{"style":1041},[6148],{"type":998,"value":6149},"inventory2 ",{"type":993,"tag":1026,"props":6151,"children":6152},{"style":1047},[6153],{"type":998,"value":1050},{"type":993,"tag":1026,"props":6155,"children":6156},{"style":1041},[6157],{"type":998,"value":1055},{"type":993,"tag":1026,"props":6159,"children":6160},{"style":1147},[6161],{"type":998,"value":1559},{"type":993,"tag":1026,"props":6163,"children":6164},{"style":1041},[6165],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6167,"children":6168},{"style":1147},[6169],{"type":998,"value":6170},"\"date\"",{"type":993,"tag":1026,"props":6172,"children":6173},{"style":1041},[6174],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6176,"children":6177},{"style":1147},[6178],{"type":998,"value":6179},"\"elderberry\"",{"type":993,"tag":1026,"props":6181,"children":6182},{"style":1041},[6183],{"type":998,"value":1085},{"type":993,"tag":1026,"props":6185,"children":6186},{"class":1028,"line":45},[6187],{"type":993,"tag":1026,"props":6188,"children":6189},{"emptyLinePlaceholder":13},[6190],{"type":998,"value":1223},{"type":993,"tag":1026,"props":6192,"children":6193},{"class":1028,"line":54},[6194],{"type":993,"tag":1026,"props":6195,"children":6196},{"style":1032},[6197],{"type":998,"value":6198},"# Only add items not already present\n",{"type":993,"tag":1026,"props":6200,"children":6201},{"class":1028,"line":63},[6202,6207,6211],{"type":993,"tag":1026,"props":6203,"children":6204},{"style":1041},[6205],{"type":998,"value":6206},"combined_inventory ",{"type":993,"tag":1026,"props":6208,"children":6209},{"style":1047},[6210],{"type":998,"value":1050},{"type":993,"tag":1026,"props":6212,"children":6213},{"style":1041},[6214],{"type":998,"value":6215}," inventory1.copy()\n",{"type":993,"tag":1026,"props":6217,"children":6218},{"class":1028,"line":72},[6219,6223,6227,6231],{"type":993,"tag":1026,"props":6220,"children":6221},{"style":1047},[6222],{"type":998,"value":2337},{"type":993,"tag":1026,"props":6224,"children":6225},{"style":1041},[6226],{"type":998,"value":5035},{"type":993,"tag":1026,"props":6228,"children":6229},{"style":1047},[6230],{"type":998,"value":2347},{"type":993,"tag":1026,"props":6232,"children":6233},{"style":1041},[6234],{"type":998,"value":6235}," inventory2:\n",{"type":993,"tag":1026,"props":6237,"children":6238},{"class":1028,"line":81},[6239,6243,6247,6251,6255],{"type":993,"tag":1026,"props":6240,"children":6241},{"style":1047},[6242],{"type":998,"value":5702},{"type":993,"tag":1026,"props":6244,"children":6245},{"style":1041},[6246],{"type":998,"value":5035},{"type":993,"tag":1026,"props":6248,"children":6249},{"style":1047},[6250],{"type":998,"value":5711},{"type":993,"tag":1026,"props":6252,"children":6253},{"style":1047},[6254],{"type":998,"value":5716},{"type":993,"tag":1026,"props":6256,"children":6257},{"style":1041},[6258],{"type":998,"value":6259}," combined_inventory:\n",{"type":993,"tag":1026,"props":6261,"children":6262},{"class":1028,"line":91},[6263],{"type":993,"tag":1026,"props":6264,"children":6265},{"style":1041},[6266],{"type":998,"value":6267},"        combined_inventory.append(item)\n",{"type":993,"tag":1026,"props":6269,"children":6270},{"class":1028,"line":100},[6271],{"type":993,"tag":1026,"props":6272,"children":6273},{"emptyLinePlaceholder":13},[6274],{"type":998,"value":1223},{"type":993,"tag":1026,"props":6276,"children":6277},{"class":1028,"line":109},[6278,6282,6286,6291],{"type":993,"tag":1026,"props":6279,"children":6280},{"style":1058},[6281],{"type":998,"value":1266},{"type":993,"tag":1026,"props":6283,"children":6284},{"style":1041},[6285],{"type":998,"value":1271},{"type":993,"tag":1026,"props":6287,"children":6288},{"style":1147},[6289],{"type":998,"value":6290},"\"Combined inventory:\"",{"type":993,"tag":1026,"props":6292,"children":6293},{"style":1041},[6294],{"type":998,"value":6295},", combined_inventory)\n",{"type":993,"tag":1394,"props":6297,"children":6299},{"id":6298},"merging-sorted-lists",[6300],{"type":998,"value":6301},"Merging Sorted Lists",{"type":993,"tag":1001,"props":6303,"children":6304},{},[6305],{"type":998,"value":6306},"When working with sorted lists, you can merge them while maintaining the sorted order. This is useful for combining pre-sorted data efficiently.",{"type":993,"tag":1001,"props":6308,"children":6309},{},[6310],{"type":998,"value":6311},"Sorted merging is essential for maintaining data order and optimizing search operations.",{"type":993,"tag":1501,"props":6313,"children":6315},{"id":6314},"basic-sorted-merge",[6316],{"type":998,"value":6317},"Basic Sorted Merge",{"type":993,"tag":1001,"props":6319,"children":6320},{},[6321],{"type":998,"value":6322},"Simple sorted combination for maintaining data order in merged results.",{"type":993,"tag":1012,"props":6324,"children":6325},{},[6326],{"type":993,"tag":1016,"props":6327,"children":6329},{"className":1018,"code":6328,"language":6,"meta":8,"style":8},"# Merging two sorted lists\nlist1 = [1, 3, 5, 7]\nlist2 = [2, 4, 6, 8]\n\n# Simple merge and sort\nmerged = sorted(list1 + list2)\nprint(\"Merged and sorted:\", merged)\n",[6330],{"type":993,"tag":1022,"props":6331,"children":6332},{"__ignoreMap":8},[6333,6341,6388,6435,6442,6450,6481],{"type":993,"tag":1026,"props":6334,"children":6335},{"class":1028,"line":12},[6336],{"type":993,"tag":1026,"props":6337,"children":6338},{"style":1032},[6339],{"type":998,"value":6340},"# Merging two sorted lists\n",{"type":993,"tag":1026,"props":6342,"children":6343},{"class":1028,"line":27},[6344,6348,6352,6356,6360,6364,6368,6372,6376,6380,6384],{"type":993,"tag":1026,"props":6345,"children":6346},{"style":1041},[6347],{"type":998,"value":1044},{"type":993,"tag":1026,"props":6349,"children":6350},{"style":1047},[6351],{"type":998,"value":1050},{"type":993,"tag":1026,"props":6353,"children":6354},{"style":1041},[6355],{"type":998,"value":1055},{"type":993,"tag":1026,"props":6357,"children":6358},{"style":1058},[6359],{"type":998,"value":1061},{"type":993,"tag":1026,"props":6361,"children":6362},{"style":1041},[6363],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6365,"children":6366},{"style":1058},[6367],{"type":998,"value":1080},{"type":993,"tag":1026,"props":6369,"children":6370},{"style":1041},[6371],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6373,"children":6374},{"style":1058},[6375],{"type":998,"value":1115},{"type":993,"tag":1026,"props":6377,"children":6378},{"style":1041},[6379],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6381,"children":6382},{"style":1058},[6383],{"type":998,"value":2998},{"type":993,"tag":1026,"props":6385,"children":6386},{"style":1041},[6387],{"type":998,"value":1085},{"type":993,"tag":1026,"props":6389,"children":6390},{"class":1028,"line":36},[6391,6395,6399,6403,6407,6411,6415,6419,6423,6427,6431],{"type":993,"tag":1026,"props":6392,"children":6393},{"style":1041},[6394],{"type":998,"value":1093},{"type":993,"tag":1026,"props":6396,"children":6397},{"style":1047},[6398],{"type":998,"value":1050},{"type":993,"tag":1026,"props":6400,"children":6401},{"style":1041},[6402],{"type":998,"value":1055},{"type":993,"tag":1026,"props":6404,"children":6405},{"style":1058},[6406],{"type":998,"value":1071},{"type":993,"tag":1026,"props":6408,"children":6409},{"style":1041},[6410],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6412,"children":6413},{"style":1058},[6414],{"type":998,"value":1106},{"type":993,"tag":1026,"props":6416,"children":6417},{"style":1041},[6418],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6420,"children":6421},{"style":1058},[6422],{"type":998,"value":1124},{"type":993,"tag":1026,"props":6424,"children":6425},{"style":1041},[6426],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6428,"children":6429},{"style":1058},[6430],{"type":998,"value":3007},{"type":993,"tag":1026,"props":6432,"children":6433},{"style":1041},[6434],{"type":998,"value":1085},{"type":993,"tag":1026,"props":6436,"children":6437},{"class":1028,"line":45},[6438],{"type":993,"tag":1026,"props":6439,"children":6440},{"emptyLinePlaceholder":13},[6441],{"type":998,"value":1223},{"type":993,"tag":1026,"props":6443,"children":6444},{"class":1028,"line":54},[6445],{"type":993,"tag":1026,"props":6446,"children":6447},{"style":1032},[6448],{"type":998,"value":6449},"# Simple merge and sort\n",{"type":993,"tag":1026,"props":6451,"children":6452},{"class":1028,"line":63},[6453,6458,6462,6467,6472,6476],{"type":993,"tag":1026,"props":6454,"children":6455},{"style":1041},[6456],{"type":998,"value":6457},"merged ",{"type":993,"tag":1026,"props":6459,"children":6460},{"style":1047},[6461],{"type":998,"value":1050},{"type":993,"tag":1026,"props":6463,"children":6464},{"style":1058},[6465],{"type":998,"value":6466}," sorted",{"type":993,"tag":1026,"props":6468,"children":6469},{"style":1041},[6470],{"type":998,"value":6471},"(list1 ",{"type":993,"tag":1026,"props":6473,"children":6474},{"style":1047},[6475],{"type":998,"value":1253},{"type":993,"tag":1026,"props":6477,"children":6478},{"style":1041},[6479],{"type":998,"value":6480}," list2)\n",{"type":993,"tag":1026,"props":6482,"children":6483},{"class":1028,"line":72},[6484,6488,6492,6497],{"type":993,"tag":1026,"props":6485,"children":6486},{"style":1058},[6487],{"type":998,"value":1266},{"type":993,"tag":1026,"props":6489,"children":6490},{"style":1041},[6491],{"type":998,"value":1271},{"type":993,"tag":1026,"props":6493,"children":6494},{"style":1147},[6495],{"type":998,"value":6496},"\"Merged and sorted:\"",{"type":993,"tag":1026,"props":6498,"children":6499},{"style":1041},[6500],{"type":998,"value":6501},", merged)\n",{"type":993,"tag":1501,"props":6503,"children":6505},{"id":6504},"manual-sorted-merge",[6506],{"type":998,"value":6507},"Manual Sorted Merge",{"type":993,"tag":1001,"props":6509,"children":6510},{},[6511],{"type":998,"value":6512},"Efficient merge algorithm that maintains sort order without re-sorting.",{"type":993,"tag":1012,"props":6514,"children":6515},{},[6516],{"type":993,"tag":1016,"props":6517,"children":6519},{"className":1018,"code":6518,"language":6,"meta":8,"style":8},"# Manual merge maintaining order\ndef merge_sorted(list1, list2):\n    merged = []\n    i = j = 0\n    \n    # Compare and merge\n    while i \u003C len(list1) and j \u003C len(list2):\n        if list1[i] \u003C= list2[j]:\n            merged.append(list1[i])\n            i += 1\n        else:\n            merged.append(list2[j])\n            j += 1\n    \n    # Add remaining elements\n    merged.extend(list1[i:])\n    merged.extend(list2[j:])\n    \n    return merged\n\nsorted1 = [1, 3, 5, 7]\nsorted2 = [2, 4, 6, 8]\nresult = merge_sorted(sorted1, sorted2)\nprint(\"Manually merged:\", result)\n",[6520],{"type":993,"tag":1022,"props":6521,"children":6522},{"__ignoreMap":8},[6523,6531,6549,6565,6591,6599,6607,6656,6679,6687,6705,6717,6725,6741,6748,6756,6764,6772,6779,6792,6799,6847,6895,6911],{"type":993,"tag":1026,"props":6524,"children":6525},{"class":1028,"line":12},[6526],{"type":993,"tag":1026,"props":6527,"children":6528},{"style":1032},[6529],{"type":998,"value":6530},"# Manual merge maintaining order\n",{"type":993,"tag":1026,"props":6532,"children":6533},{"class":1028,"line":27},[6534,6539,6545],{"type":993,"tag":1026,"props":6535,"children":6536},{"style":1047},[6537],{"type":998,"value":6538},"def",{"type":993,"tag":1026,"props":6540,"children":6542},{"style":6541},"--shiki-default:#6F42C1;--shiki-app-dark-mode:#B392F0",[6543],{"type":998,"value":6544}," merge_sorted",{"type":993,"tag":1026,"props":6546,"children":6547},{"style":1041},[6548],{"type":998,"value":4444},{"type":993,"tag":1026,"props":6550,"children":6551},{"class":1028,"line":36},[6552,6557,6561],{"type":993,"tag":1026,"props":6553,"children":6554},{"style":1041},[6555],{"type":998,"value":6556},"    merged ",{"type":993,"tag":1026,"props":6558,"children":6559},{"style":1047},[6560],{"type":998,"value":1050},{"type":993,"tag":1026,"props":6562,"children":6563},{"style":1041},[6564],{"type":998,"value":2905},{"type":993,"tag":1026,"props":6566,"children":6567},{"class":1028,"line":45},[6568,6573,6577,6582,6586],{"type":993,"tag":1026,"props":6569,"children":6570},{"style":1041},[6571],{"type":998,"value":6572},"    i ",{"type":993,"tag":1026,"props":6574,"children":6575},{"style":1047},[6576],{"type":998,"value":1050},{"type":993,"tag":1026,"props":6578,"children":6579},{"style":1041},[6580],{"type":998,"value":6581}," j ",{"type":993,"tag":1026,"props":6583,"children":6584},{"style":1047},[6585],{"type":998,"value":1050},{"type":993,"tag":1026,"props":6587,"children":6588},{"style":1058},[6589],{"type":998,"value":6590}," 0\n",{"type":993,"tag":1026,"props":6592,"children":6593},{"class":1028,"line":54},[6594],{"type":993,"tag":1026,"props":6595,"children":6596},{"style":1041},[6597],{"type":998,"value":6598},"    \n",{"type":993,"tag":1026,"props":6600,"children":6601},{"class":1028,"line":63},[6602],{"type":993,"tag":1026,"props":6603,"children":6604},{"style":1032},[6605],{"type":998,"value":6606},"    # Compare and merge\n",{"type":993,"tag":1026,"props":6608,"children":6609},{"class":1028,"line":72},[6610,6615,6620,6625,6629,6634,6639,6643,6647,6651],{"type":993,"tag":1026,"props":6611,"children":6612},{"style":1047},[6613],{"type":998,"value":6614},"    while",{"type":993,"tag":1026,"props":6616,"children":6617},{"style":1041},[6618],{"type":998,"value":6619}," i ",{"type":993,"tag":1026,"props":6621,"children":6622},{"style":1047},[6623],{"type":998,"value":6624},"\u003C",{"type":993,"tag":1026,"props":6626,"children":6627},{"style":1058},[6628],{"type":998,"value":4679},{"type":993,"tag":1026,"props":6630,"children":6631},{"style":1041},[6632],{"type":998,"value":6633},"(list1) ",{"type":993,"tag":1026,"props":6635,"children":6636},{"style":1047},[6637],{"type":998,"value":6638},"and",{"type":993,"tag":1026,"props":6640,"children":6641},{"style":1041},[6642],{"type":998,"value":6581},{"type":993,"tag":1026,"props":6644,"children":6645},{"style":1047},[6646],{"type":998,"value":6624},{"type":993,"tag":1026,"props":6648,"children":6649},{"style":1058},[6650],{"type":998,"value":4679},{"type":993,"tag":1026,"props":6652,"children":6653},{"style":1041},[6654],{"type":998,"value":6655},"(list2):\n",{"type":993,"tag":1026,"props":6657,"children":6658},{"class":1028,"line":81},[6659,6664,6669,6674],{"type":993,"tag":1026,"props":6660,"children":6661},{"style":1047},[6662],{"type":998,"value":6663},"        if",{"type":993,"tag":1026,"props":6665,"children":6666},{"style":1041},[6667],{"type":998,"value":6668}," list1[i] ",{"type":993,"tag":1026,"props":6670,"children":6671},{"style":1047},[6672],{"type":998,"value":6673},"\u003C=",{"type":993,"tag":1026,"props":6675,"children":6676},{"style":1041},[6677],{"type":998,"value":6678}," list2[j]:\n",{"type":993,"tag":1026,"props":6680,"children":6681},{"class":1028,"line":91},[6682],{"type":993,"tag":1026,"props":6683,"children":6684},{"style":1041},[6685],{"type":998,"value":6686},"            merged.append(list1[i])\n",{"type":993,"tag":1026,"props":6688,"children":6689},{"class":1028,"line":100},[6690,6695,6700],{"type":993,"tag":1026,"props":6691,"children":6692},{"style":1041},[6693],{"type":998,"value":6694},"            i ",{"type":993,"tag":1026,"props":6696,"children":6697},{"style":1047},[6698],{"type":998,"value":6699},"+=",{"type":993,"tag":1026,"props":6701,"children":6702},{"style":1058},[6703],{"type":998,"value":6704}," 1\n",{"type":993,"tag":1026,"props":6706,"children":6707},{"class":1028,"line":109},[6708,6713],{"type":993,"tag":1026,"props":6709,"children":6710},{"style":1047},[6711],{"type":998,"value":6712},"        else",{"type":993,"tag":1026,"props":6714,"children":6715},{"style":1041},[6716],{"type":998,"value":4699},{"type":993,"tag":1026,"props":6718,"children":6719},{"class":1028,"line":118},[6720],{"type":993,"tag":1026,"props":6721,"children":6722},{"style":1041},[6723],{"type":998,"value":6724},"            merged.append(list2[j])\n",{"type":993,"tag":1026,"props":6726,"children":6727},{"class":1028,"line":127},[6728,6733,6737],{"type":993,"tag":1026,"props":6729,"children":6730},{"style":1041},[6731],{"type":998,"value":6732},"            j ",{"type":993,"tag":1026,"props":6734,"children":6735},{"style":1047},[6736],{"type":998,"value":6699},{"type":993,"tag":1026,"props":6738,"children":6739},{"style":1058},[6740],{"type":998,"value":6704},{"type":993,"tag":1026,"props":6742,"children":6743},{"class":1028,"line":136},[6744],{"type":993,"tag":1026,"props":6745,"children":6746},{"style":1041},[6747],{"type":998,"value":6598},{"type":993,"tag":1026,"props":6749,"children":6750},{"class":1028,"line":146},[6751],{"type":993,"tag":1026,"props":6752,"children":6753},{"style":1032},[6754],{"type":998,"value":6755},"    # Add remaining elements\n",{"type":993,"tag":1026,"props":6757,"children":6758},{"class":1028,"line":155},[6759],{"type":993,"tag":1026,"props":6760,"children":6761},{"style":1041},[6762],{"type":998,"value":6763},"    merged.extend(list1[i:])\n",{"type":993,"tag":1026,"props":6765,"children":6766},{"class":1028,"line":164},[6767],{"type":993,"tag":1026,"props":6768,"children":6769},{"style":1041},[6770],{"type":998,"value":6771},"    merged.extend(list2[j:])\n",{"type":993,"tag":1026,"props":6773,"children":6774},{"class":1028,"line":173},[6775],{"type":993,"tag":1026,"props":6776,"children":6777},{"style":1041},[6778],{"type":998,"value":6598},{"type":993,"tag":1026,"props":6780,"children":6781},{"class":1028,"line":182},[6782,6787],{"type":993,"tag":1026,"props":6783,"children":6784},{"style":1047},[6785],{"type":998,"value":6786},"    return",{"type":993,"tag":1026,"props":6788,"children":6789},{"style":1041},[6790],{"type":998,"value":6791}," merged\n",{"type":993,"tag":1026,"props":6793,"children":6794},{"class":1028,"line":191},[6795],{"type":993,"tag":1026,"props":6796,"children":6797},{"emptyLinePlaceholder":13},[6798],{"type":998,"value":1223},{"type":993,"tag":1026,"props":6800,"children":6801},{"class":1028,"line":201},[6802,6807,6811,6815,6819,6823,6827,6831,6835,6839,6843],{"type":993,"tag":1026,"props":6803,"children":6804},{"style":1041},[6805],{"type":998,"value":6806},"sorted1 ",{"type":993,"tag":1026,"props":6808,"children":6809},{"style":1047},[6810],{"type":998,"value":1050},{"type":993,"tag":1026,"props":6812,"children":6813},{"style":1041},[6814],{"type":998,"value":1055},{"type":993,"tag":1026,"props":6816,"children":6817},{"style":1058},[6818],{"type":998,"value":1061},{"type":993,"tag":1026,"props":6820,"children":6821},{"style":1041},[6822],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6824,"children":6825},{"style":1058},[6826],{"type":998,"value":1080},{"type":993,"tag":1026,"props":6828,"children":6829},{"style":1041},[6830],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6832,"children":6833},{"style":1058},[6834],{"type":998,"value":1115},{"type":993,"tag":1026,"props":6836,"children":6837},{"style":1041},[6838],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6840,"children":6841},{"style":1058},[6842],{"type":998,"value":2998},{"type":993,"tag":1026,"props":6844,"children":6845},{"style":1041},[6846],{"type":998,"value":1085},{"type":993,"tag":1026,"props":6848,"children":6849},{"class":1028,"line":210},[6850,6855,6859,6863,6867,6871,6875,6879,6883,6887,6891],{"type":993,"tag":1026,"props":6851,"children":6852},{"style":1041},[6853],{"type":998,"value":6854},"sorted2 ",{"type":993,"tag":1026,"props":6856,"children":6857},{"style":1047},[6858],{"type":998,"value":1050},{"type":993,"tag":1026,"props":6860,"children":6861},{"style":1041},[6862],{"type":998,"value":1055},{"type":993,"tag":1026,"props":6864,"children":6865},{"style":1058},[6866],{"type":998,"value":1071},{"type":993,"tag":1026,"props":6868,"children":6869},{"style":1041},[6870],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6872,"children":6873},{"style":1058},[6874],{"type":998,"value":1106},{"type":993,"tag":1026,"props":6876,"children":6877},{"style":1041},[6878],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6880,"children":6881},{"style":1058},[6882],{"type":998,"value":1124},{"type":993,"tag":1026,"props":6884,"children":6885},{"style":1041},[6886],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6888,"children":6889},{"style":1058},[6890],{"type":998,"value":3007},{"type":993,"tag":1026,"props":6892,"children":6893},{"style":1041},[6894],{"type":998,"value":1085},{"type":993,"tag":1026,"props":6896,"children":6897},{"class":1028,"line":219},[6898,6902,6906],{"type":993,"tag":1026,"props":6899,"children":6900},{"style":1041},[6901],{"type":998,"value":2896},{"type":993,"tag":1026,"props":6903,"children":6904},{"style":1047},[6905],{"type":998,"value":1050},{"type":993,"tag":1026,"props":6907,"children":6908},{"style":1041},[6909],{"type":998,"value":6910}," merge_sorted(sorted1, sorted2)\n",{"type":993,"tag":1026,"props":6912,"children":6913},{"class":1028,"line":228},[6914,6918,6922,6927],{"type":993,"tag":1026,"props":6915,"children":6916},{"style":1058},[6917],{"type":998,"value":1266},{"type":993,"tag":1026,"props":6919,"children":6920},{"style":1041},[6921],{"type":998,"value":1271},{"type":993,"tag":1026,"props":6923,"children":6924},{"style":1147},[6925],{"type":998,"value":6926},"\"Manually merged:\"",{"type":993,"tag":1026,"props":6928,"children":6929},{"style":1041},[6930],{"type":998,"value":6931},", result)\n",{"type":993,"tag":1501,"props":6933,"children":6935},{"id":6934},"merging-multiple-sorted-lists",[6936],{"type":998,"value":6937},"Merging Multiple Sorted Lists",{"type":993,"tag":1001,"props":6939,"children":6940},{},[6941],{"type":998,"value":6942},"Efficient multi-list merging using heap-based algorithms for optimal performance.",{"type":993,"tag":1012,"props":6944,"children":6945},{},[6946],{"type":993,"tag":1016,"props":6947,"children":6949},{"className":1018,"code":6948,"language":6,"meta":8,"style":8},"# Merging multiple sorted lists\nimport heapq\n\nlists = [\n    [1, 4, 7],\n    [2, 5, 8],\n    [3, 6, 9]\n]\n\n# Use heapq.merge for efficient merging\nmerged = list(heapq.merge(*lists))\nprint(\"Merged multiple sorted lists:\", merged)\n",[6950],{"type":993,"tag":1022,"props":6951,"children":6952},{"__ignoreMap":8},[6953,6961,6974,6981,6997,7028,7059,7090,7097,7104,7112,7141],{"type":993,"tag":1026,"props":6954,"children":6955},{"class":1028,"line":12},[6956],{"type":993,"tag":1026,"props":6957,"children":6958},{"style":1032},[6959],{"type":998,"value":6960},"# Merging multiple sorted lists\n",{"type":993,"tag":1026,"props":6962,"children":6963},{"class":1028,"line":27},[6964,6969],{"type":993,"tag":1026,"props":6965,"children":6966},{"style":1047},[6967],{"type":998,"value":6968},"import",{"type":993,"tag":1026,"props":6970,"children":6971},{"style":1041},[6972],{"type":998,"value":6973}," heapq\n",{"type":993,"tag":1026,"props":6975,"children":6976},{"class":1028,"line":36},[6977],{"type":993,"tag":1026,"props":6978,"children":6979},{"emptyLinePlaceholder":13},[6980],{"type":998,"value":1223},{"type":993,"tag":1026,"props":6982,"children":6983},{"class":1028,"line":45},[6984,6989,6993],{"type":993,"tag":1026,"props":6985,"children":6986},{"style":1041},[6987],{"type":998,"value":6988},"lists ",{"type":993,"tag":1026,"props":6990,"children":6991},{"style":1047},[6992],{"type":998,"value":1050},{"type":993,"tag":1026,"props":6994,"children":6995},{"style":1041},[6996],{"type":998,"value":2922},{"type":993,"tag":1026,"props":6998,"children":6999},{"class":1028,"line":54},[7000,7004,7008,7012,7016,7020,7024],{"type":993,"tag":1026,"props":7001,"children":7002},{"style":1041},[7003],{"type":998,"value":2930},{"type":993,"tag":1026,"props":7005,"children":7006},{"style":1058},[7007],{"type":998,"value":1061},{"type":993,"tag":1026,"props":7009,"children":7010},{"style":1041},[7011],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7013,"children":7014},{"style":1058},[7015],{"type":998,"value":1106},{"type":993,"tag":1026,"props":7017,"children":7018},{"style":1041},[7019],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7021,"children":7022},{"style":1058},[7023],{"type":998,"value":2998},{"type":993,"tag":1026,"props":7025,"children":7026},{"style":1041},[7027],{"type":998,"value":2955},{"type":993,"tag":1026,"props":7029,"children":7030},{"class":1028,"line":63},[7031,7035,7039,7043,7047,7051,7055],{"type":993,"tag":1026,"props":7032,"children":7033},{"style":1041},[7034],{"type":998,"value":2930},{"type":993,"tag":1026,"props":7036,"children":7037},{"style":1058},[7038],{"type":998,"value":1071},{"type":993,"tag":1026,"props":7040,"children":7041},{"style":1041},[7042],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7044,"children":7045},{"style":1058},[7046],{"type":998,"value":1115},{"type":993,"tag":1026,"props":7048,"children":7049},{"style":1041},[7050],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7052,"children":7053},{"style":1058},[7054],{"type":998,"value":3007},{"type":993,"tag":1026,"props":7056,"children":7057},{"style":1041},[7058],{"type":998,"value":2955},{"type":993,"tag":1026,"props":7060,"children":7061},{"class":1028,"line":72},[7062,7066,7070,7074,7078,7082,7086],{"type":993,"tag":1026,"props":7063,"children":7064},{"style":1041},[7065],{"type":998,"value":2930},{"type":993,"tag":1026,"props":7067,"children":7068},{"style":1058},[7069],{"type":998,"value":1080},{"type":993,"tag":1026,"props":7071,"children":7072},{"style":1041},[7073],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7075,"children":7076},{"style":1058},[7077],{"type":998,"value":1124},{"type":993,"tag":1026,"props":7079,"children":7080},{"style":1041},[7081],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7083,"children":7084},{"style":1058},[7085],{"type":998,"value":3016},{"type":993,"tag":1026,"props":7087,"children":7088},{"style":1041},[7089],{"type":998,"value":1085},{"type":993,"tag":1026,"props":7091,"children":7092},{"class":1028,"line":81},[7093],{"type":993,"tag":1026,"props":7094,"children":7095},{"style":1041},[7096],{"type":998,"value":1085},{"type":993,"tag":1026,"props":7098,"children":7099},{"class":1028,"line":91},[7100],{"type":993,"tag":1026,"props":7101,"children":7102},{"emptyLinePlaceholder":13},[7103],{"type":998,"value":1223},{"type":993,"tag":1026,"props":7105,"children":7106},{"class":1028,"line":100},[7107],{"type":993,"tag":1026,"props":7108,"children":7109},{"style":1032},[7110],{"type":998,"value":7111},"# Use heapq.merge for efficient merging\n",{"type":993,"tag":1026,"props":7113,"children":7114},{"class":1028,"line":109},[7115,7119,7123,7127,7132,7136],{"type":993,"tag":1026,"props":7116,"children":7117},{"style":1041},[7118],{"type":998,"value":6457},{"type":993,"tag":1026,"props":7120,"children":7121},{"style":1047},[7122],{"type":998,"value":1050},{"type":993,"tag":1026,"props":7124,"children":7125},{"style":1058},[7126],{"type":998,"value":1313},{"type":993,"tag":1026,"props":7128,"children":7129},{"style":1041},[7130],{"type":998,"value":7131},"(heapq.merge(",{"type":993,"tag":1026,"props":7133,"children":7134},{"style":1047},[7135],{"type":998,"value":4185},{"type":993,"tag":1026,"props":7137,"children":7138},{"style":1041},[7139],{"type":998,"value":7140},"lists))\n",{"type":993,"tag":1026,"props":7142,"children":7143},{"class":1028,"line":118},[7144,7148,7152,7157],{"type":993,"tag":1026,"props":7145,"children":7146},{"style":1058},[7147],{"type":998,"value":1266},{"type":993,"tag":1026,"props":7149,"children":7150},{"style":1041},[7151],{"type":998,"value":1271},{"type":993,"tag":1026,"props":7153,"children":7154},{"style":1147},[7155],{"type":998,"value":7156},"\"Merged multiple sorted lists:\"",{"type":993,"tag":1026,"props":7158,"children":7159},{"style":1041},[7160],{"type":998,"value":6501},{"type":993,"tag":7162,"props":7163,"children":7166},"exercise",{"hint":7164,"prompt":7165},"Use a dictionary to track the best grade for each student name","Create a function that combines two lists of student records, removing any duplicate students (same name) and keeping the record with the higher grade",[7167],{"type":993,"tag":1016,"props":7168,"children":7170},{"className":1018,"code":7169,"language":6,"meta":8,"style":8},"def combine_student_records(list1, list2):\n    # TODO: Combine the lists and keep only the highest grade for each student\n    # Use a dictionary to track the best record for each name\n    # TODO: Your code here\n    return combined_records\n\n# Test the function\nstudents1 = [(\"Alice\", 85), (\"Bob\", 78), (\"Charlie\", 92)]\nstudents2 = [(\"Alice\", 90), (\"Diana\", 88), (\"Bob\", 75)]\n\nprint(\"List 1:\", students1)\nprint(\"List 2:\", students2)\ncombined = combine_student_records(students1, students2)\nprint(\"Combined (best grades):\", combined)\n",[7171],{"type":993,"tag":1022,"props":7172,"children":7173},{"__ignoreMap":8},[7174,7190,7208,7216,7232,7244,7251,7259,7323,7391,7398,7419,7440,7456],{"type":993,"tag":1026,"props":7175,"children":7176},{"class":1028,"line":12},[7177,7181,7186],{"type":993,"tag":1026,"props":7178,"children":7179},{"style":1047},[7180],{"type":998,"value":6538},{"type":993,"tag":1026,"props":7182,"children":7183},{"style":6541},[7184],{"type":998,"value":7185}," combine_student_records",{"type":993,"tag":1026,"props":7187,"children":7188},{"style":1041},[7189],{"type":998,"value":4444},{"type":993,"tag":1026,"props":7191,"children":7192},{"class":1028,"line":27},[7193,7198,7203],{"type":993,"tag":1026,"props":7194,"children":7195},{"style":1032},[7196],{"type":998,"value":7197},"    # ",{"type":993,"tag":1026,"props":7199,"children":7200},{"style":1047},[7201],{"type":998,"value":7202},"TODO",{"type":993,"tag":1026,"props":7204,"children":7205},{"style":1032},[7206],{"type":998,"value":7207},": Combine the lists and keep only the highest grade for each student\n",{"type":993,"tag":1026,"props":7209,"children":7210},{"class":1028,"line":36},[7211],{"type":993,"tag":1026,"props":7212,"children":7213},{"style":1032},[7214],{"type":998,"value":7215},"    # Use a dictionary to track the best record for each name\n",{"type":993,"tag":1026,"props":7217,"children":7218},{"class":1028,"line":45},[7219,7223,7227],{"type":993,"tag":1026,"props":7220,"children":7221},{"style":1032},[7222],{"type":998,"value":7197},{"type":993,"tag":1026,"props":7224,"children":7225},{"style":1047},[7226],{"type":998,"value":7202},{"type":993,"tag":1026,"props":7228,"children":7229},{"style":1032},[7230],{"type":998,"value":7231},": Your code here\n",{"type":993,"tag":1026,"props":7233,"children":7234},{"class":1028,"line":54},[7235,7239],{"type":993,"tag":1026,"props":7236,"children":7237},{"style":1047},[7238],{"type":998,"value":6786},{"type":993,"tag":1026,"props":7240,"children":7241},{"style":1041},[7242],{"type":998,"value":7243}," combined_records\n",{"type":993,"tag":1026,"props":7245,"children":7246},{"class":1028,"line":63},[7247],{"type":993,"tag":1026,"props":7248,"children":7249},{"emptyLinePlaceholder":13},[7250],{"type":998,"value":1223},{"type":993,"tag":1026,"props":7252,"children":7253},{"class":1028,"line":72},[7254],{"type":993,"tag":1026,"props":7255,"children":7256},{"style":1032},[7257],{"type":998,"value":7258},"# Test the function\n",{"type":993,"tag":1026,"props":7260,"children":7261},{"class":1028,"line":81},[7262,7267,7271,7275,7279,7283,7287,7291,7295,7299,7303,7307,7311,7315,7319],{"type":993,"tag":1026,"props":7263,"children":7264},{"style":1041},[7265],{"type":998,"value":7266},"students1 ",{"type":993,"tag":1026,"props":7268,"children":7269},{"style":1047},[7270],{"type":998,"value":1050},{"type":993,"tag":1026,"props":7272,"children":7273},{"style":1041},[7274],{"type":998,"value":4073},{"type":993,"tag":1026,"props":7276,"children":7277},{"style":1147},[7278],{"type":998,"value":1150},{"type":993,"tag":1026,"props":7280,"children":7281},{"style":1041},[7282],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7284,"children":7285},{"style":1058},[7286],{"type":998,"value":3656},{"type":993,"tag":1026,"props":7288,"children":7289},{"style":1041},[7290],{"type":998,"value":4090},{"type":993,"tag":1026,"props":7292,"children":7293},{"style":1147},[7294],{"type":998,"value":1159},{"type":993,"tag":1026,"props":7296,"children":7297},{"style":1041},[7298],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7300,"children":7301},{"style":1058},[7302],{"type":998,"value":3674},{"type":993,"tag":1026,"props":7304,"children":7305},{"style":1041},[7306],{"type":998,"value":4090},{"type":993,"tag":1026,"props":7308,"children":7309},{"style":1147},[7310],{"type":998,"value":1168},{"type":993,"tag":1026,"props":7312,"children":7313},{"style":1041},[7314],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7316,"children":7317},{"style":1058},[7318],{"type":998,"value":3665},{"type":993,"tag":1026,"props":7320,"children":7321},{"style":1041},[7322],{"type":998,"value":4123},{"type":993,"tag":1026,"props":7324,"children":7325},{"class":1028,"line":91},[7326,7331,7335,7339,7343,7347,7352,7356,7361,7365,7370,7374,7378,7382,7387],{"type":993,"tag":1026,"props":7327,"children":7328},{"style":1041},[7329],{"type":998,"value":7330},"students2 ",{"type":993,"tag":1026,"props":7332,"children":7333},{"style":1047},[7334],{"type":998,"value":1050},{"type":993,"tag":1026,"props":7336,"children":7337},{"style":1041},[7338],{"type":998,"value":4073},{"type":993,"tag":1026,"props":7340,"children":7341},{"style":1147},[7342],{"type":998,"value":1150},{"type":993,"tag":1026,"props":7344,"children":7345},{"style":1041},[7346],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7348,"children":7349},{"style":1058},[7350],{"type":998,"value":7351},"90",{"type":993,"tag":1026,"props":7353,"children":7354},{"style":1041},[7355],{"type":998,"value":4090},{"type":993,"tag":1026,"props":7357,"children":7358},{"style":1147},[7359],{"type":998,"value":7360},"\"Diana\"",{"type":993,"tag":1026,"props":7362,"children":7363},{"style":1041},[7364],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7366,"children":7367},{"style":1058},[7368],{"type":998,"value":7369},"88",{"type":993,"tag":1026,"props":7371,"children":7372},{"style":1041},[7373],{"type":998,"value":4090},{"type":993,"tag":1026,"props":7375,"children":7376},{"style":1147},[7377],{"type":998,"value":1159},{"type":993,"tag":1026,"props":7379,"children":7380},{"style":1041},[7381],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7383,"children":7384},{"style":1058},[7385],{"type":998,"value":7386},"75",{"type":993,"tag":1026,"props":7388,"children":7389},{"style":1041},[7390],{"type":998,"value":4123},{"type":993,"tag":1026,"props":7392,"children":7393},{"class":1028,"line":100},[7394],{"type":993,"tag":1026,"props":7395,"children":7396},{"emptyLinePlaceholder":13},[7397],{"type":998,"value":1223},{"type":993,"tag":1026,"props":7399,"children":7400},{"class":1028,"line":109},[7401,7405,7409,7414],{"type":993,"tag":1026,"props":7402,"children":7403},{"style":1058},[7404],{"type":998,"value":1266},{"type":993,"tag":1026,"props":7406,"children":7407},{"style":1041},[7408],{"type":998,"value":1271},{"type":993,"tag":1026,"props":7410,"children":7411},{"style":1147},[7412],{"type":998,"value":7413},"\"List 1:\"",{"type":993,"tag":1026,"props":7415,"children":7416},{"style":1041},[7417],{"type":998,"value":7418},", students1)\n",{"type":993,"tag":1026,"props":7420,"children":7421},{"class":1028,"line":118},[7422,7426,7430,7435],{"type":993,"tag":1026,"props":7423,"children":7424},{"style":1058},[7425],{"type":998,"value":1266},{"type":993,"tag":1026,"props":7427,"children":7428},{"style":1041},[7429],{"type":998,"value":1271},{"type":993,"tag":1026,"props":7431,"children":7432},{"style":1147},[7433],{"type":998,"value":7434},"\"List 2:\"",{"type":993,"tag":1026,"props":7436,"children":7437},{"style":1041},[7438],{"type":998,"value":7439},", students2)\n",{"type":993,"tag":1026,"props":7441,"children":7442},{"class":1028,"line":127},[7443,7447,7451],{"type":993,"tag":1026,"props":7444,"children":7445},{"style":1041},[7446],{"type":998,"value":1239},{"type":993,"tag":1026,"props":7448,"children":7449},{"style":1047},[7450],{"type":998,"value":1050},{"type":993,"tag":1026,"props":7452,"children":7453},{"style":1041},[7454],{"type":998,"value":7455}," combine_student_records(students1, students2)\n",{"type":993,"tag":1026,"props":7457,"children":7458},{"class":1028,"line":136},[7459,7463,7467,7472],{"type":993,"tag":1026,"props":7460,"children":7461},{"style":1058},[7462],{"type":998,"value":1266},{"type":993,"tag":1026,"props":7464,"children":7465},{"style":1041},[7466],{"type":998,"value":1271},{"type":993,"tag":1026,"props":7468,"children":7469},{"style":1147},[7470],{"type":998,"value":7471},"\"Combined (best grades):\"",{"type":993,"tag":1026,"props":7473,"children":7474},{"style":1041},[7475],{"type":998,"value":1281},{"type":993,"tag":1501,"props":7477,"children":7479},{"id":7478},"solution-and-explanation",[7480],{"type":998,"value":7481},"Solution and Explanation 💡",{"type":993,"tag":7483,"props":7484,"children":7485},"details",{},[7486,7494,7929,7937],{"type":993,"tag":7487,"props":7488,"children":7491},"summary",{"className":7489},[7490],"cursor-pointer",[7492],{"type":998,"value":7493},"Click to see the complete solution",{"type":993,"tag":1012,"props":7495,"children":7496},{},[7497],{"type":993,"tag":1016,"props":7498,"children":7500},{"className":1018,"code":7499,"language":6,"meta":8,"style":8},"def combine_student_records(list1, list2):\n    # Use a dictionary to track the best grade for each student\n    best_records = {}\n    \n    # Process both lists\n    for name, grade in list1 + list2:\n        if name not in best_records or grade > best_records[name]:\n            best_records[name] = grade\n    \n    # Convert back to list of tuples\n    combined_records = [(name, grade) for name, grade in best_records.items()]\n    return combined_records\n\n# Test the function\nstudents1 = [(\"Alice\", 85), (\"Bob\", 78), (\"Charlie\", 92)]\nstudents2 = [(\"Alice\", 90), (\"Diana\", 88), (\"Bob\", 75)]\n\nprint(\"List 1:\", students1)\nprint(\"List 2:\", students2)\ncombined = combine_student_records(students1, students2)\nprint(\"Combined (best grades):\", combined)\n",[7501],{"type":993,"tag":1022,"props":7502,"children":7503},{"__ignoreMap":8},[7504,7519,7527,7544,7551,7559,7589,7633,7650,7657,7665,7699,7710,7717,7724,7787,7850,7857,7876,7895,7910],{"type":993,"tag":1026,"props":7505,"children":7506},{"class":1028,"line":12},[7507,7511,7515],{"type":993,"tag":1026,"props":7508,"children":7509},{"style":1047},[7510],{"type":998,"value":6538},{"type":993,"tag":1026,"props":7512,"children":7513},{"style":6541},[7514],{"type":998,"value":7185},{"type":993,"tag":1026,"props":7516,"children":7517},{"style":1041},[7518],{"type":998,"value":4444},{"type":993,"tag":1026,"props":7520,"children":7521},{"class":1028,"line":27},[7522],{"type":993,"tag":1026,"props":7523,"children":7524},{"style":1032},[7525],{"type":998,"value":7526},"    # Use a dictionary to track the best grade for each student\n",{"type":993,"tag":1026,"props":7528,"children":7529},{"class":1028,"line":36},[7530,7535,7539],{"type":993,"tag":1026,"props":7531,"children":7532},{"style":1041},[7533],{"type":998,"value":7534},"    best_records ",{"type":993,"tag":1026,"props":7536,"children":7537},{"style":1047},[7538],{"type":998,"value":1050},{"type":993,"tag":1026,"props":7540,"children":7541},{"style":1041},[7542],{"type":998,"value":7543}," {}\n",{"type":993,"tag":1026,"props":7545,"children":7546},{"class":1028,"line":45},[7547],{"type":993,"tag":1026,"props":7548,"children":7549},{"style":1041},[7550],{"type":998,"value":6598},{"type":993,"tag":1026,"props":7552,"children":7553},{"class":1028,"line":54},[7554],{"type":993,"tag":1026,"props":7555,"children":7556},{"style":1032},[7557],{"type":998,"value":7558},"    # Process both lists\n",{"type":993,"tag":1026,"props":7560,"children":7561},{"class":1028,"line":63},[7562,7567,7572,7576,7580,7584],{"type":993,"tag":1026,"props":7563,"children":7564},{"style":1047},[7565],{"type":998,"value":7566},"    for",{"type":993,"tag":1026,"props":7568,"children":7569},{"style":1041},[7570],{"type":998,"value":7571}," name, grade ",{"type":993,"tag":1026,"props":7573,"children":7574},{"style":1047},[7575],{"type":998,"value":2347},{"type":993,"tag":1026,"props":7577,"children":7578},{"style":1041},[7579],{"type":998,"value":1248},{"type":993,"tag":1026,"props":7581,"children":7582},{"style":1047},[7583],{"type":998,"value":1253},{"type":993,"tag":1026,"props":7585,"children":7586},{"style":1041},[7587],{"type":998,"value":7588}," list2:\n",{"type":993,"tag":1026,"props":7590,"children":7591},{"class":1028,"line":72},[7592,7596,7601,7605,7609,7614,7619,7624,7628],{"type":993,"tag":1026,"props":7593,"children":7594},{"style":1047},[7595],{"type":998,"value":6663},{"type":993,"tag":1026,"props":7597,"children":7598},{"style":1041},[7599],{"type":998,"value":7600}," name ",{"type":993,"tag":1026,"props":7602,"children":7603},{"style":1047},[7604],{"type":998,"value":5711},{"type":993,"tag":1026,"props":7606,"children":7607},{"style":1047},[7608],{"type":998,"value":5716},{"type":993,"tag":1026,"props":7610,"children":7611},{"style":1041},[7612],{"type":998,"value":7613}," best_records ",{"type":993,"tag":1026,"props":7615,"children":7616},{"style":1047},[7617],{"type":998,"value":7618},"or",{"type":993,"tag":1026,"props":7620,"children":7621},{"style":1041},[7622],{"type":998,"value":7623}," grade ",{"type":993,"tag":1026,"props":7625,"children":7626},{"style":1047},[7627],{"type":998,"value":4689},{"type":993,"tag":1026,"props":7629,"children":7630},{"style":1041},[7631],{"type":998,"value":7632}," best_records[name]:\n",{"type":993,"tag":1026,"props":7634,"children":7635},{"class":1028,"line":81},[7636,7641,7645],{"type":993,"tag":1026,"props":7637,"children":7638},{"style":1041},[7639],{"type":998,"value":7640},"            best_records[name] ",{"type":993,"tag":1026,"props":7642,"children":7643},{"style":1047},[7644],{"type":998,"value":1050},{"type":993,"tag":1026,"props":7646,"children":7647},{"style":1041},[7648],{"type":998,"value":7649}," grade\n",{"type":993,"tag":1026,"props":7651,"children":7652},{"class":1028,"line":91},[7653],{"type":993,"tag":1026,"props":7654,"children":7655},{"style":1041},[7656],{"type":998,"value":6598},{"type":993,"tag":1026,"props":7658,"children":7659},{"class":1028,"line":100},[7660],{"type":993,"tag":1026,"props":7661,"children":7662},{"style":1032},[7663],{"type":998,"value":7664},"    # Convert back to list of tuples\n",{"type":993,"tag":1026,"props":7666,"children":7667},{"class":1028,"line":109},[7668,7673,7677,7682,7686,7690,7694],{"type":993,"tag":1026,"props":7669,"children":7670},{"style":1041},[7671],{"type":998,"value":7672},"    combined_records ",{"type":993,"tag":1026,"props":7674,"children":7675},{"style":1047},[7676],{"type":998,"value":1050},{"type":993,"tag":1026,"props":7678,"children":7679},{"style":1041},[7680],{"type":998,"value":7681}," [(name, grade) ",{"type":993,"tag":1026,"props":7683,"children":7684},{"style":1047},[7685],{"type":998,"value":2337},{"type":993,"tag":1026,"props":7687,"children":7688},{"style":1041},[7689],{"type":998,"value":7571},{"type":993,"tag":1026,"props":7691,"children":7692},{"style":1047},[7693],{"type":998,"value":2347},{"type":993,"tag":1026,"props":7695,"children":7696},{"style":1041},[7697],{"type":998,"value":7698}," best_records.items()]\n",{"type":993,"tag":1026,"props":7700,"children":7701},{"class":1028,"line":118},[7702,7706],{"type":993,"tag":1026,"props":7703,"children":7704},{"style":1047},[7705],{"type":998,"value":6786},{"type":993,"tag":1026,"props":7707,"children":7708},{"style":1041},[7709],{"type":998,"value":7243},{"type":993,"tag":1026,"props":7711,"children":7712},{"class":1028,"line":127},[7713],{"type":993,"tag":1026,"props":7714,"children":7715},{"emptyLinePlaceholder":13},[7716],{"type":998,"value":1223},{"type":993,"tag":1026,"props":7718,"children":7719},{"class":1028,"line":136},[7720],{"type":993,"tag":1026,"props":7721,"children":7722},{"style":1032},[7723],{"type":998,"value":7258},{"type":993,"tag":1026,"props":7725,"children":7726},{"class":1028,"line":146},[7727,7731,7735,7739,7743,7747,7751,7755,7759,7763,7767,7771,7775,7779,7783],{"type":993,"tag":1026,"props":7728,"children":7729},{"style":1041},[7730],{"type":998,"value":7266},{"type":993,"tag":1026,"props":7732,"children":7733},{"style":1047},[7734],{"type":998,"value":1050},{"type":993,"tag":1026,"props":7736,"children":7737},{"style":1041},[7738],{"type":998,"value":4073},{"type":993,"tag":1026,"props":7740,"children":7741},{"style":1147},[7742],{"type":998,"value":1150},{"type":993,"tag":1026,"props":7744,"children":7745},{"style":1041},[7746],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7748,"children":7749},{"style":1058},[7750],{"type":998,"value":3656},{"type":993,"tag":1026,"props":7752,"children":7753},{"style":1041},[7754],{"type":998,"value":4090},{"type":993,"tag":1026,"props":7756,"children":7757},{"style":1147},[7758],{"type":998,"value":1159},{"type":993,"tag":1026,"props":7760,"children":7761},{"style":1041},[7762],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7764,"children":7765},{"style":1058},[7766],{"type":998,"value":3674},{"type":993,"tag":1026,"props":7768,"children":7769},{"style":1041},[7770],{"type":998,"value":4090},{"type":993,"tag":1026,"props":7772,"children":7773},{"style":1147},[7774],{"type":998,"value":1168},{"type":993,"tag":1026,"props":7776,"children":7777},{"style":1041},[7778],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7780,"children":7781},{"style":1058},[7782],{"type":998,"value":3665},{"type":993,"tag":1026,"props":7784,"children":7785},{"style":1041},[7786],{"type":998,"value":4123},{"type":993,"tag":1026,"props":7788,"children":7789},{"class":1028,"line":155},[7790,7794,7798,7802,7806,7810,7814,7818,7822,7826,7830,7834,7838,7842,7846],{"type":993,"tag":1026,"props":7791,"children":7792},{"style":1041},[7793],{"type":998,"value":7330},{"type":993,"tag":1026,"props":7795,"children":7796},{"style":1047},[7797],{"type":998,"value":1050},{"type":993,"tag":1026,"props":7799,"children":7800},{"style":1041},[7801],{"type":998,"value":4073},{"type":993,"tag":1026,"props":7803,"children":7804},{"style":1147},[7805],{"type":998,"value":1150},{"type":993,"tag":1026,"props":7807,"children":7808},{"style":1041},[7809],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7811,"children":7812},{"style":1058},[7813],{"type":998,"value":7351},{"type":993,"tag":1026,"props":7815,"children":7816},{"style":1041},[7817],{"type":998,"value":4090},{"type":993,"tag":1026,"props":7819,"children":7820},{"style":1147},[7821],{"type":998,"value":7360},{"type":993,"tag":1026,"props":7823,"children":7824},{"style":1041},[7825],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7827,"children":7828},{"style":1058},[7829],{"type":998,"value":7369},{"type":993,"tag":1026,"props":7831,"children":7832},{"style":1041},[7833],{"type":998,"value":4090},{"type":993,"tag":1026,"props":7835,"children":7836},{"style":1147},[7837],{"type":998,"value":1159},{"type":993,"tag":1026,"props":7839,"children":7840},{"style":1041},[7841],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7843,"children":7844},{"style":1058},[7845],{"type":998,"value":7386},{"type":993,"tag":1026,"props":7847,"children":7848},{"style":1041},[7849],{"type":998,"value":4123},{"type":993,"tag":1026,"props":7851,"children":7852},{"class":1028,"line":164},[7853],{"type":993,"tag":1026,"props":7854,"children":7855},{"emptyLinePlaceholder":13},[7856],{"type":998,"value":1223},{"type":993,"tag":1026,"props":7858,"children":7859},{"class":1028,"line":173},[7860,7864,7868,7872],{"type":993,"tag":1026,"props":7861,"children":7862},{"style":1058},[7863],{"type":998,"value":1266},{"type":993,"tag":1026,"props":7865,"children":7866},{"style":1041},[7867],{"type":998,"value":1271},{"type":993,"tag":1026,"props":7869,"children":7870},{"style":1147},[7871],{"type":998,"value":7413},{"type":993,"tag":1026,"props":7873,"children":7874},{"style":1041},[7875],{"type":998,"value":7418},{"type":993,"tag":1026,"props":7877,"children":7878},{"class":1028,"line":182},[7879,7883,7887,7891],{"type":993,"tag":1026,"props":7880,"children":7881},{"style":1058},[7882],{"type":998,"value":1266},{"type":993,"tag":1026,"props":7884,"children":7885},{"style":1041},[7886],{"type":998,"value":1271},{"type":993,"tag":1026,"props":7888,"children":7889},{"style":1147},[7890],{"type":998,"value":7434},{"type":993,"tag":1026,"props":7892,"children":7893},{"style":1041},[7894],{"type":998,"value":7439},{"type":993,"tag":1026,"props":7896,"children":7897},{"class":1028,"line":191},[7898,7902,7906],{"type":993,"tag":1026,"props":7899,"children":7900},{"style":1041},[7901],{"type":998,"value":1239},{"type":993,"tag":1026,"props":7903,"children":7904},{"style":1047},[7905],{"type":998,"value":1050},{"type":993,"tag":1026,"props":7907,"children":7908},{"style":1041},[7909],{"type":998,"value":7455},{"type":993,"tag":1026,"props":7911,"children":7912},{"class":1028,"line":201},[7913,7917,7921,7925],{"type":993,"tag":1026,"props":7914,"children":7915},{"style":1058},[7916],{"type":998,"value":1266},{"type":993,"tag":1026,"props":7918,"children":7919},{"style":1041},[7920],{"type":998,"value":1271},{"type":993,"tag":1026,"props":7922,"children":7923},{"style":1147},[7924],{"type":998,"value":7471},{"type":993,"tag":1026,"props":7926,"children":7927},{"style":1041},[7928],{"type":998,"value":1281},{"type":993,"tag":1001,"props":7930,"children":7931},{},[7932],{"type":993,"tag":1423,"props":7933,"children":7934},{},[7935],{"type":998,"value":7936},"Key Learning Points:",{"type":993,"tag":1429,"props":7938,"children":7939},{},[7940,7952,7970,7981],{"type":993,"tag":1433,"props":7941,"children":7942},{},[7943,7945,7950],{"type":998,"value":7944},"📌 ",{"type":993,"tag":1423,"props":7946,"children":7947},{},[7948],{"type":998,"value":7949},"Dictionary tracking",{"type":998,"value":7951},": Use dict to track best value for each key",{"type":993,"tag":1433,"props":7953,"children":7954},{},[7955,7956,7961,7963,7968],{"type":998,"value":7944},{"type":993,"tag":1423,"props":7957,"children":7958},{},[7959],{"type":998,"value":7960},"List concatenation",{"type":998,"value":7962},": Use ",{"type":993,"tag":1022,"props":7964,"children":7966},{"className":7965},[],[7967],{"type":998,"value":1253},{"type":998,"value":7969}," to combine lists for processing",{"type":993,"tag":1433,"props":7971,"children":7972},{},[7973,7974,7979],{"type":998,"value":7944},{"type":993,"tag":1423,"props":7975,"children":7976},{},[7977],{"type":998,"value":7978},"Conditional update",{"type":998,"value":7980},": Only update if new value is better",{"type":993,"tag":1433,"props":7982,"children":7983},{},[7984,7985,7990],{"type":998,"value":7944},{"type":993,"tag":1423,"props":7986,"children":7987},{},[7988],{"type":998,"value":7989},"Dict to list",{"type":998,"value":7991},": Convert dictionary back to list of tuples",{"type":993,"tag":1394,"props":7993,"children":7995},{"id":7994},"list-combination-methods-reference",[7996],{"type":998,"value":7997},"List Combination Methods Reference",{"type":993,"tag":1001,"props":7999,"children":8000},{},[8001],{"type":998,"value":8002},"Python provides various methods for combining lists:",{"type":993,"tag":8004,"props":8005,"children":8006},"table",{},[8007,8041],{"type":993,"tag":8008,"props":8009,"children":8010},"thead",{},[8011],{"type":993,"tag":8012,"props":8013,"children":8014},"tr",{},[8015,8021,8026,8031,8036],{"type":993,"tag":8016,"props":8017,"children":8018},"th",{},[8019],{"type":998,"value":8020},"Method",{"type":993,"tag":8016,"props":8022,"children":8023},{},[8024],{"type":998,"value":8025},"Purpose",{"type":993,"tag":8016,"props":8027,"children":8028},{},[8029],{"type":998,"value":8030},"Modifies Original",{"type":993,"tag":8016,"props":8032,"children":8033},{},[8034],{"type":998,"value":8035},"Example",{"type":993,"tag":8016,"props":8037,"children":8038},{},[8039],{"type":998,"value":8040},"Result",{"type":993,"tag":8042,"props":8043,"children":8044},"tbody",{},[8045,8086,8122,8161,8199,8234],{"type":993,"tag":8012,"props":8046,"children":8047},{},[8048,8058,8063,8068,8077],{"type":993,"tag":8049,"props":8050,"children":8051},"td",{},[8052],{"type":993,"tag":1022,"props":8053,"children":8055},{"className":8054},[],[8056],{"type":998,"value":8057},"list1 + list2",{"type":993,"tag":8049,"props":8059,"children":8060},{},[8061],{"type":998,"value":8062},"Concatenate lists",{"type":993,"tag":8049,"props":8064,"children":8065},{},[8066],{"type":998,"value":8067},"No",{"type":993,"tag":8049,"props":8069,"children":8070},{},[8071],{"type":993,"tag":1022,"props":8072,"children":8074},{"className":8073},[],[8075],{"type":998,"value":8076},"[1,2] + [3,4]",{"type":993,"tag":8049,"props":8078,"children":8079},{},[8080],{"type":993,"tag":1022,"props":8081,"children":8083},{"className":8082},[],[8084],{"type":998,"value":8085},"[1,2,3,4]",{"type":993,"tag":8012,"props":8087,"children":8088},{},[8089,8098,8103,8108,8117],{"type":993,"tag":8049,"props":8090,"children":8091},{},[8092],{"type":993,"tag":1022,"props":8093,"children":8095},{"className":8094},[],[8096],{"type":998,"value":8097},"list1.extend(list2)",{"type":993,"tag":8049,"props":8099,"children":8100},{},[8101],{"type":998,"value":8102},"Add all elements",{"type":993,"tag":8049,"props":8104,"children":8105},{},[8106],{"type":998,"value":8107},"Yes (list1)",{"type":993,"tag":8049,"props":8109,"children":8110},{},[8111],{"type":993,"tag":1022,"props":8112,"children":8114},{"className":8113},[],[8115],{"type":998,"value":8116},"list1.extend([3,4])",{"type":993,"tag":8049,"props":8118,"children":8119},{},[8120],{"type":998,"value":8121},"Modifies list1",{"type":993,"tag":8012,"props":8123,"children":8124},{},[8125,8134,8139,8143,8152],{"type":993,"tag":8049,"props":8126,"children":8127},{},[8128],{"type":993,"tag":1022,"props":8129,"children":8131},{"className":8130},[],[8132],{"type":998,"value":8133},"zip(list1, list2)",{"type":993,"tag":8049,"props":8135,"children":8136},{},[8137],{"type":998,"value":8138},"Pair elements",{"type":993,"tag":8049,"props":8140,"children":8141},{},[8142],{"type":998,"value":8067},{"type":993,"tag":8049,"props":8144,"children":8145},{},[8146],{"type":993,"tag":1022,"props":8147,"children":8149},{"className":8148},[],[8150],{"type":998,"value":8151},"zip([1,2], ['a','b'])",{"type":993,"tag":8049,"props":8153,"children":8154},{},[8155],{"type":993,"tag":1022,"props":8156,"children":8158},{"className":8157},[],[8159],{"type":998,"value":8160},"[(1,'a'), (2,'b')]",{"type":993,"tag":8012,"props":8162,"children":8163},{},[8164,8173,8178,8182,8191],{"type":993,"tag":8049,"props":8165,"children":8166},{},[8167],{"type":993,"tag":1022,"props":8168,"children":8170},{"className":8169},[],[8171],{"type":998,"value":8172},"[*list1, *list2]",{"type":993,"tag":8049,"props":8174,"children":8175},{},[8176],{"type":998,"value":8177},"Unpack and combine",{"type":993,"tag":8049,"props":8179,"children":8180},{},[8181],{"type":998,"value":8067},{"type":993,"tag":8049,"props":8183,"children":8184},{},[8185],{"type":993,"tag":1022,"props":8186,"children":8188},{"className":8187},[],[8189],{"type":998,"value":8190},"[*[1,2], *[3,4]]",{"type":993,"tag":8049,"props":8192,"children":8193},{},[8194],{"type":993,"tag":1022,"props":8195,"children":8197},{"className":8196},[],[8198],{"type":998,"value":8085},{"type":993,"tag":8012,"props":8200,"children":8201},{},[8202,8211,8216,8220,8229],{"type":993,"tag":8049,"props":8203,"children":8204},{},[8205],{"type":993,"tag":1022,"props":8206,"children":8208},{"className":8207},[],[8209],{"type":998,"value":8210},"itertools.chain()",{"type":993,"tag":8049,"props":8212,"children":8213},{},[8214],{"type":998,"value":8215},"Chain iterables",{"type":993,"tag":8049,"props":8217,"children":8218},{},[8219],{"type":998,"value":8067},{"type":993,"tag":8049,"props":8221,"children":8222},{},[8223],{"type":993,"tag":1022,"props":8224,"children":8226},{"className":8225},[],[8227],{"type":998,"value":8228},"chain([1,2], [3,4])",{"type":993,"tag":8049,"props":8230,"children":8231},{},[8232],{"type":998,"value":8233},"Iterator over all",{"type":993,"tag":8012,"props":8235,"children":8236},{},[8237,8246,8251,8255,8264],{"type":993,"tag":8049,"props":8238,"children":8239},{},[8240],{"type":993,"tag":1022,"props":8241,"children":8243},{"className":8242},[],[8244],{"type":998,"value":8245},"heapq.merge()",{"type":993,"tag":8049,"props":8247,"children":8248},{},[8249],{"type":998,"value":8250},"Merge sorted lists",{"type":993,"tag":8049,"props":8252,"children":8253},{},[8254],{"type":998,"value":8067},{"type":993,"tag":8049,"props":8256,"children":8257},{},[8258],{"type":993,"tag":1022,"props":8259,"children":8261},{"className":8260},[],[8262],{"type":998,"value":8263},"merge([1,3], [2,4])",{"type":993,"tag":8049,"props":8265,"children":8266},{},[8267],{"type":998,"value":8268},"Sorted iterator",{"type":993,"tag":1001,"props":8270,"children":8271},{},[8272],{"type":998,"value":8273},"Choose the method that best fits your combination requirements.",{"type":993,"tag":1394,"props":8275,"children":8277},{"id":8276},"common-combination-patterns",[8278],{"type":998,"value":8279},"🎨 Common Combination Patterns",{"type":993,"tag":1001,"props":8281,"children":8282},{},[8283],{"type":998,"value":8284},"Several patterns appear frequently when combining lists in real-world applications:",{"type":993,"tag":1501,"props":8286,"children":8288},{"id":8287},"data-aggregation-pattern",[8289],{"type":998,"value":8290},"Data Aggregation Pattern",{"type":993,"tag":1001,"props":8292,"children":8293},{},[8294],{"type":998,"value":8295},"Collecting and combining data from multiple sources for comprehensive analysis.",{"type":993,"tag":1012,"props":8297,"children":8298},{},[8299],{"type":993,"tag":1016,"props":8300,"children":8302},{"className":1018,"code":8301,"language":6,"meta":8,"style":8},"# Aggregating data from multiple sources\ndaily_sales = [100, 150, 200]\nweekly_sales = [800, 900, 750]\nmonthly_sales = [3200, 3500, 3100]\n\n# Combine all sales data\nall_sales = daily_sales + weekly_sales + monthly_sales\ntotal_sales = sum(all_sales)\nprint(\"All sales:\", all_sales)\nprint(\"Total sales:\", total_sales)\n",[8303],{"type":993,"tag":1022,"props":8304,"children":8305},{"__ignoreMap":8},[8306,8314,8357,8400,8443,8450,8458,8493,8515,8536],{"type":993,"tag":1026,"props":8307,"children":8308},{"class":1028,"line":12},[8309],{"type":993,"tag":1026,"props":8310,"children":8311},{"style":1032},[8312],{"type":998,"value":8313},"# Aggregating data from multiple sources\n",{"type":993,"tag":1026,"props":8315,"children":8316},{"class":1028,"line":27},[8317,8322,8326,8330,8335,8339,8344,8348,8353],{"type":993,"tag":1026,"props":8318,"children":8319},{"style":1041},[8320],{"type":998,"value":8321},"daily_sales ",{"type":993,"tag":1026,"props":8323,"children":8324},{"style":1047},[8325],{"type":998,"value":1050},{"type":993,"tag":1026,"props":8327,"children":8328},{"style":1041},[8329],{"type":998,"value":1055},{"type":993,"tag":1026,"props":8331,"children":8332},{"style":1058},[8333],{"type":998,"value":8334},"100",{"type":993,"tag":1026,"props":8336,"children":8337},{"style":1041},[8338],{"type":998,"value":1066},{"type":993,"tag":1026,"props":8340,"children":8341},{"style":1058},[8342],{"type":998,"value":8343},"150",{"type":993,"tag":1026,"props":8345,"children":8346},{"style":1041},[8347],{"type":998,"value":1066},{"type":993,"tag":1026,"props":8349,"children":8350},{"style":1058},[8351],{"type":998,"value":8352},"200",{"type":993,"tag":1026,"props":8354,"children":8355},{"style":1041},[8356],{"type":998,"value":1085},{"type":993,"tag":1026,"props":8358,"children":8359},{"class":1028,"line":36},[8360,8365,8369,8373,8378,8382,8387,8391,8396],{"type":993,"tag":1026,"props":8361,"children":8362},{"style":1041},[8363],{"type":998,"value":8364},"weekly_sales ",{"type":993,"tag":1026,"props":8366,"children":8367},{"style":1047},[8368],{"type":998,"value":1050},{"type":993,"tag":1026,"props":8370,"children":8371},{"style":1041},[8372],{"type":998,"value":1055},{"type":993,"tag":1026,"props":8374,"children":8375},{"style":1058},[8376],{"type":998,"value":8377},"800",{"type":993,"tag":1026,"props":8379,"children":8380},{"style":1041},[8381],{"type":998,"value":1066},{"type":993,"tag":1026,"props":8383,"children":8384},{"style":1058},[8385],{"type":998,"value":8386},"900",{"type":993,"tag":1026,"props":8388,"children":8389},{"style":1041},[8390],{"type":998,"value":1066},{"type":993,"tag":1026,"props":8392,"children":8393},{"style":1058},[8394],{"type":998,"value":8395},"750",{"type":993,"tag":1026,"props":8397,"children":8398},{"style":1041},[8399],{"type":998,"value":1085},{"type":993,"tag":1026,"props":8401,"children":8402},{"class":1028,"line":45},[8403,8408,8412,8416,8421,8425,8430,8434,8439],{"type":993,"tag":1026,"props":8404,"children":8405},{"style":1041},[8406],{"type":998,"value":8407},"monthly_sales ",{"type":993,"tag":1026,"props":8409,"children":8410},{"style":1047},[8411],{"type":998,"value":1050},{"type":993,"tag":1026,"props":8413,"children":8414},{"style":1041},[8415],{"type":998,"value":1055},{"type":993,"tag":1026,"props":8417,"children":8418},{"style":1058},[8419],{"type":998,"value":8420},"3200",{"type":993,"tag":1026,"props":8422,"children":8423},{"style":1041},[8424],{"type":998,"value":1066},{"type":993,"tag":1026,"props":8426,"children":8427},{"style":1058},[8428],{"type":998,"value":8429},"3500",{"type":993,"tag":1026,"props":8431,"children":8432},{"style":1041},[8433],{"type":998,"value":1066},{"type":993,"tag":1026,"props":8435,"children":8436},{"style":1058},[8437],{"type":998,"value":8438},"3100",{"type":993,"tag":1026,"props":8440,"children":8441},{"style":1041},[8442],{"type":998,"value":1085},{"type":993,"tag":1026,"props":8444,"children":8445},{"class":1028,"line":54},[8446],{"type":993,"tag":1026,"props":8447,"children":8448},{"emptyLinePlaceholder":13},[8449],{"type":998,"value":1223},{"type":993,"tag":1026,"props":8451,"children":8452},{"class":1028,"line":63},[8453],{"type":993,"tag":1026,"props":8454,"children":8455},{"style":1032},[8456],{"type":998,"value":8457},"# Combine all sales data\n",{"type":993,"tag":1026,"props":8459,"children":8460},{"class":1028,"line":72},[8461,8466,8470,8475,8479,8484,8488],{"type":993,"tag":1026,"props":8462,"children":8463},{"style":1041},[8464],{"type":998,"value":8465},"all_sales ",{"type":993,"tag":1026,"props":8467,"children":8468},{"style":1047},[8469],{"type":998,"value":1050},{"type":993,"tag":1026,"props":8471,"children":8472},{"style":1041},[8473],{"type":998,"value":8474}," daily_sales ",{"type":993,"tag":1026,"props":8476,"children":8477},{"style":1047},[8478],{"type":998,"value":1253},{"type":993,"tag":1026,"props":8480,"children":8481},{"style":1041},[8482],{"type":998,"value":8483}," weekly_sales ",{"type":993,"tag":1026,"props":8485,"children":8486},{"style":1047},[8487],{"type":998,"value":1253},{"type":993,"tag":1026,"props":8489,"children":8490},{"style":1041},[8491],{"type":998,"value":8492}," monthly_sales\n",{"type":993,"tag":1026,"props":8494,"children":8495},{"class":1028,"line":81},[8496,8501,8505,8510],{"type":993,"tag":1026,"props":8497,"children":8498},{"style":1041},[8499],{"type":998,"value":8500},"total_sales ",{"type":993,"tag":1026,"props":8502,"children":8503},{"style":1047},[8504],{"type":998,"value":1050},{"type":993,"tag":1026,"props":8506,"children":8507},{"style":1058},[8508],{"type":998,"value":8509}," sum",{"type":993,"tag":1026,"props":8511,"children":8512},{"style":1041},[8513],{"type":998,"value":8514},"(all_sales)\n",{"type":993,"tag":1026,"props":8516,"children":8517},{"class":1028,"line":91},[8518,8522,8526,8531],{"type":993,"tag":1026,"props":8519,"children":8520},{"style":1058},[8521],{"type":998,"value":1266},{"type":993,"tag":1026,"props":8523,"children":8524},{"style":1041},[8525],{"type":998,"value":1271},{"type":993,"tag":1026,"props":8527,"children":8528},{"style":1147},[8529],{"type":998,"value":8530},"\"All sales:\"",{"type":993,"tag":1026,"props":8532,"children":8533},{"style":1041},[8534],{"type":998,"value":8535},", all_sales)\n",{"type":993,"tag":1026,"props":8537,"children":8538},{"class":1028,"line":100},[8539,8543,8547,8552],{"type":993,"tag":1026,"props":8540,"children":8541},{"style":1058},[8542],{"type":998,"value":1266},{"type":993,"tag":1026,"props":8544,"children":8545},{"style":1041},[8546],{"type":998,"value":1271},{"type":993,"tag":1026,"props":8548,"children":8549},{"style":1147},[8550],{"type":998,"value":8551},"\"Total sales:\"",{"type":993,"tag":1026,"props":8553,"children":8554},{"style":1041},[8555],{"type":998,"value":8556},", total_sales)\n",{"type":993,"tag":1501,"props":8558,"children":8560},{"id":8559},"configuration-merging-pattern",[8561],{"type":998,"value":8562},"Configuration Merging Pattern",{"type":993,"tag":1001,"props":8564,"children":8565},{},[8566],{"type":998,"value":8567},"Combining configuration settings with precedence rules for system setup.",{"type":993,"tag":1012,"props":8569,"children":8570},{},[8571],{"type":993,"tag":1016,"props":8572,"children":8574},{"className":1018,"code":8573,"language":6,"meta":8,"style":8},"# Merging configuration lists\ndefault_settings = [\"theme=light\", \"lang=en\"]\nuser_settings = [\"theme=dark\", \"notifications=on\"]\n\n# Combine settings (user overrides default)\nall_settings = default_settings + user_settings\nprint(\"Combined settings:\", all_settings)\n",[8575],{"type":993,"tag":1022,"props":8576,"children":8577},{"__ignoreMap":8},[8578,8586,8620,8654,8661,8669,8695],{"type":993,"tag":1026,"props":8579,"children":8580},{"class":1028,"line":12},[8581],{"type":993,"tag":1026,"props":8582,"children":8583},{"style":1032},[8584],{"type":998,"value":8585},"# Merging configuration lists\n",{"type":993,"tag":1026,"props":8587,"children":8588},{"class":1028,"line":27},[8589,8594,8598,8602,8607,8611,8616],{"type":993,"tag":1026,"props":8590,"children":8591},{"style":1041},[8592],{"type":998,"value":8593},"default_settings ",{"type":993,"tag":1026,"props":8595,"children":8596},{"style":1047},[8597],{"type":998,"value":1050},{"type":993,"tag":1026,"props":8599,"children":8600},{"style":1041},[8601],{"type":998,"value":1055},{"type":993,"tag":1026,"props":8603,"children":8604},{"style":1147},[8605],{"type":998,"value":8606},"\"theme=light\"",{"type":993,"tag":1026,"props":8608,"children":8609},{"style":1041},[8610],{"type":998,"value":1066},{"type":993,"tag":1026,"props":8612,"children":8613},{"style":1147},[8614],{"type":998,"value":8615},"\"lang=en\"",{"type":993,"tag":1026,"props":8617,"children":8618},{"style":1041},[8619],{"type":998,"value":1085},{"type":993,"tag":1026,"props":8621,"children":8622},{"class":1028,"line":36},[8623,8628,8632,8636,8641,8645,8650],{"type":993,"tag":1026,"props":8624,"children":8625},{"style":1041},[8626],{"type":998,"value":8627},"user_settings ",{"type":993,"tag":1026,"props":8629,"children":8630},{"style":1047},[8631],{"type":998,"value":1050},{"type":993,"tag":1026,"props":8633,"children":8634},{"style":1041},[8635],{"type":998,"value":1055},{"type":993,"tag":1026,"props":8637,"children":8638},{"style":1147},[8639],{"type":998,"value":8640},"\"theme=dark\"",{"type":993,"tag":1026,"props":8642,"children":8643},{"style":1041},[8644],{"type":998,"value":1066},{"type":993,"tag":1026,"props":8646,"children":8647},{"style":1147},[8648],{"type":998,"value":8649},"\"notifications=on\"",{"type":993,"tag":1026,"props":8651,"children":8652},{"style":1041},[8653],{"type":998,"value":1085},{"type":993,"tag":1026,"props":8655,"children":8656},{"class":1028,"line":45},[8657],{"type":993,"tag":1026,"props":8658,"children":8659},{"emptyLinePlaceholder":13},[8660],{"type":998,"value":1223},{"type":993,"tag":1026,"props":8662,"children":8663},{"class":1028,"line":54},[8664],{"type":993,"tag":1026,"props":8665,"children":8666},{"style":1032},[8667],{"type":998,"value":8668},"# Combine settings (user overrides default)\n",{"type":993,"tag":1026,"props":8670,"children":8671},{"class":1028,"line":63},[8672,8677,8681,8686,8690],{"type":993,"tag":1026,"props":8673,"children":8674},{"style":1041},[8675],{"type":998,"value":8676},"all_settings ",{"type":993,"tag":1026,"props":8678,"children":8679},{"style":1047},[8680],{"type":998,"value":1050},{"type":993,"tag":1026,"props":8682,"children":8683},{"style":1041},[8684],{"type":998,"value":8685}," default_settings ",{"type":993,"tag":1026,"props":8687,"children":8688},{"style":1047},[8689],{"type":998,"value":1253},{"type":993,"tag":1026,"props":8691,"children":8692},{"style":1041},[8693],{"type":998,"value":8694}," user_settings\n",{"type":993,"tag":1026,"props":8696,"children":8697},{"class":1028,"line":72},[8698,8702,8706,8711],{"type":993,"tag":1026,"props":8699,"children":8700},{"style":1058},[8701],{"type":998,"value":1266},{"type":993,"tag":1026,"props":8703,"children":8704},{"style":1041},[8705],{"type":998,"value":1271},{"type":993,"tag":1026,"props":8707,"children":8708},{"style":1147},[8709],{"type":998,"value":8710},"\"Combined settings:\"",{"type":993,"tag":1026,"props":8712,"children":8713},{"style":1041},[8714],{"type":998,"value":8715},", all_settings)\n",{"type":993,"tag":1501,"props":8717,"children":8719},{"id":8718},"data-pipeline-pattern",[8720],{"type":998,"value":8721},"Data Pipeline Pattern",{"type":993,"tag":1001,"props":8723,"children":8724},{},[8725],{"type":998,"value":8726},"Multi-stage data processing with intermediate result combination.",{"type":993,"tag":1012,"props":8728,"children":8729},{},[8730],{"type":993,"tag":1016,"props":8731,"children":8733},{"className":1018,"code":8732,"language":6,"meta":8,"style":8},"# Data pipeline with multiple processing stages\nraw_data = [1, 2, 3, 4, 5]\nprocessed_stage1 = [x * 2 for x in raw_data]\nprocessed_stage2 = [x + 10 for x in processed_stage1]\n\n# Combine all stages for analysis\npipeline_data = [raw_data, processed_stage1, processed_stage2]\nprint(\"Pipeline stages:\")\nfor i, stage in enumerate(pipeline_data):\n    print(f\"  Stage {i}: {stage}\")\n",[8734],{"type":993,"tag":1022,"props":8735,"children":8736},{"__ignoreMap":8},[8737,8745,8801,8845,8887,8894,8902,8919,8939,8965],{"type":993,"tag":1026,"props":8738,"children":8739},{"class":1028,"line":12},[8740],{"type":993,"tag":1026,"props":8741,"children":8742},{"style":1032},[8743],{"type":998,"value":8744},"# Data pipeline with multiple processing stages\n",{"type":993,"tag":1026,"props":8746,"children":8747},{"class":1028,"line":27},[8748,8753,8757,8761,8765,8769,8773,8777,8781,8785,8789,8793,8797],{"type":993,"tag":1026,"props":8749,"children":8750},{"style":1041},[8751],{"type":998,"value":8752},"raw_data ",{"type":993,"tag":1026,"props":8754,"children":8755},{"style":1047},[8756],{"type":998,"value":1050},{"type":993,"tag":1026,"props":8758,"children":8759},{"style":1041},[8760],{"type":998,"value":1055},{"type":993,"tag":1026,"props":8762,"children":8763},{"style":1058},[8764],{"type":998,"value":1061},{"type":993,"tag":1026,"props":8766,"children":8767},{"style":1041},[8768],{"type":998,"value":1066},{"type":993,"tag":1026,"props":8770,"children":8771},{"style":1058},[8772],{"type":998,"value":1071},{"type":993,"tag":1026,"props":8774,"children":8775},{"style":1041},[8776],{"type":998,"value":1066},{"type":993,"tag":1026,"props":8778,"children":8779},{"style":1058},[8780],{"type":998,"value":1080},{"type":993,"tag":1026,"props":8782,"children":8783},{"style":1041},[8784],{"type":998,"value":1066},{"type":993,"tag":1026,"props":8786,"children":8787},{"style":1058},[8788],{"type":998,"value":1106},{"type":993,"tag":1026,"props":8790,"children":8791},{"style":1041},[8792],{"type":998,"value":1066},{"type":993,"tag":1026,"props":8794,"children":8795},{"style":1058},[8796],{"type":998,"value":1115},{"type":993,"tag":1026,"props":8798,"children":8799},{"style":1041},[8800],{"type":998,"value":1085},{"type":993,"tag":1026,"props":8802,"children":8803},{"class":1028,"line":36},[8804,8809,8813,8818,8822,8826,8831,8836,8840],{"type":993,"tag":1026,"props":8805,"children":8806},{"style":1041},[8807],{"type":998,"value":8808},"processed_stage1 ",{"type":993,"tag":1026,"props":8810,"children":8811},{"style":1047},[8812],{"type":998,"value":1050},{"type":993,"tag":1026,"props":8814,"children":8815},{"style":1041},[8816],{"type":998,"value":8817}," [x ",{"type":993,"tag":1026,"props":8819,"children":8820},{"style":1047},[8821],{"type":998,"value":4185},{"type":993,"tag":1026,"props":8823,"children":8824},{"style":1058},[8825],{"type":998,"value":4732},{"type":993,"tag":1026,"props":8827,"children":8828},{"style":1047},[8829],{"type":998,"value":8830}," for",{"type":993,"tag":1026,"props":8832,"children":8833},{"style":1041},[8834],{"type":998,"value":8835}," x ",{"type":993,"tag":1026,"props":8837,"children":8838},{"style":1047},[8839],{"type":998,"value":2347},{"type":993,"tag":1026,"props":8841,"children":8842},{"style":1041},[8843],{"type":998,"value":8844}," raw_data]\n",{"type":993,"tag":1026,"props":8846,"children":8847},{"class":1028,"line":45},[8848,8853,8857,8861,8865,8870,8874,8878,8882],{"type":993,"tag":1026,"props":8849,"children":8850},{"style":1041},[8851],{"type":998,"value":8852},"processed_stage2 ",{"type":993,"tag":1026,"props":8854,"children":8855},{"style":1047},[8856],{"type":998,"value":1050},{"type":993,"tag":1026,"props":8858,"children":8859},{"style":1041},[8860],{"type":998,"value":8817},{"type":993,"tag":1026,"props":8862,"children":8863},{"style":1047},[8864],{"type":998,"value":1253},{"type":993,"tag":1026,"props":8866,"children":8867},{"style":1058},[8868],{"type":998,"value":8869}," 10",{"type":993,"tag":1026,"props":8871,"children":8872},{"style":1047},[8873],{"type":998,"value":8830},{"type":993,"tag":1026,"props":8875,"children":8876},{"style":1041},[8877],{"type":998,"value":8835},{"type":993,"tag":1026,"props":8879,"children":8880},{"style":1047},[8881],{"type":998,"value":2347},{"type":993,"tag":1026,"props":8883,"children":8884},{"style":1041},[8885],{"type":998,"value":8886}," processed_stage1]\n",{"type":993,"tag":1026,"props":8888,"children":8889},{"class":1028,"line":54},[8890],{"type":993,"tag":1026,"props":8891,"children":8892},{"emptyLinePlaceholder":13},[8893],{"type":998,"value":1223},{"type":993,"tag":1026,"props":8895,"children":8896},{"class":1028,"line":63},[8897],{"type":993,"tag":1026,"props":8898,"children":8899},{"style":1032},[8900],{"type":998,"value":8901},"# Combine all stages for analysis\n",{"type":993,"tag":1026,"props":8903,"children":8904},{"class":1028,"line":72},[8905,8910,8914],{"type":993,"tag":1026,"props":8906,"children":8907},{"style":1041},[8908],{"type":998,"value":8909},"pipeline_data ",{"type":993,"tag":1026,"props":8911,"children":8912},{"style":1047},[8913],{"type":998,"value":1050},{"type":993,"tag":1026,"props":8915,"children":8916},{"style":1041},[8917],{"type":998,"value":8918}," [raw_data, processed_stage1, processed_stage2]\n",{"type":993,"tag":1026,"props":8920,"children":8921},{"class":1028,"line":81},[8922,8926,8930,8935],{"type":993,"tag":1026,"props":8923,"children":8924},{"style":1058},[8925],{"type":998,"value":1266},{"type":993,"tag":1026,"props":8927,"children":8928},{"style":1041},[8929],{"type":998,"value":1271},{"type":993,"tag":1026,"props":8931,"children":8932},{"style":1147},[8933],{"type":998,"value":8934},"\"Pipeline stages:\"",{"type":993,"tag":1026,"props":8936,"children":8937},{"style":1041},[8938],{"type":998,"value":2329},{"type":993,"tag":1026,"props":8940,"children":8941},{"class":1028,"line":91},[8942,8946,8951,8955,8960],{"type":993,"tag":1026,"props":8943,"children":8944},{"style":1047},[8945],{"type":998,"value":2337},{"type":993,"tag":1026,"props":8947,"children":8948},{"style":1041},[8949],{"type":998,"value":8950}," i, stage ",{"type":993,"tag":1026,"props":8952,"children":8953},{"style":1047},[8954],{"type":998,"value":2347},{"type":993,"tag":1026,"props":8956,"children":8957},{"style":1058},[8958],{"type":998,"value":8959}," enumerate",{"type":993,"tag":1026,"props":8961,"children":8962},{"style":1041},[8963],{"type":998,"value":8964},"(pipeline_data):\n",{"type":993,"tag":1026,"props":8966,"children":8967},{"class":1028,"line":100},[8968,8972,8976,8980,8985,8989,8994,8998,9002,9006,9011,9015,9019],{"type":993,"tag":1026,"props":8969,"children":8970},{"style":1058},[8971],{"type":998,"value":2360},{"type":993,"tag":1026,"props":8973,"children":8974},{"style":1041},[8975],{"type":998,"value":1271},{"type":993,"tag":1026,"props":8977,"children":8978},{"style":1047},[8979],{"type":998,"value":3079},{"type":993,"tag":1026,"props":8981,"children":8982},{"style":1147},[8983],{"type":998,"value":8984},"\"  Stage ",{"type":993,"tag":1026,"props":8986,"children":8987},{"style":1058},[8988],{"type":998,"value":3089},{"type":993,"tag":1026,"props":8990,"children":8991},{"style":1041},[8992],{"type":998,"value":8993},"i",{"type":993,"tag":1026,"props":8995,"children":8996},{"style":1058},[8997],{"type":998,"value":3099},{"type":993,"tag":1026,"props":8999,"children":9000},{"style":1147},[9001],{"type":998,"value":3104},{"type":993,"tag":1026,"props":9003,"children":9004},{"style":1058},[9005],{"type":998,"value":3089},{"type":993,"tag":1026,"props":9007,"children":9008},{"style":1041},[9009],{"type":998,"value":9010},"stage",{"type":993,"tag":1026,"props":9012,"children":9013},{"style":1058},[9014],{"type":998,"value":3099},{"type":993,"tag":1026,"props":9016,"children":9017},{"style":1147},[9018],{"type":998,"value":3122},{"type":993,"tag":1026,"props":9020,"children":9021},{"style":1041},[9022],{"type":998,"value":2329},{"type":993,"tag":1501,"props":9024,"children":9026},{"id":9025},"batch-processing-pattern",[9027],{"type":998,"value":9028},"Batch Processing Pattern",{"type":993,"tag":1001,"props":9030,"children":9031},{},[9032],{"type":998,"value":9033},"Combining processed batches for final output or further processing.",{"type":993,"tag":1012,"props":9035,"children":9036},{},[9037],{"type":993,"tag":1016,"props":9038,"children":9040},{"className":1018,"code":9039,"language":6,"meta":8,"style":8},"# Processing data in batches\nbatch1 = [\"file1.txt\", \"file2.txt\"]\nbatch2 = [\"file3.txt\", \"file4.txt\"]\nbatch3 = [\"file5.txt\", \"file6.txt\"]\n\n# Combine all batches for final processing\nall_files = []\nfor batch in [batch1, batch2, batch3]:\n    all_files.extend(batch)\n\nprint(\"All files to process:\", all_files)\n",[9041],{"type":993,"tag":1022,"props":9042,"children":9043},{"__ignoreMap":8},[9044,9052,9086,9120,9154,9161,9169,9185,9206,9214,9221],{"type":993,"tag":1026,"props":9045,"children":9046},{"class":1028,"line":12},[9047],{"type":993,"tag":1026,"props":9048,"children":9049},{"style":1032},[9050],{"type":998,"value":9051},"# Processing data in batches\n",{"type":993,"tag":1026,"props":9053,"children":9054},{"class":1028,"line":27},[9055,9060,9064,9068,9073,9077,9082],{"type":993,"tag":1026,"props":9056,"children":9057},{"style":1041},[9058],{"type":998,"value":9059},"batch1 ",{"type":993,"tag":1026,"props":9061,"children":9062},{"style":1047},[9063],{"type":998,"value":1050},{"type":993,"tag":1026,"props":9065,"children":9066},{"style":1041},[9067],{"type":998,"value":1055},{"type":993,"tag":1026,"props":9069,"children":9070},{"style":1147},[9071],{"type":998,"value":9072},"\"file1.txt\"",{"type":993,"tag":1026,"props":9074,"children":9075},{"style":1041},[9076],{"type":998,"value":1066},{"type":993,"tag":1026,"props":9078,"children":9079},{"style":1147},[9080],{"type":998,"value":9081},"\"file2.txt\"",{"type":993,"tag":1026,"props":9083,"children":9084},{"style":1041},[9085],{"type":998,"value":1085},{"type":993,"tag":1026,"props":9087,"children":9088},{"class":1028,"line":36},[9089,9094,9098,9102,9107,9111,9116],{"type":993,"tag":1026,"props":9090,"children":9091},{"style":1041},[9092],{"type":998,"value":9093},"batch2 ",{"type":993,"tag":1026,"props":9095,"children":9096},{"style":1047},[9097],{"type":998,"value":1050},{"type":993,"tag":1026,"props":9099,"children":9100},{"style":1041},[9101],{"type":998,"value":1055},{"type":993,"tag":1026,"props":9103,"children":9104},{"style":1147},[9105],{"type":998,"value":9106},"\"file3.txt\"",{"type":993,"tag":1026,"props":9108,"children":9109},{"style":1041},[9110],{"type":998,"value":1066},{"type":993,"tag":1026,"props":9112,"children":9113},{"style":1147},[9114],{"type":998,"value":9115},"\"file4.txt\"",{"type":993,"tag":1026,"props":9117,"children":9118},{"style":1041},[9119],{"type":998,"value":1085},{"type":993,"tag":1026,"props":9121,"children":9122},{"class":1028,"line":45},[9123,9128,9132,9136,9141,9145,9150],{"type":993,"tag":1026,"props":9124,"children":9125},{"style":1041},[9126],{"type":998,"value":9127},"batch3 ",{"type":993,"tag":1026,"props":9129,"children":9130},{"style":1047},[9131],{"type":998,"value":1050},{"type":993,"tag":1026,"props":9133,"children":9134},{"style":1041},[9135],{"type":998,"value":1055},{"type":993,"tag":1026,"props":9137,"children":9138},{"style":1147},[9139],{"type":998,"value":9140},"\"file5.txt\"",{"type":993,"tag":1026,"props":9142,"children":9143},{"style":1041},[9144],{"type":998,"value":1066},{"type":993,"tag":1026,"props":9146,"children":9147},{"style":1147},[9148],{"type":998,"value":9149},"\"file6.txt\"",{"type":993,"tag":1026,"props":9151,"children":9152},{"style":1041},[9153],{"type":998,"value":1085},{"type":993,"tag":1026,"props":9155,"children":9156},{"class":1028,"line":54},[9157],{"type":993,"tag":1026,"props":9158,"children":9159},{"emptyLinePlaceholder":13},[9160],{"type":998,"value":1223},{"type":993,"tag":1026,"props":9162,"children":9163},{"class":1028,"line":63},[9164],{"type":993,"tag":1026,"props":9165,"children":9166},{"style":1032},[9167],{"type":998,"value":9168},"# Combine all batches for final processing\n",{"type":993,"tag":1026,"props":9170,"children":9171},{"class":1028,"line":72},[9172,9177,9181],{"type":993,"tag":1026,"props":9173,"children":9174},{"style":1041},[9175],{"type":998,"value":9176},"all_files ",{"type":993,"tag":1026,"props":9178,"children":9179},{"style":1047},[9180],{"type":998,"value":1050},{"type":993,"tag":1026,"props":9182,"children":9183},{"style":1041},[9184],{"type":998,"value":2905},{"type":993,"tag":1026,"props":9186,"children":9187},{"class":1028,"line":81},[9188,9192,9197,9201],{"type":993,"tag":1026,"props":9189,"children":9190},{"style":1047},[9191],{"type":998,"value":2337},{"type":993,"tag":1026,"props":9193,"children":9194},{"style":1041},[9195],{"type":998,"value":9196}," batch ",{"type":993,"tag":1026,"props":9198,"children":9199},{"style":1047},[9200],{"type":998,"value":2347},{"type":993,"tag":1026,"props":9202,"children":9203},{"style":1041},[9204],{"type":998,"value":9205}," [batch1, batch2, batch3]:\n",{"type":993,"tag":1026,"props":9207,"children":9208},{"class":1028,"line":91},[9209],{"type":993,"tag":1026,"props":9210,"children":9211},{"style":1041},[9212],{"type":998,"value":9213},"    all_files.extend(batch)\n",{"type":993,"tag":1026,"props":9215,"children":9216},{"class":1028,"line":100},[9217],{"type":993,"tag":1026,"props":9218,"children":9219},{"emptyLinePlaceholder":13},[9220],{"type":998,"value":1223},{"type":993,"tag":1026,"props":9222,"children":9223},{"class":1028,"line":109},[9224,9228,9232,9237],{"type":993,"tag":1026,"props":9225,"children":9226},{"style":1058},[9227],{"type":998,"value":1266},{"type":993,"tag":1026,"props":9229,"children":9230},{"style":1041},[9231],{"type":998,"value":1271},{"type":993,"tag":1026,"props":9233,"children":9234},{"style":1147},[9235],{"type":998,"value":9236},"\"All files to process:\"",{"type":993,"tag":1026,"props":9238,"children":9239},{"style":1041},[9240],{"type":998,"value":9241},", all_files)\n",{"type":993,"tag":1413,"props":9243,"children":9246},{"title":9244,"type":2387,"emoji":9245},"Performance Guidelines","⚡",[9247,9255,9302,9309],{"type":993,"tag":1001,"props":9248,"children":9249},{},[9250],{"type":993,"tag":1423,"props":9251,"children":9252},{},[9253],{"type":998,"value":9254},"Efficiency Tips:",{"type":993,"tag":1429,"props":9256,"children":9257},{},[9258,9269,9280,9291],{"type":993,"tag":1433,"props":9259,"children":9260},{},[9261,9262,9267],{"type":998,"value":3201},{"type":993,"tag":1022,"props":9263,"children":9265},{"className":9264},[],[9266],{"type":998,"value":2381},{"type":998,"value":9268}," when modifying existing list",{"type":993,"tag":1433,"props":9270,"children":9271},{},[9272,9273,9278],{"type":998,"value":3201},{"type":993,"tag":1022,"props":9274,"children":9276},{"className":9275},[],[9277],{"type":998,"value":1253},{"type":998,"value":9279}," when you need new list",{"type":993,"tag":1433,"props":9281,"children":9282},{},[9283,9284,9289],{"type":998,"value":3201},{"type":993,"tag":1022,"props":9285,"children":9287},{"className":9286},[],[9288],{"type":998,"value":3147},{"type":998,"value":9290}," when combining related data",{"type":993,"tag":1433,"props":9292,"children":9293},{},[9294,9295,9300],{"type":998,"value":3201},{"type":993,"tag":1022,"props":9296,"children":9298},{"className":9297},[],[9299],{"type":998,"value":8210},{"type":998,"value":9301}," for memory efficiency with large datasets",{"type":993,"tag":1001,"props":9303,"children":9304},{},[9305],{"type":993,"tag":1423,"props":9306,"children":9307},{},[9308],{"type":998,"value":1466},{"type":993,"tag":1429,"props":9310,"children":9311},{},[9312,9317,9322,9327],{"type":993,"tag":1433,"props":9313,"children":9314},{},[9315],{"type":998,"value":9316},"Concatenation creates new lists",{"type":993,"tag":1433,"props":9318,"children":9319},{},[9320],{"type":998,"value":9321},"Extension modifies in-place (more efficient)",{"type":993,"tag":1433,"props":9323,"children":9324},{},[9325],{"type":998,"value":9326},"Zipping creates iterator (memory efficient)",{"type":993,"tag":1433,"props":9328,"children":9329},{},[9330],{"type":998,"value":9331},"Consider dataset size when choosing method",{"type":993,"tag":1001,"props":9333,"children":9334},{},[9335,9337,9343],{"type":998,"value":9336},"Learn more about ",{"type":993,"tag":9338,"props":9339,"children":9340},"a",{"href":243},[9341],{"type":998,"value":9342},"for loops",{"type":998,"value":9344}," to understand iteration patterns that work well with combined lists.",{"type":993,"tag":1394,"props":9346,"children":9348},{"id":9347},"test-your-knowledge",[9349],{"type":998,"value":9350},"Test Your Knowledge",{"type":993,"tag":1001,"props":9352,"children":9353},{},[9354],{"type":998,"value":9355},"Test what you've learned about combining lists in Python:",{"type":993,"tag":9357,"props":9358,"children":9361},"redirect-button",{"label":9359,"url":9360},"Take Quiz","/tutorial-quiz/python/combining-lists",[],{"type":993,"tag":1394,"props":9363,"children":9365},{"id":9364},"whats-next",[9366],{"type":998,"value":9367},"What's Next?",{"type":993,"tag":1001,"props":9369,"children":9370},{},[9371],{"type":998,"value":9372},"Now that you know how to combine lists effectively, you're ready to learn about essential list tools. This includes powerful built-in functions, advanced techniques, and utilities that make list manipulation more efficient and elegant.",{"type":993,"tag":1001,"props":9374,"children":9375},{},[9376,9378,9382],{"type":998,"value":9377},"Ready to continue? Check out our lesson on ",{"type":993,"tag":9338,"props":9379,"children":9380},{"href":361},[9381],{"type":998,"value":362},{"type":998,"value":9383},".",{"type":993,"tag":9385,"props":9386,"children":9387},"style",{},[9388],{"type":998,"value":9389},"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":9391},[9392,9398,9403,9409,9415,9420,9426,9427,9433,9434],{"id":1396,"depth":27,"text":1399,"children":9393},[9394,9395,9396,9397],{"id":1503,"depth":36,"text":1506},{"id":1704,"depth":36,"text":1707},{"id":1906,"depth":36,"text":1909},{"id":2115,"depth":36,"text":2118},{"id":2368,"depth":27,"text":2371,"children":9399},[9400,9401,9402],{"id":2471,"depth":36,"text":2474},{"id":2653,"depth":36,"text":2656},{"id":2862,"depth":36,"text":2865},{"id":3134,"depth":27,"text":3137,"children":9404},[9405,9406,9407,9408],{"id":3260,"depth":36,"text":3263},{"id":3526,"depth":36,"text":3529},{"id":3841,"depth":36,"text":3844},{"id":4030,"depth":36,"text":4033},{"id":4252,"depth":27,"text":4255,"children":9410},[9411,9412,9413,9414],{"id":4268,"depth":36,"text":4271},{"id":4476,"depth":36,"text":4479},{"id":4782,"depth":36,"text":4785},{"id":5068,"depth":36,"text":5071},{"id":5377,"depth":27,"text":5380,"children":9416},[9417,9418,9419],{"id":5465,"depth":36,"text":5468},{"id":5819,"depth":36,"text":5822},{"id":6074,"depth":36,"text":6077},{"id":6298,"depth":27,"text":6301,"children":9421},[9422,9423,9424,9425],{"id":6314,"depth":36,"text":6317},{"id":6504,"depth":36,"text":6507},{"id":6934,"depth":36,"text":6937},{"id":7478,"depth":36,"text":7481},{"id":7994,"depth":27,"text":7997},{"id":8276,"depth":27,"text":8279,"children":9428},[9429,9430,9431,9432],{"id":8287,"depth":36,"text":8290},{"id":8559,"depth":36,"text":8562},{"id":8718,"depth":36,"text":8721},{"id":9025,"depth":36,"text":9028},{"id":9347,"depth":27,"text":9350},{"id":9364,"depth":27,"text":9367},1782373738189]