[{"data":1,"prerenderedAt":12823},["ShallowReactive",2],{"tutorials-python":3,"category-items-python":987,"content-/python/merging-tuples":988},[4,22,31,40,49,58,67,76,86,95,104,113,122,131,141,150,159,168,177,186,196,205,214,223,233,242,251,260,269,279,288,297,306,315,324,333,342,351,360,369,379,388,397,406,415,424,433,442,452,461,470,479,488,497,506,515,525,534,543,552,561,570,579,588,597,606,616,625,634,643,652,661,670,680,689,698,707,716,725,734,744,753,762,771,780,789,798,807,817,826,835,844,853,863,872,881,890,900,909,918,927,936,945,953,961,970,979],{"_path":5,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":9,"description":10,"slug":11,"order":12,"isParent":13,"icon":14,"_type":15,"_id":16,"_source":17,"_file":18,"_stem":19,"_extension":20,"children":21,"expanded":13},"/python/getting-started","python",false,"","Getting Started","Begin your Python programming journey. Learn what Python is, how to set it up, and write your first programs. Perfect for complete beginners starting their coding adventure.","getting-started",1,true,"pi pi-folder","markdown","content:python:1.getting-started.md","content","python/1.getting-started.md","python/1.getting-started","md",[22,31,40,49,58,67],{"_path":23,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":24,"description":25,"slug":26,"parentId":5,"order":27,"_type":15,"_id":28,"_source":17,"_file":29,"_stem":30,"_extension":20},"/python/what-is-python","What is Python","Discover Python's fascinating history, design philosophy, and key features. Learn why Python has become one of the world's most popular programming languages and perfect for beginners.","what-is-python",2,"content:python:2.what-is-python.md","python/2.what-is-python.md","python/2.what-is-python",{"_path":32,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":33,"description":34,"slug":35,"parentId":5,"order":36,"_type":15,"_id":37,"_source":17,"_file":38,"_stem":39,"_extension":20},"/python/setup-python","Setup Python","Learn how to install Python on your computer and set up your development environment. Step-by-step guide for Windows, macOS, and Linux with beginner-friendly instructions.","setup-python",3,"content:python:3.setup-python.md","python/3.setup-python.md","python/3.setup-python",{"_path":41,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":42,"description":43,"slug":44,"parentId":5,"order":45,"_type":15,"_id":46,"_source":17,"_file":47,"_stem":48,"_extension":20},"/python/your-first-program","Your First Program","Write and run your first Python program! Learn the basics of Python programming with simple examples and step-by-step instructions for beginners.","your-first-program",4,"content:python:4.your-first-program.md","python/4.your-first-program.md","python/4.your-first-program",{"_path":50,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":51,"description":52,"slug":53,"parentId":5,"order":54,"_type":15,"_id":55,"_source":17,"_file":56,"_stem":57,"_extension":20},"/python/python-code-structure","Python Code Structure","Learn how Python code is organized and structured. Understand indentation, line breaks, and the basic rules that make Python programs work correctly.","python-code-structure",5,"content:python:5.python-code-structure.md","python/5.python-code-structure.md","python/5.python-code-structure",{"_path":59,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":60,"description":61,"slug":62,"parentId":5,"order":63,"_type":15,"_id":64,"_source":17,"_file":65,"_stem":66,"_extension":20},"/python/writing-comments","Writing Comments","Learn how to write effective comments in Python. Discover when and how to document your code to make it clear, maintainable, and easy to understand.","writing-comments",6,"content:python:6.writing-comments.md","python/6.writing-comments.md","python/6.writing-comments",{"_path":68,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":69,"description":70,"slug":71,"parentId":5,"order":72,"_type":15,"_id":73,"_source":17,"_file":74,"_stem":75,"_extension":20},"/python/working-with-variables","Working with Variables","Learn how to create, use, and manage variables in Python. Understand how to store data, change values, and follow naming conventions for clean, readable code.","working-with-variables",7,"content:python:7.working-with-variables.md","python/7.working-with-variables.md","python/7.working-with-variables",{"_path":77,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":78,"description":79,"slug":80,"order":81,"isParent":13,"icon":14,"_type":15,"_id":82,"_source":17,"_file":83,"_stem":84,"_extension":20,"children":85,"expanded":13},"/python/basic-data-types","Basic Data Types","Learn about Python's fundamental data types including numbers, text, and boolean values","basic-data-types",8,"content:python:8.basic-data-types.md","python/8.basic-data-types.md","python/8.basic-data-types",[86,95,104,113,122],{"_path":87,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":88,"description":89,"slug":90,"parentId":77,"order":91,"_type":15,"_id":92,"_source":17,"_file":93,"_stem":94,"_extension":20},"/python/understanding-data-types","Understanding Data Types","Learn how Python identifies different data types and why they're important for programming","understanding-data-types",9,"content:python:9.understanding-data-types.md","python/9.understanding-data-types.md","python/9.understanding-data-types",{"_path":96,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":97,"description":98,"slug":99,"parentId":77,"order":100,"_type":15,"_id":101,"_source":17,"_file":102,"_stem":103,"_extension":20},"/python/working-with-numbers","Working with Numbers","Learn about Python's numeric data types including integers and floats, and how to perform calculations","working-with-numbers",10,"content:python:10.working-with-numbers.md","python/10.working-with-numbers.md","python/10.working-with-numbers",{"_path":105,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":106,"description":107,"slug":108,"parentId":77,"order":109,"_type":15,"_id":110,"_source":17,"_file":111,"_stem":112,"_extension":20},"/python/text-and-strings","Text and Strings","Learn how to work with text data in Python using strings, including creation, manipulation, and formatting","text-and-strings",11,"content:python:11.text-and-strings.md","python/11.text-and-strings.md","python/11.text-and-strings",{"_path":114,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":115,"description":116,"slug":117,"parentId":77,"order":118,"_type":15,"_id":119,"_source":17,"_file":120,"_stem":121,"_extension":20},"/python/true-false-values","True/False Values","Learn about boolean values in Python, including True/False logic, comparison operations, and how to use booleans for decision-making in your programs","true-false-values",12,"content:python:12.true-false-values.md","python/12.true-false-values.md","python/12.true-false-values",{"_path":123,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":124,"description":125,"slug":126,"parentId":77,"order":127,"_type":15,"_id":128,"_source":17,"_file":129,"_stem":130,"_extension":20},"/python/converting-types","Converting Types","Learn how to convert between different Python data types including strings, numbers, and booleans","converting-types",13,"content:python:13.converting-types.md","python/13.converting-types.md","python/13.converting-types",{"_path":132,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":133,"description":134,"slug":135,"order":136,"isParent":13,"icon":14,"_type":15,"_id":137,"_source":17,"_file":138,"_stem":139,"_extension":20,"children":140,"expanded":13},"/python/python-operators","Python Operators","Learn about Python operators - the symbols and keywords that perform operations on data. Discover arithmetic, comparison, logical, and assignment operators with simple examples.","python-operators",14,"content:python:14.python-operators.md","python/14.python-operators.md","python/14.python-operators",[141,150,159,168,177],{"_path":142,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":143,"description":144,"slug":145,"parentId":132,"order":146,"_type":15,"_id":147,"_source":17,"_file":148,"_stem":149,"_extension":20},"/python/math-operations","Math Operations","Learn Python's arithmetic operators for mathematical calculations. Master addition, subtraction, multiplication, division, and more with practical examples.","math-operations",15,"content:python:15.math-operations.md","python/15.math-operations.md","python/15.math-operations",{"_path":151,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":152,"description":153,"slug":154,"parentId":132,"order":155,"_type":15,"_id":156,"_source":17,"_file":157,"_stem":158,"_extension":20},"/python/comparing-values","Comparing Values","Learn Python's comparison operators to compare values and make decisions. Master equality, inequality, and relational operators with practical examples.","comparing-values",16,"content:python:16.comparing-values.md","python/16.comparing-values.md","python/16.comparing-values",{"_path":160,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":161,"description":162,"slug":163,"parentId":132,"order":164,"_type":15,"_id":165,"_source":17,"_file":166,"_stem":167,"_extension":20},"/python/logic-operations","Logic Operations","Learn about Python's logical operators for combining conditions and creating complex boolean expressions","logic-operations",17,"content:python:17.logic-operations.md","python/17.logic-operations.md","python/17.logic-operations",{"_path":169,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":170,"description":171,"slug":172,"parentId":132,"order":173,"_type":15,"_id":174,"_source":17,"_file":175,"_stem":176,"_extension":20},"/python/value-assignment","Value Assignment","Learn about Python's assignment operators for efficiently updating variables and performing calculations","value-assignment",18,"content:python:18.value-assignment.md","python/18.value-assignment.md","python/18.value-assignment",{"_path":178,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":179,"description":180,"slug":181,"parentId":132,"order":182,"_type":15,"_id":183,"_source":17,"_file":184,"_stem":185,"_extension":20},"/python/operator-precedence","Operator Precedence","Learn how Python evaluates expressions with multiple operators and how to control evaluation order","operator-precedence",19,"content:python:19.operator-precedence.md","python/19.operator-precedence.md","python/19.operator-precedence",{"_path":187,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":188,"description":189,"slug":190,"order":191,"isParent":13,"icon":14,"_type":15,"_id":192,"_source":17,"_file":193,"_stem":194,"_extension":20,"children":195,"expanded":13},"/python/decision-making","Decision Making","Learn how to make decisions in your Python programs using conditional statements and control flow","decision-making",20,"content:python:20.decision-making.md","python/20.decision-making.md","python/20.decision-making",[196,205,214],{"_path":197,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":198,"description":199,"slug":200,"parentId":187,"order":201,"_type":15,"_id":202,"_source":17,"_file":203,"_stem":204,"_extension":20},"/python/if-statements","If Statements","Learn how to use if statements to make decisions and control program flow in Python","if-statements",21,"content:python:21.if-statements.md","python/21.if-statements.md","python/21.if-statements",{"_path":206,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":207,"description":208,"slug":209,"parentId":187,"order":210,"_type":15,"_id":211,"_source":17,"_file":212,"_stem":213,"_extension":20},"/python/multiple-conditions","Multiple Conditions","Learn how to handle multiple conditions using elif statements and complex conditional logic in Python","multiple-conditions",22,"content:python:22.multiple-conditions.md","python/22.multiple-conditions.md","python/22.multiple-conditions",{"_path":215,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":216,"description":217,"slug":218,"parentId":187,"order":219,"_type":15,"_id":220,"_source":17,"_file":221,"_stem":222,"_extension":20},"/python/pattern-matching","Pattern Matching","Learn how to use Python's match-case statements for powerful pattern matching and complex decision making","pattern-matching",23,"content:python:23.pattern-matching.md","python/23.pattern-matching.md","python/23.pattern-matching",{"_path":224,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":225,"description":226,"slug":227,"order":228,"isParent":13,"icon":14,"_type":15,"_id":229,"_source":17,"_file":230,"_stem":231,"_extension":20,"children":232,"expanded":13},"/python/repetition-and-loops","Python Loops","Learn how to use loops to repeat code efficiently and handle repetitive tasks in Python","repetition-and-loops",24,"content:python:24.repetition-and-loops.md","python/24.repetition-and-loops.md","python/24.repetition-and-loops",[233,242,251,260],{"_path":234,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":235,"description":236,"slug":237,"parentId":224,"order":238,"_type":15,"_id":239,"_source":17,"_file":240,"_stem":241,"_extension":20},"/python/while-loops","While Loops","Learn how to use while loops for condition-based repetition and create loops that run until specific conditions are met","while-loops",25,"content:python:25.while-loops.md","python/25.while-loops.md","python/25.while-loops",{"_path":243,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":244,"description":245,"slug":246,"parentId":224,"order":247,"_type":15,"_id":248,"_source":17,"_file":249,"_stem":250,"_extension":20},"/python/for-loops","For Loops","Learn how to use for loops to iterate through sequences, collections, and ranges efficiently in Python","for-loops",26,"content:python:26.for-loops.md","python/26.for-loops.md","python/26.for-loops",{"_path":252,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":253,"description":254,"slug":255,"parentId":224,"order":256,"_type":15,"_id":257,"_source":17,"_file":258,"_stem":259,"_extension":20},"/python/loop-control","Loop Control","Master advanced loop control techniques including break, continue, and else clauses for sophisticated iteration patterns","loop-control",27,"content:python:27.loop-control.md","python/27.loop-control.md","python/27.loop-control",{"_path":261,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":262,"description":263,"slug":264,"parentId":224,"order":265,"_type":15,"_id":266,"_source":17,"_file":267,"_stem":268,"_extension":20},"/python/nested-loops","Nested Loops","Learn how to use nested loops to process multi-dimensional data, create patterns, and handle complex iteration scenarios","nested-loops",28,"content:python:28.nested-loops.md","python/28.nested-loops.md","python/28.nested-loops",{"_path":270,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":271,"description":272,"slug":273,"order":274,"isParent":13,"icon":14,"_type":15,"_id":275,"_source":17,"_file":276,"_stem":277,"_extension":20,"children":278,"expanded":13},"/python/python-lists","Python Lists","Learn about Python lists, one of the most important and versatile data structures for storing and organizing collections of data","python-lists",29,"content:python:29.python-lists.md","python/29.python-lists.md","python/29.python-lists",[279,288,297,306,315,324,333,342,351,360],{"_path":280,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":281,"description":282,"slug":283,"parentId":270,"order":284,"_type":15,"_id":285,"_source":17,"_file":286,"_stem":287,"_extension":20},"/python/creating-lists","Creating Lists","Learn different methods to create and initialize Python lists, from simple literals to advanced techniques","creating-lists",30,"content:python:30.creating-lists.md","python/30.creating-lists.md","python/30.creating-lists",{"_path":289,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":290,"description":291,"slug":292,"parentId":270,"order":293,"_type":15,"_id":294,"_source":17,"_file":295,"_stem":296,"_extension":20},"/python/reading-list-data","Reading List Data","Master techniques for accessing and retrieving data from Python lists using indexing, slicing, and built-in methods","reading-list-data",31,"content:python:31.reading-list-data.md","python/31.reading-list-data.md","python/31.reading-list-data",{"_path":298,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":299,"description":300,"slug":301,"parentId":270,"order":302,"_type":15,"_id":303,"_source":17,"_file":304,"_stem":305,"_extension":20},"/python/modifying-lists","Modifying Lists","Learn how to change, update, and modify existing elements in Python lists using indexing and various methods","modifying-lists",32,"content:python:32.modifying-lists.md","python/32.modifying-lists.md","python/32.modifying-lists",{"_path":307,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":308,"description":309,"slug":310,"parentId":270,"order":311,"_type":15,"_id":312,"_source":17,"_file":313,"_stem":314,"_extension":20},"/python/adding-to-lists","Adding to Lists","Learn various methods to add elements to Python lists including append, insert, extend, and concatenation techniques","adding-to-lists",33,"content:python:33.adding-to-lists.md","python/33.adding-to-lists.md","python/33.adding-to-lists",{"_path":316,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":317,"description":318,"slug":319,"parentId":270,"order":320,"_type":15,"_id":321,"_source":17,"_file":322,"_stem":323,"_extension":20},"/python/removing-from-lists","Removing from Lists","Learn different methods to remove and delete elements from Python lists including remove, pop, del, and clear","removing-from-lists",34,"content:python:34.removing-from-lists.md","python/34.removing-from-lists.md","python/34.removing-from-lists",{"_path":325,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":326,"description":327,"slug":328,"parentId":270,"order":329,"_type":15,"_id":330,"_source":17,"_file":331,"_stem":332,"_extension":20},"/python/looping-through-lists","Looping Through Lists","Learn different ways to iterate through Python lists using for loops, while loops, enumerate, and other iteration techniques","looping-through-lists",35,"content:python:35.looping-through-lists.md","python/35.looping-through-lists.md","python/35.looping-through-lists",{"_path":334,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":335,"description":336,"slug":337,"parentId":270,"order":338,"_type":15,"_id":339,"_source":17,"_file":340,"_stem":341,"_extension":20},"/python/list-shortcuts","List Shortcuts","Learn powerful Python list shortcuts including list comprehensions, slicing tricks, and built-in functions for efficient list operations","list-shortcuts",36,"content:python:36.list-shortcuts.md","python/36.list-shortcuts.md","python/36.list-shortcuts",{"_path":343,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":344,"description":345,"slug":346,"parentId":270,"order":347,"_type":15,"_id":348,"_source":17,"_file":349,"_stem":350,"_extension":20},"/python/organizing-lists","Organizing Lists","Learn how to sort, reverse, and organize Python lists using built-in methods and custom sorting techniques","organizing-lists",37,"content:python:37.organizing-lists.md","python/37.organizing-lists.md","python/37.organizing-lists",{"_path":352,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":353,"description":354,"slug":355,"parentId":270,"order":356,"_type":15,"_id":357,"_source":17,"_file":358,"_stem":359,"_extension":20},"/python/combining-lists","Combining Lists","Learn various techniques to combine, merge, and join Python lists including concatenation, zipping, and advanced merging strategies","combining-lists",38,"content:python:38.combining-lists.md","python/38.combining-lists.md","python/38.combining-lists",{"_path":361,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":362,"description":363,"slug":364,"parentId":270,"order":365,"_type":15,"_id":366,"_source":17,"_file":367,"_stem":368,"_extension":20},"/python/essential-list-tools","Essential List Tools","Master powerful built-in functions and advanced techniques for efficient Python list manipulation and data processing","essential-list-tools",39,"content:python:39.essential-list-tools.md","python/39.essential-list-tools.md","python/39.essential-list-tools",{"_path":370,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":371,"description":372,"slug":373,"order":374,"isParent":13,"icon":14,"_type":15,"_id":375,"_source":17,"_file":376,"_stem":377,"_extension":20,"children":378,"expanded":13},"/python/python-tuples","Python Tuples","Master Python tuples - immutable sequences perfect for storing related data that shouldn't change. Learn creation, access, and manipulation techniques.","python-tuples",40,"content:python:40.python-tuples.md","python/40.python-tuples.md","python/40.python-tuples",[379,388,397,406,415,424,433],{"_path":380,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":381,"description":382,"slug":383,"parentId":370,"order":384,"_type":15,"_id":385,"_source":17,"_file":386,"_stem":387,"_extension":20},"/python/creating-tuples","Creating Tuples","Learn different ways to create Python tuples, from basic syntax to advanced techniques. Master tuple initialization and understand when to use tuples.","creating-tuples",41,"content:python:41.creating-tuples.md","python/41.creating-tuples.md","python/41.creating-tuples",{"_path":389,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":390,"description":391,"slug":392,"parentId":370,"order":393,"_type":15,"_id":394,"_source":17,"_file":395,"_stem":396,"_extension":20},"/python/reading-tuple-data","Reading Tuple Data","Master accessing tuple elements through indexing, slicing, and searching. Learn efficient patterns for reading and working with tuple data.","reading-tuple-data",42,"content:python:42.reading-tuple-data.md","python/42.reading-tuple-data.md","python/42.reading-tuple-data",{"_path":398,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":399,"description":400,"slug":401,"parentId":370,"order":402,"_type":15,"_id":403,"_source":17,"_file":404,"_stem":405,"_extension":20},"/python/changing-tuples","Changing Tuples","Understand tuple immutability and learn techniques for working with unchangeable data. Master creating modified tuple versions and handling immutable constraints.","changing-tuples",43,"content:python:43.changing-tuples.md","python/43.changing-tuples.md","python/43.changing-tuples",{"_path":407,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":408,"description":409,"slug":410,"parentId":370,"order":411,"_type":15,"_id":412,"_source":17,"_file":413,"_stem":414,"_extension":20},"/python/tuple-unpacking","Tuple Unpacking","Master tuple unpacking for elegant variable assignment, function returns, and data extraction. Learn Python's powerful unpacking syntax and patterns.","tuple-unpacking",44,"content:python:44.tuple-unpacking.md","python/44.tuple-unpacking.md","python/44.tuple-unpacking",{"_path":416,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":417,"description":418,"slug":419,"parentId":370,"order":420,"_type":15,"_id":421,"_source":17,"_file":422,"_stem":423,"_extension":20},"/python/iterating-tuples","Iterating Tuples","Master tuple iteration techniques for processing sequence data. Learn basic loops, enumerate, nested iteration, and advanced patterns for efficient data processing.","iterating-tuples",45,"content:python:45.iterating-tuples.md","python/45.iterating-tuples.md","python/45.iterating-tuples",{"_path":425,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":426,"description":427,"slug":428,"parentId":370,"order":429,"_type":15,"_id":430,"_source":17,"_file":431,"_stem":432,"_extension":20},"/python/merging-tuples","Merging Tuples","Learn techniques for combining and merging tuples to create larger data structures. Master concatenation, joining multiple tuples, and advanced merging patterns.","merging-tuples",46,"content:python:46.merging-tuples.md","python/46.merging-tuples.md","python/46.merging-tuples",{"_path":434,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":435,"description":436,"slug":437,"parentId":370,"order":438,"_type":15,"_id":439,"_source":17,"_file":440,"_stem":441,"_extension":20},"/python/tuple-operations","Tuple Operations","Master comprehensive tuple operations including built-in functions, mathematical operations, comparisons, and advanced techniques for efficient tuple manipulation.","tuple-operations",47,"content:python:47.tuple-operations.md","python/47.tuple-operations.md","python/47.tuple-operations",{"_path":443,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":444,"description":445,"slug":446,"order":447,"isParent":13,"icon":14,"_type":15,"_id":448,"_source":17,"_file":449,"_stem":450,"_extension":20,"children":451},"/python/python-sets","Python Sets","Discover Python sets - unique collections that automatically eliminate duplicates and provide powerful mathematical operations for data filtering and analysis.","python-sets",48,"content:python:48.python-sets.md","python/48.python-sets.md","python/48.python-sets",[452,461,470,479,488,497,506],{"_path":453,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":454,"description":455,"slug":456,"parentId":443,"order":457,"_type":15,"_id":458,"_source":17,"_file":459,"_stem":460,"_extension":20},"/python/creating-sets","Creating Sets","Learn multiple ways to create sets in Python including literal syntax, set() function, and set comprehensions. Master set creation from different data sources.","creating-sets",49,"content:python:49.creating-sets.md","python/49.creating-sets.md","python/49.creating-sets",{"_path":462,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":463,"description":464,"slug":465,"parentId":443,"order":466,"_type":15,"_id":467,"_source":17,"_file":468,"_stem":469,"_extension":20},"/python/reading-set-data","Reading Set Data","Learn how to access and examine set data in Python including membership testing, iteration, size checking, and converting sets to other data types.","reading-set-data",50,"content:python:50.reading-set-data.md","python/50.reading-set-data.md","python/50.reading-set-data",{"_path":471,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":472,"description":473,"slug":474,"parentId":443,"order":475,"_type":15,"_id":476,"_source":17,"_file":477,"_stem":478,"_extension":20},"/python/adding-to-sets","Adding to Sets","Learn how to add elements to sets in Python using add(), update(), and union operations. Master growing sets dynamically with single items and multiple elements.","adding-to-sets",51,"content:python:51.adding-to-sets.md","python/51.adding-to-sets.md","python/51.adding-to-sets",{"_path":480,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":481,"description":482,"slug":483,"parentId":443,"order":484,"_type":15,"_id":485,"_source":17,"_file":486,"_stem":487,"_extension":20},"/python/removing-from-sets","Removing from Sets","Learn how to remove elements from Python sets using different methods like remove(), discard(), pop(), and clear()","removing-from-sets",52,"content:python:52.removing-from-sets.md","python/52.removing-from-sets.md","python/52.removing-from-sets",{"_path":489,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":490,"description":491,"slug":492,"parentId":443,"order":493,"_type":15,"_id":494,"_source":17,"_file":495,"_stem":496,"_extension":20},"/python/iterating-sets","Iterating Sets","Learn different ways to iterate through Python sets using for loops, comprehensions, and built-in functions","iterating-sets",53,"content:python:53.iterating-sets.md","python/53.iterating-sets.md","python/53.iterating-sets",{"_path":498,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":499,"description":500,"slug":501,"parentId":443,"order":502,"_type":15,"_id":503,"_source":17,"_file":504,"_stem":505,"_extension":20},"/python/combining-sets","Combining Sets","Learn how to combine Python sets using union, intersection, difference, and other set operations","combining-sets",54,"content:python:54.combining-sets.md","python/54.combining-sets.md","python/54.combining-sets",{"_path":507,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":508,"description":509,"slug":510,"parentId":443,"order":511,"_type":15,"_id":512,"_source":17,"_file":513,"_stem":514,"_extension":20},"/python/set-operations","Set Operations","Learn advanced Python set operations including comparisons, subsets, supersets, and mathematical set relationships","set-operations",55,"content:python:55.set-operations.md","python/55.set-operations.md","python/55.set-operations",{"_path":516,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":517,"description":518,"slug":519,"order":520,"isParent":13,"icon":14,"_type":15,"_id":521,"_source":17,"_file":522,"_stem":523,"_extension":20,"children":524},"/python/python-dictionaries","Python Dictionaries","Learn about Python dictionaries - key-value data structures for storing and organizing related information","python-dictionaries",56,"content:python:56.python-dictionaries.md","python/56.python-dictionaries.md","python/56.python-dictionaries",[525,534,543,552,561,570,579,588,597],{"_path":526,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":527,"description":528,"slug":529,"parentId":516,"order":530,"_type":15,"_id":531,"_source":17,"_file":532,"_stem":533,"_extension":20},"/python/creating-dictionaries","Creating Dictionaries","Learn different methods to create Python dictionaries using literals, constructors, and comprehensions","creating-dictionaries",57,"content:python:57.creating-dictionaries.md","python/57.creating-dictionaries.md","python/57.creating-dictionaries",{"_path":535,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":536,"description":537,"slug":538,"parentId":516,"order":539,"_type":15,"_id":540,"_source":17,"_file":541,"_stem":542,"_extension":20},"/python/getting-dictionary-values","Getting Dictionary Values","Learn safe and efficient methods to retrieve data from Python dictionaries using various access techniques","getting-dictionary-values",58,"content:python:58.getting-dictionary-values.md","python/58.getting-dictionary-values.md","python/58.getting-dictionary-values",{"_path":544,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":545,"description":546,"slug":547,"parentId":516,"order":548,"_type":15,"_id":549,"_source":17,"_file":550,"_stem":551,"_extension":20},"/python/updating-dictionaries","Updating Dictionaries","Learn how to modify and maintain Python dictionary data using various update methods and techniques","updating-dictionaries",59,"content:python:59.updating-dictionaries.md","python/59.updating-dictionaries.md","python/59.updating-dictionaries",{"_path":553,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":554,"description":555,"slug":556,"parentId":516,"order":557,"_type":15,"_id":558,"_source":17,"_file":559,"_stem":560,"_extension":20},"/python/adding-dictionary-items","Adding Dictionary Items","Learn effective techniques for adding new items to Python dictionaries with various methods and best practices","adding-dictionary-items",60,"content:python:60.adding-dictionary-items.md","python/60.adding-dictionary-items.md","python/60.adding-dictionary-items",{"_path":562,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":563,"description":564,"slug":565,"parentId":516,"order":566,"_type":15,"_id":567,"_source":17,"_file":568,"_stem":569,"_extension":20},"/python/deleting-dictionary-items","Deleting Dictionary Items","Master safe and efficient techniques for removing items from Python dictionaries with various methods and error handling","deleting-dictionary-items",61,"content:python:61.deleting-dictionary-items.md","python/61.deleting-dictionary-items.md","python/61.deleting-dictionary-items",{"_path":571,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":572,"description":573,"slug":574,"parentId":516,"order":575,"_type":15,"_id":576,"_source":17,"_file":577,"_stem":578,"_extension":20},"/python/looping-dictionaries","Looping Dictionaries","Learn efficient techniques for iterating through Python dictionaries using keys, values, and items","looping-dictionaries",62,"content:python:62.looping-dictionaries.md","python/62.looping-dictionaries.md","python/62.looping-dictionaries",{"_path":580,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":581,"description":582,"slug":583,"parentId":516,"order":584,"_type":15,"_id":585,"_source":17,"_file":586,"_stem":587,"_extension":20},"/python/dictionary-copies","Dictionary Copies","Learn safe techniques for duplicating Python dictionaries using shallow and deep copy methods","dictionary-copies",63,"content:python:63.dictionary-copies.md","python/63.dictionary-copies.md","python/63.dictionary-copies",{"_path":589,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":590,"description":591,"slug":592,"parentId":516,"order":593,"_type":15,"_id":594,"_source":17,"_file":595,"_stem":596,"_extension":20},"/python/multi-level-dictionaries","Multi-level Dictionaries","Master working with nested Python dictionaries for complex data structures and hierarchical information","multi-level-dictionaries",64,"content:python:64.multi-level-dictionaries.md","python/64.multi-level-dictionaries.md","python/64.multi-level-dictionaries",{"_path":598,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":599,"description":600,"slug":601,"parentId":516,"order":602,"_type":15,"_id":603,"_source":17,"_file":604,"_stem":605,"_extension":20},"/python/dictionary-tools","Dictionary Tools","Explore powerful built-in functions and advanced techniques for efficient Python dictionary manipulation and analysis","dictionary-tools",65,"content:python:65.dictionary-tools.md","python/65.dictionary-tools.md","python/65.dictionary-tools",{"_path":607,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":608,"description":609,"slug":610,"order":611,"isParent":13,"icon":14,"_type":15,"_id":612,"_source":17,"_file":613,"_stem":614,"_extension":20,"children":615},"/python/python-functions","Python Functions","Learn how to create and use Python functions to organize code into reusable, modular components that make programs more efficient and maintainable","python-functions",66,"content:python:66.python-functions.md","python/66.python-functions.md","python/66.python-functions",[616,625,634,643,652,661],{"_path":617,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":618,"description":619,"slug":620,"parentId":607,"order":621,"_type":15,"_id":622,"_source":17,"_file":623,"_stem":624,"_extension":20},"/python/function-basics","Function Basics","Learn the fundamentals of creating and using Python functions to organize code into reusable, modular components","function-basics",67,"content:python:67.function-basics.md","python/67.function-basics.md","python/67.function-basics",{"_path":626,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":627,"description":628,"slug":629,"parentId":607,"order":630,"_type":15,"_id":631,"_source":17,"_file":632,"_stem":633,"_extension":20},"/python/function-parameters","Function Parameters","Master different types of Python function parameters including positional, keyword, default, and variable-length arguments","function-parameters",68,"content:python:68.function-parameters.md","python/68.function-parameters.md","python/68.function-parameters",{"_path":635,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":636,"description":637,"slug":638,"parentId":607,"order":639,"_type":15,"_id":640,"_source":17,"_file":641,"_stem":642,"_extension":20},"/python/returning-values","Returning Values","Learn different ways Python functions return data including single values, multiple values, and conditional returns","returning-values",69,"content:python:69.returning-values.md","python/69.returning-values.md","python/69.returning-values",{"_path":644,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":645,"description":646,"slug":647,"parentId":607,"order":648,"_type":15,"_id":649,"_source":17,"_file":650,"_stem":651,"_extension":20},"/python/variable-scope","Variable Scope","Understand Python variable scope including local, global, and nonlocal variables and how they affect function behavior","variable-scope",70,"content:python:70.variable-scope.md","python/70.variable-scope.md","python/70.variable-scope",{"_path":653,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":654,"description":655,"slug":656,"parentId":607,"order":657,"_type":15,"_id":658,"_source":17,"_file":659,"_stem":660,"_extension":20},"/python/anonymous-functions","Anonymous Functions","Learn to create and use Python lambda functions for concise, inline function definitions and functional programming patterns","anonymous-functions",71,"content:python:71.anonymous-functions.md","python/71.anonymous-functions.md","python/71.anonymous-functions",{"_path":662,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":663,"description":664,"slug":665,"parentId":607,"order":666,"_type":15,"_id":667,"_source":17,"_file":668,"_stem":669,"_extension":20},"/python/function-recursion","Function Recursion","Master recursive functions in Python by learning how functions can call themselves to solve complex problems with elegant, mathematical solutions","function-recursion",72,"content:python:72.function-recursion.md","python/72.function-recursion.md","python/72.function-recursion",{"_path":671,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":672,"description":673,"slug":674,"order":675,"isParent":13,"icon":14,"_type":15,"_id":676,"_source":17,"_file":677,"_stem":678,"_extension":20,"children":679},"/python/object-programming","Object Programming","Learn object-oriented programming (OOP) in Python - create classes, objects, and methods to build organized, reusable code","object-programming",73,"content:python:73.object-programming.md","python/73.object-programming.md","python/73.object-programming",[680,689,698,707,716,725],{"_path":681,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":682,"description":683,"slug":684,"parentId":671,"order":685,"_type":15,"_id":686,"_source":17,"_file":687,"_stem":688,"_extension":20},"/python/classes-and-objects","Classes and Objects","Learn to create Python classes and objects - the foundation of object-oriented programming for building reusable, organized code","classes-and-objects",74,"content:python:74.classes-and-objects.md","python/74.classes-and-objects.md","python/74.classes-and-objects",{"_path":690,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":691,"description":692,"slug":693,"parentId":671,"order":694,"_type":15,"_id":695,"_source":17,"_file":696,"_stem":697,"_extension":20},"/python/object-methods","Object Methods","Master object methods in Python - learn to define behaviors, work with parameters, and create interactive objects that respond to actions","object-methods",75,"content:python:75.object-methods.md","python/75.object-methods.md","python/75.object-methods",{"_path":699,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":700,"description":701,"slug":702,"parentId":671,"order":703,"_type":15,"_id":704,"_source":17,"_file":705,"_stem":706,"_extension":20},"/python/class-inheritance","Class Inheritance","Learn Python class inheritance - create specialized classes that build upon existing functionality while adding new features and behaviors","class-inheritance",76,"content:python:76.class-inheritance.md","python/76.class-inheritance.md","python/76.class-inheritance",{"_path":708,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":709,"description":710,"slug":711,"parentId":671,"order":712,"_type":15,"_id":713,"_source":17,"_file":714,"_stem":715,"_extension":20},"/python/method-overriding","Method Overriding","Master method overriding in Python - learn to customize inherited methods, use super(), and create specialized behaviors while maintaining inheritance benefits","method-overriding",77,"content:python:77.method-overriding.md","python/77.method-overriding.md","python/77.method-overriding",{"_path":717,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":718,"description":719,"slug":720,"parentId":671,"order":721,"_type":15,"_id":722,"_source":17,"_file":723,"_stem":724,"_extension":20},"/python/variable-visibility","Variable Visibility","Master Python variable visibility - learn public, protected, and private attributes to control access and create well-encapsulated classes","variable-visibility",78,"content:python:78.variable-visibility.md","python/78.variable-visibility.md","python/78.variable-visibility",{"_path":726,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":727,"description":728,"slug":729,"parentId":671,"order":730,"_type":15,"_id":731,"_source":17,"_file":732,"_stem":733,"_extension":20},"/python/special-methods","Special Methods","Master Python special methods (magic methods) - learn to implement __str__, __len__, __eq__ and more to make your classes work seamlessly with Python's built-in functions","special-methods",79,"content:python:79.special-methods.md","python/79.special-methods.md","python/79.special-methods",{"_path":735,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":736,"description":737,"slug":738,"order":739,"isParent":13,"icon":14,"_type":15,"_id":740,"_source":17,"_file":741,"_stem":742,"_extension":20,"children":743},"/python/advanced-concepts","Advanced Concepts","Master advanced Python programming concepts - work with dates, mathematics, JSON data, pattern matching, and more sophisticated programming techniques","advanced-concepts",80,"content:python:80.advanced-concepts.md","python/80.advanced-concepts.md","python/80.advanced-concepts",[744,753,762,771,780,789,798],{"_path":745,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":746,"description":747,"slug":748,"parentId":735,"order":749,"_type":15,"_id":750,"_source":17,"_file":751,"_stem":752,"_extension":20},"/python/working-with-dates","Working with Dates","Master Python date and time handling - work with datetime objects, format dates, calculate durations, and build time-aware applications","working-with-dates",81,"content:python:81.working-with-dates.md","python/81.working-with-dates.md","python/81.working-with-dates",{"_path":754,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":755,"description":756,"slug":757,"parentId":735,"order":758,"_type":15,"_id":759,"_source":17,"_file":760,"_stem":761,"_extension":20},"/python/mathematical-operations","Mathematical Operations","Master Python mathematical computing - use math functions, perform statistical calculations, and implement scientific computing for data analysis and problem-solving","mathematical-operations",82,"content:python:82.mathematical-operations.md","python/82.mathematical-operations.md","python/82.mathematical-operations",{"_path":763,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":764,"description":765,"slug":766,"parentId":735,"order":767,"_type":15,"_id":768,"_source":17,"_file":769,"_stem":770,"_extension":20},"/python/json-data","JSON Data","Master JSON data handling in Python - serialize and deserialize data, work with APIs, manage configuration files, and exchange data between applications","json-data",83,"content:python:83.json-data.md","python/83.json-data.md","python/83.json-data",{"_path":772,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":773,"description":774,"slug":775,"parentId":735,"order":776,"_type":15,"_id":777,"_source":17,"_file":778,"_stem":779,"_extension":20},"/python/package-management","Package Management","Master Python package management with pip and virtual environments - install libraries, manage dependencies, create isolated environments, and distribute packages professionally","package-management",85,"content:python:85.package-management.md","python/85.package-management.md","python/85.package-management",{"_path":781,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":782,"description":783,"slug":784,"parentId":735,"order":785,"_type":15,"_id":786,"_source":17,"_file":787,"_stem":788,"_extension":20},"/python/error-handling","Error Handling","Master Python error handling with try/except blocks, exception types, custom exceptions, debugging techniques, and best practices for robust application development","error-handling",86,"content:python:86.error-handling.md","python/86.error-handling.md","python/86.error-handling",{"_path":790,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":791,"description":792,"slug":793,"parentId":735,"order":794,"_type":15,"_id":795,"_source":17,"_file":796,"_stem":797,"_extension":20},"/python/getting-user-input","Getting User Input","Master user input handling in Python with input validation, data type conversion, interactive programs, and command-line interfaces for engaging user experiences","getting-user-input",87,"content:python:87.getting-user-input.md","python/87.getting-user-input.md","python/87.getting-user-input",{"_path":799,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":800,"description":801,"slug":802,"parentId":735,"order":803,"_type":15,"_id":804,"_source":17,"_file":805,"_stem":806,"_extension":20},"/python/text-formatting","Text Formatting","Master Python text formatting with f-strings, format methods, alignment, number formatting, and advanced techniques for professional, readable output","text-formatting",88,"content:python:88.text-formatting.md","python/88.text-formatting.md","python/88.text-formatting",{"_path":808,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":809,"description":810,"slug":811,"order":812,"isParent":13,"icon":14,"_type":15,"_id":813,"_source":17,"_file":814,"_stem":815,"_extension":20,"children":816},"/python/file-operations","File Operations","Master Python file handling with reading, writing, and managing files for data persistence and real-world applications","file-operations",89,"content:python:89.file-operations.md","python/89.file-operations.md","python/89.file-operations",[817,826,835,844],{"_path":818,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":819,"description":820,"slug":821,"parentId":808,"order":822,"_type":15,"_id":823,"_source":17,"_file":824,"_stem":825,"_extension":20},"/python/file-basics","File Basics","Learn fundamental Python file operations including opening files, understanding file modes, using context managers, and basic file handling concepts","file-basics",90,"content:python:90.file-basics.md","python/90.file-basics.md","python/90.file-basics",{"_path":827,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":828,"description":829,"slug":830,"parentId":808,"order":831,"_type":15,"_id":832,"_source":17,"_file":833,"_stem":834,"_extension":20},"/python/reading-files","Reading Files","Master Python file reading techniques including reading entire files, line-by-line processing, and handling different file formats for efficient data processing","reading-files",91,"content:python:91.reading-files.md","python/91.reading-files.md","python/91.reading-files",{"_path":836,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":837,"description":838,"slug":839,"parentId":808,"order":840,"_type":15,"_id":841,"_source":17,"_file":842,"_stem":843,"_extension":20},"/python/writing-files","Writing Files","Learn Python file writing techniques including creating new files, appending content, updating existing files, and saving different data formats safely","writing-files",92,"content:python:92.writing-files.md","python/92.writing-files.md","python/92.writing-files",{"_path":845,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":846,"description":847,"slug":848,"parentId":808,"order":849,"_type":15,"_id":850,"_source":17,"_file":851,"_stem":852,"_extension":20},"/python/file-management","File Management","Learn Python file management techniques including checking file properties, organizing files, directory operations, and implementing file system maintenance tasks","file-management",93,"content:python:93.file-management.md","python/93.file-management.md","python/93.file-management",{"_path":854,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":855,"description":856,"slug":857,"order":858,"isParent":13,"icon":14,"_type":15,"_id":859,"_source":17,"_file":860,"_stem":861,"_extension":20,"children":862},"/python/code-organization","Code Organization","Master Python code organization with modules, built-in libraries, and path management for creating maintainable and reusable applications","code-organization",94,"content:python:94.code-organization.md","python/94.code-organization.md","python/94.code-organization",[863,872,881],{"_path":864,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":865,"description":866,"slug":867,"parentId":854,"order":868,"_type":15,"_id":869,"_source":17,"_file":870,"_stem":871,"_extension":20},"/python/creating-modules","Creating Modules","Learn how to create custom Python modules, organize functions and classes, write reusable code components, and design effective module structures","creating-modules",95,"content:python:95.creating-modules.md","python/95.creating-modules.md","python/95.creating-modules",{"_path":873,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":874,"description":875,"slug":876,"parentId":854,"order":877,"_type":15,"_id":878,"_source":17,"_file":879,"_stem":880,"_extension":20},"/python/using-built-in-modules","Using Built-in Modules","Discover Python's extensive standard library and learn to effectively use built-in modules for common programming tasks, data processing, and system operations","using-built-in-modules",96,"content:python:96.using-built-in-modules.md","python/96.using-built-in-modules.md","python/96.using-built-in-modules",{"_path":882,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":883,"description":884,"slug":885,"parentId":854,"order":886,"_type":15,"_id":887,"_source":17,"_file":888,"_stem":889,"_extension":20},"/python/module-paths","Module Paths","Understand Python's module search system, manage import paths, work with packages, and organize larger projects with proper module path management","module-paths",97,"content:python:97.module-paths.md","python/97.module-paths.md","python/97.module-paths",{"_path":891,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":892,"description":893,"slug":894,"order":895,"isParent":13,"icon":14,"_type":15,"_id":896,"_source":17,"_file":897,"_stem":898,"_extension":20,"children":899,"expanded":13},"/python/reference-materials","Reference Materials","Comprehensive Python reference materials including reserved words, built-in functions, and operation guides for quick lookup and development support","reference-materials",98,"content:python:98.reference-materials.md","python/98.reference-materials.md","python/98.reference-materials",[900,909,918,927,936,945,953,961,970],{"_path":901,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":902,"description":903,"slug":904,"parentId":891,"order":905,"_type":15,"_id":906,"_source":17,"_file":907,"_stem":908,"_extension":20},"/python/reserved-words","Reserved Words","Complete reference of Python keywords and reserved words with descriptions, usage examples, and syntax guidelines","reserved-words",99,"content:python:99.reserved-words.md","python/99.reserved-words.md","python/99.reserved-words",{"_path":910,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":911,"description":912,"slug":913,"parentId":891,"order":914,"_type":15,"_id":915,"_source":17,"_file":916,"_stem":917,"_extension":20},"/python/built-in-functions","Built-in Functions","Comprehensive reference of Python's built-in functions with parameters, return values, and practical usage examples","built-in-functions",100,"content:python:100.built-in-functions.md","python/100.built-in-functions.md","python/100.built-in-functions",{"_path":919,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":920,"description":921,"slug":922,"parentId":891,"order":923,"_type":15,"_id":924,"_source":17,"_file":925,"_stem":926,"_extension":20},"/python/string-operations","String Operations","Complete reference of Python string methods, operations, and formatting techniques with examples and use cases","string-operations",101,"content:python:101.string-operations.md","python/101.string-operations.md","python/101.string-operations",{"_path":928,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":929,"description":930,"slug":931,"parentId":891,"order":932,"_type":15,"_id":933,"_source":17,"_file":934,"_stem":935,"_extension":20},"/python/list-operations","List Operations","Complete reference of Python list methods, operations, and manipulation techniques with examples and performance notes","list-operations",102,"content:python:102.list-operations.md","python/102.list-operations.md","python/102.list-operations",{"_path":937,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":938,"description":939,"slug":940,"parentId":891,"order":941,"_type":15,"_id":942,"_source":17,"_file":943,"_stem":944,"_extension":20},"/python/dictionary-operations","Dictionary Operations","Complete reference of Python dictionary methods, operations, and manipulation techniques with examples and use cases","dictionary-operations",103,"content:python:103.dictionary-operations.md","python/103.dictionary-operations.md","python/103.dictionary-operations",{"_path":946,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":435,"description":947,"slug":948,"parentId":891,"order":949,"_type":15,"_id":950,"_source":17,"_file":951,"_stem":952,"_extension":20},"/python/tuple-methods","Complete reference of Python tuple operations, methods, and techniques with examples and use cases","tuple-methods",104,"content:python:104.tuple-methods.md","python/104.tuple-methods.md","python/104.tuple-methods",{"_path":954,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":508,"description":955,"slug":956,"parentId":891,"order":957,"_type":15,"_id":958,"_source":17,"_file":959,"_stem":960,"_extension":20},"/python/set-methods","Complete reference of Python set operations, methods, and mathematical set operations with examples and use cases","set-methods",105,"content:python:105.set-methods.md","python/105.set-methods.md","python/105.set-methods",{"_path":962,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":963,"description":964,"slug":965,"parentId":891,"order":966,"_type":15,"_id":967,"_source":17,"_file":968,"_stem":969,"_extension":20},"/python/file-operations-reference","File Operations Reference","Complete reference of Python file operations, modes, methods, and file handling techniques with examples","file-operations-reference",106,"content:python:106.file-operations-reference.md","python/106.file-operations-reference.md","python/106.file-operations-reference",{"_path":971,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":972,"description":973,"slug":974,"parentId":891,"order":975,"_type":15,"_id":976,"_source":17,"_file":977,"_stem":978,"_extension":20},"/python/error-types","Error Types","Complete reference of Python exception types, error handling patterns, and debugging techniques with examples","error-types",107,"content:python:107.error-types.md","python/107.error-types.md","python/107.error-types",{"_path":980,"_dir":8,"_draft":7,"_partial":7,"_locale":8,"title":981,"description":10,"slug":982,"order":983,"icon":14,"_type":15,"_id":984,"_source":17,"_file":985,"_stem":986,"_extension":20},"/python","Introduction","python-tutorial",0,"content:python:index.md","python/index.md","python/index",[424],{"_path":425,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":426,"description":427,"slug":428,"parentId":370,"order":429,"body":989,"_type":15,"_id":430,"_source":17,"_file":431,"_stem":432,"_extension":20},{"type":990,"children":991,"toc":12793},"root",[992,1000,1006,1011,1506,1513,1525,1630,1637,1642,2172,2178,2183,2824,2830,2835,3428,3434,3439,3533,3539,3544,4095,4100,4105,4804,4810,4815,5646,5651,5657,5662,5755,5761,5766,6443,6449,6454,7223,7229,7234,8529,8535,8540,8634,8640,8645,9466,9472,9477,10248,10254,10259,10352,10358,10363,11096,11102,11107,11840,11846,11851,12093,12098,12111,12407,12413,12747,12753,12758,12765,12771,12776,12787],{"type":993,"tag":994,"props":995,"children":996},"element","h1",{"id":428},[997],{"type":998,"value":999},"text","🔗 Merging Tuples",{"type":993,"tag":1001,"props":1002,"children":1003},"p",{},[1004],{"type":998,"value":1005},"Merging tuples is essential for combining data from multiple sources, aggregating results, and building larger data structures from smaller components. Python provides several elegant ways to merge tuples, from simple concatenation to complex joining operations that preserve data integrity while creating new immutable sequences.",{"type":993,"tag":1001,"props":1007,"children":1008},{},[1009],{"type":998,"value":1010},"Understanding tuple merging enables you to combine coordinates, aggregate database records, join configuration settings, and create composite data structures efficiently.",{"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 tuple merging\nfirst_half = (1, 2, 3)\nsecond_half = (4, 5, 6)\ncombined = first_half + second_half\n\ncoordinates_2d = (10, 20)\nz_coordinate = (30,)\ncoordinates_3d = coordinates_2d + z_coordinate\n\ncolors_primary = (\"red\", \"green\", \"blue\")\ncolors_secondary = (\"orange\", \"purple\", \"yellow\")\nall_colors = colors_primary + colors_secondary\n\nprint(f\"Combined numbers: {combined}\")\nprint(f\"3D coordinates: {coordinates_3d}\")\nprint(f\"All colors: {all_colors}\")\n",[1021],{"type":993,"tag":1022,"props":1023,"children":1024},"code",{"__ignoreMap":8},[1025,1036,1086,1129,1156,1164,1198,1224,1250,1257,1301,1344,1370,1377,1424,1465],{"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 tuple merging\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},"first_half ",{"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},"second_half ",{"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,1146,1151],{"type":993,"tag":1026,"props":1133,"children":1134},{"style":1041},[1135],{"type":998,"value":1136},"combined ",{"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":1145}," first_half ",{"type":993,"tag":1026,"props":1147,"children":1148},{"style":1047},[1149],{"type":998,"value":1150},"+",{"type":993,"tag":1026,"props":1152,"children":1153},{"style":1041},[1154],{"type":998,"value":1155}," second_half\n",{"type":993,"tag":1026,"props":1157,"children":1158},{"class":1028,"line":54},[1159],{"type":993,"tag":1026,"props":1160,"children":1161},{"emptyLinePlaceholder":13},[1162],{"type":998,"value":1163},"\n",{"type":993,"tag":1026,"props":1165,"children":1166},{"class":1028,"line":63},[1167,1172,1176,1180,1185,1189,1194],{"type":993,"tag":1026,"props":1168,"children":1169},{"style":1041},[1170],{"type":998,"value":1171},"coordinates_2d ",{"type":993,"tag":1026,"props":1173,"children":1174},{"style":1047},[1175],{"type":998,"value":1050},{"type":993,"tag":1026,"props":1177,"children":1178},{"style":1041},[1179],{"type":998,"value":1055},{"type":993,"tag":1026,"props":1181,"children":1182},{"style":1058},[1183],{"type":998,"value":1184},"10",{"type":993,"tag":1026,"props":1186,"children":1187},{"style":1041},[1188],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1190,"children":1191},{"style":1058},[1192],{"type":998,"value":1193},"20",{"type":993,"tag":1026,"props":1195,"children":1196},{"style":1041},[1197],{"type":998,"value":1085},{"type":993,"tag":1026,"props":1199,"children":1200},{"class":1028,"line":72},[1201,1206,1210,1214,1219],{"type":993,"tag":1026,"props":1202,"children":1203},{"style":1041},[1204],{"type":998,"value":1205},"z_coordinate ",{"type":993,"tag":1026,"props":1207,"children":1208},{"style":1047},[1209],{"type":998,"value":1050},{"type":993,"tag":1026,"props":1211,"children":1212},{"style":1041},[1213],{"type":998,"value":1055},{"type":993,"tag":1026,"props":1215,"children":1216},{"style":1058},[1217],{"type":998,"value":1218},"30",{"type":993,"tag":1026,"props":1220,"children":1221},{"style":1041},[1222],{"type":998,"value":1223},",)\n",{"type":993,"tag":1026,"props":1225,"children":1226},{"class":1028,"line":81},[1227,1232,1236,1241,1245],{"type":993,"tag":1026,"props":1228,"children":1229},{"style":1041},[1230],{"type":998,"value":1231},"coordinates_3d ",{"type":993,"tag":1026,"props":1233,"children":1234},{"style":1047},[1235],{"type":998,"value":1050},{"type":993,"tag":1026,"props":1237,"children":1238},{"style":1041},[1239],{"type":998,"value":1240}," coordinates_2d ",{"type":993,"tag":1026,"props":1242,"children":1243},{"style":1047},[1244],{"type":998,"value":1150},{"type":993,"tag":1026,"props":1246,"children":1247},{"style":1041},[1248],{"type":998,"value":1249}," z_coordinate\n",{"type":993,"tag":1026,"props":1251,"children":1252},{"class":1028,"line":91},[1253],{"type":993,"tag":1026,"props":1254,"children":1255},{"emptyLinePlaceholder":13},[1256],{"type":998,"value":1163},{"type":993,"tag":1026,"props":1258,"children":1259},{"class":1028,"line":100},[1260,1265,1269,1273,1279,1283,1288,1292,1297],{"type":993,"tag":1026,"props":1261,"children":1262},{"style":1041},[1263],{"type":998,"value":1264},"colors_primary ",{"type":993,"tag":1026,"props":1266,"children":1267},{"style":1047},[1268],{"type":998,"value":1050},{"type":993,"tag":1026,"props":1270,"children":1271},{"style":1041},[1272],{"type":998,"value":1055},{"type":993,"tag":1026,"props":1274,"children":1276},{"style":1275},"--shiki-default:#032F62;--shiki-app-dark-mode:#9ECBFF",[1277],{"type":998,"value":1278},"\"red\"",{"type":993,"tag":1026,"props":1280,"children":1281},{"style":1041},[1282],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1284,"children":1285},{"style":1275},[1286],{"type":998,"value":1287},"\"green\"",{"type":993,"tag":1026,"props":1289,"children":1290},{"style":1041},[1291],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1293,"children":1294},{"style":1275},[1295],{"type":998,"value":1296},"\"blue\"",{"type":993,"tag":1026,"props":1298,"children":1299},{"style":1041},[1300],{"type":998,"value":1085},{"type":993,"tag":1026,"props":1302,"children":1303},{"class":1028,"line":109},[1304,1309,1313,1317,1322,1326,1331,1335,1340],{"type":993,"tag":1026,"props":1305,"children":1306},{"style":1041},[1307],{"type":998,"value":1308},"colors_secondary ",{"type":993,"tag":1026,"props":1310,"children":1311},{"style":1047},[1312],{"type":998,"value":1050},{"type":993,"tag":1026,"props":1314,"children":1315},{"style":1041},[1316],{"type":998,"value":1055},{"type":993,"tag":1026,"props":1318,"children":1319},{"style":1275},[1320],{"type":998,"value":1321},"\"orange\"",{"type":993,"tag":1026,"props":1323,"children":1324},{"style":1041},[1325],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1327,"children":1328},{"style":1275},[1329],{"type":998,"value":1330},"\"purple\"",{"type":993,"tag":1026,"props":1332,"children":1333},{"style":1041},[1334],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1336,"children":1337},{"style":1275},[1338],{"type":998,"value":1339},"\"yellow\"",{"type":993,"tag":1026,"props":1341,"children":1342},{"style":1041},[1343],{"type":998,"value":1085},{"type":993,"tag":1026,"props":1345,"children":1346},{"class":1028,"line":118},[1347,1352,1356,1361,1365],{"type":993,"tag":1026,"props":1348,"children":1349},{"style":1041},[1350],{"type":998,"value":1351},"all_colors ",{"type":993,"tag":1026,"props":1353,"children":1354},{"style":1047},[1355],{"type":998,"value":1050},{"type":993,"tag":1026,"props":1357,"children":1358},{"style":1041},[1359],{"type":998,"value":1360}," colors_primary ",{"type":993,"tag":1026,"props":1362,"children":1363},{"style":1047},[1364],{"type":998,"value":1150},{"type":993,"tag":1026,"props":1366,"children":1367},{"style":1041},[1368],{"type":998,"value":1369}," colors_secondary\n",{"type":993,"tag":1026,"props":1371,"children":1372},{"class":1028,"line":127},[1373],{"type":993,"tag":1026,"props":1374,"children":1375},{"emptyLinePlaceholder":13},[1376],{"type":998,"value":1163},{"type":993,"tag":1026,"props":1378,"children":1379},{"class":1028,"line":136},[1380,1385,1390,1395,1400,1405,1410,1415,1420],{"type":993,"tag":1026,"props":1381,"children":1382},{"style":1058},[1383],{"type":998,"value":1384},"print",{"type":993,"tag":1026,"props":1386,"children":1387},{"style":1041},[1388],{"type":998,"value":1389},"(",{"type":993,"tag":1026,"props":1391,"children":1392},{"style":1047},[1393],{"type":998,"value":1394},"f",{"type":993,"tag":1026,"props":1396,"children":1397},{"style":1275},[1398],{"type":998,"value":1399},"\"Combined numbers: ",{"type":993,"tag":1026,"props":1401,"children":1402},{"style":1058},[1403],{"type":998,"value":1404},"{",{"type":993,"tag":1026,"props":1406,"children":1407},{"style":1041},[1408],{"type":998,"value":1409},"combined",{"type":993,"tag":1026,"props":1411,"children":1412},{"style":1058},[1413],{"type":998,"value":1414},"}",{"type":993,"tag":1026,"props":1416,"children":1417},{"style":1275},[1418],{"type":998,"value":1419},"\"",{"type":993,"tag":1026,"props":1421,"children":1422},{"style":1041},[1423],{"type":998,"value":1085},{"type":993,"tag":1026,"props":1425,"children":1426},{"class":1028,"line":146},[1427,1431,1435,1439,1444,1448,1453,1457,1461],{"type":993,"tag":1026,"props":1428,"children":1429},{"style":1058},[1430],{"type":998,"value":1384},{"type":993,"tag":1026,"props":1432,"children":1433},{"style":1041},[1434],{"type":998,"value":1389},{"type":993,"tag":1026,"props":1436,"children":1437},{"style":1047},[1438],{"type":998,"value":1394},{"type":993,"tag":1026,"props":1440,"children":1441},{"style":1275},[1442],{"type":998,"value":1443},"\"3D coordinates: ",{"type":993,"tag":1026,"props":1445,"children":1446},{"style":1058},[1447],{"type":998,"value":1404},{"type":993,"tag":1026,"props":1449,"children":1450},{"style":1041},[1451],{"type":998,"value":1452},"coordinates_3d",{"type":993,"tag":1026,"props":1454,"children":1455},{"style":1058},[1456],{"type":998,"value":1414},{"type":993,"tag":1026,"props":1458,"children":1459},{"style":1275},[1460],{"type":998,"value":1419},{"type":993,"tag":1026,"props":1462,"children":1463},{"style":1041},[1464],{"type":998,"value":1085},{"type":993,"tag":1026,"props":1466,"children":1467},{"class":1028,"line":155},[1468,1472,1476,1480,1485,1489,1494,1498,1502],{"type":993,"tag":1026,"props":1469,"children":1470},{"style":1058},[1471],{"type":998,"value":1384},{"type":993,"tag":1026,"props":1473,"children":1474},{"style":1041},[1475],{"type":998,"value":1389},{"type":993,"tag":1026,"props":1477,"children":1478},{"style":1047},[1479],{"type":998,"value":1394},{"type":993,"tag":1026,"props":1481,"children":1482},{"style":1275},[1483],{"type":998,"value":1484},"\"All colors: ",{"type":993,"tag":1026,"props":1486,"children":1487},{"style":1058},[1488],{"type":998,"value":1404},{"type":993,"tag":1026,"props":1490,"children":1491},{"style":1041},[1492],{"type":998,"value":1493},"all_colors",{"type":993,"tag":1026,"props":1495,"children":1496},{"style":1058},[1497],{"type":998,"value":1414},{"type":993,"tag":1026,"props":1499,"children":1500},{"style":1275},[1501],{"type":998,"value":1419},{"type":993,"tag":1026,"props":1503,"children":1504},{"style":1041},[1505],{"type":998,"value":1085},{"type":993,"tag":1507,"props":1508,"children":1510},"h2",{"id":1509},"basic-tuple-concatenation",[1511],{"type":998,"value":1512},"🎯 Basic Tuple Concatenation",{"type":993,"tag":1001,"props":1514,"children":1515},{},[1516,1518,1523],{"type":998,"value":1517},"The simplest way to merge tuples is using the concatenation operator (",{"type":993,"tag":1022,"props":1519,"children":1521},{"className":1520},[],[1522],{"type":998,"value":1150},{"type":998,"value":1524},"), which creates a new tuple containing all elements from both tuples in order.",{"type":993,"tag":1526,"props":1527,"children":1531},"info-box",{"emoji":1528,"title":1529,"type":1530},"🔗","Concatenation Fundamentals","info",[1532,1541,1573,1581,1604,1612],{"type":993,"tag":1001,"props":1533,"children":1534},{},[1535],{"type":993,"tag":1536,"props":1537,"children":1538},"strong",{},[1539],{"type":998,"value":1540},"Basic Operation:",{"type":993,"tag":1542,"props":1543,"children":1544},"ul",{},[1545,1558,1563,1568],{"type":993,"tag":1546,"props":1547,"children":1548},"li",{},[1549,1551,1556],{"type":998,"value":1550},"Use ",{"type":993,"tag":1022,"props":1552,"children":1554},{"className":1553},[],[1555],{"type":998,"value":1150},{"type":998,"value":1557}," operator to join tuples",{"type":993,"tag":1546,"props":1559,"children":1560},{},[1561],{"type":998,"value":1562},"Creates new tuple (original tuples unchanged)",{"type":993,"tag":1546,"props":1564,"children":1565},{},[1566],{"type":998,"value":1567},"Maintains element order from left to right",{"type":993,"tag":1546,"props":1569,"children":1570},{},[1571],{"type":998,"value":1572},"Works with any number of tuples",{"type":993,"tag":1001,"props":1574,"children":1575},{},[1576],{"type":993,"tag":1536,"props":1577,"children":1578},{},[1579],{"type":998,"value":1580},"Key Characteristics:",{"type":993,"tag":1542,"props":1582,"children":1583},{},[1584,1589,1594,1599],{"type":993,"tag":1546,"props":1585,"children":1586},{},[1587],{"type":998,"value":1588},"Immutable result (new tuple created)",{"type":993,"tag":1546,"props":1590,"children":1591},{},[1592],{"type":998,"value":1593},"Type preservation (tuples remain tuples)",{"type":993,"tag":1546,"props":1595,"children":1596},{},[1597],{"type":998,"value":1598},"Order preservation (left tuple first, then right)",{"type":993,"tag":1546,"props":1600,"children":1601},{},[1602],{"type":998,"value":1603},"No duplicate removal (all elements included)",{"type":993,"tag":1001,"props":1605,"children":1606},{},[1607],{"type":993,"tag":1536,"props":1608,"children":1609},{},[1610],{"type":998,"value":1611},"Common Applications:",{"type":993,"tag":1542,"props":1613,"children":1614},{},[1615,1620,1625],{"type":993,"tag":1546,"props":1616,"children":1617},{},[1618],{"type":998,"value":1619},"Combining data from different sources",{"type":993,"tag":1546,"props":1621,"children":1622},{},[1623],{"type":998,"value":1624},"Building larger datasets from components",{"type":993,"tag":1546,"props":1626,"children":1627},{},[1628],{"type":998,"value":1629},"Joining configuration settings",{"type":993,"tag":1631,"props":1632,"children":1634},"h3",{"id":1633},"simple-concatenation-operations",[1635],{"type":998,"value":1636},"Simple Concatenation Operations",{"type":993,"tag":1001,"props":1638,"children":1639},{},[1640],{"type":998,"value":1641},"Direct tuple joining using the plus operator for straightforward data combination.",{"type":993,"tag":1012,"props":1643,"children":1644},{},[1645],{"type":993,"tag":1016,"props":1646,"children":1648},{"className":1018,"code":1647,"language":6,"meta":8,"style":8},"# Simple concatenation examples\npart1 = (1, 2, 3)\npart2 = (4, 5, 6)\npart3 = (7, 8, 9)\n\n# Two-tuple concatenation\ncombined_two = part1 + part2\nprint(f\"Two parts: {combined_two}\")\n\n# Multiple concatenation\ncombined_all = part1 + part2 + part3\nprint(f\"All parts: {combined_all}\")\n\n# Mixed data types\nnumbers = (1, 2, 3)\nletters = (\"a\", \"b\", \"c\")\nsymbols = (\"!\", \"@\", \"#\")\nmixed = numbers + letters + symbols\nprint(f\"Mixed data: {mixed}\")\n",[1649],{"type":993,"tag":1022,"props":1650,"children":1651},{"__ignoreMap":8},[1652,1660,1700,1740,1783,1790,1798,1824,1865,1872,1880,1914,1955,1962,1970,2010,2053,2096,2131],{"type":993,"tag":1026,"props":1653,"children":1654},{"class":1028,"line":12},[1655],{"type":993,"tag":1026,"props":1656,"children":1657},{"style":1032},[1658],{"type":998,"value":1659},"# Simple concatenation examples\n",{"type":993,"tag":1026,"props":1661,"children":1662},{"class":1028,"line":27},[1663,1668,1672,1676,1680,1684,1688,1692,1696],{"type":993,"tag":1026,"props":1664,"children":1665},{"style":1041},[1666],{"type":998,"value":1667},"part1 ",{"type":993,"tag":1026,"props":1669,"children":1670},{"style":1047},[1671],{"type":998,"value":1050},{"type":993,"tag":1026,"props":1673,"children":1674},{"style":1041},[1675],{"type":998,"value":1055},{"type":993,"tag":1026,"props":1677,"children":1678},{"style":1058},[1679],{"type":998,"value":1061},{"type":993,"tag":1026,"props":1681,"children":1682},{"style":1041},[1683],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1685,"children":1686},{"style":1058},[1687],{"type":998,"value":1071},{"type":993,"tag":1026,"props":1689,"children":1690},{"style":1041},[1691],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1693,"children":1694},{"style":1058},[1695],{"type":998,"value":1080},{"type":993,"tag":1026,"props":1697,"children":1698},{"style":1041},[1699],{"type":998,"value":1085},{"type":993,"tag":1026,"props":1701,"children":1702},{"class":1028,"line":36},[1703,1708,1712,1716,1720,1724,1728,1732,1736],{"type":993,"tag":1026,"props":1704,"children":1705},{"style":1041},[1706],{"type":998,"value":1707},"part2 ",{"type":993,"tag":1026,"props":1709,"children":1710},{"style":1047},[1711],{"type":998,"value":1050},{"type":993,"tag":1026,"props":1713,"children":1714},{"style":1041},[1715],{"type":998,"value":1055},{"type":993,"tag":1026,"props":1717,"children":1718},{"style":1058},[1719],{"type":998,"value":1106},{"type":993,"tag":1026,"props":1721,"children":1722},{"style":1041},[1723],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1725,"children":1726},{"style":1058},[1727],{"type":998,"value":1115},{"type":993,"tag":1026,"props":1729,"children":1730},{"style":1041},[1731],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1733,"children":1734},{"style":1058},[1735],{"type":998,"value":1124},{"type":993,"tag":1026,"props":1737,"children":1738},{"style":1041},[1739],{"type":998,"value":1085},{"type":993,"tag":1026,"props":1741,"children":1742},{"class":1028,"line":45},[1743,1748,1752,1756,1761,1765,1770,1774,1779],{"type":993,"tag":1026,"props":1744,"children":1745},{"style":1041},[1746],{"type":998,"value":1747},"part3 ",{"type":993,"tag":1026,"props":1749,"children":1750},{"style":1047},[1751],{"type":998,"value":1050},{"type":993,"tag":1026,"props":1753,"children":1754},{"style":1041},[1755],{"type":998,"value":1055},{"type":993,"tag":1026,"props":1757,"children":1758},{"style":1058},[1759],{"type":998,"value":1760},"7",{"type":993,"tag":1026,"props":1762,"children":1763},{"style":1041},[1764],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1766,"children":1767},{"style":1058},[1768],{"type":998,"value":1769},"8",{"type":993,"tag":1026,"props":1771,"children":1772},{"style":1041},[1773],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1775,"children":1776},{"style":1058},[1777],{"type":998,"value":1778},"9",{"type":993,"tag":1026,"props":1780,"children":1781},{"style":1041},[1782],{"type":998,"value":1085},{"type":993,"tag":1026,"props":1784,"children":1785},{"class":1028,"line":54},[1786],{"type":993,"tag":1026,"props":1787,"children":1788},{"emptyLinePlaceholder":13},[1789],{"type":998,"value":1163},{"type":993,"tag":1026,"props":1791,"children":1792},{"class":1028,"line":63},[1793],{"type":993,"tag":1026,"props":1794,"children":1795},{"style":1032},[1796],{"type":998,"value":1797},"# Two-tuple concatenation\n",{"type":993,"tag":1026,"props":1799,"children":1800},{"class":1028,"line":72},[1801,1806,1810,1815,1819],{"type":993,"tag":1026,"props":1802,"children":1803},{"style":1041},[1804],{"type":998,"value":1805},"combined_two ",{"type":993,"tag":1026,"props":1807,"children":1808},{"style":1047},[1809],{"type":998,"value":1050},{"type":993,"tag":1026,"props":1811,"children":1812},{"style":1041},[1813],{"type":998,"value":1814}," part1 ",{"type":993,"tag":1026,"props":1816,"children":1817},{"style":1047},[1818],{"type":998,"value":1150},{"type":993,"tag":1026,"props":1820,"children":1821},{"style":1041},[1822],{"type":998,"value":1823}," part2\n",{"type":993,"tag":1026,"props":1825,"children":1826},{"class":1028,"line":81},[1827,1831,1835,1839,1844,1848,1853,1857,1861],{"type":993,"tag":1026,"props":1828,"children":1829},{"style":1058},[1830],{"type":998,"value":1384},{"type":993,"tag":1026,"props":1832,"children":1833},{"style":1041},[1834],{"type":998,"value":1389},{"type":993,"tag":1026,"props":1836,"children":1837},{"style":1047},[1838],{"type":998,"value":1394},{"type":993,"tag":1026,"props":1840,"children":1841},{"style":1275},[1842],{"type":998,"value":1843},"\"Two parts: ",{"type":993,"tag":1026,"props":1845,"children":1846},{"style":1058},[1847],{"type":998,"value":1404},{"type":993,"tag":1026,"props":1849,"children":1850},{"style":1041},[1851],{"type":998,"value":1852},"combined_two",{"type":993,"tag":1026,"props":1854,"children":1855},{"style":1058},[1856],{"type":998,"value":1414},{"type":993,"tag":1026,"props":1858,"children":1859},{"style":1275},[1860],{"type":998,"value":1419},{"type":993,"tag":1026,"props":1862,"children":1863},{"style":1041},[1864],{"type":998,"value":1085},{"type":993,"tag":1026,"props":1866,"children":1867},{"class":1028,"line":91},[1868],{"type":993,"tag":1026,"props":1869,"children":1870},{"emptyLinePlaceholder":13},[1871],{"type":998,"value":1163},{"type":993,"tag":1026,"props":1873,"children":1874},{"class":1028,"line":100},[1875],{"type":993,"tag":1026,"props":1876,"children":1877},{"style":1032},[1878],{"type":998,"value":1879},"# Multiple concatenation\n",{"type":993,"tag":1026,"props":1881,"children":1882},{"class":1028,"line":109},[1883,1888,1892,1896,1900,1905,1909],{"type":993,"tag":1026,"props":1884,"children":1885},{"style":1041},[1886],{"type":998,"value":1887},"combined_all ",{"type":993,"tag":1026,"props":1889,"children":1890},{"style":1047},[1891],{"type":998,"value":1050},{"type":993,"tag":1026,"props":1893,"children":1894},{"style":1041},[1895],{"type":998,"value":1814},{"type":993,"tag":1026,"props":1897,"children":1898},{"style":1047},[1899],{"type":998,"value":1150},{"type":993,"tag":1026,"props":1901,"children":1902},{"style":1041},[1903],{"type":998,"value":1904}," part2 ",{"type":993,"tag":1026,"props":1906,"children":1907},{"style":1047},[1908],{"type":998,"value":1150},{"type":993,"tag":1026,"props":1910,"children":1911},{"style":1041},[1912],{"type":998,"value":1913}," part3\n",{"type":993,"tag":1026,"props":1915,"children":1916},{"class":1028,"line":118},[1917,1921,1925,1929,1934,1938,1943,1947,1951],{"type":993,"tag":1026,"props":1918,"children":1919},{"style":1058},[1920],{"type":998,"value":1384},{"type":993,"tag":1026,"props":1922,"children":1923},{"style":1041},[1924],{"type":998,"value":1389},{"type":993,"tag":1026,"props":1926,"children":1927},{"style":1047},[1928],{"type":998,"value":1394},{"type":993,"tag":1026,"props":1930,"children":1931},{"style":1275},[1932],{"type":998,"value":1933},"\"All parts: ",{"type":993,"tag":1026,"props":1935,"children":1936},{"style":1058},[1937],{"type":998,"value":1404},{"type":993,"tag":1026,"props":1939,"children":1940},{"style":1041},[1941],{"type":998,"value":1942},"combined_all",{"type":993,"tag":1026,"props":1944,"children":1945},{"style":1058},[1946],{"type":998,"value":1414},{"type":993,"tag":1026,"props":1948,"children":1949},{"style":1275},[1950],{"type":998,"value":1419},{"type":993,"tag":1026,"props":1952,"children":1953},{"style":1041},[1954],{"type":998,"value":1085},{"type":993,"tag":1026,"props":1956,"children":1957},{"class":1028,"line":127},[1958],{"type":993,"tag":1026,"props":1959,"children":1960},{"emptyLinePlaceholder":13},[1961],{"type":998,"value":1163},{"type":993,"tag":1026,"props":1963,"children":1964},{"class":1028,"line":136},[1965],{"type":993,"tag":1026,"props":1966,"children":1967},{"style":1032},[1968],{"type":998,"value":1969},"# Mixed data types\n",{"type":993,"tag":1026,"props":1971,"children":1972},{"class":1028,"line":146},[1973,1978,1982,1986,1990,1994,1998,2002,2006],{"type":993,"tag":1026,"props":1974,"children":1975},{"style":1041},[1976],{"type":998,"value":1977},"numbers ",{"type":993,"tag":1026,"props":1979,"children":1980},{"style":1047},[1981],{"type":998,"value":1050},{"type":993,"tag":1026,"props":1983,"children":1984},{"style":1041},[1985],{"type":998,"value":1055},{"type":993,"tag":1026,"props":1987,"children":1988},{"style":1058},[1989],{"type":998,"value":1061},{"type":993,"tag":1026,"props":1991,"children":1992},{"style":1041},[1993],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1995,"children":1996},{"style":1058},[1997],{"type":998,"value":1071},{"type":993,"tag":1026,"props":1999,"children":2000},{"style":1041},[2001],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2003,"children":2004},{"style":1058},[2005],{"type":998,"value":1080},{"type":993,"tag":1026,"props":2007,"children":2008},{"style":1041},[2009],{"type":998,"value":1085},{"type":993,"tag":1026,"props":2011,"children":2012},{"class":1028,"line":155},[2013,2018,2022,2026,2031,2035,2040,2044,2049],{"type":993,"tag":1026,"props":2014,"children":2015},{"style":1041},[2016],{"type":998,"value":2017},"letters ",{"type":993,"tag":1026,"props":2019,"children":2020},{"style":1047},[2021],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2023,"children":2024},{"style":1041},[2025],{"type":998,"value":1055},{"type":993,"tag":1026,"props":2027,"children":2028},{"style":1275},[2029],{"type":998,"value":2030},"\"a\"",{"type":993,"tag":1026,"props":2032,"children":2033},{"style":1041},[2034],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2036,"children":2037},{"style":1275},[2038],{"type":998,"value":2039},"\"b\"",{"type":993,"tag":1026,"props":2041,"children":2042},{"style":1041},[2043],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2045,"children":2046},{"style":1275},[2047],{"type":998,"value":2048},"\"c\"",{"type":993,"tag":1026,"props":2050,"children":2051},{"style":1041},[2052],{"type":998,"value":1085},{"type":993,"tag":1026,"props":2054,"children":2055},{"class":1028,"line":164},[2056,2061,2065,2069,2074,2078,2083,2087,2092],{"type":993,"tag":1026,"props":2057,"children":2058},{"style":1041},[2059],{"type":998,"value":2060},"symbols ",{"type":993,"tag":1026,"props":2062,"children":2063},{"style":1047},[2064],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2066,"children":2067},{"style":1041},[2068],{"type":998,"value":1055},{"type":993,"tag":1026,"props":2070,"children":2071},{"style":1275},[2072],{"type":998,"value":2073},"\"!\"",{"type":993,"tag":1026,"props":2075,"children":2076},{"style":1041},[2077],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2079,"children":2080},{"style":1275},[2081],{"type":998,"value":2082},"\"@\"",{"type":993,"tag":1026,"props":2084,"children":2085},{"style":1041},[2086],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2088,"children":2089},{"style":1275},[2090],{"type":998,"value":2091},"\"#\"",{"type":993,"tag":1026,"props":2093,"children":2094},{"style":1041},[2095],{"type":998,"value":1085},{"type":993,"tag":1026,"props":2097,"children":2098},{"class":1028,"line":173},[2099,2104,2108,2113,2117,2122,2126],{"type":993,"tag":1026,"props":2100,"children":2101},{"style":1041},[2102],{"type":998,"value":2103},"mixed ",{"type":993,"tag":1026,"props":2105,"children":2106},{"style":1047},[2107],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2109,"children":2110},{"style":1041},[2111],{"type":998,"value":2112}," numbers ",{"type":993,"tag":1026,"props":2114,"children":2115},{"style":1047},[2116],{"type":998,"value":1150},{"type":993,"tag":1026,"props":2118,"children":2119},{"style":1041},[2120],{"type":998,"value":2121}," letters ",{"type":993,"tag":1026,"props":2123,"children":2124},{"style":1047},[2125],{"type":998,"value":1150},{"type":993,"tag":1026,"props":2127,"children":2128},{"style":1041},[2129],{"type":998,"value":2130}," symbols\n",{"type":993,"tag":1026,"props":2132,"children":2133},{"class":1028,"line":182},[2134,2138,2142,2146,2151,2155,2160,2164,2168],{"type":993,"tag":1026,"props":2135,"children":2136},{"style":1058},[2137],{"type":998,"value":1384},{"type":993,"tag":1026,"props":2139,"children":2140},{"style":1041},[2141],{"type":998,"value":1389},{"type":993,"tag":1026,"props":2143,"children":2144},{"style":1047},[2145],{"type":998,"value":1394},{"type":993,"tag":1026,"props":2147,"children":2148},{"style":1275},[2149],{"type":998,"value":2150},"\"Mixed data: ",{"type":993,"tag":1026,"props":2152,"children":2153},{"style":1058},[2154],{"type":998,"value":1404},{"type":993,"tag":1026,"props":2156,"children":2157},{"style":1041},[2158],{"type":998,"value":2159},"mixed",{"type":993,"tag":1026,"props":2161,"children":2162},{"style":1058},[2163],{"type":998,"value":1414},{"type":993,"tag":1026,"props":2165,"children":2166},{"style":1275},[2167],{"type":998,"value":1419},{"type":993,"tag":1026,"props":2169,"children":2170},{"style":1041},[2171],{"type":998,"value":1085},{"type":993,"tag":1631,"props":2173,"children":2175},{"id":2174},"building-composite-data-structures",[2176],{"type":998,"value":2177},"Building Composite Data Structures",{"type":993,"tag":1001,"props":2179,"children":2180},{},[2181],{"type":998,"value":2182},"Creating complex data structures by combining simpler tuple components.",{"type":993,"tag":1012,"props":2184,"children":2185},{},[2186],{"type":993,"tag":1016,"props":2187,"children":2189},{"className":1018,"code":2188,"language":6,"meta":8,"style":8},"# Building composite structures\n# User profile components\nbasic_info = (\"Alice\", 25)\ncontact_info = (\"alice@email.com\", \"555-1234\")\npreferences = (\"dark_mode\", \"notifications_on\")\n\n# Complete user profile\nuser_profile = basic_info + contact_info + preferences\nprint(f\"User profile: {user_profile}\")\n\n# Geographic data\ncity = (\"New York\",)\nstate = (\"NY\",)\ncountry = (\"USA\",)\ncoordinates = (40.7128, -74.0060)\n\n# Complete location\nfull_location = city + state + country + coordinates\nprint(f\"Location: {full_location}\")\n\n# Database record construction\nid_field = (1001,)\ntimestamp = (\"2024-01-15\", \"14:30\")\ndata_fields = (\"processed\", True, 99.5)\ncomplete_record = id_field + timestamp + data_fields\nprint(f\"Record: {complete_record}\")\n",[2190],{"type":993,"tag":1022,"props":2191,"children":2192},{"__ignoreMap":8},[2193,2201,2209,2243,2277,2311,2318,2326,2361,2402,2409,2417,2442,2467,2492,2531,2538,2546,2590,2631,2638,2646,2671,2705,2748,2783],{"type":993,"tag":1026,"props":2194,"children":2195},{"class":1028,"line":12},[2196],{"type":993,"tag":1026,"props":2197,"children":2198},{"style":1032},[2199],{"type":998,"value":2200},"# Building composite structures\n",{"type":993,"tag":1026,"props":2202,"children":2203},{"class":1028,"line":27},[2204],{"type":993,"tag":1026,"props":2205,"children":2206},{"style":1032},[2207],{"type":998,"value":2208},"# User profile components\n",{"type":993,"tag":1026,"props":2210,"children":2211},{"class":1028,"line":36},[2212,2217,2221,2225,2230,2234,2239],{"type":993,"tag":1026,"props":2213,"children":2214},{"style":1041},[2215],{"type":998,"value":2216},"basic_info ",{"type":993,"tag":1026,"props":2218,"children":2219},{"style":1047},[2220],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2222,"children":2223},{"style":1041},[2224],{"type":998,"value":1055},{"type":993,"tag":1026,"props":2226,"children":2227},{"style":1275},[2228],{"type":998,"value":2229},"\"Alice\"",{"type":993,"tag":1026,"props":2231,"children":2232},{"style":1041},[2233],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2235,"children":2236},{"style":1058},[2237],{"type":998,"value":2238},"25",{"type":993,"tag":1026,"props":2240,"children":2241},{"style":1041},[2242],{"type":998,"value":1085},{"type":993,"tag":1026,"props":2244,"children":2245},{"class":1028,"line":45},[2246,2251,2255,2259,2264,2268,2273],{"type":993,"tag":1026,"props":2247,"children":2248},{"style":1041},[2249],{"type":998,"value":2250},"contact_info ",{"type":993,"tag":1026,"props":2252,"children":2253},{"style":1047},[2254],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2256,"children":2257},{"style":1041},[2258],{"type":998,"value":1055},{"type":993,"tag":1026,"props":2260,"children":2261},{"style":1275},[2262],{"type":998,"value":2263},"\"alice@email.com\"",{"type":993,"tag":1026,"props":2265,"children":2266},{"style":1041},[2267],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2269,"children":2270},{"style":1275},[2271],{"type":998,"value":2272},"\"555-1234\"",{"type":993,"tag":1026,"props":2274,"children":2275},{"style":1041},[2276],{"type":998,"value":1085},{"type":993,"tag":1026,"props":2278,"children":2279},{"class":1028,"line":54},[2280,2285,2289,2293,2298,2302,2307],{"type":993,"tag":1026,"props":2281,"children":2282},{"style":1041},[2283],{"type":998,"value":2284},"preferences ",{"type":993,"tag":1026,"props":2286,"children":2287},{"style":1047},[2288],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2290,"children":2291},{"style":1041},[2292],{"type":998,"value":1055},{"type":993,"tag":1026,"props":2294,"children":2295},{"style":1275},[2296],{"type":998,"value":2297},"\"dark_mode\"",{"type":993,"tag":1026,"props":2299,"children":2300},{"style":1041},[2301],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2303,"children":2304},{"style":1275},[2305],{"type":998,"value":2306},"\"notifications_on\"",{"type":993,"tag":1026,"props":2308,"children":2309},{"style":1041},[2310],{"type":998,"value":1085},{"type":993,"tag":1026,"props":2312,"children":2313},{"class":1028,"line":63},[2314],{"type":993,"tag":1026,"props":2315,"children":2316},{"emptyLinePlaceholder":13},[2317],{"type":998,"value":1163},{"type":993,"tag":1026,"props":2319,"children":2320},{"class":1028,"line":72},[2321],{"type":993,"tag":1026,"props":2322,"children":2323},{"style":1032},[2324],{"type":998,"value":2325},"# Complete user profile\n",{"type":993,"tag":1026,"props":2327,"children":2328},{"class":1028,"line":81},[2329,2334,2338,2343,2347,2352,2356],{"type":993,"tag":1026,"props":2330,"children":2331},{"style":1041},[2332],{"type":998,"value":2333},"user_profile ",{"type":993,"tag":1026,"props":2335,"children":2336},{"style":1047},[2337],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2339,"children":2340},{"style":1041},[2341],{"type":998,"value":2342}," basic_info ",{"type":993,"tag":1026,"props":2344,"children":2345},{"style":1047},[2346],{"type":998,"value":1150},{"type":993,"tag":1026,"props":2348,"children":2349},{"style":1041},[2350],{"type":998,"value":2351}," contact_info ",{"type":993,"tag":1026,"props":2353,"children":2354},{"style":1047},[2355],{"type":998,"value":1150},{"type":993,"tag":1026,"props":2357,"children":2358},{"style":1041},[2359],{"type":998,"value":2360}," preferences\n",{"type":993,"tag":1026,"props":2362,"children":2363},{"class":1028,"line":91},[2364,2368,2372,2376,2381,2385,2390,2394,2398],{"type":993,"tag":1026,"props":2365,"children":2366},{"style":1058},[2367],{"type":998,"value":1384},{"type":993,"tag":1026,"props":2369,"children":2370},{"style":1041},[2371],{"type":998,"value":1389},{"type":993,"tag":1026,"props":2373,"children":2374},{"style":1047},[2375],{"type":998,"value":1394},{"type":993,"tag":1026,"props":2377,"children":2378},{"style":1275},[2379],{"type":998,"value":2380},"\"User profile: ",{"type":993,"tag":1026,"props":2382,"children":2383},{"style":1058},[2384],{"type":998,"value":1404},{"type":993,"tag":1026,"props":2386,"children":2387},{"style":1041},[2388],{"type":998,"value":2389},"user_profile",{"type":993,"tag":1026,"props":2391,"children":2392},{"style":1058},[2393],{"type":998,"value":1414},{"type":993,"tag":1026,"props":2395,"children":2396},{"style":1275},[2397],{"type":998,"value":1419},{"type":993,"tag":1026,"props":2399,"children":2400},{"style":1041},[2401],{"type":998,"value":1085},{"type":993,"tag":1026,"props":2403,"children":2404},{"class":1028,"line":100},[2405],{"type":993,"tag":1026,"props":2406,"children":2407},{"emptyLinePlaceholder":13},[2408],{"type":998,"value":1163},{"type":993,"tag":1026,"props":2410,"children":2411},{"class":1028,"line":109},[2412],{"type":993,"tag":1026,"props":2413,"children":2414},{"style":1032},[2415],{"type":998,"value":2416},"# Geographic data\n",{"type":993,"tag":1026,"props":2418,"children":2419},{"class":1028,"line":118},[2420,2425,2429,2433,2438],{"type":993,"tag":1026,"props":2421,"children":2422},{"style":1041},[2423],{"type":998,"value":2424},"city ",{"type":993,"tag":1026,"props":2426,"children":2427},{"style":1047},[2428],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2430,"children":2431},{"style":1041},[2432],{"type":998,"value":1055},{"type":993,"tag":1026,"props":2434,"children":2435},{"style":1275},[2436],{"type":998,"value":2437},"\"New York\"",{"type":993,"tag":1026,"props":2439,"children":2440},{"style":1041},[2441],{"type":998,"value":1223},{"type":993,"tag":1026,"props":2443,"children":2444},{"class":1028,"line":127},[2445,2450,2454,2458,2463],{"type":993,"tag":1026,"props":2446,"children":2447},{"style":1041},[2448],{"type":998,"value":2449},"state ",{"type":993,"tag":1026,"props":2451,"children":2452},{"style":1047},[2453],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2455,"children":2456},{"style":1041},[2457],{"type":998,"value":1055},{"type":993,"tag":1026,"props":2459,"children":2460},{"style":1275},[2461],{"type":998,"value":2462},"\"NY\"",{"type":993,"tag":1026,"props":2464,"children":2465},{"style":1041},[2466],{"type":998,"value":1223},{"type":993,"tag":1026,"props":2468,"children":2469},{"class":1028,"line":136},[2470,2475,2479,2483,2488],{"type":993,"tag":1026,"props":2471,"children":2472},{"style":1041},[2473],{"type":998,"value":2474},"country ",{"type":993,"tag":1026,"props":2476,"children":2477},{"style":1047},[2478],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2480,"children":2481},{"style":1041},[2482],{"type":998,"value":1055},{"type":993,"tag":1026,"props":2484,"children":2485},{"style":1275},[2486],{"type":998,"value":2487},"\"USA\"",{"type":993,"tag":1026,"props":2489,"children":2490},{"style":1041},[2491],{"type":998,"value":1223},{"type":993,"tag":1026,"props":2493,"children":2494},{"class":1028,"line":146},[2495,2500,2504,2508,2513,2517,2522,2527],{"type":993,"tag":1026,"props":2496,"children":2497},{"style":1041},[2498],{"type":998,"value":2499},"coordinates ",{"type":993,"tag":1026,"props":2501,"children":2502},{"style":1047},[2503],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2505,"children":2506},{"style":1041},[2507],{"type":998,"value":1055},{"type":993,"tag":1026,"props":2509,"children":2510},{"style":1058},[2511],{"type":998,"value":2512},"40.7128",{"type":993,"tag":1026,"props":2514,"children":2515},{"style":1041},[2516],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2518,"children":2519},{"style":1047},[2520],{"type":998,"value":2521},"-",{"type":993,"tag":1026,"props":2523,"children":2524},{"style":1058},[2525],{"type":998,"value":2526},"74.0060",{"type":993,"tag":1026,"props":2528,"children":2529},{"style":1041},[2530],{"type":998,"value":1085},{"type":993,"tag":1026,"props":2532,"children":2533},{"class":1028,"line":155},[2534],{"type":993,"tag":1026,"props":2535,"children":2536},{"emptyLinePlaceholder":13},[2537],{"type":998,"value":1163},{"type":993,"tag":1026,"props":2539,"children":2540},{"class":1028,"line":164},[2541],{"type":993,"tag":1026,"props":2542,"children":2543},{"style":1032},[2544],{"type":998,"value":2545},"# Complete location\n",{"type":993,"tag":1026,"props":2547,"children":2548},{"class":1028,"line":173},[2549,2554,2558,2563,2567,2572,2576,2581,2585],{"type":993,"tag":1026,"props":2550,"children":2551},{"style":1041},[2552],{"type":998,"value":2553},"full_location ",{"type":993,"tag":1026,"props":2555,"children":2556},{"style":1047},[2557],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2559,"children":2560},{"style":1041},[2561],{"type":998,"value":2562}," city ",{"type":993,"tag":1026,"props":2564,"children":2565},{"style":1047},[2566],{"type":998,"value":1150},{"type":993,"tag":1026,"props":2568,"children":2569},{"style":1041},[2570],{"type":998,"value":2571}," state ",{"type":993,"tag":1026,"props":2573,"children":2574},{"style":1047},[2575],{"type":998,"value":1150},{"type":993,"tag":1026,"props":2577,"children":2578},{"style":1041},[2579],{"type":998,"value":2580}," country ",{"type":993,"tag":1026,"props":2582,"children":2583},{"style":1047},[2584],{"type":998,"value":1150},{"type":993,"tag":1026,"props":2586,"children":2587},{"style":1041},[2588],{"type":998,"value":2589}," coordinates\n",{"type":993,"tag":1026,"props":2591,"children":2592},{"class":1028,"line":182},[2593,2597,2601,2605,2610,2614,2619,2623,2627],{"type":993,"tag":1026,"props":2594,"children":2595},{"style":1058},[2596],{"type":998,"value":1384},{"type":993,"tag":1026,"props":2598,"children":2599},{"style":1041},[2600],{"type":998,"value":1389},{"type":993,"tag":1026,"props":2602,"children":2603},{"style":1047},[2604],{"type":998,"value":1394},{"type":993,"tag":1026,"props":2606,"children":2607},{"style":1275},[2608],{"type":998,"value":2609},"\"Location: ",{"type":993,"tag":1026,"props":2611,"children":2612},{"style":1058},[2613],{"type":998,"value":1404},{"type":993,"tag":1026,"props":2615,"children":2616},{"style":1041},[2617],{"type":998,"value":2618},"full_location",{"type":993,"tag":1026,"props":2620,"children":2621},{"style":1058},[2622],{"type":998,"value":1414},{"type":993,"tag":1026,"props":2624,"children":2625},{"style":1275},[2626],{"type":998,"value":1419},{"type":993,"tag":1026,"props":2628,"children":2629},{"style":1041},[2630],{"type":998,"value":1085},{"type":993,"tag":1026,"props":2632,"children":2633},{"class":1028,"line":191},[2634],{"type":993,"tag":1026,"props":2635,"children":2636},{"emptyLinePlaceholder":13},[2637],{"type":998,"value":1163},{"type":993,"tag":1026,"props":2639,"children":2640},{"class":1028,"line":201},[2641],{"type":993,"tag":1026,"props":2642,"children":2643},{"style":1032},[2644],{"type":998,"value":2645},"# Database record construction\n",{"type":993,"tag":1026,"props":2647,"children":2648},{"class":1028,"line":210},[2649,2654,2658,2662,2667],{"type":993,"tag":1026,"props":2650,"children":2651},{"style":1041},[2652],{"type":998,"value":2653},"id_field ",{"type":993,"tag":1026,"props":2655,"children":2656},{"style":1047},[2657],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2659,"children":2660},{"style":1041},[2661],{"type":998,"value":1055},{"type":993,"tag":1026,"props":2663,"children":2664},{"style":1058},[2665],{"type":998,"value":2666},"1001",{"type":993,"tag":1026,"props":2668,"children":2669},{"style":1041},[2670],{"type":998,"value":1223},{"type":993,"tag":1026,"props":2672,"children":2673},{"class":1028,"line":219},[2674,2679,2683,2687,2692,2696,2701],{"type":993,"tag":1026,"props":2675,"children":2676},{"style":1041},[2677],{"type":998,"value":2678},"timestamp ",{"type":993,"tag":1026,"props":2680,"children":2681},{"style":1047},[2682],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2684,"children":2685},{"style":1041},[2686],{"type":998,"value":1055},{"type":993,"tag":1026,"props":2688,"children":2689},{"style":1275},[2690],{"type":998,"value":2691},"\"2024-01-15\"",{"type":993,"tag":1026,"props":2693,"children":2694},{"style":1041},[2695],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2697,"children":2698},{"style":1275},[2699],{"type":998,"value":2700},"\"14:30\"",{"type":993,"tag":1026,"props":2702,"children":2703},{"style":1041},[2704],{"type":998,"value":1085},{"type":993,"tag":1026,"props":2706,"children":2707},{"class":1028,"line":228},[2708,2713,2717,2721,2726,2730,2735,2739,2744],{"type":993,"tag":1026,"props":2709,"children":2710},{"style":1041},[2711],{"type":998,"value":2712},"data_fields ",{"type":993,"tag":1026,"props":2714,"children":2715},{"style":1047},[2716],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2718,"children":2719},{"style":1041},[2720],{"type":998,"value":1055},{"type":993,"tag":1026,"props":2722,"children":2723},{"style":1275},[2724],{"type":998,"value":2725},"\"processed\"",{"type":993,"tag":1026,"props":2727,"children":2728},{"style":1041},[2729],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2731,"children":2732},{"style":1058},[2733],{"type":998,"value":2734},"True",{"type":993,"tag":1026,"props":2736,"children":2737},{"style":1041},[2738],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2740,"children":2741},{"style":1058},[2742],{"type":998,"value":2743},"99.5",{"type":993,"tag":1026,"props":2745,"children":2746},{"style":1041},[2747],{"type":998,"value":1085},{"type":993,"tag":1026,"props":2749,"children":2750},{"class":1028,"line":238},[2751,2756,2760,2765,2769,2774,2778],{"type":993,"tag":1026,"props":2752,"children":2753},{"style":1041},[2754],{"type":998,"value":2755},"complete_record ",{"type":993,"tag":1026,"props":2757,"children":2758},{"style":1047},[2759],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2761,"children":2762},{"style":1041},[2763],{"type":998,"value":2764}," id_field ",{"type":993,"tag":1026,"props":2766,"children":2767},{"style":1047},[2768],{"type":998,"value":1150},{"type":993,"tag":1026,"props":2770,"children":2771},{"style":1041},[2772],{"type":998,"value":2773}," timestamp ",{"type":993,"tag":1026,"props":2775,"children":2776},{"style":1047},[2777],{"type":998,"value":1150},{"type":993,"tag":1026,"props":2779,"children":2780},{"style":1041},[2781],{"type":998,"value":2782}," data_fields\n",{"type":993,"tag":1026,"props":2784,"children":2785},{"class":1028,"line":247},[2786,2790,2794,2798,2803,2807,2812,2816,2820],{"type":993,"tag":1026,"props":2787,"children":2788},{"style":1058},[2789],{"type":998,"value":1384},{"type":993,"tag":1026,"props":2791,"children":2792},{"style":1041},[2793],{"type":998,"value":1389},{"type":993,"tag":1026,"props":2795,"children":2796},{"style":1047},[2797],{"type":998,"value":1394},{"type":993,"tag":1026,"props":2799,"children":2800},{"style":1275},[2801],{"type":998,"value":2802},"\"Record: ",{"type":993,"tag":1026,"props":2804,"children":2805},{"style":1058},[2806],{"type":998,"value":1404},{"type":993,"tag":1026,"props":2808,"children":2809},{"style":1041},[2810],{"type":998,"value":2811},"complete_record",{"type":993,"tag":1026,"props":2813,"children":2814},{"style":1058},[2815],{"type":998,"value":1414},{"type":993,"tag":1026,"props":2817,"children":2818},{"style":1275},[2819],{"type":998,"value":1419},{"type":993,"tag":1026,"props":2821,"children":2822},{"style":1041},[2823],{"type":998,"value":1085},{"type":993,"tag":1631,"props":2825,"children":2827},{"id":2826},"conditional-merging",[2828],{"type":998,"value":2829},"Conditional Merging",{"type":993,"tag":1001,"props":2831,"children":2832},{},[2833],{"type":998,"value":2834},"Using empty tuples for conditional merging and safe concatenation operations.",{"type":993,"tag":1012,"props":2836,"children":2837},{},[2838],{"type":993,"tag":1016,"props":2839,"children":2841},{"className":1018,"code":2840,"language":6,"meta":8,"style":8},"# Working with empty tuples\nbase_data = (1, 2, 3)\nempty = ()\noptional_data = (4, 5) if True else ()\n\n# Safe concatenation\nresult1 = base_data + empty  # No effect\nresult2 = base_data + optional_data  # Adds elements\n\nprint(f\"Base + empty: {result1}\")\nprint(f\"Base + optional: {result2}\")\n\n# Conditional building\ndef build_tuple_conditionally(include_extra=False):\n    core = (\"essential\", \"data\")\n    extra = (\"bonus\", \"info\") if include_extra else ()\n    return core + extra\n\nnormal_tuple = build_tuple_conditionally(False)\nextended_tuple = build_tuple_conditionally(True)\n\nprint(f\"Normal: {normal_tuple}\")\nprint(f\"Extended: {extended_tuple}\")\n",[2842],{"type":993,"tag":1022,"props":2843,"children":2844},{"__ignoreMap":8},[2845,2853,2893,2910,2962,2969,2977,3008,3038,3045,3086,3127,3134,3142,3175,3209,3261,3283,3290,3315,3339,3346,3387],{"type":993,"tag":1026,"props":2846,"children":2847},{"class":1028,"line":12},[2848],{"type":993,"tag":1026,"props":2849,"children":2850},{"style":1032},[2851],{"type":998,"value":2852},"# Working with empty tuples\n",{"type":993,"tag":1026,"props":2854,"children":2855},{"class":1028,"line":27},[2856,2861,2865,2869,2873,2877,2881,2885,2889],{"type":993,"tag":1026,"props":2857,"children":2858},{"style":1041},[2859],{"type":998,"value":2860},"base_data ",{"type":993,"tag":1026,"props":2862,"children":2863},{"style":1047},[2864],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2866,"children":2867},{"style":1041},[2868],{"type":998,"value":1055},{"type":993,"tag":1026,"props":2870,"children":2871},{"style":1058},[2872],{"type":998,"value":1061},{"type":993,"tag":1026,"props":2874,"children":2875},{"style":1041},[2876],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2878,"children":2879},{"style":1058},[2880],{"type":998,"value":1071},{"type":993,"tag":1026,"props":2882,"children":2883},{"style":1041},[2884],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2886,"children":2887},{"style":1058},[2888],{"type":998,"value":1080},{"type":993,"tag":1026,"props":2890,"children":2891},{"style":1041},[2892],{"type":998,"value":1085},{"type":993,"tag":1026,"props":2894,"children":2895},{"class":1028,"line":36},[2896,2901,2905],{"type":993,"tag":1026,"props":2897,"children":2898},{"style":1041},[2899],{"type":998,"value":2900},"empty ",{"type":993,"tag":1026,"props":2902,"children":2903},{"style":1047},[2904],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2906,"children":2907},{"style":1041},[2908],{"type":998,"value":2909}," ()\n",{"type":993,"tag":1026,"props":2911,"children":2912},{"class":1028,"line":45},[2913,2918,2922,2926,2930,2934,2938,2943,2948,2953,2958],{"type":993,"tag":1026,"props":2914,"children":2915},{"style":1041},[2916],{"type":998,"value":2917},"optional_data ",{"type":993,"tag":1026,"props":2919,"children":2920},{"style":1047},[2921],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2923,"children":2924},{"style":1041},[2925],{"type":998,"value":1055},{"type":993,"tag":1026,"props":2927,"children":2928},{"style":1058},[2929],{"type":998,"value":1106},{"type":993,"tag":1026,"props":2931,"children":2932},{"style":1041},[2933],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2935,"children":2936},{"style":1058},[2937],{"type":998,"value":1115},{"type":993,"tag":1026,"props":2939,"children":2940},{"style":1041},[2941],{"type":998,"value":2942},") ",{"type":993,"tag":1026,"props":2944,"children":2945},{"style":1047},[2946],{"type":998,"value":2947},"if",{"type":993,"tag":1026,"props":2949,"children":2950},{"style":1058},[2951],{"type":998,"value":2952}," True",{"type":993,"tag":1026,"props":2954,"children":2955},{"style":1047},[2956],{"type":998,"value":2957}," else",{"type":993,"tag":1026,"props":2959,"children":2960},{"style":1041},[2961],{"type":998,"value":2909},{"type":993,"tag":1026,"props":2963,"children":2964},{"class":1028,"line":54},[2965],{"type":993,"tag":1026,"props":2966,"children":2967},{"emptyLinePlaceholder":13},[2968],{"type":998,"value":1163},{"type":993,"tag":1026,"props":2970,"children":2971},{"class":1028,"line":63},[2972],{"type":993,"tag":1026,"props":2973,"children":2974},{"style":1032},[2975],{"type":998,"value":2976},"# Safe concatenation\n",{"type":993,"tag":1026,"props":2978,"children":2979},{"class":1028,"line":72},[2980,2985,2989,2994,2998,3003],{"type":993,"tag":1026,"props":2981,"children":2982},{"style":1041},[2983],{"type":998,"value":2984},"result1 ",{"type":993,"tag":1026,"props":2986,"children":2987},{"style":1047},[2988],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2990,"children":2991},{"style":1041},[2992],{"type":998,"value":2993}," base_data ",{"type":993,"tag":1026,"props":2995,"children":2996},{"style":1047},[2997],{"type":998,"value":1150},{"type":993,"tag":1026,"props":2999,"children":3000},{"style":1041},[3001],{"type":998,"value":3002}," empty  ",{"type":993,"tag":1026,"props":3004,"children":3005},{"style":1032},[3006],{"type":998,"value":3007},"# No effect\n",{"type":993,"tag":1026,"props":3009,"children":3010},{"class":1028,"line":81},[3011,3016,3020,3024,3028,3033],{"type":993,"tag":1026,"props":3012,"children":3013},{"style":1041},[3014],{"type":998,"value":3015},"result2 ",{"type":993,"tag":1026,"props":3017,"children":3018},{"style":1047},[3019],{"type":998,"value":1050},{"type":993,"tag":1026,"props":3021,"children":3022},{"style":1041},[3023],{"type":998,"value":2993},{"type":993,"tag":1026,"props":3025,"children":3026},{"style":1047},[3027],{"type":998,"value":1150},{"type":993,"tag":1026,"props":3029,"children":3030},{"style":1041},[3031],{"type":998,"value":3032}," optional_data  ",{"type":993,"tag":1026,"props":3034,"children":3035},{"style":1032},[3036],{"type":998,"value":3037},"# Adds elements\n",{"type":993,"tag":1026,"props":3039,"children":3040},{"class":1028,"line":91},[3041],{"type":993,"tag":1026,"props":3042,"children":3043},{"emptyLinePlaceholder":13},[3044],{"type":998,"value":1163},{"type":993,"tag":1026,"props":3046,"children":3047},{"class":1028,"line":100},[3048,3052,3056,3060,3065,3069,3074,3078,3082],{"type":993,"tag":1026,"props":3049,"children":3050},{"style":1058},[3051],{"type":998,"value":1384},{"type":993,"tag":1026,"props":3053,"children":3054},{"style":1041},[3055],{"type":998,"value":1389},{"type":993,"tag":1026,"props":3057,"children":3058},{"style":1047},[3059],{"type":998,"value":1394},{"type":993,"tag":1026,"props":3061,"children":3062},{"style":1275},[3063],{"type":998,"value":3064},"\"Base + empty: ",{"type":993,"tag":1026,"props":3066,"children":3067},{"style":1058},[3068],{"type":998,"value":1404},{"type":993,"tag":1026,"props":3070,"children":3071},{"style":1041},[3072],{"type":998,"value":3073},"result1",{"type":993,"tag":1026,"props":3075,"children":3076},{"style":1058},[3077],{"type":998,"value":1414},{"type":993,"tag":1026,"props":3079,"children":3080},{"style":1275},[3081],{"type":998,"value":1419},{"type":993,"tag":1026,"props":3083,"children":3084},{"style":1041},[3085],{"type":998,"value":1085},{"type":993,"tag":1026,"props":3087,"children":3088},{"class":1028,"line":109},[3089,3093,3097,3101,3106,3110,3115,3119,3123],{"type":993,"tag":1026,"props":3090,"children":3091},{"style":1058},[3092],{"type":998,"value":1384},{"type":993,"tag":1026,"props":3094,"children":3095},{"style":1041},[3096],{"type":998,"value":1389},{"type":993,"tag":1026,"props":3098,"children":3099},{"style":1047},[3100],{"type":998,"value":1394},{"type":993,"tag":1026,"props":3102,"children":3103},{"style":1275},[3104],{"type":998,"value":3105},"\"Base + optional: ",{"type":993,"tag":1026,"props":3107,"children":3108},{"style":1058},[3109],{"type":998,"value":1404},{"type":993,"tag":1026,"props":3111,"children":3112},{"style":1041},[3113],{"type":998,"value":3114},"result2",{"type":993,"tag":1026,"props":3116,"children":3117},{"style":1058},[3118],{"type":998,"value":1414},{"type":993,"tag":1026,"props":3120,"children":3121},{"style":1275},[3122],{"type":998,"value":1419},{"type":993,"tag":1026,"props":3124,"children":3125},{"style":1041},[3126],{"type":998,"value":1085},{"type":993,"tag":1026,"props":3128,"children":3129},{"class":1028,"line":118},[3130],{"type":993,"tag":1026,"props":3131,"children":3132},{"emptyLinePlaceholder":13},[3133],{"type":998,"value":1163},{"type":993,"tag":1026,"props":3135,"children":3136},{"class":1028,"line":127},[3137],{"type":993,"tag":1026,"props":3138,"children":3139},{"style":1032},[3140],{"type":998,"value":3141},"# Conditional building\n",{"type":993,"tag":1026,"props":3143,"children":3144},{"class":1028,"line":136},[3145,3150,3156,3161,3165,3170],{"type":993,"tag":1026,"props":3146,"children":3147},{"style":1047},[3148],{"type":998,"value":3149},"def",{"type":993,"tag":1026,"props":3151,"children":3153},{"style":3152},"--shiki-default:#6F42C1;--shiki-app-dark-mode:#B392F0",[3154],{"type":998,"value":3155}," build_tuple_conditionally",{"type":993,"tag":1026,"props":3157,"children":3158},{"style":1041},[3159],{"type":998,"value":3160},"(include_extra",{"type":993,"tag":1026,"props":3162,"children":3163},{"style":1047},[3164],{"type":998,"value":1050},{"type":993,"tag":1026,"props":3166,"children":3167},{"style":1058},[3168],{"type":998,"value":3169},"False",{"type":993,"tag":1026,"props":3171,"children":3172},{"style":1041},[3173],{"type":998,"value":3174},"):\n",{"type":993,"tag":1026,"props":3176,"children":3177},{"class":1028,"line":146},[3178,3183,3187,3191,3196,3200,3205],{"type":993,"tag":1026,"props":3179,"children":3180},{"style":1041},[3181],{"type":998,"value":3182},"    core ",{"type":993,"tag":1026,"props":3184,"children":3185},{"style":1047},[3186],{"type":998,"value":1050},{"type":993,"tag":1026,"props":3188,"children":3189},{"style":1041},[3190],{"type":998,"value":1055},{"type":993,"tag":1026,"props":3192,"children":3193},{"style":1275},[3194],{"type":998,"value":3195},"\"essential\"",{"type":993,"tag":1026,"props":3197,"children":3198},{"style":1041},[3199],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3201,"children":3202},{"style":1275},[3203],{"type":998,"value":3204},"\"data\"",{"type":993,"tag":1026,"props":3206,"children":3207},{"style":1041},[3208],{"type":998,"value":1085},{"type":993,"tag":1026,"props":3210,"children":3211},{"class":1028,"line":155},[3212,3217,3221,3225,3230,3234,3239,3243,3247,3252,3257],{"type":993,"tag":1026,"props":3213,"children":3214},{"style":1041},[3215],{"type":998,"value":3216},"    extra ",{"type":993,"tag":1026,"props":3218,"children":3219},{"style":1047},[3220],{"type":998,"value":1050},{"type":993,"tag":1026,"props":3222,"children":3223},{"style":1041},[3224],{"type":998,"value":1055},{"type":993,"tag":1026,"props":3226,"children":3227},{"style":1275},[3228],{"type":998,"value":3229},"\"bonus\"",{"type":993,"tag":1026,"props":3231,"children":3232},{"style":1041},[3233],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3235,"children":3236},{"style":1275},[3237],{"type":998,"value":3238},"\"info\"",{"type":993,"tag":1026,"props":3240,"children":3241},{"style":1041},[3242],{"type":998,"value":2942},{"type":993,"tag":1026,"props":3244,"children":3245},{"style":1047},[3246],{"type":998,"value":2947},{"type":993,"tag":1026,"props":3248,"children":3249},{"style":1041},[3250],{"type":998,"value":3251}," include_extra ",{"type":993,"tag":1026,"props":3253,"children":3254},{"style":1047},[3255],{"type":998,"value":3256},"else",{"type":993,"tag":1026,"props":3258,"children":3259},{"style":1041},[3260],{"type":998,"value":2909},{"type":993,"tag":1026,"props":3262,"children":3263},{"class":1028,"line":164},[3264,3269,3274,3278],{"type":993,"tag":1026,"props":3265,"children":3266},{"style":1047},[3267],{"type":998,"value":3268},"    return",{"type":993,"tag":1026,"props":3270,"children":3271},{"style":1041},[3272],{"type":998,"value":3273}," core ",{"type":993,"tag":1026,"props":3275,"children":3276},{"style":1047},[3277],{"type":998,"value":1150},{"type":993,"tag":1026,"props":3279,"children":3280},{"style":1041},[3281],{"type":998,"value":3282}," extra\n",{"type":993,"tag":1026,"props":3284,"children":3285},{"class":1028,"line":173},[3286],{"type":993,"tag":1026,"props":3287,"children":3288},{"emptyLinePlaceholder":13},[3289],{"type":998,"value":1163},{"type":993,"tag":1026,"props":3291,"children":3292},{"class":1028,"line":182},[3293,3298,3302,3307,3311],{"type":993,"tag":1026,"props":3294,"children":3295},{"style":1041},[3296],{"type":998,"value":3297},"normal_tuple ",{"type":993,"tag":1026,"props":3299,"children":3300},{"style":1047},[3301],{"type":998,"value":1050},{"type":993,"tag":1026,"props":3303,"children":3304},{"style":1041},[3305],{"type":998,"value":3306}," build_tuple_conditionally(",{"type":993,"tag":1026,"props":3308,"children":3309},{"style":1058},[3310],{"type":998,"value":3169},{"type":993,"tag":1026,"props":3312,"children":3313},{"style":1041},[3314],{"type":998,"value":1085},{"type":993,"tag":1026,"props":3316,"children":3317},{"class":1028,"line":191},[3318,3323,3327,3331,3335],{"type":993,"tag":1026,"props":3319,"children":3320},{"style":1041},[3321],{"type":998,"value":3322},"extended_tuple ",{"type":993,"tag":1026,"props":3324,"children":3325},{"style":1047},[3326],{"type":998,"value":1050},{"type":993,"tag":1026,"props":3328,"children":3329},{"style":1041},[3330],{"type":998,"value":3306},{"type":993,"tag":1026,"props":3332,"children":3333},{"style":1058},[3334],{"type":998,"value":2734},{"type":993,"tag":1026,"props":3336,"children":3337},{"style":1041},[3338],{"type":998,"value":1085},{"type":993,"tag":1026,"props":3340,"children":3341},{"class":1028,"line":201},[3342],{"type":993,"tag":1026,"props":3343,"children":3344},{"emptyLinePlaceholder":13},[3345],{"type":998,"value":1163},{"type":993,"tag":1026,"props":3347,"children":3348},{"class":1028,"line":210},[3349,3353,3357,3361,3366,3370,3375,3379,3383],{"type":993,"tag":1026,"props":3350,"children":3351},{"style":1058},[3352],{"type":998,"value":1384},{"type":993,"tag":1026,"props":3354,"children":3355},{"style":1041},[3356],{"type":998,"value":1389},{"type":993,"tag":1026,"props":3358,"children":3359},{"style":1047},[3360],{"type":998,"value":1394},{"type":993,"tag":1026,"props":3362,"children":3363},{"style":1275},[3364],{"type":998,"value":3365},"\"Normal: ",{"type":993,"tag":1026,"props":3367,"children":3368},{"style":1058},[3369],{"type":998,"value":1404},{"type":993,"tag":1026,"props":3371,"children":3372},{"style":1041},[3373],{"type":998,"value":3374},"normal_tuple",{"type":993,"tag":1026,"props":3376,"children":3377},{"style":1058},[3378],{"type":998,"value":1414},{"type":993,"tag":1026,"props":3380,"children":3381},{"style":1275},[3382],{"type":998,"value":1419},{"type":993,"tag":1026,"props":3384,"children":3385},{"style":1041},[3386],{"type":998,"value":1085},{"type":993,"tag":1026,"props":3388,"children":3389},{"class":1028,"line":219},[3390,3394,3398,3402,3407,3411,3416,3420,3424],{"type":993,"tag":1026,"props":3391,"children":3392},{"style":1058},[3393],{"type":998,"value":1384},{"type":993,"tag":1026,"props":3395,"children":3396},{"style":1041},[3397],{"type":998,"value":1389},{"type":993,"tag":1026,"props":3399,"children":3400},{"style":1047},[3401],{"type":998,"value":1394},{"type":993,"tag":1026,"props":3403,"children":3404},{"style":1275},[3405],{"type":998,"value":3406},"\"Extended: ",{"type":993,"tag":1026,"props":3408,"children":3409},{"style":1058},[3410],{"type":998,"value":1404},{"type":993,"tag":1026,"props":3412,"children":3413},{"style":1041},[3414],{"type":998,"value":3415},"extended_tuple",{"type":993,"tag":1026,"props":3417,"children":3418},{"style":1058},[3419],{"type":998,"value":1414},{"type":993,"tag":1026,"props":3421,"children":3422},{"style":1275},[3423],{"type":998,"value":1419},{"type":993,"tag":1026,"props":3425,"children":3426},{"style":1041},[3427],{"type":998,"value":1085},{"type":993,"tag":1507,"props":3429,"children":3431},{"id":3430},"advanced-merging-techniques",[3432],{"type":998,"value":3433},"🚀 Advanced Merging Techniques",{"type":993,"tag":1001,"props":3435,"children":3436},{},[3437],{"type":998,"value":3438},"Beyond simple concatenation, Python offers sophisticated techniques for merging tuples with specific patterns, filtering, and transformation capabilities.",{"type":993,"tag":1526,"props":3440,"children":3444},{"emoji":3441,"title":3442,"type":3443},"🚀","Advanced Merging Strategies","success",[3445,3453,3476,3484,3507,3515],{"type":993,"tag":1001,"props":3446,"children":3447},{},[3448],{"type":993,"tag":1536,"props":3449,"children":3450},{},[3451],{"type":998,"value":3452},"Technique Categories:",{"type":993,"tag":1542,"props":3454,"children":3455},{},[3456,3461,3466,3471],{"type":993,"tag":1546,"props":3457,"children":3458},{},[3459],{"type":998,"value":3460},"Interleaving: Alternating elements from multiple tuples",{"type":993,"tag":1546,"props":3462,"children":3463},{},[3464],{"type":998,"value":3465},"Filtering: Merging with condition-based inclusion",{"type":993,"tag":1546,"props":3467,"children":3468},{},[3469],{"type":998,"value":3470},"Transformation: Modifying elements during merge",{"type":993,"tag":1546,"props":3472,"children":3473},{},[3474],{"type":998,"value":3475},"Nested handling: Managing complex tuple structures",{"type":993,"tag":1001,"props":3477,"children":3478},{},[3479],{"type":993,"tag":1536,"props":3480,"children":3481},{},[3482],{"type":998,"value":3483},"Tools Available:",{"type":993,"tag":1542,"props":3485,"children":3486},{},[3487,3492,3497,3502],{"type":993,"tag":1546,"props":3488,"children":3489},{},[3490],{"type":998,"value":3491},"zip() for parallel merging",{"type":993,"tag":1546,"props":3493,"children":3494},{},[3495],{"type":998,"value":3496},"itertools for advanced patterns",{"type":993,"tag":1546,"props":3498,"children":3499},{},[3500],{"type":998,"value":3501},"Comprehensions for filtered merging",{"type":993,"tag":1546,"props":3503,"children":3504},{},[3505],{"type":998,"value":3506},"Custom functions for complex logic",{"type":993,"tag":1001,"props":3508,"children":3509},{},[3510],{"type":993,"tag":1536,"props":3511,"children":3512},{},[3513],{"type":998,"value":3514},"Use Cases:",{"type":993,"tag":1542,"props":3516,"children":3517},{},[3518,3523,3528],{"type":993,"tag":1546,"props":3519,"children":3520},{},[3521],{"type":998,"value":3522},"Data synchronization from multiple sources",{"type":993,"tag":1546,"props":3524,"children":3525},{},[3526],{"type":998,"value":3527},"Conditional data aggregation",{"type":993,"tag":1546,"props":3529,"children":3530},{},[3531],{"type":998,"value":3532},"Format-specific merging requirements",{"type":993,"tag":1631,"props":3534,"children":3536},{"id":3535},"interleaving-tuple-elements",[3537],{"type":998,"value":3538},"Interleaving Tuple Elements",{"type":993,"tag":1001,"props":3540,"children":3541},{},[3542],{"type":998,"value":3543},"Alternating elements from multiple tuples for parallel data merging.",{"type":993,"tag":1012,"props":3545,"children":3546},{},[3547],{"type":993,"tag":1016,"props":3548,"children":3550},{"className":1018,"code":3549,"language":6,"meta":8,"style":8},"# Interleaving elements using zip\nnames = (\"Alice\", \"Bob\", \"Carol\")\nages = (25, 30, 28)\njobs = (\"Engineer\", \"Designer\", \"Manager\")\n\n# Create interleaved pairs\nname_age_pairs = tuple(zip(names, ages))\nprint(f\"Name-age pairs: {name_age_pairs}\")\n\n# Flatten interleaved data\ninterleaved = tuple(item for pair in zip(names, ages) for item in pair)\nprint(f\"Interleaved: {interleaved}\")\n\n# Three-way interleaving\nthree_way = tuple(zip(names, ages, jobs))\nprint(f\"Three-way tuples: {three_way}\")\n\n# Flatten three-way\nflat_three_way = tuple(item for triple in zip(names, ages, jobs) for item in triple)\nprint(f\"Flat three-way: {flat_three_way}\")\n",[3551],{"type":993,"tag":1022,"props":3552,"children":3553},{"__ignoreMap":8},[3554,3562,3604,3645,3688,3695,3703,3734,3775,3782,3790,3854,3895,3902,3910,3939,3980,3987,3995,4054],{"type":993,"tag":1026,"props":3555,"children":3556},{"class":1028,"line":12},[3557],{"type":993,"tag":1026,"props":3558,"children":3559},{"style":1032},[3560],{"type":998,"value":3561},"# Interleaving elements using zip\n",{"type":993,"tag":1026,"props":3563,"children":3564},{"class":1028,"line":27},[3565,3570,3574,3578,3582,3586,3591,3595,3600],{"type":993,"tag":1026,"props":3566,"children":3567},{"style":1041},[3568],{"type":998,"value":3569},"names ",{"type":993,"tag":1026,"props":3571,"children":3572},{"style":1047},[3573],{"type":998,"value":1050},{"type":993,"tag":1026,"props":3575,"children":3576},{"style":1041},[3577],{"type":998,"value":1055},{"type":993,"tag":1026,"props":3579,"children":3580},{"style":1275},[3581],{"type":998,"value":2229},{"type":993,"tag":1026,"props":3583,"children":3584},{"style":1041},[3585],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3587,"children":3588},{"style":1275},[3589],{"type":998,"value":3590},"\"Bob\"",{"type":993,"tag":1026,"props":3592,"children":3593},{"style":1041},[3594],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3596,"children":3597},{"style":1275},[3598],{"type":998,"value":3599},"\"Carol\"",{"type":993,"tag":1026,"props":3601,"children":3602},{"style":1041},[3603],{"type":998,"value":1085},{"type":993,"tag":1026,"props":3605,"children":3606},{"class":1028,"line":36},[3607,3612,3616,3620,3624,3628,3632,3636,3641],{"type":993,"tag":1026,"props":3608,"children":3609},{"style":1041},[3610],{"type":998,"value":3611},"ages ",{"type":993,"tag":1026,"props":3613,"children":3614},{"style":1047},[3615],{"type":998,"value":1050},{"type":993,"tag":1026,"props":3617,"children":3618},{"style":1041},[3619],{"type":998,"value":1055},{"type":993,"tag":1026,"props":3621,"children":3622},{"style":1058},[3623],{"type":998,"value":2238},{"type":993,"tag":1026,"props":3625,"children":3626},{"style":1041},[3627],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3629,"children":3630},{"style":1058},[3631],{"type":998,"value":1218},{"type":993,"tag":1026,"props":3633,"children":3634},{"style":1041},[3635],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3637,"children":3638},{"style":1058},[3639],{"type":998,"value":3640},"28",{"type":993,"tag":1026,"props":3642,"children":3643},{"style":1041},[3644],{"type":998,"value":1085},{"type":993,"tag":1026,"props":3646,"children":3647},{"class":1028,"line":45},[3648,3653,3657,3661,3666,3670,3675,3679,3684],{"type":993,"tag":1026,"props":3649,"children":3650},{"style":1041},[3651],{"type":998,"value":3652},"jobs ",{"type":993,"tag":1026,"props":3654,"children":3655},{"style":1047},[3656],{"type":998,"value":1050},{"type":993,"tag":1026,"props":3658,"children":3659},{"style":1041},[3660],{"type":998,"value":1055},{"type":993,"tag":1026,"props":3662,"children":3663},{"style":1275},[3664],{"type":998,"value":3665},"\"Engineer\"",{"type":993,"tag":1026,"props":3667,"children":3668},{"style":1041},[3669],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3671,"children":3672},{"style":1275},[3673],{"type":998,"value":3674},"\"Designer\"",{"type":993,"tag":1026,"props":3676,"children":3677},{"style":1041},[3678],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3680,"children":3681},{"style":1275},[3682],{"type":998,"value":3683},"\"Manager\"",{"type":993,"tag":1026,"props":3685,"children":3686},{"style":1041},[3687],{"type":998,"value":1085},{"type":993,"tag":1026,"props":3689,"children":3690},{"class":1028,"line":54},[3691],{"type":993,"tag":1026,"props":3692,"children":3693},{"emptyLinePlaceholder":13},[3694],{"type":998,"value":1163},{"type":993,"tag":1026,"props":3696,"children":3697},{"class":1028,"line":63},[3698],{"type":993,"tag":1026,"props":3699,"children":3700},{"style":1032},[3701],{"type":998,"value":3702},"# Create interleaved pairs\n",{"type":993,"tag":1026,"props":3704,"children":3705},{"class":1028,"line":72},[3706,3711,3715,3720,3724,3729],{"type":993,"tag":1026,"props":3707,"children":3708},{"style":1041},[3709],{"type":998,"value":3710},"name_age_pairs ",{"type":993,"tag":1026,"props":3712,"children":3713},{"style":1047},[3714],{"type":998,"value":1050},{"type":993,"tag":1026,"props":3716,"children":3717},{"style":1058},[3718],{"type":998,"value":3719}," tuple",{"type":993,"tag":1026,"props":3721,"children":3722},{"style":1041},[3723],{"type":998,"value":1389},{"type":993,"tag":1026,"props":3725,"children":3726},{"style":1058},[3727],{"type":998,"value":3728},"zip",{"type":993,"tag":1026,"props":3730,"children":3731},{"style":1041},[3732],{"type":998,"value":3733},"(names, ages))\n",{"type":993,"tag":1026,"props":3735,"children":3736},{"class":1028,"line":81},[3737,3741,3745,3749,3754,3758,3763,3767,3771],{"type":993,"tag":1026,"props":3738,"children":3739},{"style":1058},[3740],{"type":998,"value":1384},{"type":993,"tag":1026,"props":3742,"children":3743},{"style":1041},[3744],{"type":998,"value":1389},{"type":993,"tag":1026,"props":3746,"children":3747},{"style":1047},[3748],{"type":998,"value":1394},{"type":993,"tag":1026,"props":3750,"children":3751},{"style":1275},[3752],{"type":998,"value":3753},"\"Name-age pairs: ",{"type":993,"tag":1026,"props":3755,"children":3756},{"style":1058},[3757],{"type":998,"value":1404},{"type":993,"tag":1026,"props":3759,"children":3760},{"style":1041},[3761],{"type":998,"value":3762},"name_age_pairs",{"type":993,"tag":1026,"props":3764,"children":3765},{"style":1058},[3766],{"type":998,"value":1414},{"type":993,"tag":1026,"props":3768,"children":3769},{"style":1275},[3770],{"type":998,"value":1419},{"type":993,"tag":1026,"props":3772,"children":3773},{"style":1041},[3774],{"type":998,"value":1085},{"type":993,"tag":1026,"props":3776,"children":3777},{"class":1028,"line":91},[3778],{"type":993,"tag":1026,"props":3779,"children":3780},{"emptyLinePlaceholder":13},[3781],{"type":998,"value":1163},{"type":993,"tag":1026,"props":3783,"children":3784},{"class":1028,"line":100},[3785],{"type":993,"tag":1026,"props":3786,"children":3787},{"style":1032},[3788],{"type":998,"value":3789},"# Flatten interleaved data\n",{"type":993,"tag":1026,"props":3791,"children":3792},{"class":1028,"line":109},[3793,3798,3802,3806,3811,3816,3821,3826,3831,3836,3840,3845,3849],{"type":993,"tag":1026,"props":3794,"children":3795},{"style":1041},[3796],{"type":998,"value":3797},"interleaved ",{"type":993,"tag":1026,"props":3799,"children":3800},{"style":1047},[3801],{"type":998,"value":1050},{"type":993,"tag":1026,"props":3803,"children":3804},{"style":1058},[3805],{"type":998,"value":3719},{"type":993,"tag":1026,"props":3807,"children":3808},{"style":1041},[3809],{"type":998,"value":3810},"(item ",{"type":993,"tag":1026,"props":3812,"children":3813},{"style":1047},[3814],{"type":998,"value":3815},"for",{"type":993,"tag":1026,"props":3817,"children":3818},{"style":1041},[3819],{"type":998,"value":3820}," pair ",{"type":993,"tag":1026,"props":3822,"children":3823},{"style":1047},[3824],{"type":998,"value":3825},"in",{"type":993,"tag":1026,"props":3827,"children":3828},{"style":1058},[3829],{"type":998,"value":3830}," zip",{"type":993,"tag":1026,"props":3832,"children":3833},{"style":1041},[3834],{"type":998,"value":3835},"(names, ages) ",{"type":993,"tag":1026,"props":3837,"children":3838},{"style":1047},[3839],{"type":998,"value":3815},{"type":993,"tag":1026,"props":3841,"children":3842},{"style":1041},[3843],{"type":998,"value":3844}," item ",{"type":993,"tag":1026,"props":3846,"children":3847},{"style":1047},[3848],{"type":998,"value":3825},{"type":993,"tag":1026,"props":3850,"children":3851},{"style":1041},[3852],{"type":998,"value":3853}," pair)\n",{"type":993,"tag":1026,"props":3855,"children":3856},{"class":1028,"line":118},[3857,3861,3865,3869,3874,3878,3883,3887,3891],{"type":993,"tag":1026,"props":3858,"children":3859},{"style":1058},[3860],{"type":998,"value":1384},{"type":993,"tag":1026,"props":3862,"children":3863},{"style":1041},[3864],{"type":998,"value":1389},{"type":993,"tag":1026,"props":3866,"children":3867},{"style":1047},[3868],{"type":998,"value":1394},{"type":993,"tag":1026,"props":3870,"children":3871},{"style":1275},[3872],{"type":998,"value":3873},"\"Interleaved: ",{"type":993,"tag":1026,"props":3875,"children":3876},{"style":1058},[3877],{"type":998,"value":1404},{"type":993,"tag":1026,"props":3879,"children":3880},{"style":1041},[3881],{"type":998,"value":3882},"interleaved",{"type":993,"tag":1026,"props":3884,"children":3885},{"style":1058},[3886],{"type":998,"value":1414},{"type":993,"tag":1026,"props":3888,"children":3889},{"style":1275},[3890],{"type":998,"value":1419},{"type":993,"tag":1026,"props":3892,"children":3893},{"style":1041},[3894],{"type":998,"value":1085},{"type":993,"tag":1026,"props":3896,"children":3897},{"class":1028,"line":127},[3898],{"type":993,"tag":1026,"props":3899,"children":3900},{"emptyLinePlaceholder":13},[3901],{"type":998,"value":1163},{"type":993,"tag":1026,"props":3903,"children":3904},{"class":1028,"line":136},[3905],{"type":993,"tag":1026,"props":3906,"children":3907},{"style":1032},[3908],{"type":998,"value":3909},"# Three-way interleaving\n",{"type":993,"tag":1026,"props":3911,"children":3912},{"class":1028,"line":146},[3913,3918,3922,3926,3930,3934],{"type":993,"tag":1026,"props":3914,"children":3915},{"style":1041},[3916],{"type":998,"value":3917},"three_way ",{"type":993,"tag":1026,"props":3919,"children":3920},{"style":1047},[3921],{"type":998,"value":1050},{"type":993,"tag":1026,"props":3923,"children":3924},{"style":1058},[3925],{"type":998,"value":3719},{"type":993,"tag":1026,"props":3927,"children":3928},{"style":1041},[3929],{"type":998,"value":1389},{"type":993,"tag":1026,"props":3931,"children":3932},{"style":1058},[3933],{"type":998,"value":3728},{"type":993,"tag":1026,"props":3935,"children":3936},{"style":1041},[3937],{"type":998,"value":3938},"(names, ages, jobs))\n",{"type":993,"tag":1026,"props":3940,"children":3941},{"class":1028,"line":155},[3942,3946,3950,3954,3959,3963,3968,3972,3976],{"type":993,"tag":1026,"props":3943,"children":3944},{"style":1058},[3945],{"type":998,"value":1384},{"type":993,"tag":1026,"props":3947,"children":3948},{"style":1041},[3949],{"type":998,"value":1389},{"type":993,"tag":1026,"props":3951,"children":3952},{"style":1047},[3953],{"type":998,"value":1394},{"type":993,"tag":1026,"props":3955,"children":3956},{"style":1275},[3957],{"type":998,"value":3958},"\"Three-way tuples: ",{"type":993,"tag":1026,"props":3960,"children":3961},{"style":1058},[3962],{"type":998,"value":1404},{"type":993,"tag":1026,"props":3964,"children":3965},{"style":1041},[3966],{"type":998,"value":3967},"three_way",{"type":993,"tag":1026,"props":3969,"children":3970},{"style":1058},[3971],{"type":998,"value":1414},{"type":993,"tag":1026,"props":3973,"children":3974},{"style":1275},[3975],{"type":998,"value":1419},{"type":993,"tag":1026,"props":3977,"children":3978},{"style":1041},[3979],{"type":998,"value":1085},{"type":993,"tag":1026,"props":3981,"children":3982},{"class":1028,"line":164},[3983],{"type":993,"tag":1026,"props":3984,"children":3985},{"emptyLinePlaceholder":13},[3986],{"type":998,"value":1163},{"type":993,"tag":1026,"props":3988,"children":3989},{"class":1028,"line":173},[3990],{"type":993,"tag":1026,"props":3991,"children":3992},{"style":1032},[3993],{"type":998,"value":3994},"# Flatten three-way\n",{"type":993,"tag":1026,"props":3996,"children":3997},{"class":1028,"line":182},[3998,4003,4007,4011,4015,4019,4024,4028,4032,4037,4041,4045,4049],{"type":993,"tag":1026,"props":3999,"children":4000},{"style":1041},[4001],{"type":998,"value":4002},"flat_three_way ",{"type":993,"tag":1026,"props":4004,"children":4005},{"style":1047},[4006],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4008,"children":4009},{"style":1058},[4010],{"type":998,"value":3719},{"type":993,"tag":1026,"props":4012,"children":4013},{"style":1041},[4014],{"type":998,"value":3810},{"type":993,"tag":1026,"props":4016,"children":4017},{"style":1047},[4018],{"type":998,"value":3815},{"type":993,"tag":1026,"props":4020,"children":4021},{"style":1041},[4022],{"type":998,"value":4023}," triple ",{"type":993,"tag":1026,"props":4025,"children":4026},{"style":1047},[4027],{"type":998,"value":3825},{"type":993,"tag":1026,"props":4029,"children":4030},{"style":1058},[4031],{"type":998,"value":3830},{"type":993,"tag":1026,"props":4033,"children":4034},{"style":1041},[4035],{"type":998,"value":4036},"(names, ages, jobs) ",{"type":993,"tag":1026,"props":4038,"children":4039},{"style":1047},[4040],{"type":998,"value":3815},{"type":993,"tag":1026,"props":4042,"children":4043},{"style":1041},[4044],{"type":998,"value":3844},{"type":993,"tag":1026,"props":4046,"children":4047},{"style":1047},[4048],{"type":998,"value":3825},{"type":993,"tag":1026,"props":4050,"children":4051},{"style":1041},[4052],{"type":998,"value":4053}," triple)\n",{"type":993,"tag":1026,"props":4055,"children":4056},{"class":1028,"line":191},[4057,4061,4065,4069,4074,4078,4083,4087,4091],{"type":993,"tag":1026,"props":4058,"children":4059},{"style":1058},[4060],{"type":998,"value":1384},{"type":993,"tag":1026,"props":4062,"children":4063},{"style":1041},[4064],{"type":998,"value":1389},{"type":993,"tag":1026,"props":4066,"children":4067},{"style":1047},[4068],{"type":998,"value":1394},{"type":993,"tag":1026,"props":4070,"children":4071},{"style":1275},[4072],{"type":998,"value":4073},"\"Flat three-way: ",{"type":993,"tag":1026,"props":4075,"children":4076},{"style":1058},[4077],{"type":998,"value":1404},{"type":993,"tag":1026,"props":4079,"children":4080},{"style":1041},[4081],{"type":998,"value":4082},"flat_three_way",{"type":993,"tag":1026,"props":4084,"children":4085},{"style":1058},[4086],{"type":998,"value":1414},{"type":993,"tag":1026,"props":4088,"children":4089},{"style":1275},[4090],{"type":998,"value":1419},{"type":993,"tag":1026,"props":4092,"children":4093},{"style":1041},[4094],{"type":998,"value":1085},{"type":993,"tag":1631,"props":4096,"children":4098},{"id":4097},"conditional-merging-1",[4099],{"type":998,"value":2829},{"type":993,"tag":1001,"props":4101,"children":4102},{},[4103],{"type":998,"value":4104},"Merging tuples based on conditions and criteria for selective data combination.",{"type":993,"tag":1012,"props":4106,"children":4107},{},[4108],{"type":993,"tag":1016,"props":4109,"children":4111},{"className":1018,"code":4110,"language":6,"meta":8,"style":8},"# Conditional merging based on criteria\nscores_math = (85, 92, 78, 96)\nscores_science = (88, 89, 82, 94)\nstudent_names = (\"Alice\", \"Bob\", \"Carol\", \"David\")\n\n# Merge high scores only (>= 90)\nhigh_math = tuple(score for score in scores_math if score >= 90)\nhigh_science = tuple(score for score in scores_science if score >= 90)\nall_high_scores = high_math + high_science\n\nprint(f\"High math scores: {high_math}\")\nprint(f\"High science scores: {high_science}\")\nprint(f\"All high scores: {all_high_scores}\")\n\n# Conditional student data merging\ndef merge_student_data(names, math_scores, science_scores, min_score=85):\n    qualified_students = ()\n    for name, math, science in zip(names, math_scores, science_scores):\n        if math >= min_score and science >= min_score:\n            student_data = (name, math, science)\n            qualified_students += (student_data,)\n    return qualified_students\n\nqualified = merge_student_data(student_names, scores_math, scores_science)\nprint(f\"Qualified students: {qualified}\")\n",[4112],{"type":993,"tag":1022,"props":4113,"children":4114},{"__ignoreMap":8},[4115,4123,4175,4227,4276,4283,4291,4352,4409,4435,4442,4483,4524,4565,4572,4580,4609,4625,4651,4692,4709,4727,4739,4746,4763],{"type":993,"tag":1026,"props":4116,"children":4117},{"class":1028,"line":12},[4118],{"type":993,"tag":1026,"props":4119,"children":4120},{"style":1032},[4121],{"type":998,"value":4122},"# Conditional merging based on criteria\n",{"type":993,"tag":1026,"props":4124,"children":4125},{"class":1028,"line":27},[4126,4131,4135,4139,4144,4148,4153,4157,4162,4166,4171],{"type":993,"tag":1026,"props":4127,"children":4128},{"style":1041},[4129],{"type":998,"value":4130},"scores_math ",{"type":993,"tag":1026,"props":4132,"children":4133},{"style":1047},[4134],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4136,"children":4137},{"style":1041},[4138],{"type":998,"value":1055},{"type":993,"tag":1026,"props":4140,"children":4141},{"style":1058},[4142],{"type":998,"value":4143},"85",{"type":993,"tag":1026,"props":4145,"children":4146},{"style":1041},[4147],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4149,"children":4150},{"style":1058},[4151],{"type":998,"value":4152},"92",{"type":993,"tag":1026,"props":4154,"children":4155},{"style":1041},[4156],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4158,"children":4159},{"style":1058},[4160],{"type":998,"value":4161},"78",{"type":993,"tag":1026,"props":4163,"children":4164},{"style":1041},[4165],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4167,"children":4168},{"style":1058},[4169],{"type":998,"value":4170},"96",{"type":993,"tag":1026,"props":4172,"children":4173},{"style":1041},[4174],{"type":998,"value":1085},{"type":993,"tag":1026,"props":4176,"children":4177},{"class":1028,"line":36},[4178,4183,4187,4191,4196,4200,4205,4209,4214,4218,4223],{"type":993,"tag":1026,"props":4179,"children":4180},{"style":1041},[4181],{"type":998,"value":4182},"scores_science ",{"type":993,"tag":1026,"props":4184,"children":4185},{"style":1047},[4186],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4188,"children":4189},{"style":1041},[4190],{"type":998,"value":1055},{"type":993,"tag":1026,"props":4192,"children":4193},{"style":1058},[4194],{"type":998,"value":4195},"88",{"type":993,"tag":1026,"props":4197,"children":4198},{"style":1041},[4199],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4201,"children":4202},{"style":1058},[4203],{"type":998,"value":4204},"89",{"type":993,"tag":1026,"props":4206,"children":4207},{"style":1041},[4208],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4210,"children":4211},{"style":1058},[4212],{"type":998,"value":4213},"82",{"type":993,"tag":1026,"props":4215,"children":4216},{"style":1041},[4217],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4219,"children":4220},{"style":1058},[4221],{"type":998,"value":4222},"94",{"type":993,"tag":1026,"props":4224,"children":4225},{"style":1041},[4226],{"type":998,"value":1085},{"type":993,"tag":1026,"props":4228,"children":4229},{"class":1028,"line":45},[4230,4235,4239,4243,4247,4251,4255,4259,4263,4267,4272],{"type":993,"tag":1026,"props":4231,"children":4232},{"style":1041},[4233],{"type":998,"value":4234},"student_names ",{"type":993,"tag":1026,"props":4236,"children":4237},{"style":1047},[4238],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4240,"children":4241},{"style":1041},[4242],{"type":998,"value":1055},{"type":993,"tag":1026,"props":4244,"children":4245},{"style":1275},[4246],{"type":998,"value":2229},{"type":993,"tag":1026,"props":4248,"children":4249},{"style":1041},[4250],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4252,"children":4253},{"style":1275},[4254],{"type":998,"value":3590},{"type":993,"tag":1026,"props":4256,"children":4257},{"style":1041},[4258],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4260,"children":4261},{"style":1275},[4262],{"type":998,"value":3599},{"type":993,"tag":1026,"props":4264,"children":4265},{"style":1041},[4266],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4268,"children":4269},{"style":1275},[4270],{"type":998,"value":4271},"\"David\"",{"type":993,"tag":1026,"props":4273,"children":4274},{"style":1041},[4275],{"type":998,"value":1085},{"type":993,"tag":1026,"props":4277,"children":4278},{"class":1028,"line":54},[4279],{"type":993,"tag":1026,"props":4280,"children":4281},{"emptyLinePlaceholder":13},[4282],{"type":998,"value":1163},{"type":993,"tag":1026,"props":4284,"children":4285},{"class":1028,"line":63},[4286],{"type":993,"tag":1026,"props":4287,"children":4288},{"style":1032},[4289],{"type":998,"value":4290},"# Merge high scores only (>= 90)\n",{"type":993,"tag":1026,"props":4292,"children":4293},{"class":1028,"line":72},[4294,4299,4303,4307,4312,4316,4321,4325,4330,4334,4338,4343,4348],{"type":993,"tag":1026,"props":4295,"children":4296},{"style":1041},[4297],{"type":998,"value":4298},"high_math ",{"type":993,"tag":1026,"props":4300,"children":4301},{"style":1047},[4302],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4304,"children":4305},{"style":1058},[4306],{"type":998,"value":3719},{"type":993,"tag":1026,"props":4308,"children":4309},{"style":1041},[4310],{"type":998,"value":4311},"(score ",{"type":993,"tag":1026,"props":4313,"children":4314},{"style":1047},[4315],{"type":998,"value":3815},{"type":993,"tag":1026,"props":4317,"children":4318},{"style":1041},[4319],{"type":998,"value":4320}," score ",{"type":993,"tag":1026,"props":4322,"children":4323},{"style":1047},[4324],{"type":998,"value":3825},{"type":993,"tag":1026,"props":4326,"children":4327},{"style":1041},[4328],{"type":998,"value":4329}," scores_math ",{"type":993,"tag":1026,"props":4331,"children":4332},{"style":1047},[4333],{"type":998,"value":2947},{"type":993,"tag":1026,"props":4335,"children":4336},{"style":1041},[4337],{"type":998,"value":4320},{"type":993,"tag":1026,"props":4339,"children":4340},{"style":1047},[4341],{"type":998,"value":4342},">=",{"type":993,"tag":1026,"props":4344,"children":4345},{"style":1058},[4346],{"type":998,"value":4347}," 90",{"type":993,"tag":1026,"props":4349,"children":4350},{"style":1041},[4351],{"type":998,"value":1085},{"type":993,"tag":1026,"props":4353,"children":4354},{"class":1028,"line":81},[4355,4360,4364,4368,4372,4376,4380,4384,4389,4393,4397,4401,4405],{"type":993,"tag":1026,"props":4356,"children":4357},{"style":1041},[4358],{"type":998,"value":4359},"high_science ",{"type":993,"tag":1026,"props":4361,"children":4362},{"style":1047},[4363],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4365,"children":4366},{"style":1058},[4367],{"type":998,"value":3719},{"type":993,"tag":1026,"props":4369,"children":4370},{"style":1041},[4371],{"type":998,"value":4311},{"type":993,"tag":1026,"props":4373,"children":4374},{"style":1047},[4375],{"type":998,"value":3815},{"type":993,"tag":1026,"props":4377,"children":4378},{"style":1041},[4379],{"type":998,"value":4320},{"type":993,"tag":1026,"props":4381,"children":4382},{"style":1047},[4383],{"type":998,"value":3825},{"type":993,"tag":1026,"props":4385,"children":4386},{"style":1041},[4387],{"type":998,"value":4388}," scores_science ",{"type":993,"tag":1026,"props":4390,"children":4391},{"style":1047},[4392],{"type":998,"value":2947},{"type":993,"tag":1026,"props":4394,"children":4395},{"style":1041},[4396],{"type":998,"value":4320},{"type":993,"tag":1026,"props":4398,"children":4399},{"style":1047},[4400],{"type":998,"value":4342},{"type":993,"tag":1026,"props":4402,"children":4403},{"style":1058},[4404],{"type":998,"value":4347},{"type":993,"tag":1026,"props":4406,"children":4407},{"style":1041},[4408],{"type":998,"value":1085},{"type":993,"tag":1026,"props":4410,"children":4411},{"class":1028,"line":91},[4412,4417,4421,4426,4430],{"type":993,"tag":1026,"props":4413,"children":4414},{"style":1041},[4415],{"type":998,"value":4416},"all_high_scores ",{"type":993,"tag":1026,"props":4418,"children":4419},{"style":1047},[4420],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4422,"children":4423},{"style":1041},[4424],{"type":998,"value":4425}," high_math ",{"type":993,"tag":1026,"props":4427,"children":4428},{"style":1047},[4429],{"type":998,"value":1150},{"type":993,"tag":1026,"props":4431,"children":4432},{"style":1041},[4433],{"type":998,"value":4434}," high_science\n",{"type":993,"tag":1026,"props":4436,"children":4437},{"class":1028,"line":100},[4438],{"type":993,"tag":1026,"props":4439,"children":4440},{"emptyLinePlaceholder":13},[4441],{"type":998,"value":1163},{"type":993,"tag":1026,"props":4443,"children":4444},{"class":1028,"line":109},[4445,4449,4453,4457,4462,4466,4471,4475,4479],{"type":993,"tag":1026,"props":4446,"children":4447},{"style":1058},[4448],{"type":998,"value":1384},{"type":993,"tag":1026,"props":4450,"children":4451},{"style":1041},[4452],{"type":998,"value":1389},{"type":993,"tag":1026,"props":4454,"children":4455},{"style":1047},[4456],{"type":998,"value":1394},{"type":993,"tag":1026,"props":4458,"children":4459},{"style":1275},[4460],{"type":998,"value":4461},"\"High math scores: ",{"type":993,"tag":1026,"props":4463,"children":4464},{"style":1058},[4465],{"type":998,"value":1404},{"type":993,"tag":1026,"props":4467,"children":4468},{"style":1041},[4469],{"type":998,"value":4470},"high_math",{"type":993,"tag":1026,"props":4472,"children":4473},{"style":1058},[4474],{"type":998,"value":1414},{"type":993,"tag":1026,"props":4476,"children":4477},{"style":1275},[4478],{"type":998,"value":1419},{"type":993,"tag":1026,"props":4480,"children":4481},{"style":1041},[4482],{"type":998,"value":1085},{"type":993,"tag":1026,"props":4484,"children":4485},{"class":1028,"line":118},[4486,4490,4494,4498,4503,4507,4512,4516,4520],{"type":993,"tag":1026,"props":4487,"children":4488},{"style":1058},[4489],{"type":998,"value":1384},{"type":993,"tag":1026,"props":4491,"children":4492},{"style":1041},[4493],{"type":998,"value":1389},{"type":993,"tag":1026,"props":4495,"children":4496},{"style":1047},[4497],{"type":998,"value":1394},{"type":993,"tag":1026,"props":4499,"children":4500},{"style":1275},[4501],{"type":998,"value":4502},"\"High science scores: ",{"type":993,"tag":1026,"props":4504,"children":4505},{"style":1058},[4506],{"type":998,"value":1404},{"type":993,"tag":1026,"props":4508,"children":4509},{"style":1041},[4510],{"type":998,"value":4511},"high_science",{"type":993,"tag":1026,"props":4513,"children":4514},{"style":1058},[4515],{"type":998,"value":1414},{"type":993,"tag":1026,"props":4517,"children":4518},{"style":1275},[4519],{"type":998,"value":1419},{"type":993,"tag":1026,"props":4521,"children":4522},{"style":1041},[4523],{"type":998,"value":1085},{"type":993,"tag":1026,"props":4525,"children":4526},{"class":1028,"line":127},[4527,4531,4535,4539,4544,4548,4553,4557,4561],{"type":993,"tag":1026,"props":4528,"children":4529},{"style":1058},[4530],{"type":998,"value":1384},{"type":993,"tag":1026,"props":4532,"children":4533},{"style":1041},[4534],{"type":998,"value":1389},{"type":993,"tag":1026,"props":4536,"children":4537},{"style":1047},[4538],{"type":998,"value":1394},{"type":993,"tag":1026,"props":4540,"children":4541},{"style":1275},[4542],{"type":998,"value":4543},"\"All high scores: ",{"type":993,"tag":1026,"props":4545,"children":4546},{"style":1058},[4547],{"type":998,"value":1404},{"type":993,"tag":1026,"props":4549,"children":4550},{"style":1041},[4551],{"type":998,"value":4552},"all_high_scores",{"type":993,"tag":1026,"props":4554,"children":4555},{"style":1058},[4556],{"type":998,"value":1414},{"type":993,"tag":1026,"props":4558,"children":4559},{"style":1275},[4560],{"type":998,"value":1419},{"type":993,"tag":1026,"props":4562,"children":4563},{"style":1041},[4564],{"type":998,"value":1085},{"type":993,"tag":1026,"props":4566,"children":4567},{"class":1028,"line":136},[4568],{"type":993,"tag":1026,"props":4569,"children":4570},{"emptyLinePlaceholder":13},[4571],{"type":998,"value":1163},{"type":993,"tag":1026,"props":4573,"children":4574},{"class":1028,"line":146},[4575],{"type":993,"tag":1026,"props":4576,"children":4577},{"style":1032},[4578],{"type":998,"value":4579},"# Conditional student data merging\n",{"type":993,"tag":1026,"props":4581,"children":4582},{"class":1028,"line":155},[4583,4587,4592,4597,4601,4605],{"type":993,"tag":1026,"props":4584,"children":4585},{"style":1047},[4586],{"type":998,"value":3149},{"type":993,"tag":1026,"props":4588,"children":4589},{"style":3152},[4590],{"type":998,"value":4591}," merge_student_data",{"type":993,"tag":1026,"props":4593,"children":4594},{"style":1041},[4595],{"type":998,"value":4596},"(names, math_scores, science_scores, min_score",{"type":993,"tag":1026,"props":4598,"children":4599},{"style":1047},[4600],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4602,"children":4603},{"style":1058},[4604],{"type":998,"value":4143},{"type":993,"tag":1026,"props":4606,"children":4607},{"style":1041},[4608],{"type":998,"value":3174},{"type":993,"tag":1026,"props":4610,"children":4611},{"class":1028,"line":164},[4612,4617,4621],{"type":993,"tag":1026,"props":4613,"children":4614},{"style":1041},[4615],{"type":998,"value":4616},"    qualified_students ",{"type":993,"tag":1026,"props":4618,"children":4619},{"style":1047},[4620],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4622,"children":4623},{"style":1041},[4624],{"type":998,"value":2909},{"type":993,"tag":1026,"props":4626,"children":4627},{"class":1028,"line":173},[4628,4633,4638,4642,4646],{"type":993,"tag":1026,"props":4629,"children":4630},{"style":1047},[4631],{"type":998,"value":4632},"    for",{"type":993,"tag":1026,"props":4634,"children":4635},{"style":1041},[4636],{"type":998,"value":4637}," name, math, science ",{"type":993,"tag":1026,"props":4639,"children":4640},{"style":1047},[4641],{"type":998,"value":3825},{"type":993,"tag":1026,"props":4643,"children":4644},{"style":1058},[4645],{"type":998,"value":3830},{"type":993,"tag":1026,"props":4647,"children":4648},{"style":1041},[4649],{"type":998,"value":4650},"(names, math_scores, science_scores):\n",{"type":993,"tag":1026,"props":4652,"children":4653},{"class":1028,"line":182},[4654,4659,4664,4668,4673,4678,4683,4687],{"type":993,"tag":1026,"props":4655,"children":4656},{"style":1047},[4657],{"type":998,"value":4658},"        if",{"type":993,"tag":1026,"props":4660,"children":4661},{"style":1041},[4662],{"type":998,"value":4663}," math ",{"type":993,"tag":1026,"props":4665,"children":4666},{"style":1047},[4667],{"type":998,"value":4342},{"type":993,"tag":1026,"props":4669,"children":4670},{"style":1041},[4671],{"type":998,"value":4672}," min_score ",{"type":993,"tag":1026,"props":4674,"children":4675},{"style":1047},[4676],{"type":998,"value":4677},"and",{"type":993,"tag":1026,"props":4679,"children":4680},{"style":1041},[4681],{"type":998,"value":4682}," science ",{"type":993,"tag":1026,"props":4684,"children":4685},{"style":1047},[4686],{"type":998,"value":4342},{"type":993,"tag":1026,"props":4688,"children":4689},{"style":1041},[4690],{"type":998,"value":4691}," min_score:\n",{"type":993,"tag":1026,"props":4693,"children":4694},{"class":1028,"line":191},[4695,4700,4704],{"type":993,"tag":1026,"props":4696,"children":4697},{"style":1041},[4698],{"type":998,"value":4699},"            student_data ",{"type":993,"tag":1026,"props":4701,"children":4702},{"style":1047},[4703],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4705,"children":4706},{"style":1041},[4707],{"type":998,"value":4708}," (name, math, science)\n",{"type":993,"tag":1026,"props":4710,"children":4711},{"class":1028,"line":201},[4712,4717,4722],{"type":993,"tag":1026,"props":4713,"children":4714},{"style":1041},[4715],{"type":998,"value":4716},"            qualified_students ",{"type":993,"tag":1026,"props":4718,"children":4719},{"style":1047},[4720],{"type":998,"value":4721},"+=",{"type":993,"tag":1026,"props":4723,"children":4724},{"style":1041},[4725],{"type":998,"value":4726}," (student_data,)\n",{"type":993,"tag":1026,"props":4728,"children":4729},{"class":1028,"line":210},[4730,4734],{"type":993,"tag":1026,"props":4731,"children":4732},{"style":1047},[4733],{"type":998,"value":3268},{"type":993,"tag":1026,"props":4735,"children":4736},{"style":1041},[4737],{"type":998,"value":4738}," qualified_students\n",{"type":993,"tag":1026,"props":4740,"children":4741},{"class":1028,"line":219},[4742],{"type":993,"tag":1026,"props":4743,"children":4744},{"emptyLinePlaceholder":13},[4745],{"type":998,"value":1163},{"type":993,"tag":1026,"props":4747,"children":4748},{"class":1028,"line":228},[4749,4754,4758],{"type":993,"tag":1026,"props":4750,"children":4751},{"style":1041},[4752],{"type":998,"value":4753},"qualified ",{"type":993,"tag":1026,"props":4755,"children":4756},{"style":1047},[4757],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4759,"children":4760},{"style":1041},[4761],{"type":998,"value":4762}," merge_student_data(student_names, scores_math, scores_science)\n",{"type":993,"tag":1026,"props":4764,"children":4765},{"class":1028,"line":238},[4766,4770,4774,4778,4783,4787,4792,4796,4800],{"type":993,"tag":1026,"props":4767,"children":4768},{"style":1058},[4769],{"type":998,"value":1384},{"type":993,"tag":1026,"props":4771,"children":4772},{"style":1041},[4773],{"type":998,"value":1389},{"type":993,"tag":1026,"props":4775,"children":4776},{"style":1047},[4777],{"type":998,"value":1394},{"type":993,"tag":1026,"props":4779,"children":4780},{"style":1275},[4781],{"type":998,"value":4782},"\"Qualified students: ",{"type":993,"tag":1026,"props":4784,"children":4785},{"style":1058},[4786],{"type":998,"value":1404},{"type":993,"tag":1026,"props":4788,"children":4789},{"style":1041},[4790],{"type":998,"value":4791},"qualified",{"type":993,"tag":1026,"props":4793,"children":4794},{"style":1058},[4795],{"type":998,"value":1414},{"type":993,"tag":1026,"props":4797,"children":4798},{"style":1275},[4799],{"type":998,"value":1419},{"type":993,"tag":1026,"props":4801,"children":4802},{"style":1041},[4803],{"type":998,"value":1085},{"type":993,"tag":1631,"props":4805,"children":4807},{"id":4806},"merging-with-transformation",[4808],{"type":998,"value":4809},"Merging with Transformation",{"type":993,"tag":1001,"props":4811,"children":4812},{},[4813],{"type":998,"value":4814},"Combining tuples while applying transformations to elements during the merge process.",{"type":993,"tag":1012,"props":4816,"children":4817},{},[4818],{"type":993,"tag":1016,"props":4819,"children":4821},{"className":1018,"code":4820,"language":6,"meta":8,"style":8},"# Merging with transformations\ntemperatures_f = (68, 75, 82, 90)\ntemperatures_c = (20, 24, 28, 32)\n\n# Transform and merge\ndef fahrenheit_to_celsius(f):\n    return round((f - 32) * 5/9, 1)\n\n# Convert Fahrenheit and merge with Celsius\nconverted_f = tuple(fahrenheit_to_celsius(temp) for temp in temperatures_f)\nall_celsius = converted_f + temperatures_c\n\nprint(f\"Original F: {temperatures_f}\")\nprint(f\"Converted to C: {converted_f}\")\nprint(f\"All Celsius: {all_celsius}\")\n\n# Grade transformation during merge\nraw_scores = (85, 92, 78, 96, 88)\nbonus_scores = (3, 5, 2, 4, 6)\n\n# Apply bonus and merge\ndef apply_bonus(score, bonus):\n    return min(score + bonus, 100)  # Cap at 100\n\nfinal_scores = tuple(apply_bonus(score, bonus) \n                    for score, bonus in zip(raw_scores, bonus_scores))\n\nall_scores = raw_scores + final_scores\nprint(f\"Raw scores: {raw_scores}\")\nprint(f\"Final scores: {final_scores}\")\nprint(f\"Combined: {all_scores}\")\n",[4822],{"type":993,"tag":1022,"props":4823,"children":4824},{"__ignoreMap":8},[4825,4833,4884,4934,4941,4949,4966,5027,5034,5042,5081,5107,5114,5155,5196,5237,5244,5252,5308,5364,5371,5379,5396,5436,5443,5464,5490,5497,5523,5564,5605],{"type":993,"tag":1026,"props":4826,"children":4827},{"class":1028,"line":12},[4828],{"type":993,"tag":1026,"props":4829,"children":4830},{"style":1032},[4831],{"type":998,"value":4832},"# Merging with transformations\n",{"type":993,"tag":1026,"props":4834,"children":4835},{"class":1028,"line":27},[4836,4841,4845,4849,4854,4858,4863,4867,4871,4875,4880],{"type":993,"tag":1026,"props":4837,"children":4838},{"style":1041},[4839],{"type":998,"value":4840},"temperatures_f ",{"type":993,"tag":1026,"props":4842,"children":4843},{"style":1047},[4844],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4846,"children":4847},{"style":1041},[4848],{"type":998,"value":1055},{"type":993,"tag":1026,"props":4850,"children":4851},{"style":1058},[4852],{"type":998,"value":4853},"68",{"type":993,"tag":1026,"props":4855,"children":4856},{"style":1041},[4857],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4859,"children":4860},{"style":1058},[4861],{"type":998,"value":4862},"75",{"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":4213},{"type":993,"tag":1026,"props":4872,"children":4873},{"style":1041},[4874],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4876,"children":4877},{"style":1058},[4878],{"type":998,"value":4879},"90",{"type":993,"tag":1026,"props":4881,"children":4882},{"style":1041},[4883],{"type":998,"value":1085},{"type":993,"tag":1026,"props":4885,"children":4886},{"class":1028,"line":36},[4887,4892,4896,4900,4904,4908,4913,4917,4921,4925,4930],{"type":993,"tag":1026,"props":4888,"children":4889},{"style":1041},[4890],{"type":998,"value":4891},"temperatures_c ",{"type":993,"tag":1026,"props":4893,"children":4894},{"style":1047},[4895],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4897,"children":4898},{"style":1041},[4899],{"type":998,"value":1055},{"type":993,"tag":1026,"props":4901,"children":4902},{"style":1058},[4903],{"type":998,"value":1193},{"type":993,"tag":1026,"props":4905,"children":4906},{"style":1041},[4907],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4909,"children":4910},{"style":1058},[4911],{"type":998,"value":4912},"24",{"type":993,"tag":1026,"props":4914,"children":4915},{"style":1041},[4916],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4918,"children":4919},{"style":1058},[4920],{"type":998,"value":3640},{"type":993,"tag":1026,"props":4922,"children":4923},{"style":1041},[4924],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4926,"children":4927},{"style":1058},[4928],{"type":998,"value":4929},"32",{"type":993,"tag":1026,"props":4931,"children":4932},{"style":1041},[4933],{"type":998,"value":1085},{"type":993,"tag":1026,"props":4935,"children":4936},{"class":1028,"line":45},[4937],{"type":993,"tag":1026,"props":4938,"children":4939},{"emptyLinePlaceholder":13},[4940],{"type":998,"value":1163},{"type":993,"tag":1026,"props":4942,"children":4943},{"class":1028,"line":54},[4944],{"type":993,"tag":1026,"props":4945,"children":4946},{"style":1032},[4947],{"type":998,"value":4948},"# Transform and merge\n",{"type":993,"tag":1026,"props":4950,"children":4951},{"class":1028,"line":63},[4952,4956,4961],{"type":993,"tag":1026,"props":4953,"children":4954},{"style":1047},[4955],{"type":998,"value":3149},{"type":993,"tag":1026,"props":4957,"children":4958},{"style":3152},[4959],{"type":998,"value":4960}," fahrenheit_to_celsius",{"type":993,"tag":1026,"props":4962,"children":4963},{"style":1041},[4964],{"type":998,"value":4965},"(f):\n",{"type":993,"tag":1026,"props":4967,"children":4968},{"class":1028,"line":72},[4969,4973,4978,4983,4987,4992,4996,5001,5006,5011,5015,5019,5023],{"type":993,"tag":1026,"props":4970,"children":4971},{"style":1047},[4972],{"type":998,"value":3268},{"type":993,"tag":1026,"props":4974,"children":4975},{"style":1058},[4976],{"type":998,"value":4977}," round",{"type":993,"tag":1026,"props":4979,"children":4980},{"style":1041},[4981],{"type":998,"value":4982},"((f ",{"type":993,"tag":1026,"props":4984,"children":4985},{"style":1047},[4986],{"type":998,"value":2521},{"type":993,"tag":1026,"props":4988,"children":4989},{"style":1058},[4990],{"type":998,"value":4991}," 32",{"type":993,"tag":1026,"props":4993,"children":4994},{"style":1041},[4995],{"type":998,"value":2942},{"type":993,"tag":1026,"props":4997,"children":4998},{"style":1047},[4999],{"type":998,"value":5000},"*",{"type":993,"tag":1026,"props":5002,"children":5003},{"style":1058},[5004],{"type":998,"value":5005}," 5",{"type":993,"tag":1026,"props":5007,"children":5008},{"style":1047},[5009],{"type":998,"value":5010},"/",{"type":993,"tag":1026,"props":5012,"children":5013},{"style":1058},[5014],{"type":998,"value":1778},{"type":993,"tag":1026,"props":5016,"children":5017},{"style":1041},[5018],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5020,"children":5021},{"style":1058},[5022],{"type":998,"value":1061},{"type":993,"tag":1026,"props":5024,"children":5025},{"style":1041},[5026],{"type":998,"value":1085},{"type":993,"tag":1026,"props":5028,"children":5029},{"class":1028,"line":81},[5030],{"type":993,"tag":1026,"props":5031,"children":5032},{"emptyLinePlaceholder":13},[5033],{"type":998,"value":1163},{"type":993,"tag":1026,"props":5035,"children":5036},{"class":1028,"line":91},[5037],{"type":993,"tag":1026,"props":5038,"children":5039},{"style":1032},[5040],{"type":998,"value":5041},"# Convert Fahrenheit and merge with Celsius\n",{"type":993,"tag":1026,"props":5043,"children":5044},{"class":1028,"line":100},[5045,5050,5054,5058,5063,5067,5072,5076],{"type":993,"tag":1026,"props":5046,"children":5047},{"style":1041},[5048],{"type":998,"value":5049},"converted_f ",{"type":993,"tag":1026,"props":5051,"children":5052},{"style":1047},[5053],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5055,"children":5056},{"style":1058},[5057],{"type":998,"value":3719},{"type":993,"tag":1026,"props":5059,"children":5060},{"style":1041},[5061],{"type":998,"value":5062},"(fahrenheit_to_celsius(temp) ",{"type":993,"tag":1026,"props":5064,"children":5065},{"style":1047},[5066],{"type":998,"value":3815},{"type":993,"tag":1026,"props":5068,"children":5069},{"style":1041},[5070],{"type":998,"value":5071}," temp ",{"type":993,"tag":1026,"props":5073,"children":5074},{"style":1047},[5075],{"type":998,"value":3825},{"type":993,"tag":1026,"props":5077,"children":5078},{"style":1041},[5079],{"type":998,"value":5080}," temperatures_f)\n",{"type":993,"tag":1026,"props":5082,"children":5083},{"class":1028,"line":109},[5084,5089,5093,5098,5102],{"type":993,"tag":1026,"props":5085,"children":5086},{"style":1041},[5087],{"type":998,"value":5088},"all_celsius ",{"type":993,"tag":1026,"props":5090,"children":5091},{"style":1047},[5092],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5094,"children":5095},{"style":1041},[5096],{"type":998,"value":5097}," converted_f ",{"type":993,"tag":1026,"props":5099,"children":5100},{"style":1047},[5101],{"type":998,"value":1150},{"type":993,"tag":1026,"props":5103,"children":5104},{"style":1041},[5105],{"type":998,"value":5106}," temperatures_c\n",{"type":993,"tag":1026,"props":5108,"children":5109},{"class":1028,"line":118},[5110],{"type":993,"tag":1026,"props":5111,"children":5112},{"emptyLinePlaceholder":13},[5113],{"type":998,"value":1163},{"type":993,"tag":1026,"props":5115,"children":5116},{"class":1028,"line":127},[5117,5121,5125,5129,5134,5138,5143,5147,5151],{"type":993,"tag":1026,"props":5118,"children":5119},{"style":1058},[5120],{"type":998,"value":1384},{"type":993,"tag":1026,"props":5122,"children":5123},{"style":1041},[5124],{"type":998,"value":1389},{"type":993,"tag":1026,"props":5126,"children":5127},{"style":1047},[5128],{"type":998,"value":1394},{"type":993,"tag":1026,"props":5130,"children":5131},{"style":1275},[5132],{"type":998,"value":5133},"\"Original F: ",{"type":993,"tag":1026,"props":5135,"children":5136},{"style":1058},[5137],{"type":998,"value":1404},{"type":993,"tag":1026,"props":5139,"children":5140},{"style":1041},[5141],{"type":998,"value":5142},"temperatures_f",{"type":993,"tag":1026,"props":5144,"children":5145},{"style":1058},[5146],{"type":998,"value":1414},{"type":993,"tag":1026,"props":5148,"children":5149},{"style":1275},[5150],{"type":998,"value":1419},{"type":993,"tag":1026,"props":5152,"children":5153},{"style":1041},[5154],{"type":998,"value":1085},{"type":993,"tag":1026,"props":5156,"children":5157},{"class":1028,"line":136},[5158,5162,5166,5170,5175,5179,5184,5188,5192],{"type":993,"tag":1026,"props":5159,"children":5160},{"style":1058},[5161],{"type":998,"value":1384},{"type":993,"tag":1026,"props":5163,"children":5164},{"style":1041},[5165],{"type":998,"value":1389},{"type":993,"tag":1026,"props":5167,"children":5168},{"style":1047},[5169],{"type":998,"value":1394},{"type":993,"tag":1026,"props":5171,"children":5172},{"style":1275},[5173],{"type":998,"value":5174},"\"Converted to C: ",{"type":993,"tag":1026,"props":5176,"children":5177},{"style":1058},[5178],{"type":998,"value":1404},{"type":993,"tag":1026,"props":5180,"children":5181},{"style":1041},[5182],{"type":998,"value":5183},"converted_f",{"type":993,"tag":1026,"props":5185,"children":5186},{"style":1058},[5187],{"type":998,"value":1414},{"type":993,"tag":1026,"props":5189,"children":5190},{"style":1275},[5191],{"type":998,"value":1419},{"type":993,"tag":1026,"props":5193,"children":5194},{"style":1041},[5195],{"type":998,"value":1085},{"type":993,"tag":1026,"props":5197,"children":5198},{"class":1028,"line":146},[5199,5203,5207,5211,5216,5220,5225,5229,5233],{"type":993,"tag":1026,"props":5200,"children":5201},{"style":1058},[5202],{"type":998,"value":1384},{"type":993,"tag":1026,"props":5204,"children":5205},{"style":1041},[5206],{"type":998,"value":1389},{"type":993,"tag":1026,"props":5208,"children":5209},{"style":1047},[5210],{"type":998,"value":1394},{"type":993,"tag":1026,"props":5212,"children":5213},{"style":1275},[5214],{"type":998,"value":5215},"\"All Celsius: ",{"type":993,"tag":1026,"props":5217,"children":5218},{"style":1058},[5219],{"type":998,"value":1404},{"type":993,"tag":1026,"props":5221,"children":5222},{"style":1041},[5223],{"type":998,"value":5224},"all_celsius",{"type":993,"tag":1026,"props":5226,"children":5227},{"style":1058},[5228],{"type":998,"value":1414},{"type":993,"tag":1026,"props":5230,"children":5231},{"style":1275},[5232],{"type":998,"value":1419},{"type":993,"tag":1026,"props":5234,"children":5235},{"style":1041},[5236],{"type":998,"value":1085},{"type":993,"tag":1026,"props":5238,"children":5239},{"class":1028,"line":155},[5240],{"type":993,"tag":1026,"props":5241,"children":5242},{"emptyLinePlaceholder":13},[5243],{"type":998,"value":1163},{"type":993,"tag":1026,"props":5245,"children":5246},{"class":1028,"line":164},[5247],{"type":993,"tag":1026,"props":5248,"children":5249},{"style":1032},[5250],{"type":998,"value":5251},"# Grade transformation during merge\n",{"type":993,"tag":1026,"props":5253,"children":5254},{"class":1028,"line":173},[5255,5260,5264,5268,5272,5276,5280,5284,5288,5292,5296,5300,5304],{"type":993,"tag":1026,"props":5256,"children":5257},{"style":1041},[5258],{"type":998,"value":5259},"raw_scores ",{"type":993,"tag":1026,"props":5261,"children":5262},{"style":1047},[5263],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5265,"children":5266},{"style":1041},[5267],{"type":998,"value":1055},{"type":993,"tag":1026,"props":5269,"children":5270},{"style":1058},[5271],{"type":998,"value":4143},{"type":993,"tag":1026,"props":5273,"children":5274},{"style":1041},[5275],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5277,"children":5278},{"style":1058},[5279],{"type":998,"value":4152},{"type":993,"tag":1026,"props":5281,"children":5282},{"style":1041},[5283],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5285,"children":5286},{"style":1058},[5287],{"type":998,"value":4161},{"type":993,"tag":1026,"props":5289,"children":5290},{"style":1041},[5291],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5293,"children":5294},{"style":1058},[5295],{"type":998,"value":4170},{"type":993,"tag":1026,"props":5297,"children":5298},{"style":1041},[5299],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5301,"children":5302},{"style":1058},[5303],{"type":998,"value":4195},{"type":993,"tag":1026,"props":5305,"children":5306},{"style":1041},[5307],{"type":998,"value":1085},{"type":993,"tag":1026,"props":5309,"children":5310},{"class":1028,"line":182},[5311,5316,5320,5324,5328,5332,5336,5340,5344,5348,5352,5356,5360],{"type":993,"tag":1026,"props":5312,"children":5313},{"style":1041},[5314],{"type":998,"value":5315},"bonus_scores ",{"type":993,"tag":1026,"props":5317,"children":5318},{"style":1047},[5319],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5321,"children":5322},{"style":1041},[5323],{"type":998,"value":1055},{"type":993,"tag":1026,"props":5325,"children":5326},{"style":1058},[5327],{"type":998,"value":1080},{"type":993,"tag":1026,"props":5329,"children":5330},{"style":1041},[5331],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5333,"children":5334},{"style":1058},[5335],{"type":998,"value":1115},{"type":993,"tag":1026,"props":5337,"children":5338},{"style":1041},[5339],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5341,"children":5342},{"style":1058},[5343],{"type":998,"value":1071},{"type":993,"tag":1026,"props":5345,"children":5346},{"style":1041},[5347],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5349,"children":5350},{"style":1058},[5351],{"type":998,"value":1106},{"type":993,"tag":1026,"props":5353,"children":5354},{"style":1041},[5355],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5357,"children":5358},{"style":1058},[5359],{"type":998,"value":1124},{"type":993,"tag":1026,"props":5361,"children":5362},{"style":1041},[5363],{"type":998,"value":1085},{"type":993,"tag":1026,"props":5365,"children":5366},{"class":1028,"line":191},[5367],{"type":993,"tag":1026,"props":5368,"children":5369},{"emptyLinePlaceholder":13},[5370],{"type":998,"value":1163},{"type":993,"tag":1026,"props":5372,"children":5373},{"class":1028,"line":201},[5374],{"type":993,"tag":1026,"props":5375,"children":5376},{"style":1032},[5377],{"type":998,"value":5378},"# Apply bonus and merge\n",{"type":993,"tag":1026,"props":5380,"children":5381},{"class":1028,"line":210},[5382,5386,5391],{"type":993,"tag":1026,"props":5383,"children":5384},{"style":1047},[5385],{"type":998,"value":3149},{"type":993,"tag":1026,"props":5387,"children":5388},{"style":3152},[5389],{"type":998,"value":5390}," apply_bonus",{"type":993,"tag":1026,"props":5392,"children":5393},{"style":1041},[5394],{"type":998,"value":5395},"(score, bonus):\n",{"type":993,"tag":1026,"props":5397,"children":5398},{"class":1028,"line":219},[5399,5403,5408,5412,5416,5421,5426,5431],{"type":993,"tag":1026,"props":5400,"children":5401},{"style":1047},[5402],{"type":998,"value":3268},{"type":993,"tag":1026,"props":5404,"children":5405},{"style":1058},[5406],{"type":998,"value":5407}," min",{"type":993,"tag":1026,"props":5409,"children":5410},{"style":1041},[5411],{"type":998,"value":4311},{"type":993,"tag":1026,"props":5413,"children":5414},{"style":1047},[5415],{"type":998,"value":1150},{"type":993,"tag":1026,"props":5417,"children":5418},{"style":1041},[5419],{"type":998,"value":5420}," bonus, ",{"type":993,"tag":1026,"props":5422,"children":5423},{"style":1058},[5424],{"type":998,"value":5425},"100",{"type":993,"tag":1026,"props":5427,"children":5428},{"style":1041},[5429],{"type":998,"value":5430},")  ",{"type":993,"tag":1026,"props":5432,"children":5433},{"style":1032},[5434],{"type":998,"value":5435},"# Cap at 100\n",{"type":993,"tag":1026,"props":5437,"children":5438},{"class":1028,"line":228},[5439],{"type":993,"tag":1026,"props":5440,"children":5441},{"emptyLinePlaceholder":13},[5442],{"type":998,"value":1163},{"type":993,"tag":1026,"props":5444,"children":5445},{"class":1028,"line":238},[5446,5451,5455,5459],{"type":993,"tag":1026,"props":5447,"children":5448},{"style":1041},[5449],{"type":998,"value":5450},"final_scores ",{"type":993,"tag":1026,"props":5452,"children":5453},{"style":1047},[5454],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5456,"children":5457},{"style":1058},[5458],{"type":998,"value":3719},{"type":993,"tag":1026,"props":5460,"children":5461},{"style":1041},[5462],{"type":998,"value":5463},"(apply_bonus(score, bonus) \n",{"type":993,"tag":1026,"props":5465,"children":5466},{"class":1028,"line":247},[5467,5472,5477,5481,5485],{"type":993,"tag":1026,"props":5468,"children":5469},{"style":1047},[5470],{"type":998,"value":5471},"                    for",{"type":993,"tag":1026,"props":5473,"children":5474},{"style":1041},[5475],{"type":998,"value":5476}," score, bonus ",{"type":993,"tag":1026,"props":5478,"children":5479},{"style":1047},[5480],{"type":998,"value":3825},{"type":993,"tag":1026,"props":5482,"children":5483},{"style":1058},[5484],{"type":998,"value":3830},{"type":993,"tag":1026,"props":5486,"children":5487},{"style":1041},[5488],{"type":998,"value":5489},"(raw_scores, bonus_scores))\n",{"type":993,"tag":1026,"props":5491,"children":5492},{"class":1028,"line":256},[5493],{"type":993,"tag":1026,"props":5494,"children":5495},{"emptyLinePlaceholder":13},[5496],{"type":998,"value":1163},{"type":993,"tag":1026,"props":5498,"children":5499},{"class":1028,"line":265},[5500,5505,5509,5514,5518],{"type":993,"tag":1026,"props":5501,"children":5502},{"style":1041},[5503],{"type":998,"value":5504},"all_scores ",{"type":993,"tag":1026,"props":5506,"children":5507},{"style":1047},[5508],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5510,"children":5511},{"style":1041},[5512],{"type":998,"value":5513}," raw_scores ",{"type":993,"tag":1026,"props":5515,"children":5516},{"style":1047},[5517],{"type":998,"value":1150},{"type":993,"tag":1026,"props":5519,"children":5520},{"style":1041},[5521],{"type":998,"value":5522}," final_scores\n",{"type":993,"tag":1026,"props":5524,"children":5525},{"class":1028,"line":274},[5526,5530,5534,5538,5543,5547,5552,5556,5560],{"type":993,"tag":1026,"props":5527,"children":5528},{"style":1058},[5529],{"type":998,"value":1384},{"type":993,"tag":1026,"props":5531,"children":5532},{"style":1041},[5533],{"type":998,"value":1389},{"type":993,"tag":1026,"props":5535,"children":5536},{"style":1047},[5537],{"type":998,"value":1394},{"type":993,"tag":1026,"props":5539,"children":5540},{"style":1275},[5541],{"type":998,"value":5542},"\"Raw scores: ",{"type":993,"tag":1026,"props":5544,"children":5545},{"style":1058},[5546],{"type":998,"value":1404},{"type":993,"tag":1026,"props":5548,"children":5549},{"style":1041},[5550],{"type":998,"value":5551},"raw_scores",{"type":993,"tag":1026,"props":5553,"children":5554},{"style":1058},[5555],{"type":998,"value":1414},{"type":993,"tag":1026,"props":5557,"children":5558},{"style":1275},[5559],{"type":998,"value":1419},{"type":993,"tag":1026,"props":5561,"children":5562},{"style":1041},[5563],{"type":998,"value":1085},{"type":993,"tag":1026,"props":5565,"children":5566},{"class":1028,"line":284},[5567,5571,5575,5579,5584,5588,5593,5597,5601],{"type":993,"tag":1026,"props":5568,"children":5569},{"style":1058},[5570],{"type":998,"value":1384},{"type":993,"tag":1026,"props":5572,"children":5573},{"style":1041},[5574],{"type":998,"value":1389},{"type":993,"tag":1026,"props":5576,"children":5577},{"style":1047},[5578],{"type":998,"value":1394},{"type":993,"tag":1026,"props":5580,"children":5581},{"style":1275},[5582],{"type":998,"value":5583},"\"Final scores: ",{"type":993,"tag":1026,"props":5585,"children":5586},{"style":1058},[5587],{"type":998,"value":1404},{"type":993,"tag":1026,"props":5589,"children":5590},{"style":1041},[5591],{"type":998,"value":5592},"final_scores",{"type":993,"tag":1026,"props":5594,"children":5595},{"style":1058},[5596],{"type":998,"value":1414},{"type":993,"tag":1026,"props":5598,"children":5599},{"style":1275},[5600],{"type":998,"value":1419},{"type":993,"tag":1026,"props":5602,"children":5603},{"style":1041},[5604],{"type":998,"value":1085},{"type":993,"tag":1026,"props":5606,"children":5607},{"class":1028,"line":293},[5608,5612,5616,5620,5625,5629,5634,5638,5642],{"type":993,"tag":1026,"props":5609,"children":5610},{"style":1058},[5611],{"type":998,"value":1384},{"type":993,"tag":1026,"props":5613,"children":5614},{"style":1041},[5615],{"type":998,"value":1389},{"type":993,"tag":1026,"props":5617,"children":5618},{"style":1047},[5619],{"type":998,"value":1394},{"type":993,"tag":1026,"props":5621,"children":5622},{"style":1275},[5623],{"type":998,"value":5624},"\"Combined: ",{"type":993,"tag":1026,"props":5626,"children":5627},{"style":1058},[5628],{"type":998,"value":1404},{"type":993,"tag":1026,"props":5630,"children":5631},{"style":1041},[5632],{"type":998,"value":5633},"all_scores",{"type":993,"tag":1026,"props":5635,"children":5636},{"style":1058},[5637],{"type":998,"value":1414},{"type":993,"tag":1026,"props":5639,"children":5640},{"style":1275},[5641],{"type":998,"value":1419},{"type":993,"tag":1026,"props":5643,"children":5644},{"style":1041},[5645],{"type":998,"value":1085},{"type":993,"tag":5647,"props":5648,"children":5650},"content-exercise",{":widget-view":5649,"category":6,"id":428},"true",[],{"type":993,"tag":1507,"props":5652,"children":5654},{"id":5653},"merging-multiple-tuples",[5655],{"type":998,"value":5656},"🔢 Merging Multiple Tuples",{"type":993,"tag":1001,"props":5658,"children":5659},{},[5660],{"type":998,"value":5661},"When working with many tuples, you need efficient strategies to combine them all into a single result without creating intermediate tuples repeatedly.",{"type":993,"tag":1526,"props":5663,"children":5666},{"emoji":5664,"title":5665,"type":1530},"🔢","Multiple Tuple Merging",[5667,5675,5698,5706,5729,5737],{"type":993,"tag":1001,"props":5668,"children":5669},{},[5670],{"type":993,"tag":1536,"props":5671,"children":5672},{},[5673],{"type":998,"value":5674},"Efficient Strategies:",{"type":993,"tag":1542,"props":5676,"children":5677},{},[5678,5683,5688,5693],{"type":993,"tag":1546,"props":5679,"children":5680},{},[5681],{"type":998,"value":5682},"Use sum() with empty tuple as start value",{"type":993,"tag":1546,"props":5684,"children":5685},{},[5686],{"type":998,"value":5687},"Employ itertools.chain() for lazy evaluation",{"type":993,"tag":1546,"props":5689,"children":5690},{},[5691],{"type":998,"value":5692},"Utilize comprehensions for complex merging",{"type":993,"tag":1546,"props":5694,"children":5695},{},[5696],{"type":998,"value":5697},"Apply reduce() for functional approach",{"type":993,"tag":1001,"props":5699,"children":5700},{},[5701],{"type":993,"tag":1536,"props":5702,"children":5703},{},[5704],{"type":998,"value":5705},"Performance Considerations:",{"type":993,"tag":1542,"props":5707,"children":5708},{},[5709,5714,5719,5724],{"type":993,"tag":1546,"props":5710,"children":5711},{},[5712],{"type":998,"value":5713},"sum() creates many intermediate tuples",{"type":993,"tag":1546,"props":5715,"children":5716},{},[5717],{"type":998,"value":5718},"itertools.chain() is memory efficient",{"type":993,"tag":1546,"props":5720,"children":5721},{},[5722],{"type":998,"value":5723},"Comprehensions balance readability and efficiency",{"type":993,"tag":1546,"props":5725,"children":5726},{},[5727],{"type":998,"value":5728},"Choose method based on data size and requirements",{"type":993,"tag":1001,"props":5730,"children":5731},{},[5732],{"type":993,"tag":1536,"props":5733,"children":5734},{},[5735],{"type":998,"value":5736},"Best Practices:",{"type":993,"tag":1542,"props":5738,"children":5739},{},[5740,5745,5750],{"type":993,"tag":1546,"props":5741,"children":5742},{},[5743],{"type":998,"value":5744},"Use itertools.chain() for large datasets",{"type":993,"tag":1546,"props":5746,"children":5747},{},[5748],{"type":998,"value":5749},"Use sum() for simple cases with few tuples",{"type":993,"tag":1546,"props":5751,"children":5752},{},[5753],{"type":998,"value":5754},"Use comprehensions when filtering is needed",{"type":993,"tag":1631,"props":5756,"children":5758},{"id":5757},"using-sum-for-multiple-concatenation",[5759],{"type":998,"value":5760},"Using sum() for Multiple Concatenation",{"type":993,"tag":1001,"props":5762,"children":5763},{},[5764],{"type":998,"value":5765},"Efficient concatenation of multiple tuples using the sum() function.",{"type":993,"tag":1012,"props":5767,"children":5768},{},[5769],{"type":993,"tag":1016,"props":5770,"children":5772},{"className":1018,"code":5771,"language":6,"meta":8,"style":8},"# Multiple tuple concatenation with sum()\ntuple_list = [\n    (1, 2, 3),\n    (4, 5, 6),\n    (7, 8, 9),\n    (10, 11, 12)\n]\n\n# Merge all tuples using sum()\nmerged = sum(tuple_list, ())  # Start with empty tuple\nprint(f\"Merged tuples: {merged}\")\n\n# Multiple data sources\nuser_data = [\n    (\"Alice\", 25),\n    (\"Engineer\",),\n    (\"alice@email.com\", \"555-1234\"),\n    (\"preferences\", \"dark_mode\")\n]\n\ncomplete_user = sum(user_data, ())\nprint(f\"Complete user data: {complete_user}\")\n\n# Dynamic tuple collection\ndef collect_data(*data_sources):\n    return sum(data_sources, ())\n\nresult = collect_data(\n    (1, 2, 3),\n    (\"a\", \"b\"),\n    (True, False),\n    (3.14, 2.71)\n)\nprint(f\"Collected data: {result}\")\n",[5773],{"type":993,"tag":1022,"props":5774,"children":5775},{"__ignoreMap":8},[5776,5784,5801,5834,5865,5896,5929,5937,5944,5952,5979,6020,6027,6035,6051,6074,6090,6113,6137,6144,6151,6172,6213,6220,6228,6253,6269,6276,6293,6324,6347,6370,6395,6402],{"type":993,"tag":1026,"props":5777,"children":5778},{"class":1028,"line":12},[5779],{"type":993,"tag":1026,"props":5780,"children":5781},{"style":1032},[5782],{"type":998,"value":5783},"# Multiple tuple concatenation with sum()\n",{"type":993,"tag":1026,"props":5785,"children":5786},{"class":1028,"line":27},[5787,5792,5796],{"type":993,"tag":1026,"props":5788,"children":5789},{"style":1041},[5790],{"type":998,"value":5791},"tuple_list ",{"type":993,"tag":1026,"props":5793,"children":5794},{"style":1047},[5795],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5797,"children":5798},{"style":1041},[5799],{"type":998,"value":5800}," [\n",{"type":993,"tag":1026,"props":5802,"children":5803},{"class":1028,"line":36},[5804,5809,5813,5817,5821,5825,5829],{"type":993,"tag":1026,"props":5805,"children":5806},{"style":1041},[5807],{"type":998,"value":5808},"    (",{"type":993,"tag":1026,"props":5810,"children":5811},{"style":1058},[5812],{"type":998,"value":1061},{"type":993,"tag":1026,"props":5814,"children":5815},{"style":1041},[5816],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5818,"children":5819},{"style":1058},[5820],{"type":998,"value":1071},{"type":993,"tag":1026,"props":5822,"children":5823},{"style":1041},[5824],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5826,"children":5827},{"style":1058},[5828],{"type":998,"value":1080},{"type":993,"tag":1026,"props":5830,"children":5831},{"style":1041},[5832],{"type":998,"value":5833},"),\n",{"type":993,"tag":1026,"props":5835,"children":5836},{"class":1028,"line":45},[5837,5841,5845,5849,5853,5857,5861],{"type":993,"tag":1026,"props":5838,"children":5839},{"style":1041},[5840],{"type":998,"value":5808},{"type":993,"tag":1026,"props":5842,"children":5843},{"style":1058},[5844],{"type":998,"value":1106},{"type":993,"tag":1026,"props":5846,"children":5847},{"style":1041},[5848],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5850,"children":5851},{"style":1058},[5852],{"type":998,"value":1115},{"type":993,"tag":1026,"props":5854,"children":5855},{"style":1041},[5856],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5858,"children":5859},{"style":1058},[5860],{"type":998,"value":1124},{"type":993,"tag":1026,"props":5862,"children":5863},{"style":1041},[5864],{"type":998,"value":5833},{"type":993,"tag":1026,"props":5866,"children":5867},{"class":1028,"line":54},[5868,5872,5876,5880,5884,5888,5892],{"type":993,"tag":1026,"props":5869,"children":5870},{"style":1041},[5871],{"type":998,"value":5808},{"type":993,"tag":1026,"props":5873,"children":5874},{"style":1058},[5875],{"type":998,"value":1760},{"type":993,"tag":1026,"props":5877,"children":5878},{"style":1041},[5879],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5881,"children":5882},{"style":1058},[5883],{"type":998,"value":1769},{"type":993,"tag":1026,"props":5885,"children":5886},{"style":1041},[5887],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5889,"children":5890},{"style":1058},[5891],{"type":998,"value":1778},{"type":993,"tag":1026,"props":5893,"children":5894},{"style":1041},[5895],{"type":998,"value":5833},{"type":993,"tag":1026,"props":5897,"children":5898},{"class":1028,"line":63},[5899,5903,5907,5911,5916,5920,5925],{"type":993,"tag":1026,"props":5900,"children":5901},{"style":1041},[5902],{"type":998,"value":5808},{"type":993,"tag":1026,"props":5904,"children":5905},{"style":1058},[5906],{"type":998,"value":1184},{"type":993,"tag":1026,"props":5908,"children":5909},{"style":1041},[5910],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5912,"children":5913},{"style":1058},[5914],{"type":998,"value":5915},"11",{"type":993,"tag":1026,"props":5917,"children":5918},{"style":1041},[5919],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5921,"children":5922},{"style":1058},[5923],{"type":998,"value":5924},"12",{"type":993,"tag":1026,"props":5926,"children":5927},{"style":1041},[5928],{"type":998,"value":1085},{"type":993,"tag":1026,"props":5930,"children":5931},{"class":1028,"line":72},[5932],{"type":993,"tag":1026,"props":5933,"children":5934},{"style":1041},[5935],{"type":998,"value":5936},"]\n",{"type":993,"tag":1026,"props":5938,"children":5939},{"class":1028,"line":81},[5940],{"type":993,"tag":1026,"props":5941,"children":5942},{"emptyLinePlaceholder":13},[5943],{"type":998,"value":1163},{"type":993,"tag":1026,"props":5945,"children":5946},{"class":1028,"line":91},[5947],{"type":993,"tag":1026,"props":5948,"children":5949},{"style":1032},[5950],{"type":998,"value":5951},"# Merge all tuples using sum()\n",{"type":993,"tag":1026,"props":5953,"children":5954},{"class":1028,"line":100},[5955,5960,5964,5969,5974],{"type":993,"tag":1026,"props":5956,"children":5957},{"style":1041},[5958],{"type":998,"value":5959},"merged ",{"type":993,"tag":1026,"props":5961,"children":5962},{"style":1047},[5963],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5965,"children":5966},{"style":1058},[5967],{"type":998,"value":5968}," sum",{"type":993,"tag":1026,"props":5970,"children":5971},{"style":1041},[5972],{"type":998,"value":5973},"(tuple_list, ())  ",{"type":993,"tag":1026,"props":5975,"children":5976},{"style":1032},[5977],{"type":998,"value":5978},"# Start with empty tuple\n",{"type":993,"tag":1026,"props":5980,"children":5981},{"class":1028,"line":109},[5982,5986,5990,5994,5999,6003,6008,6012,6016],{"type":993,"tag":1026,"props":5983,"children":5984},{"style":1058},[5985],{"type":998,"value":1384},{"type":993,"tag":1026,"props":5987,"children":5988},{"style":1041},[5989],{"type":998,"value":1389},{"type":993,"tag":1026,"props":5991,"children":5992},{"style":1047},[5993],{"type":998,"value":1394},{"type":993,"tag":1026,"props":5995,"children":5996},{"style":1275},[5997],{"type":998,"value":5998},"\"Merged tuples: ",{"type":993,"tag":1026,"props":6000,"children":6001},{"style":1058},[6002],{"type":998,"value":1404},{"type":993,"tag":1026,"props":6004,"children":6005},{"style":1041},[6006],{"type":998,"value":6007},"merged",{"type":993,"tag":1026,"props":6009,"children":6010},{"style":1058},[6011],{"type":998,"value":1414},{"type":993,"tag":1026,"props":6013,"children":6014},{"style":1275},[6015],{"type":998,"value":1419},{"type":993,"tag":1026,"props":6017,"children":6018},{"style":1041},[6019],{"type":998,"value":1085},{"type":993,"tag":1026,"props":6021,"children":6022},{"class":1028,"line":118},[6023],{"type":993,"tag":1026,"props":6024,"children":6025},{"emptyLinePlaceholder":13},[6026],{"type":998,"value":1163},{"type":993,"tag":1026,"props":6028,"children":6029},{"class":1028,"line":127},[6030],{"type":993,"tag":1026,"props":6031,"children":6032},{"style":1032},[6033],{"type":998,"value":6034},"# Multiple data sources\n",{"type":993,"tag":1026,"props":6036,"children":6037},{"class":1028,"line":136},[6038,6043,6047],{"type":993,"tag":1026,"props":6039,"children":6040},{"style":1041},[6041],{"type":998,"value":6042},"user_data ",{"type":993,"tag":1026,"props":6044,"children":6045},{"style":1047},[6046],{"type":998,"value":1050},{"type":993,"tag":1026,"props":6048,"children":6049},{"style":1041},[6050],{"type":998,"value":5800},{"type":993,"tag":1026,"props":6052,"children":6053},{"class":1028,"line":146},[6054,6058,6062,6066,6070],{"type":993,"tag":1026,"props":6055,"children":6056},{"style":1041},[6057],{"type":998,"value":5808},{"type":993,"tag":1026,"props":6059,"children":6060},{"style":1275},[6061],{"type":998,"value":2229},{"type":993,"tag":1026,"props":6063,"children":6064},{"style":1041},[6065],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6067,"children":6068},{"style":1058},[6069],{"type":998,"value":2238},{"type":993,"tag":1026,"props":6071,"children":6072},{"style":1041},[6073],{"type":998,"value":5833},{"type":993,"tag":1026,"props":6075,"children":6076},{"class":1028,"line":155},[6077,6081,6085],{"type":993,"tag":1026,"props":6078,"children":6079},{"style":1041},[6080],{"type":998,"value":5808},{"type":993,"tag":1026,"props":6082,"children":6083},{"style":1275},[6084],{"type":998,"value":3665},{"type":993,"tag":1026,"props":6086,"children":6087},{"style":1041},[6088],{"type":998,"value":6089},",),\n",{"type":993,"tag":1026,"props":6091,"children":6092},{"class":1028,"line":164},[6093,6097,6101,6105,6109],{"type":993,"tag":1026,"props":6094,"children":6095},{"style":1041},[6096],{"type":998,"value":5808},{"type":993,"tag":1026,"props":6098,"children":6099},{"style":1275},[6100],{"type":998,"value":2263},{"type":993,"tag":1026,"props":6102,"children":6103},{"style":1041},[6104],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6106,"children":6107},{"style":1275},[6108],{"type":998,"value":2272},{"type":993,"tag":1026,"props":6110,"children":6111},{"style":1041},[6112],{"type":998,"value":5833},{"type":993,"tag":1026,"props":6114,"children":6115},{"class":1028,"line":173},[6116,6120,6125,6129,6133],{"type":993,"tag":1026,"props":6117,"children":6118},{"style":1041},[6119],{"type":998,"value":5808},{"type":993,"tag":1026,"props":6121,"children":6122},{"style":1275},[6123],{"type":998,"value":6124},"\"preferences\"",{"type":993,"tag":1026,"props":6126,"children":6127},{"style":1041},[6128],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6130,"children":6131},{"style":1275},[6132],{"type":998,"value":2297},{"type":993,"tag":1026,"props":6134,"children":6135},{"style":1041},[6136],{"type":998,"value":1085},{"type":993,"tag":1026,"props":6138,"children":6139},{"class":1028,"line":182},[6140],{"type":993,"tag":1026,"props":6141,"children":6142},{"style":1041},[6143],{"type":998,"value":5936},{"type":993,"tag":1026,"props":6145,"children":6146},{"class":1028,"line":191},[6147],{"type":993,"tag":1026,"props":6148,"children":6149},{"emptyLinePlaceholder":13},[6150],{"type":998,"value":1163},{"type":993,"tag":1026,"props":6152,"children":6153},{"class":1028,"line":201},[6154,6159,6163,6167],{"type":993,"tag":1026,"props":6155,"children":6156},{"style":1041},[6157],{"type":998,"value":6158},"complete_user ",{"type":993,"tag":1026,"props":6160,"children":6161},{"style":1047},[6162],{"type":998,"value":1050},{"type":993,"tag":1026,"props":6164,"children":6165},{"style":1058},[6166],{"type":998,"value":5968},{"type":993,"tag":1026,"props":6168,"children":6169},{"style":1041},[6170],{"type":998,"value":6171},"(user_data, ())\n",{"type":993,"tag":1026,"props":6173,"children":6174},{"class":1028,"line":210},[6175,6179,6183,6187,6192,6196,6201,6205,6209],{"type":993,"tag":1026,"props":6176,"children":6177},{"style":1058},[6178],{"type":998,"value":1384},{"type":993,"tag":1026,"props":6180,"children":6181},{"style":1041},[6182],{"type":998,"value":1389},{"type":993,"tag":1026,"props":6184,"children":6185},{"style":1047},[6186],{"type":998,"value":1394},{"type":993,"tag":1026,"props":6188,"children":6189},{"style":1275},[6190],{"type":998,"value":6191},"\"Complete user data: ",{"type":993,"tag":1026,"props":6193,"children":6194},{"style":1058},[6195],{"type":998,"value":1404},{"type":993,"tag":1026,"props":6197,"children":6198},{"style":1041},[6199],{"type":998,"value":6200},"complete_user",{"type":993,"tag":1026,"props":6202,"children":6203},{"style":1058},[6204],{"type":998,"value":1414},{"type":993,"tag":1026,"props":6206,"children":6207},{"style":1275},[6208],{"type":998,"value":1419},{"type":993,"tag":1026,"props":6210,"children":6211},{"style":1041},[6212],{"type":998,"value":1085},{"type":993,"tag":1026,"props":6214,"children":6215},{"class":1028,"line":219},[6216],{"type":993,"tag":1026,"props":6217,"children":6218},{"emptyLinePlaceholder":13},[6219],{"type":998,"value":1163},{"type":993,"tag":1026,"props":6221,"children":6222},{"class":1028,"line":228},[6223],{"type":993,"tag":1026,"props":6224,"children":6225},{"style":1032},[6226],{"type":998,"value":6227},"# Dynamic tuple collection\n",{"type":993,"tag":1026,"props":6229,"children":6230},{"class":1028,"line":238},[6231,6235,6240,6244,6248],{"type":993,"tag":1026,"props":6232,"children":6233},{"style":1047},[6234],{"type":998,"value":3149},{"type":993,"tag":1026,"props":6236,"children":6237},{"style":3152},[6238],{"type":998,"value":6239}," collect_data",{"type":993,"tag":1026,"props":6241,"children":6242},{"style":1041},[6243],{"type":998,"value":1389},{"type":993,"tag":1026,"props":6245,"children":6246},{"style":1047},[6247],{"type":998,"value":5000},{"type":993,"tag":1026,"props":6249,"children":6250},{"style":1041},[6251],{"type":998,"value":6252},"data_sources):\n",{"type":993,"tag":1026,"props":6254,"children":6255},{"class":1028,"line":247},[6256,6260,6264],{"type":993,"tag":1026,"props":6257,"children":6258},{"style":1047},[6259],{"type":998,"value":3268},{"type":993,"tag":1026,"props":6261,"children":6262},{"style":1058},[6263],{"type":998,"value":5968},{"type":993,"tag":1026,"props":6265,"children":6266},{"style":1041},[6267],{"type":998,"value":6268},"(data_sources, ())\n",{"type":993,"tag":1026,"props":6270,"children":6271},{"class":1028,"line":256},[6272],{"type":993,"tag":1026,"props":6273,"children":6274},{"emptyLinePlaceholder":13},[6275],{"type":998,"value":1163},{"type":993,"tag":1026,"props":6277,"children":6278},{"class":1028,"line":265},[6279,6284,6288],{"type":993,"tag":1026,"props":6280,"children":6281},{"style":1041},[6282],{"type":998,"value":6283},"result ",{"type":993,"tag":1026,"props":6285,"children":6286},{"style":1047},[6287],{"type":998,"value":1050},{"type":993,"tag":1026,"props":6289,"children":6290},{"style":1041},[6291],{"type":998,"value":6292}," collect_data(\n",{"type":993,"tag":1026,"props":6294,"children":6295},{"class":1028,"line":274},[6296,6300,6304,6308,6312,6316,6320],{"type":993,"tag":1026,"props":6297,"children":6298},{"style":1041},[6299],{"type":998,"value":5808},{"type":993,"tag":1026,"props":6301,"children":6302},{"style":1058},[6303],{"type":998,"value":1061},{"type":993,"tag":1026,"props":6305,"children":6306},{"style":1041},[6307],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6309,"children":6310},{"style":1058},[6311],{"type":998,"value":1071},{"type":993,"tag":1026,"props":6313,"children":6314},{"style":1041},[6315],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6317,"children":6318},{"style":1058},[6319],{"type":998,"value":1080},{"type":993,"tag":1026,"props":6321,"children":6322},{"style":1041},[6323],{"type":998,"value":5833},{"type":993,"tag":1026,"props":6325,"children":6326},{"class":1028,"line":284},[6327,6331,6335,6339,6343],{"type":993,"tag":1026,"props":6328,"children":6329},{"style":1041},[6330],{"type":998,"value":5808},{"type":993,"tag":1026,"props":6332,"children":6333},{"style":1275},[6334],{"type":998,"value":2030},{"type":993,"tag":1026,"props":6336,"children":6337},{"style":1041},[6338],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6340,"children":6341},{"style":1275},[6342],{"type":998,"value":2039},{"type":993,"tag":1026,"props":6344,"children":6345},{"style":1041},[6346],{"type":998,"value":5833},{"type":993,"tag":1026,"props":6348,"children":6349},{"class":1028,"line":293},[6350,6354,6358,6362,6366],{"type":993,"tag":1026,"props":6351,"children":6352},{"style":1041},[6353],{"type":998,"value":5808},{"type":993,"tag":1026,"props":6355,"children":6356},{"style":1058},[6357],{"type":998,"value":2734},{"type":993,"tag":1026,"props":6359,"children":6360},{"style":1041},[6361],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6363,"children":6364},{"style":1058},[6365],{"type":998,"value":3169},{"type":993,"tag":1026,"props":6367,"children":6368},{"style":1041},[6369],{"type":998,"value":5833},{"type":993,"tag":1026,"props":6371,"children":6372},{"class":1028,"line":302},[6373,6377,6382,6386,6391],{"type":993,"tag":1026,"props":6374,"children":6375},{"style":1041},[6376],{"type":998,"value":5808},{"type":993,"tag":1026,"props":6378,"children":6379},{"style":1058},[6380],{"type":998,"value":6381},"3.14",{"type":993,"tag":1026,"props":6383,"children":6384},{"style":1041},[6385],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6387,"children":6388},{"style":1058},[6389],{"type":998,"value":6390},"2.71",{"type":993,"tag":1026,"props":6392,"children":6393},{"style":1041},[6394],{"type":998,"value":1085},{"type":993,"tag":1026,"props":6396,"children":6397},{"class":1028,"line":311},[6398],{"type":993,"tag":1026,"props":6399,"children":6400},{"style":1041},[6401],{"type":998,"value":1085},{"type":993,"tag":1026,"props":6403,"children":6404},{"class":1028,"line":320},[6405,6409,6413,6417,6422,6426,6431,6435,6439],{"type":993,"tag":1026,"props":6406,"children":6407},{"style":1058},[6408],{"type":998,"value":1384},{"type":993,"tag":1026,"props":6410,"children":6411},{"style":1041},[6412],{"type":998,"value":1389},{"type":993,"tag":1026,"props":6414,"children":6415},{"style":1047},[6416],{"type":998,"value":1394},{"type":993,"tag":1026,"props":6418,"children":6419},{"style":1275},[6420],{"type":998,"value":6421},"\"Collected data: ",{"type":993,"tag":1026,"props":6423,"children":6424},{"style":1058},[6425],{"type":998,"value":1404},{"type":993,"tag":1026,"props":6427,"children":6428},{"style":1041},[6429],{"type":998,"value":6430},"result",{"type":993,"tag":1026,"props":6432,"children":6433},{"style":1058},[6434],{"type":998,"value":1414},{"type":993,"tag":1026,"props":6436,"children":6437},{"style":1275},[6438],{"type":998,"value":1419},{"type":993,"tag":1026,"props":6440,"children":6441},{"style":1041},[6442],{"type":998,"value":1085},{"type":993,"tag":1631,"props":6444,"children":6446},{"id":6445},"using-itertoolschain-for-efficient-merging",[6447],{"type":998,"value":6448},"Using itertools.chain() for Efficient Merging",{"type":993,"tag":1001,"props":6450,"children":6451},{},[6452],{"type":998,"value":6453},"Memory-efficient merging using itertools.chain() for large tuple collections.",{"type":993,"tag":1012,"props":6455,"children":6456},{},[6457],{"type":993,"tag":1016,"props":6458,"children":6460},{"className":1018,"code":6459,"language":6,"meta":8,"style":8},"# Efficient merging with itertools.chain()\nfrom itertools import chain\n\n# Large tuple collection\ndata_chunks = [\n    tuple(range(1, 4)),\n    tuple(range(4, 7)),\n    tuple(range(7, 10)),\n    tuple(range(10, 13))\n]\n\n# Chain and convert to tuple\nchained = tuple(chain(*data_chunks))\nprint(f\"Chained result: {chained}\")\n\n# Multiple data types\nmixed_data = [\n    (\"start\",),\n    (1, 2, 3),\n    (\"middle\",),\n    (4, 5, 6),\n    (\"end\",)\n]\n\nmixed_result = tuple(chain(*mixed_data))\nprint(f\"Mixed result: {mixed_result}\")\n\n# Function for efficient multi-merge\ndef merge_multiple_tuples(*tuples):\n    return tuple(chain(*tuples))\n\n# Usage example\nresult = merge_multiple_tuples(\n    (1, 2),\n    (3, 4),\n    (5, 6),\n    (7, 8)\n)\nprint(f\"Multi-merge result: {result}\")\n",[6461],{"type":993,"tag":1022,"props":6462,"children":6463},{"__ignoreMap":8},[6464,6472,6495,6502,6510,6526,6564,6599,6634,6671,6678,6685,6693,6723,6764,6771,6779,6795,6811,6842,6858,6889,6905,6912,6919,6948,6989,6996,7004,7029,7053,7060,7068,7084,7107,7130,7153,7176,7183],{"type":993,"tag":1026,"props":6465,"children":6466},{"class":1028,"line":12},[6467],{"type":993,"tag":1026,"props":6468,"children":6469},{"style":1032},[6470],{"type":998,"value":6471},"# Efficient merging with itertools.chain()\n",{"type":993,"tag":1026,"props":6473,"children":6474},{"class":1028,"line":27},[6475,6480,6485,6490],{"type":993,"tag":1026,"props":6476,"children":6477},{"style":1047},[6478],{"type":998,"value":6479},"from",{"type":993,"tag":1026,"props":6481,"children":6482},{"style":1041},[6483],{"type":998,"value":6484}," itertools ",{"type":993,"tag":1026,"props":6486,"children":6487},{"style":1047},[6488],{"type":998,"value":6489},"import",{"type":993,"tag":1026,"props":6491,"children":6492},{"style":1041},[6493],{"type":998,"value":6494}," chain\n",{"type":993,"tag":1026,"props":6496,"children":6497},{"class":1028,"line":36},[6498],{"type":993,"tag":1026,"props":6499,"children":6500},{"emptyLinePlaceholder":13},[6501],{"type":998,"value":1163},{"type":993,"tag":1026,"props":6503,"children":6504},{"class":1028,"line":45},[6505],{"type":993,"tag":1026,"props":6506,"children":6507},{"style":1032},[6508],{"type":998,"value":6509},"# Large tuple collection\n",{"type":993,"tag":1026,"props":6511,"children":6512},{"class":1028,"line":54},[6513,6518,6522],{"type":993,"tag":1026,"props":6514,"children":6515},{"style":1041},[6516],{"type":998,"value":6517},"data_chunks ",{"type":993,"tag":1026,"props":6519,"children":6520},{"style":1047},[6521],{"type":998,"value":1050},{"type":993,"tag":1026,"props":6523,"children":6524},{"style":1041},[6525],{"type":998,"value":5800},{"type":993,"tag":1026,"props":6527,"children":6528},{"class":1028,"line":63},[6529,6534,6538,6543,6547,6551,6555,6559],{"type":993,"tag":1026,"props":6530,"children":6531},{"style":1058},[6532],{"type":998,"value":6533},"    tuple",{"type":993,"tag":1026,"props":6535,"children":6536},{"style":1041},[6537],{"type":998,"value":1389},{"type":993,"tag":1026,"props":6539,"children":6540},{"style":1058},[6541],{"type":998,"value":6542},"range",{"type":993,"tag":1026,"props":6544,"children":6545},{"style":1041},[6546],{"type":998,"value":1389},{"type":993,"tag":1026,"props":6548,"children":6549},{"style":1058},[6550],{"type":998,"value":1061},{"type":993,"tag":1026,"props":6552,"children":6553},{"style":1041},[6554],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6556,"children":6557},{"style":1058},[6558],{"type":998,"value":1106},{"type":993,"tag":1026,"props":6560,"children":6561},{"style":1041},[6562],{"type":998,"value":6563},")),\n",{"type":993,"tag":1026,"props":6565,"children":6566},{"class":1028,"line":72},[6567,6571,6575,6579,6583,6587,6591,6595],{"type":993,"tag":1026,"props":6568,"children":6569},{"style":1058},[6570],{"type":998,"value":6533},{"type":993,"tag":1026,"props":6572,"children":6573},{"style":1041},[6574],{"type":998,"value":1389},{"type":993,"tag":1026,"props":6576,"children":6577},{"style":1058},[6578],{"type":998,"value":6542},{"type":993,"tag":1026,"props":6580,"children":6581},{"style":1041},[6582],{"type":998,"value":1389},{"type":993,"tag":1026,"props":6584,"children":6585},{"style":1058},[6586],{"type":998,"value":1106},{"type":993,"tag":1026,"props":6588,"children":6589},{"style":1041},[6590],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6592,"children":6593},{"style":1058},[6594],{"type":998,"value":1760},{"type":993,"tag":1026,"props":6596,"children":6597},{"style":1041},[6598],{"type":998,"value":6563},{"type":993,"tag":1026,"props":6600,"children":6601},{"class":1028,"line":81},[6602,6606,6610,6614,6618,6622,6626,6630],{"type":993,"tag":1026,"props":6603,"children":6604},{"style":1058},[6605],{"type":998,"value":6533},{"type":993,"tag":1026,"props":6607,"children":6608},{"style":1041},[6609],{"type":998,"value":1389},{"type":993,"tag":1026,"props":6611,"children":6612},{"style":1058},[6613],{"type":998,"value":6542},{"type":993,"tag":1026,"props":6615,"children":6616},{"style":1041},[6617],{"type":998,"value":1389},{"type":993,"tag":1026,"props":6619,"children":6620},{"style":1058},[6621],{"type":998,"value":1760},{"type":993,"tag":1026,"props":6623,"children":6624},{"style":1041},[6625],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6627,"children":6628},{"style":1058},[6629],{"type":998,"value":1184},{"type":993,"tag":1026,"props":6631,"children":6632},{"style":1041},[6633],{"type":998,"value":6563},{"type":993,"tag":1026,"props":6635,"children":6636},{"class":1028,"line":91},[6637,6641,6645,6649,6653,6657,6661,6666],{"type":993,"tag":1026,"props":6638,"children":6639},{"style":1058},[6640],{"type":998,"value":6533},{"type":993,"tag":1026,"props":6642,"children":6643},{"style":1041},[6644],{"type":998,"value":1389},{"type":993,"tag":1026,"props":6646,"children":6647},{"style":1058},[6648],{"type":998,"value":6542},{"type":993,"tag":1026,"props":6650,"children":6651},{"style":1041},[6652],{"type":998,"value":1389},{"type":993,"tag":1026,"props":6654,"children":6655},{"style":1058},[6656],{"type":998,"value":1184},{"type":993,"tag":1026,"props":6658,"children":6659},{"style":1041},[6660],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6662,"children":6663},{"style":1058},[6664],{"type":998,"value":6665},"13",{"type":993,"tag":1026,"props":6667,"children":6668},{"style":1041},[6669],{"type":998,"value":6670},"))\n",{"type":993,"tag":1026,"props":6672,"children":6673},{"class":1028,"line":100},[6674],{"type":993,"tag":1026,"props":6675,"children":6676},{"style":1041},[6677],{"type":998,"value":5936},{"type":993,"tag":1026,"props":6679,"children":6680},{"class":1028,"line":109},[6681],{"type":993,"tag":1026,"props":6682,"children":6683},{"emptyLinePlaceholder":13},[6684],{"type":998,"value":1163},{"type":993,"tag":1026,"props":6686,"children":6687},{"class":1028,"line":118},[6688],{"type":993,"tag":1026,"props":6689,"children":6690},{"style":1032},[6691],{"type":998,"value":6692},"# Chain and convert to tuple\n",{"type":993,"tag":1026,"props":6694,"children":6695},{"class":1028,"line":127},[6696,6701,6705,6709,6714,6718],{"type":993,"tag":1026,"props":6697,"children":6698},{"style":1041},[6699],{"type":998,"value":6700},"chained ",{"type":993,"tag":1026,"props":6702,"children":6703},{"style":1047},[6704],{"type":998,"value":1050},{"type":993,"tag":1026,"props":6706,"children":6707},{"style":1058},[6708],{"type":998,"value":3719},{"type":993,"tag":1026,"props":6710,"children":6711},{"style":1041},[6712],{"type":998,"value":6713},"(chain(",{"type":993,"tag":1026,"props":6715,"children":6716},{"style":1047},[6717],{"type":998,"value":5000},{"type":993,"tag":1026,"props":6719,"children":6720},{"style":1041},[6721],{"type":998,"value":6722},"data_chunks))\n",{"type":993,"tag":1026,"props":6724,"children":6725},{"class":1028,"line":136},[6726,6730,6734,6738,6743,6747,6752,6756,6760],{"type":993,"tag":1026,"props":6727,"children":6728},{"style":1058},[6729],{"type":998,"value":1384},{"type":993,"tag":1026,"props":6731,"children":6732},{"style":1041},[6733],{"type":998,"value":1389},{"type":993,"tag":1026,"props":6735,"children":6736},{"style":1047},[6737],{"type":998,"value":1394},{"type":993,"tag":1026,"props":6739,"children":6740},{"style":1275},[6741],{"type":998,"value":6742},"\"Chained result: ",{"type":993,"tag":1026,"props":6744,"children":6745},{"style":1058},[6746],{"type":998,"value":1404},{"type":993,"tag":1026,"props":6748,"children":6749},{"style":1041},[6750],{"type":998,"value":6751},"chained",{"type":993,"tag":1026,"props":6753,"children":6754},{"style":1058},[6755],{"type":998,"value":1414},{"type":993,"tag":1026,"props":6757,"children":6758},{"style":1275},[6759],{"type":998,"value":1419},{"type":993,"tag":1026,"props":6761,"children":6762},{"style":1041},[6763],{"type":998,"value":1085},{"type":993,"tag":1026,"props":6765,"children":6766},{"class":1028,"line":146},[6767],{"type":993,"tag":1026,"props":6768,"children":6769},{"emptyLinePlaceholder":13},[6770],{"type":998,"value":1163},{"type":993,"tag":1026,"props":6772,"children":6773},{"class":1028,"line":155},[6774],{"type":993,"tag":1026,"props":6775,"children":6776},{"style":1032},[6777],{"type":998,"value":6778},"# Multiple data types\n",{"type":993,"tag":1026,"props":6780,"children":6781},{"class":1028,"line":164},[6782,6787,6791],{"type":993,"tag":1026,"props":6783,"children":6784},{"style":1041},[6785],{"type":998,"value":6786},"mixed_data ",{"type":993,"tag":1026,"props":6788,"children":6789},{"style":1047},[6790],{"type":998,"value":1050},{"type":993,"tag":1026,"props":6792,"children":6793},{"style":1041},[6794],{"type":998,"value":5800},{"type":993,"tag":1026,"props":6796,"children":6797},{"class":1028,"line":173},[6798,6802,6807],{"type":993,"tag":1026,"props":6799,"children":6800},{"style":1041},[6801],{"type":998,"value":5808},{"type":993,"tag":1026,"props":6803,"children":6804},{"style":1275},[6805],{"type":998,"value":6806},"\"start\"",{"type":993,"tag":1026,"props":6808,"children":6809},{"style":1041},[6810],{"type":998,"value":6089},{"type":993,"tag":1026,"props":6812,"children":6813},{"class":1028,"line":182},[6814,6818,6822,6826,6830,6834,6838],{"type":993,"tag":1026,"props":6815,"children":6816},{"style":1041},[6817],{"type":998,"value":5808},{"type":993,"tag":1026,"props":6819,"children":6820},{"style":1058},[6821],{"type":998,"value":1061},{"type":993,"tag":1026,"props":6823,"children":6824},{"style":1041},[6825],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6827,"children":6828},{"style":1058},[6829],{"type":998,"value":1071},{"type":993,"tag":1026,"props":6831,"children":6832},{"style":1041},[6833],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6835,"children":6836},{"style":1058},[6837],{"type":998,"value":1080},{"type":993,"tag":1026,"props":6839,"children":6840},{"style":1041},[6841],{"type":998,"value":5833},{"type":993,"tag":1026,"props":6843,"children":6844},{"class":1028,"line":191},[6845,6849,6854],{"type":993,"tag":1026,"props":6846,"children":6847},{"style":1041},[6848],{"type":998,"value":5808},{"type":993,"tag":1026,"props":6850,"children":6851},{"style":1275},[6852],{"type":998,"value":6853},"\"middle\"",{"type":993,"tag":1026,"props":6855,"children":6856},{"style":1041},[6857],{"type":998,"value":6089},{"type":993,"tag":1026,"props":6859,"children":6860},{"class":1028,"line":201},[6861,6865,6869,6873,6877,6881,6885],{"type":993,"tag":1026,"props":6862,"children":6863},{"style":1041},[6864],{"type":998,"value":5808},{"type":993,"tag":1026,"props":6866,"children":6867},{"style":1058},[6868],{"type":998,"value":1106},{"type":993,"tag":1026,"props":6870,"children":6871},{"style":1041},[6872],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6874,"children":6875},{"style":1058},[6876],{"type":998,"value":1115},{"type":993,"tag":1026,"props":6878,"children":6879},{"style":1041},[6880],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6882,"children":6883},{"style":1058},[6884],{"type":998,"value":1124},{"type":993,"tag":1026,"props":6886,"children":6887},{"style":1041},[6888],{"type":998,"value":5833},{"type":993,"tag":1026,"props":6890,"children":6891},{"class":1028,"line":210},[6892,6896,6901],{"type":993,"tag":1026,"props":6893,"children":6894},{"style":1041},[6895],{"type":998,"value":5808},{"type":993,"tag":1026,"props":6897,"children":6898},{"style":1275},[6899],{"type":998,"value":6900},"\"end\"",{"type":993,"tag":1026,"props":6902,"children":6903},{"style":1041},[6904],{"type":998,"value":1223},{"type":993,"tag":1026,"props":6906,"children":6907},{"class":1028,"line":219},[6908],{"type":993,"tag":1026,"props":6909,"children":6910},{"style":1041},[6911],{"type":998,"value":5936},{"type":993,"tag":1026,"props":6913,"children":6914},{"class":1028,"line":228},[6915],{"type":993,"tag":1026,"props":6916,"children":6917},{"emptyLinePlaceholder":13},[6918],{"type":998,"value":1163},{"type":993,"tag":1026,"props":6920,"children":6921},{"class":1028,"line":238},[6922,6927,6931,6935,6939,6943],{"type":993,"tag":1026,"props":6923,"children":6924},{"style":1041},[6925],{"type":998,"value":6926},"mixed_result ",{"type":993,"tag":1026,"props":6928,"children":6929},{"style":1047},[6930],{"type":998,"value":1050},{"type":993,"tag":1026,"props":6932,"children":6933},{"style":1058},[6934],{"type":998,"value":3719},{"type":993,"tag":1026,"props":6936,"children":6937},{"style":1041},[6938],{"type":998,"value":6713},{"type":993,"tag":1026,"props":6940,"children":6941},{"style":1047},[6942],{"type":998,"value":5000},{"type":993,"tag":1026,"props":6944,"children":6945},{"style":1041},[6946],{"type":998,"value":6947},"mixed_data))\n",{"type":993,"tag":1026,"props":6949,"children":6950},{"class":1028,"line":247},[6951,6955,6959,6963,6968,6972,6977,6981,6985],{"type":993,"tag":1026,"props":6952,"children":6953},{"style":1058},[6954],{"type":998,"value":1384},{"type":993,"tag":1026,"props":6956,"children":6957},{"style":1041},[6958],{"type":998,"value":1389},{"type":993,"tag":1026,"props":6960,"children":6961},{"style":1047},[6962],{"type":998,"value":1394},{"type":993,"tag":1026,"props":6964,"children":6965},{"style":1275},[6966],{"type":998,"value":6967},"\"Mixed result: ",{"type":993,"tag":1026,"props":6969,"children":6970},{"style":1058},[6971],{"type":998,"value":1404},{"type":993,"tag":1026,"props":6973,"children":6974},{"style":1041},[6975],{"type":998,"value":6976},"mixed_result",{"type":993,"tag":1026,"props":6978,"children":6979},{"style":1058},[6980],{"type":998,"value":1414},{"type":993,"tag":1026,"props":6982,"children":6983},{"style":1275},[6984],{"type":998,"value":1419},{"type":993,"tag":1026,"props":6986,"children":6987},{"style":1041},[6988],{"type":998,"value":1085},{"type":993,"tag":1026,"props":6990,"children":6991},{"class":1028,"line":256},[6992],{"type":993,"tag":1026,"props":6993,"children":6994},{"emptyLinePlaceholder":13},[6995],{"type":998,"value":1163},{"type":993,"tag":1026,"props":6997,"children":6998},{"class":1028,"line":265},[6999],{"type":993,"tag":1026,"props":7000,"children":7001},{"style":1032},[7002],{"type":998,"value":7003},"# Function for efficient multi-merge\n",{"type":993,"tag":1026,"props":7005,"children":7006},{"class":1028,"line":274},[7007,7011,7016,7020,7024],{"type":993,"tag":1026,"props":7008,"children":7009},{"style":1047},[7010],{"type":998,"value":3149},{"type":993,"tag":1026,"props":7012,"children":7013},{"style":3152},[7014],{"type":998,"value":7015}," merge_multiple_tuples",{"type":993,"tag":1026,"props":7017,"children":7018},{"style":1041},[7019],{"type":998,"value":1389},{"type":993,"tag":1026,"props":7021,"children":7022},{"style":1047},[7023],{"type":998,"value":5000},{"type":993,"tag":1026,"props":7025,"children":7026},{"style":1041},[7027],{"type":998,"value":7028},"tuples):\n",{"type":993,"tag":1026,"props":7030,"children":7031},{"class":1028,"line":284},[7032,7036,7040,7044,7048],{"type":993,"tag":1026,"props":7033,"children":7034},{"style":1047},[7035],{"type":998,"value":3268},{"type":993,"tag":1026,"props":7037,"children":7038},{"style":1058},[7039],{"type":998,"value":3719},{"type":993,"tag":1026,"props":7041,"children":7042},{"style":1041},[7043],{"type":998,"value":6713},{"type":993,"tag":1026,"props":7045,"children":7046},{"style":1047},[7047],{"type":998,"value":5000},{"type":993,"tag":1026,"props":7049,"children":7050},{"style":1041},[7051],{"type":998,"value":7052},"tuples))\n",{"type":993,"tag":1026,"props":7054,"children":7055},{"class":1028,"line":293},[7056],{"type":993,"tag":1026,"props":7057,"children":7058},{"emptyLinePlaceholder":13},[7059],{"type":998,"value":1163},{"type":993,"tag":1026,"props":7061,"children":7062},{"class":1028,"line":302},[7063],{"type":993,"tag":1026,"props":7064,"children":7065},{"style":1032},[7066],{"type":998,"value":7067},"# Usage example\n",{"type":993,"tag":1026,"props":7069,"children":7070},{"class":1028,"line":311},[7071,7075,7079],{"type":993,"tag":1026,"props":7072,"children":7073},{"style":1041},[7074],{"type":998,"value":6283},{"type":993,"tag":1026,"props":7076,"children":7077},{"style":1047},[7078],{"type":998,"value":1050},{"type":993,"tag":1026,"props":7080,"children":7081},{"style":1041},[7082],{"type":998,"value":7083}," merge_multiple_tuples(\n",{"type":993,"tag":1026,"props":7085,"children":7086},{"class":1028,"line":320},[7087,7091,7095,7099,7103],{"type":993,"tag":1026,"props":7088,"children":7089},{"style":1041},[7090],{"type":998,"value":5808},{"type":993,"tag":1026,"props":7092,"children":7093},{"style":1058},[7094],{"type":998,"value":1061},{"type":993,"tag":1026,"props":7096,"children":7097},{"style":1041},[7098],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7100,"children":7101},{"style":1058},[7102],{"type":998,"value":1071},{"type":993,"tag":1026,"props":7104,"children":7105},{"style":1041},[7106],{"type":998,"value":5833},{"type":993,"tag":1026,"props":7108,"children":7109},{"class":1028,"line":329},[7110,7114,7118,7122,7126],{"type":993,"tag":1026,"props":7111,"children":7112},{"style":1041},[7113],{"type":998,"value":5808},{"type":993,"tag":1026,"props":7115,"children":7116},{"style":1058},[7117],{"type":998,"value":1080},{"type":993,"tag":1026,"props":7119,"children":7120},{"style":1041},[7121],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7123,"children":7124},{"style":1058},[7125],{"type":998,"value":1106},{"type":993,"tag":1026,"props":7127,"children":7128},{"style":1041},[7129],{"type":998,"value":5833},{"type":993,"tag":1026,"props":7131,"children":7132},{"class":1028,"line":338},[7133,7137,7141,7145,7149],{"type":993,"tag":1026,"props":7134,"children":7135},{"style":1041},[7136],{"type":998,"value":5808},{"type":993,"tag":1026,"props":7138,"children":7139},{"style":1058},[7140],{"type":998,"value":1115},{"type":993,"tag":1026,"props":7142,"children":7143},{"style":1041},[7144],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7146,"children":7147},{"style":1058},[7148],{"type":998,"value":1124},{"type":993,"tag":1026,"props":7150,"children":7151},{"style":1041},[7152],{"type":998,"value":5833},{"type":993,"tag":1026,"props":7154,"children":7155},{"class":1028,"line":347},[7156,7160,7164,7168,7172],{"type":993,"tag":1026,"props":7157,"children":7158},{"style":1041},[7159],{"type":998,"value":5808},{"type":993,"tag":1026,"props":7161,"children":7162},{"style":1058},[7163],{"type":998,"value":1760},{"type":993,"tag":1026,"props":7165,"children":7166},{"style":1041},[7167],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7169,"children":7170},{"style":1058},[7171],{"type":998,"value":1769},{"type":993,"tag":1026,"props":7173,"children":7174},{"style":1041},[7175],{"type":998,"value":1085},{"type":993,"tag":1026,"props":7177,"children":7178},{"class":1028,"line":356},[7179],{"type":993,"tag":1026,"props":7180,"children":7181},{"style":1041},[7182],{"type":998,"value":1085},{"type":993,"tag":1026,"props":7184,"children":7185},{"class":1028,"line":365},[7186,7190,7194,7198,7203,7207,7211,7215,7219],{"type":993,"tag":1026,"props":7187,"children":7188},{"style":1058},[7189],{"type":998,"value":1384},{"type":993,"tag":1026,"props":7191,"children":7192},{"style":1041},[7193],{"type":998,"value":1389},{"type":993,"tag":1026,"props":7195,"children":7196},{"style":1047},[7197],{"type":998,"value":1394},{"type":993,"tag":1026,"props":7199,"children":7200},{"style":1275},[7201],{"type":998,"value":7202},"\"Multi-merge result: ",{"type":993,"tag":1026,"props":7204,"children":7205},{"style":1058},[7206],{"type":998,"value":1404},{"type":993,"tag":1026,"props":7208,"children":7209},{"style":1041},[7210],{"type":998,"value":6430},{"type":993,"tag":1026,"props":7212,"children":7213},{"style":1058},[7214],{"type":998,"value":1414},{"type":993,"tag":1026,"props":7216,"children":7217},{"style":1275},[7218],{"type":998,"value":1419},{"type":993,"tag":1026,"props":7220,"children":7221},{"style":1041},[7222],{"type":998,"value":1085},{"type":993,"tag":1631,"props":7224,"children":7226},{"id":7225},"custom-merging-functions",[7227],{"type":998,"value":7228},"Custom Merging Functions",{"type":993,"tag":1001,"props":7230,"children":7231},{},[7232],{"type":998,"value":7233},"Specialized functions for complex merging requirements and patterns.",{"type":993,"tag":1012,"props":7235,"children":7236},{},[7237],{"type":993,"tag":1016,"props":7238,"children":7240},{"className":1018,"code":7239,"language":6,"meta":8,"style":8},"# Custom merging functions\ndef merge_with_separator(separator, *tuples):\n    \"\"\"Merge tuples with separator between each\"\"\"\n    if not tuples:\n        return ()\n    \n    result = tuples[0]\n    for t in tuples[1:]:\n        result = result + (separator,) + t\n    return result\n\n# Example usage\ndata1 = (1, 2, 3)\ndata2 = (4, 5, 6)\ndata3 = (7, 8, 9)\n\nseparated = merge_with_separator(\"---\", data1, data2, data3)\nprint(f\"With separator: {separated}\")\n\ndef merge_unique(*tuples):\n    \"\"\"Merge tuples keeping only unique elements\"\"\"\n    seen = set()\n    result = ()\n    \n    for t in tuples:\n        for item in t:\n            if item not in seen:\n                seen.add(item)\n                result += (item,)\n    return result\n\n# Merge with uniqueness\nset1 = (1, 2, 3, 4)\nset2 = (3, 4, 5, 6)\nset3 = (5, 6, 7, 8)\n\nunique_merge = merge_unique(set1, set2, set3)\nprint(f\"Unique merge: {unique_merge}\")\n\ndef merge_by_position(*tuples):\n    \"\"\"Merge tuples by collecting elements at each position\"\"\"\n    if not tuples:\n        return ()\n    \n    max_length = max(len(t) for t in tuples)\n    result = ()\n    \n    for i in range(max_length):\n        position_elements = ()\n        for t in tuples:\n            if i \u003C len(t):\n                position_elements += (t[i],)\n        result += (position_elements,)\n    \n    return result\n\n# Position-based merging\ntuple1 = (\"a\", \"b\", \"c\")\ntuple2 = (1, 2)\ntuple3 = (\"x\", \"y\", \"z\", \"w\")\n\nposition_merged = merge_by_position(tuple1, tuple2, tuple3)\nprint(f\"Position merged: {position_merged}\")\n",[7241],{"type":993,"tag":1022,"props":7242,"children":7243},{"__ignoreMap":8},[7244,7252,7277,7285,7303,7315,7323,7349,7378,7413,7425,7432,7440,7480,7520,7560,7567,7594,7635,7642,7666,7674,7696,7711,7718,7737,7758,7785,7793,7810,7821,7828,7836,7884,7932,7980,7987,8004,8045,8052,8076,8084,8099,8110,8117,8165,8180,8187,8213,8229,8248,8274,8291,8307,8314,8325,8332,8340,8380,8412,8464,8471,8488],{"type":993,"tag":1026,"props":7245,"children":7246},{"class":1028,"line":12},[7247],{"type":993,"tag":1026,"props":7248,"children":7249},{"style":1032},[7250],{"type":998,"value":7251},"# Custom merging functions\n",{"type":993,"tag":1026,"props":7253,"children":7254},{"class":1028,"line":27},[7255,7259,7264,7269,7273],{"type":993,"tag":1026,"props":7256,"children":7257},{"style":1047},[7258],{"type":998,"value":3149},{"type":993,"tag":1026,"props":7260,"children":7261},{"style":3152},[7262],{"type":998,"value":7263}," merge_with_separator",{"type":993,"tag":1026,"props":7265,"children":7266},{"style":1041},[7267],{"type":998,"value":7268},"(separator, ",{"type":993,"tag":1026,"props":7270,"children":7271},{"style":1047},[7272],{"type":998,"value":5000},{"type":993,"tag":1026,"props":7274,"children":7275},{"style":1041},[7276],{"type":998,"value":7028},{"type":993,"tag":1026,"props":7278,"children":7279},{"class":1028,"line":36},[7280],{"type":993,"tag":1026,"props":7281,"children":7282},{"style":1275},[7283],{"type":998,"value":7284},"    \"\"\"Merge tuples with separator between each\"\"\"\n",{"type":993,"tag":1026,"props":7286,"children":7287},{"class":1028,"line":45},[7288,7293,7298],{"type":993,"tag":1026,"props":7289,"children":7290},{"style":1047},[7291],{"type":998,"value":7292},"    if",{"type":993,"tag":1026,"props":7294,"children":7295},{"style":1047},[7296],{"type":998,"value":7297}," not",{"type":993,"tag":1026,"props":7299,"children":7300},{"style":1041},[7301],{"type":998,"value":7302}," tuples:\n",{"type":993,"tag":1026,"props":7304,"children":7305},{"class":1028,"line":54},[7306,7311],{"type":993,"tag":1026,"props":7307,"children":7308},{"style":1047},[7309],{"type":998,"value":7310},"        return",{"type":993,"tag":1026,"props":7312,"children":7313},{"style":1041},[7314],{"type":998,"value":2909},{"type":993,"tag":1026,"props":7316,"children":7317},{"class":1028,"line":63},[7318],{"type":993,"tag":1026,"props":7319,"children":7320},{"style":1041},[7321],{"type":998,"value":7322},"    \n",{"type":993,"tag":1026,"props":7324,"children":7325},{"class":1028,"line":72},[7326,7331,7335,7340,7345],{"type":993,"tag":1026,"props":7327,"children":7328},{"style":1041},[7329],{"type":998,"value":7330},"    result ",{"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":7339}," tuples[",{"type":993,"tag":1026,"props":7341,"children":7342},{"style":1058},[7343],{"type":998,"value":7344},"0",{"type":993,"tag":1026,"props":7346,"children":7347},{"style":1041},[7348],{"type":998,"value":5936},{"type":993,"tag":1026,"props":7350,"children":7351},{"class":1028,"line":81},[7352,7356,7361,7365,7369,7373],{"type":993,"tag":1026,"props":7353,"children":7354},{"style":1047},[7355],{"type":998,"value":4632},{"type":993,"tag":1026,"props":7357,"children":7358},{"style":1041},[7359],{"type":998,"value":7360}," t ",{"type":993,"tag":1026,"props":7362,"children":7363},{"style":1047},[7364],{"type":998,"value":3825},{"type":993,"tag":1026,"props":7366,"children":7367},{"style":1041},[7368],{"type":998,"value":7339},{"type":993,"tag":1026,"props":7370,"children":7371},{"style":1058},[7372],{"type":998,"value":1061},{"type":993,"tag":1026,"props":7374,"children":7375},{"style":1041},[7376],{"type":998,"value":7377},":]:\n",{"type":993,"tag":1026,"props":7379,"children":7380},{"class":1028,"line":91},[7381,7386,7390,7395,7399,7404,7408],{"type":993,"tag":1026,"props":7382,"children":7383},{"style":1041},[7384],{"type":998,"value":7385},"        result ",{"type":993,"tag":1026,"props":7387,"children":7388},{"style":1047},[7389],{"type":998,"value":1050},{"type":993,"tag":1026,"props":7391,"children":7392},{"style":1041},[7393],{"type":998,"value":7394}," result ",{"type":993,"tag":1026,"props":7396,"children":7397},{"style":1047},[7398],{"type":998,"value":1150},{"type":993,"tag":1026,"props":7400,"children":7401},{"style":1041},[7402],{"type":998,"value":7403}," (separator,) ",{"type":993,"tag":1026,"props":7405,"children":7406},{"style":1047},[7407],{"type":998,"value":1150},{"type":993,"tag":1026,"props":7409,"children":7410},{"style":1041},[7411],{"type":998,"value":7412}," t\n",{"type":993,"tag":1026,"props":7414,"children":7415},{"class":1028,"line":100},[7416,7420],{"type":993,"tag":1026,"props":7417,"children":7418},{"style":1047},[7419],{"type":998,"value":3268},{"type":993,"tag":1026,"props":7421,"children":7422},{"style":1041},[7423],{"type":998,"value":7424}," result\n",{"type":993,"tag":1026,"props":7426,"children":7427},{"class":1028,"line":109},[7428],{"type":993,"tag":1026,"props":7429,"children":7430},{"emptyLinePlaceholder":13},[7431],{"type":998,"value":1163},{"type":993,"tag":1026,"props":7433,"children":7434},{"class":1028,"line":118},[7435],{"type":993,"tag":1026,"props":7436,"children":7437},{"style":1032},[7438],{"type":998,"value":7439},"# Example usage\n",{"type":993,"tag":1026,"props":7441,"children":7442},{"class":1028,"line":127},[7443,7448,7452,7456,7460,7464,7468,7472,7476],{"type":993,"tag":1026,"props":7444,"children":7445},{"style":1041},[7446],{"type":998,"value":7447},"data1 ",{"type":993,"tag":1026,"props":7449,"children":7450},{"style":1047},[7451],{"type":998,"value":1050},{"type":993,"tag":1026,"props":7453,"children":7454},{"style":1041},[7455],{"type":998,"value":1055},{"type":993,"tag":1026,"props":7457,"children":7458},{"style":1058},[7459],{"type":998,"value":1061},{"type":993,"tag":1026,"props":7461,"children":7462},{"style":1041},[7463],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7465,"children":7466},{"style":1058},[7467],{"type":998,"value":1071},{"type":993,"tag":1026,"props":7469,"children":7470},{"style":1041},[7471],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7473,"children":7474},{"style":1058},[7475],{"type":998,"value":1080},{"type":993,"tag":1026,"props":7477,"children":7478},{"style":1041},[7479],{"type":998,"value":1085},{"type":993,"tag":1026,"props":7481,"children":7482},{"class":1028,"line":136},[7483,7488,7492,7496,7500,7504,7508,7512,7516],{"type":993,"tag":1026,"props":7484,"children":7485},{"style":1041},[7486],{"type":998,"value":7487},"data2 ",{"type":993,"tag":1026,"props":7489,"children":7490},{"style":1047},[7491],{"type":998,"value":1050},{"type":993,"tag":1026,"props":7493,"children":7494},{"style":1041},[7495],{"type":998,"value":1055},{"type":993,"tag":1026,"props":7497,"children":7498},{"style":1058},[7499],{"type":998,"value":1106},{"type":993,"tag":1026,"props":7501,"children":7502},{"style":1041},[7503],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7505,"children":7506},{"style":1058},[7507],{"type":998,"value":1115},{"type":993,"tag":1026,"props":7509,"children":7510},{"style":1041},[7511],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7513,"children":7514},{"style":1058},[7515],{"type":998,"value":1124},{"type":993,"tag":1026,"props":7517,"children":7518},{"style":1041},[7519],{"type":998,"value":1085},{"type":993,"tag":1026,"props":7521,"children":7522},{"class":1028,"line":146},[7523,7528,7532,7536,7540,7544,7548,7552,7556],{"type":993,"tag":1026,"props":7524,"children":7525},{"style":1041},[7526],{"type":998,"value":7527},"data3 ",{"type":993,"tag":1026,"props":7529,"children":7530},{"style":1047},[7531],{"type":998,"value":1050},{"type":993,"tag":1026,"props":7533,"children":7534},{"style":1041},[7535],{"type":998,"value":1055},{"type":993,"tag":1026,"props":7537,"children":7538},{"style":1058},[7539],{"type":998,"value":1760},{"type":993,"tag":1026,"props":7541,"children":7542},{"style":1041},[7543],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7545,"children":7546},{"style":1058},[7547],{"type":998,"value":1769},{"type":993,"tag":1026,"props":7549,"children":7550},{"style":1041},[7551],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7553,"children":7554},{"style":1058},[7555],{"type":998,"value":1778},{"type":993,"tag":1026,"props":7557,"children":7558},{"style":1041},[7559],{"type":998,"value":1085},{"type":993,"tag":1026,"props":7561,"children":7562},{"class":1028,"line":155},[7563],{"type":993,"tag":1026,"props":7564,"children":7565},{"emptyLinePlaceholder":13},[7566],{"type":998,"value":1163},{"type":993,"tag":1026,"props":7568,"children":7569},{"class":1028,"line":164},[7570,7575,7579,7584,7589],{"type":993,"tag":1026,"props":7571,"children":7572},{"style":1041},[7573],{"type":998,"value":7574},"separated ",{"type":993,"tag":1026,"props":7576,"children":7577},{"style":1047},[7578],{"type":998,"value":1050},{"type":993,"tag":1026,"props":7580,"children":7581},{"style":1041},[7582],{"type":998,"value":7583}," merge_with_separator(",{"type":993,"tag":1026,"props":7585,"children":7586},{"style":1275},[7587],{"type":998,"value":7588},"\"---\"",{"type":993,"tag":1026,"props":7590,"children":7591},{"style":1041},[7592],{"type":998,"value":7593},", data1, data2, data3)\n",{"type":993,"tag":1026,"props":7595,"children":7596},{"class":1028,"line":173},[7597,7601,7605,7609,7614,7618,7623,7627,7631],{"type":993,"tag":1026,"props":7598,"children":7599},{"style":1058},[7600],{"type":998,"value":1384},{"type":993,"tag":1026,"props":7602,"children":7603},{"style":1041},[7604],{"type":998,"value":1389},{"type":993,"tag":1026,"props":7606,"children":7607},{"style":1047},[7608],{"type":998,"value":1394},{"type":993,"tag":1026,"props":7610,"children":7611},{"style":1275},[7612],{"type":998,"value":7613},"\"With separator: ",{"type":993,"tag":1026,"props":7615,"children":7616},{"style":1058},[7617],{"type":998,"value":1404},{"type":993,"tag":1026,"props":7619,"children":7620},{"style":1041},[7621],{"type":998,"value":7622},"separated",{"type":993,"tag":1026,"props":7624,"children":7625},{"style":1058},[7626],{"type":998,"value":1414},{"type":993,"tag":1026,"props":7628,"children":7629},{"style":1275},[7630],{"type":998,"value":1419},{"type":993,"tag":1026,"props":7632,"children":7633},{"style":1041},[7634],{"type":998,"value":1085},{"type":993,"tag":1026,"props":7636,"children":7637},{"class":1028,"line":182},[7638],{"type":993,"tag":1026,"props":7639,"children":7640},{"emptyLinePlaceholder":13},[7641],{"type":998,"value":1163},{"type":993,"tag":1026,"props":7643,"children":7644},{"class":1028,"line":191},[7645,7649,7654,7658,7662],{"type":993,"tag":1026,"props":7646,"children":7647},{"style":1047},[7648],{"type":998,"value":3149},{"type":993,"tag":1026,"props":7650,"children":7651},{"style":3152},[7652],{"type":998,"value":7653}," merge_unique",{"type":993,"tag":1026,"props":7655,"children":7656},{"style":1041},[7657],{"type":998,"value":1389},{"type":993,"tag":1026,"props":7659,"children":7660},{"style":1047},[7661],{"type":998,"value":5000},{"type":993,"tag":1026,"props":7663,"children":7664},{"style":1041},[7665],{"type":998,"value":7028},{"type":993,"tag":1026,"props":7667,"children":7668},{"class":1028,"line":201},[7669],{"type":993,"tag":1026,"props":7670,"children":7671},{"style":1275},[7672],{"type":998,"value":7673},"    \"\"\"Merge tuples keeping only unique elements\"\"\"\n",{"type":993,"tag":1026,"props":7675,"children":7676},{"class":1028,"line":210},[7677,7682,7686,7691],{"type":993,"tag":1026,"props":7678,"children":7679},{"style":1041},[7680],{"type":998,"value":7681},"    seen ",{"type":993,"tag":1026,"props":7683,"children":7684},{"style":1047},[7685],{"type":998,"value":1050},{"type":993,"tag":1026,"props":7687,"children":7688},{"style":1058},[7689],{"type":998,"value":7690}," set",{"type":993,"tag":1026,"props":7692,"children":7693},{"style":1041},[7694],{"type":998,"value":7695},"()\n",{"type":993,"tag":1026,"props":7697,"children":7698},{"class":1028,"line":219},[7699,7703,7707],{"type":993,"tag":1026,"props":7700,"children":7701},{"style":1041},[7702],{"type":998,"value":7330},{"type":993,"tag":1026,"props":7704,"children":7705},{"style":1047},[7706],{"type":998,"value":1050},{"type":993,"tag":1026,"props":7708,"children":7709},{"style":1041},[7710],{"type":998,"value":2909},{"type":993,"tag":1026,"props":7712,"children":7713},{"class":1028,"line":228},[7714],{"type":993,"tag":1026,"props":7715,"children":7716},{"style":1041},[7717],{"type":998,"value":7322},{"type":993,"tag":1026,"props":7719,"children":7720},{"class":1028,"line":238},[7721,7725,7729,7733],{"type":993,"tag":1026,"props":7722,"children":7723},{"style":1047},[7724],{"type":998,"value":4632},{"type":993,"tag":1026,"props":7726,"children":7727},{"style":1041},[7728],{"type":998,"value":7360},{"type":993,"tag":1026,"props":7730,"children":7731},{"style":1047},[7732],{"type":998,"value":3825},{"type":993,"tag":1026,"props":7734,"children":7735},{"style":1041},[7736],{"type":998,"value":7302},{"type":993,"tag":1026,"props":7738,"children":7739},{"class":1028,"line":247},[7740,7745,7749,7753],{"type":993,"tag":1026,"props":7741,"children":7742},{"style":1047},[7743],{"type":998,"value":7744},"        for",{"type":993,"tag":1026,"props":7746,"children":7747},{"style":1041},[7748],{"type":998,"value":3844},{"type":993,"tag":1026,"props":7750,"children":7751},{"style":1047},[7752],{"type":998,"value":3825},{"type":993,"tag":1026,"props":7754,"children":7755},{"style":1041},[7756],{"type":998,"value":7757}," t:\n",{"type":993,"tag":1026,"props":7759,"children":7760},{"class":1028,"line":256},[7761,7766,7770,7775,7780],{"type":993,"tag":1026,"props":7762,"children":7763},{"style":1047},[7764],{"type":998,"value":7765},"            if",{"type":993,"tag":1026,"props":7767,"children":7768},{"style":1041},[7769],{"type":998,"value":3844},{"type":993,"tag":1026,"props":7771,"children":7772},{"style":1047},[7773],{"type":998,"value":7774},"not",{"type":993,"tag":1026,"props":7776,"children":7777},{"style":1047},[7778],{"type":998,"value":7779}," in",{"type":993,"tag":1026,"props":7781,"children":7782},{"style":1041},[7783],{"type":998,"value":7784}," seen:\n",{"type":993,"tag":1026,"props":7786,"children":7787},{"class":1028,"line":265},[7788],{"type":993,"tag":1026,"props":7789,"children":7790},{"style":1041},[7791],{"type":998,"value":7792},"                seen.add(item)\n",{"type":993,"tag":1026,"props":7794,"children":7795},{"class":1028,"line":274},[7796,7801,7805],{"type":993,"tag":1026,"props":7797,"children":7798},{"style":1041},[7799],{"type":998,"value":7800},"                result ",{"type":993,"tag":1026,"props":7802,"children":7803},{"style":1047},[7804],{"type":998,"value":4721},{"type":993,"tag":1026,"props":7806,"children":7807},{"style":1041},[7808],{"type":998,"value":7809}," (item,)\n",{"type":993,"tag":1026,"props":7811,"children":7812},{"class":1028,"line":284},[7813,7817],{"type":993,"tag":1026,"props":7814,"children":7815},{"style":1047},[7816],{"type":998,"value":3268},{"type":993,"tag":1026,"props":7818,"children":7819},{"style":1041},[7820],{"type":998,"value":7424},{"type":993,"tag":1026,"props":7822,"children":7823},{"class":1028,"line":293},[7824],{"type":993,"tag":1026,"props":7825,"children":7826},{"emptyLinePlaceholder":13},[7827],{"type":998,"value":1163},{"type":993,"tag":1026,"props":7829,"children":7830},{"class":1028,"line":302},[7831],{"type":993,"tag":1026,"props":7832,"children":7833},{"style":1032},[7834],{"type":998,"value":7835},"# Merge with uniqueness\n",{"type":993,"tag":1026,"props":7837,"children":7838},{"class":1028,"line":311},[7839,7844,7848,7852,7856,7860,7864,7868,7872,7876,7880],{"type":993,"tag":1026,"props":7840,"children":7841},{"style":1041},[7842],{"type":998,"value":7843},"set1 ",{"type":993,"tag":1026,"props":7845,"children":7846},{"style":1047},[7847],{"type":998,"value":1050},{"type":993,"tag":1026,"props":7849,"children":7850},{"style":1041},[7851],{"type":998,"value":1055},{"type":993,"tag":1026,"props":7853,"children":7854},{"style":1058},[7855],{"type":998,"value":1061},{"type":993,"tag":1026,"props":7857,"children":7858},{"style":1041},[7859],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7861,"children":7862},{"style":1058},[7863],{"type":998,"value":1071},{"type":993,"tag":1026,"props":7865,"children":7866},{"style":1041},[7867],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7869,"children":7870},{"style":1058},[7871],{"type":998,"value":1080},{"type":993,"tag":1026,"props":7873,"children":7874},{"style":1041},[7875],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7877,"children":7878},{"style":1058},[7879],{"type":998,"value":1106},{"type":993,"tag":1026,"props":7881,"children":7882},{"style":1041},[7883],{"type":998,"value":1085},{"type":993,"tag":1026,"props":7885,"children":7886},{"class":1028,"line":320},[7887,7892,7896,7900,7904,7908,7912,7916,7920,7924,7928],{"type":993,"tag":1026,"props":7888,"children":7889},{"style":1041},[7890],{"type":998,"value":7891},"set2 ",{"type":993,"tag":1026,"props":7893,"children":7894},{"style":1047},[7895],{"type":998,"value":1050},{"type":993,"tag":1026,"props":7897,"children":7898},{"style":1041},[7899],{"type":998,"value":1055},{"type":993,"tag":1026,"props":7901,"children":7902},{"style":1058},[7903],{"type":998,"value":1080},{"type":993,"tag":1026,"props":7905,"children":7906},{"style":1041},[7907],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7909,"children":7910},{"style":1058},[7911],{"type":998,"value":1106},{"type":993,"tag":1026,"props":7913,"children":7914},{"style":1041},[7915],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7917,"children":7918},{"style":1058},[7919],{"type":998,"value":1115},{"type":993,"tag":1026,"props":7921,"children":7922},{"style":1041},[7923],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7925,"children":7926},{"style":1058},[7927],{"type":998,"value":1124},{"type":993,"tag":1026,"props":7929,"children":7930},{"style":1041},[7931],{"type":998,"value":1085},{"type":993,"tag":1026,"props":7933,"children":7934},{"class":1028,"line":329},[7935,7940,7944,7948,7952,7956,7960,7964,7968,7972,7976],{"type":993,"tag":1026,"props":7936,"children":7937},{"style":1041},[7938],{"type":998,"value":7939},"set3 ",{"type":993,"tag":1026,"props":7941,"children":7942},{"style":1047},[7943],{"type":998,"value":1050},{"type":993,"tag":1026,"props":7945,"children":7946},{"style":1041},[7947],{"type":998,"value":1055},{"type":993,"tag":1026,"props":7949,"children":7950},{"style":1058},[7951],{"type":998,"value":1115},{"type":993,"tag":1026,"props":7953,"children":7954},{"style":1041},[7955],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7957,"children":7958},{"style":1058},[7959],{"type":998,"value":1124},{"type":993,"tag":1026,"props":7961,"children":7962},{"style":1041},[7963],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7965,"children":7966},{"style":1058},[7967],{"type":998,"value":1760},{"type":993,"tag":1026,"props":7969,"children":7970},{"style":1041},[7971],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7973,"children":7974},{"style":1058},[7975],{"type":998,"value":1769},{"type":993,"tag":1026,"props":7977,"children":7978},{"style":1041},[7979],{"type":998,"value":1085},{"type":993,"tag":1026,"props":7981,"children":7982},{"class":1028,"line":338},[7983],{"type":993,"tag":1026,"props":7984,"children":7985},{"emptyLinePlaceholder":13},[7986],{"type":998,"value":1163},{"type":993,"tag":1026,"props":7988,"children":7989},{"class":1028,"line":347},[7990,7995,7999],{"type":993,"tag":1026,"props":7991,"children":7992},{"style":1041},[7993],{"type":998,"value":7994},"unique_merge ",{"type":993,"tag":1026,"props":7996,"children":7997},{"style":1047},[7998],{"type":998,"value":1050},{"type":993,"tag":1026,"props":8000,"children":8001},{"style":1041},[8002],{"type":998,"value":8003}," merge_unique(set1, set2, set3)\n",{"type":993,"tag":1026,"props":8005,"children":8006},{"class":1028,"line":356},[8007,8011,8015,8019,8024,8028,8033,8037,8041],{"type":993,"tag":1026,"props":8008,"children":8009},{"style":1058},[8010],{"type":998,"value":1384},{"type":993,"tag":1026,"props":8012,"children":8013},{"style":1041},[8014],{"type":998,"value":1389},{"type":993,"tag":1026,"props":8016,"children":8017},{"style":1047},[8018],{"type":998,"value":1394},{"type":993,"tag":1026,"props":8020,"children":8021},{"style":1275},[8022],{"type":998,"value":8023},"\"Unique merge: ",{"type":993,"tag":1026,"props":8025,"children":8026},{"style":1058},[8027],{"type":998,"value":1404},{"type":993,"tag":1026,"props":8029,"children":8030},{"style":1041},[8031],{"type":998,"value":8032},"unique_merge",{"type":993,"tag":1026,"props":8034,"children":8035},{"style":1058},[8036],{"type":998,"value":1414},{"type":993,"tag":1026,"props":8038,"children":8039},{"style":1275},[8040],{"type":998,"value":1419},{"type":993,"tag":1026,"props":8042,"children":8043},{"style":1041},[8044],{"type":998,"value":1085},{"type":993,"tag":1026,"props":8046,"children":8047},{"class":1028,"line":365},[8048],{"type":993,"tag":1026,"props":8049,"children":8050},{"emptyLinePlaceholder":13},[8051],{"type":998,"value":1163},{"type":993,"tag":1026,"props":8053,"children":8054},{"class":1028,"line":374},[8055,8059,8064,8068,8072],{"type":993,"tag":1026,"props":8056,"children":8057},{"style":1047},[8058],{"type":998,"value":3149},{"type":993,"tag":1026,"props":8060,"children":8061},{"style":3152},[8062],{"type":998,"value":8063}," merge_by_position",{"type":993,"tag":1026,"props":8065,"children":8066},{"style":1041},[8067],{"type":998,"value":1389},{"type":993,"tag":1026,"props":8069,"children":8070},{"style":1047},[8071],{"type":998,"value":5000},{"type":993,"tag":1026,"props":8073,"children":8074},{"style":1041},[8075],{"type":998,"value":7028},{"type":993,"tag":1026,"props":8077,"children":8078},{"class":1028,"line":384},[8079],{"type":993,"tag":1026,"props":8080,"children":8081},{"style":1275},[8082],{"type":998,"value":8083},"    \"\"\"Merge tuples by collecting elements at each position\"\"\"\n",{"type":993,"tag":1026,"props":8085,"children":8086},{"class":1028,"line":393},[8087,8091,8095],{"type":993,"tag":1026,"props":8088,"children":8089},{"style":1047},[8090],{"type":998,"value":7292},{"type":993,"tag":1026,"props":8092,"children":8093},{"style":1047},[8094],{"type":998,"value":7297},{"type":993,"tag":1026,"props":8096,"children":8097},{"style":1041},[8098],{"type":998,"value":7302},{"type":993,"tag":1026,"props":8100,"children":8101},{"class":1028,"line":402},[8102,8106],{"type":993,"tag":1026,"props":8103,"children":8104},{"style":1047},[8105],{"type":998,"value":7310},{"type":993,"tag":1026,"props":8107,"children":8108},{"style":1041},[8109],{"type":998,"value":2909},{"type":993,"tag":1026,"props":8111,"children":8112},{"class":1028,"line":411},[8113],{"type":993,"tag":1026,"props":8114,"children":8115},{"style":1041},[8116],{"type":998,"value":7322},{"type":993,"tag":1026,"props":8118,"children":8119},{"class":1028,"line":420},[8120,8125,8129,8134,8138,8143,8148,8152,8156,8160],{"type":993,"tag":1026,"props":8121,"children":8122},{"style":1041},[8123],{"type":998,"value":8124},"    max_length ",{"type":993,"tag":1026,"props":8126,"children":8127},{"style":1047},[8128],{"type":998,"value":1050},{"type":993,"tag":1026,"props":8130,"children":8131},{"style":1058},[8132],{"type":998,"value":8133}," max",{"type":993,"tag":1026,"props":8135,"children":8136},{"style":1041},[8137],{"type":998,"value":1389},{"type":993,"tag":1026,"props":8139,"children":8140},{"style":1058},[8141],{"type":998,"value":8142},"len",{"type":993,"tag":1026,"props":8144,"children":8145},{"style":1041},[8146],{"type":998,"value":8147},"(t) ",{"type":993,"tag":1026,"props":8149,"children":8150},{"style":1047},[8151],{"type":998,"value":3815},{"type":993,"tag":1026,"props":8153,"children":8154},{"style":1041},[8155],{"type":998,"value":7360},{"type":993,"tag":1026,"props":8157,"children":8158},{"style":1047},[8159],{"type":998,"value":3825},{"type":993,"tag":1026,"props":8161,"children":8162},{"style":1041},[8163],{"type":998,"value":8164}," tuples)\n",{"type":993,"tag":1026,"props":8166,"children":8167},{"class":1028,"line":429},[8168,8172,8176],{"type":993,"tag":1026,"props":8169,"children":8170},{"style":1041},[8171],{"type":998,"value":7330},{"type":993,"tag":1026,"props":8173,"children":8174},{"style":1047},[8175],{"type":998,"value":1050},{"type":993,"tag":1026,"props":8177,"children":8178},{"style":1041},[8179],{"type":998,"value":2909},{"type":993,"tag":1026,"props":8181,"children":8182},{"class":1028,"line":438},[8183],{"type":993,"tag":1026,"props":8184,"children":8185},{"style":1041},[8186],{"type":998,"value":7322},{"type":993,"tag":1026,"props":8188,"children":8189},{"class":1028,"line":447},[8190,8194,8199,8203,8208],{"type":993,"tag":1026,"props":8191,"children":8192},{"style":1047},[8193],{"type":998,"value":4632},{"type":993,"tag":1026,"props":8195,"children":8196},{"style":1041},[8197],{"type":998,"value":8198}," i ",{"type":993,"tag":1026,"props":8200,"children":8201},{"style":1047},[8202],{"type":998,"value":3825},{"type":993,"tag":1026,"props":8204,"children":8205},{"style":1058},[8206],{"type":998,"value":8207}," range",{"type":993,"tag":1026,"props":8209,"children":8210},{"style":1041},[8211],{"type":998,"value":8212},"(max_length):\n",{"type":993,"tag":1026,"props":8214,"children":8215},{"class":1028,"line":457},[8216,8221,8225],{"type":993,"tag":1026,"props":8217,"children":8218},{"style":1041},[8219],{"type":998,"value":8220},"        position_elements ",{"type":993,"tag":1026,"props":8222,"children":8223},{"style":1047},[8224],{"type":998,"value":1050},{"type":993,"tag":1026,"props":8226,"children":8227},{"style":1041},[8228],{"type":998,"value":2909},{"type":993,"tag":1026,"props":8230,"children":8231},{"class":1028,"line":466},[8232,8236,8240,8244],{"type":993,"tag":1026,"props":8233,"children":8234},{"style":1047},[8235],{"type":998,"value":7744},{"type":993,"tag":1026,"props":8237,"children":8238},{"style":1041},[8239],{"type":998,"value":7360},{"type":993,"tag":1026,"props":8241,"children":8242},{"style":1047},[8243],{"type":998,"value":3825},{"type":993,"tag":1026,"props":8245,"children":8246},{"style":1041},[8247],{"type":998,"value":7302},{"type":993,"tag":1026,"props":8249,"children":8250},{"class":1028,"line":475},[8251,8255,8259,8264,8269],{"type":993,"tag":1026,"props":8252,"children":8253},{"style":1047},[8254],{"type":998,"value":7765},{"type":993,"tag":1026,"props":8256,"children":8257},{"style":1041},[8258],{"type":998,"value":8198},{"type":993,"tag":1026,"props":8260,"children":8261},{"style":1047},[8262],{"type":998,"value":8263},"\u003C",{"type":993,"tag":1026,"props":8265,"children":8266},{"style":1058},[8267],{"type":998,"value":8268}," len",{"type":993,"tag":1026,"props":8270,"children":8271},{"style":1041},[8272],{"type":998,"value":8273},"(t):\n",{"type":993,"tag":1026,"props":8275,"children":8276},{"class":1028,"line":484},[8277,8282,8286],{"type":993,"tag":1026,"props":8278,"children":8279},{"style":1041},[8280],{"type":998,"value":8281},"                position_elements ",{"type":993,"tag":1026,"props":8283,"children":8284},{"style":1047},[8285],{"type":998,"value":4721},{"type":993,"tag":1026,"props":8287,"children":8288},{"style":1041},[8289],{"type":998,"value":8290}," (t[i],)\n",{"type":993,"tag":1026,"props":8292,"children":8293},{"class":1028,"line":493},[8294,8298,8302],{"type":993,"tag":1026,"props":8295,"children":8296},{"style":1041},[8297],{"type":998,"value":7385},{"type":993,"tag":1026,"props":8299,"children":8300},{"style":1047},[8301],{"type":998,"value":4721},{"type":993,"tag":1026,"props":8303,"children":8304},{"style":1041},[8305],{"type":998,"value":8306}," (position_elements,)\n",{"type":993,"tag":1026,"props":8308,"children":8309},{"class":1028,"line":502},[8310],{"type":993,"tag":1026,"props":8311,"children":8312},{"style":1041},[8313],{"type":998,"value":7322},{"type":993,"tag":1026,"props":8315,"children":8316},{"class":1028,"line":511},[8317,8321],{"type":993,"tag":1026,"props":8318,"children":8319},{"style":1047},[8320],{"type":998,"value":3268},{"type":993,"tag":1026,"props":8322,"children":8323},{"style":1041},[8324],{"type":998,"value":7424},{"type":993,"tag":1026,"props":8326,"children":8327},{"class":1028,"line":520},[8328],{"type":993,"tag":1026,"props":8329,"children":8330},{"emptyLinePlaceholder":13},[8331],{"type":998,"value":1163},{"type":993,"tag":1026,"props":8333,"children":8334},{"class":1028,"line":530},[8335],{"type":993,"tag":1026,"props":8336,"children":8337},{"style":1032},[8338],{"type":998,"value":8339},"# Position-based merging\n",{"type":993,"tag":1026,"props":8341,"children":8342},{"class":1028,"line":539},[8343,8348,8352,8356,8360,8364,8368,8372,8376],{"type":993,"tag":1026,"props":8344,"children":8345},{"style":1041},[8346],{"type":998,"value":8347},"tuple1 ",{"type":993,"tag":1026,"props":8349,"children":8350},{"style":1047},[8351],{"type":998,"value":1050},{"type":993,"tag":1026,"props":8353,"children":8354},{"style":1041},[8355],{"type":998,"value":1055},{"type":993,"tag":1026,"props":8357,"children":8358},{"style":1275},[8359],{"type":998,"value":2030},{"type":993,"tag":1026,"props":8361,"children":8362},{"style":1041},[8363],{"type":998,"value":1066},{"type":993,"tag":1026,"props":8365,"children":8366},{"style":1275},[8367],{"type":998,"value":2039},{"type":993,"tag":1026,"props":8369,"children":8370},{"style":1041},[8371],{"type":998,"value":1066},{"type":993,"tag":1026,"props":8373,"children":8374},{"style":1275},[8375],{"type":998,"value":2048},{"type":993,"tag":1026,"props":8377,"children":8378},{"style":1041},[8379],{"type":998,"value":1085},{"type":993,"tag":1026,"props":8381,"children":8382},{"class":1028,"line":548},[8383,8388,8392,8396,8400,8404,8408],{"type":993,"tag":1026,"props":8384,"children":8385},{"style":1041},[8386],{"type":998,"value":8387},"tuple2 ",{"type":993,"tag":1026,"props":8389,"children":8390},{"style":1047},[8391],{"type":998,"value":1050},{"type":993,"tag":1026,"props":8393,"children":8394},{"style":1041},[8395],{"type":998,"value":1055},{"type":993,"tag":1026,"props":8397,"children":8398},{"style":1058},[8399],{"type":998,"value":1061},{"type":993,"tag":1026,"props":8401,"children":8402},{"style":1041},[8403],{"type":998,"value":1066},{"type":993,"tag":1026,"props":8405,"children":8406},{"style":1058},[8407],{"type":998,"value":1071},{"type":993,"tag":1026,"props":8409,"children":8410},{"style":1041},[8411],{"type":998,"value":1085},{"type":993,"tag":1026,"props":8413,"children":8414},{"class":1028,"line":557},[8415,8420,8424,8428,8433,8437,8442,8446,8451,8455,8460],{"type":993,"tag":1026,"props":8416,"children":8417},{"style":1041},[8418],{"type":998,"value":8419},"tuple3 ",{"type":993,"tag":1026,"props":8421,"children":8422},{"style":1047},[8423],{"type":998,"value":1050},{"type":993,"tag":1026,"props":8425,"children":8426},{"style":1041},[8427],{"type":998,"value":1055},{"type":993,"tag":1026,"props":8429,"children":8430},{"style":1275},[8431],{"type":998,"value":8432},"\"x\"",{"type":993,"tag":1026,"props":8434,"children":8435},{"style":1041},[8436],{"type":998,"value":1066},{"type":993,"tag":1026,"props":8438,"children":8439},{"style":1275},[8440],{"type":998,"value":8441},"\"y\"",{"type":993,"tag":1026,"props":8443,"children":8444},{"style":1041},[8445],{"type":998,"value":1066},{"type":993,"tag":1026,"props":8447,"children":8448},{"style":1275},[8449],{"type":998,"value":8450},"\"z\"",{"type":993,"tag":1026,"props":8452,"children":8453},{"style":1041},[8454],{"type":998,"value":1066},{"type":993,"tag":1026,"props":8456,"children":8457},{"style":1275},[8458],{"type":998,"value":8459},"\"w\"",{"type":993,"tag":1026,"props":8461,"children":8462},{"style":1041},[8463],{"type":998,"value":1085},{"type":993,"tag":1026,"props":8465,"children":8466},{"class":1028,"line":566},[8467],{"type":993,"tag":1026,"props":8468,"children":8469},{"emptyLinePlaceholder":13},[8470],{"type":998,"value":1163},{"type":993,"tag":1026,"props":8472,"children":8473},{"class":1028,"line":575},[8474,8479,8483],{"type":993,"tag":1026,"props":8475,"children":8476},{"style":1041},[8477],{"type":998,"value":8478},"position_merged ",{"type":993,"tag":1026,"props":8480,"children":8481},{"style":1047},[8482],{"type":998,"value":1050},{"type":993,"tag":1026,"props":8484,"children":8485},{"style":1041},[8486],{"type":998,"value":8487}," merge_by_position(tuple1, tuple2, tuple3)\n",{"type":993,"tag":1026,"props":8489,"children":8490},{"class":1028,"line":584},[8491,8495,8499,8503,8508,8512,8517,8521,8525],{"type":993,"tag":1026,"props":8492,"children":8493},{"style":1058},[8494],{"type":998,"value":1384},{"type":993,"tag":1026,"props":8496,"children":8497},{"style":1041},[8498],{"type":998,"value":1389},{"type":993,"tag":1026,"props":8500,"children":8501},{"style":1047},[8502],{"type":998,"value":1394},{"type":993,"tag":1026,"props":8504,"children":8505},{"style":1275},[8506],{"type":998,"value":8507},"\"Position merged: ",{"type":993,"tag":1026,"props":8509,"children":8510},{"style":1058},[8511],{"type":998,"value":1404},{"type":993,"tag":1026,"props":8513,"children":8514},{"style":1041},[8515],{"type":998,"value":8516},"position_merged",{"type":993,"tag":1026,"props":8518,"children":8519},{"style":1058},[8520],{"type":998,"value":1414},{"type":993,"tag":1026,"props":8522,"children":8523},{"style":1275},[8524],{"type":998,"value":1419},{"type":993,"tag":1026,"props":8526,"children":8527},{"style":1041},[8528],{"type":998,"value":1085},{"type":993,"tag":1507,"props":8530,"children":8532},{"id":8531},"nested-tuple-merging",[8533],{"type":998,"value":8534},"🌟 Nested Tuple Merging",{"type":993,"tag":1001,"props":8536,"children":8537},{},[8538],{"type":998,"value":8539},"When working with nested tuple structures, you need specialized techniques to merge at different levels while preserving the overall structure.",{"type":993,"tag":1526,"props":8541,"children":8545},{"emoji":8542,"title":8543,"type":8544},"🌟","Nested Merging Considerations","warning",[8546,8554,8577,8585,8608,8616],{"type":993,"tag":1001,"props":8547,"children":8548},{},[8549],{"type":993,"tag":1536,"props":8550,"children":8551},{},[8552],{"type":998,"value":8553},"Complexity Factors:",{"type":993,"tag":1542,"props":8555,"children":8556},{},[8557,8562,8567,8572],{"type":993,"tag":1546,"props":8558,"children":8559},{},[8560],{"type":998,"value":8561},"Multiple nesting levels require careful handling",{"type":993,"tag":1546,"props":8563,"children":8564},{},[8565],{"type":998,"value":8566},"Structure preservation vs flattening decisions",{"type":993,"tag":1546,"props":8568,"children":8569},{},[8570],{"type":998,"value":8571},"Performance impact of deep nesting operations",{"type":993,"tag":1546,"props":8573,"children":8574},{},[8575],{"type":998,"value":8576},"Memory considerations for large nested structures",{"type":993,"tag":1001,"props":8578,"children":8579},{},[8580],{"type":993,"tag":1536,"props":8581,"children":8582},{},[8583],{"type":998,"value":8584},"Approach Selection:",{"type":993,"tag":1542,"props":8586,"children":8587},{},[8588,8593,8598,8603],{"type":993,"tag":1546,"props":8589,"children":8590},{},[8591],{"type":998,"value":8592},"Recursive functions for uniform nesting",{"type":993,"tag":1546,"props":8594,"children":8595},{},[8596],{"type":998,"value":8597},"Iterative approaches for known depths",{"type":993,"tag":1546,"props":8599,"children":8600},{},[8601],{"type":998,"value":8602},"Flattening when structure isn't important",{"type":993,"tag":1546,"props":8604,"children":8605},{},[8606],{"type":998,"value":8607},"Custom logic for mixed nesting patterns",{"type":993,"tag":1001,"props":8609,"children":8610},{},[8611],{"type":993,"tag":1536,"props":8612,"children":8613},{},[8614],{"type":998,"value":8615},"Common Pitfalls:",{"type":993,"tag":1542,"props":8617,"children":8618},{},[8619,8624,8629],{"type":993,"tag":1546,"props":8620,"children":8621},{},[8622],{"type":998,"value":8623},"Losing track of nesting levels",{"type":993,"tag":1546,"props":8625,"children":8626},{},[8627],{"type":998,"value":8628},"Mixing up tuple vs list operations",{"type":993,"tag":1546,"props":8630,"children":8631},{},[8632],{"type":998,"value":8633},"Performance degradation with deep recursion",{"type":993,"tag":1631,"props":8635,"children":8637},{"id":8636},"merging-nested-structures",[8638],{"type":998,"value":8639},"Merging Nested Structures",{"type":993,"tag":1001,"props":8641,"children":8642},{},[8643],{"type":998,"value":8644},"Combining nested tuples while preserving hierarchical organization.",{"type":993,"tag":1012,"props":8646,"children":8647},{},[8648],{"type":993,"tag":1016,"props":8649,"children":8651},{"className":1018,"code":8650,"language":6,"meta":8,"style":8},"# Merging nested tuple structures\ncoordinates_2d = ((0, 0), (10, 10), (20, 20))\ncoordinates_3d = ((0, 0, 0), (10, 10, 10), (20, 20, 20))\n\n# Merge nested coordinate sets\nall_coordinates = coordinates_2d + coordinates_3d\nprint(f\"All coordinates: {all_coordinates}\")\n\n# Student records merging\nclass_a_students = (\n    (\"Alice\", (85, 92, 78)),\n    (\"Bob\", (88, 85, 92))\n)\n\nclass_b_students = (\n    (\"Carol\", (95, 89, 94)),\n    (\"David\", (78, 82, 85))\n)\n\nall_students = class_a_students + class_b_students\nprint(f\"All students: {all_students}\")\n\n# Nested configuration merging\ndatabase_config = (\n    (\"connection\", (\"localhost\", 5432)),\n    (\"credentials\", (\"user\", \"password\"))\n)\n\ncache_config = (\n    (\"redis\", (\"127.0.0.1\", 6379)),\n    (\"timeout\", (30,))\n)\n\nfull_config = database_config + cache_config\nprint(f\"Full config: {full_config}\")\n",[8652],{"type":993,"tag":1022,"props":8653,"children":8654},{"__ignoreMap":8},[8655,8663,8728,8815,8822,8830,8855,8896,8903,8911,8928,8968,9007,9014,9021,9037,9077,9116,9123,9130,9156,9197,9204,9212,9228,9262,9296,9303,9310,9326,9360,9385,9392,9399,9425],{"type":993,"tag":1026,"props":8656,"children":8657},{"class":1028,"line":12},[8658],{"type":993,"tag":1026,"props":8659,"children":8660},{"style":1032},[8661],{"type":998,"value":8662},"# Merging nested tuple structures\n",{"type":993,"tag":1026,"props":8664,"children":8665},{"class":1028,"line":27},[8666,8670,8674,8679,8683,8687,8691,8696,8700,8704,8708,8712,8716,8720,8724],{"type":993,"tag":1026,"props":8667,"children":8668},{"style":1041},[8669],{"type":998,"value":1171},{"type":993,"tag":1026,"props":8671,"children":8672},{"style":1047},[8673],{"type":998,"value":1050},{"type":993,"tag":1026,"props":8675,"children":8676},{"style":1041},[8677],{"type":998,"value":8678}," ((",{"type":993,"tag":1026,"props":8680,"children":8681},{"style":1058},[8682],{"type":998,"value":7344},{"type":993,"tag":1026,"props":8684,"children":8685},{"style":1041},[8686],{"type":998,"value":1066},{"type":993,"tag":1026,"props":8688,"children":8689},{"style":1058},[8690],{"type":998,"value":7344},{"type":993,"tag":1026,"props":8692,"children":8693},{"style":1041},[8694],{"type":998,"value":8695},"), (",{"type":993,"tag":1026,"props":8697,"children":8698},{"style":1058},[8699],{"type":998,"value":1184},{"type":993,"tag":1026,"props":8701,"children":8702},{"style":1041},[8703],{"type":998,"value":1066},{"type":993,"tag":1026,"props":8705,"children":8706},{"style":1058},[8707],{"type":998,"value":1184},{"type":993,"tag":1026,"props":8709,"children":8710},{"style":1041},[8711],{"type":998,"value":8695},{"type":993,"tag":1026,"props":8713,"children":8714},{"style":1058},[8715],{"type":998,"value":1193},{"type":993,"tag":1026,"props":8717,"children":8718},{"style":1041},[8719],{"type":998,"value":1066},{"type":993,"tag":1026,"props":8721,"children":8722},{"style":1058},[8723],{"type":998,"value":1193},{"type":993,"tag":1026,"props":8725,"children":8726},{"style":1041},[8727],{"type":998,"value":6670},{"type":993,"tag":1026,"props":8729,"children":8730},{"class":1028,"line":36},[8731,8735,8739,8743,8747,8751,8755,8759,8763,8767,8771,8775,8779,8783,8787,8791,8795,8799,8803,8807,8811],{"type":993,"tag":1026,"props":8732,"children":8733},{"style":1041},[8734],{"type":998,"value":1231},{"type":993,"tag":1026,"props":8736,"children":8737},{"style":1047},[8738],{"type":998,"value":1050},{"type":993,"tag":1026,"props":8740,"children":8741},{"style":1041},[8742],{"type":998,"value":8678},{"type":993,"tag":1026,"props":8744,"children":8745},{"style":1058},[8746],{"type":998,"value":7344},{"type":993,"tag":1026,"props":8748,"children":8749},{"style":1041},[8750],{"type":998,"value":1066},{"type":993,"tag":1026,"props":8752,"children":8753},{"style":1058},[8754],{"type":998,"value":7344},{"type":993,"tag":1026,"props":8756,"children":8757},{"style":1041},[8758],{"type":998,"value":1066},{"type":993,"tag":1026,"props":8760,"children":8761},{"style":1058},[8762],{"type":998,"value":7344},{"type":993,"tag":1026,"props":8764,"children":8765},{"style":1041},[8766],{"type":998,"value":8695},{"type":993,"tag":1026,"props":8768,"children":8769},{"style":1058},[8770],{"type":998,"value":1184},{"type":993,"tag":1026,"props":8772,"children":8773},{"style":1041},[8774],{"type":998,"value":1066},{"type":993,"tag":1026,"props":8776,"children":8777},{"style":1058},[8778],{"type":998,"value":1184},{"type":993,"tag":1026,"props":8780,"children":8781},{"style":1041},[8782],{"type":998,"value":1066},{"type":993,"tag":1026,"props":8784,"children":8785},{"style":1058},[8786],{"type":998,"value":1184},{"type":993,"tag":1026,"props":8788,"children":8789},{"style":1041},[8790],{"type":998,"value":8695},{"type":993,"tag":1026,"props":8792,"children":8793},{"style":1058},[8794],{"type":998,"value":1193},{"type":993,"tag":1026,"props":8796,"children":8797},{"style":1041},[8798],{"type":998,"value":1066},{"type":993,"tag":1026,"props":8800,"children":8801},{"style":1058},[8802],{"type":998,"value":1193},{"type":993,"tag":1026,"props":8804,"children":8805},{"style":1041},[8806],{"type":998,"value":1066},{"type":993,"tag":1026,"props":8808,"children":8809},{"style":1058},[8810],{"type":998,"value":1193},{"type":993,"tag":1026,"props":8812,"children":8813},{"style":1041},[8814],{"type":998,"value":6670},{"type":993,"tag":1026,"props":8816,"children":8817},{"class":1028,"line":45},[8818],{"type":993,"tag":1026,"props":8819,"children":8820},{"emptyLinePlaceholder":13},[8821],{"type":998,"value":1163},{"type":993,"tag":1026,"props":8823,"children":8824},{"class":1028,"line":54},[8825],{"type":993,"tag":1026,"props":8826,"children":8827},{"style":1032},[8828],{"type":998,"value":8829},"# Merge nested coordinate sets\n",{"type":993,"tag":1026,"props":8831,"children":8832},{"class":1028,"line":63},[8833,8838,8842,8846,8850],{"type":993,"tag":1026,"props":8834,"children":8835},{"style":1041},[8836],{"type":998,"value":8837},"all_coordinates ",{"type":993,"tag":1026,"props":8839,"children":8840},{"style":1047},[8841],{"type":998,"value":1050},{"type":993,"tag":1026,"props":8843,"children":8844},{"style":1041},[8845],{"type":998,"value":1240},{"type":993,"tag":1026,"props":8847,"children":8848},{"style":1047},[8849],{"type":998,"value":1150},{"type":993,"tag":1026,"props":8851,"children":8852},{"style":1041},[8853],{"type":998,"value":8854}," coordinates_3d\n",{"type":993,"tag":1026,"props":8856,"children":8857},{"class":1028,"line":72},[8858,8862,8866,8870,8875,8879,8884,8888,8892],{"type":993,"tag":1026,"props":8859,"children":8860},{"style":1058},[8861],{"type":998,"value":1384},{"type":993,"tag":1026,"props":8863,"children":8864},{"style":1041},[8865],{"type":998,"value":1389},{"type":993,"tag":1026,"props":8867,"children":8868},{"style":1047},[8869],{"type":998,"value":1394},{"type":993,"tag":1026,"props":8871,"children":8872},{"style":1275},[8873],{"type":998,"value":8874},"\"All coordinates: ",{"type":993,"tag":1026,"props":8876,"children":8877},{"style":1058},[8878],{"type":998,"value":1404},{"type":993,"tag":1026,"props":8880,"children":8881},{"style":1041},[8882],{"type":998,"value":8883},"all_coordinates",{"type":993,"tag":1026,"props":8885,"children":8886},{"style":1058},[8887],{"type":998,"value":1414},{"type":993,"tag":1026,"props":8889,"children":8890},{"style":1275},[8891],{"type":998,"value":1419},{"type":993,"tag":1026,"props":8893,"children":8894},{"style":1041},[8895],{"type":998,"value":1085},{"type":993,"tag":1026,"props":8897,"children":8898},{"class":1028,"line":81},[8899],{"type":993,"tag":1026,"props":8900,"children":8901},{"emptyLinePlaceholder":13},[8902],{"type":998,"value":1163},{"type":993,"tag":1026,"props":8904,"children":8905},{"class":1028,"line":91},[8906],{"type":993,"tag":1026,"props":8907,"children":8908},{"style":1032},[8909],{"type":998,"value":8910},"# Student records merging\n",{"type":993,"tag":1026,"props":8912,"children":8913},{"class":1028,"line":100},[8914,8919,8923],{"type":993,"tag":1026,"props":8915,"children":8916},{"style":1041},[8917],{"type":998,"value":8918},"class_a_students ",{"type":993,"tag":1026,"props":8920,"children":8921},{"style":1047},[8922],{"type":998,"value":1050},{"type":993,"tag":1026,"props":8924,"children":8925},{"style":1041},[8926],{"type":998,"value":8927}," (\n",{"type":993,"tag":1026,"props":8929,"children":8930},{"class":1028,"line":109},[8931,8935,8939,8944,8948,8952,8956,8960,8964],{"type":993,"tag":1026,"props":8932,"children":8933},{"style":1041},[8934],{"type":998,"value":5808},{"type":993,"tag":1026,"props":8936,"children":8937},{"style":1275},[8938],{"type":998,"value":2229},{"type":993,"tag":1026,"props":8940,"children":8941},{"style":1041},[8942],{"type":998,"value":8943},", (",{"type":993,"tag":1026,"props":8945,"children":8946},{"style":1058},[8947],{"type":998,"value":4143},{"type":993,"tag":1026,"props":8949,"children":8950},{"style":1041},[8951],{"type":998,"value":1066},{"type":993,"tag":1026,"props":8953,"children":8954},{"style":1058},[8955],{"type":998,"value":4152},{"type":993,"tag":1026,"props":8957,"children":8958},{"style":1041},[8959],{"type":998,"value":1066},{"type":993,"tag":1026,"props":8961,"children":8962},{"style":1058},[8963],{"type":998,"value":4161},{"type":993,"tag":1026,"props":8965,"children":8966},{"style":1041},[8967],{"type":998,"value":6563},{"type":993,"tag":1026,"props":8969,"children":8970},{"class":1028,"line":118},[8971,8975,8979,8983,8987,8991,8995,8999,9003],{"type":993,"tag":1026,"props":8972,"children":8973},{"style":1041},[8974],{"type":998,"value":5808},{"type":993,"tag":1026,"props":8976,"children":8977},{"style":1275},[8978],{"type":998,"value":3590},{"type":993,"tag":1026,"props":8980,"children":8981},{"style":1041},[8982],{"type":998,"value":8943},{"type":993,"tag":1026,"props":8984,"children":8985},{"style":1058},[8986],{"type":998,"value":4195},{"type":993,"tag":1026,"props":8988,"children":8989},{"style":1041},[8990],{"type":998,"value":1066},{"type":993,"tag":1026,"props":8992,"children":8993},{"style":1058},[8994],{"type":998,"value":4143},{"type":993,"tag":1026,"props":8996,"children":8997},{"style":1041},[8998],{"type":998,"value":1066},{"type":993,"tag":1026,"props":9000,"children":9001},{"style":1058},[9002],{"type":998,"value":4152},{"type":993,"tag":1026,"props":9004,"children":9005},{"style":1041},[9006],{"type":998,"value":6670},{"type":993,"tag":1026,"props":9008,"children":9009},{"class":1028,"line":127},[9010],{"type":993,"tag":1026,"props":9011,"children":9012},{"style":1041},[9013],{"type":998,"value":1085},{"type":993,"tag":1026,"props":9015,"children":9016},{"class":1028,"line":136},[9017],{"type":993,"tag":1026,"props":9018,"children":9019},{"emptyLinePlaceholder":13},[9020],{"type":998,"value":1163},{"type":993,"tag":1026,"props":9022,"children":9023},{"class":1028,"line":146},[9024,9029,9033],{"type":993,"tag":1026,"props":9025,"children":9026},{"style":1041},[9027],{"type":998,"value":9028},"class_b_students ",{"type":993,"tag":1026,"props":9030,"children":9031},{"style":1047},[9032],{"type":998,"value":1050},{"type":993,"tag":1026,"props":9034,"children":9035},{"style":1041},[9036],{"type":998,"value":8927},{"type":993,"tag":1026,"props":9038,"children":9039},{"class":1028,"line":155},[9040,9044,9048,9052,9057,9061,9065,9069,9073],{"type":993,"tag":1026,"props":9041,"children":9042},{"style":1041},[9043],{"type":998,"value":5808},{"type":993,"tag":1026,"props":9045,"children":9046},{"style":1275},[9047],{"type":998,"value":3599},{"type":993,"tag":1026,"props":9049,"children":9050},{"style":1041},[9051],{"type":998,"value":8943},{"type":993,"tag":1026,"props":9053,"children":9054},{"style":1058},[9055],{"type":998,"value":9056},"95",{"type":993,"tag":1026,"props":9058,"children":9059},{"style":1041},[9060],{"type":998,"value":1066},{"type":993,"tag":1026,"props":9062,"children":9063},{"style":1058},[9064],{"type":998,"value":4204},{"type":993,"tag":1026,"props":9066,"children":9067},{"style":1041},[9068],{"type":998,"value":1066},{"type":993,"tag":1026,"props":9070,"children":9071},{"style":1058},[9072],{"type":998,"value":4222},{"type":993,"tag":1026,"props":9074,"children":9075},{"style":1041},[9076],{"type":998,"value":6563},{"type":993,"tag":1026,"props":9078,"children":9079},{"class":1028,"line":164},[9080,9084,9088,9092,9096,9100,9104,9108,9112],{"type":993,"tag":1026,"props":9081,"children":9082},{"style":1041},[9083],{"type":998,"value":5808},{"type":993,"tag":1026,"props":9085,"children":9086},{"style":1275},[9087],{"type":998,"value":4271},{"type":993,"tag":1026,"props":9089,"children":9090},{"style":1041},[9091],{"type":998,"value":8943},{"type":993,"tag":1026,"props":9093,"children":9094},{"style":1058},[9095],{"type":998,"value":4161},{"type":993,"tag":1026,"props":9097,"children":9098},{"style":1041},[9099],{"type":998,"value":1066},{"type":993,"tag":1026,"props":9101,"children":9102},{"style":1058},[9103],{"type":998,"value":4213},{"type":993,"tag":1026,"props":9105,"children":9106},{"style":1041},[9107],{"type":998,"value":1066},{"type":993,"tag":1026,"props":9109,"children":9110},{"style":1058},[9111],{"type":998,"value":4143},{"type":993,"tag":1026,"props":9113,"children":9114},{"style":1041},[9115],{"type":998,"value":6670},{"type":993,"tag":1026,"props":9117,"children":9118},{"class":1028,"line":173},[9119],{"type":993,"tag":1026,"props":9120,"children":9121},{"style":1041},[9122],{"type":998,"value":1085},{"type":993,"tag":1026,"props":9124,"children":9125},{"class":1028,"line":182},[9126],{"type":993,"tag":1026,"props":9127,"children":9128},{"emptyLinePlaceholder":13},[9129],{"type":998,"value":1163},{"type":993,"tag":1026,"props":9131,"children":9132},{"class":1028,"line":191},[9133,9138,9142,9147,9151],{"type":993,"tag":1026,"props":9134,"children":9135},{"style":1041},[9136],{"type":998,"value":9137},"all_students ",{"type":993,"tag":1026,"props":9139,"children":9140},{"style":1047},[9141],{"type":998,"value":1050},{"type":993,"tag":1026,"props":9143,"children":9144},{"style":1041},[9145],{"type":998,"value":9146}," class_a_students ",{"type":993,"tag":1026,"props":9148,"children":9149},{"style":1047},[9150],{"type":998,"value":1150},{"type":993,"tag":1026,"props":9152,"children":9153},{"style":1041},[9154],{"type":998,"value":9155}," class_b_students\n",{"type":993,"tag":1026,"props":9157,"children":9158},{"class":1028,"line":201},[9159,9163,9167,9171,9176,9180,9185,9189,9193],{"type":993,"tag":1026,"props":9160,"children":9161},{"style":1058},[9162],{"type":998,"value":1384},{"type":993,"tag":1026,"props":9164,"children":9165},{"style":1041},[9166],{"type":998,"value":1389},{"type":993,"tag":1026,"props":9168,"children":9169},{"style":1047},[9170],{"type":998,"value":1394},{"type":993,"tag":1026,"props":9172,"children":9173},{"style":1275},[9174],{"type":998,"value":9175},"\"All students: ",{"type":993,"tag":1026,"props":9177,"children":9178},{"style":1058},[9179],{"type":998,"value":1404},{"type":993,"tag":1026,"props":9181,"children":9182},{"style":1041},[9183],{"type":998,"value":9184},"all_students",{"type":993,"tag":1026,"props":9186,"children":9187},{"style":1058},[9188],{"type":998,"value":1414},{"type":993,"tag":1026,"props":9190,"children":9191},{"style":1275},[9192],{"type":998,"value":1419},{"type":993,"tag":1026,"props":9194,"children":9195},{"style":1041},[9196],{"type":998,"value":1085},{"type":993,"tag":1026,"props":9198,"children":9199},{"class":1028,"line":210},[9200],{"type":993,"tag":1026,"props":9201,"children":9202},{"emptyLinePlaceholder":13},[9203],{"type":998,"value":1163},{"type":993,"tag":1026,"props":9205,"children":9206},{"class":1028,"line":219},[9207],{"type":993,"tag":1026,"props":9208,"children":9209},{"style":1032},[9210],{"type":998,"value":9211},"# Nested configuration merging\n",{"type":993,"tag":1026,"props":9213,"children":9214},{"class":1028,"line":228},[9215,9220,9224],{"type":993,"tag":1026,"props":9216,"children":9217},{"style":1041},[9218],{"type":998,"value":9219},"database_config ",{"type":993,"tag":1026,"props":9221,"children":9222},{"style":1047},[9223],{"type":998,"value":1050},{"type":993,"tag":1026,"props":9225,"children":9226},{"style":1041},[9227],{"type":998,"value":8927},{"type":993,"tag":1026,"props":9229,"children":9230},{"class":1028,"line":238},[9231,9235,9240,9244,9249,9253,9258],{"type":993,"tag":1026,"props":9232,"children":9233},{"style":1041},[9234],{"type":998,"value":5808},{"type":993,"tag":1026,"props":9236,"children":9237},{"style":1275},[9238],{"type":998,"value":9239},"\"connection\"",{"type":993,"tag":1026,"props":9241,"children":9242},{"style":1041},[9243],{"type":998,"value":8943},{"type":993,"tag":1026,"props":9245,"children":9246},{"style":1275},[9247],{"type":998,"value":9248},"\"localhost\"",{"type":993,"tag":1026,"props":9250,"children":9251},{"style":1041},[9252],{"type":998,"value":1066},{"type":993,"tag":1026,"props":9254,"children":9255},{"style":1058},[9256],{"type":998,"value":9257},"5432",{"type":993,"tag":1026,"props":9259,"children":9260},{"style":1041},[9261],{"type":998,"value":6563},{"type":993,"tag":1026,"props":9263,"children":9264},{"class":1028,"line":247},[9265,9269,9274,9278,9283,9287,9292],{"type":993,"tag":1026,"props":9266,"children":9267},{"style":1041},[9268],{"type":998,"value":5808},{"type":993,"tag":1026,"props":9270,"children":9271},{"style":1275},[9272],{"type":998,"value":9273},"\"credentials\"",{"type":993,"tag":1026,"props":9275,"children":9276},{"style":1041},[9277],{"type":998,"value":8943},{"type":993,"tag":1026,"props":9279,"children":9280},{"style":1275},[9281],{"type":998,"value":9282},"\"user\"",{"type":993,"tag":1026,"props":9284,"children":9285},{"style":1041},[9286],{"type":998,"value":1066},{"type":993,"tag":1026,"props":9288,"children":9289},{"style":1275},[9290],{"type":998,"value":9291},"\"password\"",{"type":993,"tag":1026,"props":9293,"children":9294},{"style":1041},[9295],{"type":998,"value":6670},{"type":993,"tag":1026,"props":9297,"children":9298},{"class":1028,"line":256},[9299],{"type":993,"tag":1026,"props":9300,"children":9301},{"style":1041},[9302],{"type":998,"value":1085},{"type":993,"tag":1026,"props":9304,"children":9305},{"class":1028,"line":265},[9306],{"type":993,"tag":1026,"props":9307,"children":9308},{"emptyLinePlaceholder":13},[9309],{"type":998,"value":1163},{"type":993,"tag":1026,"props":9311,"children":9312},{"class":1028,"line":274},[9313,9318,9322],{"type":993,"tag":1026,"props":9314,"children":9315},{"style":1041},[9316],{"type":998,"value":9317},"cache_config ",{"type":993,"tag":1026,"props":9319,"children":9320},{"style":1047},[9321],{"type":998,"value":1050},{"type":993,"tag":1026,"props":9323,"children":9324},{"style":1041},[9325],{"type":998,"value":8927},{"type":993,"tag":1026,"props":9327,"children":9328},{"class":1028,"line":284},[9329,9333,9338,9342,9347,9351,9356],{"type":993,"tag":1026,"props":9330,"children":9331},{"style":1041},[9332],{"type":998,"value":5808},{"type":993,"tag":1026,"props":9334,"children":9335},{"style":1275},[9336],{"type":998,"value":9337},"\"redis\"",{"type":993,"tag":1026,"props":9339,"children":9340},{"style":1041},[9341],{"type":998,"value":8943},{"type":993,"tag":1026,"props":9343,"children":9344},{"style":1275},[9345],{"type":998,"value":9346},"\"127.0.0.1\"",{"type":993,"tag":1026,"props":9348,"children":9349},{"style":1041},[9350],{"type":998,"value":1066},{"type":993,"tag":1026,"props":9352,"children":9353},{"style":1058},[9354],{"type":998,"value":9355},"6379",{"type":993,"tag":1026,"props":9357,"children":9358},{"style":1041},[9359],{"type":998,"value":6563},{"type":993,"tag":1026,"props":9361,"children":9362},{"class":1028,"line":293},[9363,9367,9372,9376,9380],{"type":993,"tag":1026,"props":9364,"children":9365},{"style":1041},[9366],{"type":998,"value":5808},{"type":993,"tag":1026,"props":9368,"children":9369},{"style":1275},[9370],{"type":998,"value":9371},"\"timeout\"",{"type":993,"tag":1026,"props":9373,"children":9374},{"style":1041},[9375],{"type":998,"value":8943},{"type":993,"tag":1026,"props":9377,"children":9378},{"style":1058},[9379],{"type":998,"value":1218},{"type":993,"tag":1026,"props":9381,"children":9382},{"style":1041},[9383],{"type":998,"value":9384},",))\n",{"type":993,"tag":1026,"props":9386,"children":9387},{"class":1028,"line":302},[9388],{"type":993,"tag":1026,"props":9389,"children":9390},{"style":1041},[9391],{"type":998,"value":1085},{"type":993,"tag":1026,"props":9393,"children":9394},{"class":1028,"line":311},[9395],{"type":993,"tag":1026,"props":9396,"children":9397},{"emptyLinePlaceholder":13},[9398],{"type":998,"value":1163},{"type":993,"tag":1026,"props":9400,"children":9401},{"class":1028,"line":320},[9402,9407,9411,9416,9420],{"type":993,"tag":1026,"props":9403,"children":9404},{"style":1041},[9405],{"type":998,"value":9406},"full_config ",{"type":993,"tag":1026,"props":9408,"children":9409},{"style":1047},[9410],{"type":998,"value":1050},{"type":993,"tag":1026,"props":9412,"children":9413},{"style":1041},[9414],{"type":998,"value":9415}," database_config ",{"type":993,"tag":1026,"props":9417,"children":9418},{"style":1047},[9419],{"type":998,"value":1150},{"type":993,"tag":1026,"props":9421,"children":9422},{"style":1041},[9423],{"type":998,"value":9424}," cache_config\n",{"type":993,"tag":1026,"props":9426,"children":9427},{"class":1028,"line":329},[9428,9432,9436,9440,9445,9449,9454,9458,9462],{"type":993,"tag":1026,"props":9429,"children":9430},{"style":1058},[9431],{"type":998,"value":1384},{"type":993,"tag":1026,"props":9433,"children":9434},{"style":1041},[9435],{"type":998,"value":1389},{"type":993,"tag":1026,"props":9437,"children":9438},{"style":1047},[9439],{"type":998,"value":1394},{"type":993,"tag":1026,"props":9441,"children":9442},{"style":1275},[9443],{"type":998,"value":9444},"\"Full config: ",{"type":993,"tag":1026,"props":9446,"children":9447},{"style":1058},[9448],{"type":998,"value":1404},{"type":993,"tag":1026,"props":9450,"children":9451},{"style":1041},[9452],{"type":998,"value":9453},"full_config",{"type":993,"tag":1026,"props":9455,"children":9456},{"style":1058},[9457],{"type":998,"value":1414},{"type":993,"tag":1026,"props":9459,"children":9460},{"style":1275},[9461],{"type":998,"value":1419},{"type":993,"tag":1026,"props":9463,"children":9464},{"style":1041},[9465],{"type":998,"value":1085},{"type":993,"tag":1631,"props":9467,"children":9469},{"id":9468},"flattening-during-merge",[9470],{"type":998,"value":9471},"Flattening During Merge",{"type":993,"tag":1001,"props":9473,"children":9474},{},[9475],{"type":998,"value":9476},"Converting nested structures to flat tuples during the merging process.",{"type":993,"tag":1012,"props":9478,"children":9479},{},[9480],{"type":993,"tag":1016,"props":9481,"children":9483},{"className":1018,"code":9482,"language":6,"meta":8,"style":8},"# Flattening nested tuples during merge\ndef flatten_and_merge(*nested_tuples):\n    \"\"\"Flatten nested tuples and merge into single tuple\"\"\"\n    result = ()\n    for nested in nested_tuples:\n        for item in nested:\n            if isinstance(item, tuple):\n                # Recursively flatten\n                result += flatten_and_merge(item)\n            else:\n                result += (item,)\n    return result\n\n# Test data\nnested1 = ((1, 2), (3, 4))\nnested2 = ((5, 6), (7, 8))\nnested3 = (9, (10, 11))\n\nflattened = flatten_and_merge(nested1, nested2, nested3)\nprint(f\"Flattened merge: {flattened}\")\n\n# Selective flattening\ndef flatten_one_level(*tuples):\n    \"\"\"Flatten only one level of nesting\"\"\"\n    result = ()\n    for t in tuples:\n        for item in t:\n            if isinstance(item, tuple):\n                result += item\n            else:\n                result += (item,)\n    return result\n\n# Test selective flattening\ndata1 = (1, (2, 3), 4)\ndata2 = ((5, 6), 7, (8, 9))\n\none_level = flatten_one_level(data1, data2)\nprint(f\"One level flattened: {one_level}\")\n",[9484],{"type":993,"tag":1022,"props":9485,"children":9486},{"__ignoreMap":8},[9487,9495,9520,9528,9543,9564,9584,9610,9618,9634,9647,9662,9673,9680,9688,9736,9784,9824,9831,9848,9889,9896,9904,9928,9936,9951,9970,9989,10012,10028,10039,10054,10065,10072,10080,10128,10183,10190,10207],{"type":993,"tag":1026,"props":9488,"children":9489},{"class":1028,"line":12},[9490],{"type":993,"tag":1026,"props":9491,"children":9492},{"style":1032},[9493],{"type":998,"value":9494},"# Flattening nested tuples during merge\n",{"type":993,"tag":1026,"props":9496,"children":9497},{"class":1028,"line":27},[9498,9502,9507,9511,9515],{"type":993,"tag":1026,"props":9499,"children":9500},{"style":1047},[9501],{"type":998,"value":3149},{"type":993,"tag":1026,"props":9503,"children":9504},{"style":3152},[9505],{"type":998,"value":9506}," flatten_and_merge",{"type":993,"tag":1026,"props":9508,"children":9509},{"style":1041},[9510],{"type":998,"value":1389},{"type":993,"tag":1026,"props":9512,"children":9513},{"style":1047},[9514],{"type":998,"value":5000},{"type":993,"tag":1026,"props":9516,"children":9517},{"style":1041},[9518],{"type":998,"value":9519},"nested_tuples):\n",{"type":993,"tag":1026,"props":9521,"children":9522},{"class":1028,"line":36},[9523],{"type":993,"tag":1026,"props":9524,"children":9525},{"style":1275},[9526],{"type":998,"value":9527},"    \"\"\"Flatten nested tuples and merge into single tuple\"\"\"\n",{"type":993,"tag":1026,"props":9529,"children":9530},{"class":1028,"line":45},[9531,9535,9539],{"type":993,"tag":1026,"props":9532,"children":9533},{"style":1041},[9534],{"type":998,"value":7330},{"type":993,"tag":1026,"props":9536,"children":9537},{"style":1047},[9538],{"type":998,"value":1050},{"type":993,"tag":1026,"props":9540,"children":9541},{"style":1041},[9542],{"type":998,"value":2909},{"type":993,"tag":1026,"props":9544,"children":9545},{"class":1028,"line":54},[9546,9550,9555,9559],{"type":993,"tag":1026,"props":9547,"children":9548},{"style":1047},[9549],{"type":998,"value":4632},{"type":993,"tag":1026,"props":9551,"children":9552},{"style":1041},[9553],{"type":998,"value":9554}," nested ",{"type":993,"tag":1026,"props":9556,"children":9557},{"style":1047},[9558],{"type":998,"value":3825},{"type":993,"tag":1026,"props":9560,"children":9561},{"style":1041},[9562],{"type":998,"value":9563}," nested_tuples:\n",{"type":993,"tag":1026,"props":9565,"children":9566},{"class":1028,"line":63},[9567,9571,9575,9579],{"type":993,"tag":1026,"props":9568,"children":9569},{"style":1047},[9570],{"type":998,"value":7744},{"type":993,"tag":1026,"props":9572,"children":9573},{"style":1041},[9574],{"type":998,"value":3844},{"type":993,"tag":1026,"props":9576,"children":9577},{"style":1047},[9578],{"type":998,"value":3825},{"type":993,"tag":1026,"props":9580,"children":9581},{"style":1041},[9582],{"type":998,"value":9583}," nested:\n",{"type":993,"tag":1026,"props":9585,"children":9586},{"class":1028,"line":72},[9587,9591,9596,9601,9606],{"type":993,"tag":1026,"props":9588,"children":9589},{"style":1047},[9590],{"type":998,"value":7765},{"type":993,"tag":1026,"props":9592,"children":9593},{"style":1058},[9594],{"type":998,"value":9595}," isinstance",{"type":993,"tag":1026,"props":9597,"children":9598},{"style":1041},[9599],{"type":998,"value":9600},"(item, ",{"type":993,"tag":1026,"props":9602,"children":9603},{"style":1058},[9604],{"type":998,"value":9605},"tuple",{"type":993,"tag":1026,"props":9607,"children":9608},{"style":1041},[9609],{"type":998,"value":3174},{"type":993,"tag":1026,"props":9611,"children":9612},{"class":1028,"line":81},[9613],{"type":993,"tag":1026,"props":9614,"children":9615},{"style":1032},[9616],{"type":998,"value":9617},"                # Recursively flatten\n",{"type":993,"tag":1026,"props":9619,"children":9620},{"class":1028,"line":91},[9621,9625,9629],{"type":993,"tag":1026,"props":9622,"children":9623},{"style":1041},[9624],{"type":998,"value":7800},{"type":993,"tag":1026,"props":9626,"children":9627},{"style":1047},[9628],{"type":998,"value":4721},{"type":993,"tag":1026,"props":9630,"children":9631},{"style":1041},[9632],{"type":998,"value":9633}," flatten_and_merge(item)\n",{"type":993,"tag":1026,"props":9635,"children":9636},{"class":1028,"line":100},[9637,9642],{"type":993,"tag":1026,"props":9638,"children":9639},{"style":1047},[9640],{"type":998,"value":9641},"            else",{"type":993,"tag":1026,"props":9643,"children":9644},{"style":1041},[9645],{"type":998,"value":9646},":\n",{"type":993,"tag":1026,"props":9648,"children":9649},{"class":1028,"line":109},[9650,9654,9658],{"type":993,"tag":1026,"props":9651,"children":9652},{"style":1041},[9653],{"type":998,"value":7800},{"type":993,"tag":1026,"props":9655,"children":9656},{"style":1047},[9657],{"type":998,"value":4721},{"type":993,"tag":1026,"props":9659,"children":9660},{"style":1041},[9661],{"type":998,"value":7809},{"type":993,"tag":1026,"props":9663,"children":9664},{"class":1028,"line":118},[9665,9669],{"type":993,"tag":1026,"props":9666,"children":9667},{"style":1047},[9668],{"type":998,"value":3268},{"type":993,"tag":1026,"props":9670,"children":9671},{"style":1041},[9672],{"type":998,"value":7424},{"type":993,"tag":1026,"props":9674,"children":9675},{"class":1028,"line":127},[9676],{"type":993,"tag":1026,"props":9677,"children":9678},{"emptyLinePlaceholder":13},[9679],{"type":998,"value":1163},{"type":993,"tag":1026,"props":9681,"children":9682},{"class":1028,"line":136},[9683],{"type":993,"tag":1026,"props":9684,"children":9685},{"style":1032},[9686],{"type":998,"value":9687},"# Test data\n",{"type":993,"tag":1026,"props":9689,"children":9690},{"class":1028,"line":146},[9691,9696,9700,9704,9708,9712,9716,9720,9724,9728,9732],{"type":993,"tag":1026,"props":9692,"children":9693},{"style":1041},[9694],{"type":998,"value":9695},"nested1 ",{"type":993,"tag":1026,"props":9697,"children":9698},{"style":1047},[9699],{"type":998,"value":1050},{"type":993,"tag":1026,"props":9701,"children":9702},{"style":1041},[9703],{"type":998,"value":8678},{"type":993,"tag":1026,"props":9705,"children":9706},{"style":1058},[9707],{"type":998,"value":1061},{"type":993,"tag":1026,"props":9709,"children":9710},{"style":1041},[9711],{"type":998,"value":1066},{"type":993,"tag":1026,"props":9713,"children":9714},{"style":1058},[9715],{"type":998,"value":1071},{"type":993,"tag":1026,"props":9717,"children":9718},{"style":1041},[9719],{"type":998,"value":8695},{"type":993,"tag":1026,"props":9721,"children":9722},{"style":1058},[9723],{"type":998,"value":1080},{"type":993,"tag":1026,"props":9725,"children":9726},{"style":1041},[9727],{"type":998,"value":1066},{"type":993,"tag":1026,"props":9729,"children":9730},{"style":1058},[9731],{"type":998,"value":1106},{"type":993,"tag":1026,"props":9733,"children":9734},{"style":1041},[9735],{"type":998,"value":6670},{"type":993,"tag":1026,"props":9737,"children":9738},{"class":1028,"line":155},[9739,9744,9748,9752,9756,9760,9764,9768,9772,9776,9780],{"type":993,"tag":1026,"props":9740,"children":9741},{"style":1041},[9742],{"type":998,"value":9743},"nested2 ",{"type":993,"tag":1026,"props":9745,"children":9746},{"style":1047},[9747],{"type":998,"value":1050},{"type":993,"tag":1026,"props":9749,"children":9750},{"style":1041},[9751],{"type":998,"value":8678},{"type":993,"tag":1026,"props":9753,"children":9754},{"style":1058},[9755],{"type":998,"value":1115},{"type":993,"tag":1026,"props":9757,"children":9758},{"style":1041},[9759],{"type":998,"value":1066},{"type":993,"tag":1026,"props":9761,"children":9762},{"style":1058},[9763],{"type":998,"value":1124},{"type":993,"tag":1026,"props":9765,"children":9766},{"style":1041},[9767],{"type":998,"value":8695},{"type":993,"tag":1026,"props":9769,"children":9770},{"style":1058},[9771],{"type":998,"value":1760},{"type":993,"tag":1026,"props":9773,"children":9774},{"style":1041},[9775],{"type":998,"value":1066},{"type":993,"tag":1026,"props":9777,"children":9778},{"style":1058},[9779],{"type":998,"value":1769},{"type":993,"tag":1026,"props":9781,"children":9782},{"style":1041},[9783],{"type":998,"value":6670},{"type":993,"tag":1026,"props":9785,"children":9786},{"class":1028,"line":164},[9787,9792,9796,9800,9804,9808,9812,9816,9820],{"type":993,"tag":1026,"props":9788,"children":9789},{"style":1041},[9790],{"type":998,"value":9791},"nested3 ",{"type":993,"tag":1026,"props":9793,"children":9794},{"style":1047},[9795],{"type":998,"value":1050},{"type":993,"tag":1026,"props":9797,"children":9798},{"style":1041},[9799],{"type":998,"value":1055},{"type":993,"tag":1026,"props":9801,"children":9802},{"style":1058},[9803],{"type":998,"value":1778},{"type":993,"tag":1026,"props":9805,"children":9806},{"style":1041},[9807],{"type":998,"value":8943},{"type":993,"tag":1026,"props":9809,"children":9810},{"style":1058},[9811],{"type":998,"value":1184},{"type":993,"tag":1026,"props":9813,"children":9814},{"style":1041},[9815],{"type":998,"value":1066},{"type":993,"tag":1026,"props":9817,"children":9818},{"style":1058},[9819],{"type":998,"value":5915},{"type":993,"tag":1026,"props":9821,"children":9822},{"style":1041},[9823],{"type":998,"value":6670},{"type":993,"tag":1026,"props":9825,"children":9826},{"class":1028,"line":173},[9827],{"type":993,"tag":1026,"props":9828,"children":9829},{"emptyLinePlaceholder":13},[9830],{"type":998,"value":1163},{"type":993,"tag":1026,"props":9832,"children":9833},{"class":1028,"line":182},[9834,9839,9843],{"type":993,"tag":1026,"props":9835,"children":9836},{"style":1041},[9837],{"type":998,"value":9838},"flattened ",{"type":993,"tag":1026,"props":9840,"children":9841},{"style":1047},[9842],{"type":998,"value":1050},{"type":993,"tag":1026,"props":9844,"children":9845},{"style":1041},[9846],{"type":998,"value":9847}," flatten_and_merge(nested1, nested2, nested3)\n",{"type":993,"tag":1026,"props":9849,"children":9850},{"class":1028,"line":191},[9851,9855,9859,9863,9868,9872,9877,9881,9885],{"type":993,"tag":1026,"props":9852,"children":9853},{"style":1058},[9854],{"type":998,"value":1384},{"type":993,"tag":1026,"props":9856,"children":9857},{"style":1041},[9858],{"type":998,"value":1389},{"type":993,"tag":1026,"props":9860,"children":9861},{"style":1047},[9862],{"type":998,"value":1394},{"type":993,"tag":1026,"props":9864,"children":9865},{"style":1275},[9866],{"type":998,"value":9867},"\"Flattened merge: ",{"type":993,"tag":1026,"props":9869,"children":9870},{"style":1058},[9871],{"type":998,"value":1404},{"type":993,"tag":1026,"props":9873,"children":9874},{"style":1041},[9875],{"type":998,"value":9876},"flattened",{"type":993,"tag":1026,"props":9878,"children":9879},{"style":1058},[9880],{"type":998,"value":1414},{"type":993,"tag":1026,"props":9882,"children":9883},{"style":1275},[9884],{"type":998,"value":1419},{"type":993,"tag":1026,"props":9886,"children":9887},{"style":1041},[9888],{"type":998,"value":1085},{"type":993,"tag":1026,"props":9890,"children":9891},{"class":1028,"line":201},[9892],{"type":993,"tag":1026,"props":9893,"children":9894},{"emptyLinePlaceholder":13},[9895],{"type":998,"value":1163},{"type":993,"tag":1026,"props":9897,"children":9898},{"class":1028,"line":210},[9899],{"type":993,"tag":1026,"props":9900,"children":9901},{"style":1032},[9902],{"type":998,"value":9903},"# Selective flattening\n",{"type":993,"tag":1026,"props":9905,"children":9906},{"class":1028,"line":219},[9907,9911,9916,9920,9924],{"type":993,"tag":1026,"props":9908,"children":9909},{"style":1047},[9910],{"type":998,"value":3149},{"type":993,"tag":1026,"props":9912,"children":9913},{"style":3152},[9914],{"type":998,"value":9915}," flatten_one_level",{"type":993,"tag":1026,"props":9917,"children":9918},{"style":1041},[9919],{"type":998,"value":1389},{"type":993,"tag":1026,"props":9921,"children":9922},{"style":1047},[9923],{"type":998,"value":5000},{"type":993,"tag":1026,"props":9925,"children":9926},{"style":1041},[9927],{"type":998,"value":7028},{"type":993,"tag":1026,"props":9929,"children":9930},{"class":1028,"line":228},[9931],{"type":993,"tag":1026,"props":9932,"children":9933},{"style":1275},[9934],{"type":998,"value":9935},"    \"\"\"Flatten only one level of nesting\"\"\"\n",{"type":993,"tag":1026,"props":9937,"children":9938},{"class":1028,"line":238},[9939,9943,9947],{"type":993,"tag":1026,"props":9940,"children":9941},{"style":1041},[9942],{"type":998,"value":7330},{"type":993,"tag":1026,"props":9944,"children":9945},{"style":1047},[9946],{"type":998,"value":1050},{"type":993,"tag":1026,"props":9948,"children":9949},{"style":1041},[9950],{"type":998,"value":2909},{"type":993,"tag":1026,"props":9952,"children":9953},{"class":1028,"line":247},[9954,9958,9962,9966],{"type":993,"tag":1026,"props":9955,"children":9956},{"style":1047},[9957],{"type":998,"value":4632},{"type":993,"tag":1026,"props":9959,"children":9960},{"style":1041},[9961],{"type":998,"value":7360},{"type":993,"tag":1026,"props":9963,"children":9964},{"style":1047},[9965],{"type":998,"value":3825},{"type":993,"tag":1026,"props":9967,"children":9968},{"style":1041},[9969],{"type":998,"value":7302},{"type":993,"tag":1026,"props":9971,"children":9972},{"class":1028,"line":256},[9973,9977,9981,9985],{"type":993,"tag":1026,"props":9974,"children":9975},{"style":1047},[9976],{"type":998,"value":7744},{"type":993,"tag":1026,"props":9978,"children":9979},{"style":1041},[9980],{"type":998,"value":3844},{"type":993,"tag":1026,"props":9982,"children":9983},{"style":1047},[9984],{"type":998,"value":3825},{"type":993,"tag":1026,"props":9986,"children":9987},{"style":1041},[9988],{"type":998,"value":7757},{"type":993,"tag":1026,"props":9990,"children":9991},{"class":1028,"line":265},[9992,9996,10000,10004,10008],{"type":993,"tag":1026,"props":9993,"children":9994},{"style":1047},[9995],{"type":998,"value":7765},{"type":993,"tag":1026,"props":9997,"children":9998},{"style":1058},[9999],{"type":998,"value":9595},{"type":993,"tag":1026,"props":10001,"children":10002},{"style":1041},[10003],{"type":998,"value":9600},{"type":993,"tag":1026,"props":10005,"children":10006},{"style":1058},[10007],{"type":998,"value":9605},{"type":993,"tag":1026,"props":10009,"children":10010},{"style":1041},[10011],{"type":998,"value":3174},{"type":993,"tag":1026,"props":10013,"children":10014},{"class":1028,"line":274},[10015,10019,10023],{"type":993,"tag":1026,"props":10016,"children":10017},{"style":1041},[10018],{"type":998,"value":7800},{"type":993,"tag":1026,"props":10020,"children":10021},{"style":1047},[10022],{"type":998,"value":4721},{"type":993,"tag":1026,"props":10024,"children":10025},{"style":1041},[10026],{"type":998,"value":10027}," item\n",{"type":993,"tag":1026,"props":10029,"children":10030},{"class":1028,"line":284},[10031,10035],{"type":993,"tag":1026,"props":10032,"children":10033},{"style":1047},[10034],{"type":998,"value":9641},{"type":993,"tag":1026,"props":10036,"children":10037},{"style":1041},[10038],{"type":998,"value":9646},{"type":993,"tag":1026,"props":10040,"children":10041},{"class":1028,"line":293},[10042,10046,10050],{"type":993,"tag":1026,"props":10043,"children":10044},{"style":1041},[10045],{"type":998,"value":7800},{"type":993,"tag":1026,"props":10047,"children":10048},{"style":1047},[10049],{"type":998,"value":4721},{"type":993,"tag":1026,"props":10051,"children":10052},{"style":1041},[10053],{"type":998,"value":7809},{"type":993,"tag":1026,"props":10055,"children":10056},{"class":1028,"line":302},[10057,10061],{"type":993,"tag":1026,"props":10058,"children":10059},{"style":1047},[10060],{"type":998,"value":3268},{"type":993,"tag":1026,"props":10062,"children":10063},{"style":1041},[10064],{"type":998,"value":7424},{"type":993,"tag":1026,"props":10066,"children":10067},{"class":1028,"line":311},[10068],{"type":993,"tag":1026,"props":10069,"children":10070},{"emptyLinePlaceholder":13},[10071],{"type":998,"value":1163},{"type":993,"tag":1026,"props":10073,"children":10074},{"class":1028,"line":320},[10075],{"type":993,"tag":1026,"props":10076,"children":10077},{"style":1032},[10078],{"type":998,"value":10079},"# Test selective flattening\n",{"type":993,"tag":1026,"props":10081,"children":10082},{"class":1028,"line":329},[10083,10087,10091,10095,10099,10103,10107,10111,10115,10120,10124],{"type":993,"tag":1026,"props":10084,"children":10085},{"style":1041},[10086],{"type":998,"value":7447},{"type":993,"tag":1026,"props":10088,"children":10089},{"style":1047},[10090],{"type":998,"value":1050},{"type":993,"tag":1026,"props":10092,"children":10093},{"style":1041},[10094],{"type":998,"value":1055},{"type":993,"tag":1026,"props":10096,"children":10097},{"style":1058},[10098],{"type":998,"value":1061},{"type":993,"tag":1026,"props":10100,"children":10101},{"style":1041},[10102],{"type":998,"value":8943},{"type":993,"tag":1026,"props":10104,"children":10105},{"style":1058},[10106],{"type":998,"value":1071},{"type":993,"tag":1026,"props":10108,"children":10109},{"style":1041},[10110],{"type":998,"value":1066},{"type":993,"tag":1026,"props":10112,"children":10113},{"style":1058},[10114],{"type":998,"value":1080},{"type":993,"tag":1026,"props":10116,"children":10117},{"style":1041},[10118],{"type":998,"value":10119},"), ",{"type":993,"tag":1026,"props":10121,"children":10122},{"style":1058},[10123],{"type":998,"value":1106},{"type":993,"tag":1026,"props":10125,"children":10126},{"style":1041},[10127],{"type":998,"value":1085},{"type":993,"tag":1026,"props":10129,"children":10130},{"class":1028,"line":338},[10131,10135,10139,10143,10147,10151,10155,10159,10163,10167,10171,10175,10179],{"type":993,"tag":1026,"props":10132,"children":10133},{"style":1041},[10134],{"type":998,"value":7487},{"type":993,"tag":1026,"props":10136,"children":10137},{"style":1047},[10138],{"type":998,"value":1050},{"type":993,"tag":1026,"props":10140,"children":10141},{"style":1041},[10142],{"type":998,"value":8678},{"type":993,"tag":1026,"props":10144,"children":10145},{"style":1058},[10146],{"type":998,"value":1115},{"type":993,"tag":1026,"props":10148,"children":10149},{"style":1041},[10150],{"type":998,"value":1066},{"type":993,"tag":1026,"props":10152,"children":10153},{"style":1058},[10154],{"type":998,"value":1124},{"type":993,"tag":1026,"props":10156,"children":10157},{"style":1041},[10158],{"type":998,"value":10119},{"type":993,"tag":1026,"props":10160,"children":10161},{"style":1058},[10162],{"type":998,"value":1760},{"type":993,"tag":1026,"props":10164,"children":10165},{"style":1041},[10166],{"type":998,"value":8943},{"type":993,"tag":1026,"props":10168,"children":10169},{"style":1058},[10170],{"type":998,"value":1769},{"type":993,"tag":1026,"props":10172,"children":10173},{"style":1041},[10174],{"type":998,"value":1066},{"type":993,"tag":1026,"props":10176,"children":10177},{"style":1058},[10178],{"type":998,"value":1778},{"type":993,"tag":1026,"props":10180,"children":10181},{"style":1041},[10182],{"type":998,"value":6670},{"type":993,"tag":1026,"props":10184,"children":10185},{"class":1028,"line":347},[10186],{"type":993,"tag":1026,"props":10187,"children":10188},{"emptyLinePlaceholder":13},[10189],{"type":998,"value":1163},{"type":993,"tag":1026,"props":10191,"children":10192},{"class":1028,"line":356},[10193,10198,10202],{"type":993,"tag":1026,"props":10194,"children":10195},{"style":1041},[10196],{"type":998,"value":10197},"one_level ",{"type":993,"tag":1026,"props":10199,"children":10200},{"style":1047},[10201],{"type":998,"value":1050},{"type":993,"tag":1026,"props":10203,"children":10204},{"style":1041},[10205],{"type":998,"value":10206}," flatten_one_level(data1, data2)\n",{"type":993,"tag":1026,"props":10208,"children":10209},{"class":1028,"line":365},[10210,10214,10218,10222,10227,10231,10236,10240,10244],{"type":993,"tag":1026,"props":10211,"children":10212},{"style":1058},[10213],{"type":998,"value":1384},{"type":993,"tag":1026,"props":10215,"children":10216},{"style":1041},[10217],{"type":998,"value":1389},{"type":993,"tag":1026,"props":10219,"children":10220},{"style":1047},[10221],{"type":998,"value":1394},{"type":993,"tag":1026,"props":10223,"children":10224},{"style":1275},[10225],{"type":998,"value":10226},"\"One level flattened: ",{"type":993,"tag":1026,"props":10228,"children":10229},{"style":1058},[10230],{"type":998,"value":1404},{"type":993,"tag":1026,"props":10232,"children":10233},{"style":1041},[10234],{"type":998,"value":10235},"one_level",{"type":993,"tag":1026,"props":10237,"children":10238},{"style":1058},[10239],{"type":998,"value":1414},{"type":993,"tag":1026,"props":10241,"children":10242},{"style":1275},[10243],{"type":998,"value":1419},{"type":993,"tag":1026,"props":10245,"children":10246},{"style":1041},[10247],{"type":998,"value":1085},{"type":993,"tag":1507,"props":10249,"children":10251},{"id":10250},"performance-best-practices",[10252],{"type":998,"value":10253},"⚡ Performance Best Practices",{"type":993,"tag":1001,"props":10255,"children":10256},{},[10257],{"type":998,"value":10258},"Understanding performance characteristics and following best practices ensures efficient tuple merging operations in your applications.",{"type":993,"tag":1526,"props":10260,"children":10263},{"emoji":10261,"title":10262,"type":3443},"⚡","Merging Best Practices",[10264,10272,10295,10303,10326,10334],{"type":993,"tag":1001,"props":10265,"children":10266},{},[10267],{"type":993,"tag":1536,"props":10268,"children":10269},{},[10270],{"type":998,"value":10271},"Efficiency Guidelines:",{"type":993,"tag":1542,"props":10273,"children":10274},{},[10275,10280,10285,10290],{"type":993,"tag":1546,"props":10276,"children":10277},{},[10278],{"type":998,"value":10279},"Use itertools.chain() for large data sets",{"type":993,"tag":1546,"props":10281,"children":10282},{},[10283],{"type":998,"value":10284},"Minimize intermediate tuple creation",{"type":993,"tag":1546,"props":10286,"children":10287},{},[10288],{"type":998,"value":10289},"Consider memory usage with large merges",{"type":993,"tag":1546,"props":10291,"children":10292},{},[10293],{"type":998,"value":10294},"Profile performance for critical applications",{"type":993,"tag":1001,"props":10296,"children":10297},{},[10298],{"type":993,"tag":1536,"props":10299,"children":10300},{},[10301],{"type":998,"value":10302},"Code Quality:",{"type":993,"tag":1542,"props":10304,"children":10305},{},[10306,10311,10316,10321],{"type":993,"tag":1546,"props":10307,"children":10308},{},[10309],{"type":998,"value":10310},"Use descriptive function names for custom merging",{"type":993,"tag":1546,"props":10312,"children":10313},{},[10314],{"type":998,"value":10315},"Document expected input formats",{"type":993,"tag":1546,"props":10317,"children":10318},{},[10319],{"type":998,"value":10320},"Handle edge cases (empty tuples, None values)",{"type":993,"tag":1546,"props":10322,"children":10323},{},[10324],{"type":998,"value":10325},"Validate input types when necessary",{"type":993,"tag":1001,"props":10327,"children":10328},{},[10329],{"type":993,"tag":1536,"props":10330,"children":10331},{},[10332],{"type":998,"value":10333},"Design Decisions:",{"type":993,"tag":1542,"props":10335,"children":10336},{},[10337,10342,10347],{"type":993,"tag":1546,"props":10338,"children":10339},{},[10340],{"type":998,"value":10341},"Choose appropriate merging strategy for data size",{"type":993,"tag":1546,"props":10343,"children":10344},{},[10345],{"type":998,"value":10346},"Consider whether structure preservation is needed",{"type":993,"tag":1546,"props":10348,"children":10349},{},[10350],{"type":998,"value":10351},"Evaluate memory vs readability tradeoffs",{"type":993,"tag":1631,"props":10353,"children":10355},{"id":10354},"performance-comparison",[10356],{"type":998,"value":10357},"Performance Comparison",{"type":993,"tag":1001,"props":10359,"children":10360},{},[10361],{"type":998,"value":10362},"Comparing different merging approaches for various scenarios and data sizes.",{"type":993,"tag":1012,"props":10364,"children":10365},{},[10366],{"type":993,"tag":1016,"props":10367,"children":10369},{"className":1018,"code":10368,"language":6,"meta":8,"style":8},"# Performance-conscious merging approaches\nimport time\n\ndef time_merging_methods(tuple_count=100, tuple_size=10):\n    \"\"\"Compare performance of different merging methods\"\"\"\n    # Generate test data\n    test_tuples = [tuple(range(i, i + tuple_size)) \n                   for i in range(0, tuple_count * tuple_size, tuple_size)]\n    \n    # Method 1: sum()\n    start_time = time.time()\n    result1 = sum(test_tuples, ())\n    sum_time = time.time() - start_time\n    \n    # Method 2: itertools.chain()\n    from itertools import chain\n    start_time = time.time()\n    result2 = tuple(chain(*test_tuples))\n    chain_time = time.time() - start_time\n    \n    # Method 3: comprehension\n    start_time = time.time()\n    result3 = tuple(item for t in test_tuples for item in t)\n    comp_time = time.time() - start_time\n    \n    print(f\"Results equal: {result1 == result2 == result3}\")\n    print(f\"sum() time: {sum_time:.4f}s\")\n    print(f\"chain() time: {chain_time:.4f}s\")\n    print(f\"comprehension time: {comp_time:.4f}s\")\n\n# Test with small dataset\nprint(\"Small dataset (10 tuples, 5 elements each):\")\ntime_merging_methods(10, 5)\n",[10370],{"type":993,"tag":1022,"props":10371,"children":10372},{"__ignoreMap":8},[10373,10381,10393,10400,10442,10450,10458,10501,10543,10550,10558,10575,10596,10622,10629,10637,10657,10672,10701,10725,10732,10740,10755,10809,10833,10840,10900,10947,10992,11037,11044,11052,11072],{"type":993,"tag":1026,"props":10374,"children":10375},{"class":1028,"line":12},[10376],{"type":993,"tag":1026,"props":10377,"children":10378},{"style":1032},[10379],{"type":998,"value":10380},"# Performance-conscious merging approaches\n",{"type":993,"tag":1026,"props":10382,"children":10383},{"class":1028,"line":27},[10384,10388],{"type":993,"tag":1026,"props":10385,"children":10386},{"style":1047},[10387],{"type":998,"value":6489},{"type":993,"tag":1026,"props":10389,"children":10390},{"style":1041},[10391],{"type":998,"value":10392}," time\n",{"type":993,"tag":1026,"props":10394,"children":10395},{"class":1028,"line":36},[10396],{"type":993,"tag":1026,"props":10397,"children":10398},{"emptyLinePlaceholder":13},[10399],{"type":998,"value":1163},{"type":993,"tag":1026,"props":10401,"children":10402},{"class":1028,"line":45},[10403,10407,10412,10417,10421,10425,10430,10434,10438],{"type":993,"tag":1026,"props":10404,"children":10405},{"style":1047},[10406],{"type":998,"value":3149},{"type":993,"tag":1026,"props":10408,"children":10409},{"style":3152},[10410],{"type":998,"value":10411}," time_merging_methods",{"type":993,"tag":1026,"props":10413,"children":10414},{"style":1041},[10415],{"type":998,"value":10416},"(tuple_count",{"type":993,"tag":1026,"props":10418,"children":10419},{"style":1047},[10420],{"type":998,"value":1050},{"type":993,"tag":1026,"props":10422,"children":10423},{"style":1058},[10424],{"type":998,"value":5425},{"type":993,"tag":1026,"props":10426,"children":10427},{"style":1041},[10428],{"type":998,"value":10429},", tuple_size",{"type":993,"tag":1026,"props":10431,"children":10432},{"style":1047},[10433],{"type":998,"value":1050},{"type":993,"tag":1026,"props":10435,"children":10436},{"style":1058},[10437],{"type":998,"value":1184},{"type":993,"tag":1026,"props":10439,"children":10440},{"style":1041},[10441],{"type":998,"value":3174},{"type":993,"tag":1026,"props":10443,"children":10444},{"class":1028,"line":54},[10445],{"type":993,"tag":1026,"props":10446,"children":10447},{"style":1275},[10448],{"type":998,"value":10449},"    \"\"\"Compare performance of different merging methods\"\"\"\n",{"type":993,"tag":1026,"props":10451,"children":10452},{"class":1028,"line":63},[10453],{"type":993,"tag":1026,"props":10454,"children":10455},{"style":1032},[10456],{"type":998,"value":10457},"    # Generate test data\n",{"type":993,"tag":1026,"props":10459,"children":10460},{"class":1028,"line":72},[10461,10466,10470,10475,10479,10483,10487,10492,10496],{"type":993,"tag":1026,"props":10462,"children":10463},{"style":1041},[10464],{"type":998,"value":10465},"    test_tuples ",{"type":993,"tag":1026,"props":10467,"children":10468},{"style":1047},[10469],{"type":998,"value":1050},{"type":993,"tag":1026,"props":10471,"children":10472},{"style":1041},[10473],{"type":998,"value":10474}," [",{"type":993,"tag":1026,"props":10476,"children":10477},{"style":1058},[10478],{"type":998,"value":9605},{"type":993,"tag":1026,"props":10480,"children":10481},{"style":1041},[10482],{"type":998,"value":1389},{"type":993,"tag":1026,"props":10484,"children":10485},{"style":1058},[10486],{"type":998,"value":6542},{"type":993,"tag":1026,"props":10488,"children":10489},{"style":1041},[10490],{"type":998,"value":10491},"(i, i ",{"type":993,"tag":1026,"props":10493,"children":10494},{"style":1047},[10495],{"type":998,"value":1150},{"type":993,"tag":1026,"props":10497,"children":10498},{"style":1041},[10499],{"type":998,"value":10500}," tuple_size)) \n",{"type":993,"tag":1026,"props":10502,"children":10503},{"class":1028,"line":81},[10504,10509,10513,10517,10521,10525,10529,10534,10538],{"type":993,"tag":1026,"props":10505,"children":10506},{"style":1047},[10507],{"type":998,"value":10508},"                   for",{"type":993,"tag":1026,"props":10510,"children":10511},{"style":1041},[10512],{"type":998,"value":8198},{"type":993,"tag":1026,"props":10514,"children":10515},{"style":1047},[10516],{"type":998,"value":3825},{"type":993,"tag":1026,"props":10518,"children":10519},{"style":1058},[10520],{"type":998,"value":8207},{"type":993,"tag":1026,"props":10522,"children":10523},{"style":1041},[10524],{"type":998,"value":1389},{"type":993,"tag":1026,"props":10526,"children":10527},{"style":1058},[10528],{"type":998,"value":7344},{"type":993,"tag":1026,"props":10530,"children":10531},{"style":1041},[10532],{"type":998,"value":10533},", tuple_count ",{"type":993,"tag":1026,"props":10535,"children":10536},{"style":1047},[10537],{"type":998,"value":5000},{"type":993,"tag":1026,"props":10539,"children":10540},{"style":1041},[10541],{"type":998,"value":10542}," tuple_size, tuple_size)]\n",{"type":993,"tag":1026,"props":10544,"children":10545},{"class":1028,"line":91},[10546],{"type":993,"tag":1026,"props":10547,"children":10548},{"style":1041},[10549],{"type":998,"value":7322},{"type":993,"tag":1026,"props":10551,"children":10552},{"class":1028,"line":100},[10553],{"type":993,"tag":1026,"props":10554,"children":10555},{"style":1032},[10556],{"type":998,"value":10557},"    # Method 1: sum()\n",{"type":993,"tag":1026,"props":10559,"children":10560},{"class":1028,"line":109},[10561,10566,10570],{"type":993,"tag":1026,"props":10562,"children":10563},{"style":1041},[10564],{"type":998,"value":10565},"    start_time ",{"type":993,"tag":1026,"props":10567,"children":10568},{"style":1047},[10569],{"type":998,"value":1050},{"type":993,"tag":1026,"props":10571,"children":10572},{"style":1041},[10573],{"type":998,"value":10574}," time.time()\n",{"type":993,"tag":1026,"props":10576,"children":10577},{"class":1028,"line":118},[10578,10583,10587,10591],{"type":993,"tag":1026,"props":10579,"children":10580},{"style":1041},[10581],{"type":998,"value":10582},"    result1 ",{"type":993,"tag":1026,"props":10584,"children":10585},{"style":1047},[10586],{"type":998,"value":1050},{"type":993,"tag":1026,"props":10588,"children":10589},{"style":1058},[10590],{"type":998,"value":5968},{"type":993,"tag":1026,"props":10592,"children":10593},{"style":1041},[10594],{"type":998,"value":10595},"(test_tuples, ())\n",{"type":993,"tag":1026,"props":10597,"children":10598},{"class":1028,"line":127},[10599,10604,10608,10613,10617],{"type":993,"tag":1026,"props":10600,"children":10601},{"style":1041},[10602],{"type":998,"value":10603},"    sum_time ",{"type":993,"tag":1026,"props":10605,"children":10606},{"style":1047},[10607],{"type":998,"value":1050},{"type":993,"tag":1026,"props":10609,"children":10610},{"style":1041},[10611],{"type":998,"value":10612}," time.time() ",{"type":993,"tag":1026,"props":10614,"children":10615},{"style":1047},[10616],{"type":998,"value":2521},{"type":993,"tag":1026,"props":10618,"children":10619},{"style":1041},[10620],{"type":998,"value":10621}," start_time\n",{"type":993,"tag":1026,"props":10623,"children":10624},{"class":1028,"line":136},[10625],{"type":993,"tag":1026,"props":10626,"children":10627},{"style":1041},[10628],{"type":998,"value":7322},{"type":993,"tag":1026,"props":10630,"children":10631},{"class":1028,"line":146},[10632],{"type":993,"tag":1026,"props":10633,"children":10634},{"style":1032},[10635],{"type":998,"value":10636},"    # Method 2: itertools.chain()\n",{"type":993,"tag":1026,"props":10638,"children":10639},{"class":1028,"line":155},[10640,10645,10649,10653],{"type":993,"tag":1026,"props":10641,"children":10642},{"style":1047},[10643],{"type":998,"value":10644},"    from",{"type":993,"tag":1026,"props":10646,"children":10647},{"style":1041},[10648],{"type":998,"value":6484},{"type":993,"tag":1026,"props":10650,"children":10651},{"style":1047},[10652],{"type":998,"value":6489},{"type":993,"tag":1026,"props":10654,"children":10655},{"style":1041},[10656],{"type":998,"value":6494},{"type":993,"tag":1026,"props":10658,"children":10659},{"class":1028,"line":164},[10660,10664,10668],{"type":993,"tag":1026,"props":10661,"children":10662},{"style":1041},[10663],{"type":998,"value":10565},{"type":993,"tag":1026,"props":10665,"children":10666},{"style":1047},[10667],{"type":998,"value":1050},{"type":993,"tag":1026,"props":10669,"children":10670},{"style":1041},[10671],{"type":998,"value":10574},{"type":993,"tag":1026,"props":10673,"children":10674},{"class":1028,"line":173},[10675,10680,10684,10688,10692,10696],{"type":993,"tag":1026,"props":10676,"children":10677},{"style":1041},[10678],{"type":998,"value":10679},"    result2 ",{"type":993,"tag":1026,"props":10681,"children":10682},{"style":1047},[10683],{"type":998,"value":1050},{"type":993,"tag":1026,"props":10685,"children":10686},{"style":1058},[10687],{"type":998,"value":3719},{"type":993,"tag":1026,"props":10689,"children":10690},{"style":1041},[10691],{"type":998,"value":6713},{"type":993,"tag":1026,"props":10693,"children":10694},{"style":1047},[10695],{"type":998,"value":5000},{"type":993,"tag":1026,"props":10697,"children":10698},{"style":1041},[10699],{"type":998,"value":10700},"test_tuples))\n",{"type":993,"tag":1026,"props":10702,"children":10703},{"class":1028,"line":182},[10704,10709,10713,10717,10721],{"type":993,"tag":1026,"props":10705,"children":10706},{"style":1041},[10707],{"type":998,"value":10708},"    chain_time ",{"type":993,"tag":1026,"props":10710,"children":10711},{"style":1047},[10712],{"type":998,"value":1050},{"type":993,"tag":1026,"props":10714,"children":10715},{"style":1041},[10716],{"type":998,"value":10612},{"type":993,"tag":1026,"props":10718,"children":10719},{"style":1047},[10720],{"type":998,"value":2521},{"type":993,"tag":1026,"props":10722,"children":10723},{"style":1041},[10724],{"type":998,"value":10621},{"type":993,"tag":1026,"props":10726,"children":10727},{"class":1028,"line":191},[10728],{"type":993,"tag":1026,"props":10729,"children":10730},{"style":1041},[10731],{"type":998,"value":7322},{"type":993,"tag":1026,"props":10733,"children":10734},{"class":1028,"line":201},[10735],{"type":993,"tag":1026,"props":10736,"children":10737},{"style":1032},[10738],{"type":998,"value":10739},"    # Method 3: comprehension\n",{"type":993,"tag":1026,"props":10741,"children":10742},{"class":1028,"line":210},[10743,10747,10751],{"type":993,"tag":1026,"props":10744,"children":10745},{"style":1041},[10746],{"type":998,"value":10565},{"type":993,"tag":1026,"props":10748,"children":10749},{"style":1047},[10750],{"type":998,"value":1050},{"type":993,"tag":1026,"props":10752,"children":10753},{"style":1041},[10754],{"type":998,"value":10574},{"type":993,"tag":1026,"props":10756,"children":10757},{"class":1028,"line":219},[10758,10763,10767,10771,10775,10779,10783,10787,10792,10796,10800,10804],{"type":993,"tag":1026,"props":10759,"children":10760},{"style":1041},[10761],{"type":998,"value":10762},"    result3 ",{"type":993,"tag":1026,"props":10764,"children":10765},{"style":1047},[10766],{"type":998,"value":1050},{"type":993,"tag":1026,"props":10768,"children":10769},{"style":1058},[10770],{"type":998,"value":3719},{"type":993,"tag":1026,"props":10772,"children":10773},{"style":1041},[10774],{"type":998,"value":3810},{"type":993,"tag":1026,"props":10776,"children":10777},{"style":1047},[10778],{"type":998,"value":3815},{"type":993,"tag":1026,"props":10780,"children":10781},{"style":1041},[10782],{"type":998,"value":7360},{"type":993,"tag":1026,"props":10784,"children":10785},{"style":1047},[10786],{"type":998,"value":3825},{"type":993,"tag":1026,"props":10788,"children":10789},{"style":1041},[10790],{"type":998,"value":10791}," test_tuples ",{"type":993,"tag":1026,"props":10793,"children":10794},{"style":1047},[10795],{"type":998,"value":3815},{"type":993,"tag":1026,"props":10797,"children":10798},{"style":1041},[10799],{"type":998,"value":3844},{"type":993,"tag":1026,"props":10801,"children":10802},{"style":1047},[10803],{"type":998,"value":3825},{"type":993,"tag":1026,"props":10805,"children":10806},{"style":1041},[10807],{"type":998,"value":10808}," t)\n",{"type":993,"tag":1026,"props":10810,"children":10811},{"class":1028,"line":228},[10812,10817,10821,10825,10829],{"type":993,"tag":1026,"props":10813,"children":10814},{"style":1041},[10815],{"type":998,"value":10816},"    comp_time ",{"type":993,"tag":1026,"props":10818,"children":10819},{"style":1047},[10820],{"type":998,"value":1050},{"type":993,"tag":1026,"props":10822,"children":10823},{"style":1041},[10824],{"type":998,"value":10612},{"type":993,"tag":1026,"props":10826,"children":10827},{"style":1047},[10828],{"type":998,"value":2521},{"type":993,"tag":1026,"props":10830,"children":10831},{"style":1041},[10832],{"type":998,"value":10621},{"type":993,"tag":1026,"props":10834,"children":10835},{"class":1028,"line":238},[10836],{"type":993,"tag":1026,"props":10837,"children":10838},{"style":1041},[10839],{"type":998,"value":7322},{"type":993,"tag":1026,"props":10841,"children":10842},{"class":1028,"line":247},[10843,10848,10852,10856,10861,10865,10869,10874,10879,10883,10888,10892,10896],{"type":993,"tag":1026,"props":10844,"children":10845},{"style":1058},[10846],{"type":998,"value":10847},"    print",{"type":993,"tag":1026,"props":10849,"children":10850},{"style":1041},[10851],{"type":998,"value":1389},{"type":993,"tag":1026,"props":10853,"children":10854},{"style":1047},[10855],{"type":998,"value":1394},{"type":993,"tag":1026,"props":10857,"children":10858},{"style":1275},[10859],{"type":998,"value":10860},"\"Results equal: ",{"type":993,"tag":1026,"props":10862,"children":10863},{"style":1058},[10864],{"type":998,"value":1404},{"type":993,"tag":1026,"props":10866,"children":10867},{"style":1041},[10868],{"type":998,"value":2984},{"type":993,"tag":1026,"props":10870,"children":10871},{"style":1047},[10872],{"type":998,"value":10873},"==",{"type":993,"tag":1026,"props":10875,"children":10876},{"style":1041},[10877],{"type":998,"value":10878}," result2 ",{"type":993,"tag":1026,"props":10880,"children":10881},{"style":1047},[10882],{"type":998,"value":10873},{"type":993,"tag":1026,"props":10884,"children":10885},{"style":1041},[10886],{"type":998,"value":10887}," result3",{"type":993,"tag":1026,"props":10889,"children":10890},{"style":1058},[10891],{"type":998,"value":1414},{"type":993,"tag":1026,"props":10893,"children":10894},{"style":1275},[10895],{"type":998,"value":1419},{"type":993,"tag":1026,"props":10897,"children":10898},{"style":1041},[10899],{"type":998,"value":1085},{"type":993,"tag":1026,"props":10901,"children":10902},{"class":1028,"line":256},[10903,10907,10911,10915,10920,10924,10929,10934,10938,10943],{"type":993,"tag":1026,"props":10904,"children":10905},{"style":1058},[10906],{"type":998,"value":10847},{"type":993,"tag":1026,"props":10908,"children":10909},{"style":1041},[10910],{"type":998,"value":1389},{"type":993,"tag":1026,"props":10912,"children":10913},{"style":1047},[10914],{"type":998,"value":1394},{"type":993,"tag":1026,"props":10916,"children":10917},{"style":1275},[10918],{"type":998,"value":10919},"\"sum() time: ",{"type":993,"tag":1026,"props":10921,"children":10922},{"style":1058},[10923],{"type":998,"value":1404},{"type":993,"tag":1026,"props":10925,"children":10926},{"style":1041},[10927],{"type":998,"value":10928},"sum_time",{"type":993,"tag":1026,"props":10930,"children":10931},{"style":1047},[10932],{"type":998,"value":10933},":.4f",{"type":993,"tag":1026,"props":10935,"children":10936},{"style":1058},[10937],{"type":998,"value":1414},{"type":993,"tag":1026,"props":10939,"children":10940},{"style":1275},[10941],{"type":998,"value":10942},"s\"",{"type":993,"tag":1026,"props":10944,"children":10945},{"style":1041},[10946],{"type":998,"value":1085},{"type":993,"tag":1026,"props":10948,"children":10949},{"class":1028,"line":265},[10950,10954,10958,10962,10967,10971,10976,10980,10984,10988],{"type":993,"tag":1026,"props":10951,"children":10952},{"style":1058},[10953],{"type":998,"value":10847},{"type":993,"tag":1026,"props":10955,"children":10956},{"style":1041},[10957],{"type":998,"value":1389},{"type":993,"tag":1026,"props":10959,"children":10960},{"style":1047},[10961],{"type":998,"value":1394},{"type":993,"tag":1026,"props":10963,"children":10964},{"style":1275},[10965],{"type":998,"value":10966},"\"chain() time: ",{"type":993,"tag":1026,"props":10968,"children":10969},{"style":1058},[10970],{"type":998,"value":1404},{"type":993,"tag":1026,"props":10972,"children":10973},{"style":1041},[10974],{"type":998,"value":10975},"chain_time",{"type":993,"tag":1026,"props":10977,"children":10978},{"style":1047},[10979],{"type":998,"value":10933},{"type":993,"tag":1026,"props":10981,"children":10982},{"style":1058},[10983],{"type":998,"value":1414},{"type":993,"tag":1026,"props":10985,"children":10986},{"style":1275},[10987],{"type":998,"value":10942},{"type":993,"tag":1026,"props":10989,"children":10990},{"style":1041},[10991],{"type":998,"value":1085},{"type":993,"tag":1026,"props":10993,"children":10994},{"class":1028,"line":274},[10995,10999,11003,11007,11012,11016,11021,11025,11029,11033],{"type":993,"tag":1026,"props":10996,"children":10997},{"style":1058},[10998],{"type":998,"value":10847},{"type":993,"tag":1026,"props":11000,"children":11001},{"style":1041},[11002],{"type":998,"value":1389},{"type":993,"tag":1026,"props":11004,"children":11005},{"style":1047},[11006],{"type":998,"value":1394},{"type":993,"tag":1026,"props":11008,"children":11009},{"style":1275},[11010],{"type":998,"value":11011},"\"comprehension time: ",{"type":993,"tag":1026,"props":11013,"children":11014},{"style":1058},[11015],{"type":998,"value":1404},{"type":993,"tag":1026,"props":11017,"children":11018},{"style":1041},[11019],{"type":998,"value":11020},"comp_time",{"type":993,"tag":1026,"props":11022,"children":11023},{"style":1047},[11024],{"type":998,"value":10933},{"type":993,"tag":1026,"props":11026,"children":11027},{"style":1058},[11028],{"type":998,"value":1414},{"type":993,"tag":1026,"props":11030,"children":11031},{"style":1275},[11032],{"type":998,"value":10942},{"type":993,"tag":1026,"props":11034,"children":11035},{"style":1041},[11036],{"type":998,"value":1085},{"type":993,"tag":1026,"props":11038,"children":11039},{"class":1028,"line":284},[11040],{"type":993,"tag":1026,"props":11041,"children":11042},{"emptyLinePlaceholder":13},[11043],{"type":998,"value":1163},{"type":993,"tag":1026,"props":11045,"children":11046},{"class":1028,"line":293},[11047],{"type":993,"tag":1026,"props":11048,"children":11049},{"style":1032},[11050],{"type":998,"value":11051},"# Test with small dataset\n",{"type":993,"tag":1026,"props":11053,"children":11054},{"class":1028,"line":302},[11055,11059,11063,11068],{"type":993,"tag":1026,"props":11056,"children":11057},{"style":1058},[11058],{"type":998,"value":1384},{"type":993,"tag":1026,"props":11060,"children":11061},{"style":1041},[11062],{"type":998,"value":1389},{"type":993,"tag":1026,"props":11064,"children":11065},{"style":1275},[11066],{"type":998,"value":11067},"\"Small dataset (10 tuples, 5 elements each):\"",{"type":993,"tag":1026,"props":11069,"children":11070},{"style":1041},[11071],{"type":998,"value":1085},{"type":993,"tag":1026,"props":11073,"children":11074},{"class":1028,"line":311},[11075,11080,11084,11088,11092],{"type":993,"tag":1026,"props":11076,"children":11077},{"style":1041},[11078],{"type":998,"value":11079},"time_merging_methods(",{"type":993,"tag":1026,"props":11081,"children":11082},{"style":1058},[11083],{"type":998,"value":1184},{"type":993,"tag":1026,"props":11085,"children":11086},{"style":1041},[11087],{"type":998,"value":1066},{"type":993,"tag":1026,"props":11089,"children":11090},{"style":1058},[11091],{"type":998,"value":1115},{"type":993,"tag":1026,"props":11093,"children":11094},{"style":1041},[11095],{"type":998,"value":1085},{"type":993,"tag":1631,"props":11097,"children":11099},{"id":11098},"memory-efficient-merging",[11100],{"type":998,"value":11101},"Memory-Efficient Merging",{"type":993,"tag":1001,"props":11103,"children":11104},{},[11105],{"type":998,"value":11106},"Strategies for merging large tuple collections without excessive memory usage.",{"type":993,"tag":1012,"props":11108,"children":11109},{},[11110],{"type":993,"tag":1016,"props":11111,"children":11113},{"className":1018,"code":11112,"language":6,"meta":8,"style":8},"# Memory-efficient merging strategies\ndef efficient_merge_large(*tuple_sources):\n    \"\"\"Memory-efficient merging for large datasets\"\"\"\n    from itertools import chain\n    \n    # Use generator to avoid creating intermediate structures\n    def merge_generator():\n        for source in tuple_sources:\n            yield from source\n    \n    # Convert to tuple only when needed\n    return tuple(merge_generator())\n\ndef chunked_merge(tuple_list, chunk_size=10):\n    \"\"\"Merge tuples in chunks to manage memory\"\"\"\n    result = ()\n    \n    for i in range(0, len(tuple_list), chunk_size):\n        chunk = tuple_list[i:i + chunk_size]\n        chunk_merged = sum(chunk, ())\n        result += chunk_merged\n    \n    return result\n\n# Example usage\nlarge_data = [tuple(range(i, i + 3)) for i in range(0, 30, 3)]\nprint(f\"Large data sample: {large_data[:3]}...\")\n\n# Efficient merge\nefficient_result = efficient_merge_large(*large_data)\nprint(f\"Efficient merge length: {len(efficient_result)}\")\n\n# Chunked merge\nchunked_result = chunked_merge(large_data, chunk_size=5)\nprint(f\"Chunked merge length: {len(chunked_result)}\")\nprint(f\"Results equal: {efficient_result == chunked_result}\")\n",[11114],{"type":993,"tag":1022,"props":11115,"children":11116},{"__ignoreMap":8},[11117,11125,11150,11158,11177,11184,11192,11210,11231,11244,11251,11259,11275,11282,11311,11319,11334,11341,11381,11407,11428,11444,11451,11462,11469,11476,11567,11618,11625,11633,11659,11701,11708,11716,11751,11792],{"type":993,"tag":1026,"props":11118,"children":11119},{"class":1028,"line":12},[11120],{"type":993,"tag":1026,"props":11121,"children":11122},{"style":1032},[11123],{"type":998,"value":11124},"# Memory-efficient merging strategies\n",{"type":993,"tag":1026,"props":11126,"children":11127},{"class":1028,"line":27},[11128,11132,11137,11141,11145],{"type":993,"tag":1026,"props":11129,"children":11130},{"style":1047},[11131],{"type":998,"value":3149},{"type":993,"tag":1026,"props":11133,"children":11134},{"style":3152},[11135],{"type":998,"value":11136}," efficient_merge_large",{"type":993,"tag":1026,"props":11138,"children":11139},{"style":1041},[11140],{"type":998,"value":1389},{"type":993,"tag":1026,"props":11142,"children":11143},{"style":1047},[11144],{"type":998,"value":5000},{"type":993,"tag":1026,"props":11146,"children":11147},{"style":1041},[11148],{"type":998,"value":11149},"tuple_sources):\n",{"type":993,"tag":1026,"props":11151,"children":11152},{"class":1028,"line":36},[11153],{"type":993,"tag":1026,"props":11154,"children":11155},{"style":1275},[11156],{"type":998,"value":11157},"    \"\"\"Memory-efficient merging for large datasets\"\"\"\n",{"type":993,"tag":1026,"props":11159,"children":11160},{"class":1028,"line":45},[11161,11165,11169,11173],{"type":993,"tag":1026,"props":11162,"children":11163},{"style":1047},[11164],{"type":998,"value":10644},{"type":993,"tag":1026,"props":11166,"children":11167},{"style":1041},[11168],{"type":998,"value":6484},{"type":993,"tag":1026,"props":11170,"children":11171},{"style":1047},[11172],{"type":998,"value":6489},{"type":993,"tag":1026,"props":11174,"children":11175},{"style":1041},[11176],{"type":998,"value":6494},{"type":993,"tag":1026,"props":11178,"children":11179},{"class":1028,"line":54},[11180],{"type":993,"tag":1026,"props":11181,"children":11182},{"style":1041},[11183],{"type":998,"value":7322},{"type":993,"tag":1026,"props":11185,"children":11186},{"class":1028,"line":63},[11187],{"type":993,"tag":1026,"props":11188,"children":11189},{"style":1032},[11190],{"type":998,"value":11191},"    # Use generator to avoid creating intermediate structures\n",{"type":993,"tag":1026,"props":11193,"children":11194},{"class":1028,"line":72},[11195,11200,11205],{"type":993,"tag":1026,"props":11196,"children":11197},{"style":1047},[11198],{"type":998,"value":11199},"    def",{"type":993,"tag":1026,"props":11201,"children":11202},{"style":3152},[11203],{"type":998,"value":11204}," merge_generator",{"type":993,"tag":1026,"props":11206,"children":11207},{"style":1041},[11208],{"type":998,"value":11209},"():\n",{"type":993,"tag":1026,"props":11211,"children":11212},{"class":1028,"line":81},[11213,11217,11222,11226],{"type":993,"tag":1026,"props":11214,"children":11215},{"style":1047},[11216],{"type":998,"value":7744},{"type":993,"tag":1026,"props":11218,"children":11219},{"style":1041},[11220],{"type":998,"value":11221}," source ",{"type":993,"tag":1026,"props":11223,"children":11224},{"style":1047},[11225],{"type":998,"value":3825},{"type":993,"tag":1026,"props":11227,"children":11228},{"style":1041},[11229],{"type":998,"value":11230}," tuple_sources:\n",{"type":993,"tag":1026,"props":11232,"children":11233},{"class":1028,"line":91},[11234,11239],{"type":993,"tag":1026,"props":11235,"children":11236},{"style":1047},[11237],{"type":998,"value":11238},"            yield from",{"type":993,"tag":1026,"props":11240,"children":11241},{"style":1041},[11242],{"type":998,"value":11243}," source\n",{"type":993,"tag":1026,"props":11245,"children":11246},{"class":1028,"line":100},[11247],{"type":993,"tag":1026,"props":11248,"children":11249},{"style":1041},[11250],{"type":998,"value":7322},{"type":993,"tag":1026,"props":11252,"children":11253},{"class":1028,"line":109},[11254],{"type":993,"tag":1026,"props":11255,"children":11256},{"style":1032},[11257],{"type":998,"value":11258},"    # Convert to tuple only when needed\n",{"type":993,"tag":1026,"props":11260,"children":11261},{"class":1028,"line":118},[11262,11266,11270],{"type":993,"tag":1026,"props":11263,"children":11264},{"style":1047},[11265],{"type":998,"value":3268},{"type":993,"tag":1026,"props":11267,"children":11268},{"style":1058},[11269],{"type":998,"value":3719},{"type":993,"tag":1026,"props":11271,"children":11272},{"style":1041},[11273],{"type":998,"value":11274},"(merge_generator())\n",{"type":993,"tag":1026,"props":11276,"children":11277},{"class":1028,"line":127},[11278],{"type":993,"tag":1026,"props":11279,"children":11280},{"emptyLinePlaceholder":13},[11281],{"type":998,"value":1163},{"type":993,"tag":1026,"props":11283,"children":11284},{"class":1028,"line":136},[11285,11289,11294,11299,11303,11307],{"type":993,"tag":1026,"props":11286,"children":11287},{"style":1047},[11288],{"type":998,"value":3149},{"type":993,"tag":1026,"props":11290,"children":11291},{"style":3152},[11292],{"type":998,"value":11293}," chunked_merge",{"type":993,"tag":1026,"props":11295,"children":11296},{"style":1041},[11297],{"type":998,"value":11298},"(tuple_list, chunk_size",{"type":993,"tag":1026,"props":11300,"children":11301},{"style":1047},[11302],{"type":998,"value":1050},{"type":993,"tag":1026,"props":11304,"children":11305},{"style":1058},[11306],{"type":998,"value":1184},{"type":993,"tag":1026,"props":11308,"children":11309},{"style":1041},[11310],{"type":998,"value":3174},{"type":993,"tag":1026,"props":11312,"children":11313},{"class":1028,"line":146},[11314],{"type":993,"tag":1026,"props":11315,"children":11316},{"style":1275},[11317],{"type":998,"value":11318},"    \"\"\"Merge tuples in chunks to manage memory\"\"\"\n",{"type":993,"tag":1026,"props":11320,"children":11321},{"class":1028,"line":155},[11322,11326,11330],{"type":993,"tag":1026,"props":11323,"children":11324},{"style":1041},[11325],{"type":998,"value":7330},{"type":993,"tag":1026,"props":11327,"children":11328},{"style":1047},[11329],{"type":998,"value":1050},{"type":993,"tag":1026,"props":11331,"children":11332},{"style":1041},[11333],{"type":998,"value":2909},{"type":993,"tag":1026,"props":11335,"children":11336},{"class":1028,"line":164},[11337],{"type":993,"tag":1026,"props":11338,"children":11339},{"style":1041},[11340],{"type":998,"value":7322},{"type":993,"tag":1026,"props":11342,"children":11343},{"class":1028,"line":173},[11344,11348,11352,11356,11360,11364,11368,11372,11376],{"type":993,"tag":1026,"props":11345,"children":11346},{"style":1047},[11347],{"type":998,"value":4632},{"type":993,"tag":1026,"props":11349,"children":11350},{"style":1041},[11351],{"type":998,"value":8198},{"type":993,"tag":1026,"props":11353,"children":11354},{"style":1047},[11355],{"type":998,"value":3825},{"type":993,"tag":1026,"props":11357,"children":11358},{"style":1058},[11359],{"type":998,"value":8207},{"type":993,"tag":1026,"props":11361,"children":11362},{"style":1041},[11363],{"type":998,"value":1389},{"type":993,"tag":1026,"props":11365,"children":11366},{"style":1058},[11367],{"type":998,"value":7344},{"type":993,"tag":1026,"props":11369,"children":11370},{"style":1041},[11371],{"type":998,"value":1066},{"type":993,"tag":1026,"props":11373,"children":11374},{"style":1058},[11375],{"type":998,"value":8142},{"type":993,"tag":1026,"props":11377,"children":11378},{"style":1041},[11379],{"type":998,"value":11380},"(tuple_list), chunk_size):\n",{"type":993,"tag":1026,"props":11382,"children":11383},{"class":1028,"line":182},[11384,11389,11393,11398,11402],{"type":993,"tag":1026,"props":11385,"children":11386},{"style":1041},[11387],{"type":998,"value":11388},"        chunk ",{"type":993,"tag":1026,"props":11390,"children":11391},{"style":1047},[11392],{"type":998,"value":1050},{"type":993,"tag":1026,"props":11394,"children":11395},{"style":1041},[11396],{"type":998,"value":11397}," tuple_list[i:i ",{"type":993,"tag":1026,"props":11399,"children":11400},{"style":1047},[11401],{"type":998,"value":1150},{"type":993,"tag":1026,"props":11403,"children":11404},{"style":1041},[11405],{"type":998,"value":11406}," chunk_size]\n",{"type":993,"tag":1026,"props":11408,"children":11409},{"class":1028,"line":191},[11410,11415,11419,11423],{"type":993,"tag":1026,"props":11411,"children":11412},{"style":1041},[11413],{"type":998,"value":11414},"        chunk_merged ",{"type":993,"tag":1026,"props":11416,"children":11417},{"style":1047},[11418],{"type":998,"value":1050},{"type":993,"tag":1026,"props":11420,"children":11421},{"style":1058},[11422],{"type":998,"value":5968},{"type":993,"tag":1026,"props":11424,"children":11425},{"style":1041},[11426],{"type":998,"value":11427},"(chunk, ())\n",{"type":993,"tag":1026,"props":11429,"children":11430},{"class":1028,"line":201},[11431,11435,11439],{"type":993,"tag":1026,"props":11432,"children":11433},{"style":1041},[11434],{"type":998,"value":7385},{"type":993,"tag":1026,"props":11436,"children":11437},{"style":1047},[11438],{"type":998,"value":4721},{"type":993,"tag":1026,"props":11440,"children":11441},{"style":1041},[11442],{"type":998,"value":11443}," chunk_merged\n",{"type":993,"tag":1026,"props":11445,"children":11446},{"class":1028,"line":210},[11447],{"type":993,"tag":1026,"props":11448,"children":11449},{"style":1041},[11450],{"type":998,"value":7322},{"type":993,"tag":1026,"props":11452,"children":11453},{"class":1028,"line":219},[11454,11458],{"type":993,"tag":1026,"props":11455,"children":11456},{"style":1047},[11457],{"type":998,"value":3268},{"type":993,"tag":1026,"props":11459,"children":11460},{"style":1041},[11461],{"type":998,"value":7424},{"type":993,"tag":1026,"props":11463,"children":11464},{"class":1028,"line":228},[11465],{"type":993,"tag":1026,"props":11466,"children":11467},{"emptyLinePlaceholder":13},[11468],{"type":998,"value":1163},{"type":993,"tag":1026,"props":11470,"children":11471},{"class":1028,"line":238},[11472],{"type":993,"tag":1026,"props":11473,"children":11474},{"style":1032},[11475],{"type":998,"value":7439},{"type":993,"tag":1026,"props":11477,"children":11478},{"class":1028,"line":247},[11479,11484,11488,11492,11496,11500,11504,11508,11512,11517,11522,11526,11530,11534,11538,11542,11546,11550,11554,11558,11562],{"type":993,"tag":1026,"props":11480,"children":11481},{"style":1041},[11482],{"type":998,"value":11483},"large_data ",{"type":993,"tag":1026,"props":11485,"children":11486},{"style":1047},[11487],{"type":998,"value":1050},{"type":993,"tag":1026,"props":11489,"children":11490},{"style":1041},[11491],{"type":998,"value":10474},{"type":993,"tag":1026,"props":11493,"children":11494},{"style":1058},[11495],{"type":998,"value":9605},{"type":993,"tag":1026,"props":11497,"children":11498},{"style":1041},[11499],{"type":998,"value":1389},{"type":993,"tag":1026,"props":11501,"children":11502},{"style":1058},[11503],{"type":998,"value":6542},{"type":993,"tag":1026,"props":11505,"children":11506},{"style":1041},[11507],{"type":998,"value":10491},{"type":993,"tag":1026,"props":11509,"children":11510},{"style":1047},[11511],{"type":998,"value":1150},{"type":993,"tag":1026,"props":11513,"children":11514},{"style":1058},[11515],{"type":998,"value":11516}," 3",{"type":993,"tag":1026,"props":11518,"children":11519},{"style":1041},[11520],{"type":998,"value":11521},")) ",{"type":993,"tag":1026,"props":11523,"children":11524},{"style":1047},[11525],{"type":998,"value":3815},{"type":993,"tag":1026,"props":11527,"children":11528},{"style":1041},[11529],{"type":998,"value":8198},{"type":993,"tag":1026,"props":11531,"children":11532},{"style":1047},[11533],{"type":998,"value":3825},{"type":993,"tag":1026,"props":11535,"children":11536},{"style":1058},[11537],{"type":998,"value":8207},{"type":993,"tag":1026,"props":11539,"children":11540},{"style":1041},[11541],{"type":998,"value":1389},{"type":993,"tag":1026,"props":11543,"children":11544},{"style":1058},[11545],{"type":998,"value":7344},{"type":993,"tag":1026,"props":11547,"children":11548},{"style":1041},[11549],{"type":998,"value":1066},{"type":993,"tag":1026,"props":11551,"children":11552},{"style":1058},[11553],{"type":998,"value":1218},{"type":993,"tag":1026,"props":11555,"children":11556},{"style":1041},[11557],{"type":998,"value":1066},{"type":993,"tag":1026,"props":11559,"children":11560},{"style":1058},[11561],{"type":998,"value":1080},{"type":993,"tag":1026,"props":11563,"children":11564},{"style":1041},[11565],{"type":998,"value":11566},")]\n",{"type":993,"tag":1026,"props":11568,"children":11569},{"class":1028,"line":256},[11570,11574,11578,11582,11587,11591,11596,11600,11605,11609,11614],{"type":993,"tag":1026,"props":11571,"children":11572},{"style":1058},[11573],{"type":998,"value":1384},{"type":993,"tag":1026,"props":11575,"children":11576},{"style":1041},[11577],{"type":998,"value":1389},{"type":993,"tag":1026,"props":11579,"children":11580},{"style":1047},[11581],{"type":998,"value":1394},{"type":993,"tag":1026,"props":11583,"children":11584},{"style":1275},[11585],{"type":998,"value":11586},"\"Large data sample: ",{"type":993,"tag":1026,"props":11588,"children":11589},{"style":1058},[11590],{"type":998,"value":1404},{"type":993,"tag":1026,"props":11592,"children":11593},{"style":1041},[11594],{"type":998,"value":11595},"large_data[:",{"type":993,"tag":1026,"props":11597,"children":11598},{"style":1058},[11599],{"type":998,"value":1080},{"type":993,"tag":1026,"props":11601,"children":11602},{"style":1041},[11603],{"type":998,"value":11604},"]",{"type":993,"tag":1026,"props":11606,"children":11607},{"style":1058},[11608],{"type":998,"value":1414},{"type":993,"tag":1026,"props":11610,"children":11611},{"style":1275},[11612],{"type":998,"value":11613},"...\"",{"type":993,"tag":1026,"props":11615,"children":11616},{"style":1041},[11617],{"type":998,"value":1085},{"type":993,"tag":1026,"props":11619,"children":11620},{"class":1028,"line":265},[11621],{"type":993,"tag":1026,"props":11622,"children":11623},{"emptyLinePlaceholder":13},[11624],{"type":998,"value":1163},{"type":993,"tag":1026,"props":11626,"children":11627},{"class":1028,"line":274},[11628],{"type":993,"tag":1026,"props":11629,"children":11630},{"style":1032},[11631],{"type":998,"value":11632},"# Efficient merge\n",{"type":993,"tag":1026,"props":11634,"children":11635},{"class":1028,"line":284},[11636,11641,11645,11650,11654],{"type":993,"tag":1026,"props":11637,"children":11638},{"style":1041},[11639],{"type":998,"value":11640},"efficient_result ",{"type":993,"tag":1026,"props":11642,"children":11643},{"style":1047},[11644],{"type":998,"value":1050},{"type":993,"tag":1026,"props":11646,"children":11647},{"style":1041},[11648],{"type":998,"value":11649}," efficient_merge_large(",{"type":993,"tag":1026,"props":11651,"children":11652},{"style":1047},[11653],{"type":998,"value":5000},{"type":993,"tag":1026,"props":11655,"children":11656},{"style":1041},[11657],{"type":998,"value":11658},"large_data)\n",{"type":993,"tag":1026,"props":11660,"children":11661},{"class":1028,"line":293},[11662,11666,11670,11674,11679,11684,11689,11693,11697],{"type":993,"tag":1026,"props":11663,"children":11664},{"style":1058},[11665],{"type":998,"value":1384},{"type":993,"tag":1026,"props":11667,"children":11668},{"style":1041},[11669],{"type":998,"value":1389},{"type":993,"tag":1026,"props":11671,"children":11672},{"style":1047},[11673],{"type":998,"value":1394},{"type":993,"tag":1026,"props":11675,"children":11676},{"style":1275},[11677],{"type":998,"value":11678},"\"Efficient merge length: ",{"type":993,"tag":1026,"props":11680,"children":11681},{"style":1058},[11682],{"type":998,"value":11683},"{len",{"type":993,"tag":1026,"props":11685,"children":11686},{"style":1041},[11687],{"type":998,"value":11688},"(efficient_result)",{"type":993,"tag":1026,"props":11690,"children":11691},{"style":1058},[11692],{"type":998,"value":1414},{"type":993,"tag":1026,"props":11694,"children":11695},{"style":1275},[11696],{"type":998,"value":1419},{"type":993,"tag":1026,"props":11698,"children":11699},{"style":1041},[11700],{"type":998,"value":1085},{"type":993,"tag":1026,"props":11702,"children":11703},{"class":1028,"line":302},[11704],{"type":993,"tag":1026,"props":11705,"children":11706},{"emptyLinePlaceholder":13},[11707],{"type":998,"value":1163},{"type":993,"tag":1026,"props":11709,"children":11710},{"class":1028,"line":311},[11711],{"type":993,"tag":1026,"props":11712,"children":11713},{"style":1032},[11714],{"type":998,"value":11715},"# Chunked merge\n",{"type":993,"tag":1026,"props":11717,"children":11718},{"class":1028,"line":320},[11719,11724,11728,11733,11739,11743,11747],{"type":993,"tag":1026,"props":11720,"children":11721},{"style":1041},[11722],{"type":998,"value":11723},"chunked_result ",{"type":993,"tag":1026,"props":11725,"children":11726},{"style":1047},[11727],{"type":998,"value":1050},{"type":993,"tag":1026,"props":11729,"children":11730},{"style":1041},[11731],{"type":998,"value":11732}," chunked_merge(large_data, ",{"type":993,"tag":1026,"props":11734,"children":11736},{"style":11735},"--shiki-default:#E36209;--shiki-app-dark-mode:#FFAB70",[11737],{"type":998,"value":11738},"chunk_size",{"type":993,"tag":1026,"props":11740,"children":11741},{"style":1047},[11742],{"type":998,"value":1050},{"type":993,"tag":1026,"props":11744,"children":11745},{"style":1058},[11746],{"type":998,"value":1115},{"type":993,"tag":1026,"props":11748,"children":11749},{"style":1041},[11750],{"type":998,"value":1085},{"type":993,"tag":1026,"props":11752,"children":11753},{"class":1028,"line":329},[11754,11758,11762,11766,11771,11775,11780,11784,11788],{"type":993,"tag":1026,"props":11755,"children":11756},{"style":1058},[11757],{"type":998,"value":1384},{"type":993,"tag":1026,"props":11759,"children":11760},{"style":1041},[11761],{"type":998,"value":1389},{"type":993,"tag":1026,"props":11763,"children":11764},{"style":1047},[11765],{"type":998,"value":1394},{"type":993,"tag":1026,"props":11767,"children":11768},{"style":1275},[11769],{"type":998,"value":11770},"\"Chunked merge length: ",{"type":993,"tag":1026,"props":11772,"children":11773},{"style":1058},[11774],{"type":998,"value":11683},{"type":993,"tag":1026,"props":11776,"children":11777},{"style":1041},[11778],{"type":998,"value":11779},"(chunked_result)",{"type":993,"tag":1026,"props":11781,"children":11782},{"style":1058},[11783],{"type":998,"value":1414},{"type":993,"tag":1026,"props":11785,"children":11786},{"style":1275},[11787],{"type":998,"value":1419},{"type":993,"tag":1026,"props":11789,"children":11790},{"style":1041},[11791],{"type":998,"value":1085},{"type":993,"tag":1026,"props":11793,"children":11794},{"class":1028,"line":338},[11795,11799,11803,11807,11811,11815,11819,11823,11828,11832,11836],{"type":993,"tag":1026,"props":11796,"children":11797},{"style":1058},[11798],{"type":998,"value":1384},{"type":993,"tag":1026,"props":11800,"children":11801},{"style":1041},[11802],{"type":998,"value":1389},{"type":993,"tag":1026,"props":11804,"children":11805},{"style":1047},[11806],{"type":998,"value":1394},{"type":993,"tag":1026,"props":11808,"children":11809},{"style":1275},[11810],{"type":998,"value":10860},{"type":993,"tag":1026,"props":11812,"children":11813},{"style":1058},[11814],{"type":998,"value":1404},{"type":993,"tag":1026,"props":11816,"children":11817},{"style":1041},[11818],{"type":998,"value":11640},{"type":993,"tag":1026,"props":11820,"children":11821},{"style":1047},[11822],{"type":998,"value":10873},{"type":993,"tag":1026,"props":11824,"children":11825},{"style":1041},[11826],{"type":998,"value":11827}," chunked_result",{"type":993,"tag":1026,"props":11829,"children":11830},{"style":1058},[11831],{"type":998,"value":1414},{"type":993,"tag":1026,"props":11833,"children":11834},{"style":1275},[11835],{"type":998,"value":1419},{"type":993,"tag":1026,"props":11837,"children":11838},{"style":1041},[11839],{"type":998,"value":1085},{"type":993,"tag":1507,"props":11841,"children":11843},{"id":11842},"tuple-merging-reference",[11844],{"type":998,"value":11845},"📚 Tuple Merging Reference",{"type":993,"tag":1001,"props":11847,"children":11848},{},[11849],{"type":998,"value":11850},"Common tuple merging patterns and their optimal use cases:",{"type":993,"tag":11852,"props":11853,"children":11854},"table",{},[11855,11884],{"type":993,"tag":11856,"props":11857,"children":11858},"thead",{},[11859],{"type":993,"tag":11860,"props":11861,"children":11862},"tr",{},[11863,11869,11874,11879],{"type":993,"tag":11864,"props":11865,"children":11866},"th",{},[11867],{"type":998,"value":11868},"Method",{"type":993,"tag":11864,"props":11870,"children":11871},{},[11872],{"type":998,"value":11873},"Syntax",{"type":993,"tag":11864,"props":11875,"children":11876},{},[11877],{"type":998,"value":11878},"Use Case",{"type":993,"tag":11864,"props":11880,"children":11881},{},[11882],{"type":998,"value":11883},"Example",{"type":993,"tag":11885,"props":11886,"children":11887},"tbody",{},[11888,11923,11957,11991,12025,12059],{"type":993,"tag":11860,"props":11889,"children":11890},{},[11891,11900,11909,11914],{"type":993,"tag":11892,"props":11893,"children":11894},"td",{},[11895],{"type":993,"tag":1536,"props":11896,"children":11897},{},[11898],{"type":998,"value":11899},"Basic Concat",{"type":993,"tag":11892,"props":11901,"children":11902},{},[11903],{"type":993,"tag":1022,"props":11904,"children":11906},{"className":11905},[],[11907],{"type":998,"value":11908},"tuple1 + tuple2",{"type":993,"tag":11892,"props":11910,"children":11911},{},[11912],{"type":998,"value":11913},"Simple merging",{"type":993,"tag":11892,"props":11915,"children":11916},{},[11917],{"type":993,"tag":1022,"props":11918,"children":11920},{"className":11919},[],[11921],{"type":998,"value":11922},"(1,2) + (3,4)",{"type":993,"tag":11860,"props":11924,"children":11925},{},[11926,11934,11943,11948],{"type":993,"tag":11892,"props":11927,"children":11928},{},[11929],{"type":993,"tag":1536,"props":11930,"children":11931},{},[11932],{"type":998,"value":11933},"Multiple Concat",{"type":993,"tag":11892,"props":11935,"children":11936},{},[11937],{"type":993,"tag":1022,"props":11938,"children":11940},{"className":11939},[],[11941],{"type":998,"value":11942},"sum(tuples, ())",{"type":993,"tag":11892,"props":11944,"children":11945},{},[11946],{"type":998,"value":11947},"Many tuples",{"type":993,"tag":11892,"props":11949,"children":11950},{},[11951],{"type":993,"tag":1022,"props":11952,"children":11954},{"className":11953},[],[11955],{"type":998,"value":11956},"sum([(1,2), (3,4)], ())",{"type":993,"tag":11860,"props":11958,"children":11959},{},[11960,11968,11977,11982],{"type":993,"tag":11892,"props":11961,"children":11962},{},[11963],{"type":993,"tag":1536,"props":11964,"children":11965},{},[11966],{"type":998,"value":11967},"Chain Merge",{"type":993,"tag":11892,"props":11969,"children":11970},{},[11971],{"type":993,"tag":1022,"props":11972,"children":11974},{"className":11973},[],[11975],{"type":998,"value":11976},"tuple(chain(*tuples))",{"type":993,"tag":11892,"props":11978,"children":11979},{},[11980],{"type":998,"value":11981},"Large datasets",{"type":993,"tag":11892,"props":11983,"children":11984},{},[11985],{"type":993,"tag":1022,"props":11986,"children":11988},{"className":11987},[],[11989],{"type":998,"value":11990},"tuple(chain(*data))",{"type":993,"tag":11860,"props":11992,"children":11993},{},[11994,12002,12011,12016],{"type":993,"tag":11892,"props":11995,"children":11996},{},[11997],{"type":993,"tag":1536,"props":11998,"children":11999},{},[12000],{"type":998,"value":12001},"Zip Interleave",{"type":993,"tag":11892,"props":12003,"children":12004},{},[12005],{"type":993,"tag":1022,"props":12006,"children":12008},{"className":12007},[],[12009],{"type":998,"value":12010},"tuple(zip(t1, t2))",{"type":993,"tag":11892,"props":12012,"children":12013},{},[12014],{"type":998,"value":12015},"Parallel merging",{"type":993,"tag":11892,"props":12017,"children":12018},{},[12019],{"type":993,"tag":1022,"props":12020,"children":12022},{"className":12021},[],[12023],{"type":998,"value":12024},"tuple(zip(names, ages))",{"type":993,"tag":11860,"props":12026,"children":12027},{},[12028,12036,12045,12050],{"type":993,"tag":11892,"props":12029,"children":12030},{},[12031],{"type":993,"tag":1536,"props":12032,"children":12033},{},[12034],{"type":998,"value":12035},"Comprehension",{"type":993,"tag":11892,"props":12037,"children":12038},{},[12039],{"type":993,"tag":1022,"props":12040,"children":12042},{"className":12041},[],[12043],{"type":998,"value":12044},"tuple(x for t in tuples for x in t)",{"type":993,"tag":11892,"props":12046,"children":12047},{},[12048],{"type":998,"value":12049},"Filtered merge",{"type":993,"tag":11892,"props":12051,"children":12052},{},[12053],{"type":993,"tag":1022,"props":12054,"children":12056},{"className":12055},[],[12057],{"type":998,"value":12058},"tuple(x for t in data for x in t if x>0)",{"type":993,"tag":11860,"props":12060,"children":12061},{},[12062,12070,12079,12084],{"type":993,"tag":11892,"props":12063,"children":12064},{},[12065],{"type":993,"tag":1536,"props":12066,"children":12067},{},[12068],{"type":998,"value":12069},"Custom Function",{"type":993,"tag":11892,"props":12071,"children":12072},{},[12073],{"type":993,"tag":1022,"props":12074,"children":12076},{"className":12075},[],[12077],{"type":998,"value":12078},"merge_function(*tuples)",{"type":993,"tag":11892,"props":12080,"children":12081},{},[12082],{"type":998,"value":12083},"Complex logic",{"type":993,"tag":11892,"props":12085,"children":12086},{},[12087],{"type":993,"tag":1022,"props":12088,"children":12090},{"className":12089},[],[12091],{"type":998,"value":12092},"merge_unique(t1, t2, t3)",{"type":993,"tag":1001,"props":12094,"children":12095},{},[12096],{"type":998,"value":12097},"Choose the method that best fits your data size, performance requirements, and complexity needs.",{"type":993,"tag":1001,"props":12099,"children":12100},{},[12101,12103,12109],{"type":998,"value":12102},"Learn more about ",{"type":993,"tag":12104,"props":12105,"children":12106},"a",{"href":434},[12107],{"type":998,"value":12108},"tuple operations",{"type":998,"value":12110}," to discover additional ways to manipulate and work with tuple data.",{"type":993,"tag":12112,"props":12113,"children":12116},"exercise",{"hint":12114,"prompt":12115},"Use the + operator between two tuples to combine them into one larger tuple","Combine two tuples of favorite foods to create a single tuple with all foods. Use the + operator to merge them.",[12117],{"type":993,"tag":1016,"props":12118,"children":12120},{"className":1018,"code":12119,"language":6,"meta":8,"style":8},"# TODO: Create two tuples of favorite foods\nfoods1 = (\"pizza\", \"sushi\", \"pasta\")\nfoods2 = (\"tacos\", \"burgers\", \"salad\")\n\n# TODO: Combine them using the + operator\nall_foods = # TODO: Your combination here\n\nprint(f\"First foods: {foods1}\")\nprint(f\"Second foods: {foods2}\")\nprint(f\"All foods: {all_foods}\")\n",[12121],{"type":993,"tag":1022,"props":12122,"children":12123},{"__ignoreMap":8},[12124,12142,12185,12228,12235,12251,12277,12284,12325,12366],{"type":993,"tag":1026,"props":12125,"children":12126},{"class":1028,"line":12},[12127,12132,12137],{"type":993,"tag":1026,"props":12128,"children":12129},{"style":1032},[12130],{"type":998,"value":12131},"# ",{"type":993,"tag":1026,"props":12133,"children":12134},{"style":1047},[12135],{"type":998,"value":12136},"TODO",{"type":993,"tag":1026,"props":12138,"children":12139},{"style":1032},[12140],{"type":998,"value":12141},": Create two tuples of favorite foods\n",{"type":993,"tag":1026,"props":12143,"children":12144},{"class":1028,"line":27},[12145,12150,12154,12158,12163,12167,12172,12176,12181],{"type":993,"tag":1026,"props":12146,"children":12147},{"style":1041},[12148],{"type":998,"value":12149},"foods1 ",{"type":993,"tag":1026,"props":12151,"children":12152},{"style":1047},[12153],{"type":998,"value":1050},{"type":993,"tag":1026,"props":12155,"children":12156},{"style":1041},[12157],{"type":998,"value":1055},{"type":993,"tag":1026,"props":12159,"children":12160},{"style":1275},[12161],{"type":998,"value":12162},"\"pizza\"",{"type":993,"tag":1026,"props":12164,"children":12165},{"style":1041},[12166],{"type":998,"value":1066},{"type":993,"tag":1026,"props":12168,"children":12169},{"style":1275},[12170],{"type":998,"value":12171},"\"sushi\"",{"type":993,"tag":1026,"props":12173,"children":12174},{"style":1041},[12175],{"type":998,"value":1066},{"type":993,"tag":1026,"props":12177,"children":12178},{"style":1275},[12179],{"type":998,"value":12180},"\"pasta\"",{"type":993,"tag":1026,"props":12182,"children":12183},{"style":1041},[12184],{"type":998,"value":1085},{"type":993,"tag":1026,"props":12186,"children":12187},{"class":1028,"line":36},[12188,12193,12197,12201,12206,12210,12215,12219,12224],{"type":993,"tag":1026,"props":12189,"children":12190},{"style":1041},[12191],{"type":998,"value":12192},"foods2 ",{"type":993,"tag":1026,"props":12194,"children":12195},{"style":1047},[12196],{"type":998,"value":1050},{"type":993,"tag":1026,"props":12198,"children":12199},{"style":1041},[12200],{"type":998,"value":1055},{"type":993,"tag":1026,"props":12202,"children":12203},{"style":1275},[12204],{"type":998,"value":12205},"\"tacos\"",{"type":993,"tag":1026,"props":12207,"children":12208},{"style":1041},[12209],{"type":998,"value":1066},{"type":993,"tag":1026,"props":12211,"children":12212},{"style":1275},[12213],{"type":998,"value":12214},"\"burgers\"",{"type":993,"tag":1026,"props":12216,"children":12217},{"style":1041},[12218],{"type":998,"value":1066},{"type":993,"tag":1026,"props":12220,"children":12221},{"style":1275},[12222],{"type":998,"value":12223},"\"salad\"",{"type":993,"tag":1026,"props":12225,"children":12226},{"style":1041},[12227],{"type":998,"value":1085},{"type":993,"tag":1026,"props":12229,"children":12230},{"class":1028,"line":45},[12231],{"type":993,"tag":1026,"props":12232,"children":12233},{"emptyLinePlaceholder":13},[12234],{"type":998,"value":1163},{"type":993,"tag":1026,"props":12236,"children":12237},{"class":1028,"line":54},[12238,12242,12246],{"type":993,"tag":1026,"props":12239,"children":12240},{"style":1032},[12241],{"type":998,"value":12131},{"type":993,"tag":1026,"props":12243,"children":12244},{"style":1047},[12245],{"type":998,"value":12136},{"type":993,"tag":1026,"props":12247,"children":12248},{"style":1032},[12249],{"type":998,"value":12250},": Combine them using the + operator\n",{"type":993,"tag":1026,"props":12252,"children":12253},{"class":1028,"line":63},[12254,12259,12263,12268,12272],{"type":993,"tag":1026,"props":12255,"children":12256},{"style":1041},[12257],{"type":998,"value":12258},"all_foods ",{"type":993,"tag":1026,"props":12260,"children":12261},{"style":1047},[12262],{"type":998,"value":1050},{"type":993,"tag":1026,"props":12264,"children":12265},{"style":1032},[12266],{"type":998,"value":12267}," # ",{"type":993,"tag":1026,"props":12269,"children":12270},{"style":1047},[12271],{"type":998,"value":12136},{"type":993,"tag":1026,"props":12273,"children":12274},{"style":1032},[12275],{"type":998,"value":12276},": Your combination here\n",{"type":993,"tag":1026,"props":12278,"children":12279},{"class":1028,"line":72},[12280],{"type":993,"tag":1026,"props":12281,"children":12282},{"emptyLinePlaceholder":13},[12283],{"type":998,"value":1163},{"type":993,"tag":1026,"props":12285,"children":12286},{"class":1028,"line":81},[12287,12291,12295,12299,12304,12308,12313,12317,12321],{"type":993,"tag":1026,"props":12288,"children":12289},{"style":1058},[12290],{"type":998,"value":1384},{"type":993,"tag":1026,"props":12292,"children":12293},{"style":1041},[12294],{"type":998,"value":1389},{"type":993,"tag":1026,"props":12296,"children":12297},{"style":1047},[12298],{"type":998,"value":1394},{"type":993,"tag":1026,"props":12300,"children":12301},{"style":1275},[12302],{"type":998,"value":12303},"\"First foods: ",{"type":993,"tag":1026,"props":12305,"children":12306},{"style":1058},[12307],{"type":998,"value":1404},{"type":993,"tag":1026,"props":12309,"children":12310},{"style":1041},[12311],{"type":998,"value":12312},"foods1",{"type":993,"tag":1026,"props":12314,"children":12315},{"style":1058},[12316],{"type":998,"value":1414},{"type":993,"tag":1026,"props":12318,"children":12319},{"style":1275},[12320],{"type":998,"value":1419},{"type":993,"tag":1026,"props":12322,"children":12323},{"style":1041},[12324],{"type":998,"value":1085},{"type":993,"tag":1026,"props":12326,"children":12327},{"class":1028,"line":91},[12328,12332,12336,12340,12345,12349,12354,12358,12362],{"type":993,"tag":1026,"props":12329,"children":12330},{"style":1058},[12331],{"type":998,"value":1384},{"type":993,"tag":1026,"props":12333,"children":12334},{"style":1041},[12335],{"type":998,"value":1389},{"type":993,"tag":1026,"props":12337,"children":12338},{"style":1047},[12339],{"type":998,"value":1394},{"type":993,"tag":1026,"props":12341,"children":12342},{"style":1275},[12343],{"type":998,"value":12344},"\"Second foods: ",{"type":993,"tag":1026,"props":12346,"children":12347},{"style":1058},[12348],{"type":998,"value":1404},{"type":993,"tag":1026,"props":12350,"children":12351},{"style":1041},[12352],{"type":998,"value":12353},"foods2",{"type":993,"tag":1026,"props":12355,"children":12356},{"style":1058},[12357],{"type":998,"value":1414},{"type":993,"tag":1026,"props":12359,"children":12360},{"style":1275},[12361],{"type":998,"value":1419},{"type":993,"tag":1026,"props":12363,"children":12364},{"style":1041},[12365],{"type":998,"value":1085},{"type":993,"tag":1026,"props":12367,"children":12368},{"class":1028,"line":100},[12369,12373,12377,12381,12386,12390,12395,12399,12403],{"type":993,"tag":1026,"props":12370,"children":12371},{"style":1058},[12372],{"type":998,"value":1384},{"type":993,"tag":1026,"props":12374,"children":12375},{"style":1041},[12376],{"type":998,"value":1389},{"type":993,"tag":1026,"props":12378,"children":12379},{"style":1047},[12380],{"type":998,"value":1394},{"type":993,"tag":1026,"props":12382,"children":12383},{"style":1275},[12384],{"type":998,"value":12385},"\"All foods: ",{"type":993,"tag":1026,"props":12387,"children":12388},{"style":1058},[12389],{"type":998,"value":1404},{"type":993,"tag":1026,"props":12391,"children":12392},{"style":1041},[12393],{"type":998,"value":12394},"all_foods",{"type":993,"tag":1026,"props":12396,"children":12397},{"style":1058},[12398],{"type":998,"value":1414},{"type":993,"tag":1026,"props":12400,"children":12401},{"style":1275},[12402],{"type":998,"value":1419},{"type":993,"tag":1026,"props":12404,"children":12405},{"style":1041},[12406],{"type":998,"value":1085},{"type":993,"tag":1631,"props":12408,"children":12410},{"id":12409},"solution-and-explanation",[12411],{"type":998,"value":12412},"Solution and Explanation 💡",{"type":993,"tag":12414,"props":12415,"children":12416},"details",{},[12417,12425,12685,12693],{"type":993,"tag":12418,"props":12419,"children":12422},"summary",{"className":12420},[12421],"cursor-pointer",[12423],{"type":998,"value":12424},"Click to see the complete solution",{"type":993,"tag":1012,"props":12426,"children":12427},{},[12428],{"type":993,"tag":1016,"props":12429,"children":12431},{"className":1018,"code":12430,"language":6,"meta":8,"style":8},"# Create two tuples of favorite foods\nfoods1 = (\"pizza\", \"sushi\", \"pasta\")\nfoods2 = (\"tacos\", \"burgers\", \"salad\")\n\n# Combine them using the + operator\nall_foods = foods1 + foods2\n\nprint(f\"First foods: {foods1}\")\nprint(f\"Second foods: {foods2}\")\nprint(f\"All foods: {all_foods}\")\n",[12432],{"type":993,"tag":1022,"props":12433,"children":12434},{"__ignoreMap":8},[12435,12443,12482,12521,12528,12536,12561,12568,12607,12646],{"type":993,"tag":1026,"props":12436,"children":12437},{"class":1028,"line":12},[12438],{"type":993,"tag":1026,"props":12439,"children":12440},{"style":1032},[12441],{"type":998,"value":12442},"# Create two tuples of favorite foods\n",{"type":993,"tag":1026,"props":12444,"children":12445},{"class":1028,"line":27},[12446,12450,12454,12458,12462,12466,12470,12474,12478],{"type":993,"tag":1026,"props":12447,"children":12448},{"style":1041},[12449],{"type":998,"value":12149},{"type":993,"tag":1026,"props":12451,"children":12452},{"style":1047},[12453],{"type":998,"value":1050},{"type":993,"tag":1026,"props":12455,"children":12456},{"style":1041},[12457],{"type":998,"value":1055},{"type":993,"tag":1026,"props":12459,"children":12460},{"style":1275},[12461],{"type":998,"value":12162},{"type":993,"tag":1026,"props":12463,"children":12464},{"style":1041},[12465],{"type":998,"value":1066},{"type":993,"tag":1026,"props":12467,"children":12468},{"style":1275},[12469],{"type":998,"value":12171},{"type":993,"tag":1026,"props":12471,"children":12472},{"style":1041},[12473],{"type":998,"value":1066},{"type":993,"tag":1026,"props":12475,"children":12476},{"style":1275},[12477],{"type":998,"value":12180},{"type":993,"tag":1026,"props":12479,"children":12480},{"style":1041},[12481],{"type":998,"value":1085},{"type":993,"tag":1026,"props":12483,"children":12484},{"class":1028,"line":36},[12485,12489,12493,12497,12501,12505,12509,12513,12517],{"type":993,"tag":1026,"props":12486,"children":12487},{"style":1041},[12488],{"type":998,"value":12192},{"type":993,"tag":1026,"props":12490,"children":12491},{"style":1047},[12492],{"type":998,"value":1050},{"type":993,"tag":1026,"props":12494,"children":12495},{"style":1041},[12496],{"type":998,"value":1055},{"type":993,"tag":1026,"props":12498,"children":12499},{"style":1275},[12500],{"type":998,"value":12205},{"type":993,"tag":1026,"props":12502,"children":12503},{"style":1041},[12504],{"type":998,"value":1066},{"type":993,"tag":1026,"props":12506,"children":12507},{"style":1275},[12508],{"type":998,"value":12214},{"type":993,"tag":1026,"props":12510,"children":12511},{"style":1041},[12512],{"type":998,"value":1066},{"type":993,"tag":1026,"props":12514,"children":12515},{"style":1275},[12516],{"type":998,"value":12223},{"type":993,"tag":1026,"props":12518,"children":12519},{"style":1041},[12520],{"type":998,"value":1085},{"type":993,"tag":1026,"props":12522,"children":12523},{"class":1028,"line":45},[12524],{"type":993,"tag":1026,"props":12525,"children":12526},{"emptyLinePlaceholder":13},[12527],{"type":998,"value":1163},{"type":993,"tag":1026,"props":12529,"children":12530},{"class":1028,"line":54},[12531],{"type":993,"tag":1026,"props":12532,"children":12533},{"style":1032},[12534],{"type":998,"value":12535},"# Combine them using the + operator\n",{"type":993,"tag":1026,"props":12537,"children":12538},{"class":1028,"line":63},[12539,12543,12547,12552,12556],{"type":993,"tag":1026,"props":12540,"children":12541},{"style":1041},[12542],{"type":998,"value":12258},{"type":993,"tag":1026,"props":12544,"children":12545},{"style":1047},[12546],{"type":998,"value":1050},{"type":993,"tag":1026,"props":12548,"children":12549},{"style":1041},[12550],{"type":998,"value":12551}," foods1 ",{"type":993,"tag":1026,"props":12553,"children":12554},{"style":1047},[12555],{"type":998,"value":1150},{"type":993,"tag":1026,"props":12557,"children":12558},{"style":1041},[12559],{"type":998,"value":12560}," foods2\n",{"type":993,"tag":1026,"props":12562,"children":12563},{"class":1028,"line":72},[12564],{"type":993,"tag":1026,"props":12565,"children":12566},{"emptyLinePlaceholder":13},[12567],{"type":998,"value":1163},{"type":993,"tag":1026,"props":12569,"children":12570},{"class":1028,"line":81},[12571,12575,12579,12583,12587,12591,12595,12599,12603],{"type":993,"tag":1026,"props":12572,"children":12573},{"style":1058},[12574],{"type":998,"value":1384},{"type":993,"tag":1026,"props":12576,"children":12577},{"style":1041},[12578],{"type":998,"value":1389},{"type":993,"tag":1026,"props":12580,"children":12581},{"style":1047},[12582],{"type":998,"value":1394},{"type":993,"tag":1026,"props":12584,"children":12585},{"style":1275},[12586],{"type":998,"value":12303},{"type":993,"tag":1026,"props":12588,"children":12589},{"style":1058},[12590],{"type":998,"value":1404},{"type":993,"tag":1026,"props":12592,"children":12593},{"style":1041},[12594],{"type":998,"value":12312},{"type":993,"tag":1026,"props":12596,"children":12597},{"style":1058},[12598],{"type":998,"value":1414},{"type":993,"tag":1026,"props":12600,"children":12601},{"style":1275},[12602],{"type":998,"value":1419},{"type":993,"tag":1026,"props":12604,"children":12605},{"style":1041},[12606],{"type":998,"value":1085},{"type":993,"tag":1026,"props":12608,"children":12609},{"class":1028,"line":91},[12610,12614,12618,12622,12626,12630,12634,12638,12642],{"type":993,"tag":1026,"props":12611,"children":12612},{"style":1058},[12613],{"type":998,"value":1384},{"type":993,"tag":1026,"props":12615,"children":12616},{"style":1041},[12617],{"type":998,"value":1389},{"type":993,"tag":1026,"props":12619,"children":12620},{"style":1047},[12621],{"type":998,"value":1394},{"type":993,"tag":1026,"props":12623,"children":12624},{"style":1275},[12625],{"type":998,"value":12344},{"type":993,"tag":1026,"props":12627,"children":12628},{"style":1058},[12629],{"type":998,"value":1404},{"type":993,"tag":1026,"props":12631,"children":12632},{"style":1041},[12633],{"type":998,"value":12353},{"type":993,"tag":1026,"props":12635,"children":12636},{"style":1058},[12637],{"type":998,"value":1414},{"type":993,"tag":1026,"props":12639,"children":12640},{"style":1275},[12641],{"type":998,"value":1419},{"type":993,"tag":1026,"props":12643,"children":12644},{"style":1041},[12645],{"type":998,"value":1085},{"type":993,"tag":1026,"props":12647,"children":12648},{"class":1028,"line":100},[12649,12653,12657,12661,12665,12669,12673,12677,12681],{"type":993,"tag":1026,"props":12650,"children":12651},{"style":1058},[12652],{"type":998,"value":1384},{"type":993,"tag":1026,"props":12654,"children":12655},{"style":1041},[12656],{"type":998,"value":1389},{"type":993,"tag":1026,"props":12658,"children":12659},{"style":1047},[12660],{"type":998,"value":1394},{"type":993,"tag":1026,"props":12662,"children":12663},{"style":1275},[12664],{"type":998,"value":12385},{"type":993,"tag":1026,"props":12666,"children":12667},{"style":1058},[12668],{"type":998,"value":1404},{"type":993,"tag":1026,"props":12670,"children":12671},{"style":1041},[12672],{"type":998,"value":12394},{"type":993,"tag":1026,"props":12674,"children":12675},{"style":1058},[12676],{"type":998,"value":1414},{"type":993,"tag":1026,"props":12678,"children":12679},{"style":1275},[12680],{"type":998,"value":1419},{"type":993,"tag":1026,"props":12682,"children":12683},{"style":1041},[12684],{"type":998,"value":1085},{"type":993,"tag":1001,"props":12686,"children":12687},{},[12688],{"type":993,"tag":1536,"props":12689,"children":12690},{},[12691],{"type":998,"value":12692},"Key Learning Points:",{"type":993,"tag":1542,"props":12694,"children":12695},{},[12696,12715,12726,12737],{"type":993,"tag":1546,"props":12697,"children":12698},{},[12699,12701,12706,12708,12713],{"type":998,"value":12700},"📌 ",{"type":993,"tag":1536,"props":12702,"children":12703},{},[12704],{"type":998,"value":12705},"Tuple concatenation",{"type":998,"value":12707},": Use ",{"type":993,"tag":1022,"props":12709,"children":12711},{"className":12710},[],[12712],{"type":998,"value":1150},{"type":998,"value":12714}," operator to combine two tuples into one",{"type":993,"tag":1546,"props":12716,"children":12717},{},[12718,12719,12724],{"type":998,"value":12700},{"type":993,"tag":1536,"props":12720,"children":12721},{},[12722],{"type":998,"value":12723},"Order preservation",{"type":998,"value":12725},": Elements maintain their original order in the combined tuple",{"type":993,"tag":1546,"props":12727,"children":12728},{},[12729,12730,12735],{"type":998,"value":12700},{"type":993,"tag":1536,"props":12731,"children":12732},{},[12733],{"type":998,"value":12734},"New tuple creation",{"type":998,"value":12736},": The + operator creates a new tuple, originals remain unchanged",{"type":993,"tag":1546,"props":12738,"children":12739},{},[12740,12741,12745],{"type":998,"value":12700},{"type":993,"tag":1536,"props":12742,"children":12743},{},[12744],{"type":998,"value":11913},{"type":998,"value":12746},": This is the easiest way to combine two tuples",{"type":993,"tag":1507,"props":12748,"children":12750},{"id":12749},"test-your-knowledge",[12751],{"type":998,"value":12752},"Test Your Knowledge",{"type":993,"tag":1001,"props":12754,"children":12755},{},[12756],{"type":998,"value":12757},"Test what you've learned about merging tuples in Python:",{"type":993,"tag":12759,"props":12760,"children":12764},"redirect-button",{"icon":12761,"label":12762,"url":12763},"pi pi-send","Take Quiz","/tutorial-quiz/python/merging-tuples",[],{"type":993,"tag":1507,"props":12766,"children":12768},{"id":12767},"whats-next",[12769],{"type":998,"value":12770},"What's Next?",{"type":993,"tag":1001,"props":12772,"children":12773},{},[12774],{"type":998,"value":12775},"Now that you understand tuple merging, you're ready to learn about comprehensive tuple operations including built-in functions, methods, and advanced techniques for working with tuple data effectively.",{"type":993,"tag":1001,"props":12777,"children":12778},{},[12779,12781,12785],{"type":998,"value":12780},"Ready to continue? Check out our lesson on ",{"type":993,"tag":12104,"props":12782,"children":12783},{"href":434},[12784],{"type":998,"value":435},{"type":998,"value":12786},".",{"type":993,"tag":12788,"props":12789,"children":12790},"style",{},[12791],{"type":998,"value":12792},"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":12794},[12795,12800,12805,12810,12814,12818,12821,12822],{"id":1509,"depth":27,"text":1512,"children":12796},[12797,12798,12799],{"id":1633,"depth":36,"text":1636},{"id":2174,"depth":36,"text":2177},{"id":2826,"depth":36,"text":2829},{"id":3430,"depth":27,"text":3433,"children":12801},[12802,12803,12804],{"id":3535,"depth":36,"text":3538},{"id":4097,"depth":36,"text":2829},{"id":4806,"depth":36,"text":4809},{"id":5653,"depth":27,"text":5656,"children":12806},[12807,12808,12809],{"id":5757,"depth":36,"text":5760},{"id":6445,"depth":36,"text":6448},{"id":7225,"depth":36,"text":7228},{"id":8531,"depth":27,"text":8534,"children":12811},[12812,12813],{"id":8636,"depth":36,"text":8639},{"id":9468,"depth":36,"text":9471},{"id":10250,"depth":27,"text":10253,"children":12815},[12816,12817],{"id":10354,"depth":36,"text":10357},{"id":11098,"depth":36,"text":11101},{"id":11842,"depth":27,"text":11845,"children":12819},[12820],{"id":12409,"depth":36,"text":12412},{"id":12749,"depth":27,"text":12752},{"id":12767,"depth":27,"text":12770},1782373739544]