[{"data":1,"prerenderedAt":9111},["ShallowReactive",2],{"tutorials-python":3,"category-items-python":987,"content-/python/nested-loops":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},"/python/python-lists","Python Lists","Learn about Python lists, one of the most important and versatile data structures for storing and organizing collections of data","python-lists",29,"content:python:29.python-lists.md","python/29.python-lists.md","python/29.python-lists",[279,288,297,306,315,324,333,342,351,360],{"_path":280,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":281,"description":282,"slug":283,"parentId":270,"order":284,"_type":15,"_id":285,"_source":17,"_file":286,"_stem":287,"_extension":20},"/python/creating-lists","Creating Lists","Learn different methods to create and initialize Python lists, from simple literals to advanced techniques","creating-lists",30,"content:python:30.creating-lists.md","python/30.creating-lists.md","python/30.creating-lists",{"_path":289,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":290,"description":291,"slug":292,"parentId":270,"order":293,"_type":15,"_id":294,"_source":17,"_file":295,"_stem":296,"_extension":20},"/python/reading-list-data","Reading List Data","Master techniques for accessing and retrieving data from Python lists using indexing, slicing, and built-in methods","reading-list-data",31,"content:python:31.reading-list-data.md","python/31.reading-list-data.md","python/31.reading-list-data",{"_path":298,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":299,"description":300,"slug":301,"parentId":270,"order":302,"_type":15,"_id":303,"_source":17,"_file":304,"_stem":305,"_extension":20},"/python/modifying-lists","Modifying Lists","Learn how to change, update, and modify existing elements in Python lists using indexing and various methods","modifying-lists",32,"content:python:32.modifying-lists.md","python/32.modifying-lists.md","python/32.modifying-lists",{"_path":307,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":308,"description":309,"slug":310,"parentId":270,"order":311,"_type":15,"_id":312,"_source":17,"_file":313,"_stem":314,"_extension":20},"/python/adding-to-lists","Adding to Lists","Learn various methods to add elements to Python lists including append, insert, extend, and concatenation techniques","adding-to-lists",33,"content:python:33.adding-to-lists.md","python/33.adding-to-lists.md","python/33.adding-to-lists",{"_path":316,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":317,"description":318,"slug":319,"parentId":270,"order":320,"_type":15,"_id":321,"_source":17,"_file":322,"_stem":323,"_extension":20},"/python/removing-from-lists","Removing from Lists","Learn different methods to remove and delete elements from Python lists including remove, pop, del, and clear","removing-from-lists",34,"content:python:34.removing-from-lists.md","python/34.removing-from-lists.md","python/34.removing-from-lists",{"_path":325,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":326,"description":327,"slug":328,"parentId":270,"order":329,"_type":15,"_id":330,"_source":17,"_file":331,"_stem":332,"_extension":20},"/python/looping-through-lists","Looping Through Lists","Learn different ways to iterate through Python lists using for loops, while loops, enumerate, and other iteration techniques","looping-through-lists",35,"content:python:35.looping-through-lists.md","python/35.looping-through-lists.md","python/35.looping-through-lists",{"_path":334,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":335,"description":336,"slug":337,"parentId":270,"order":338,"_type":15,"_id":339,"_source":17,"_file":340,"_stem":341,"_extension":20},"/python/list-shortcuts","List Shortcuts","Learn powerful Python list shortcuts including list comprehensions, slicing tricks, and built-in functions for efficient list operations","list-shortcuts",36,"content:python:36.list-shortcuts.md","python/36.list-shortcuts.md","python/36.list-shortcuts",{"_path":343,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":344,"description":345,"slug":346,"parentId":270,"order":347,"_type":15,"_id":348,"_source":17,"_file":349,"_stem":350,"_extension":20},"/python/organizing-lists","Organizing Lists","Learn how to sort, reverse, and organize Python lists using built-in methods and custom sorting techniques","organizing-lists",37,"content:python:37.organizing-lists.md","python/37.organizing-lists.md","python/37.organizing-lists",{"_path":352,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":353,"description":354,"slug":355,"parentId":270,"order":356,"_type":15,"_id":357,"_source":17,"_file":358,"_stem":359,"_extension":20},"/python/combining-lists","Combining Lists","Learn various techniques to combine, merge, and join Python lists including concatenation, zipping, and advanced merging strategies","combining-lists",38,"content:python:38.combining-lists.md","python/38.combining-lists.md","python/38.combining-lists",{"_path":361,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":362,"description":363,"slug":364,"parentId":270,"order":365,"_type":15,"_id":366,"_source":17,"_file":367,"_stem":368,"_extension":20},"/python/essential-list-tools","Essential List Tools","Master powerful built-in functions and advanced techniques for efficient Python list manipulation and data processing","essential-list-tools",39,"content:python:39.essential-list-tools.md","python/39.essential-list-tools.md","python/39.essential-list-tools",{"_path":370,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":371,"description":372,"slug":373,"order":374,"isParent":13,"icon":14,"_type":15,"_id":375,"_source":17,"_file":376,"_stem":377,"_extension":20,"children":378},"/python/python-tuples","Python Tuples","Master Python tuples - immutable sequences perfect for storing related data that shouldn't change. Learn creation, access, and manipulation techniques.","python-tuples",40,"content:python:40.python-tuples.md","python/40.python-tuples.md","python/40.python-tuples",[379,388,397,406,415,424,433],{"_path":380,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":381,"description":382,"slug":383,"parentId":370,"order":384,"_type":15,"_id":385,"_source":17,"_file":386,"_stem":387,"_extension":20},"/python/creating-tuples","Creating Tuples","Learn different ways to create Python tuples, from basic syntax to advanced techniques. Master tuple initialization and understand when to use tuples.","creating-tuples",41,"content:python:41.creating-tuples.md","python/41.creating-tuples.md","python/41.creating-tuples",{"_path":389,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":390,"description":391,"slug":392,"parentId":370,"order":393,"_type":15,"_id":394,"_source":17,"_file":395,"_stem":396,"_extension":20},"/python/reading-tuple-data","Reading Tuple Data","Master accessing tuple elements through indexing, slicing, and searching. Learn efficient patterns for reading and working with tuple data.","reading-tuple-data",42,"content:python:42.reading-tuple-data.md","python/42.reading-tuple-data.md","python/42.reading-tuple-data",{"_path":398,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":399,"description":400,"slug":401,"parentId":370,"order":402,"_type":15,"_id":403,"_source":17,"_file":404,"_stem":405,"_extension":20},"/python/changing-tuples","Changing Tuples","Understand tuple immutability and learn techniques for working with unchangeable data. Master creating modified tuple versions and handling immutable constraints.","changing-tuples",43,"content:python:43.changing-tuples.md","python/43.changing-tuples.md","python/43.changing-tuples",{"_path":407,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":408,"description":409,"slug":410,"parentId":370,"order":411,"_type":15,"_id":412,"_source":17,"_file":413,"_stem":414,"_extension":20},"/python/tuple-unpacking","Tuple Unpacking","Master tuple unpacking for elegant variable assignment, function returns, and data extraction. Learn Python's powerful unpacking syntax and patterns.","tuple-unpacking",44,"content:python:44.tuple-unpacking.md","python/44.tuple-unpacking.md","python/44.tuple-unpacking",{"_path":416,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":417,"description":418,"slug":419,"parentId":370,"order":420,"_type":15,"_id":421,"_source":17,"_file":422,"_stem":423,"_extension":20},"/python/iterating-tuples","Iterating Tuples","Master tuple iteration techniques for processing sequence data. Learn basic loops, enumerate, nested iteration, and advanced patterns for efficient data processing.","iterating-tuples",45,"content:python:45.iterating-tuples.md","python/45.iterating-tuples.md","python/45.iterating-tuples",{"_path":425,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":426,"description":427,"slug":428,"parentId":370,"order":429,"_type":15,"_id":430,"_source":17,"_file":431,"_stem":432,"_extension":20},"/python/merging-tuples","Merging Tuples","Learn techniques for combining and merging tuples to create larger data structures. Master concatenation, joining multiple tuples, and advanced merging patterns.","merging-tuples",46,"content:python:46.merging-tuples.md","python/46.merging-tuples.md","python/46.merging-tuples",{"_path":434,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":435,"description":436,"slug":437,"parentId":370,"order":438,"_type":15,"_id":439,"_source":17,"_file":440,"_stem":441,"_extension":20},"/python/tuple-operations","Tuple Operations","Master comprehensive tuple operations including built-in functions, mathematical operations, comparisons, and advanced techniques for efficient tuple manipulation.","tuple-operations",47,"content:python:47.tuple-operations.md","python/47.tuple-operations.md","python/47.tuple-operations",{"_path":443,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":444,"description":445,"slug":446,"order":447,"isParent":13,"icon":14,"_type":15,"_id":448,"_source":17,"_file":449,"_stem":450,"_extension":20,"children":451},"/python/python-sets","Python Sets","Discover Python sets - unique collections that automatically eliminate duplicates and provide powerful mathematical operations for data filtering and analysis.","python-sets",48,"content:python:48.python-sets.md","python/48.python-sets.md","python/48.python-sets",[452,461,470,479,488,497,506],{"_path":453,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":454,"description":455,"slug":456,"parentId":443,"order":457,"_type":15,"_id":458,"_source":17,"_file":459,"_stem":460,"_extension":20},"/python/creating-sets","Creating Sets","Learn multiple ways to create sets in Python including literal syntax, set() function, and set comprehensions. Master set creation from different data sources.","creating-sets",49,"content:python:49.creating-sets.md","python/49.creating-sets.md","python/49.creating-sets",{"_path":462,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":463,"description":464,"slug":465,"parentId":443,"order":466,"_type":15,"_id":467,"_source":17,"_file":468,"_stem":469,"_extension":20},"/python/reading-set-data","Reading Set Data","Learn how to access and examine set data in Python including membership testing, iteration, size checking, and converting sets to other data types.","reading-set-data",50,"content:python:50.reading-set-data.md","python/50.reading-set-data.md","python/50.reading-set-data",{"_path":471,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":472,"description":473,"slug":474,"parentId":443,"order":475,"_type":15,"_id":476,"_source":17,"_file":477,"_stem":478,"_extension":20},"/python/adding-to-sets","Adding to Sets","Learn how to add elements to sets in Python using add(), update(), and union operations. Master growing sets dynamically with single items and multiple elements.","adding-to-sets",51,"content:python:51.adding-to-sets.md","python/51.adding-to-sets.md","python/51.adding-to-sets",{"_path":480,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":481,"description":482,"slug":483,"parentId":443,"order":484,"_type":15,"_id":485,"_source":17,"_file":486,"_stem":487,"_extension":20},"/python/removing-from-sets","Removing from Sets","Learn how to remove elements from Python sets using different methods like remove(), discard(), pop(), and clear()","removing-from-sets",52,"content:python:52.removing-from-sets.md","python/52.removing-from-sets.md","python/52.removing-from-sets",{"_path":489,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":490,"description":491,"slug":492,"parentId":443,"order":493,"_type":15,"_id":494,"_source":17,"_file":495,"_stem":496,"_extension":20},"/python/iterating-sets","Iterating Sets","Learn different ways to iterate through Python sets using for loops, comprehensions, and built-in functions","iterating-sets",53,"content:python:53.iterating-sets.md","python/53.iterating-sets.md","python/53.iterating-sets",{"_path":498,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":499,"description":500,"slug":501,"parentId":443,"order":502,"_type":15,"_id":503,"_source":17,"_file":504,"_stem":505,"_extension":20},"/python/combining-sets","Combining Sets","Learn how to combine Python sets using union, intersection, difference, and other set operations","combining-sets",54,"content:python:54.combining-sets.md","python/54.combining-sets.md","python/54.combining-sets",{"_path":507,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":508,"description":509,"slug":510,"parentId":443,"order":511,"_type":15,"_id":512,"_source":17,"_file":513,"_stem":514,"_extension":20},"/python/set-operations","Set Operations","Learn advanced Python set operations including comparisons, subsets, supersets, and mathematical set relationships","set-operations",55,"content:python:55.set-operations.md","python/55.set-operations.md","python/55.set-operations",{"_path":516,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":517,"description":518,"slug":519,"order":520,"isParent":13,"icon":14,"_type":15,"_id":521,"_source":17,"_file":522,"_stem":523,"_extension":20,"children":524},"/python/python-dictionaries","Python Dictionaries","Learn about Python dictionaries - key-value data structures for storing and organizing related information","python-dictionaries",56,"content:python:56.python-dictionaries.md","python/56.python-dictionaries.md","python/56.python-dictionaries",[525,534,543,552,561,570,579,588,597],{"_path":526,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":527,"description":528,"slug":529,"parentId":516,"order":530,"_type":15,"_id":531,"_source":17,"_file":532,"_stem":533,"_extension":20},"/python/creating-dictionaries","Creating Dictionaries","Learn different methods to create Python dictionaries using literals, constructors, and comprehensions","creating-dictionaries",57,"content:python:57.creating-dictionaries.md","python/57.creating-dictionaries.md","python/57.creating-dictionaries",{"_path":535,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":536,"description":537,"slug":538,"parentId":516,"order":539,"_type":15,"_id":540,"_source":17,"_file":541,"_stem":542,"_extension":20},"/python/getting-dictionary-values","Getting Dictionary Values","Learn safe and efficient methods to retrieve data from Python dictionaries using various access techniques","getting-dictionary-values",58,"content:python:58.getting-dictionary-values.md","python/58.getting-dictionary-values.md","python/58.getting-dictionary-values",{"_path":544,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":545,"description":546,"slug":547,"parentId":516,"order":548,"_type":15,"_id":549,"_source":17,"_file":550,"_stem":551,"_extension":20},"/python/updating-dictionaries","Updating Dictionaries","Learn how to modify and maintain Python dictionary data using various update methods and techniques","updating-dictionaries",59,"content:python:59.updating-dictionaries.md","python/59.updating-dictionaries.md","python/59.updating-dictionaries",{"_path":553,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":554,"description":555,"slug":556,"parentId":516,"order":557,"_type":15,"_id":558,"_source":17,"_file":559,"_stem":560,"_extension":20},"/python/adding-dictionary-items","Adding Dictionary Items","Learn effective techniques for adding new items to Python dictionaries with various methods and best practices","adding-dictionary-items",60,"content:python:60.adding-dictionary-items.md","python/60.adding-dictionary-items.md","python/60.adding-dictionary-items",{"_path":562,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":563,"description":564,"slug":565,"parentId":516,"order":566,"_type":15,"_id":567,"_source":17,"_file":568,"_stem":569,"_extension":20},"/python/deleting-dictionary-items","Deleting Dictionary Items","Master safe and efficient techniques for removing items from Python dictionaries with various methods and error handling","deleting-dictionary-items",61,"content:python:61.deleting-dictionary-items.md","python/61.deleting-dictionary-items.md","python/61.deleting-dictionary-items",{"_path":571,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":572,"description":573,"slug":574,"parentId":516,"order":575,"_type":15,"_id":576,"_source":17,"_file":577,"_stem":578,"_extension":20},"/python/looping-dictionaries","Looping Dictionaries","Learn efficient techniques for iterating through Python dictionaries using keys, values, and items","looping-dictionaries",62,"content:python:62.looping-dictionaries.md","python/62.looping-dictionaries.md","python/62.looping-dictionaries",{"_path":580,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":581,"description":582,"slug":583,"parentId":516,"order":584,"_type":15,"_id":585,"_source":17,"_file":586,"_stem":587,"_extension":20},"/python/dictionary-copies","Dictionary Copies","Learn safe techniques for duplicating Python dictionaries using shallow and deep copy methods","dictionary-copies",63,"content:python:63.dictionary-copies.md","python/63.dictionary-copies.md","python/63.dictionary-copies",{"_path":589,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":590,"description":591,"slug":592,"parentId":516,"order":593,"_type":15,"_id":594,"_source":17,"_file":595,"_stem":596,"_extension":20},"/python/multi-level-dictionaries","Multi-level Dictionaries","Master working with nested Python dictionaries for complex data structures and hierarchical information","multi-level-dictionaries",64,"content:python:64.multi-level-dictionaries.md","python/64.multi-level-dictionaries.md","python/64.multi-level-dictionaries",{"_path":598,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":599,"description":600,"slug":601,"parentId":516,"order":602,"_type":15,"_id":603,"_source":17,"_file":604,"_stem":605,"_extension":20},"/python/dictionary-tools","Dictionary Tools","Explore powerful built-in functions and advanced techniques for efficient Python dictionary manipulation and analysis","dictionary-tools",65,"content:python:65.dictionary-tools.md","python/65.dictionary-tools.md","python/65.dictionary-tools",{"_path":607,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":608,"description":609,"slug":610,"order":611,"isParent":13,"icon":14,"_type":15,"_id":612,"_source":17,"_file":613,"_stem":614,"_extension":20,"children":615},"/python/python-functions","Python Functions","Learn how to create and use Python functions to organize code into reusable, modular components that make programs more efficient and maintainable","python-functions",66,"content:python:66.python-functions.md","python/66.python-functions.md","python/66.python-functions",[616,625,634,643,652,661],{"_path":617,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":618,"description":619,"slug":620,"parentId":607,"order":621,"_type":15,"_id":622,"_source":17,"_file":623,"_stem":624,"_extension":20},"/python/function-basics","Function Basics","Learn the fundamentals of creating and using Python functions to organize code into reusable, modular components","function-basics",67,"content:python:67.function-basics.md","python/67.function-basics.md","python/67.function-basics",{"_path":626,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":627,"description":628,"slug":629,"parentId":607,"order":630,"_type":15,"_id":631,"_source":17,"_file":632,"_stem":633,"_extension":20},"/python/function-parameters","Function Parameters","Master different types of Python function parameters including positional, keyword, default, and variable-length arguments","function-parameters",68,"content:python:68.function-parameters.md","python/68.function-parameters.md","python/68.function-parameters",{"_path":635,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":636,"description":637,"slug":638,"parentId":607,"order":639,"_type":15,"_id":640,"_source":17,"_file":641,"_stem":642,"_extension":20},"/python/returning-values","Returning Values","Learn different ways Python functions return data including single values, multiple values, and conditional returns","returning-values",69,"content:python:69.returning-values.md","python/69.returning-values.md","python/69.returning-values",{"_path":644,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":645,"description":646,"slug":647,"parentId":607,"order":648,"_type":15,"_id":649,"_source":17,"_file":650,"_stem":651,"_extension":20},"/python/variable-scope","Variable Scope","Understand Python variable scope including local, global, and nonlocal variables and how they affect function behavior","variable-scope",70,"content:python:70.variable-scope.md","python/70.variable-scope.md","python/70.variable-scope",{"_path":653,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":654,"description":655,"slug":656,"parentId":607,"order":657,"_type":15,"_id":658,"_source":17,"_file":659,"_stem":660,"_extension":20},"/python/anonymous-functions","Anonymous Functions","Learn to create and use Python lambda functions for concise, inline function definitions and functional programming patterns","anonymous-functions",71,"content:python:71.anonymous-functions.md","python/71.anonymous-functions.md","python/71.anonymous-functions",{"_path":662,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":663,"description":664,"slug":665,"parentId":607,"order":666,"_type":15,"_id":667,"_source":17,"_file":668,"_stem":669,"_extension":20},"/python/function-recursion","Function Recursion","Master recursive functions in Python by learning how functions can call themselves to solve complex problems with elegant, mathematical solutions","function-recursion",72,"content:python:72.function-recursion.md","python/72.function-recursion.md","python/72.function-recursion",{"_path":671,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":672,"description":673,"slug":674,"order":675,"isParent":13,"icon":14,"_type":15,"_id":676,"_source":17,"_file":677,"_stem":678,"_extension":20,"children":679},"/python/object-programming","Object Programming","Learn object-oriented programming (OOP) in Python - create classes, objects, and methods to build organized, reusable code","object-programming",73,"content:python:73.object-programming.md","python/73.object-programming.md","python/73.object-programming",[680,689,698,707,716,725],{"_path":681,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":682,"description":683,"slug":684,"parentId":671,"order":685,"_type":15,"_id":686,"_source":17,"_file":687,"_stem":688,"_extension":20},"/python/classes-and-objects","Classes and Objects","Learn to create Python classes and objects - the foundation of object-oriented programming for building reusable, organized code","classes-and-objects",74,"content:python:74.classes-and-objects.md","python/74.classes-and-objects.md","python/74.classes-and-objects",{"_path":690,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":691,"description":692,"slug":693,"parentId":671,"order":694,"_type":15,"_id":695,"_source":17,"_file":696,"_stem":697,"_extension":20},"/python/object-methods","Object Methods","Master object methods in Python - learn to define behaviors, work with parameters, and create interactive objects that respond to actions","object-methods",75,"content:python:75.object-methods.md","python/75.object-methods.md","python/75.object-methods",{"_path":699,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":700,"description":701,"slug":702,"parentId":671,"order":703,"_type":15,"_id":704,"_source":17,"_file":705,"_stem":706,"_extension":20},"/python/class-inheritance","Class Inheritance","Learn Python class inheritance - create specialized classes that build upon existing functionality while adding new features and behaviors","class-inheritance",76,"content:python:76.class-inheritance.md","python/76.class-inheritance.md","python/76.class-inheritance",{"_path":708,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":709,"description":710,"slug":711,"parentId":671,"order":712,"_type":15,"_id":713,"_source":17,"_file":714,"_stem":715,"_extension":20},"/python/method-overriding","Method Overriding","Master method overriding in Python - learn to customize inherited methods, use super(), and create specialized behaviors while maintaining inheritance benefits","method-overriding",77,"content:python:77.method-overriding.md","python/77.method-overriding.md","python/77.method-overriding",{"_path":717,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":718,"description":719,"slug":720,"parentId":671,"order":721,"_type":15,"_id":722,"_source":17,"_file":723,"_stem":724,"_extension":20},"/python/variable-visibility","Variable Visibility","Master Python variable visibility - learn public, protected, and private attributes to control access and create well-encapsulated classes","variable-visibility",78,"content:python:78.variable-visibility.md","python/78.variable-visibility.md","python/78.variable-visibility",{"_path":726,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":727,"description":728,"slug":729,"parentId":671,"order":730,"_type":15,"_id":731,"_source":17,"_file":732,"_stem":733,"_extension":20},"/python/special-methods","Special Methods","Master Python special methods (magic methods) - learn to implement __str__, __len__, __eq__ and more to make your classes work seamlessly with Python's built-in functions","special-methods",79,"content:python:79.special-methods.md","python/79.special-methods.md","python/79.special-methods",{"_path":735,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":736,"description":737,"slug":738,"order":739,"isParent":13,"icon":14,"_type":15,"_id":740,"_source":17,"_file":741,"_stem":742,"_extension":20,"children":743},"/python/advanced-concepts","Advanced Concepts","Master advanced Python programming concepts - work with dates, mathematics, JSON data, pattern matching, and more sophisticated programming techniques","advanced-concepts",80,"content:python:80.advanced-concepts.md","python/80.advanced-concepts.md","python/80.advanced-concepts",[744,753,762,771,780,789,798],{"_path":745,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":746,"description":747,"slug":748,"parentId":735,"order":749,"_type":15,"_id":750,"_source":17,"_file":751,"_stem":752,"_extension":20},"/python/working-with-dates","Working with Dates","Master Python date and time handling - work with datetime objects, format dates, calculate durations, and build time-aware applications","working-with-dates",81,"content:python:81.working-with-dates.md","python/81.working-with-dates.md","python/81.working-with-dates",{"_path":754,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":755,"description":756,"slug":757,"parentId":735,"order":758,"_type":15,"_id":759,"_source":17,"_file":760,"_stem":761,"_extension":20},"/python/mathematical-operations","Mathematical Operations","Master Python mathematical computing - use math functions, perform statistical calculations, and implement scientific computing for data analysis and problem-solving","mathematical-operations",82,"content:python:82.mathematical-operations.md","python/82.mathematical-operations.md","python/82.mathematical-operations",{"_path":763,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":764,"description":765,"slug":766,"parentId":735,"order":767,"_type":15,"_id":768,"_source":17,"_file":769,"_stem":770,"_extension":20},"/python/json-data","JSON Data","Master JSON data handling in Python - serialize and deserialize data, work with APIs, manage configuration files, and exchange data between applications","json-data",83,"content:python:83.json-data.md","python/83.json-data.md","python/83.json-data",{"_path":772,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":773,"description":774,"slug":775,"parentId":735,"order":776,"_type":15,"_id":777,"_source":17,"_file":778,"_stem":779,"_extension":20},"/python/package-management","Package Management","Master Python package management with pip and virtual environments - install libraries, manage dependencies, create isolated environments, and distribute packages professionally","package-management",85,"content:python:85.package-management.md","python/85.package-management.md","python/85.package-management",{"_path":781,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":782,"description":783,"slug":784,"parentId":735,"order":785,"_type":15,"_id":786,"_source":17,"_file":787,"_stem":788,"_extension":20},"/python/error-handling","Error Handling","Master Python error handling with try/except blocks, exception types, custom exceptions, debugging techniques, and best practices for robust application development","error-handling",86,"content:python:86.error-handling.md","python/86.error-handling.md","python/86.error-handling",{"_path":790,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":791,"description":792,"slug":793,"parentId":735,"order":794,"_type":15,"_id":795,"_source":17,"_file":796,"_stem":797,"_extension":20},"/python/getting-user-input","Getting User Input","Master user input handling in Python with input validation, data type conversion, interactive programs, and command-line interfaces for engaging user experiences","getting-user-input",87,"content:python:87.getting-user-input.md","python/87.getting-user-input.md","python/87.getting-user-input",{"_path":799,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":800,"description":801,"slug":802,"parentId":735,"order":803,"_type":15,"_id":804,"_source":17,"_file":805,"_stem":806,"_extension":20},"/python/text-formatting","Text Formatting","Master Python text formatting with f-strings, format methods, alignment, number formatting, and advanced techniques for professional, readable output","text-formatting",88,"content:python:88.text-formatting.md","python/88.text-formatting.md","python/88.text-formatting",{"_path":808,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":809,"description":810,"slug":811,"order":812,"isParent":13,"icon":14,"_type":15,"_id":813,"_source":17,"_file":814,"_stem":815,"_extension":20,"children":816},"/python/file-operations","File Operations","Master Python file handling with reading, writing, and managing files for data persistence and real-world applications","file-operations",89,"content:python:89.file-operations.md","python/89.file-operations.md","python/89.file-operations",[817,826,835,844],{"_path":818,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":819,"description":820,"slug":821,"parentId":808,"order":822,"_type":15,"_id":823,"_source":17,"_file":824,"_stem":825,"_extension":20},"/python/file-basics","File Basics","Learn fundamental Python file operations including opening files, understanding file modes, using context managers, and basic file handling concepts","file-basics",90,"content:python:90.file-basics.md","python/90.file-basics.md","python/90.file-basics",{"_path":827,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":828,"description":829,"slug":830,"parentId":808,"order":831,"_type":15,"_id":832,"_source":17,"_file":833,"_stem":834,"_extension":20},"/python/reading-files","Reading Files","Master Python file reading techniques including reading entire files, line-by-line processing, and handling different file formats for efficient data processing","reading-files",91,"content:python:91.reading-files.md","python/91.reading-files.md","python/91.reading-files",{"_path":836,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":837,"description":838,"slug":839,"parentId":808,"order":840,"_type":15,"_id":841,"_source":17,"_file":842,"_stem":843,"_extension":20},"/python/writing-files","Writing Files","Learn Python file writing techniques including creating new files, appending content, updating existing files, and saving different data formats safely","writing-files",92,"content:python:92.writing-files.md","python/92.writing-files.md","python/92.writing-files",{"_path":845,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":846,"description":847,"slug":848,"parentId":808,"order":849,"_type":15,"_id":850,"_source":17,"_file":851,"_stem":852,"_extension":20},"/python/file-management","File Management","Learn Python file management techniques including checking file properties, organizing files, directory operations, and implementing file system maintenance tasks","file-management",93,"content:python:93.file-management.md","python/93.file-management.md","python/93.file-management",{"_path":854,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":855,"description":856,"slug":857,"order":858,"isParent":13,"icon":14,"_type":15,"_id":859,"_source":17,"_file":860,"_stem":861,"_extension":20,"children":862},"/python/code-organization","Code Organization","Master Python code organization with modules, built-in libraries, and path management for creating maintainable and reusable applications","code-organization",94,"content:python:94.code-organization.md","python/94.code-organization.md","python/94.code-organization",[863,872,881],{"_path":864,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":865,"description":866,"slug":867,"parentId":854,"order":868,"_type":15,"_id":869,"_source":17,"_file":870,"_stem":871,"_extension":20},"/python/creating-modules","Creating Modules","Learn how to create custom Python modules, organize functions and classes, write reusable code components, and design effective module structures","creating-modules",95,"content:python:95.creating-modules.md","python/95.creating-modules.md","python/95.creating-modules",{"_path":873,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":874,"description":875,"slug":876,"parentId":854,"order":877,"_type":15,"_id":878,"_source":17,"_file":879,"_stem":880,"_extension":20},"/python/using-built-in-modules","Using Built-in Modules","Discover Python's extensive standard library and learn to effectively use built-in modules for common programming tasks, data processing, and system operations","using-built-in-modules",96,"content:python:96.using-built-in-modules.md","python/96.using-built-in-modules.md","python/96.using-built-in-modules",{"_path":882,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":883,"description":884,"slug":885,"parentId":854,"order":886,"_type":15,"_id":887,"_source":17,"_file":888,"_stem":889,"_extension":20},"/python/module-paths","Module Paths","Understand Python's module search system, manage import paths, work with packages, and organize larger projects with proper module path management","module-paths",97,"content:python:97.module-paths.md","python/97.module-paths.md","python/97.module-paths",{"_path":891,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":892,"description":893,"slug":894,"order":895,"isParent":13,"icon":14,"_type":15,"_id":896,"_source":17,"_file":897,"_stem":898,"_extension":20,"children":899,"expanded":13},"/python/reference-materials","Reference Materials","Comprehensive Python reference materials including reserved words, built-in functions, and operation guides for quick lookup and development support","reference-materials",98,"content:python:98.reference-materials.md","python/98.reference-materials.md","python/98.reference-materials",[900,909,918,927,936,945,953,961,970],{"_path":901,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":902,"description":903,"slug":904,"parentId":891,"order":905,"_type":15,"_id":906,"_source":17,"_file":907,"_stem":908,"_extension":20},"/python/reserved-words","Reserved Words","Complete reference of Python keywords and reserved words with descriptions, usage examples, and syntax guidelines","reserved-words",99,"content:python:99.reserved-words.md","python/99.reserved-words.md","python/99.reserved-words",{"_path":910,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":911,"description":912,"slug":913,"parentId":891,"order":914,"_type":15,"_id":915,"_source":17,"_file":916,"_stem":917,"_extension":20},"/python/built-in-functions","Built-in Functions","Comprehensive reference of Python's built-in functions with parameters, return values, and practical usage examples","built-in-functions",100,"content:python:100.built-in-functions.md","python/100.built-in-functions.md","python/100.built-in-functions",{"_path":919,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":920,"description":921,"slug":922,"parentId":891,"order":923,"_type":15,"_id":924,"_source":17,"_file":925,"_stem":926,"_extension":20},"/python/string-operations","String Operations","Complete reference of Python string methods, operations, and formatting techniques with examples and use cases","string-operations",101,"content:python:101.string-operations.md","python/101.string-operations.md","python/101.string-operations",{"_path":928,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":929,"description":930,"slug":931,"parentId":891,"order":932,"_type":15,"_id":933,"_source":17,"_file":934,"_stem":935,"_extension":20},"/python/list-operations","List Operations","Complete reference of Python list methods, operations, and manipulation techniques with examples and performance notes","list-operations",102,"content:python:102.list-operations.md","python/102.list-operations.md","python/102.list-operations",{"_path":937,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":938,"description":939,"slug":940,"parentId":891,"order":941,"_type":15,"_id":942,"_source":17,"_file":943,"_stem":944,"_extension":20},"/python/dictionary-operations","Dictionary Operations","Complete reference of Python dictionary methods, operations, and manipulation techniques with examples and use cases","dictionary-operations",103,"content:python:103.dictionary-operations.md","python/103.dictionary-operations.md","python/103.dictionary-operations",{"_path":946,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":435,"description":947,"slug":948,"parentId":891,"order":949,"_type":15,"_id":950,"_source":17,"_file":951,"_stem":952,"_extension":20},"/python/tuple-methods","Complete reference of Python tuple operations, methods, and techniques with examples and use cases","tuple-methods",104,"content:python:104.tuple-methods.md","python/104.tuple-methods.md","python/104.tuple-methods",{"_path":954,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":508,"description":955,"slug":956,"parentId":891,"order":957,"_type":15,"_id":958,"_source":17,"_file":959,"_stem":960,"_extension":20},"/python/set-methods","Complete reference of Python set operations, methods, and mathematical set operations with examples and use cases","set-methods",105,"content:python:105.set-methods.md","python/105.set-methods.md","python/105.set-methods",{"_path":962,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":963,"description":964,"slug":965,"parentId":891,"order":966,"_type":15,"_id":967,"_source":17,"_file":968,"_stem":969,"_extension":20},"/python/file-operations-reference","File Operations Reference","Complete reference of Python file operations, modes, methods, and file handling techniques with examples","file-operations-reference",106,"content:python:106.file-operations-reference.md","python/106.file-operations-reference.md","python/106.file-operations-reference",{"_path":971,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":972,"description":973,"slug":974,"parentId":891,"order":975,"_type":15,"_id":976,"_source":17,"_file":977,"_stem":978,"_extension":20},"/python/error-types","Error Types","Complete reference of Python exception types, error handling patterns, and debugging techniques with examples","error-types",107,"content:python:107.error-types.md","python/107.error-types.md","python/107.error-types",{"_path":980,"_dir":8,"_draft":7,"_partial":7,"_locale":8,"title":981,"description":10,"slug":982,"order":983,"icon":14,"_type":15,"_id":984,"_source":17,"_file":985,"_stem":986,"_extension":20},"/python","Introduction","python-tutorial",0,"content:python:index.md","python/index.md","python/index",[260],{"_path":261,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":262,"description":263,"slug":264,"parentId":224,"order":265,"body":989,"_type":15,"_id":266,"_source":17,"_file":267,"_stem":268,"_extension":20},{"type":990,"children":991,"toc":9070},"root",[992,999,1005,1010,1507,1514,1519,1596,1603,1608,1889,1895,1900,2225,2231,2236,2321,2327,2332,2633,2639,2644,2999,3005,3010,3250,3255,3261,3266,3367,3373,3614,3620,3625,3703,3709,3714,3867,3873,3878,4036,4042,4047,4455,4461,4466,4707,4713,4726,4803,4809,4814,5104,5110,5115,5467,5473,5478,5773,5779,5784,5891,5897,5902,6167,6173,6178,6484,6490,6495,6776,6782,6787,7056,7062,7067,7144,7150,7155,7468,7474,7479,7555,7561,7566,8268,8274,8279,8799,8805,8810,8983,8988,8994,8999,9004,9010,9041,9053,9064],{"type":993,"tag":994,"props":995,"children":996},"element","h1",{"id":264},[997],{"type":998,"value":262},"text",{"type":993,"tag":1000,"props":1001,"children":1002},"p",{},[1003],{"type":998,"value":1004},"Nested loops are loops placed inside other loops, creating powerful structures for processing multi-dimensional data, generating patterns, and handling complex iteration scenarios. When you have data organized in rows and columns, hierarchical structures, or need to compare every item with every other item, nested loops provide the perfect solution.",{"type":993,"tag":1000,"props":1006,"children":1007},{},[1008],{"type":998,"value":1009},"Understanding nested loops is essential for working with matrices, tables, grids, and any data structure that has multiple levels of organization. They unlock the ability to process complex data relationships efficiently.",{"type":993,"tag":1011,"props":1012,"children":1013},"code-try",{},[1014],{"type":993,"tag":1015,"props":1016,"children":1019},"pre",{"className":1017,"code":1018,"language":6,"meta":8,"style":8},"language-python shiki shiki-themes github-light github-dark","# Basic nested loop examples\n# Creating a multiplication table\nprint(\"Multiplication Table:\")\nfor i in range(1, 4):\n    for j in range(1, 4):\n        product = i * j\n        print(f\"{i} x {j} = {product}\")\n    print()  # Empty line after each row\n\n# Processing a matrix\nmatrix = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]\nprint(\"Matrix elements:\")\nfor row in matrix:\n    for element in row:\n        print(element, end=\" \")\n    print()  # New line after each row\n",[1020],{"type":993,"tag":1021,"props":1022,"children":1023},"code",{"__ignoreMap":8},[1024,1035,1043,1069,1117,1158,1185,1266,1284,1292,1300,1398,1418,1439,1460,1491],{"type":993,"tag":1025,"props":1026,"children":1028},"span",{"class":1027,"line":12},"line",[1029],{"type":993,"tag":1025,"props":1030,"children":1032},{"style":1031},"--shiki-default:#6A737D;--shiki-app-dark-mode:#6A737D",[1033],{"type":998,"value":1034},"# Basic nested loop examples\n",{"type":993,"tag":1025,"props":1036,"children":1037},{"class":1027,"line":27},[1038],{"type":993,"tag":1025,"props":1039,"children":1040},{"style":1031},[1041],{"type":998,"value":1042},"# Creating a multiplication table\n",{"type":993,"tag":1025,"props":1044,"children":1045},{"class":1027,"line":36},[1046,1052,1058,1064],{"type":993,"tag":1025,"props":1047,"children":1049},{"style":1048},"--shiki-default:#005CC5;--shiki-app-dark-mode:#79B8FF",[1050],{"type":998,"value":1051},"print",{"type":993,"tag":1025,"props":1053,"children":1055},{"style":1054},"--shiki-default:#24292E;--shiki-app-dark-mode:#E1E4E8",[1056],{"type":998,"value":1057},"(",{"type":993,"tag":1025,"props":1059,"children":1061},{"style":1060},"--shiki-default:#032F62;--shiki-app-dark-mode:#9ECBFF",[1062],{"type":998,"value":1063},"\"Multiplication Table:\"",{"type":993,"tag":1025,"props":1065,"children":1066},{"style":1054},[1067],{"type":998,"value":1068},")\n",{"type":993,"tag":1025,"props":1070,"children":1071},{"class":1027,"line":45},[1072,1078,1083,1088,1093,1097,1102,1107,1112],{"type":993,"tag":1025,"props":1073,"children":1075},{"style":1074},"--shiki-default:#D73A49;--shiki-app-dark-mode:#F97583",[1076],{"type":998,"value":1077},"for",{"type":993,"tag":1025,"props":1079,"children":1080},{"style":1054},[1081],{"type":998,"value":1082}," i ",{"type":993,"tag":1025,"props":1084,"children":1085},{"style":1074},[1086],{"type":998,"value":1087},"in",{"type":993,"tag":1025,"props":1089,"children":1090},{"style":1048},[1091],{"type":998,"value":1092}," range",{"type":993,"tag":1025,"props":1094,"children":1095},{"style":1054},[1096],{"type":998,"value":1057},{"type":993,"tag":1025,"props":1098,"children":1099},{"style":1048},[1100],{"type":998,"value":1101},"1",{"type":993,"tag":1025,"props":1103,"children":1104},{"style":1054},[1105],{"type":998,"value":1106},", ",{"type":993,"tag":1025,"props":1108,"children":1109},{"style":1048},[1110],{"type":998,"value":1111},"4",{"type":993,"tag":1025,"props":1113,"children":1114},{"style":1054},[1115],{"type":998,"value":1116},"):\n",{"type":993,"tag":1025,"props":1118,"children":1119},{"class":1027,"line":54},[1120,1125,1130,1134,1138,1142,1146,1150,1154],{"type":993,"tag":1025,"props":1121,"children":1122},{"style":1074},[1123],{"type":998,"value":1124},"    for",{"type":993,"tag":1025,"props":1126,"children":1127},{"style":1054},[1128],{"type":998,"value":1129}," j ",{"type":993,"tag":1025,"props":1131,"children":1132},{"style":1074},[1133],{"type":998,"value":1087},{"type":993,"tag":1025,"props":1135,"children":1136},{"style":1048},[1137],{"type":998,"value":1092},{"type":993,"tag":1025,"props":1139,"children":1140},{"style":1054},[1141],{"type":998,"value":1057},{"type":993,"tag":1025,"props":1143,"children":1144},{"style":1048},[1145],{"type":998,"value":1101},{"type":993,"tag":1025,"props":1147,"children":1148},{"style":1054},[1149],{"type":998,"value":1106},{"type":993,"tag":1025,"props":1151,"children":1152},{"style":1048},[1153],{"type":998,"value":1111},{"type":993,"tag":1025,"props":1155,"children":1156},{"style":1054},[1157],{"type":998,"value":1116},{"type":993,"tag":1025,"props":1159,"children":1160},{"class":1027,"line":63},[1161,1166,1171,1175,1180],{"type":993,"tag":1025,"props":1162,"children":1163},{"style":1054},[1164],{"type":998,"value":1165},"        product ",{"type":993,"tag":1025,"props":1167,"children":1168},{"style":1074},[1169],{"type":998,"value":1170},"=",{"type":993,"tag":1025,"props":1172,"children":1173},{"style":1054},[1174],{"type":998,"value":1082},{"type":993,"tag":1025,"props":1176,"children":1177},{"style":1074},[1178],{"type":998,"value":1179},"*",{"type":993,"tag":1025,"props":1181,"children":1182},{"style":1054},[1183],{"type":998,"value":1184}," j\n",{"type":993,"tag":1025,"props":1186,"children":1187},{"class":1027,"line":72},[1188,1193,1197,1202,1207,1212,1217,1222,1227,1231,1236,1240,1245,1249,1254,1258,1262],{"type":993,"tag":1025,"props":1189,"children":1190},{"style":1048},[1191],{"type":998,"value":1192},"        print",{"type":993,"tag":1025,"props":1194,"children":1195},{"style":1054},[1196],{"type":998,"value":1057},{"type":993,"tag":1025,"props":1198,"children":1199},{"style":1074},[1200],{"type":998,"value":1201},"f",{"type":993,"tag":1025,"props":1203,"children":1204},{"style":1060},[1205],{"type":998,"value":1206},"\"",{"type":993,"tag":1025,"props":1208,"children":1209},{"style":1048},[1210],{"type":998,"value":1211},"{",{"type":993,"tag":1025,"props":1213,"children":1214},{"style":1054},[1215],{"type":998,"value":1216},"i",{"type":993,"tag":1025,"props":1218,"children":1219},{"style":1048},[1220],{"type":998,"value":1221},"}",{"type":993,"tag":1025,"props":1223,"children":1224},{"style":1060},[1225],{"type":998,"value":1226}," x ",{"type":993,"tag":1025,"props":1228,"children":1229},{"style":1048},[1230],{"type":998,"value":1211},{"type":993,"tag":1025,"props":1232,"children":1233},{"style":1054},[1234],{"type":998,"value":1235},"j",{"type":993,"tag":1025,"props":1237,"children":1238},{"style":1048},[1239],{"type":998,"value":1221},{"type":993,"tag":1025,"props":1241,"children":1242},{"style":1060},[1243],{"type":998,"value":1244}," = ",{"type":993,"tag":1025,"props":1246,"children":1247},{"style":1048},[1248],{"type":998,"value":1211},{"type":993,"tag":1025,"props":1250,"children":1251},{"style":1054},[1252],{"type":998,"value":1253},"product",{"type":993,"tag":1025,"props":1255,"children":1256},{"style":1048},[1257],{"type":998,"value":1221},{"type":993,"tag":1025,"props":1259,"children":1260},{"style":1060},[1261],{"type":998,"value":1206},{"type":993,"tag":1025,"props":1263,"children":1264},{"style":1054},[1265],{"type":998,"value":1068},{"type":993,"tag":1025,"props":1267,"children":1268},{"class":1027,"line":81},[1269,1274,1279],{"type":993,"tag":1025,"props":1270,"children":1271},{"style":1048},[1272],{"type":998,"value":1273},"    print",{"type":993,"tag":1025,"props":1275,"children":1276},{"style":1054},[1277],{"type":998,"value":1278},"()  ",{"type":993,"tag":1025,"props":1280,"children":1281},{"style":1031},[1282],{"type":998,"value":1283},"# Empty line after each row\n",{"type":993,"tag":1025,"props":1285,"children":1286},{"class":1027,"line":91},[1287],{"type":993,"tag":1025,"props":1288,"children":1289},{"emptyLinePlaceholder":13},[1290],{"type":998,"value":1291},"\n",{"type":993,"tag":1025,"props":1293,"children":1294},{"class":1027,"line":100},[1295],{"type":993,"tag":1025,"props":1296,"children":1297},{"style":1031},[1298],{"type":998,"value":1299},"# Processing a matrix\n",{"type":993,"tag":1025,"props":1301,"children":1302},{"class":1027,"line":109},[1303,1308,1312,1317,1321,1325,1330,1334,1339,1344,1348,1352,1357,1361,1366,1370,1375,1379,1384,1388,1393],{"type":993,"tag":1025,"props":1304,"children":1305},{"style":1054},[1306],{"type":998,"value":1307},"matrix ",{"type":993,"tag":1025,"props":1309,"children":1310},{"style":1074},[1311],{"type":998,"value":1170},{"type":993,"tag":1025,"props":1313,"children":1314},{"style":1054},[1315],{"type":998,"value":1316}," [[",{"type":993,"tag":1025,"props":1318,"children":1319},{"style":1048},[1320],{"type":998,"value":1101},{"type":993,"tag":1025,"props":1322,"children":1323},{"style":1054},[1324],{"type":998,"value":1106},{"type":993,"tag":1025,"props":1326,"children":1327},{"style":1048},[1328],{"type":998,"value":1329},"2",{"type":993,"tag":1025,"props":1331,"children":1332},{"style":1054},[1333],{"type":998,"value":1106},{"type":993,"tag":1025,"props":1335,"children":1336},{"style":1048},[1337],{"type":998,"value":1338},"3",{"type":993,"tag":1025,"props":1340,"children":1341},{"style":1054},[1342],{"type":998,"value":1343},"], [",{"type":993,"tag":1025,"props":1345,"children":1346},{"style":1048},[1347],{"type":998,"value":1111},{"type":993,"tag":1025,"props":1349,"children":1350},{"style":1054},[1351],{"type":998,"value":1106},{"type":993,"tag":1025,"props":1353,"children":1354},{"style":1048},[1355],{"type":998,"value":1356},"5",{"type":993,"tag":1025,"props":1358,"children":1359},{"style":1054},[1360],{"type":998,"value":1106},{"type":993,"tag":1025,"props":1362,"children":1363},{"style":1048},[1364],{"type":998,"value":1365},"6",{"type":993,"tag":1025,"props":1367,"children":1368},{"style":1054},[1369],{"type":998,"value":1343},{"type":993,"tag":1025,"props":1371,"children":1372},{"style":1048},[1373],{"type":998,"value":1374},"7",{"type":993,"tag":1025,"props":1376,"children":1377},{"style":1054},[1378],{"type":998,"value":1106},{"type":993,"tag":1025,"props":1380,"children":1381},{"style":1048},[1382],{"type":998,"value":1383},"8",{"type":993,"tag":1025,"props":1385,"children":1386},{"style":1054},[1387],{"type":998,"value":1106},{"type":993,"tag":1025,"props":1389,"children":1390},{"style":1048},[1391],{"type":998,"value":1392},"9",{"type":993,"tag":1025,"props":1394,"children":1395},{"style":1054},[1396],{"type":998,"value":1397},"]]\n",{"type":993,"tag":1025,"props":1399,"children":1400},{"class":1027,"line":118},[1401,1405,1409,1414],{"type":993,"tag":1025,"props":1402,"children":1403},{"style":1048},[1404],{"type":998,"value":1051},{"type":993,"tag":1025,"props":1406,"children":1407},{"style":1054},[1408],{"type":998,"value":1057},{"type":993,"tag":1025,"props":1410,"children":1411},{"style":1060},[1412],{"type":998,"value":1413},"\"Matrix elements:\"",{"type":993,"tag":1025,"props":1415,"children":1416},{"style":1054},[1417],{"type":998,"value":1068},{"type":993,"tag":1025,"props":1419,"children":1420},{"class":1027,"line":127},[1421,1425,1430,1434],{"type":993,"tag":1025,"props":1422,"children":1423},{"style":1074},[1424],{"type":998,"value":1077},{"type":993,"tag":1025,"props":1426,"children":1427},{"style":1054},[1428],{"type":998,"value":1429}," row ",{"type":993,"tag":1025,"props":1431,"children":1432},{"style":1074},[1433],{"type":998,"value":1087},{"type":993,"tag":1025,"props":1435,"children":1436},{"style":1054},[1437],{"type":998,"value":1438}," matrix:\n",{"type":993,"tag":1025,"props":1440,"children":1441},{"class":1027,"line":136},[1442,1446,1451,1455],{"type":993,"tag":1025,"props":1443,"children":1444},{"style":1074},[1445],{"type":998,"value":1124},{"type":993,"tag":1025,"props":1447,"children":1448},{"style":1054},[1449],{"type":998,"value":1450}," element ",{"type":993,"tag":1025,"props":1452,"children":1453},{"style":1074},[1454],{"type":998,"value":1087},{"type":993,"tag":1025,"props":1456,"children":1457},{"style":1054},[1458],{"type":998,"value":1459}," row:\n",{"type":993,"tag":1025,"props":1461,"children":1462},{"class":1027,"line":146},[1463,1467,1472,1478,1482,1487],{"type":993,"tag":1025,"props":1464,"children":1465},{"style":1048},[1466],{"type":998,"value":1192},{"type":993,"tag":1025,"props":1468,"children":1469},{"style":1054},[1470],{"type":998,"value":1471},"(element, ",{"type":993,"tag":1025,"props":1473,"children":1475},{"style":1474},"--shiki-default:#E36209;--shiki-app-dark-mode:#FFAB70",[1476],{"type":998,"value":1477},"end",{"type":993,"tag":1025,"props":1479,"children":1480},{"style":1074},[1481],{"type":998,"value":1170},{"type":993,"tag":1025,"props":1483,"children":1484},{"style":1060},[1485],{"type":998,"value":1486},"\" \"",{"type":993,"tag":1025,"props":1488,"children":1489},{"style":1054},[1490],{"type":998,"value":1068},{"type":993,"tag":1025,"props":1492,"children":1493},{"class":1027,"line":155},[1494,1498,1502],{"type":993,"tag":1025,"props":1495,"children":1496},{"style":1048},[1497],{"type":998,"value":1273},{"type":993,"tag":1025,"props":1499,"children":1500},{"style":1054},[1501],{"type":998,"value":1278},{"type":993,"tag":1025,"props":1503,"children":1504},{"style":1031},[1505],{"type":998,"value":1506},"# New line after each row\n",{"type":993,"tag":1508,"props":1509,"children":1511},"h2",{"id":1510},"understanding-nested-loop-execution",[1512],{"type":998,"value":1513},"Understanding Nested Loop Execution",{"type":993,"tag":1000,"props":1515,"children":1516},{},[1517],{"type":998,"value":1518},"In nested loops, the inner loop completes all its iterations for each single iteration of the outer loop. This creates a multiplicative effect where the total number of iterations equals the product of all loop ranges.",{"type":993,"tag":1520,"props":1521,"children":1525},"info-box",{"emoji":1522,"title":1523,"type":1524},"🔄","Nested Loop Execution Rules","warning",[1526,1535,1560,1568,1586],{"type":993,"tag":1000,"props":1527,"children":1528},{},[1529],{"type":993,"tag":1530,"props":1531,"children":1532},"strong",{},[1533],{"type":998,"value":1534},"Execution Pattern:",{"type":993,"tag":1536,"props":1537,"children":1538},"ul",{},[1539,1545,1550,1555],{"type":993,"tag":1540,"props":1541,"children":1542},"li",{},[1543],{"type":998,"value":1544},"Inner loop completes fully for each outer loop iteration",{"type":993,"tag":1540,"props":1546,"children":1547},{},[1548],{"type":998,"value":1549},"Total iterations = outer_count × inner_count (multiplicative)",{"type":993,"tag":1540,"props":1551,"children":1552},{},[1553],{"type":998,"value":1554},"Execution flows from outermost to innermost loop",{"type":993,"tag":1540,"props":1556,"children":1557},{},[1558],{"type":998,"value":1559},"Each nesting level adds another dimension to processing",{"type":993,"tag":1000,"props":1561,"children":1562},{},[1563],{"type":993,"tag":1530,"props":1564,"children":1565},{},[1566],{"type":998,"value":1567},"Performance Impact:",{"type":993,"tag":1536,"props":1569,"children":1570},{},[1571,1576,1581],{"type":993,"tag":1540,"props":1572,"children":1573},{},[1574],{"type":998,"value":1575},"Time complexity grows multiplicatively with nesting",{"type":993,"tag":1540,"props":1577,"children":1578},{},[1579],{"type":998,"value":1580},"3 nested loops of size 100 = 1,000,000 iterations",{"type":993,"tag":1540,"props":1582,"children":1583},{},[1584],{"type":998,"value":1585},"Memory usage can increase with nested data structures",{"type":993,"tag":1000,"props":1587,"children":1588},{},[1589,1594],{"type":993,"tag":1530,"props":1590,"children":1591},{},[1592],{"type":998,"value":1593},"Design Principle:",{"type":998,"value":1595}," Keep nesting levels reasonable (typically 2-3 maximum)",{"type":993,"tag":1597,"props":1598,"children":1600},"h3",{"id":1599},"execution-flow-visualization",[1601],{"type":998,"value":1602},"Execution Flow Visualization",{"type":993,"tag":1000,"props":1604,"children":1605},{},[1606],{"type":998,"value":1607},"Step-by-step demonstration of how nested loops execute:",{"type":993,"tag":1011,"props":1609,"children":1610},{},[1611],{"type":993,"tag":1015,"props":1612,"children":1614},{"className":1017,"code":1613,"language":6,"meta":8,"style":8},"# Nested loop execution flow\nprint(\"Execution order demonstration:\")\nfor outer in range(3):\n    print(f\"Outer loop: {outer}\")\n    for inner in range(2):\n        print(f\"  Inner loop: {inner}\")\n        print(f\"  Combination: ({outer}, {inner})\")\n    print(\"  Inner loop complete\")\nprint(\"All loops complete\")\n",[1615],{"type":993,"tag":1021,"props":1616,"children":1617},{"__ignoreMap":8},[1618,1626,1646,1678,1719,1751,1792,1849,1869],{"type":993,"tag":1025,"props":1619,"children":1620},{"class":1027,"line":12},[1621],{"type":993,"tag":1025,"props":1622,"children":1623},{"style":1031},[1624],{"type":998,"value":1625},"# Nested loop execution flow\n",{"type":993,"tag":1025,"props":1627,"children":1628},{"class":1027,"line":27},[1629,1633,1637,1642],{"type":993,"tag":1025,"props":1630,"children":1631},{"style":1048},[1632],{"type":998,"value":1051},{"type":993,"tag":1025,"props":1634,"children":1635},{"style":1054},[1636],{"type":998,"value":1057},{"type":993,"tag":1025,"props":1638,"children":1639},{"style":1060},[1640],{"type":998,"value":1641},"\"Execution order demonstration:\"",{"type":993,"tag":1025,"props":1643,"children":1644},{"style":1054},[1645],{"type":998,"value":1068},{"type":993,"tag":1025,"props":1647,"children":1648},{"class":1027,"line":36},[1649,1653,1658,1662,1666,1670,1674],{"type":993,"tag":1025,"props":1650,"children":1651},{"style":1074},[1652],{"type":998,"value":1077},{"type":993,"tag":1025,"props":1654,"children":1655},{"style":1054},[1656],{"type":998,"value":1657}," outer ",{"type":993,"tag":1025,"props":1659,"children":1660},{"style":1074},[1661],{"type":998,"value":1087},{"type":993,"tag":1025,"props":1663,"children":1664},{"style":1048},[1665],{"type":998,"value":1092},{"type":993,"tag":1025,"props":1667,"children":1668},{"style":1054},[1669],{"type":998,"value":1057},{"type":993,"tag":1025,"props":1671,"children":1672},{"style":1048},[1673],{"type":998,"value":1338},{"type":993,"tag":1025,"props":1675,"children":1676},{"style":1054},[1677],{"type":998,"value":1116},{"type":993,"tag":1025,"props":1679,"children":1680},{"class":1027,"line":45},[1681,1685,1689,1693,1698,1702,1707,1711,1715],{"type":993,"tag":1025,"props":1682,"children":1683},{"style":1048},[1684],{"type":998,"value":1273},{"type":993,"tag":1025,"props":1686,"children":1687},{"style":1054},[1688],{"type":998,"value":1057},{"type":993,"tag":1025,"props":1690,"children":1691},{"style":1074},[1692],{"type":998,"value":1201},{"type":993,"tag":1025,"props":1694,"children":1695},{"style":1060},[1696],{"type":998,"value":1697},"\"Outer loop: ",{"type":993,"tag":1025,"props":1699,"children":1700},{"style":1048},[1701],{"type":998,"value":1211},{"type":993,"tag":1025,"props":1703,"children":1704},{"style":1054},[1705],{"type":998,"value":1706},"outer",{"type":993,"tag":1025,"props":1708,"children":1709},{"style":1048},[1710],{"type":998,"value":1221},{"type":993,"tag":1025,"props":1712,"children":1713},{"style":1060},[1714],{"type":998,"value":1206},{"type":993,"tag":1025,"props":1716,"children":1717},{"style":1054},[1718],{"type":998,"value":1068},{"type":993,"tag":1025,"props":1720,"children":1721},{"class":1027,"line":54},[1722,1726,1731,1735,1739,1743,1747],{"type":993,"tag":1025,"props":1723,"children":1724},{"style":1074},[1725],{"type":998,"value":1124},{"type":993,"tag":1025,"props":1727,"children":1728},{"style":1054},[1729],{"type":998,"value":1730}," inner ",{"type":993,"tag":1025,"props":1732,"children":1733},{"style":1074},[1734],{"type":998,"value":1087},{"type":993,"tag":1025,"props":1736,"children":1737},{"style":1048},[1738],{"type":998,"value":1092},{"type":993,"tag":1025,"props":1740,"children":1741},{"style":1054},[1742],{"type":998,"value":1057},{"type":993,"tag":1025,"props":1744,"children":1745},{"style":1048},[1746],{"type":998,"value":1329},{"type":993,"tag":1025,"props":1748,"children":1749},{"style":1054},[1750],{"type":998,"value":1116},{"type":993,"tag":1025,"props":1752,"children":1753},{"class":1027,"line":63},[1754,1758,1762,1766,1771,1775,1780,1784,1788],{"type":993,"tag":1025,"props":1755,"children":1756},{"style":1048},[1757],{"type":998,"value":1192},{"type":993,"tag":1025,"props":1759,"children":1760},{"style":1054},[1761],{"type":998,"value":1057},{"type":993,"tag":1025,"props":1763,"children":1764},{"style":1074},[1765],{"type":998,"value":1201},{"type":993,"tag":1025,"props":1767,"children":1768},{"style":1060},[1769],{"type":998,"value":1770},"\"  Inner loop: ",{"type":993,"tag":1025,"props":1772,"children":1773},{"style":1048},[1774],{"type":998,"value":1211},{"type":993,"tag":1025,"props":1776,"children":1777},{"style":1054},[1778],{"type":998,"value":1779},"inner",{"type":993,"tag":1025,"props":1781,"children":1782},{"style":1048},[1783],{"type":998,"value":1221},{"type":993,"tag":1025,"props":1785,"children":1786},{"style":1060},[1787],{"type":998,"value":1206},{"type":993,"tag":1025,"props":1789,"children":1790},{"style":1054},[1791],{"type":998,"value":1068},{"type":993,"tag":1025,"props":1793,"children":1794},{"class":1027,"line":72},[1795,1799,1803,1807,1812,1816,1820,1824,1828,1832,1836,1840,1845],{"type":993,"tag":1025,"props":1796,"children":1797},{"style":1048},[1798],{"type":998,"value":1192},{"type":993,"tag":1025,"props":1800,"children":1801},{"style":1054},[1802],{"type":998,"value":1057},{"type":993,"tag":1025,"props":1804,"children":1805},{"style":1074},[1806],{"type":998,"value":1201},{"type":993,"tag":1025,"props":1808,"children":1809},{"style":1060},[1810],{"type":998,"value":1811},"\"  Combination: (",{"type":993,"tag":1025,"props":1813,"children":1814},{"style":1048},[1815],{"type":998,"value":1211},{"type":993,"tag":1025,"props":1817,"children":1818},{"style":1054},[1819],{"type":998,"value":1706},{"type":993,"tag":1025,"props":1821,"children":1822},{"style":1048},[1823],{"type":998,"value":1221},{"type":993,"tag":1025,"props":1825,"children":1826},{"style":1060},[1827],{"type":998,"value":1106},{"type":993,"tag":1025,"props":1829,"children":1830},{"style":1048},[1831],{"type":998,"value":1211},{"type":993,"tag":1025,"props":1833,"children":1834},{"style":1054},[1835],{"type":998,"value":1779},{"type":993,"tag":1025,"props":1837,"children":1838},{"style":1048},[1839],{"type":998,"value":1221},{"type":993,"tag":1025,"props":1841,"children":1842},{"style":1060},[1843],{"type":998,"value":1844},")\"",{"type":993,"tag":1025,"props":1846,"children":1847},{"style":1054},[1848],{"type":998,"value":1068},{"type":993,"tag":1025,"props":1850,"children":1851},{"class":1027,"line":81},[1852,1856,1860,1865],{"type":993,"tag":1025,"props":1853,"children":1854},{"style":1048},[1855],{"type":998,"value":1273},{"type":993,"tag":1025,"props":1857,"children":1858},{"style":1054},[1859],{"type":998,"value":1057},{"type":993,"tag":1025,"props":1861,"children":1862},{"style":1060},[1863],{"type":998,"value":1864},"\"  Inner loop complete\"",{"type":993,"tag":1025,"props":1866,"children":1867},{"style":1054},[1868],{"type":998,"value":1068},{"type":993,"tag":1025,"props":1870,"children":1871},{"class":1027,"line":91},[1872,1876,1880,1885],{"type":993,"tag":1025,"props":1873,"children":1874},{"style":1048},[1875],{"type":998,"value":1051},{"type":993,"tag":1025,"props":1877,"children":1878},{"style":1054},[1879],{"type":998,"value":1057},{"type":993,"tag":1025,"props":1881,"children":1882},{"style":1060},[1883],{"type":998,"value":1884},"\"All loops complete\"",{"type":993,"tag":1025,"props":1886,"children":1887},{"style":1054},[1888],{"type":998,"value":1068},{"type":993,"tag":1597,"props":1890,"children":1892},{"id":1891},"iteration-count-analysis",[1893],{"type":998,"value":1894},"Iteration Count Analysis",{"type":993,"tag":1000,"props":1896,"children":1897},{},[1898],{"type":998,"value":1899},"Mathematical relationship between loop ranges and total execution count:",{"type":993,"tag":1011,"props":1901,"children":1902},{},[1903],{"type":993,"tag":1015,"props":1904,"children":1906},{"className":1017,"code":1905,"language":6,"meta":8,"style":8},"# Counting total iterations\nouter_count = 3\ninner_count = 4\ntotal_iterations = outer_count * inner_count\nprint(f\"Total iterations: {outer_count} x {inner_count} = {total_iterations}\")\n\n# Demonstrating with actual count\niteration_count = 0\nfor i in range(outer_count):\n    for j in range(inner_count):\n        iteration_count += 1\n        print(f\"Iteration {iteration_count}: ({i}, {j})\")\n",[1907],{"type":993,"tag":1021,"props":1908,"children":1909},{"__ignoreMap":8},[1910,1918,1935,1952,1978,2053,2060,2068,2085,2109,2133,2151],{"type":993,"tag":1025,"props":1911,"children":1912},{"class":1027,"line":12},[1913],{"type":993,"tag":1025,"props":1914,"children":1915},{"style":1031},[1916],{"type":998,"value":1917},"# Counting total iterations\n",{"type":993,"tag":1025,"props":1919,"children":1920},{"class":1027,"line":27},[1921,1926,1930],{"type":993,"tag":1025,"props":1922,"children":1923},{"style":1054},[1924],{"type":998,"value":1925},"outer_count ",{"type":993,"tag":1025,"props":1927,"children":1928},{"style":1074},[1929],{"type":998,"value":1170},{"type":993,"tag":1025,"props":1931,"children":1932},{"style":1048},[1933],{"type":998,"value":1934}," 3\n",{"type":993,"tag":1025,"props":1936,"children":1937},{"class":1027,"line":36},[1938,1943,1947],{"type":993,"tag":1025,"props":1939,"children":1940},{"style":1054},[1941],{"type":998,"value":1942},"inner_count ",{"type":993,"tag":1025,"props":1944,"children":1945},{"style":1074},[1946],{"type":998,"value":1170},{"type":993,"tag":1025,"props":1948,"children":1949},{"style":1048},[1950],{"type":998,"value":1951}," 4\n",{"type":993,"tag":1025,"props":1953,"children":1954},{"class":1027,"line":45},[1955,1960,1964,1969,1973],{"type":993,"tag":1025,"props":1956,"children":1957},{"style":1054},[1958],{"type":998,"value":1959},"total_iterations ",{"type":993,"tag":1025,"props":1961,"children":1962},{"style":1074},[1963],{"type":998,"value":1170},{"type":993,"tag":1025,"props":1965,"children":1966},{"style":1054},[1967],{"type":998,"value":1968}," outer_count ",{"type":993,"tag":1025,"props":1970,"children":1971},{"style":1074},[1972],{"type":998,"value":1179},{"type":993,"tag":1025,"props":1974,"children":1975},{"style":1054},[1976],{"type":998,"value":1977}," inner_count\n",{"type":993,"tag":1025,"props":1979,"children":1980},{"class":1027,"line":54},[1981,1985,1989,1993,1998,2002,2007,2011,2015,2019,2024,2028,2032,2036,2041,2045,2049],{"type":993,"tag":1025,"props":1982,"children":1983},{"style":1048},[1984],{"type":998,"value":1051},{"type":993,"tag":1025,"props":1986,"children":1987},{"style":1054},[1988],{"type":998,"value":1057},{"type":993,"tag":1025,"props":1990,"children":1991},{"style":1074},[1992],{"type":998,"value":1201},{"type":993,"tag":1025,"props":1994,"children":1995},{"style":1060},[1996],{"type":998,"value":1997},"\"Total iterations: ",{"type":993,"tag":1025,"props":1999,"children":2000},{"style":1048},[2001],{"type":998,"value":1211},{"type":993,"tag":1025,"props":2003,"children":2004},{"style":1054},[2005],{"type":998,"value":2006},"outer_count",{"type":993,"tag":1025,"props":2008,"children":2009},{"style":1048},[2010],{"type":998,"value":1221},{"type":993,"tag":1025,"props":2012,"children":2013},{"style":1060},[2014],{"type":998,"value":1226},{"type":993,"tag":1025,"props":2016,"children":2017},{"style":1048},[2018],{"type":998,"value":1211},{"type":993,"tag":1025,"props":2020,"children":2021},{"style":1054},[2022],{"type":998,"value":2023},"inner_count",{"type":993,"tag":1025,"props":2025,"children":2026},{"style":1048},[2027],{"type":998,"value":1221},{"type":993,"tag":1025,"props":2029,"children":2030},{"style":1060},[2031],{"type":998,"value":1244},{"type":993,"tag":1025,"props":2033,"children":2034},{"style":1048},[2035],{"type":998,"value":1211},{"type":993,"tag":1025,"props":2037,"children":2038},{"style":1054},[2039],{"type":998,"value":2040},"total_iterations",{"type":993,"tag":1025,"props":2042,"children":2043},{"style":1048},[2044],{"type":998,"value":1221},{"type":993,"tag":1025,"props":2046,"children":2047},{"style":1060},[2048],{"type":998,"value":1206},{"type":993,"tag":1025,"props":2050,"children":2051},{"style":1054},[2052],{"type":998,"value":1068},{"type":993,"tag":1025,"props":2054,"children":2055},{"class":1027,"line":63},[2056],{"type":993,"tag":1025,"props":2057,"children":2058},{"emptyLinePlaceholder":13},[2059],{"type":998,"value":1291},{"type":993,"tag":1025,"props":2061,"children":2062},{"class":1027,"line":72},[2063],{"type":993,"tag":1025,"props":2064,"children":2065},{"style":1031},[2066],{"type":998,"value":2067},"# Demonstrating with actual count\n",{"type":993,"tag":1025,"props":2069,"children":2070},{"class":1027,"line":81},[2071,2076,2080],{"type":993,"tag":1025,"props":2072,"children":2073},{"style":1054},[2074],{"type":998,"value":2075},"iteration_count ",{"type":993,"tag":1025,"props":2077,"children":2078},{"style":1074},[2079],{"type":998,"value":1170},{"type":993,"tag":1025,"props":2081,"children":2082},{"style":1048},[2083],{"type":998,"value":2084}," 0\n",{"type":993,"tag":1025,"props":2086,"children":2087},{"class":1027,"line":91},[2088,2092,2096,2100,2104],{"type":993,"tag":1025,"props":2089,"children":2090},{"style":1074},[2091],{"type":998,"value":1077},{"type":993,"tag":1025,"props":2093,"children":2094},{"style":1054},[2095],{"type":998,"value":1082},{"type":993,"tag":1025,"props":2097,"children":2098},{"style":1074},[2099],{"type":998,"value":1087},{"type":993,"tag":1025,"props":2101,"children":2102},{"style":1048},[2103],{"type":998,"value":1092},{"type":993,"tag":1025,"props":2105,"children":2106},{"style":1054},[2107],{"type":998,"value":2108},"(outer_count):\n",{"type":993,"tag":1025,"props":2110,"children":2111},{"class":1027,"line":100},[2112,2116,2120,2124,2128],{"type":993,"tag":1025,"props":2113,"children":2114},{"style":1074},[2115],{"type":998,"value":1124},{"type":993,"tag":1025,"props":2117,"children":2118},{"style":1054},[2119],{"type":998,"value":1129},{"type":993,"tag":1025,"props":2121,"children":2122},{"style":1074},[2123],{"type":998,"value":1087},{"type":993,"tag":1025,"props":2125,"children":2126},{"style":1048},[2127],{"type":998,"value":1092},{"type":993,"tag":1025,"props":2129,"children":2130},{"style":1054},[2131],{"type":998,"value":2132},"(inner_count):\n",{"type":993,"tag":1025,"props":2134,"children":2135},{"class":1027,"line":109},[2136,2141,2146],{"type":993,"tag":1025,"props":2137,"children":2138},{"style":1054},[2139],{"type":998,"value":2140},"        iteration_count ",{"type":993,"tag":1025,"props":2142,"children":2143},{"style":1074},[2144],{"type":998,"value":2145},"+=",{"type":993,"tag":1025,"props":2147,"children":2148},{"style":1048},[2149],{"type":998,"value":2150}," 1\n",{"type":993,"tag":1025,"props":2152,"children":2153},{"class":1027,"line":118},[2154,2158,2162,2166,2171,2175,2180,2184,2189,2193,2197,2201,2205,2209,2213,2217,2221],{"type":993,"tag":1025,"props":2155,"children":2156},{"style":1048},[2157],{"type":998,"value":1192},{"type":993,"tag":1025,"props":2159,"children":2160},{"style":1054},[2161],{"type":998,"value":1057},{"type":993,"tag":1025,"props":2163,"children":2164},{"style":1074},[2165],{"type":998,"value":1201},{"type":993,"tag":1025,"props":2167,"children":2168},{"style":1060},[2169],{"type":998,"value":2170},"\"Iteration ",{"type":993,"tag":1025,"props":2172,"children":2173},{"style":1048},[2174],{"type":998,"value":1211},{"type":993,"tag":1025,"props":2176,"children":2177},{"style":1054},[2178],{"type":998,"value":2179},"iteration_count",{"type":993,"tag":1025,"props":2181,"children":2182},{"style":1048},[2183],{"type":998,"value":1221},{"type":993,"tag":1025,"props":2185,"children":2186},{"style":1060},[2187],{"type":998,"value":2188},": (",{"type":993,"tag":1025,"props":2190,"children":2191},{"style":1048},[2192],{"type":998,"value":1211},{"type":993,"tag":1025,"props":2194,"children":2195},{"style":1054},[2196],{"type":998,"value":1216},{"type":993,"tag":1025,"props":2198,"children":2199},{"style":1048},[2200],{"type":998,"value":1221},{"type":993,"tag":1025,"props":2202,"children":2203},{"style":1060},[2204],{"type":998,"value":1106},{"type":993,"tag":1025,"props":2206,"children":2207},{"style":1048},[2208],{"type":998,"value":1211},{"type":993,"tag":1025,"props":2210,"children":2211},{"style":1054},[2212],{"type":998,"value":1235},{"type":993,"tag":1025,"props":2214,"children":2215},{"style":1048},[2216],{"type":998,"value":1221},{"type":993,"tag":1025,"props":2218,"children":2219},{"style":1060},[2220],{"type":998,"value":1844},{"type":993,"tag":1025,"props":2222,"children":2223},{"style":1054},[2224],{"type":998,"value":1068},{"type":993,"tag":1508,"props":2226,"children":2228},{"id":2227},"processing-multi-dimensional-data",[2229],{"type":998,"value":2230},"Processing Multi-Dimensional Data",{"type":993,"tag":1000,"props":2232,"children":2233},{},[2234],{"type":998,"value":2235},"Nested loops excel at processing multi-dimensional data structures like matrices, tables, and grids. Each level of nesting corresponds to a dimension in your data structure.",{"type":993,"tag":1520,"props":2237,"children":2241},{"emoji":2238,"title":2239,"type":2240},"📊","Multi-Dimensional Data Processing","success",[2242,2250,2273,2281,2304],{"type":993,"tag":1000,"props":2243,"children":2244},{},[2245],{"type":993,"tag":1530,"props":2246,"children":2247},{},[2248],{"type":998,"value":2249},"Data Structure Mapping:",{"type":993,"tag":1536,"props":2251,"children":2252},{},[2253,2258,2263,2268],{"type":993,"tag":1540,"props":2254,"children":2255},{},[2256],{"type":998,"value":2257},"2D arrays: outer loop = rows, inner loop = columns",{"type":993,"tag":1540,"props":2259,"children":2260},{},[2261],{"type":998,"value":2262},"3D arrays: three nested loops for depth, rows, columns",{"type":993,"tag":1540,"props":2264,"children":2265},{},[2266],{"type":998,"value":2267},"Hierarchical data: each level represents a hierarchy depth",{"type":993,"tag":1540,"props":2269,"children":2270},{},[2271],{"type":998,"value":2272},"Grid-based data: natural row-column organization",{"type":993,"tag":1000,"props":2274,"children":2275},{},[2276],{"type":993,"tag":1530,"props":2277,"children":2278},{},[2279],{"type":998,"value":2280},"Common Applications:",{"type":993,"tag":1536,"props":2282,"children":2283},{},[2284,2289,2294,2299],{"type":993,"tag":1540,"props":2285,"children":2286},{},[2287],{"type":998,"value":2288},"Image processing (pixels in rows and columns)",{"type":993,"tag":1540,"props":2290,"children":2291},{},[2292],{"type":998,"value":2293},"Game boards and grids",{"type":993,"tag":1540,"props":2295,"children":2296},{},[2297],{"type":998,"value":2298},"Spreadsheet data analysis",{"type":993,"tag":1540,"props":2300,"children":2301},{},[2302],{"type":998,"value":2303},"Matrix mathematical operations",{"type":993,"tag":1000,"props":2305,"children":2306},{},[2307,2312,2314,2319],{"type":993,"tag":1530,"props":2308,"children":2309},{},[2310],{"type":998,"value":2311},"Access Patterns:",{"type":998,"value":2313}," Use consistent indexing conventions (typically [row]",{"type":993,"tag":1025,"props":2315,"children":2316},{},[2317],{"type":998,"value":2318},"column",{"type":998,"value":2320},")",{"type":993,"tag":1597,"props":2322,"children":2324},{"id":2323},"_2d-grid-navigation",[2325],{"type":998,"value":2326},"2D Grid Navigation",{"type":993,"tag":1000,"props":2328,"children":2329},{},[2330],{"type":998,"value":2331},"Coordinate-based access to grid elements with position tracking:",{"type":993,"tag":1011,"props":2333,"children":2334},{},[2335],{"type":993,"tag":1015,"props":2336,"children":2338},{"className":1017,"code":2337,"language":6,"meta":8,"style":8},"# Working with a 2D grid\ngrid = [\n    ['A', 'B', 'C'],\n    ['D', 'E', 'F'],\n    ['G', 'H', 'I']\n]\n\nprint(\"Grid contents:\")\nfor row_index, row in enumerate(grid):\n    for col_index, cell in enumerate(row):\n        print(f\"Position ({row_index}, {col_index}): {cell}\")\n",[2339],{"type":993,"tag":1021,"props":2340,"children":2341},{"__ignoreMap":8},[2342,2350,2367,2403,2437,2472,2479,2486,2506,2532,2557],{"type":993,"tag":1025,"props":2343,"children":2344},{"class":1027,"line":12},[2345],{"type":993,"tag":1025,"props":2346,"children":2347},{"style":1031},[2348],{"type":998,"value":2349},"# Working with a 2D grid\n",{"type":993,"tag":1025,"props":2351,"children":2352},{"class":1027,"line":27},[2353,2358,2362],{"type":993,"tag":1025,"props":2354,"children":2355},{"style":1054},[2356],{"type":998,"value":2357},"grid ",{"type":993,"tag":1025,"props":2359,"children":2360},{"style":1074},[2361],{"type":998,"value":1170},{"type":993,"tag":1025,"props":2363,"children":2364},{"style":1054},[2365],{"type":998,"value":2366}," [\n",{"type":993,"tag":1025,"props":2368,"children":2369},{"class":1027,"line":36},[2370,2375,2380,2384,2389,2393,2398],{"type":993,"tag":1025,"props":2371,"children":2372},{"style":1054},[2373],{"type":998,"value":2374},"    [",{"type":993,"tag":1025,"props":2376,"children":2377},{"style":1060},[2378],{"type":998,"value":2379},"'A'",{"type":993,"tag":1025,"props":2381,"children":2382},{"style":1054},[2383],{"type":998,"value":1106},{"type":993,"tag":1025,"props":2385,"children":2386},{"style":1060},[2387],{"type":998,"value":2388},"'B'",{"type":993,"tag":1025,"props":2390,"children":2391},{"style":1054},[2392],{"type":998,"value":1106},{"type":993,"tag":1025,"props":2394,"children":2395},{"style":1060},[2396],{"type":998,"value":2397},"'C'",{"type":993,"tag":1025,"props":2399,"children":2400},{"style":1054},[2401],{"type":998,"value":2402},"],\n",{"type":993,"tag":1025,"props":2404,"children":2405},{"class":1027,"line":45},[2406,2410,2415,2419,2424,2428,2433],{"type":993,"tag":1025,"props":2407,"children":2408},{"style":1054},[2409],{"type":998,"value":2374},{"type":993,"tag":1025,"props":2411,"children":2412},{"style":1060},[2413],{"type":998,"value":2414},"'D'",{"type":993,"tag":1025,"props":2416,"children":2417},{"style":1054},[2418],{"type":998,"value":1106},{"type":993,"tag":1025,"props":2420,"children":2421},{"style":1060},[2422],{"type":998,"value":2423},"'E'",{"type":993,"tag":1025,"props":2425,"children":2426},{"style":1054},[2427],{"type":998,"value":1106},{"type":993,"tag":1025,"props":2429,"children":2430},{"style":1060},[2431],{"type":998,"value":2432},"'F'",{"type":993,"tag":1025,"props":2434,"children":2435},{"style":1054},[2436],{"type":998,"value":2402},{"type":993,"tag":1025,"props":2438,"children":2439},{"class":1027,"line":54},[2440,2444,2449,2453,2458,2462,2467],{"type":993,"tag":1025,"props":2441,"children":2442},{"style":1054},[2443],{"type":998,"value":2374},{"type":993,"tag":1025,"props":2445,"children":2446},{"style":1060},[2447],{"type":998,"value":2448},"'G'",{"type":993,"tag":1025,"props":2450,"children":2451},{"style":1054},[2452],{"type":998,"value":1106},{"type":993,"tag":1025,"props":2454,"children":2455},{"style":1060},[2456],{"type":998,"value":2457},"'H'",{"type":993,"tag":1025,"props":2459,"children":2460},{"style":1054},[2461],{"type":998,"value":1106},{"type":993,"tag":1025,"props":2463,"children":2464},{"style":1060},[2465],{"type":998,"value":2466},"'I'",{"type":993,"tag":1025,"props":2468,"children":2469},{"style":1054},[2470],{"type":998,"value":2471},"]\n",{"type":993,"tag":1025,"props":2473,"children":2474},{"class":1027,"line":63},[2475],{"type":993,"tag":1025,"props":2476,"children":2477},{"style":1054},[2478],{"type":998,"value":2471},{"type":993,"tag":1025,"props":2480,"children":2481},{"class":1027,"line":72},[2482],{"type":993,"tag":1025,"props":2483,"children":2484},{"emptyLinePlaceholder":13},[2485],{"type":998,"value":1291},{"type":993,"tag":1025,"props":2487,"children":2488},{"class":1027,"line":81},[2489,2493,2497,2502],{"type":993,"tag":1025,"props":2490,"children":2491},{"style":1048},[2492],{"type":998,"value":1051},{"type":993,"tag":1025,"props":2494,"children":2495},{"style":1054},[2496],{"type":998,"value":1057},{"type":993,"tag":1025,"props":2498,"children":2499},{"style":1060},[2500],{"type":998,"value":2501},"\"Grid contents:\"",{"type":993,"tag":1025,"props":2503,"children":2504},{"style":1054},[2505],{"type":998,"value":1068},{"type":993,"tag":1025,"props":2507,"children":2508},{"class":1027,"line":91},[2509,2513,2518,2522,2527],{"type":993,"tag":1025,"props":2510,"children":2511},{"style":1074},[2512],{"type":998,"value":1077},{"type":993,"tag":1025,"props":2514,"children":2515},{"style":1054},[2516],{"type":998,"value":2517}," row_index, row ",{"type":993,"tag":1025,"props":2519,"children":2520},{"style":1074},[2521],{"type":998,"value":1087},{"type":993,"tag":1025,"props":2523,"children":2524},{"style":1048},[2525],{"type":998,"value":2526}," enumerate",{"type":993,"tag":1025,"props":2528,"children":2529},{"style":1054},[2530],{"type":998,"value":2531},"(grid):\n",{"type":993,"tag":1025,"props":2533,"children":2534},{"class":1027,"line":100},[2535,2539,2544,2548,2552],{"type":993,"tag":1025,"props":2536,"children":2537},{"style":1074},[2538],{"type":998,"value":1124},{"type":993,"tag":1025,"props":2540,"children":2541},{"style":1054},[2542],{"type":998,"value":2543}," col_index, cell ",{"type":993,"tag":1025,"props":2545,"children":2546},{"style":1074},[2547],{"type":998,"value":1087},{"type":993,"tag":1025,"props":2549,"children":2550},{"style":1048},[2551],{"type":998,"value":2526},{"type":993,"tag":1025,"props":2553,"children":2554},{"style":1054},[2555],{"type":998,"value":2556},"(row):\n",{"type":993,"tag":1025,"props":2558,"children":2559},{"class":1027,"line":109},[2560,2564,2568,2572,2577,2581,2586,2590,2594,2598,2603,2607,2612,2616,2621,2625,2629],{"type":993,"tag":1025,"props":2561,"children":2562},{"style":1048},[2563],{"type":998,"value":1192},{"type":993,"tag":1025,"props":2565,"children":2566},{"style":1054},[2567],{"type":998,"value":1057},{"type":993,"tag":1025,"props":2569,"children":2570},{"style":1074},[2571],{"type":998,"value":1201},{"type":993,"tag":1025,"props":2573,"children":2574},{"style":1060},[2575],{"type":998,"value":2576},"\"Position (",{"type":993,"tag":1025,"props":2578,"children":2579},{"style":1048},[2580],{"type":998,"value":1211},{"type":993,"tag":1025,"props":2582,"children":2583},{"style":1054},[2584],{"type":998,"value":2585},"row_index",{"type":993,"tag":1025,"props":2587,"children":2588},{"style":1048},[2589],{"type":998,"value":1221},{"type":993,"tag":1025,"props":2591,"children":2592},{"style":1060},[2593],{"type":998,"value":1106},{"type":993,"tag":1025,"props":2595,"children":2596},{"style":1048},[2597],{"type":998,"value":1211},{"type":993,"tag":1025,"props":2599,"children":2600},{"style":1054},[2601],{"type":998,"value":2602},"col_index",{"type":993,"tag":1025,"props":2604,"children":2605},{"style":1048},[2606],{"type":998,"value":1221},{"type":993,"tag":1025,"props":2608,"children":2609},{"style":1060},[2610],{"type":998,"value":2611},"): ",{"type":993,"tag":1025,"props":2613,"children":2614},{"style":1048},[2615],{"type":998,"value":1211},{"type":993,"tag":1025,"props":2617,"children":2618},{"style":1054},[2619],{"type":998,"value":2620},"cell",{"type":993,"tag":1025,"props":2622,"children":2623},{"style":1048},[2624],{"type":998,"value":1221},{"type":993,"tag":1025,"props":2626,"children":2627},{"style":1060},[2628],{"type":998,"value":1206},{"type":993,"tag":1025,"props":2630,"children":2631},{"style":1054},[2632],{"type":998,"value":1068},{"type":993,"tag":1597,"props":2634,"children":2636},{"id":2635},"target-search-in-2d-structure",[2637],{"type":998,"value":2638},"Target Search in 2D Structure",{"type":993,"tag":1000,"props":2640,"children":2641},{},[2642],{"type":998,"value":2643},"Systematic search through multi-dimensional data with early termination:",{"type":993,"tag":1011,"props":2645,"children":2646},{},[2647],{"type":993,"tag":1015,"props":2648,"children":2650},{"className":1017,"code":2649,"language":6,"meta":8,"style":8},"# Finding specific values\ngrid = [['A', 'B', 'C'], ['D', 'E', 'F'], ['G', 'H', 'I']]\ntarget = 'E'\nfound = False\n\nfor i in range(len(grid)):\n    for j in range(len(grid[i])):\n        if grid[i][j] == target:\n            print(f\"Found '{target}' at position ({i}, {j})\")\n            found = True\n            break\n    if found:\n        break\n",[2651],{"type":993,"tag":1021,"props":2652,"children":2653},{"__ignoreMap":8},[2654,2662,2749,2766,2783,2790,2823,2855,2878,2953,2970,2978,2991],{"type":993,"tag":1025,"props":2655,"children":2656},{"class":1027,"line":12},[2657],{"type":993,"tag":1025,"props":2658,"children":2659},{"style":1031},[2660],{"type":998,"value":2661},"# Finding specific values\n",{"type":993,"tag":1025,"props":2663,"children":2664},{"class":1027,"line":27},[2665,2669,2673,2677,2681,2685,2689,2693,2697,2701,2705,2709,2713,2717,2721,2725,2729,2733,2737,2741,2745],{"type":993,"tag":1025,"props":2666,"children":2667},{"style":1054},[2668],{"type":998,"value":2357},{"type":993,"tag":1025,"props":2670,"children":2671},{"style":1074},[2672],{"type":998,"value":1170},{"type":993,"tag":1025,"props":2674,"children":2675},{"style":1054},[2676],{"type":998,"value":1316},{"type":993,"tag":1025,"props":2678,"children":2679},{"style":1060},[2680],{"type":998,"value":2379},{"type":993,"tag":1025,"props":2682,"children":2683},{"style":1054},[2684],{"type":998,"value":1106},{"type":993,"tag":1025,"props":2686,"children":2687},{"style":1060},[2688],{"type":998,"value":2388},{"type":993,"tag":1025,"props":2690,"children":2691},{"style":1054},[2692],{"type":998,"value":1106},{"type":993,"tag":1025,"props":2694,"children":2695},{"style":1060},[2696],{"type":998,"value":2397},{"type":993,"tag":1025,"props":2698,"children":2699},{"style":1054},[2700],{"type":998,"value":1343},{"type":993,"tag":1025,"props":2702,"children":2703},{"style":1060},[2704],{"type":998,"value":2414},{"type":993,"tag":1025,"props":2706,"children":2707},{"style":1054},[2708],{"type":998,"value":1106},{"type":993,"tag":1025,"props":2710,"children":2711},{"style":1060},[2712],{"type":998,"value":2423},{"type":993,"tag":1025,"props":2714,"children":2715},{"style":1054},[2716],{"type":998,"value":1106},{"type":993,"tag":1025,"props":2718,"children":2719},{"style":1060},[2720],{"type":998,"value":2432},{"type":993,"tag":1025,"props":2722,"children":2723},{"style":1054},[2724],{"type":998,"value":1343},{"type":993,"tag":1025,"props":2726,"children":2727},{"style":1060},[2728],{"type":998,"value":2448},{"type":993,"tag":1025,"props":2730,"children":2731},{"style":1054},[2732],{"type":998,"value":1106},{"type":993,"tag":1025,"props":2734,"children":2735},{"style":1060},[2736],{"type":998,"value":2457},{"type":993,"tag":1025,"props":2738,"children":2739},{"style":1054},[2740],{"type":998,"value":1106},{"type":993,"tag":1025,"props":2742,"children":2743},{"style":1060},[2744],{"type":998,"value":2466},{"type":993,"tag":1025,"props":2746,"children":2747},{"style":1054},[2748],{"type":998,"value":1397},{"type":993,"tag":1025,"props":2750,"children":2751},{"class":1027,"line":36},[2752,2757,2761],{"type":993,"tag":1025,"props":2753,"children":2754},{"style":1054},[2755],{"type":998,"value":2756},"target ",{"type":993,"tag":1025,"props":2758,"children":2759},{"style":1074},[2760],{"type":998,"value":1170},{"type":993,"tag":1025,"props":2762,"children":2763},{"style":1060},[2764],{"type":998,"value":2765}," 'E'\n",{"type":993,"tag":1025,"props":2767,"children":2768},{"class":1027,"line":45},[2769,2774,2778],{"type":993,"tag":1025,"props":2770,"children":2771},{"style":1054},[2772],{"type":998,"value":2773},"found ",{"type":993,"tag":1025,"props":2775,"children":2776},{"style":1074},[2777],{"type":998,"value":1170},{"type":993,"tag":1025,"props":2779,"children":2780},{"style":1048},[2781],{"type":998,"value":2782}," False\n",{"type":993,"tag":1025,"props":2784,"children":2785},{"class":1027,"line":54},[2786],{"type":993,"tag":1025,"props":2787,"children":2788},{"emptyLinePlaceholder":13},[2789],{"type":998,"value":1291},{"type":993,"tag":1025,"props":2791,"children":2792},{"class":1027,"line":63},[2793,2797,2801,2805,2809,2813,2818],{"type":993,"tag":1025,"props":2794,"children":2795},{"style":1074},[2796],{"type":998,"value":1077},{"type":993,"tag":1025,"props":2798,"children":2799},{"style":1054},[2800],{"type":998,"value":1082},{"type":993,"tag":1025,"props":2802,"children":2803},{"style":1074},[2804],{"type":998,"value":1087},{"type":993,"tag":1025,"props":2806,"children":2807},{"style":1048},[2808],{"type":998,"value":1092},{"type":993,"tag":1025,"props":2810,"children":2811},{"style":1054},[2812],{"type":998,"value":1057},{"type":993,"tag":1025,"props":2814,"children":2815},{"style":1048},[2816],{"type":998,"value":2817},"len",{"type":993,"tag":1025,"props":2819,"children":2820},{"style":1054},[2821],{"type":998,"value":2822},"(grid)):\n",{"type":993,"tag":1025,"props":2824,"children":2825},{"class":1027,"line":72},[2826,2830,2834,2838,2842,2846,2850],{"type":993,"tag":1025,"props":2827,"children":2828},{"style":1074},[2829],{"type":998,"value":1124},{"type":993,"tag":1025,"props":2831,"children":2832},{"style":1054},[2833],{"type":998,"value":1129},{"type":993,"tag":1025,"props":2835,"children":2836},{"style":1074},[2837],{"type":998,"value":1087},{"type":993,"tag":1025,"props":2839,"children":2840},{"style":1048},[2841],{"type":998,"value":1092},{"type":993,"tag":1025,"props":2843,"children":2844},{"style":1054},[2845],{"type":998,"value":1057},{"type":993,"tag":1025,"props":2847,"children":2848},{"style":1048},[2849],{"type":998,"value":2817},{"type":993,"tag":1025,"props":2851,"children":2852},{"style":1054},[2853],{"type":998,"value":2854},"(grid[i])):\n",{"type":993,"tag":1025,"props":2856,"children":2857},{"class":1027,"line":81},[2858,2863,2868,2873],{"type":993,"tag":1025,"props":2859,"children":2860},{"style":1074},[2861],{"type":998,"value":2862},"        if",{"type":993,"tag":1025,"props":2864,"children":2865},{"style":1054},[2866],{"type":998,"value":2867}," grid[i][j] ",{"type":993,"tag":1025,"props":2869,"children":2870},{"style":1074},[2871],{"type":998,"value":2872},"==",{"type":993,"tag":1025,"props":2874,"children":2875},{"style":1054},[2876],{"type":998,"value":2877}," target:\n",{"type":993,"tag":1025,"props":2879,"children":2880},{"class":1027,"line":91},[2881,2886,2890,2894,2899,2903,2908,2912,2917,2921,2925,2929,2933,2937,2941,2945,2949],{"type":993,"tag":1025,"props":2882,"children":2883},{"style":1048},[2884],{"type":998,"value":2885},"            print",{"type":993,"tag":1025,"props":2887,"children":2888},{"style":1054},[2889],{"type":998,"value":1057},{"type":993,"tag":1025,"props":2891,"children":2892},{"style":1074},[2893],{"type":998,"value":1201},{"type":993,"tag":1025,"props":2895,"children":2896},{"style":1060},[2897],{"type":998,"value":2898},"\"Found '",{"type":993,"tag":1025,"props":2900,"children":2901},{"style":1048},[2902],{"type":998,"value":1211},{"type":993,"tag":1025,"props":2904,"children":2905},{"style":1054},[2906],{"type":998,"value":2907},"target",{"type":993,"tag":1025,"props":2909,"children":2910},{"style":1048},[2911],{"type":998,"value":1221},{"type":993,"tag":1025,"props":2913,"children":2914},{"style":1060},[2915],{"type":998,"value":2916},"' at position (",{"type":993,"tag":1025,"props":2918,"children":2919},{"style":1048},[2920],{"type":998,"value":1211},{"type":993,"tag":1025,"props":2922,"children":2923},{"style":1054},[2924],{"type":998,"value":1216},{"type":993,"tag":1025,"props":2926,"children":2927},{"style":1048},[2928],{"type":998,"value":1221},{"type":993,"tag":1025,"props":2930,"children":2931},{"style":1060},[2932],{"type":998,"value":1106},{"type":993,"tag":1025,"props":2934,"children":2935},{"style":1048},[2936],{"type":998,"value":1211},{"type":993,"tag":1025,"props":2938,"children":2939},{"style":1054},[2940],{"type":998,"value":1235},{"type":993,"tag":1025,"props":2942,"children":2943},{"style":1048},[2944],{"type":998,"value":1221},{"type":993,"tag":1025,"props":2946,"children":2947},{"style":1060},[2948],{"type":998,"value":1844},{"type":993,"tag":1025,"props":2950,"children":2951},{"style":1054},[2952],{"type":998,"value":1068},{"type":993,"tag":1025,"props":2954,"children":2955},{"class":1027,"line":100},[2956,2961,2965],{"type":993,"tag":1025,"props":2957,"children":2958},{"style":1054},[2959],{"type":998,"value":2960},"            found ",{"type":993,"tag":1025,"props":2962,"children":2963},{"style":1074},[2964],{"type":998,"value":1170},{"type":993,"tag":1025,"props":2966,"children":2967},{"style":1048},[2968],{"type":998,"value":2969}," True\n",{"type":993,"tag":1025,"props":2971,"children":2972},{"class":1027,"line":109},[2973],{"type":993,"tag":1025,"props":2974,"children":2975},{"style":1074},[2976],{"type":998,"value":2977},"            break\n",{"type":993,"tag":1025,"props":2979,"children":2980},{"class":1027,"line":118},[2981,2986],{"type":993,"tag":1025,"props":2982,"children":2983},{"style":1074},[2984],{"type":998,"value":2985},"    if",{"type":993,"tag":1025,"props":2987,"children":2988},{"style":1054},[2989],{"type":998,"value":2990}," found:\n",{"type":993,"tag":1025,"props":2992,"children":2993},{"class":1027,"line":127},[2994],{"type":993,"tag":1025,"props":2995,"children":2996},{"style":1074},[2997],{"type":998,"value":2998},"        break\n",{"type":993,"tag":1597,"props":3000,"children":3002},{"id":3001},"matrix-mathematical-operations",[3003],{"type":998,"value":3004},"Matrix Mathematical Operations",{"type":993,"tag":1000,"props":3006,"children":3007},{},[3008],{"type":998,"value":3009},"Row-wise computational processing for data aggregation:",{"type":993,"tag":1011,"props":3011,"children":3012},{},[3013],{"type":993,"tag":1015,"props":3014,"children":3016},{"className":1017,"code":3015,"language":6,"meta":8,"style":8},"# Processing numeric matrix\nnumbers = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]\nprint(\"Matrix operations:\")\nfor row in numbers:\n    row_sum = 0\n    for num in row:\n        row_sum += num\n    print(f\"Row sum: {row_sum}\")\n",[3017],{"type":993,"tag":1021,"props":3018,"children":3019},{"__ignoreMap":8},[3020,3028,3116,3136,3156,3172,3192,3209],{"type":993,"tag":1025,"props":3021,"children":3022},{"class":1027,"line":12},[3023],{"type":993,"tag":1025,"props":3024,"children":3025},{"style":1031},[3026],{"type":998,"value":3027},"# Processing numeric matrix\n",{"type":993,"tag":1025,"props":3029,"children":3030},{"class":1027,"line":27},[3031,3036,3040,3044,3048,3052,3056,3060,3064,3068,3072,3076,3080,3084,3088,3092,3096,3100,3104,3108,3112],{"type":993,"tag":1025,"props":3032,"children":3033},{"style":1054},[3034],{"type":998,"value":3035},"numbers ",{"type":993,"tag":1025,"props":3037,"children":3038},{"style":1074},[3039],{"type":998,"value":1170},{"type":993,"tag":1025,"props":3041,"children":3042},{"style":1054},[3043],{"type":998,"value":1316},{"type":993,"tag":1025,"props":3045,"children":3046},{"style":1048},[3047],{"type":998,"value":1101},{"type":993,"tag":1025,"props":3049,"children":3050},{"style":1054},[3051],{"type":998,"value":1106},{"type":993,"tag":1025,"props":3053,"children":3054},{"style":1048},[3055],{"type":998,"value":1329},{"type":993,"tag":1025,"props":3057,"children":3058},{"style":1054},[3059],{"type":998,"value":1106},{"type":993,"tag":1025,"props":3061,"children":3062},{"style":1048},[3063],{"type":998,"value":1338},{"type":993,"tag":1025,"props":3065,"children":3066},{"style":1054},[3067],{"type":998,"value":1343},{"type":993,"tag":1025,"props":3069,"children":3070},{"style":1048},[3071],{"type":998,"value":1111},{"type":993,"tag":1025,"props":3073,"children":3074},{"style":1054},[3075],{"type":998,"value":1106},{"type":993,"tag":1025,"props":3077,"children":3078},{"style":1048},[3079],{"type":998,"value":1356},{"type":993,"tag":1025,"props":3081,"children":3082},{"style":1054},[3083],{"type":998,"value":1106},{"type":993,"tag":1025,"props":3085,"children":3086},{"style":1048},[3087],{"type":998,"value":1365},{"type":993,"tag":1025,"props":3089,"children":3090},{"style":1054},[3091],{"type":998,"value":1343},{"type":993,"tag":1025,"props":3093,"children":3094},{"style":1048},[3095],{"type":998,"value":1374},{"type":993,"tag":1025,"props":3097,"children":3098},{"style":1054},[3099],{"type":998,"value":1106},{"type":993,"tag":1025,"props":3101,"children":3102},{"style":1048},[3103],{"type":998,"value":1383},{"type":993,"tag":1025,"props":3105,"children":3106},{"style":1054},[3107],{"type":998,"value":1106},{"type":993,"tag":1025,"props":3109,"children":3110},{"style":1048},[3111],{"type":998,"value":1392},{"type":993,"tag":1025,"props":3113,"children":3114},{"style":1054},[3115],{"type":998,"value":1397},{"type":993,"tag":1025,"props":3117,"children":3118},{"class":1027,"line":36},[3119,3123,3127,3132],{"type":993,"tag":1025,"props":3120,"children":3121},{"style":1048},[3122],{"type":998,"value":1051},{"type":993,"tag":1025,"props":3124,"children":3125},{"style":1054},[3126],{"type":998,"value":1057},{"type":993,"tag":1025,"props":3128,"children":3129},{"style":1060},[3130],{"type":998,"value":3131},"\"Matrix operations:\"",{"type":993,"tag":1025,"props":3133,"children":3134},{"style":1054},[3135],{"type":998,"value":1068},{"type":993,"tag":1025,"props":3137,"children":3138},{"class":1027,"line":45},[3139,3143,3147,3151],{"type":993,"tag":1025,"props":3140,"children":3141},{"style":1074},[3142],{"type":998,"value":1077},{"type":993,"tag":1025,"props":3144,"children":3145},{"style":1054},[3146],{"type":998,"value":1429},{"type":993,"tag":1025,"props":3148,"children":3149},{"style":1074},[3150],{"type":998,"value":1087},{"type":993,"tag":1025,"props":3152,"children":3153},{"style":1054},[3154],{"type":998,"value":3155}," numbers:\n",{"type":993,"tag":1025,"props":3157,"children":3158},{"class":1027,"line":54},[3159,3164,3168],{"type":993,"tag":1025,"props":3160,"children":3161},{"style":1054},[3162],{"type":998,"value":3163},"    row_sum ",{"type":993,"tag":1025,"props":3165,"children":3166},{"style":1074},[3167],{"type":998,"value":1170},{"type":993,"tag":1025,"props":3169,"children":3170},{"style":1048},[3171],{"type":998,"value":2084},{"type":993,"tag":1025,"props":3173,"children":3174},{"class":1027,"line":63},[3175,3179,3184,3188],{"type":993,"tag":1025,"props":3176,"children":3177},{"style":1074},[3178],{"type":998,"value":1124},{"type":993,"tag":1025,"props":3180,"children":3181},{"style":1054},[3182],{"type":998,"value":3183}," num ",{"type":993,"tag":1025,"props":3185,"children":3186},{"style":1074},[3187],{"type":998,"value":1087},{"type":993,"tag":1025,"props":3189,"children":3190},{"style":1054},[3191],{"type":998,"value":1459},{"type":993,"tag":1025,"props":3193,"children":3194},{"class":1027,"line":72},[3195,3200,3204],{"type":993,"tag":1025,"props":3196,"children":3197},{"style":1054},[3198],{"type":998,"value":3199},"        row_sum ",{"type":993,"tag":1025,"props":3201,"children":3202},{"style":1074},[3203],{"type":998,"value":2145},{"type":993,"tag":1025,"props":3205,"children":3206},{"style":1054},[3207],{"type":998,"value":3208}," num\n",{"type":993,"tag":1025,"props":3210,"children":3211},{"class":1027,"line":81},[3212,3216,3220,3224,3229,3233,3238,3242,3246],{"type":993,"tag":1025,"props":3213,"children":3214},{"style":1048},[3215],{"type":998,"value":1273},{"type":993,"tag":1025,"props":3217,"children":3218},{"style":1054},[3219],{"type":998,"value":1057},{"type":993,"tag":1025,"props":3221,"children":3222},{"style":1074},[3223],{"type":998,"value":1201},{"type":993,"tag":1025,"props":3225,"children":3226},{"style":1060},[3227],{"type":998,"value":3228},"\"Row sum: ",{"type":993,"tag":1025,"props":3230,"children":3231},{"style":1048},[3232],{"type":998,"value":1211},{"type":993,"tag":1025,"props":3234,"children":3235},{"style":1054},[3236],{"type":998,"value":3237},"row_sum",{"type":993,"tag":1025,"props":3239,"children":3240},{"style":1048},[3241],{"type":998,"value":1221},{"type":993,"tag":1025,"props":3243,"children":3244},{"style":1060},[3245],{"type":998,"value":1206},{"type":993,"tag":1025,"props":3247,"children":3248},{"style":1054},[3249],{"type":998,"value":1068},{"type":993,"tag":3251,"props":3252,"children":3254},"content-exercise",{":widget-view":3253,"category":6,"id":264},"true",[],{"type":993,"tag":1508,"props":3256,"children":3258},{"id":3257},"quick-nested-loop-practice",[3259],{"type":998,"value":3260},"Quick Nested Loop Practice 🔄",{"type":993,"tag":1000,"props":3262,"children":3263},{},[3264],{"type":998,"value":3265},"Let's practice creating a number pyramid pattern!",{"type":993,"tag":3267,"props":3268,"children":3271},"exercise",{"hint":3269,"prompt":3270},"Use the outer loop for rows and the inner loop to print numbers from 1 to the current row!","Create a number pyramid where each row shows numbers from 1 up to the row number.",[3272],{"type":993,"tag":1015,"props":3273,"children":3275},{"className":1017,"code":3274,"language":6,"meta":8,"style":8},"# Nested Loop Practice - Number pyramid!\n\n# Create this pattern:\n# 1\n# 12\n# 123\n# 1234\n# 12345\n\n# TODO: Your code here: write nested loops to create the number pyramid\n",[3276],{"type":993,"tag":1021,"props":3277,"children":3278},{"__ignoreMap":8},[3279,3287,3294,3302,3310,3318,3326,3334,3342,3349],{"type":993,"tag":1025,"props":3280,"children":3281},{"class":1027,"line":12},[3282],{"type":993,"tag":1025,"props":3283,"children":3284},{"style":1031},[3285],{"type":998,"value":3286},"# Nested Loop Practice - Number pyramid!\n",{"type":993,"tag":1025,"props":3288,"children":3289},{"class":1027,"line":27},[3290],{"type":993,"tag":1025,"props":3291,"children":3292},{"emptyLinePlaceholder":13},[3293],{"type":998,"value":1291},{"type":993,"tag":1025,"props":3295,"children":3296},{"class":1027,"line":36},[3297],{"type":993,"tag":1025,"props":3298,"children":3299},{"style":1031},[3300],{"type":998,"value":3301},"# Create this pattern:\n",{"type":993,"tag":1025,"props":3303,"children":3304},{"class":1027,"line":45},[3305],{"type":993,"tag":1025,"props":3306,"children":3307},{"style":1031},[3308],{"type":998,"value":3309},"# 1\n",{"type":993,"tag":1025,"props":3311,"children":3312},{"class":1027,"line":54},[3313],{"type":993,"tag":1025,"props":3314,"children":3315},{"style":1031},[3316],{"type":998,"value":3317},"# 12\n",{"type":993,"tag":1025,"props":3319,"children":3320},{"class":1027,"line":63},[3321],{"type":993,"tag":1025,"props":3322,"children":3323},{"style":1031},[3324],{"type":998,"value":3325},"# 123\n",{"type":993,"tag":1025,"props":3327,"children":3328},{"class":1027,"line":72},[3329],{"type":993,"tag":1025,"props":3330,"children":3331},{"style":1031},[3332],{"type":998,"value":3333},"# 1234\n",{"type":993,"tag":1025,"props":3335,"children":3336},{"class":1027,"line":81},[3337],{"type":993,"tag":1025,"props":3338,"children":3339},{"style":1031},[3340],{"type":998,"value":3341},"# 12345\n",{"type":993,"tag":1025,"props":3343,"children":3344},{"class":1027,"line":91},[3345],{"type":993,"tag":1025,"props":3346,"children":3347},{"emptyLinePlaceholder":13},[3348],{"type":998,"value":1291},{"type":993,"tag":1025,"props":3350,"children":3351},{"class":1027,"line":100},[3352,3357,3362],{"type":993,"tag":1025,"props":3353,"children":3354},{"style":1031},[3355],{"type":998,"value":3356},"# ",{"type":993,"tag":1025,"props":3358,"children":3359},{"style":1074},[3360],{"type":998,"value":3361},"TODO",{"type":993,"tag":1025,"props":3363,"children":3364},{"style":1031},[3365],{"type":998,"value":3366},": Your code here: write nested loops to create the number pyramid\n",{"type":993,"tag":1597,"props":3368,"children":3370},{"id":3369},"solution-and-explanation",[3371],{"type":998,"value":3372},"Solution and Explanation 💡",{"type":993,"tag":3374,"props":3375,"children":3376},"details",{},[3377,3385,3558,3566],{"type":993,"tag":3378,"props":3379,"children":3382},"summary",{"className":3380},[3381],"cursor-pointer",[3383],{"type":998,"value":3384},"Click to see the complete solution",{"type":993,"tag":1011,"props":3386,"children":3387},{},[3388],{"type":993,"tag":1015,"props":3389,"children":3391},{"className":1017,"code":3390,"language":6,"meta":8,"style":8},"# Nested Loop Practice - Solution\n\n# Create a number pyramid\nfor i in range(1, 6):  # Rows 1 to 5\n    for j in range(1, i + 1):  # Numbers 1 to current row\n        print(j, end=\"\")\n    print()  # New line after each row\n",[3392],{"type":993,"tag":1021,"props":3393,"children":3394},{"__ignoreMap":8},[3395,3403,3410,3418,3463,3514,3543],{"type":993,"tag":1025,"props":3396,"children":3397},{"class":1027,"line":12},[3398],{"type":993,"tag":1025,"props":3399,"children":3400},{"style":1031},[3401],{"type":998,"value":3402},"# Nested Loop Practice - Solution\n",{"type":993,"tag":1025,"props":3404,"children":3405},{"class":1027,"line":27},[3406],{"type":993,"tag":1025,"props":3407,"children":3408},{"emptyLinePlaceholder":13},[3409],{"type":998,"value":1291},{"type":993,"tag":1025,"props":3411,"children":3412},{"class":1027,"line":36},[3413],{"type":993,"tag":1025,"props":3414,"children":3415},{"style":1031},[3416],{"type":998,"value":3417},"# Create a number pyramid\n",{"type":993,"tag":1025,"props":3419,"children":3420},{"class":1027,"line":45},[3421,3425,3429,3433,3437,3441,3445,3449,3453,3458],{"type":993,"tag":1025,"props":3422,"children":3423},{"style":1074},[3424],{"type":998,"value":1077},{"type":993,"tag":1025,"props":3426,"children":3427},{"style":1054},[3428],{"type":998,"value":1082},{"type":993,"tag":1025,"props":3430,"children":3431},{"style":1074},[3432],{"type":998,"value":1087},{"type":993,"tag":1025,"props":3434,"children":3435},{"style":1048},[3436],{"type":998,"value":1092},{"type":993,"tag":1025,"props":3438,"children":3439},{"style":1054},[3440],{"type":998,"value":1057},{"type":993,"tag":1025,"props":3442,"children":3443},{"style":1048},[3444],{"type":998,"value":1101},{"type":993,"tag":1025,"props":3446,"children":3447},{"style":1054},[3448],{"type":998,"value":1106},{"type":993,"tag":1025,"props":3450,"children":3451},{"style":1048},[3452],{"type":998,"value":1365},{"type":993,"tag":1025,"props":3454,"children":3455},{"style":1054},[3456],{"type":998,"value":3457},"):  ",{"type":993,"tag":1025,"props":3459,"children":3460},{"style":1031},[3461],{"type":998,"value":3462},"# Rows 1 to 5\n",{"type":993,"tag":1025,"props":3464,"children":3465},{"class":1027,"line":54},[3466,3470,3474,3478,3482,3486,3490,3495,3500,3505,3509],{"type":993,"tag":1025,"props":3467,"children":3468},{"style":1074},[3469],{"type":998,"value":1124},{"type":993,"tag":1025,"props":3471,"children":3472},{"style":1054},[3473],{"type":998,"value":1129},{"type":993,"tag":1025,"props":3475,"children":3476},{"style":1074},[3477],{"type":998,"value":1087},{"type":993,"tag":1025,"props":3479,"children":3480},{"style":1048},[3481],{"type":998,"value":1092},{"type":993,"tag":1025,"props":3483,"children":3484},{"style":1054},[3485],{"type":998,"value":1057},{"type":993,"tag":1025,"props":3487,"children":3488},{"style":1048},[3489],{"type":998,"value":1101},{"type":993,"tag":1025,"props":3491,"children":3492},{"style":1054},[3493],{"type":998,"value":3494},", i ",{"type":993,"tag":1025,"props":3496,"children":3497},{"style":1074},[3498],{"type":998,"value":3499},"+",{"type":993,"tag":1025,"props":3501,"children":3502},{"style":1048},[3503],{"type":998,"value":3504}," 1",{"type":993,"tag":1025,"props":3506,"children":3507},{"style":1054},[3508],{"type":998,"value":3457},{"type":993,"tag":1025,"props":3510,"children":3511},{"style":1031},[3512],{"type":998,"value":3513},"# Numbers 1 to current row\n",{"type":993,"tag":1025,"props":3515,"children":3516},{"class":1027,"line":63},[3517,3521,3526,3530,3534,3539],{"type":993,"tag":1025,"props":3518,"children":3519},{"style":1048},[3520],{"type":998,"value":1192},{"type":993,"tag":1025,"props":3522,"children":3523},{"style":1054},[3524],{"type":998,"value":3525},"(j, ",{"type":993,"tag":1025,"props":3527,"children":3528},{"style":1474},[3529],{"type":998,"value":1477},{"type":993,"tag":1025,"props":3531,"children":3532},{"style":1074},[3533],{"type":998,"value":1170},{"type":993,"tag":1025,"props":3535,"children":3536},{"style":1060},[3537],{"type":998,"value":3538},"\"\"",{"type":993,"tag":1025,"props":3540,"children":3541},{"style":1054},[3542],{"type":998,"value":1068},{"type":993,"tag":1025,"props":3544,"children":3545},{"class":1027,"line":72},[3546,3550,3554],{"type":993,"tag":1025,"props":3547,"children":3548},{"style":1048},[3549],{"type":998,"value":1273},{"type":993,"tag":1025,"props":3551,"children":3552},{"style":1054},[3553],{"type":998,"value":1278},{"type":993,"tag":1025,"props":3555,"children":3556},{"style":1031},[3557],{"type":998,"value":1506},{"type":993,"tag":1000,"props":3559,"children":3560},{},[3561],{"type":993,"tag":1530,"props":3562,"children":3563},{},[3564],{"type":998,"value":3565},"Key Learning Points:",{"type":993,"tag":1536,"props":3567,"children":3568},{},[3569,3581,3592,3603],{"type":993,"tag":1540,"props":3570,"children":3571},{},[3572,3574,3579],{"type":998,"value":3573},"📌 ",{"type":993,"tag":1530,"props":3575,"children":3576},{},[3577],{"type":998,"value":3578},"Row control",{"type":998,"value":3580},": Outer loop determines how many rows to create",{"type":993,"tag":1540,"props":3582,"children":3583},{},[3584,3585,3590],{"type":998,"value":3573},{"type":993,"tag":1530,"props":3586,"children":3587},{},[3588],{"type":998,"value":3589},"Number sequence",{"type":998,"value":3591},": Inner loop prints consecutive numbers starting from 1",{"type":993,"tag":1540,"props":3593,"children":3594},{},[3595,3596,3601],{"type":998,"value":3573},{"type":993,"tag":1530,"props":3597,"children":3598},{},[3599],{"type":998,"value":3600},"Range relationship",{"type":998,"value":3602},": Inner range depends on outer loop variable (i + 1)",{"type":993,"tag":1540,"props":3604,"children":3605},{},[3606,3607,3612],{"type":998,"value":3573},{"type":993,"tag":1530,"props":3608,"children":3609},{},[3610],{"type":998,"value":3611},"Pattern building",{"type":998,"value":3613},": Each row builds upon the previous with one more element",{"type":993,"tag":1508,"props":3615,"children":3617},{"id":3616},"creating-patterns-and-shapes",[3618],{"type":998,"value":3619},"Creating Patterns and Shapes",{"type":993,"tag":1000,"props":3621,"children":3622},{},[3623],{"type":998,"value":3624},"Nested loops are excellent for generating patterns, shapes, and visual representations. The outer loop typically controls rows while the inner loop controls columns or elements within each row.",{"type":993,"tag":1520,"props":3626,"children":3630},{"emoji":3627,"title":3628,"type":3629},"🎨","Pattern Generation Techniques","info",[3631,3639,3662,3670,3693],{"type":993,"tag":1000,"props":3632,"children":3633},{},[3634],{"type":993,"tag":1530,"props":3635,"children":3636},{},[3637],{"type":998,"value":3638},"Pattern Design Principles:",{"type":993,"tag":1536,"props":3640,"children":3641},{},[3642,3647,3652,3657],{"type":993,"tag":1540,"props":3643,"children":3644},{},[3645],{"type":998,"value":3646},"Outer loop controls vertical structure (rows)",{"type":993,"tag":1540,"props":3648,"children":3649},{},[3650],{"type":998,"value":3651},"Inner loop controls horizontal structure (columns/elements)",{"type":993,"tag":1540,"props":3653,"children":3654},{},[3655],{"type":998,"value":3656},"Mathematical relationships create geometric patterns",{"type":993,"tag":1540,"props":3658,"children":3659},{},[3660],{"type":998,"value":3661},"Conditional logic adds complexity and variation",{"type":993,"tag":1000,"props":3663,"children":3664},{},[3665],{"type":993,"tag":1530,"props":3666,"children":3667},{},[3668],{"type":998,"value":3669},"Common Pattern Types:",{"type":993,"tag":1536,"props":3671,"children":3672},{},[3673,3678,3683,3688],{"type":993,"tag":1540,"props":3674,"children":3675},{},[3676],{"type":998,"value":3677},"Triangular shapes (increasing/decreasing elements)",{"type":993,"tag":1540,"props":3679,"children":3680},{},[3681],{"type":998,"value":3682},"Rectangular grids and tables",{"type":993,"tag":1540,"props":3684,"children":3685},{},[3686],{"type":998,"value":3687},"Diamond and pyramid patterns",{"type":993,"tag":1540,"props":3689,"children":3690},{},[3691],{"type":998,"value":3692},"Mathematical sequences and progressions",{"type":993,"tag":1000,"props":3694,"children":3695},{},[3696,3701],{"type":993,"tag":1530,"props":3697,"children":3698},{},[3699],{"type":998,"value":3700},"Creative Applications:",{"type":998,"value":3702}," ASCII art, data visualization, formatting tables",{"type":993,"tag":1597,"props":3704,"children":3706},{"id":3705},"triangular-shape-construction",[3707],{"type":998,"value":3708},"Triangular Shape Construction",{"type":993,"tag":1000,"props":3710,"children":3711},{},[3712],{"type":998,"value":3713},"Progressive element addition creating right-angled triangular patterns:",{"type":993,"tag":1011,"props":3715,"children":3716},{},[3717],{"type":993,"tag":1015,"props":3718,"children":3720},{"className":1017,"code":3719,"language":6,"meta":8,"style":8},"# Right triangle pattern\nprint(\"Right triangle:\")\nfor i in range(5):\n    for j in range(i + 1):\n        print(\"*\", end=\"\")\n    print()\n",[3721],{"type":993,"tag":1021,"props":3722,"children":3723},{"__ignoreMap":8},[3724,3732,3752,3783,3819,3855],{"type":993,"tag":1025,"props":3725,"children":3726},{"class":1027,"line":12},[3727],{"type":993,"tag":1025,"props":3728,"children":3729},{"style":1031},[3730],{"type":998,"value":3731},"# Right triangle pattern\n",{"type":993,"tag":1025,"props":3733,"children":3734},{"class":1027,"line":27},[3735,3739,3743,3748],{"type":993,"tag":1025,"props":3736,"children":3737},{"style":1048},[3738],{"type":998,"value":1051},{"type":993,"tag":1025,"props":3740,"children":3741},{"style":1054},[3742],{"type":998,"value":1057},{"type":993,"tag":1025,"props":3744,"children":3745},{"style":1060},[3746],{"type":998,"value":3747},"\"Right triangle:\"",{"type":993,"tag":1025,"props":3749,"children":3750},{"style":1054},[3751],{"type":998,"value":1068},{"type":993,"tag":1025,"props":3753,"children":3754},{"class":1027,"line":36},[3755,3759,3763,3767,3771,3775,3779],{"type":993,"tag":1025,"props":3756,"children":3757},{"style":1074},[3758],{"type":998,"value":1077},{"type":993,"tag":1025,"props":3760,"children":3761},{"style":1054},[3762],{"type":998,"value":1082},{"type":993,"tag":1025,"props":3764,"children":3765},{"style":1074},[3766],{"type":998,"value":1087},{"type":993,"tag":1025,"props":3768,"children":3769},{"style":1048},[3770],{"type":998,"value":1092},{"type":993,"tag":1025,"props":3772,"children":3773},{"style":1054},[3774],{"type":998,"value":1057},{"type":993,"tag":1025,"props":3776,"children":3777},{"style":1048},[3778],{"type":998,"value":1356},{"type":993,"tag":1025,"props":3780,"children":3781},{"style":1054},[3782],{"type":998,"value":1116},{"type":993,"tag":1025,"props":3784,"children":3785},{"class":1027,"line":45},[3786,3790,3794,3798,3802,3807,3811,3815],{"type":993,"tag":1025,"props":3787,"children":3788},{"style":1074},[3789],{"type":998,"value":1124},{"type":993,"tag":1025,"props":3791,"children":3792},{"style":1054},[3793],{"type":998,"value":1129},{"type":993,"tag":1025,"props":3795,"children":3796},{"style":1074},[3797],{"type":998,"value":1087},{"type":993,"tag":1025,"props":3799,"children":3800},{"style":1048},[3801],{"type":998,"value":1092},{"type":993,"tag":1025,"props":3803,"children":3804},{"style":1054},[3805],{"type":998,"value":3806},"(i ",{"type":993,"tag":1025,"props":3808,"children":3809},{"style":1074},[3810],{"type":998,"value":3499},{"type":993,"tag":1025,"props":3812,"children":3813},{"style":1048},[3814],{"type":998,"value":3504},{"type":993,"tag":1025,"props":3816,"children":3817},{"style":1054},[3818],{"type":998,"value":1116},{"type":993,"tag":1025,"props":3820,"children":3821},{"class":1027,"line":54},[3822,3826,3830,3835,3839,3843,3847,3851],{"type":993,"tag":1025,"props":3823,"children":3824},{"style":1048},[3825],{"type":998,"value":1192},{"type":993,"tag":1025,"props":3827,"children":3828},{"style":1054},[3829],{"type":998,"value":1057},{"type":993,"tag":1025,"props":3831,"children":3832},{"style":1060},[3833],{"type":998,"value":3834},"\"*\"",{"type":993,"tag":1025,"props":3836,"children":3837},{"style":1054},[3838],{"type":998,"value":1106},{"type":993,"tag":1025,"props":3840,"children":3841},{"style":1474},[3842],{"type":998,"value":1477},{"type":993,"tag":1025,"props":3844,"children":3845},{"style":1074},[3846],{"type":998,"value":1170},{"type":993,"tag":1025,"props":3848,"children":3849},{"style":1060},[3850],{"type":998,"value":3538},{"type":993,"tag":1025,"props":3852,"children":3853},{"style":1054},[3854],{"type":998,"value":1068},{"type":993,"tag":1025,"props":3856,"children":3857},{"class":1027,"line":63},[3858,3862],{"type":993,"tag":1025,"props":3859,"children":3860},{"style":1048},[3861],{"type":998,"value":1273},{"type":993,"tag":1025,"props":3863,"children":3864},{"style":1054},[3865],{"type":998,"value":3866},"()\n",{"type":993,"tag":1597,"props":3868,"children":3870},{"id":3869},"numeric-sequence-patterns",[3871],{"type":998,"value":3872},"Numeric Sequence Patterns",{"type":993,"tag":1000,"props":3874,"children":3875},{},[3876],{"type":998,"value":3877},"Mathematical progression display using nested iteration:",{"type":993,"tag":1011,"props":3879,"children":3880},{},[3881],{"type":993,"tag":1015,"props":3882,"children":3884},{"className":1017,"code":3883,"language":6,"meta":8,"style":8},"# Number pyramid\nprint(\"Number pyramid:\")\nfor i in range(1, 6):\n    for j in range(1, i + 1):\n        print(j, end=\"\")\n    print()\n",[3885],{"type":993,"tag":1021,"props":3886,"children":3887},{"__ignoreMap":8},[3888,3896,3916,3955,3998,4025],{"type":993,"tag":1025,"props":3889,"children":3890},{"class":1027,"line":12},[3891],{"type":993,"tag":1025,"props":3892,"children":3893},{"style":1031},[3894],{"type":998,"value":3895},"# Number pyramid\n",{"type":993,"tag":1025,"props":3897,"children":3898},{"class":1027,"line":27},[3899,3903,3907,3912],{"type":993,"tag":1025,"props":3900,"children":3901},{"style":1048},[3902],{"type":998,"value":1051},{"type":993,"tag":1025,"props":3904,"children":3905},{"style":1054},[3906],{"type":998,"value":1057},{"type":993,"tag":1025,"props":3908,"children":3909},{"style":1060},[3910],{"type":998,"value":3911},"\"Number pyramid:\"",{"type":993,"tag":1025,"props":3913,"children":3914},{"style":1054},[3915],{"type":998,"value":1068},{"type":993,"tag":1025,"props":3917,"children":3918},{"class":1027,"line":36},[3919,3923,3927,3931,3935,3939,3943,3947,3951],{"type":993,"tag":1025,"props":3920,"children":3921},{"style":1074},[3922],{"type":998,"value":1077},{"type":993,"tag":1025,"props":3924,"children":3925},{"style":1054},[3926],{"type":998,"value":1082},{"type":993,"tag":1025,"props":3928,"children":3929},{"style":1074},[3930],{"type":998,"value":1087},{"type":993,"tag":1025,"props":3932,"children":3933},{"style":1048},[3934],{"type":998,"value":1092},{"type":993,"tag":1025,"props":3936,"children":3937},{"style":1054},[3938],{"type":998,"value":1057},{"type":993,"tag":1025,"props":3940,"children":3941},{"style":1048},[3942],{"type":998,"value":1101},{"type":993,"tag":1025,"props":3944,"children":3945},{"style":1054},[3946],{"type":998,"value":1106},{"type":993,"tag":1025,"props":3948,"children":3949},{"style":1048},[3950],{"type":998,"value":1365},{"type":993,"tag":1025,"props":3952,"children":3953},{"style":1054},[3954],{"type":998,"value":1116},{"type":993,"tag":1025,"props":3956,"children":3957},{"class":1027,"line":45},[3958,3962,3966,3970,3974,3978,3982,3986,3990,3994],{"type":993,"tag":1025,"props":3959,"children":3960},{"style":1074},[3961],{"type":998,"value":1124},{"type":993,"tag":1025,"props":3963,"children":3964},{"style":1054},[3965],{"type":998,"value":1129},{"type":993,"tag":1025,"props":3967,"children":3968},{"style":1074},[3969],{"type":998,"value":1087},{"type":993,"tag":1025,"props":3971,"children":3972},{"style":1048},[3973],{"type":998,"value":1092},{"type":993,"tag":1025,"props":3975,"children":3976},{"style":1054},[3977],{"type":998,"value":1057},{"type":993,"tag":1025,"props":3979,"children":3980},{"style":1048},[3981],{"type":998,"value":1101},{"type":993,"tag":1025,"props":3983,"children":3984},{"style":1054},[3985],{"type":998,"value":3494},{"type":993,"tag":1025,"props":3987,"children":3988},{"style":1074},[3989],{"type":998,"value":3499},{"type":993,"tag":1025,"props":3991,"children":3992},{"style":1048},[3993],{"type":998,"value":3504},{"type":993,"tag":1025,"props":3995,"children":3996},{"style":1054},[3997],{"type":998,"value":1116},{"type":993,"tag":1025,"props":3999,"children":4000},{"class":1027,"line":54},[4001,4005,4009,4013,4017,4021],{"type":993,"tag":1025,"props":4002,"children":4003},{"style":1048},[4004],{"type":998,"value":1192},{"type":993,"tag":1025,"props":4006,"children":4007},{"style":1054},[4008],{"type":998,"value":3525},{"type":993,"tag":1025,"props":4010,"children":4011},{"style":1474},[4012],{"type":998,"value":1477},{"type":993,"tag":1025,"props":4014,"children":4015},{"style":1074},[4016],{"type":998,"value":1170},{"type":993,"tag":1025,"props":4018,"children":4019},{"style":1060},[4020],{"type":998,"value":3538},{"type":993,"tag":1025,"props":4022,"children":4023},{"style":1054},[4024],{"type":998,"value":1068},{"type":993,"tag":1025,"props":4026,"children":4027},{"class":1027,"line":63},[4028,4032],{"type":993,"tag":1025,"props":4029,"children":4030},{"style":1048},[4031],{"type":998,"value":1273},{"type":993,"tag":1025,"props":4033,"children":4034},{"style":1054},[4035],{"type":998,"value":3866},{"type":993,"tag":1597,"props":4037,"children":4039},{"id":4038},"formatted-table-generation",[4040],{"type":998,"value":4041},"Formatted Table Generation",{"type":993,"tag":1000,"props":4043,"children":4044},{},[4045],{"type":998,"value":4046},"Structured data presentation with alignment and mathematical relationships:",{"type":993,"tag":1011,"props":4048,"children":4049},{},[4050],{"type":993,"tag":1015,"props":4051,"children":4053},{"className":1017,"code":4052,"language":6,"meta":8,"style":8},"# Multiplication table grid\nprint(\"Multiplication table:\")\nprint(\"   \", end=\"\")\nfor i in range(1, 6):\n    print(f\"{i:3}\", end=\"\")\nprint()\n\nfor i in range(1, 6):\n    print(f\"{i:2}:\", end=\"\")\n    for j in range(1, 6):\n        print(f\"{i*j:3}\", end=\"\")\n    print()\n",[4054],{"type":993,"tag":1021,"props":4055,"children":4056},{"__ignoreMap":8},[4057,4065,4085,4121,4160,4220,4231,4238,4277,4338,4377,4444],{"type":993,"tag":1025,"props":4058,"children":4059},{"class":1027,"line":12},[4060],{"type":993,"tag":1025,"props":4061,"children":4062},{"style":1031},[4063],{"type":998,"value":4064},"# Multiplication table grid\n",{"type":993,"tag":1025,"props":4066,"children":4067},{"class":1027,"line":27},[4068,4072,4076,4081],{"type":993,"tag":1025,"props":4069,"children":4070},{"style":1048},[4071],{"type":998,"value":1051},{"type":993,"tag":1025,"props":4073,"children":4074},{"style":1054},[4075],{"type":998,"value":1057},{"type":993,"tag":1025,"props":4077,"children":4078},{"style":1060},[4079],{"type":998,"value":4080},"\"Multiplication table:\"",{"type":993,"tag":1025,"props":4082,"children":4083},{"style":1054},[4084],{"type":998,"value":1068},{"type":993,"tag":1025,"props":4086,"children":4087},{"class":1027,"line":36},[4088,4092,4096,4101,4105,4109,4113,4117],{"type":993,"tag":1025,"props":4089,"children":4090},{"style":1048},[4091],{"type":998,"value":1051},{"type":993,"tag":1025,"props":4093,"children":4094},{"style":1054},[4095],{"type":998,"value":1057},{"type":993,"tag":1025,"props":4097,"children":4098},{"style":1060},[4099],{"type":998,"value":4100},"\"   \"",{"type":993,"tag":1025,"props":4102,"children":4103},{"style":1054},[4104],{"type":998,"value":1106},{"type":993,"tag":1025,"props":4106,"children":4107},{"style":1474},[4108],{"type":998,"value":1477},{"type":993,"tag":1025,"props":4110,"children":4111},{"style":1074},[4112],{"type":998,"value":1170},{"type":993,"tag":1025,"props":4114,"children":4115},{"style":1060},[4116],{"type":998,"value":3538},{"type":993,"tag":1025,"props":4118,"children":4119},{"style":1054},[4120],{"type":998,"value":1068},{"type":993,"tag":1025,"props":4122,"children":4123},{"class":1027,"line":45},[4124,4128,4132,4136,4140,4144,4148,4152,4156],{"type":993,"tag":1025,"props":4125,"children":4126},{"style":1074},[4127],{"type":998,"value":1077},{"type":993,"tag":1025,"props":4129,"children":4130},{"style":1054},[4131],{"type":998,"value":1082},{"type":993,"tag":1025,"props":4133,"children":4134},{"style":1074},[4135],{"type":998,"value":1087},{"type":993,"tag":1025,"props":4137,"children":4138},{"style":1048},[4139],{"type":998,"value":1092},{"type":993,"tag":1025,"props":4141,"children":4142},{"style":1054},[4143],{"type":998,"value":1057},{"type":993,"tag":1025,"props":4145,"children":4146},{"style":1048},[4147],{"type":998,"value":1101},{"type":993,"tag":1025,"props":4149,"children":4150},{"style":1054},[4151],{"type":998,"value":1106},{"type":993,"tag":1025,"props":4153,"children":4154},{"style":1048},[4155],{"type":998,"value":1365},{"type":993,"tag":1025,"props":4157,"children":4158},{"style":1054},[4159],{"type":998,"value":1116},{"type":993,"tag":1025,"props":4161,"children":4162},{"class":1027,"line":54},[4163,4167,4171,4175,4179,4183,4187,4192,4196,4200,4204,4208,4212,4216],{"type":993,"tag":1025,"props":4164,"children":4165},{"style":1048},[4166],{"type":998,"value":1273},{"type":993,"tag":1025,"props":4168,"children":4169},{"style":1054},[4170],{"type":998,"value":1057},{"type":993,"tag":1025,"props":4172,"children":4173},{"style":1074},[4174],{"type":998,"value":1201},{"type":993,"tag":1025,"props":4176,"children":4177},{"style":1060},[4178],{"type":998,"value":1206},{"type":993,"tag":1025,"props":4180,"children":4181},{"style":1048},[4182],{"type":998,"value":1211},{"type":993,"tag":1025,"props":4184,"children":4185},{"style":1054},[4186],{"type":998,"value":1216},{"type":993,"tag":1025,"props":4188,"children":4189},{"style":1074},[4190],{"type":998,"value":4191},":3",{"type":993,"tag":1025,"props":4193,"children":4194},{"style":1048},[4195],{"type":998,"value":1221},{"type":993,"tag":1025,"props":4197,"children":4198},{"style":1060},[4199],{"type":998,"value":1206},{"type":993,"tag":1025,"props":4201,"children":4202},{"style":1054},[4203],{"type":998,"value":1106},{"type":993,"tag":1025,"props":4205,"children":4206},{"style":1474},[4207],{"type":998,"value":1477},{"type":993,"tag":1025,"props":4209,"children":4210},{"style":1074},[4211],{"type":998,"value":1170},{"type":993,"tag":1025,"props":4213,"children":4214},{"style":1060},[4215],{"type":998,"value":3538},{"type":993,"tag":1025,"props":4217,"children":4218},{"style":1054},[4219],{"type":998,"value":1068},{"type":993,"tag":1025,"props":4221,"children":4222},{"class":1027,"line":63},[4223,4227],{"type":993,"tag":1025,"props":4224,"children":4225},{"style":1048},[4226],{"type":998,"value":1051},{"type":993,"tag":1025,"props":4228,"children":4229},{"style":1054},[4230],{"type":998,"value":3866},{"type":993,"tag":1025,"props":4232,"children":4233},{"class":1027,"line":72},[4234],{"type":993,"tag":1025,"props":4235,"children":4236},{"emptyLinePlaceholder":13},[4237],{"type":998,"value":1291},{"type":993,"tag":1025,"props":4239,"children":4240},{"class":1027,"line":81},[4241,4245,4249,4253,4257,4261,4265,4269,4273],{"type":993,"tag":1025,"props":4242,"children":4243},{"style":1074},[4244],{"type":998,"value":1077},{"type":993,"tag":1025,"props":4246,"children":4247},{"style":1054},[4248],{"type":998,"value":1082},{"type":993,"tag":1025,"props":4250,"children":4251},{"style":1074},[4252],{"type":998,"value":1087},{"type":993,"tag":1025,"props":4254,"children":4255},{"style":1048},[4256],{"type":998,"value":1092},{"type":993,"tag":1025,"props":4258,"children":4259},{"style":1054},[4260],{"type":998,"value":1057},{"type":993,"tag":1025,"props":4262,"children":4263},{"style":1048},[4264],{"type":998,"value":1101},{"type":993,"tag":1025,"props":4266,"children":4267},{"style":1054},[4268],{"type":998,"value":1106},{"type":993,"tag":1025,"props":4270,"children":4271},{"style":1048},[4272],{"type":998,"value":1365},{"type":993,"tag":1025,"props":4274,"children":4275},{"style":1054},[4276],{"type":998,"value":1116},{"type":993,"tag":1025,"props":4278,"children":4279},{"class":1027,"line":91},[4280,4284,4288,4292,4296,4300,4304,4309,4313,4318,4322,4326,4330,4334],{"type":993,"tag":1025,"props":4281,"children":4282},{"style":1048},[4283],{"type":998,"value":1273},{"type":993,"tag":1025,"props":4285,"children":4286},{"style":1054},[4287],{"type":998,"value":1057},{"type":993,"tag":1025,"props":4289,"children":4290},{"style":1074},[4291],{"type":998,"value":1201},{"type":993,"tag":1025,"props":4293,"children":4294},{"style":1060},[4295],{"type":998,"value":1206},{"type":993,"tag":1025,"props":4297,"children":4298},{"style":1048},[4299],{"type":998,"value":1211},{"type":993,"tag":1025,"props":4301,"children":4302},{"style":1054},[4303],{"type":998,"value":1216},{"type":993,"tag":1025,"props":4305,"children":4306},{"style":1074},[4307],{"type":998,"value":4308},":2",{"type":993,"tag":1025,"props":4310,"children":4311},{"style":1048},[4312],{"type":998,"value":1221},{"type":993,"tag":1025,"props":4314,"children":4315},{"style":1060},[4316],{"type":998,"value":4317},":\"",{"type":993,"tag":1025,"props":4319,"children":4320},{"style":1054},[4321],{"type":998,"value":1106},{"type":993,"tag":1025,"props":4323,"children":4324},{"style":1474},[4325],{"type":998,"value":1477},{"type":993,"tag":1025,"props":4327,"children":4328},{"style":1074},[4329],{"type":998,"value":1170},{"type":993,"tag":1025,"props":4331,"children":4332},{"style":1060},[4333],{"type":998,"value":3538},{"type":993,"tag":1025,"props":4335,"children":4336},{"style":1054},[4337],{"type":998,"value":1068},{"type":993,"tag":1025,"props":4339,"children":4340},{"class":1027,"line":100},[4341,4345,4349,4353,4357,4361,4365,4369,4373],{"type":993,"tag":1025,"props":4342,"children":4343},{"style":1074},[4344],{"type":998,"value":1124},{"type":993,"tag":1025,"props":4346,"children":4347},{"style":1054},[4348],{"type":998,"value":1129},{"type":993,"tag":1025,"props":4350,"children":4351},{"style":1074},[4352],{"type":998,"value":1087},{"type":993,"tag":1025,"props":4354,"children":4355},{"style":1048},[4356],{"type":998,"value":1092},{"type":993,"tag":1025,"props":4358,"children":4359},{"style":1054},[4360],{"type":998,"value":1057},{"type":993,"tag":1025,"props":4362,"children":4363},{"style":1048},[4364],{"type":998,"value":1101},{"type":993,"tag":1025,"props":4366,"children":4367},{"style":1054},[4368],{"type":998,"value":1106},{"type":993,"tag":1025,"props":4370,"children":4371},{"style":1048},[4372],{"type":998,"value":1365},{"type":993,"tag":1025,"props":4374,"children":4375},{"style":1054},[4376],{"type":998,"value":1116},{"type":993,"tag":1025,"props":4378,"children":4379},{"class":1027,"line":109},[4380,4384,4388,4392,4396,4400,4404,4408,4412,4416,4420,4424,4428,4432,4436,4440],{"type":993,"tag":1025,"props":4381,"children":4382},{"style":1048},[4383],{"type":998,"value":1192},{"type":993,"tag":1025,"props":4385,"children":4386},{"style":1054},[4387],{"type":998,"value":1057},{"type":993,"tag":1025,"props":4389,"children":4390},{"style":1074},[4391],{"type":998,"value":1201},{"type":993,"tag":1025,"props":4393,"children":4394},{"style":1060},[4395],{"type":998,"value":1206},{"type":993,"tag":1025,"props":4397,"children":4398},{"style":1048},[4399],{"type":998,"value":1211},{"type":993,"tag":1025,"props":4401,"children":4402},{"style":1054},[4403],{"type":998,"value":1216},{"type":993,"tag":1025,"props":4405,"children":4406},{"style":1074},[4407],{"type":998,"value":1179},{"type":993,"tag":1025,"props":4409,"children":4410},{"style":1054},[4411],{"type":998,"value":1235},{"type":993,"tag":1025,"props":4413,"children":4414},{"style":1074},[4415],{"type":998,"value":4191},{"type":993,"tag":1025,"props":4417,"children":4418},{"style":1048},[4419],{"type":998,"value":1221},{"type":993,"tag":1025,"props":4421,"children":4422},{"style":1060},[4423],{"type":998,"value":1206},{"type":993,"tag":1025,"props":4425,"children":4426},{"style":1054},[4427],{"type":998,"value":1106},{"type":993,"tag":1025,"props":4429,"children":4430},{"style":1474},[4431],{"type":998,"value":1477},{"type":993,"tag":1025,"props":4433,"children":4434},{"style":1074},[4435],{"type":998,"value":1170},{"type":993,"tag":1025,"props":4437,"children":4438},{"style":1060},[4439],{"type":998,"value":3538},{"type":993,"tag":1025,"props":4441,"children":4442},{"style":1054},[4443],{"type":998,"value":1068},{"type":993,"tag":1025,"props":4445,"children":4446},{"class":1027,"line":118},[4447,4451],{"type":993,"tag":1025,"props":4448,"children":4449},{"style":1048},[4450],{"type":998,"value":1273},{"type":993,"tag":1025,"props":4452,"children":4453},{"style":1054},[4454],{"type":998,"value":3866},{"type":993,"tag":1597,"props":4456,"children":4458},{"id":4457},"alternating-pattern-creation",[4459],{"type":998,"value":4460},"Alternating Pattern Creation",{"type":993,"tag":1000,"props":4462,"children":4463},{},[4464],{"type":998,"value":4465},"Conditional pattern generation using mathematical modulo operations:",{"type":993,"tag":1011,"props":4467,"children":4468},{},[4469],{"type":993,"tag":1015,"props":4470,"children":4472},{"className":1017,"code":4471,"language":6,"meta":8,"style":8},"# Chess board pattern\nprint(\"Chess board pattern:\")\nfor i in range(8):\n    for j in range(8):\n        if (i + j) % 2 == 0:\n            print(\"□\", end=\"\")\n        else:\n            print(\"■\", end=\"\")\n    print()\n",[4473],{"type":993,"tag":1021,"props":4474,"children":4475},{"__ignoreMap":8},[4476,4484,4504,4535,4566,4612,4648,4660,4696],{"type":993,"tag":1025,"props":4477,"children":4478},{"class":1027,"line":12},[4479],{"type":993,"tag":1025,"props":4480,"children":4481},{"style":1031},[4482],{"type":998,"value":4483},"# Chess board pattern\n",{"type":993,"tag":1025,"props":4485,"children":4486},{"class":1027,"line":27},[4487,4491,4495,4500],{"type":993,"tag":1025,"props":4488,"children":4489},{"style":1048},[4490],{"type":998,"value":1051},{"type":993,"tag":1025,"props":4492,"children":4493},{"style":1054},[4494],{"type":998,"value":1057},{"type":993,"tag":1025,"props":4496,"children":4497},{"style":1060},[4498],{"type":998,"value":4499},"\"Chess board pattern:\"",{"type":993,"tag":1025,"props":4501,"children":4502},{"style":1054},[4503],{"type":998,"value":1068},{"type":993,"tag":1025,"props":4505,"children":4506},{"class":1027,"line":36},[4507,4511,4515,4519,4523,4527,4531],{"type":993,"tag":1025,"props":4508,"children":4509},{"style":1074},[4510],{"type":998,"value":1077},{"type":993,"tag":1025,"props":4512,"children":4513},{"style":1054},[4514],{"type":998,"value":1082},{"type":993,"tag":1025,"props":4516,"children":4517},{"style":1074},[4518],{"type":998,"value":1087},{"type":993,"tag":1025,"props":4520,"children":4521},{"style":1048},[4522],{"type":998,"value":1092},{"type":993,"tag":1025,"props":4524,"children":4525},{"style":1054},[4526],{"type":998,"value":1057},{"type":993,"tag":1025,"props":4528,"children":4529},{"style":1048},[4530],{"type":998,"value":1383},{"type":993,"tag":1025,"props":4532,"children":4533},{"style":1054},[4534],{"type":998,"value":1116},{"type":993,"tag":1025,"props":4536,"children":4537},{"class":1027,"line":45},[4538,4542,4546,4550,4554,4558,4562],{"type":993,"tag":1025,"props":4539,"children":4540},{"style":1074},[4541],{"type":998,"value":1124},{"type":993,"tag":1025,"props":4543,"children":4544},{"style":1054},[4545],{"type":998,"value":1129},{"type":993,"tag":1025,"props":4547,"children":4548},{"style":1074},[4549],{"type":998,"value":1087},{"type":993,"tag":1025,"props":4551,"children":4552},{"style":1048},[4553],{"type":998,"value":1092},{"type":993,"tag":1025,"props":4555,"children":4556},{"style":1054},[4557],{"type":998,"value":1057},{"type":993,"tag":1025,"props":4559,"children":4560},{"style":1048},[4561],{"type":998,"value":1383},{"type":993,"tag":1025,"props":4563,"children":4564},{"style":1054},[4565],{"type":998,"value":1116},{"type":993,"tag":1025,"props":4567,"children":4568},{"class":1027,"line":54},[4569,4573,4578,4582,4587,4592,4597,4602,4607],{"type":993,"tag":1025,"props":4570,"children":4571},{"style":1074},[4572],{"type":998,"value":2862},{"type":993,"tag":1025,"props":4574,"children":4575},{"style":1054},[4576],{"type":998,"value":4577}," (i ",{"type":993,"tag":1025,"props":4579,"children":4580},{"style":1074},[4581],{"type":998,"value":3499},{"type":993,"tag":1025,"props":4583,"children":4584},{"style":1054},[4585],{"type":998,"value":4586}," j) ",{"type":993,"tag":1025,"props":4588,"children":4589},{"style":1074},[4590],{"type":998,"value":4591},"%",{"type":993,"tag":1025,"props":4593,"children":4594},{"style":1048},[4595],{"type":998,"value":4596}," 2",{"type":993,"tag":1025,"props":4598,"children":4599},{"style":1074},[4600],{"type":998,"value":4601}," ==",{"type":993,"tag":1025,"props":4603,"children":4604},{"style":1048},[4605],{"type":998,"value":4606}," 0",{"type":993,"tag":1025,"props":4608,"children":4609},{"style":1054},[4610],{"type":998,"value":4611},":\n",{"type":993,"tag":1025,"props":4613,"children":4614},{"class":1027,"line":63},[4615,4619,4623,4628,4632,4636,4640,4644],{"type":993,"tag":1025,"props":4616,"children":4617},{"style":1048},[4618],{"type":998,"value":2885},{"type":993,"tag":1025,"props":4620,"children":4621},{"style":1054},[4622],{"type":998,"value":1057},{"type":993,"tag":1025,"props":4624,"children":4625},{"style":1060},[4626],{"type":998,"value":4627},"\"□\"",{"type":993,"tag":1025,"props":4629,"children":4630},{"style":1054},[4631],{"type":998,"value":1106},{"type":993,"tag":1025,"props":4633,"children":4634},{"style":1474},[4635],{"type":998,"value":1477},{"type":993,"tag":1025,"props":4637,"children":4638},{"style":1074},[4639],{"type":998,"value":1170},{"type":993,"tag":1025,"props":4641,"children":4642},{"style":1060},[4643],{"type":998,"value":3538},{"type":993,"tag":1025,"props":4645,"children":4646},{"style":1054},[4647],{"type":998,"value":1068},{"type":993,"tag":1025,"props":4649,"children":4650},{"class":1027,"line":72},[4651,4656],{"type":993,"tag":1025,"props":4652,"children":4653},{"style":1074},[4654],{"type":998,"value":4655},"        else",{"type":993,"tag":1025,"props":4657,"children":4658},{"style":1054},[4659],{"type":998,"value":4611},{"type":993,"tag":1025,"props":4661,"children":4662},{"class":1027,"line":81},[4663,4667,4671,4676,4680,4684,4688,4692],{"type":993,"tag":1025,"props":4664,"children":4665},{"style":1048},[4666],{"type":998,"value":2885},{"type":993,"tag":1025,"props":4668,"children":4669},{"style":1054},[4670],{"type":998,"value":1057},{"type":993,"tag":1025,"props":4672,"children":4673},{"style":1060},[4674],{"type":998,"value":4675},"\"■\"",{"type":993,"tag":1025,"props":4677,"children":4678},{"style":1054},[4679],{"type":998,"value":1106},{"type":993,"tag":1025,"props":4681,"children":4682},{"style":1474},[4683],{"type":998,"value":1477},{"type":993,"tag":1025,"props":4685,"children":4686},{"style":1074},[4687],{"type":998,"value":1170},{"type":993,"tag":1025,"props":4689,"children":4690},{"style":1060},[4691],{"type":998,"value":3538},{"type":993,"tag":1025,"props":4693,"children":4694},{"style":1054},[4695],{"type":998,"value":1068},{"type":993,"tag":1025,"props":4697,"children":4698},{"class":1027,"line":91},[4699,4703],{"type":993,"tag":1025,"props":4700,"children":4701},{"style":1048},[4702],{"type":998,"value":1273},{"type":993,"tag":1025,"props":4704,"children":4705},{"style":1054},[4706],{"type":998,"value":3866},{"type":993,"tag":1508,"props":4708,"children":4710},{"id":4709},"nested-loop-control",[4711],{"type":998,"value":4712},"Nested Loop Control",{"type":993,"tag":1000,"props":4714,"children":4715},{},[4716,4718,4724],{"type":998,"value":4717},"Controlling nested loops requires understanding how ",{"type":993,"tag":4719,"props":4720,"children":4721},"a",{"href":252},[4722],{"type":998,"value":4723},"break and continue",{"type":998,"value":4725}," statements affect different loop levels. These statements only affect the immediate loop containing them, not outer loops.",{"type":993,"tag":1520,"props":4727,"children":4730},{"emoji":4728,"title":4729,"type":1524},"🎯","Nested Loop Control Limitations",[4731,4739,4762,4770,4793],{"type":993,"tag":1000,"props":4732,"children":4733},{},[4734],{"type":993,"tag":1530,"props":4735,"children":4736},{},[4737],{"type":998,"value":4738},"Scope Restrictions:",{"type":993,"tag":1536,"props":4740,"children":4741},{},[4742,4747,4752,4757],{"type":993,"tag":1540,"props":4743,"children":4744},{},[4745],{"type":998,"value":4746},"break/continue only affect the immediate containing loop",{"type":993,"tag":1540,"props":4748,"children":4749},{},[4750],{"type":998,"value":4751},"Outer loops continue normal execution after inner loop exits",{"type":993,"tag":1540,"props":4753,"children":4754},{},[4755],{"type":998,"value":4756},"No direct mechanism to break multiple loop levels",{"type":993,"tag":1540,"props":4758,"children":4759},{},[4760],{"type":998,"value":4761},"Requires additional techniques for multi-level control",{"type":993,"tag":1000,"props":4763,"children":4764},{},[4765],{"type":993,"tag":1530,"props":4766,"children":4767},{},[4768],{"type":998,"value":4769},"Control Strategies:",{"type":993,"tag":1536,"props":4771,"children":4772},{},[4773,4778,4783,4788],{"type":993,"tag":1540,"props":4774,"children":4775},{},[4776],{"type":998,"value":4777},"Flag variables for outer loop communication",{"type":993,"tag":1540,"props":4779,"children":4780},{},[4781],{"type":998,"value":4782},"Function returns for clean multi-level exit",{"type":993,"tag":1540,"props":4784,"children":4785},{},[4786],{"type":998,"value":4787},"Exception handling for complex flow control",{"type":993,"tag":1540,"props":4789,"children":4790},{},[4791],{"type":998,"value":4792},"Loop restructuring to reduce nesting complexity",{"type":993,"tag":1000,"props":4794,"children":4795},{},[4796,4801],{"type":993,"tag":1530,"props":4797,"children":4798},{},[4799],{"type":998,"value":4800},"Best Practice:",{"type":998,"value":4802}," Use functions to encapsulate complex nested logic",{"type":993,"tag":1597,"props":4804,"children":4806},{"id":4805},"inner-loop-scope-demonstration",[4807],{"type":998,"value":4808},"Inner Loop Scope Demonstration",{"type":993,"tag":1000,"props":4810,"children":4811},{},[4812],{"type":998,"value":4813},"Illustration of break statement limitation to immediate containing loop:",{"type":993,"tag":1011,"props":4815,"children":4816},{},[4817],{"type":993,"tag":1015,"props":4818,"children":4820},{"className":1017,"code":4819,"language":6,"meta":8,"style":8},"# Break only affects inner loop\nprint(\"Break in inner loop:\")\nfor i in range(3):\n    print(f\"Outer loop {i}:\")\n    for j in range(5):\n        if j == 2:\n            print(f\"  Breaking at j={j}\")\n            break\n        print(f\"  Inner loop {j}\")\n    print(f\"Outer loop {i} continues\")\n",[4821],{"type":993,"tag":1021,"props":4822,"children":4823},{"__ignoreMap":8},[4824,4832,4852,4883,4923,4954,4977,5017,5024,5064],{"type":993,"tag":1025,"props":4825,"children":4826},{"class":1027,"line":12},[4827],{"type":993,"tag":1025,"props":4828,"children":4829},{"style":1031},[4830],{"type":998,"value":4831},"# Break only affects inner loop\n",{"type":993,"tag":1025,"props":4833,"children":4834},{"class":1027,"line":27},[4835,4839,4843,4848],{"type":993,"tag":1025,"props":4836,"children":4837},{"style":1048},[4838],{"type":998,"value":1051},{"type":993,"tag":1025,"props":4840,"children":4841},{"style":1054},[4842],{"type":998,"value":1057},{"type":993,"tag":1025,"props":4844,"children":4845},{"style":1060},[4846],{"type":998,"value":4847},"\"Break in inner loop:\"",{"type":993,"tag":1025,"props":4849,"children":4850},{"style":1054},[4851],{"type":998,"value":1068},{"type":993,"tag":1025,"props":4853,"children":4854},{"class":1027,"line":36},[4855,4859,4863,4867,4871,4875,4879],{"type":993,"tag":1025,"props":4856,"children":4857},{"style":1074},[4858],{"type":998,"value":1077},{"type":993,"tag":1025,"props":4860,"children":4861},{"style":1054},[4862],{"type":998,"value":1082},{"type":993,"tag":1025,"props":4864,"children":4865},{"style":1074},[4866],{"type":998,"value":1087},{"type":993,"tag":1025,"props":4868,"children":4869},{"style":1048},[4870],{"type":998,"value":1092},{"type":993,"tag":1025,"props":4872,"children":4873},{"style":1054},[4874],{"type":998,"value":1057},{"type":993,"tag":1025,"props":4876,"children":4877},{"style":1048},[4878],{"type":998,"value":1338},{"type":993,"tag":1025,"props":4880,"children":4881},{"style":1054},[4882],{"type":998,"value":1116},{"type":993,"tag":1025,"props":4884,"children":4885},{"class":1027,"line":45},[4886,4890,4894,4898,4903,4907,4911,4915,4919],{"type":993,"tag":1025,"props":4887,"children":4888},{"style":1048},[4889],{"type":998,"value":1273},{"type":993,"tag":1025,"props":4891,"children":4892},{"style":1054},[4893],{"type":998,"value":1057},{"type":993,"tag":1025,"props":4895,"children":4896},{"style":1074},[4897],{"type":998,"value":1201},{"type":993,"tag":1025,"props":4899,"children":4900},{"style":1060},[4901],{"type":998,"value":4902},"\"Outer loop ",{"type":993,"tag":1025,"props":4904,"children":4905},{"style":1048},[4906],{"type":998,"value":1211},{"type":993,"tag":1025,"props":4908,"children":4909},{"style":1054},[4910],{"type":998,"value":1216},{"type":993,"tag":1025,"props":4912,"children":4913},{"style":1048},[4914],{"type":998,"value":1221},{"type":993,"tag":1025,"props":4916,"children":4917},{"style":1060},[4918],{"type":998,"value":4317},{"type":993,"tag":1025,"props":4920,"children":4921},{"style":1054},[4922],{"type":998,"value":1068},{"type":993,"tag":1025,"props":4924,"children":4925},{"class":1027,"line":54},[4926,4930,4934,4938,4942,4946,4950],{"type":993,"tag":1025,"props":4927,"children":4928},{"style":1074},[4929],{"type":998,"value":1124},{"type":993,"tag":1025,"props":4931,"children":4932},{"style":1054},[4933],{"type":998,"value":1129},{"type":993,"tag":1025,"props":4935,"children":4936},{"style":1074},[4937],{"type":998,"value":1087},{"type":993,"tag":1025,"props":4939,"children":4940},{"style":1048},[4941],{"type":998,"value":1092},{"type":993,"tag":1025,"props":4943,"children":4944},{"style":1054},[4945],{"type":998,"value":1057},{"type":993,"tag":1025,"props":4947,"children":4948},{"style":1048},[4949],{"type":998,"value":1356},{"type":993,"tag":1025,"props":4951,"children":4952},{"style":1054},[4953],{"type":998,"value":1116},{"type":993,"tag":1025,"props":4955,"children":4956},{"class":1027,"line":63},[4957,4961,4965,4969,4973],{"type":993,"tag":1025,"props":4958,"children":4959},{"style":1074},[4960],{"type":998,"value":2862},{"type":993,"tag":1025,"props":4962,"children":4963},{"style":1054},[4964],{"type":998,"value":1129},{"type":993,"tag":1025,"props":4966,"children":4967},{"style":1074},[4968],{"type":998,"value":2872},{"type":993,"tag":1025,"props":4970,"children":4971},{"style":1048},[4972],{"type":998,"value":4596},{"type":993,"tag":1025,"props":4974,"children":4975},{"style":1054},[4976],{"type":998,"value":4611},{"type":993,"tag":1025,"props":4978,"children":4979},{"class":1027,"line":72},[4980,4984,4988,4992,4997,5001,5005,5009,5013],{"type":993,"tag":1025,"props":4981,"children":4982},{"style":1048},[4983],{"type":998,"value":2885},{"type":993,"tag":1025,"props":4985,"children":4986},{"style":1054},[4987],{"type":998,"value":1057},{"type":993,"tag":1025,"props":4989,"children":4990},{"style":1074},[4991],{"type":998,"value":1201},{"type":993,"tag":1025,"props":4993,"children":4994},{"style":1060},[4995],{"type":998,"value":4996},"\"  Breaking at j=",{"type":993,"tag":1025,"props":4998,"children":4999},{"style":1048},[5000],{"type":998,"value":1211},{"type":993,"tag":1025,"props":5002,"children":5003},{"style":1054},[5004],{"type":998,"value":1235},{"type":993,"tag":1025,"props":5006,"children":5007},{"style":1048},[5008],{"type":998,"value":1221},{"type":993,"tag":1025,"props":5010,"children":5011},{"style":1060},[5012],{"type":998,"value":1206},{"type":993,"tag":1025,"props":5014,"children":5015},{"style":1054},[5016],{"type":998,"value":1068},{"type":993,"tag":1025,"props":5018,"children":5019},{"class":1027,"line":81},[5020],{"type":993,"tag":1025,"props":5021,"children":5022},{"style":1074},[5023],{"type":998,"value":2977},{"type":993,"tag":1025,"props":5025,"children":5026},{"class":1027,"line":91},[5027,5031,5035,5039,5044,5048,5052,5056,5060],{"type":993,"tag":1025,"props":5028,"children":5029},{"style":1048},[5030],{"type":998,"value":1192},{"type":993,"tag":1025,"props":5032,"children":5033},{"style":1054},[5034],{"type":998,"value":1057},{"type":993,"tag":1025,"props":5036,"children":5037},{"style":1074},[5038],{"type":998,"value":1201},{"type":993,"tag":1025,"props":5040,"children":5041},{"style":1060},[5042],{"type":998,"value":5043},"\"  Inner loop ",{"type":993,"tag":1025,"props":5045,"children":5046},{"style":1048},[5047],{"type":998,"value":1211},{"type":993,"tag":1025,"props":5049,"children":5050},{"style":1054},[5051],{"type":998,"value":1235},{"type":993,"tag":1025,"props":5053,"children":5054},{"style":1048},[5055],{"type":998,"value":1221},{"type":993,"tag":1025,"props":5057,"children":5058},{"style":1060},[5059],{"type":998,"value":1206},{"type":993,"tag":1025,"props":5061,"children":5062},{"style":1054},[5063],{"type":998,"value":1068},{"type":993,"tag":1025,"props":5065,"children":5066},{"class":1027,"line":100},[5067,5071,5075,5079,5083,5087,5091,5095,5100],{"type":993,"tag":1025,"props":5068,"children":5069},{"style":1048},[5070],{"type":998,"value":1273},{"type":993,"tag":1025,"props":5072,"children":5073},{"style":1054},[5074],{"type":998,"value":1057},{"type":993,"tag":1025,"props":5076,"children":5077},{"style":1074},[5078],{"type":998,"value":1201},{"type":993,"tag":1025,"props":5080,"children":5081},{"style":1060},[5082],{"type":998,"value":4902},{"type":993,"tag":1025,"props":5084,"children":5085},{"style":1048},[5086],{"type":998,"value":1211},{"type":993,"tag":1025,"props":5088,"children":5089},{"style":1054},[5090],{"type":998,"value":1216},{"type":993,"tag":1025,"props":5092,"children":5093},{"style":1048},[5094],{"type":998,"value":1221},{"type":993,"tag":1025,"props":5096,"children":5097},{"style":1060},[5098],{"type":998,"value":5099}," continues\"",{"type":993,"tag":1025,"props":5101,"children":5102},{"style":1054},[5103],{"type":998,"value":1068},{"type":993,"tag":1597,"props":5105,"children":5107},{"id":5106},"flag-based-multi-level-control",[5108],{"type":998,"value":5109},"Flag-Based Multi-Level Control",{"type":993,"tag":1000,"props":5111,"children":5112},{},[5113],{"type":998,"value":5114},"Boolean variable coordination for synchronized termination across loop levels:",{"type":993,"tag":1011,"props":5116,"children":5117},{},[5118],{"type":993,"tag":1015,"props":5119,"children":5121},{"className":1017,"code":5120,"language":6,"meta":8,"style":8},"# Using flags to control outer loop\nprint(\"Using flag for outer loop control:\")\nfound_target = False\ntarget = 15\n\nfor i in range(1, 6):\n    if found_target:\n        break\n    for j in range(1, 6):\n        product = i * j\n        print(f\"{i} x {j} = {product}\")\n        if product == target:\n            print(f\"Found target {target}!\")\n            found_target = True\n            break\n",[5122],{"type":993,"tag":1021,"props":5123,"children":5124},{"__ignoreMap":8},[5125,5133,5153,5169,5185,5192,5231,5243,5250,5289,5312,5383,5403,5444,5460],{"type":993,"tag":1025,"props":5126,"children":5127},{"class":1027,"line":12},[5128],{"type":993,"tag":1025,"props":5129,"children":5130},{"style":1031},[5131],{"type":998,"value":5132},"# Using flags to control outer loop\n",{"type":993,"tag":1025,"props":5134,"children":5135},{"class":1027,"line":27},[5136,5140,5144,5149],{"type":993,"tag":1025,"props":5137,"children":5138},{"style":1048},[5139],{"type":998,"value":1051},{"type":993,"tag":1025,"props":5141,"children":5142},{"style":1054},[5143],{"type":998,"value":1057},{"type":993,"tag":1025,"props":5145,"children":5146},{"style":1060},[5147],{"type":998,"value":5148},"\"Using flag for outer loop control:\"",{"type":993,"tag":1025,"props":5150,"children":5151},{"style":1054},[5152],{"type":998,"value":1068},{"type":993,"tag":1025,"props":5154,"children":5155},{"class":1027,"line":36},[5156,5161,5165],{"type":993,"tag":1025,"props":5157,"children":5158},{"style":1054},[5159],{"type":998,"value":5160},"found_target ",{"type":993,"tag":1025,"props":5162,"children":5163},{"style":1074},[5164],{"type":998,"value":1170},{"type":993,"tag":1025,"props":5166,"children":5167},{"style":1048},[5168],{"type":998,"value":2782},{"type":993,"tag":1025,"props":5170,"children":5171},{"class":1027,"line":45},[5172,5176,5180],{"type":993,"tag":1025,"props":5173,"children":5174},{"style":1054},[5175],{"type":998,"value":2756},{"type":993,"tag":1025,"props":5177,"children":5178},{"style":1074},[5179],{"type":998,"value":1170},{"type":993,"tag":1025,"props":5181,"children":5182},{"style":1048},[5183],{"type":998,"value":5184}," 15\n",{"type":993,"tag":1025,"props":5186,"children":5187},{"class":1027,"line":54},[5188],{"type":993,"tag":1025,"props":5189,"children":5190},{"emptyLinePlaceholder":13},[5191],{"type":998,"value":1291},{"type":993,"tag":1025,"props":5193,"children":5194},{"class":1027,"line":63},[5195,5199,5203,5207,5211,5215,5219,5223,5227],{"type":993,"tag":1025,"props":5196,"children":5197},{"style":1074},[5198],{"type":998,"value":1077},{"type":993,"tag":1025,"props":5200,"children":5201},{"style":1054},[5202],{"type":998,"value":1082},{"type":993,"tag":1025,"props":5204,"children":5205},{"style":1074},[5206],{"type":998,"value":1087},{"type":993,"tag":1025,"props":5208,"children":5209},{"style":1048},[5210],{"type":998,"value":1092},{"type":993,"tag":1025,"props":5212,"children":5213},{"style":1054},[5214],{"type":998,"value":1057},{"type":993,"tag":1025,"props":5216,"children":5217},{"style":1048},[5218],{"type":998,"value":1101},{"type":993,"tag":1025,"props":5220,"children":5221},{"style":1054},[5222],{"type":998,"value":1106},{"type":993,"tag":1025,"props":5224,"children":5225},{"style":1048},[5226],{"type":998,"value":1365},{"type":993,"tag":1025,"props":5228,"children":5229},{"style":1054},[5230],{"type":998,"value":1116},{"type":993,"tag":1025,"props":5232,"children":5233},{"class":1027,"line":72},[5234,5238],{"type":993,"tag":1025,"props":5235,"children":5236},{"style":1074},[5237],{"type":998,"value":2985},{"type":993,"tag":1025,"props":5239,"children":5240},{"style":1054},[5241],{"type":998,"value":5242}," found_target:\n",{"type":993,"tag":1025,"props":5244,"children":5245},{"class":1027,"line":81},[5246],{"type":993,"tag":1025,"props":5247,"children":5248},{"style":1074},[5249],{"type":998,"value":2998},{"type":993,"tag":1025,"props":5251,"children":5252},{"class":1027,"line":91},[5253,5257,5261,5265,5269,5273,5277,5281,5285],{"type":993,"tag":1025,"props":5254,"children":5255},{"style":1074},[5256],{"type":998,"value":1124},{"type":993,"tag":1025,"props":5258,"children":5259},{"style":1054},[5260],{"type":998,"value":1129},{"type":993,"tag":1025,"props":5262,"children":5263},{"style":1074},[5264],{"type":998,"value":1087},{"type":993,"tag":1025,"props":5266,"children":5267},{"style":1048},[5268],{"type":998,"value":1092},{"type":993,"tag":1025,"props":5270,"children":5271},{"style":1054},[5272],{"type":998,"value":1057},{"type":993,"tag":1025,"props":5274,"children":5275},{"style":1048},[5276],{"type":998,"value":1101},{"type":993,"tag":1025,"props":5278,"children":5279},{"style":1054},[5280],{"type":998,"value":1106},{"type":993,"tag":1025,"props":5282,"children":5283},{"style":1048},[5284],{"type":998,"value":1365},{"type":993,"tag":1025,"props":5286,"children":5287},{"style":1054},[5288],{"type":998,"value":1116},{"type":993,"tag":1025,"props":5290,"children":5291},{"class":1027,"line":100},[5292,5296,5300,5304,5308],{"type":993,"tag":1025,"props":5293,"children":5294},{"style":1054},[5295],{"type":998,"value":1165},{"type":993,"tag":1025,"props":5297,"children":5298},{"style":1074},[5299],{"type":998,"value":1170},{"type":993,"tag":1025,"props":5301,"children":5302},{"style":1054},[5303],{"type":998,"value":1082},{"type":993,"tag":1025,"props":5305,"children":5306},{"style":1074},[5307],{"type":998,"value":1179},{"type":993,"tag":1025,"props":5309,"children":5310},{"style":1054},[5311],{"type":998,"value":1184},{"type":993,"tag":1025,"props":5313,"children":5314},{"class":1027,"line":109},[5315,5319,5323,5327,5331,5335,5339,5343,5347,5351,5355,5359,5363,5367,5371,5375,5379],{"type":993,"tag":1025,"props":5316,"children":5317},{"style":1048},[5318],{"type":998,"value":1192},{"type":993,"tag":1025,"props":5320,"children":5321},{"style":1054},[5322],{"type":998,"value":1057},{"type":993,"tag":1025,"props":5324,"children":5325},{"style":1074},[5326],{"type":998,"value":1201},{"type":993,"tag":1025,"props":5328,"children":5329},{"style":1060},[5330],{"type":998,"value":1206},{"type":993,"tag":1025,"props":5332,"children":5333},{"style":1048},[5334],{"type":998,"value":1211},{"type":993,"tag":1025,"props":5336,"children":5337},{"style":1054},[5338],{"type":998,"value":1216},{"type":993,"tag":1025,"props":5340,"children":5341},{"style":1048},[5342],{"type":998,"value":1221},{"type":993,"tag":1025,"props":5344,"children":5345},{"style":1060},[5346],{"type":998,"value":1226},{"type":993,"tag":1025,"props":5348,"children":5349},{"style":1048},[5350],{"type":998,"value":1211},{"type":993,"tag":1025,"props":5352,"children":5353},{"style":1054},[5354],{"type":998,"value":1235},{"type":993,"tag":1025,"props":5356,"children":5357},{"style":1048},[5358],{"type":998,"value":1221},{"type":993,"tag":1025,"props":5360,"children":5361},{"style":1060},[5362],{"type":998,"value":1244},{"type":993,"tag":1025,"props":5364,"children":5365},{"style":1048},[5366],{"type":998,"value":1211},{"type":993,"tag":1025,"props":5368,"children":5369},{"style":1054},[5370],{"type":998,"value":1253},{"type":993,"tag":1025,"props":5372,"children":5373},{"style":1048},[5374],{"type":998,"value":1221},{"type":993,"tag":1025,"props":5376,"children":5377},{"style":1060},[5378],{"type":998,"value":1206},{"type":993,"tag":1025,"props":5380,"children":5381},{"style":1054},[5382],{"type":998,"value":1068},{"type":993,"tag":1025,"props":5384,"children":5385},{"class":1027,"line":118},[5386,5390,5395,5399],{"type":993,"tag":1025,"props":5387,"children":5388},{"style":1074},[5389],{"type":998,"value":2862},{"type":993,"tag":1025,"props":5391,"children":5392},{"style":1054},[5393],{"type":998,"value":5394}," product ",{"type":993,"tag":1025,"props":5396,"children":5397},{"style":1074},[5398],{"type":998,"value":2872},{"type":993,"tag":1025,"props":5400,"children":5401},{"style":1054},[5402],{"type":998,"value":2877},{"type":993,"tag":1025,"props":5404,"children":5405},{"class":1027,"line":127},[5406,5410,5414,5418,5423,5427,5431,5435,5440],{"type":993,"tag":1025,"props":5407,"children":5408},{"style":1048},[5409],{"type":998,"value":2885},{"type":993,"tag":1025,"props":5411,"children":5412},{"style":1054},[5413],{"type":998,"value":1057},{"type":993,"tag":1025,"props":5415,"children":5416},{"style":1074},[5417],{"type":998,"value":1201},{"type":993,"tag":1025,"props":5419,"children":5420},{"style":1060},[5421],{"type":998,"value":5422},"\"Found target ",{"type":993,"tag":1025,"props":5424,"children":5425},{"style":1048},[5426],{"type":998,"value":1211},{"type":993,"tag":1025,"props":5428,"children":5429},{"style":1054},[5430],{"type":998,"value":2907},{"type":993,"tag":1025,"props":5432,"children":5433},{"style":1048},[5434],{"type":998,"value":1221},{"type":993,"tag":1025,"props":5436,"children":5437},{"style":1060},[5438],{"type":998,"value":5439},"!\"",{"type":993,"tag":1025,"props":5441,"children":5442},{"style":1054},[5443],{"type":998,"value":1068},{"type":993,"tag":1025,"props":5445,"children":5446},{"class":1027,"line":136},[5447,5452,5456],{"type":993,"tag":1025,"props":5448,"children":5449},{"style":1054},[5450],{"type":998,"value":5451},"            found_target ",{"type":993,"tag":1025,"props":5453,"children":5454},{"style":1074},[5455],{"type":998,"value":1170},{"type":993,"tag":1025,"props":5457,"children":5458},{"style":1048},[5459],{"type":998,"value":2969},{"type":993,"tag":1025,"props":5461,"children":5462},{"class":1027,"line":146},[5463],{"type":993,"tag":1025,"props":5464,"children":5465},{"style":1074},[5466],{"type":998,"value":2977},{"type":993,"tag":1597,"props":5468,"children":5470},{"id":5469},"function-based-clean-exit",[5471],{"type":998,"value":5472},"Function-Based Clean Exit",{"type":993,"tag":1000,"props":5474,"children":5475},{},[5476],{"type":998,"value":5477},"Return statement usage for elegant termination of all nested loop levels:",{"type":993,"tag":1011,"props":5479,"children":5480},{},[5481],{"type":993,"tag":1015,"props":5482,"children":5484},{"className":1017,"code":5483,"language":6,"meta":8,"style":8},"# Using return in function for clean exit\ndef find_coordinates(matrix, target):\n    for i, row in enumerate(matrix):\n        for j, value in enumerate(row):\n            if value == target:\n                return (i, j)\n    return None\n\ndata = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]\ncoords = find_coordinates(data, 5)\nprint(f\"Found 5 at coordinates: {coords}\")\n",[5485],{"type":993,"tag":1021,"props":5486,"children":5487},{"__ignoreMap":8},[5488,5496,5515,5540,5565,5586,5599,5612,5619,5707,5732],{"type":993,"tag":1025,"props":5489,"children":5490},{"class":1027,"line":12},[5491],{"type":993,"tag":1025,"props":5492,"children":5493},{"style":1031},[5494],{"type":998,"value":5495},"# Using return in function for clean exit\n",{"type":993,"tag":1025,"props":5497,"children":5498},{"class":1027,"line":27},[5499,5504,5510],{"type":993,"tag":1025,"props":5500,"children":5501},{"style":1074},[5502],{"type":998,"value":5503},"def",{"type":993,"tag":1025,"props":5505,"children":5507},{"style":5506},"--shiki-default:#6F42C1;--shiki-app-dark-mode:#B392F0",[5508],{"type":998,"value":5509}," find_coordinates",{"type":993,"tag":1025,"props":5511,"children":5512},{"style":1054},[5513],{"type":998,"value":5514},"(matrix, target):\n",{"type":993,"tag":1025,"props":5516,"children":5517},{"class":1027,"line":36},[5518,5522,5527,5531,5535],{"type":993,"tag":1025,"props":5519,"children":5520},{"style":1074},[5521],{"type":998,"value":1124},{"type":993,"tag":1025,"props":5523,"children":5524},{"style":1054},[5525],{"type":998,"value":5526}," i, row ",{"type":993,"tag":1025,"props":5528,"children":5529},{"style":1074},[5530],{"type":998,"value":1087},{"type":993,"tag":1025,"props":5532,"children":5533},{"style":1048},[5534],{"type":998,"value":2526},{"type":993,"tag":1025,"props":5536,"children":5537},{"style":1054},[5538],{"type":998,"value":5539},"(matrix):\n",{"type":993,"tag":1025,"props":5541,"children":5542},{"class":1027,"line":45},[5543,5548,5553,5557,5561],{"type":993,"tag":1025,"props":5544,"children":5545},{"style":1074},[5546],{"type":998,"value":5547},"        for",{"type":993,"tag":1025,"props":5549,"children":5550},{"style":1054},[5551],{"type":998,"value":5552}," j, value ",{"type":993,"tag":1025,"props":5554,"children":5555},{"style":1074},[5556],{"type":998,"value":1087},{"type":993,"tag":1025,"props":5558,"children":5559},{"style":1048},[5560],{"type":998,"value":2526},{"type":993,"tag":1025,"props":5562,"children":5563},{"style":1054},[5564],{"type":998,"value":2556},{"type":993,"tag":1025,"props":5566,"children":5567},{"class":1027,"line":54},[5568,5573,5578,5582],{"type":993,"tag":1025,"props":5569,"children":5570},{"style":1074},[5571],{"type":998,"value":5572},"            if",{"type":993,"tag":1025,"props":5574,"children":5575},{"style":1054},[5576],{"type":998,"value":5577}," value ",{"type":993,"tag":1025,"props":5579,"children":5580},{"style":1074},[5581],{"type":998,"value":2872},{"type":993,"tag":1025,"props":5583,"children":5584},{"style":1054},[5585],{"type":998,"value":2877},{"type":993,"tag":1025,"props":5587,"children":5588},{"class":1027,"line":63},[5589,5594],{"type":993,"tag":1025,"props":5590,"children":5591},{"style":1074},[5592],{"type":998,"value":5593},"                return",{"type":993,"tag":1025,"props":5595,"children":5596},{"style":1054},[5597],{"type":998,"value":5598}," (i, j)\n",{"type":993,"tag":1025,"props":5600,"children":5601},{"class":1027,"line":72},[5602,5607],{"type":993,"tag":1025,"props":5603,"children":5604},{"style":1074},[5605],{"type":998,"value":5606},"    return",{"type":993,"tag":1025,"props":5608,"children":5609},{"style":1048},[5610],{"type":998,"value":5611}," None\n",{"type":993,"tag":1025,"props":5613,"children":5614},{"class":1027,"line":81},[5615],{"type":993,"tag":1025,"props":5616,"children":5617},{"emptyLinePlaceholder":13},[5618],{"type":998,"value":1291},{"type":993,"tag":1025,"props":5620,"children":5621},{"class":1027,"line":91},[5622,5627,5631,5635,5639,5643,5647,5651,5655,5659,5663,5667,5671,5675,5679,5683,5687,5691,5695,5699,5703],{"type":993,"tag":1025,"props":5623,"children":5624},{"style":1054},[5625],{"type":998,"value":5626},"data ",{"type":993,"tag":1025,"props":5628,"children":5629},{"style":1074},[5630],{"type":998,"value":1170},{"type":993,"tag":1025,"props":5632,"children":5633},{"style":1054},[5634],{"type":998,"value":1316},{"type":993,"tag":1025,"props":5636,"children":5637},{"style":1048},[5638],{"type":998,"value":1101},{"type":993,"tag":1025,"props":5640,"children":5641},{"style":1054},[5642],{"type":998,"value":1106},{"type":993,"tag":1025,"props":5644,"children":5645},{"style":1048},[5646],{"type":998,"value":1329},{"type":993,"tag":1025,"props":5648,"children":5649},{"style":1054},[5650],{"type":998,"value":1106},{"type":993,"tag":1025,"props":5652,"children":5653},{"style":1048},[5654],{"type":998,"value":1338},{"type":993,"tag":1025,"props":5656,"children":5657},{"style":1054},[5658],{"type":998,"value":1343},{"type":993,"tag":1025,"props":5660,"children":5661},{"style":1048},[5662],{"type":998,"value":1111},{"type":993,"tag":1025,"props":5664,"children":5665},{"style":1054},[5666],{"type":998,"value":1106},{"type":993,"tag":1025,"props":5668,"children":5669},{"style":1048},[5670],{"type":998,"value":1356},{"type":993,"tag":1025,"props":5672,"children":5673},{"style":1054},[5674],{"type":998,"value":1106},{"type":993,"tag":1025,"props":5676,"children":5677},{"style":1048},[5678],{"type":998,"value":1365},{"type":993,"tag":1025,"props":5680,"children":5681},{"style":1054},[5682],{"type":998,"value":1343},{"type":993,"tag":1025,"props":5684,"children":5685},{"style":1048},[5686],{"type":998,"value":1374},{"type":993,"tag":1025,"props":5688,"children":5689},{"style":1054},[5690],{"type":998,"value":1106},{"type":993,"tag":1025,"props":5692,"children":5693},{"style":1048},[5694],{"type":998,"value":1383},{"type":993,"tag":1025,"props":5696,"children":5697},{"style":1054},[5698],{"type":998,"value":1106},{"type":993,"tag":1025,"props":5700,"children":5701},{"style":1048},[5702],{"type":998,"value":1392},{"type":993,"tag":1025,"props":5704,"children":5705},{"style":1054},[5706],{"type":998,"value":1397},{"type":993,"tag":1025,"props":5708,"children":5709},{"class":1027,"line":100},[5710,5715,5719,5724,5728],{"type":993,"tag":1025,"props":5711,"children":5712},{"style":1054},[5713],{"type":998,"value":5714},"coords ",{"type":993,"tag":1025,"props":5716,"children":5717},{"style":1074},[5718],{"type":998,"value":1170},{"type":993,"tag":1025,"props":5720,"children":5721},{"style":1054},[5722],{"type":998,"value":5723}," find_coordinates(data, ",{"type":993,"tag":1025,"props":5725,"children":5726},{"style":1048},[5727],{"type":998,"value":1356},{"type":993,"tag":1025,"props":5729,"children":5730},{"style":1054},[5731],{"type":998,"value":1068},{"type":993,"tag":1025,"props":5733,"children":5734},{"class":1027,"line":109},[5735,5739,5743,5747,5752,5756,5761,5765,5769],{"type":993,"tag":1025,"props":5736,"children":5737},{"style":1048},[5738],{"type":998,"value":1051},{"type":993,"tag":1025,"props":5740,"children":5741},{"style":1054},[5742],{"type":998,"value":1057},{"type":993,"tag":1025,"props":5744,"children":5745},{"style":1074},[5746],{"type":998,"value":1201},{"type":993,"tag":1025,"props":5748,"children":5749},{"style":1060},[5750],{"type":998,"value":5751},"\"Found 5 at coordinates: ",{"type":993,"tag":1025,"props":5753,"children":5754},{"style":1048},[5755],{"type":998,"value":1211},{"type":993,"tag":1025,"props":5757,"children":5758},{"style":1054},[5759],{"type":998,"value":5760},"coords",{"type":993,"tag":1025,"props":5762,"children":5763},{"style":1048},[5764],{"type":998,"value":1221},{"type":993,"tag":1025,"props":5766,"children":5767},{"style":1060},[5768],{"type":998,"value":1206},{"type":993,"tag":1025,"props":5770,"children":5771},{"style":1054},[5772],{"type":998,"value":1068},{"type":993,"tag":1508,"props":5774,"children":5776},{"id":5775},"common-nested-loop-patterns",[5777],{"type":998,"value":5778},"Common Nested Loop Patterns",{"type":993,"tag":1000,"props":5780,"children":5781},{},[5782],{"type":998,"value":5783},"Several patterns appear frequently when working with nested loops. These patterns solve common programming problems and provide tested approaches to multi-dimensional processing.",{"type":993,"tag":1520,"props":5785,"children":5788},{"emoji":5786,"title":5787,"type":2240},"🔧","Essential Nested Loop Patterns",[5789,5797,5850,5858,5881],{"type":993,"tag":1000,"props":5790,"children":5791},{},[5792],{"type":993,"tag":1530,"props":5793,"children":5794},{},[5795],{"type":998,"value":5796},"Fundamental Patterns:",{"type":993,"tag":1536,"props":5798,"children":5799},{},[5800,5810,5820,5830,5840],{"type":993,"tag":1540,"props":5801,"children":5802},{},[5803,5808],{"type":993,"tag":1530,"props":5804,"children":5805},{},[5806],{"type":998,"value":5807},"Matrix Traversal",{"type":998,"value":5809},": Process all elements systematically",{"type":993,"tag":1540,"props":5811,"children":5812},{},[5813,5818],{"type":993,"tag":1530,"props":5814,"children":5815},{},[5816],{"type":998,"value":5817},"Comparison Loops",{"type":998,"value":5819},": Compare all pairs or combinations",{"type":993,"tag":1540,"props":5821,"children":5822},{},[5823,5828],{"type":993,"tag":1530,"props":5824,"children":5825},{},[5826],{"type":998,"value":5827},"Search Patterns",{"type":998,"value":5829},": Find specific values or conditions",{"type":993,"tag":1540,"props":5831,"children":5832},{},[5833,5838],{"type":993,"tag":1530,"props":5834,"children":5835},{},[5836],{"type":998,"value":5837},"Accumulation",{"type":998,"value":5839},": Collect or calculate aggregate values",{"type":993,"tag":1540,"props":5841,"children":5842},{},[5843,5848],{"type":993,"tag":1530,"props":5844,"children":5845},{},[5846],{"type":998,"value":5847},"Transformation",{"type":998,"value":5849},": Convert data structures element by element",{"type":993,"tag":1000,"props":5851,"children":5852},{},[5853],{"type":993,"tag":1530,"props":5854,"children":5855},{},[5856],{"type":998,"value":5857},"Pattern Applications:",{"type":993,"tag":1536,"props":5859,"children":5860},{},[5861,5866,5871,5876],{"type":993,"tag":1540,"props":5862,"children":5863},{},[5864],{"type":998,"value":5865},"Data analysis and statistics",{"type":993,"tag":1540,"props":5867,"children":5868},{},[5869],{"type":998,"value":5870},"Algorithm implementation",{"type":993,"tag":1540,"props":5872,"children":5873},{},[5874],{"type":998,"value":5875},"Game development and graphics",{"type":993,"tag":1540,"props":5877,"children":5878},{},[5879],{"type":998,"value":5880},"Scientific computing and simulations",{"type":993,"tag":1000,"props":5882,"children":5883},{},[5884,5889],{"type":993,"tag":1530,"props":5885,"children":5886},{},[5887],{"type":998,"value":5888},"Recognition:",{"type":998,"value":5890}," Learning patterns accelerates development and improves code quality",{"type":993,"tag":1597,"props":5892,"children":5894},{"id":5893},"systematic-matrix-processing",[5895],{"type":998,"value":5896},"Systematic Matrix Processing",{"type":993,"tag":1000,"props":5898,"children":5899},{},[5900],{"type":998,"value":5901},"Complete element-by-element traversal for comprehensive data processing:",{"type":993,"tag":1011,"props":5903,"children":5904},{},[5905],{"type":993,"tag":1015,"props":5906,"children":5908},{"className":1017,"code":5907,"language":6,"meta":8,"style":8},"# Matrix traversal pattern\ndef print_matrix(matrix):\n    for row in matrix:\n        for element in row:\n            print(f\"{element:3}\", end=\"\")\n        print()\n\ntest_matrix = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]\nprint(\"Matrix:\")\nprint_matrix(test_matrix)\n",[5909],{"type":993,"tag":1021,"props":5910,"children":5911},{"__ignoreMap":8},[5912,5920,5936,5955,5974,6033,6044,6051,6139,6159],{"type":993,"tag":1025,"props":5913,"children":5914},{"class":1027,"line":12},[5915],{"type":993,"tag":1025,"props":5916,"children":5917},{"style":1031},[5918],{"type":998,"value":5919},"# Matrix traversal pattern\n",{"type":993,"tag":1025,"props":5921,"children":5922},{"class":1027,"line":27},[5923,5927,5932],{"type":993,"tag":1025,"props":5924,"children":5925},{"style":1074},[5926],{"type":998,"value":5503},{"type":993,"tag":1025,"props":5928,"children":5929},{"style":5506},[5930],{"type":998,"value":5931}," print_matrix",{"type":993,"tag":1025,"props":5933,"children":5934},{"style":1054},[5935],{"type":998,"value":5539},{"type":993,"tag":1025,"props":5937,"children":5938},{"class":1027,"line":36},[5939,5943,5947,5951],{"type":993,"tag":1025,"props":5940,"children":5941},{"style":1074},[5942],{"type":998,"value":1124},{"type":993,"tag":1025,"props":5944,"children":5945},{"style":1054},[5946],{"type":998,"value":1429},{"type":993,"tag":1025,"props":5948,"children":5949},{"style":1074},[5950],{"type":998,"value":1087},{"type":993,"tag":1025,"props":5952,"children":5953},{"style":1054},[5954],{"type":998,"value":1438},{"type":993,"tag":1025,"props":5956,"children":5957},{"class":1027,"line":45},[5958,5962,5966,5970],{"type":993,"tag":1025,"props":5959,"children":5960},{"style":1074},[5961],{"type":998,"value":5547},{"type":993,"tag":1025,"props":5963,"children":5964},{"style":1054},[5965],{"type":998,"value":1450},{"type":993,"tag":1025,"props":5967,"children":5968},{"style":1074},[5969],{"type":998,"value":1087},{"type":993,"tag":1025,"props":5971,"children":5972},{"style":1054},[5973],{"type":998,"value":1459},{"type":993,"tag":1025,"props":5975,"children":5976},{"class":1027,"line":54},[5977,5981,5985,5989,5993,5997,6001,6005,6009,6013,6017,6021,6025,6029],{"type":993,"tag":1025,"props":5978,"children":5979},{"style":1048},[5980],{"type":998,"value":2885},{"type":993,"tag":1025,"props":5982,"children":5983},{"style":1054},[5984],{"type":998,"value":1057},{"type":993,"tag":1025,"props":5986,"children":5987},{"style":1074},[5988],{"type":998,"value":1201},{"type":993,"tag":1025,"props":5990,"children":5991},{"style":1060},[5992],{"type":998,"value":1206},{"type":993,"tag":1025,"props":5994,"children":5995},{"style":1048},[5996],{"type":998,"value":1211},{"type":993,"tag":1025,"props":5998,"children":5999},{"style":1054},[6000],{"type":998,"value":993},{"type":993,"tag":1025,"props":6002,"children":6003},{"style":1074},[6004],{"type":998,"value":4191},{"type":993,"tag":1025,"props":6006,"children":6007},{"style":1048},[6008],{"type":998,"value":1221},{"type":993,"tag":1025,"props":6010,"children":6011},{"style":1060},[6012],{"type":998,"value":1206},{"type":993,"tag":1025,"props":6014,"children":6015},{"style":1054},[6016],{"type":998,"value":1106},{"type":993,"tag":1025,"props":6018,"children":6019},{"style":1474},[6020],{"type":998,"value":1477},{"type":993,"tag":1025,"props":6022,"children":6023},{"style":1074},[6024],{"type":998,"value":1170},{"type":993,"tag":1025,"props":6026,"children":6027},{"style":1060},[6028],{"type":998,"value":3538},{"type":993,"tag":1025,"props":6030,"children":6031},{"style":1054},[6032],{"type":998,"value":1068},{"type":993,"tag":1025,"props":6034,"children":6035},{"class":1027,"line":63},[6036,6040],{"type":993,"tag":1025,"props":6037,"children":6038},{"style":1048},[6039],{"type":998,"value":1192},{"type":993,"tag":1025,"props":6041,"children":6042},{"style":1054},[6043],{"type":998,"value":3866},{"type":993,"tag":1025,"props":6045,"children":6046},{"class":1027,"line":72},[6047],{"type":993,"tag":1025,"props":6048,"children":6049},{"emptyLinePlaceholder":13},[6050],{"type":998,"value":1291},{"type":993,"tag":1025,"props":6052,"children":6053},{"class":1027,"line":81},[6054,6059,6063,6067,6071,6075,6079,6083,6087,6091,6095,6099,6103,6107,6111,6115,6119,6123,6127,6131,6135],{"type":993,"tag":1025,"props":6055,"children":6056},{"style":1054},[6057],{"type":998,"value":6058},"test_matrix ",{"type":993,"tag":1025,"props":6060,"children":6061},{"style":1074},[6062],{"type":998,"value":1170},{"type":993,"tag":1025,"props":6064,"children":6065},{"style":1054},[6066],{"type":998,"value":1316},{"type":993,"tag":1025,"props":6068,"children":6069},{"style":1048},[6070],{"type":998,"value":1101},{"type":993,"tag":1025,"props":6072,"children":6073},{"style":1054},[6074],{"type":998,"value":1106},{"type":993,"tag":1025,"props":6076,"children":6077},{"style":1048},[6078],{"type":998,"value":1329},{"type":993,"tag":1025,"props":6080,"children":6081},{"style":1054},[6082],{"type":998,"value":1106},{"type":993,"tag":1025,"props":6084,"children":6085},{"style":1048},[6086],{"type":998,"value":1338},{"type":993,"tag":1025,"props":6088,"children":6089},{"style":1054},[6090],{"type":998,"value":1343},{"type":993,"tag":1025,"props":6092,"children":6093},{"style":1048},[6094],{"type":998,"value":1111},{"type":993,"tag":1025,"props":6096,"children":6097},{"style":1054},[6098],{"type":998,"value":1106},{"type":993,"tag":1025,"props":6100,"children":6101},{"style":1048},[6102],{"type":998,"value":1356},{"type":993,"tag":1025,"props":6104,"children":6105},{"style":1054},[6106],{"type":998,"value":1106},{"type":993,"tag":1025,"props":6108,"children":6109},{"style":1048},[6110],{"type":998,"value":1365},{"type":993,"tag":1025,"props":6112,"children":6113},{"style":1054},[6114],{"type":998,"value":1343},{"type":993,"tag":1025,"props":6116,"children":6117},{"style":1048},[6118],{"type":998,"value":1374},{"type":993,"tag":1025,"props":6120,"children":6121},{"style":1054},[6122],{"type":998,"value":1106},{"type":993,"tag":1025,"props":6124,"children":6125},{"style":1048},[6126],{"type":998,"value":1383},{"type":993,"tag":1025,"props":6128,"children":6129},{"style":1054},[6130],{"type":998,"value":1106},{"type":993,"tag":1025,"props":6132,"children":6133},{"style":1048},[6134],{"type":998,"value":1392},{"type":993,"tag":1025,"props":6136,"children":6137},{"style":1054},[6138],{"type":998,"value":1397},{"type":993,"tag":1025,"props":6140,"children":6141},{"class":1027,"line":91},[6142,6146,6150,6155],{"type":993,"tag":1025,"props":6143,"children":6144},{"style":1048},[6145],{"type":998,"value":1051},{"type":993,"tag":1025,"props":6147,"children":6148},{"style":1054},[6149],{"type":998,"value":1057},{"type":993,"tag":1025,"props":6151,"children":6152},{"style":1060},[6153],{"type":998,"value":6154},"\"Matrix:\"",{"type":993,"tag":1025,"props":6156,"children":6157},{"style":1054},[6158],{"type":998,"value":1068},{"type":993,"tag":1025,"props":6160,"children":6161},{"class":1027,"line":100},[6162],{"type":993,"tag":1025,"props":6163,"children":6164},{"style":1054},[6165],{"type":998,"value":6166},"print_matrix(test_matrix)\n",{"type":993,"tag":1597,"props":6168,"children":6170},{"id":6169},"pairwise-comparison-algorithm",[6171],{"type":998,"value":6172},"Pairwise Comparison Algorithm",{"type":993,"tag":1000,"props":6174,"children":6175},{},[6176],{"type":998,"value":6177},"All-pairs analysis avoiding duplicate comparisons for efficient relationship detection:",{"type":993,"tag":1011,"props":6179,"children":6180},{},[6181],{"type":993,"tag":1015,"props":6182,"children":6184},{"className":1017,"code":6183,"language":6,"meta":8,"style":8},"# Comparison pattern (all pairs)\ndef find_pairs_sum(numbers, target_sum):\n    pairs = []\n    for i in range(len(numbers)):\n        for j in range(i + 1, len(numbers)):\n            if numbers[i] + numbers[j] == target_sum:\n                pairs.append((numbers[i], numbers[j]))\n    return pairs\n\nnumbers = [1, 2, 3, 4, 5]\npairs = find_pairs_sum(numbers, 7)\nprint(f\"Pairs that sum to 7: {pairs}\")\n",[6185],{"type":993,"tag":1021,"props":6186,"children":6187},{"__ignoreMap":8},[6188,6196,6213,6230,6262,6305,6335,6343,6355,6362,6418,6443],{"type":993,"tag":1025,"props":6189,"children":6190},{"class":1027,"line":12},[6191],{"type":993,"tag":1025,"props":6192,"children":6193},{"style":1031},[6194],{"type":998,"value":6195},"# Comparison pattern (all pairs)\n",{"type":993,"tag":1025,"props":6197,"children":6198},{"class":1027,"line":27},[6199,6203,6208],{"type":993,"tag":1025,"props":6200,"children":6201},{"style":1074},[6202],{"type":998,"value":5503},{"type":993,"tag":1025,"props":6204,"children":6205},{"style":5506},[6206],{"type":998,"value":6207}," find_pairs_sum",{"type":993,"tag":1025,"props":6209,"children":6210},{"style":1054},[6211],{"type":998,"value":6212},"(numbers, target_sum):\n",{"type":993,"tag":1025,"props":6214,"children":6215},{"class":1027,"line":36},[6216,6221,6225],{"type":993,"tag":1025,"props":6217,"children":6218},{"style":1054},[6219],{"type":998,"value":6220},"    pairs ",{"type":993,"tag":1025,"props":6222,"children":6223},{"style":1074},[6224],{"type":998,"value":1170},{"type":993,"tag":1025,"props":6226,"children":6227},{"style":1054},[6228],{"type":998,"value":6229}," []\n",{"type":993,"tag":1025,"props":6231,"children":6232},{"class":1027,"line":45},[6233,6237,6241,6245,6249,6253,6257],{"type":993,"tag":1025,"props":6234,"children":6235},{"style":1074},[6236],{"type":998,"value":1124},{"type":993,"tag":1025,"props":6238,"children":6239},{"style":1054},[6240],{"type":998,"value":1082},{"type":993,"tag":1025,"props":6242,"children":6243},{"style":1074},[6244],{"type":998,"value":1087},{"type":993,"tag":1025,"props":6246,"children":6247},{"style":1048},[6248],{"type":998,"value":1092},{"type":993,"tag":1025,"props":6250,"children":6251},{"style":1054},[6252],{"type":998,"value":1057},{"type":993,"tag":1025,"props":6254,"children":6255},{"style":1048},[6256],{"type":998,"value":2817},{"type":993,"tag":1025,"props":6258,"children":6259},{"style":1054},[6260],{"type":998,"value":6261},"(numbers)):\n",{"type":993,"tag":1025,"props":6263,"children":6264},{"class":1027,"line":54},[6265,6269,6273,6277,6281,6285,6289,6293,6297,6301],{"type":993,"tag":1025,"props":6266,"children":6267},{"style":1074},[6268],{"type":998,"value":5547},{"type":993,"tag":1025,"props":6270,"children":6271},{"style":1054},[6272],{"type":998,"value":1129},{"type":993,"tag":1025,"props":6274,"children":6275},{"style":1074},[6276],{"type":998,"value":1087},{"type":993,"tag":1025,"props":6278,"children":6279},{"style":1048},[6280],{"type":998,"value":1092},{"type":993,"tag":1025,"props":6282,"children":6283},{"style":1054},[6284],{"type":998,"value":3806},{"type":993,"tag":1025,"props":6286,"children":6287},{"style":1074},[6288],{"type":998,"value":3499},{"type":993,"tag":1025,"props":6290,"children":6291},{"style":1048},[6292],{"type":998,"value":3504},{"type":993,"tag":1025,"props":6294,"children":6295},{"style":1054},[6296],{"type":998,"value":1106},{"type":993,"tag":1025,"props":6298,"children":6299},{"style":1048},[6300],{"type":998,"value":2817},{"type":993,"tag":1025,"props":6302,"children":6303},{"style":1054},[6304],{"type":998,"value":6261},{"type":993,"tag":1025,"props":6306,"children":6307},{"class":1027,"line":63},[6308,6312,6317,6321,6326,6330],{"type":993,"tag":1025,"props":6309,"children":6310},{"style":1074},[6311],{"type":998,"value":5572},{"type":993,"tag":1025,"props":6313,"children":6314},{"style":1054},[6315],{"type":998,"value":6316}," numbers[i] ",{"type":993,"tag":1025,"props":6318,"children":6319},{"style":1074},[6320],{"type":998,"value":3499},{"type":993,"tag":1025,"props":6322,"children":6323},{"style":1054},[6324],{"type":998,"value":6325}," numbers[j] ",{"type":993,"tag":1025,"props":6327,"children":6328},{"style":1074},[6329],{"type":998,"value":2872},{"type":993,"tag":1025,"props":6331,"children":6332},{"style":1054},[6333],{"type":998,"value":6334}," target_sum:\n",{"type":993,"tag":1025,"props":6336,"children":6337},{"class":1027,"line":72},[6338],{"type":993,"tag":1025,"props":6339,"children":6340},{"style":1054},[6341],{"type":998,"value":6342},"                pairs.append((numbers[i], numbers[j]))\n",{"type":993,"tag":1025,"props":6344,"children":6345},{"class":1027,"line":81},[6346,6350],{"type":993,"tag":1025,"props":6347,"children":6348},{"style":1074},[6349],{"type":998,"value":5606},{"type":993,"tag":1025,"props":6351,"children":6352},{"style":1054},[6353],{"type":998,"value":6354}," pairs\n",{"type":993,"tag":1025,"props":6356,"children":6357},{"class":1027,"line":91},[6358],{"type":993,"tag":1025,"props":6359,"children":6360},{"emptyLinePlaceholder":13},[6361],{"type":998,"value":1291},{"type":993,"tag":1025,"props":6363,"children":6364},{"class":1027,"line":100},[6365,6369,6373,6378,6382,6386,6390,6394,6398,6402,6406,6410,6414],{"type":993,"tag":1025,"props":6366,"children":6367},{"style":1054},[6368],{"type":998,"value":3035},{"type":993,"tag":1025,"props":6370,"children":6371},{"style":1074},[6372],{"type":998,"value":1170},{"type":993,"tag":1025,"props":6374,"children":6375},{"style":1054},[6376],{"type":998,"value":6377}," [",{"type":993,"tag":1025,"props":6379,"children":6380},{"style":1048},[6381],{"type":998,"value":1101},{"type":993,"tag":1025,"props":6383,"children":6384},{"style":1054},[6385],{"type":998,"value":1106},{"type":993,"tag":1025,"props":6387,"children":6388},{"style":1048},[6389],{"type":998,"value":1329},{"type":993,"tag":1025,"props":6391,"children":6392},{"style":1054},[6393],{"type":998,"value":1106},{"type":993,"tag":1025,"props":6395,"children":6396},{"style":1048},[6397],{"type":998,"value":1338},{"type":993,"tag":1025,"props":6399,"children":6400},{"style":1054},[6401],{"type":998,"value":1106},{"type":993,"tag":1025,"props":6403,"children":6404},{"style":1048},[6405],{"type":998,"value":1111},{"type":993,"tag":1025,"props":6407,"children":6408},{"style":1054},[6409],{"type":998,"value":1106},{"type":993,"tag":1025,"props":6411,"children":6412},{"style":1048},[6413],{"type":998,"value":1356},{"type":993,"tag":1025,"props":6415,"children":6416},{"style":1054},[6417],{"type":998,"value":2471},{"type":993,"tag":1025,"props":6419,"children":6420},{"class":1027,"line":109},[6421,6426,6430,6435,6439],{"type":993,"tag":1025,"props":6422,"children":6423},{"style":1054},[6424],{"type":998,"value":6425},"pairs ",{"type":993,"tag":1025,"props":6427,"children":6428},{"style":1074},[6429],{"type":998,"value":1170},{"type":993,"tag":1025,"props":6431,"children":6432},{"style":1054},[6433],{"type":998,"value":6434}," find_pairs_sum(numbers, ",{"type":993,"tag":1025,"props":6436,"children":6437},{"style":1048},[6438],{"type":998,"value":1374},{"type":993,"tag":1025,"props":6440,"children":6441},{"style":1054},[6442],{"type":998,"value":1068},{"type":993,"tag":1025,"props":6444,"children":6445},{"class":1027,"line":118},[6446,6450,6454,6458,6463,6467,6472,6476,6480],{"type":993,"tag":1025,"props":6447,"children":6448},{"style":1048},[6449],{"type":998,"value":1051},{"type":993,"tag":1025,"props":6451,"children":6452},{"style":1054},[6453],{"type":998,"value":1057},{"type":993,"tag":1025,"props":6455,"children":6456},{"style":1074},[6457],{"type":998,"value":1201},{"type":993,"tag":1025,"props":6459,"children":6460},{"style":1060},[6461],{"type":998,"value":6462},"\"Pairs that sum to 7: ",{"type":993,"tag":1025,"props":6464,"children":6465},{"style":1048},[6466],{"type":998,"value":1211},{"type":993,"tag":1025,"props":6468,"children":6469},{"style":1054},[6470],{"type":998,"value":6471},"pairs",{"type":993,"tag":1025,"props":6473,"children":6474},{"style":1048},[6475],{"type":998,"value":1221},{"type":993,"tag":1025,"props":6477,"children":6478},{"style":1060},[6479],{"type":998,"value":1206},{"type":993,"tag":1025,"props":6481,"children":6482},{"style":1054},[6483],{"type":998,"value":1068},{"type":993,"tag":1597,"props":6485,"children":6487},{"id":6486},"_2d-structure-search",[6488],{"type":998,"value":6489},"2D Structure Search",{"type":993,"tag":1000,"props":6491,"children":6492},{},[6493],{"type":998,"value":6494},"Coordinate-based search with position return for spatial data structures:",{"type":993,"tag":1011,"props":6496,"children":6497},{},[6498],{"type":993,"tag":1015,"props":6499,"children":6501},{"className":1017,"code":6500,"language":6,"meta":8,"style":8},"# Nested search pattern\ndef search_2d(matrix, target):\n    for i, row in enumerate(matrix):\n        for j, value in enumerate(row):\n            if value == target:\n                return (i, j)\n    return None\n\ntest_matrix = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]\nposition = search_2d(test_matrix, 5)\nprint(f\"Position of 5: {position}\")\n",[6502],{"type":993,"tag":1021,"props":6503,"children":6504},{"__ignoreMap":8},[6505,6513,6529,6552,6575,6594,6605,6616,6623,6710,6735],{"type":993,"tag":1025,"props":6506,"children":6507},{"class":1027,"line":12},[6508],{"type":993,"tag":1025,"props":6509,"children":6510},{"style":1031},[6511],{"type":998,"value":6512},"# Nested search pattern\n",{"type":993,"tag":1025,"props":6514,"children":6515},{"class":1027,"line":27},[6516,6520,6525],{"type":993,"tag":1025,"props":6517,"children":6518},{"style":1074},[6519],{"type":998,"value":5503},{"type":993,"tag":1025,"props":6521,"children":6522},{"style":5506},[6523],{"type":998,"value":6524}," search_2d",{"type":993,"tag":1025,"props":6526,"children":6527},{"style":1054},[6528],{"type":998,"value":5514},{"type":993,"tag":1025,"props":6530,"children":6531},{"class":1027,"line":36},[6532,6536,6540,6544,6548],{"type":993,"tag":1025,"props":6533,"children":6534},{"style":1074},[6535],{"type":998,"value":1124},{"type":993,"tag":1025,"props":6537,"children":6538},{"style":1054},[6539],{"type":998,"value":5526},{"type":993,"tag":1025,"props":6541,"children":6542},{"style":1074},[6543],{"type":998,"value":1087},{"type":993,"tag":1025,"props":6545,"children":6546},{"style":1048},[6547],{"type":998,"value":2526},{"type":993,"tag":1025,"props":6549,"children":6550},{"style":1054},[6551],{"type":998,"value":5539},{"type":993,"tag":1025,"props":6553,"children":6554},{"class":1027,"line":45},[6555,6559,6563,6567,6571],{"type":993,"tag":1025,"props":6556,"children":6557},{"style":1074},[6558],{"type":998,"value":5547},{"type":993,"tag":1025,"props":6560,"children":6561},{"style":1054},[6562],{"type":998,"value":5552},{"type":993,"tag":1025,"props":6564,"children":6565},{"style":1074},[6566],{"type":998,"value":1087},{"type":993,"tag":1025,"props":6568,"children":6569},{"style":1048},[6570],{"type":998,"value":2526},{"type":993,"tag":1025,"props":6572,"children":6573},{"style":1054},[6574],{"type":998,"value":2556},{"type":993,"tag":1025,"props":6576,"children":6577},{"class":1027,"line":54},[6578,6582,6586,6590],{"type":993,"tag":1025,"props":6579,"children":6580},{"style":1074},[6581],{"type":998,"value":5572},{"type":993,"tag":1025,"props":6583,"children":6584},{"style":1054},[6585],{"type":998,"value":5577},{"type":993,"tag":1025,"props":6587,"children":6588},{"style":1074},[6589],{"type":998,"value":2872},{"type":993,"tag":1025,"props":6591,"children":6592},{"style":1054},[6593],{"type":998,"value":2877},{"type":993,"tag":1025,"props":6595,"children":6596},{"class":1027,"line":63},[6597,6601],{"type":993,"tag":1025,"props":6598,"children":6599},{"style":1074},[6600],{"type":998,"value":5593},{"type":993,"tag":1025,"props":6602,"children":6603},{"style":1054},[6604],{"type":998,"value":5598},{"type":993,"tag":1025,"props":6606,"children":6607},{"class":1027,"line":72},[6608,6612],{"type":993,"tag":1025,"props":6609,"children":6610},{"style":1074},[6611],{"type":998,"value":5606},{"type":993,"tag":1025,"props":6613,"children":6614},{"style":1048},[6615],{"type":998,"value":5611},{"type":993,"tag":1025,"props":6617,"children":6618},{"class":1027,"line":81},[6619],{"type":993,"tag":1025,"props":6620,"children":6621},{"emptyLinePlaceholder":13},[6622],{"type":998,"value":1291},{"type":993,"tag":1025,"props":6624,"children":6625},{"class":1027,"line":91},[6626,6630,6634,6638,6642,6646,6650,6654,6658,6662,6666,6670,6674,6678,6682,6686,6690,6694,6698,6702,6706],{"type":993,"tag":1025,"props":6627,"children":6628},{"style":1054},[6629],{"type":998,"value":6058},{"type":993,"tag":1025,"props":6631,"children":6632},{"style":1074},[6633],{"type":998,"value":1170},{"type":993,"tag":1025,"props":6635,"children":6636},{"style":1054},[6637],{"type":998,"value":1316},{"type":993,"tag":1025,"props":6639,"children":6640},{"style":1048},[6641],{"type":998,"value":1101},{"type":993,"tag":1025,"props":6643,"children":6644},{"style":1054},[6645],{"type":998,"value":1106},{"type":993,"tag":1025,"props":6647,"children":6648},{"style":1048},[6649],{"type":998,"value":1329},{"type":993,"tag":1025,"props":6651,"children":6652},{"style":1054},[6653],{"type":998,"value":1106},{"type":993,"tag":1025,"props":6655,"children":6656},{"style":1048},[6657],{"type":998,"value":1338},{"type":993,"tag":1025,"props":6659,"children":6660},{"style":1054},[6661],{"type":998,"value":1343},{"type":993,"tag":1025,"props":6663,"children":6664},{"style":1048},[6665],{"type":998,"value":1111},{"type":993,"tag":1025,"props":6667,"children":6668},{"style":1054},[6669],{"type":998,"value":1106},{"type":993,"tag":1025,"props":6671,"children":6672},{"style":1048},[6673],{"type":998,"value":1356},{"type":993,"tag":1025,"props":6675,"children":6676},{"style":1054},[6677],{"type":998,"value":1106},{"type":993,"tag":1025,"props":6679,"children":6680},{"style":1048},[6681],{"type":998,"value":1365},{"type":993,"tag":1025,"props":6683,"children":6684},{"style":1054},[6685],{"type":998,"value":1343},{"type":993,"tag":1025,"props":6687,"children":6688},{"style":1048},[6689],{"type":998,"value":1374},{"type":993,"tag":1025,"props":6691,"children":6692},{"style":1054},[6693],{"type":998,"value":1106},{"type":993,"tag":1025,"props":6695,"children":6696},{"style":1048},[6697],{"type":998,"value":1383},{"type":993,"tag":1025,"props":6699,"children":6700},{"style":1054},[6701],{"type":998,"value":1106},{"type":993,"tag":1025,"props":6703,"children":6704},{"style":1048},[6705],{"type":998,"value":1392},{"type":993,"tag":1025,"props":6707,"children":6708},{"style":1054},[6709],{"type":998,"value":1397},{"type":993,"tag":1025,"props":6711,"children":6712},{"class":1027,"line":100},[6713,6718,6722,6727,6731],{"type":993,"tag":1025,"props":6714,"children":6715},{"style":1054},[6716],{"type":998,"value":6717},"position ",{"type":993,"tag":1025,"props":6719,"children":6720},{"style":1074},[6721],{"type":998,"value":1170},{"type":993,"tag":1025,"props":6723,"children":6724},{"style":1054},[6725],{"type":998,"value":6726}," search_2d(test_matrix, ",{"type":993,"tag":1025,"props":6728,"children":6729},{"style":1048},[6730],{"type":998,"value":1356},{"type":993,"tag":1025,"props":6732,"children":6733},{"style":1054},[6734],{"type":998,"value":1068},{"type":993,"tag":1025,"props":6736,"children":6737},{"class":1027,"line":109},[6738,6742,6746,6750,6755,6759,6764,6768,6772],{"type":993,"tag":1025,"props":6739,"children":6740},{"style":1048},[6741],{"type":998,"value":1051},{"type":993,"tag":1025,"props":6743,"children":6744},{"style":1054},[6745],{"type":998,"value":1057},{"type":993,"tag":1025,"props":6747,"children":6748},{"style":1074},[6749],{"type":998,"value":1201},{"type":993,"tag":1025,"props":6751,"children":6752},{"style":1060},[6753],{"type":998,"value":6754},"\"Position of 5: ",{"type":993,"tag":1025,"props":6756,"children":6757},{"style":1048},[6758],{"type":998,"value":1211},{"type":993,"tag":1025,"props":6760,"children":6761},{"style":1054},[6762],{"type":998,"value":6763},"position",{"type":993,"tag":1025,"props":6765,"children":6766},{"style":1048},[6767],{"type":998,"value":1221},{"type":993,"tag":1025,"props":6769,"children":6770},{"style":1060},[6771],{"type":998,"value":1206},{"type":993,"tag":1025,"props":6773,"children":6774},{"style":1054},[6775],{"type":998,"value":1068},{"type":993,"tag":1597,"props":6777,"children":6779},{"id":6778},"value-accumulation-across-dimensions",[6780],{"type":998,"value":6781},"Value Accumulation Across Dimensions",{"type":993,"tag":1000,"props":6783,"children":6784},{},[6785],{"type":998,"value":6786},"Aggregate calculation through systematic element collection:",{"type":993,"tag":1011,"props":6788,"children":6789},{},[6790],{"type":993,"tag":1015,"props":6791,"children":6793},{"className":1017,"code":6792,"language":6,"meta":8,"style":8},"# Accumulation pattern\ndef sum_matrix(matrix):\n    total = 0\n    for row in matrix:\n        for value in row:\n            total += value\n    return total\n\ntest_matrix = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]\nmatrix_sum = sum_matrix(test_matrix)\nprint(f\"Matrix sum: {matrix_sum}\")\n",[6794],{"type":993,"tag":1021,"props":6795,"children":6796},{"__ignoreMap":8},[6797,6805,6821,6837,6856,6875,6892,6904,6911,6998,7015],{"type":993,"tag":1025,"props":6798,"children":6799},{"class":1027,"line":12},[6800],{"type":993,"tag":1025,"props":6801,"children":6802},{"style":1031},[6803],{"type":998,"value":6804},"# Accumulation pattern\n",{"type":993,"tag":1025,"props":6806,"children":6807},{"class":1027,"line":27},[6808,6812,6817],{"type":993,"tag":1025,"props":6809,"children":6810},{"style":1074},[6811],{"type":998,"value":5503},{"type":993,"tag":1025,"props":6813,"children":6814},{"style":5506},[6815],{"type":998,"value":6816}," sum_matrix",{"type":993,"tag":1025,"props":6818,"children":6819},{"style":1054},[6820],{"type":998,"value":5539},{"type":993,"tag":1025,"props":6822,"children":6823},{"class":1027,"line":36},[6824,6829,6833],{"type":993,"tag":1025,"props":6825,"children":6826},{"style":1054},[6827],{"type":998,"value":6828},"    total ",{"type":993,"tag":1025,"props":6830,"children":6831},{"style":1074},[6832],{"type":998,"value":1170},{"type":993,"tag":1025,"props":6834,"children":6835},{"style":1048},[6836],{"type":998,"value":2084},{"type":993,"tag":1025,"props":6838,"children":6839},{"class":1027,"line":45},[6840,6844,6848,6852],{"type":993,"tag":1025,"props":6841,"children":6842},{"style":1074},[6843],{"type":998,"value":1124},{"type":993,"tag":1025,"props":6845,"children":6846},{"style":1054},[6847],{"type":998,"value":1429},{"type":993,"tag":1025,"props":6849,"children":6850},{"style":1074},[6851],{"type":998,"value":1087},{"type":993,"tag":1025,"props":6853,"children":6854},{"style":1054},[6855],{"type":998,"value":1438},{"type":993,"tag":1025,"props":6857,"children":6858},{"class":1027,"line":54},[6859,6863,6867,6871],{"type":993,"tag":1025,"props":6860,"children":6861},{"style":1074},[6862],{"type":998,"value":5547},{"type":993,"tag":1025,"props":6864,"children":6865},{"style":1054},[6866],{"type":998,"value":5577},{"type":993,"tag":1025,"props":6868,"children":6869},{"style":1074},[6870],{"type":998,"value":1087},{"type":993,"tag":1025,"props":6872,"children":6873},{"style":1054},[6874],{"type":998,"value":1459},{"type":993,"tag":1025,"props":6876,"children":6877},{"class":1027,"line":63},[6878,6883,6887],{"type":993,"tag":1025,"props":6879,"children":6880},{"style":1054},[6881],{"type":998,"value":6882},"            total ",{"type":993,"tag":1025,"props":6884,"children":6885},{"style":1074},[6886],{"type":998,"value":2145},{"type":993,"tag":1025,"props":6888,"children":6889},{"style":1054},[6890],{"type":998,"value":6891}," value\n",{"type":993,"tag":1025,"props":6893,"children":6894},{"class":1027,"line":72},[6895,6899],{"type":993,"tag":1025,"props":6896,"children":6897},{"style":1074},[6898],{"type":998,"value":5606},{"type":993,"tag":1025,"props":6900,"children":6901},{"style":1054},[6902],{"type":998,"value":6903}," total\n",{"type":993,"tag":1025,"props":6905,"children":6906},{"class":1027,"line":81},[6907],{"type":993,"tag":1025,"props":6908,"children":6909},{"emptyLinePlaceholder":13},[6910],{"type":998,"value":1291},{"type":993,"tag":1025,"props":6912,"children":6913},{"class":1027,"line":91},[6914,6918,6922,6926,6930,6934,6938,6942,6946,6950,6954,6958,6962,6966,6970,6974,6978,6982,6986,6990,6994],{"type":993,"tag":1025,"props":6915,"children":6916},{"style":1054},[6917],{"type":998,"value":6058},{"type":993,"tag":1025,"props":6919,"children":6920},{"style":1074},[6921],{"type":998,"value":1170},{"type":993,"tag":1025,"props":6923,"children":6924},{"style":1054},[6925],{"type":998,"value":1316},{"type":993,"tag":1025,"props":6927,"children":6928},{"style":1048},[6929],{"type":998,"value":1101},{"type":993,"tag":1025,"props":6931,"children":6932},{"style":1054},[6933],{"type":998,"value":1106},{"type":993,"tag":1025,"props":6935,"children":6936},{"style":1048},[6937],{"type":998,"value":1329},{"type":993,"tag":1025,"props":6939,"children":6940},{"style":1054},[6941],{"type":998,"value":1106},{"type":993,"tag":1025,"props":6943,"children":6944},{"style":1048},[6945],{"type":998,"value":1338},{"type":993,"tag":1025,"props":6947,"children":6948},{"style":1054},[6949],{"type":998,"value":1343},{"type":993,"tag":1025,"props":6951,"children":6952},{"style":1048},[6953],{"type":998,"value":1111},{"type":993,"tag":1025,"props":6955,"children":6956},{"style":1054},[6957],{"type":998,"value":1106},{"type":993,"tag":1025,"props":6959,"children":6960},{"style":1048},[6961],{"type":998,"value":1356},{"type":993,"tag":1025,"props":6963,"children":6964},{"style":1054},[6965],{"type":998,"value":1106},{"type":993,"tag":1025,"props":6967,"children":6968},{"style":1048},[6969],{"type":998,"value":1365},{"type":993,"tag":1025,"props":6971,"children":6972},{"style":1054},[6973],{"type":998,"value":1343},{"type":993,"tag":1025,"props":6975,"children":6976},{"style":1048},[6977],{"type":998,"value":1374},{"type":993,"tag":1025,"props":6979,"children":6980},{"style":1054},[6981],{"type":998,"value":1106},{"type":993,"tag":1025,"props":6983,"children":6984},{"style":1048},[6985],{"type":998,"value":1383},{"type":993,"tag":1025,"props":6987,"children":6988},{"style":1054},[6989],{"type":998,"value":1106},{"type":993,"tag":1025,"props":6991,"children":6992},{"style":1048},[6993],{"type":998,"value":1392},{"type":993,"tag":1025,"props":6995,"children":6996},{"style":1054},[6997],{"type":998,"value":1397},{"type":993,"tag":1025,"props":6999,"children":7000},{"class":1027,"line":100},[7001,7006,7010],{"type":993,"tag":1025,"props":7002,"children":7003},{"style":1054},[7004],{"type":998,"value":7005},"matrix_sum ",{"type":993,"tag":1025,"props":7007,"children":7008},{"style":1074},[7009],{"type":998,"value":1170},{"type":993,"tag":1025,"props":7011,"children":7012},{"style":1054},[7013],{"type":998,"value":7014}," sum_matrix(test_matrix)\n",{"type":993,"tag":1025,"props":7016,"children":7017},{"class":1027,"line":109},[7018,7022,7026,7030,7035,7039,7044,7048,7052],{"type":993,"tag":1025,"props":7019,"children":7020},{"style":1048},[7021],{"type":998,"value":1051},{"type":993,"tag":1025,"props":7023,"children":7024},{"style":1054},[7025],{"type":998,"value":1057},{"type":993,"tag":1025,"props":7027,"children":7028},{"style":1074},[7029],{"type":998,"value":1201},{"type":993,"tag":1025,"props":7031,"children":7032},{"style":1060},[7033],{"type":998,"value":7034},"\"Matrix sum: ",{"type":993,"tag":1025,"props":7036,"children":7037},{"style":1048},[7038],{"type":998,"value":1211},{"type":993,"tag":1025,"props":7040,"children":7041},{"style":1054},[7042],{"type":998,"value":7043},"matrix_sum",{"type":993,"tag":1025,"props":7045,"children":7046},{"style":1048},[7047],{"type":998,"value":1221},{"type":993,"tag":1025,"props":7049,"children":7050},{"style":1060},[7051],{"type":998,"value":1206},{"type":993,"tag":1025,"props":7053,"children":7054},{"style":1054},[7055],{"type":998,"value":1068},{"type":993,"tag":1508,"props":7057,"children":7059},{"id":7058},"performance-considerations",[7060],{"type":998,"value":7061},"Performance Considerations",{"type":993,"tag":1000,"props":7063,"children":7064},{},[7065],{"type":998,"value":7066},"Nested loops can have significant performance implications, especially with large datasets. The time complexity grows multiplicatively with each level of nesting, making efficiency crucial for nested loop design.",{"type":993,"tag":1520,"props":7068,"children":7071},{"emoji":7069,"title":7070,"type":1524},"⚡","Performance Optimization Guidelines",[7072,7080,7103,7111,7134],{"type":993,"tag":1000,"props":7073,"children":7074},{},[7075],{"type":993,"tag":1530,"props":7076,"children":7077},{},[7078],{"type":998,"value":7079},"Complexity Considerations:",{"type":993,"tag":1536,"props":7081,"children":7082},{},[7083,7088,7093,7098],{"type":993,"tag":1540,"props":7084,"children":7085},{},[7086],{"type":998,"value":7087},"Time complexity: O(n × m) for two nested loops",{"type":993,"tag":1540,"props":7089,"children":7090},{},[7091],{"type":998,"value":7092},"Space complexity increases with nested data structures",{"type":993,"tag":1540,"props":7094,"children":7095},{},[7096],{"type":998,"value":7097},"Each additional nesting level multiplies execution time",{"type":993,"tag":1540,"props":7099,"children":7100},{},[7101],{"type":998,"value":7102},"Large datasets can cause exponential performance degradation",{"type":993,"tag":1000,"props":7104,"children":7105},{},[7106],{"type":993,"tag":1530,"props":7107,"children":7108},{},[7109],{"type":998,"value":7110},"Optimization Strategies:",{"type":993,"tag":1536,"props":7112,"children":7113},{},[7114,7119,7124,7129],{"type":993,"tag":1540,"props":7115,"children":7116},{},[7117],{"type":998,"value":7118},"Early termination with break statements",{"type":993,"tag":1540,"props":7120,"children":7121},{},[7122],{"type":998,"value":7123},"Efficient search algorithms for large datasets",{"type":993,"tag":1540,"props":7125,"children":7126},{},[7127],{"type":998,"value":7128},"Consider algorithmic alternatives (sorting, hashing)",{"type":993,"tag":1540,"props":7130,"children":7131},{},[7132],{"type":998,"value":7133},"Profile code to identify actual bottlenecks",{"type":993,"tag":1000,"props":7135,"children":7136},{},[7137,7142],{"type":993,"tag":1530,"props":7138,"children":7139},{},[7140],{"type":998,"value":7141},"Scalability:",{"type":998,"value":7143}," Test with realistic data sizes during development",{"type":993,"tag":1597,"props":7145,"children":7147},{"id":7146},"search-efficiency-comparison",[7148],{"type":998,"value":7149},"Search Efficiency Comparison",{"type":993,"tag":1000,"props":7151,"children":7152},{},[7153],{"type":998,"value":7154},"Performance difference between early termination and exhaustive search:",{"type":993,"tag":1011,"props":7156,"children":7157},{},[7158],{"type":993,"tag":1015,"props":7159,"children":7161},{"className":1017,"code":7160,"language":6,"meta":8,"style":8},"# Efficient nested loop with early termination\ndef efficient_search(matrix, target):\n    for i, row in enumerate(matrix):\n        for j, value in enumerate(row):\n            if value == target:\n                return (i, j)  # Early return saves time\n    return None\n\n# Demonstration\nmatrix = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]\nposition = efficient_search(matrix, 5)\nprint(f\"Found 5 at position: {position}\")\nprint(\"Early termination saves checking remaining elements!\")\n",[7162],{"type":993,"tag":1021,"props":7163,"children":7164},{"__ignoreMap":8},[7165,7173,7189,7212,7235,7254,7271,7282,7289,7297,7384,7408,7448],{"type":993,"tag":1025,"props":7166,"children":7167},{"class":1027,"line":12},[7168],{"type":993,"tag":1025,"props":7169,"children":7170},{"style":1031},[7171],{"type":998,"value":7172},"# Efficient nested loop with early termination\n",{"type":993,"tag":1025,"props":7174,"children":7175},{"class":1027,"line":27},[7176,7180,7185],{"type":993,"tag":1025,"props":7177,"children":7178},{"style":1074},[7179],{"type":998,"value":5503},{"type":993,"tag":1025,"props":7181,"children":7182},{"style":5506},[7183],{"type":998,"value":7184}," efficient_search",{"type":993,"tag":1025,"props":7186,"children":7187},{"style":1054},[7188],{"type":998,"value":5514},{"type":993,"tag":1025,"props":7190,"children":7191},{"class":1027,"line":36},[7192,7196,7200,7204,7208],{"type":993,"tag":1025,"props":7193,"children":7194},{"style":1074},[7195],{"type":998,"value":1124},{"type":993,"tag":1025,"props":7197,"children":7198},{"style":1054},[7199],{"type":998,"value":5526},{"type":993,"tag":1025,"props":7201,"children":7202},{"style":1074},[7203],{"type":998,"value":1087},{"type":993,"tag":1025,"props":7205,"children":7206},{"style":1048},[7207],{"type":998,"value":2526},{"type":993,"tag":1025,"props":7209,"children":7210},{"style":1054},[7211],{"type":998,"value":5539},{"type":993,"tag":1025,"props":7213,"children":7214},{"class":1027,"line":45},[7215,7219,7223,7227,7231],{"type":993,"tag":1025,"props":7216,"children":7217},{"style":1074},[7218],{"type":998,"value":5547},{"type":993,"tag":1025,"props":7220,"children":7221},{"style":1054},[7222],{"type":998,"value":5552},{"type":993,"tag":1025,"props":7224,"children":7225},{"style":1074},[7226],{"type":998,"value":1087},{"type":993,"tag":1025,"props":7228,"children":7229},{"style":1048},[7230],{"type":998,"value":2526},{"type":993,"tag":1025,"props":7232,"children":7233},{"style":1054},[7234],{"type":998,"value":2556},{"type":993,"tag":1025,"props":7236,"children":7237},{"class":1027,"line":54},[7238,7242,7246,7250],{"type":993,"tag":1025,"props":7239,"children":7240},{"style":1074},[7241],{"type":998,"value":5572},{"type":993,"tag":1025,"props":7243,"children":7244},{"style":1054},[7245],{"type":998,"value":5577},{"type":993,"tag":1025,"props":7247,"children":7248},{"style":1074},[7249],{"type":998,"value":2872},{"type":993,"tag":1025,"props":7251,"children":7252},{"style":1054},[7253],{"type":998,"value":2877},{"type":993,"tag":1025,"props":7255,"children":7256},{"class":1027,"line":63},[7257,7261,7266],{"type":993,"tag":1025,"props":7258,"children":7259},{"style":1074},[7260],{"type":998,"value":5593},{"type":993,"tag":1025,"props":7262,"children":7263},{"style":1054},[7264],{"type":998,"value":7265}," (i, j)  ",{"type":993,"tag":1025,"props":7267,"children":7268},{"style":1031},[7269],{"type":998,"value":7270},"# Early return saves time\n",{"type":993,"tag":1025,"props":7272,"children":7273},{"class":1027,"line":72},[7274,7278],{"type":993,"tag":1025,"props":7275,"children":7276},{"style":1074},[7277],{"type":998,"value":5606},{"type":993,"tag":1025,"props":7279,"children":7280},{"style":1048},[7281],{"type":998,"value":5611},{"type":993,"tag":1025,"props":7283,"children":7284},{"class":1027,"line":81},[7285],{"type":993,"tag":1025,"props":7286,"children":7287},{"emptyLinePlaceholder":13},[7288],{"type":998,"value":1291},{"type":993,"tag":1025,"props":7290,"children":7291},{"class":1027,"line":91},[7292],{"type":993,"tag":1025,"props":7293,"children":7294},{"style":1031},[7295],{"type":998,"value":7296},"# Demonstration\n",{"type":993,"tag":1025,"props":7298,"children":7299},{"class":1027,"line":100},[7300,7304,7308,7312,7316,7320,7324,7328,7332,7336,7340,7344,7348,7352,7356,7360,7364,7368,7372,7376,7380],{"type":993,"tag":1025,"props":7301,"children":7302},{"style":1054},[7303],{"type":998,"value":1307},{"type":993,"tag":1025,"props":7305,"children":7306},{"style":1074},[7307],{"type":998,"value":1170},{"type":993,"tag":1025,"props":7309,"children":7310},{"style":1054},[7311],{"type":998,"value":1316},{"type":993,"tag":1025,"props":7313,"children":7314},{"style":1048},[7315],{"type":998,"value":1101},{"type":993,"tag":1025,"props":7317,"children":7318},{"style":1054},[7319],{"type":998,"value":1106},{"type":993,"tag":1025,"props":7321,"children":7322},{"style":1048},[7323],{"type":998,"value":1329},{"type":993,"tag":1025,"props":7325,"children":7326},{"style":1054},[7327],{"type":998,"value":1106},{"type":993,"tag":1025,"props":7329,"children":7330},{"style":1048},[7331],{"type":998,"value":1338},{"type":993,"tag":1025,"props":7333,"children":7334},{"style":1054},[7335],{"type":998,"value":1343},{"type":993,"tag":1025,"props":7337,"children":7338},{"style":1048},[7339],{"type":998,"value":1111},{"type":993,"tag":1025,"props":7341,"children":7342},{"style":1054},[7343],{"type":998,"value":1106},{"type":993,"tag":1025,"props":7345,"children":7346},{"style":1048},[7347],{"type":998,"value":1356},{"type":993,"tag":1025,"props":7349,"children":7350},{"style":1054},[7351],{"type":998,"value":1106},{"type":993,"tag":1025,"props":7353,"children":7354},{"style":1048},[7355],{"type":998,"value":1365},{"type":993,"tag":1025,"props":7357,"children":7358},{"style":1054},[7359],{"type":998,"value":1343},{"type":993,"tag":1025,"props":7361,"children":7362},{"style":1048},[7363],{"type":998,"value":1374},{"type":993,"tag":1025,"props":7365,"children":7366},{"style":1054},[7367],{"type":998,"value":1106},{"type":993,"tag":1025,"props":7369,"children":7370},{"style":1048},[7371],{"type":998,"value":1383},{"type":993,"tag":1025,"props":7373,"children":7374},{"style":1054},[7375],{"type":998,"value":1106},{"type":993,"tag":1025,"props":7377,"children":7378},{"style":1048},[7379],{"type":998,"value":1392},{"type":993,"tag":1025,"props":7381,"children":7382},{"style":1054},[7383],{"type":998,"value":1397},{"type":993,"tag":1025,"props":7385,"children":7386},{"class":1027,"line":109},[7387,7391,7395,7400,7404],{"type":993,"tag":1025,"props":7388,"children":7389},{"style":1054},[7390],{"type":998,"value":6717},{"type":993,"tag":1025,"props":7392,"children":7393},{"style":1074},[7394],{"type":998,"value":1170},{"type":993,"tag":1025,"props":7396,"children":7397},{"style":1054},[7398],{"type":998,"value":7399}," efficient_search(matrix, ",{"type":993,"tag":1025,"props":7401,"children":7402},{"style":1048},[7403],{"type":998,"value":1356},{"type":993,"tag":1025,"props":7405,"children":7406},{"style":1054},[7407],{"type":998,"value":1068},{"type":993,"tag":1025,"props":7409,"children":7410},{"class":1027,"line":118},[7411,7415,7419,7423,7428,7432,7436,7440,7444],{"type":993,"tag":1025,"props":7412,"children":7413},{"style":1048},[7414],{"type":998,"value":1051},{"type":993,"tag":1025,"props":7416,"children":7417},{"style":1054},[7418],{"type":998,"value":1057},{"type":993,"tag":1025,"props":7420,"children":7421},{"style":1074},[7422],{"type":998,"value":1201},{"type":993,"tag":1025,"props":7424,"children":7425},{"style":1060},[7426],{"type":998,"value":7427},"\"Found 5 at position: ",{"type":993,"tag":1025,"props":7429,"children":7430},{"style":1048},[7431],{"type":998,"value":1211},{"type":993,"tag":1025,"props":7433,"children":7434},{"style":1054},[7435],{"type":998,"value":6763},{"type":993,"tag":1025,"props":7437,"children":7438},{"style":1048},[7439],{"type":998,"value":1221},{"type":993,"tag":1025,"props":7441,"children":7442},{"style":1060},[7443],{"type":998,"value":1206},{"type":993,"tag":1025,"props":7445,"children":7446},{"style":1054},[7447],{"type":998,"value":1068},{"type":993,"tag":1025,"props":7449,"children":7450},{"class":1027,"line":127},[7451,7455,7459,7464],{"type":993,"tag":1025,"props":7452,"children":7453},{"style":1048},[7454],{"type":998,"value":1051},{"type":993,"tag":1025,"props":7456,"children":7457},{"style":1054},[7458],{"type":998,"value":1057},{"type":993,"tag":1025,"props":7460,"children":7461},{"style":1060},[7462],{"type":998,"value":7463},"\"Early termination saves checking remaining elements!\"",{"type":993,"tag":1025,"props":7465,"children":7466},{"style":1054},[7467],{"type":998,"value":1068},{"type":993,"tag":1508,"props":7469,"children":7471},{"id":7470},"real-world-applications",[7472],{"type":998,"value":7473},"Real-World Applications",{"type":993,"tag":1000,"props":7475,"children":7476},{},[7477],{"type":998,"value":7478},"Nested loops appear in many real-world programming scenarios, from game development to data analysis. Understanding these applications helps you recognize when nested loops are the appropriate solution.",{"type":993,"tag":1520,"props":7480,"children":7482},{"emoji":7481,"title":7473,"type":2240},"🌍",[7483,7491,7514,7522,7545],{"type":993,"tag":1000,"props":7484,"children":7485},{},[7486],{"type":993,"tag":1530,"props":7487,"children":7488},{},[7489],{"type":998,"value":7490},"Industry Applications:",{"type":993,"tag":1536,"props":7492,"children":7493},{},[7494,7499,7504,7509],{"type":993,"tag":1540,"props":7495,"children":7496},{},[7497],{"type":998,"value":7498},"Game development: board games, collision detection",{"type":993,"tag":1540,"props":7500,"children":7501},{},[7502],{"type":998,"value":7503},"Data science: matrix operations, statistical analysis",{"type":993,"tag":1540,"props":7505,"children":7506},{},[7507],{"type":998,"value":7508},"Graphics programming: pixel manipulation, rendering",{"type":993,"tag":1540,"props":7510,"children":7511},{},[7512],{"type":998,"value":7513},"Scientific computing: simulations, numerical methods",{"type":993,"tag":1000,"props":7515,"children":7516},{},[7517],{"type":993,"tag":1530,"props":7518,"children":7519},{},[7520],{"type":998,"value":7521},"Problem Types:",{"type":993,"tag":1536,"props":7523,"children":7524},{},[7525,7530,7535,7540],{"type":993,"tag":1540,"props":7526,"children":7527},{},[7528],{"type":998,"value":7529},"Spatial data processing",{"type":993,"tag":1540,"props":7531,"children":7532},{},[7533],{"type":998,"value":7534},"Combinatorial analysis",{"type":993,"tag":1540,"props":7536,"children":7537},{},[7538],{"type":998,"value":7539},"Pattern recognition",{"type":993,"tag":1540,"props":7541,"children":7542},{},[7543],{"type":998,"value":7544},"Optimization algorithms",{"type":993,"tag":1000,"props":7546,"children":7547},{},[7548,7553],{"type":993,"tag":1530,"props":7549,"children":7550},{},[7551],{"type":998,"value":7552},"Professional Skills:",{"type":998,"value":7554}," Nested loop mastery essential for many programming domains",{"type":993,"tag":1597,"props":7556,"children":7558},{"id":7557},"game-logic-implementation",[7559],{"type":998,"value":7560},"Game Logic Implementation",{"type":993,"tag":1000,"props":7562,"children":7563},{},[7564],{"type":998,"value":7565},"Board game state analysis using systematic position checking:",{"type":993,"tag":1011,"props":7567,"children":7568},{},[7569],{"type":993,"tag":1015,"props":7570,"children":7572},{"className":1017,"code":7571,"language":6,"meta":8,"style":8},"# Game board processing (Tic-tac-toe)\ndef check_winner(board):\n    # Check rows\n    for row in board:\n        if row[0] == row[1] == row[2] != ' ':\n            return row[0]\n    \n    # Check columns\n    for col in range(3):\n        if board[0][col] == board[1][col] == board[2][col] != ' ':\n            return board[0][col]\n    \n    # Check diagonals\n    if board[0][0] == board[1][1] == board[2][2] != ' ':\n        return board[0][0]\n    if board[0][2] == board[1][1] == board[2][0] != ' ':\n        return board[0][2]\n    \n    return None\n\nboard = [['X', 'O', 'X'], ['O', 'X', 'O'], ['O', 'X', 'X']]\nwinner = check_winner(board)\nprint(f\"Game winner: {winner}\")\n",[7573],{"type":993,"tag":1021,"props":7574,"children":7575},{"__ignoreMap":8},[7576,7584,7601,7609,7629,7697,7717,7725,7733,7765,7830,7850,7857,7865,7953,7981,8068,8095,8102,8113,8120,8210,8227],{"type":993,"tag":1025,"props":7577,"children":7578},{"class":1027,"line":12},[7579],{"type":993,"tag":1025,"props":7580,"children":7581},{"style":1031},[7582],{"type":998,"value":7583},"# Game board processing (Tic-tac-toe)\n",{"type":993,"tag":1025,"props":7585,"children":7586},{"class":1027,"line":27},[7587,7591,7596],{"type":993,"tag":1025,"props":7588,"children":7589},{"style":1074},[7590],{"type":998,"value":5503},{"type":993,"tag":1025,"props":7592,"children":7593},{"style":5506},[7594],{"type":998,"value":7595}," check_winner",{"type":993,"tag":1025,"props":7597,"children":7598},{"style":1054},[7599],{"type":998,"value":7600},"(board):\n",{"type":993,"tag":1025,"props":7602,"children":7603},{"class":1027,"line":36},[7604],{"type":993,"tag":1025,"props":7605,"children":7606},{"style":1031},[7607],{"type":998,"value":7608},"    # Check rows\n",{"type":993,"tag":1025,"props":7610,"children":7611},{"class":1027,"line":45},[7612,7616,7620,7624],{"type":993,"tag":1025,"props":7613,"children":7614},{"style":1074},[7615],{"type":998,"value":1124},{"type":993,"tag":1025,"props":7617,"children":7618},{"style":1054},[7619],{"type":998,"value":1429},{"type":993,"tag":1025,"props":7621,"children":7622},{"style":1074},[7623],{"type":998,"value":1087},{"type":993,"tag":1025,"props":7625,"children":7626},{"style":1054},[7627],{"type":998,"value":7628}," board:\n",{"type":993,"tag":1025,"props":7630,"children":7631},{"class":1027,"line":54},[7632,7636,7641,7646,7651,7655,7659,7663,7667,7671,7675,7679,7683,7688,7693],{"type":993,"tag":1025,"props":7633,"children":7634},{"style":1074},[7635],{"type":998,"value":2862},{"type":993,"tag":1025,"props":7637,"children":7638},{"style":1054},[7639],{"type":998,"value":7640}," row[",{"type":993,"tag":1025,"props":7642,"children":7643},{"style":1048},[7644],{"type":998,"value":7645},"0",{"type":993,"tag":1025,"props":7647,"children":7648},{"style":1054},[7649],{"type":998,"value":7650},"] ",{"type":993,"tag":1025,"props":7652,"children":7653},{"style":1074},[7654],{"type":998,"value":2872},{"type":993,"tag":1025,"props":7656,"children":7657},{"style":1054},[7658],{"type":998,"value":7640},{"type":993,"tag":1025,"props":7660,"children":7661},{"style":1048},[7662],{"type":998,"value":1101},{"type":993,"tag":1025,"props":7664,"children":7665},{"style":1054},[7666],{"type":998,"value":7650},{"type":993,"tag":1025,"props":7668,"children":7669},{"style":1074},[7670],{"type":998,"value":2872},{"type":993,"tag":1025,"props":7672,"children":7673},{"style":1054},[7674],{"type":998,"value":7640},{"type":993,"tag":1025,"props":7676,"children":7677},{"style":1048},[7678],{"type":998,"value":1329},{"type":993,"tag":1025,"props":7680,"children":7681},{"style":1054},[7682],{"type":998,"value":7650},{"type":993,"tag":1025,"props":7684,"children":7685},{"style":1074},[7686],{"type":998,"value":7687},"!=",{"type":993,"tag":1025,"props":7689,"children":7690},{"style":1060},[7691],{"type":998,"value":7692}," ' '",{"type":993,"tag":1025,"props":7694,"children":7695},{"style":1054},[7696],{"type":998,"value":4611},{"type":993,"tag":1025,"props":7698,"children":7699},{"class":1027,"line":63},[7700,7705,7709,7713],{"type":993,"tag":1025,"props":7701,"children":7702},{"style":1074},[7703],{"type":998,"value":7704},"            return",{"type":993,"tag":1025,"props":7706,"children":7707},{"style":1054},[7708],{"type":998,"value":7640},{"type":993,"tag":1025,"props":7710,"children":7711},{"style":1048},[7712],{"type":998,"value":7645},{"type":993,"tag":1025,"props":7714,"children":7715},{"style":1054},[7716],{"type":998,"value":2471},{"type":993,"tag":1025,"props":7718,"children":7719},{"class":1027,"line":72},[7720],{"type":993,"tag":1025,"props":7721,"children":7722},{"style":1054},[7723],{"type":998,"value":7724},"    \n",{"type":993,"tag":1025,"props":7726,"children":7727},{"class":1027,"line":81},[7728],{"type":993,"tag":1025,"props":7729,"children":7730},{"style":1031},[7731],{"type":998,"value":7732},"    # Check columns\n",{"type":993,"tag":1025,"props":7734,"children":7735},{"class":1027,"line":91},[7736,7740,7745,7749,7753,7757,7761],{"type":993,"tag":1025,"props":7737,"children":7738},{"style":1074},[7739],{"type":998,"value":1124},{"type":993,"tag":1025,"props":7741,"children":7742},{"style":1054},[7743],{"type":998,"value":7744}," col ",{"type":993,"tag":1025,"props":7746,"children":7747},{"style":1074},[7748],{"type":998,"value":1087},{"type":993,"tag":1025,"props":7750,"children":7751},{"style":1048},[7752],{"type":998,"value":1092},{"type":993,"tag":1025,"props":7754,"children":7755},{"style":1054},[7756],{"type":998,"value":1057},{"type":993,"tag":1025,"props":7758,"children":7759},{"style":1048},[7760],{"type":998,"value":1338},{"type":993,"tag":1025,"props":7762,"children":7763},{"style":1054},[7764],{"type":998,"value":1116},{"type":993,"tag":1025,"props":7766,"children":7767},{"class":1027,"line":100},[7768,7772,7777,7781,7786,7790,7794,7798,7802,7806,7810,7814,7818,7822,7826],{"type":993,"tag":1025,"props":7769,"children":7770},{"style":1074},[7771],{"type":998,"value":2862},{"type":993,"tag":1025,"props":7773,"children":7774},{"style":1054},[7775],{"type":998,"value":7776}," board[",{"type":993,"tag":1025,"props":7778,"children":7779},{"style":1048},[7780],{"type":998,"value":7645},{"type":993,"tag":1025,"props":7782,"children":7783},{"style":1054},[7784],{"type":998,"value":7785},"][col] ",{"type":993,"tag":1025,"props":7787,"children":7788},{"style":1074},[7789],{"type":998,"value":2872},{"type":993,"tag":1025,"props":7791,"children":7792},{"style":1054},[7793],{"type":998,"value":7776},{"type":993,"tag":1025,"props":7795,"children":7796},{"style":1048},[7797],{"type":998,"value":1101},{"type":993,"tag":1025,"props":7799,"children":7800},{"style":1054},[7801],{"type":998,"value":7785},{"type":993,"tag":1025,"props":7803,"children":7804},{"style":1074},[7805],{"type":998,"value":2872},{"type":993,"tag":1025,"props":7807,"children":7808},{"style":1054},[7809],{"type":998,"value":7776},{"type":993,"tag":1025,"props":7811,"children":7812},{"style":1048},[7813],{"type":998,"value":1329},{"type":993,"tag":1025,"props":7815,"children":7816},{"style":1054},[7817],{"type":998,"value":7785},{"type":993,"tag":1025,"props":7819,"children":7820},{"style":1074},[7821],{"type":998,"value":7687},{"type":993,"tag":1025,"props":7823,"children":7824},{"style":1060},[7825],{"type":998,"value":7692},{"type":993,"tag":1025,"props":7827,"children":7828},{"style":1054},[7829],{"type":998,"value":4611},{"type":993,"tag":1025,"props":7831,"children":7832},{"class":1027,"line":109},[7833,7837,7841,7845],{"type":993,"tag":1025,"props":7834,"children":7835},{"style":1074},[7836],{"type":998,"value":7704},{"type":993,"tag":1025,"props":7838,"children":7839},{"style":1054},[7840],{"type":998,"value":7776},{"type":993,"tag":1025,"props":7842,"children":7843},{"style":1048},[7844],{"type":998,"value":7645},{"type":993,"tag":1025,"props":7846,"children":7847},{"style":1054},[7848],{"type":998,"value":7849},"][col]\n",{"type":993,"tag":1025,"props":7851,"children":7852},{"class":1027,"line":118},[7853],{"type":993,"tag":1025,"props":7854,"children":7855},{"style":1054},[7856],{"type":998,"value":7724},{"type":993,"tag":1025,"props":7858,"children":7859},{"class":1027,"line":127},[7860],{"type":993,"tag":1025,"props":7861,"children":7862},{"style":1031},[7863],{"type":998,"value":7864},"    # Check diagonals\n",{"type":993,"tag":1025,"props":7866,"children":7867},{"class":1027,"line":136},[7868,7872,7876,7880,7885,7889,7893,7897,7901,7905,7909,7913,7917,7921,7925,7929,7933,7937,7941,7945,7949],{"type":993,"tag":1025,"props":7869,"children":7870},{"style":1074},[7871],{"type":998,"value":2985},{"type":993,"tag":1025,"props":7873,"children":7874},{"style":1054},[7875],{"type":998,"value":7776},{"type":993,"tag":1025,"props":7877,"children":7878},{"style":1048},[7879],{"type":998,"value":7645},{"type":993,"tag":1025,"props":7881,"children":7882},{"style":1054},[7883],{"type":998,"value":7884},"][",{"type":993,"tag":1025,"props":7886,"children":7887},{"style":1048},[7888],{"type":998,"value":7645},{"type":993,"tag":1025,"props":7890,"children":7891},{"style":1054},[7892],{"type":998,"value":7650},{"type":993,"tag":1025,"props":7894,"children":7895},{"style":1074},[7896],{"type":998,"value":2872},{"type":993,"tag":1025,"props":7898,"children":7899},{"style":1054},[7900],{"type":998,"value":7776},{"type":993,"tag":1025,"props":7902,"children":7903},{"style":1048},[7904],{"type":998,"value":1101},{"type":993,"tag":1025,"props":7906,"children":7907},{"style":1054},[7908],{"type":998,"value":7884},{"type":993,"tag":1025,"props":7910,"children":7911},{"style":1048},[7912],{"type":998,"value":1101},{"type":993,"tag":1025,"props":7914,"children":7915},{"style":1054},[7916],{"type":998,"value":7650},{"type":993,"tag":1025,"props":7918,"children":7919},{"style":1074},[7920],{"type":998,"value":2872},{"type":993,"tag":1025,"props":7922,"children":7923},{"style":1054},[7924],{"type":998,"value":7776},{"type":993,"tag":1025,"props":7926,"children":7927},{"style":1048},[7928],{"type":998,"value":1329},{"type":993,"tag":1025,"props":7930,"children":7931},{"style":1054},[7932],{"type":998,"value":7884},{"type":993,"tag":1025,"props":7934,"children":7935},{"style":1048},[7936],{"type":998,"value":1329},{"type":993,"tag":1025,"props":7938,"children":7939},{"style":1054},[7940],{"type":998,"value":7650},{"type":993,"tag":1025,"props":7942,"children":7943},{"style":1074},[7944],{"type":998,"value":7687},{"type":993,"tag":1025,"props":7946,"children":7947},{"style":1060},[7948],{"type":998,"value":7692},{"type":993,"tag":1025,"props":7950,"children":7951},{"style":1054},[7952],{"type":998,"value":4611},{"type":993,"tag":1025,"props":7954,"children":7955},{"class":1027,"line":146},[7956,7961,7965,7969,7973,7977],{"type":993,"tag":1025,"props":7957,"children":7958},{"style":1074},[7959],{"type":998,"value":7960},"        return",{"type":993,"tag":1025,"props":7962,"children":7963},{"style":1054},[7964],{"type":998,"value":7776},{"type":993,"tag":1025,"props":7966,"children":7967},{"style":1048},[7968],{"type":998,"value":7645},{"type":993,"tag":1025,"props":7970,"children":7971},{"style":1054},[7972],{"type":998,"value":7884},{"type":993,"tag":1025,"props":7974,"children":7975},{"style":1048},[7976],{"type":998,"value":7645},{"type":993,"tag":1025,"props":7978,"children":7979},{"style":1054},[7980],{"type":998,"value":2471},{"type":993,"tag":1025,"props":7982,"children":7983},{"class":1027,"line":155},[7984,7988,7992,7996,8000,8004,8008,8012,8016,8020,8024,8028,8032,8036,8040,8044,8048,8052,8056,8060,8064],{"type":993,"tag":1025,"props":7985,"children":7986},{"style":1074},[7987],{"type":998,"value":2985},{"type":993,"tag":1025,"props":7989,"children":7990},{"style":1054},[7991],{"type":998,"value":7776},{"type":993,"tag":1025,"props":7993,"children":7994},{"style":1048},[7995],{"type":998,"value":7645},{"type":993,"tag":1025,"props":7997,"children":7998},{"style":1054},[7999],{"type":998,"value":7884},{"type":993,"tag":1025,"props":8001,"children":8002},{"style":1048},[8003],{"type":998,"value":1329},{"type":993,"tag":1025,"props":8005,"children":8006},{"style":1054},[8007],{"type":998,"value":7650},{"type":993,"tag":1025,"props":8009,"children":8010},{"style":1074},[8011],{"type":998,"value":2872},{"type":993,"tag":1025,"props":8013,"children":8014},{"style":1054},[8015],{"type":998,"value":7776},{"type":993,"tag":1025,"props":8017,"children":8018},{"style":1048},[8019],{"type":998,"value":1101},{"type":993,"tag":1025,"props":8021,"children":8022},{"style":1054},[8023],{"type":998,"value":7884},{"type":993,"tag":1025,"props":8025,"children":8026},{"style":1048},[8027],{"type":998,"value":1101},{"type":993,"tag":1025,"props":8029,"children":8030},{"style":1054},[8031],{"type":998,"value":7650},{"type":993,"tag":1025,"props":8033,"children":8034},{"style":1074},[8035],{"type":998,"value":2872},{"type":993,"tag":1025,"props":8037,"children":8038},{"style":1054},[8039],{"type":998,"value":7776},{"type":993,"tag":1025,"props":8041,"children":8042},{"style":1048},[8043],{"type":998,"value":1329},{"type":993,"tag":1025,"props":8045,"children":8046},{"style":1054},[8047],{"type":998,"value":7884},{"type":993,"tag":1025,"props":8049,"children":8050},{"style":1048},[8051],{"type":998,"value":7645},{"type":993,"tag":1025,"props":8053,"children":8054},{"style":1054},[8055],{"type":998,"value":7650},{"type":993,"tag":1025,"props":8057,"children":8058},{"style":1074},[8059],{"type":998,"value":7687},{"type":993,"tag":1025,"props":8061,"children":8062},{"style":1060},[8063],{"type":998,"value":7692},{"type":993,"tag":1025,"props":8065,"children":8066},{"style":1054},[8067],{"type":998,"value":4611},{"type":993,"tag":1025,"props":8069,"children":8070},{"class":1027,"line":164},[8071,8075,8079,8083,8087,8091],{"type":993,"tag":1025,"props":8072,"children":8073},{"style":1074},[8074],{"type":998,"value":7960},{"type":993,"tag":1025,"props":8076,"children":8077},{"style":1054},[8078],{"type":998,"value":7776},{"type":993,"tag":1025,"props":8080,"children":8081},{"style":1048},[8082],{"type":998,"value":7645},{"type":993,"tag":1025,"props":8084,"children":8085},{"style":1054},[8086],{"type":998,"value":7884},{"type":993,"tag":1025,"props":8088,"children":8089},{"style":1048},[8090],{"type":998,"value":1329},{"type":993,"tag":1025,"props":8092,"children":8093},{"style":1054},[8094],{"type":998,"value":2471},{"type":993,"tag":1025,"props":8096,"children":8097},{"class":1027,"line":173},[8098],{"type":993,"tag":1025,"props":8099,"children":8100},{"style":1054},[8101],{"type":998,"value":7724},{"type":993,"tag":1025,"props":8103,"children":8104},{"class":1027,"line":182},[8105,8109],{"type":993,"tag":1025,"props":8106,"children":8107},{"style":1074},[8108],{"type":998,"value":5606},{"type":993,"tag":1025,"props":8110,"children":8111},{"style":1048},[8112],{"type":998,"value":5611},{"type":993,"tag":1025,"props":8114,"children":8115},{"class":1027,"line":191},[8116],{"type":993,"tag":1025,"props":8117,"children":8118},{"emptyLinePlaceholder":13},[8119],{"type":998,"value":1291},{"type":993,"tag":1025,"props":8121,"children":8122},{"class":1027,"line":201},[8123,8128,8132,8136,8141,8145,8150,8154,8158,8162,8166,8170,8174,8178,8182,8186,8190,8194,8198,8202,8206],{"type":993,"tag":1025,"props":8124,"children":8125},{"style":1054},[8126],{"type":998,"value":8127},"board ",{"type":993,"tag":1025,"props":8129,"children":8130},{"style":1074},[8131],{"type":998,"value":1170},{"type":993,"tag":1025,"props":8133,"children":8134},{"style":1054},[8135],{"type":998,"value":1316},{"type":993,"tag":1025,"props":8137,"children":8138},{"style":1060},[8139],{"type":998,"value":8140},"'X'",{"type":993,"tag":1025,"props":8142,"children":8143},{"style":1054},[8144],{"type":998,"value":1106},{"type":993,"tag":1025,"props":8146,"children":8147},{"style":1060},[8148],{"type":998,"value":8149},"'O'",{"type":993,"tag":1025,"props":8151,"children":8152},{"style":1054},[8153],{"type":998,"value":1106},{"type":993,"tag":1025,"props":8155,"children":8156},{"style":1060},[8157],{"type":998,"value":8140},{"type":993,"tag":1025,"props":8159,"children":8160},{"style":1054},[8161],{"type":998,"value":1343},{"type":993,"tag":1025,"props":8163,"children":8164},{"style":1060},[8165],{"type":998,"value":8149},{"type":993,"tag":1025,"props":8167,"children":8168},{"style":1054},[8169],{"type":998,"value":1106},{"type":993,"tag":1025,"props":8171,"children":8172},{"style":1060},[8173],{"type":998,"value":8140},{"type":993,"tag":1025,"props":8175,"children":8176},{"style":1054},[8177],{"type":998,"value":1106},{"type":993,"tag":1025,"props":8179,"children":8180},{"style":1060},[8181],{"type":998,"value":8149},{"type":993,"tag":1025,"props":8183,"children":8184},{"style":1054},[8185],{"type":998,"value":1343},{"type":993,"tag":1025,"props":8187,"children":8188},{"style":1060},[8189],{"type":998,"value":8149},{"type":993,"tag":1025,"props":8191,"children":8192},{"style":1054},[8193],{"type":998,"value":1106},{"type":993,"tag":1025,"props":8195,"children":8196},{"style":1060},[8197],{"type":998,"value":8140},{"type":993,"tag":1025,"props":8199,"children":8200},{"style":1054},[8201],{"type":998,"value":1106},{"type":993,"tag":1025,"props":8203,"children":8204},{"style":1060},[8205],{"type":998,"value":8140},{"type":993,"tag":1025,"props":8207,"children":8208},{"style":1054},[8209],{"type":998,"value":1397},{"type":993,"tag":1025,"props":8211,"children":8212},{"class":1027,"line":210},[8213,8218,8222],{"type":993,"tag":1025,"props":8214,"children":8215},{"style":1054},[8216],{"type":998,"value":8217},"winner ",{"type":993,"tag":1025,"props":8219,"children":8220},{"style":1074},[8221],{"type":998,"value":1170},{"type":993,"tag":1025,"props":8223,"children":8224},{"style":1054},[8225],{"type":998,"value":8226}," check_winner(board)\n",{"type":993,"tag":1025,"props":8228,"children":8229},{"class":1027,"line":219},[8230,8234,8238,8242,8247,8251,8256,8260,8264],{"type":993,"tag":1025,"props":8231,"children":8232},{"style":1048},[8233],{"type":998,"value":1051},{"type":993,"tag":1025,"props":8235,"children":8236},{"style":1054},[8237],{"type":998,"value":1057},{"type":993,"tag":1025,"props":8239,"children":8240},{"style":1074},[8241],{"type":998,"value":1201},{"type":993,"tag":1025,"props":8243,"children":8244},{"style":1060},[8245],{"type":998,"value":8246},"\"Game winner: ",{"type":993,"tag":1025,"props":8248,"children":8249},{"style":1048},[8250],{"type":998,"value":1211},{"type":993,"tag":1025,"props":8252,"children":8253},{"style":1054},[8254],{"type":998,"value":8255},"winner",{"type":993,"tag":1025,"props":8257,"children":8258},{"style":1048},[8259],{"type":998,"value":1221},{"type":993,"tag":1025,"props":8261,"children":8262},{"style":1060},[8263],{"type":998,"value":1206},{"type":993,"tag":1025,"props":8265,"children":8266},{"style":1054},[8267],{"type":998,"value":1068},{"type":993,"tag":1597,"props":8269,"children":8271},{"id":8270},"computational-geometry",[8272],{"type":998,"value":8273},"Computational Geometry",{"type":993,"tag":1000,"props":8275,"children":8276},{},[8277],{"type":998,"value":8278},"Distance calculation and spatial analysis using coordinate-based operations:",{"type":993,"tag":1011,"props":8280,"children":8281},{},[8282],{"type":993,"tag":1015,"props":8283,"children":8285},{"className":1017,"code":8284,"language":6,"meta":8,"style":8},"# Distance calculation\ndef find_closest_pair(points):\n    min_distance = float('inf')\n    closest_pair = None\n    \n    for i in range(len(points)):\n        for j in range(i + 1, len(points)):\n            x1, y1 = points[i]\n            x2, y2 = points[j]\n            distance = ((x2 - x1) ** 2 + (y2 - y1) ** 2) ** 0.5\n            if distance \u003C min_distance:\n                min_distance = distance\n                closest_pair = (points[i], points[j])\n    \n    return closest_pair, min_distance\n\npoints = [(1, 1), (3, 4), (2, 2), (5, 1)]\npair, distance = find_closest_pair(points)\nprint(f\"Closest pair: {pair} with distance {distance:.2f}\")\n",[8286],{"type":993,"tag":1021,"props":8287,"children":8288},{"__ignoreMap":8},[8289,8297,8314,8344,8360,8367,8399,8442,8459,8476,8553,8575,8592,8609,8616,8628,8635,8718,8735],{"type":993,"tag":1025,"props":8290,"children":8291},{"class":1027,"line":12},[8292],{"type":993,"tag":1025,"props":8293,"children":8294},{"style":1031},[8295],{"type":998,"value":8296},"# Distance calculation\n",{"type":993,"tag":1025,"props":8298,"children":8299},{"class":1027,"line":27},[8300,8304,8309],{"type":993,"tag":1025,"props":8301,"children":8302},{"style":1074},[8303],{"type":998,"value":5503},{"type":993,"tag":1025,"props":8305,"children":8306},{"style":5506},[8307],{"type":998,"value":8308}," find_closest_pair",{"type":993,"tag":1025,"props":8310,"children":8311},{"style":1054},[8312],{"type":998,"value":8313},"(points):\n",{"type":993,"tag":1025,"props":8315,"children":8316},{"class":1027,"line":36},[8317,8322,8326,8331,8335,8340],{"type":993,"tag":1025,"props":8318,"children":8319},{"style":1054},[8320],{"type":998,"value":8321},"    min_distance ",{"type":993,"tag":1025,"props":8323,"children":8324},{"style":1074},[8325],{"type":998,"value":1170},{"type":993,"tag":1025,"props":8327,"children":8328},{"style":1048},[8329],{"type":998,"value":8330}," float",{"type":993,"tag":1025,"props":8332,"children":8333},{"style":1054},[8334],{"type":998,"value":1057},{"type":993,"tag":1025,"props":8336,"children":8337},{"style":1060},[8338],{"type":998,"value":8339},"'inf'",{"type":993,"tag":1025,"props":8341,"children":8342},{"style":1054},[8343],{"type":998,"value":1068},{"type":993,"tag":1025,"props":8345,"children":8346},{"class":1027,"line":45},[8347,8352,8356],{"type":993,"tag":1025,"props":8348,"children":8349},{"style":1054},[8350],{"type":998,"value":8351},"    closest_pair ",{"type":993,"tag":1025,"props":8353,"children":8354},{"style":1074},[8355],{"type":998,"value":1170},{"type":993,"tag":1025,"props":8357,"children":8358},{"style":1048},[8359],{"type":998,"value":5611},{"type":993,"tag":1025,"props":8361,"children":8362},{"class":1027,"line":54},[8363],{"type":993,"tag":1025,"props":8364,"children":8365},{"style":1054},[8366],{"type":998,"value":7724},{"type":993,"tag":1025,"props":8368,"children":8369},{"class":1027,"line":63},[8370,8374,8378,8382,8386,8390,8394],{"type":993,"tag":1025,"props":8371,"children":8372},{"style":1074},[8373],{"type":998,"value":1124},{"type":993,"tag":1025,"props":8375,"children":8376},{"style":1054},[8377],{"type":998,"value":1082},{"type":993,"tag":1025,"props":8379,"children":8380},{"style":1074},[8381],{"type":998,"value":1087},{"type":993,"tag":1025,"props":8383,"children":8384},{"style":1048},[8385],{"type":998,"value":1092},{"type":993,"tag":1025,"props":8387,"children":8388},{"style":1054},[8389],{"type":998,"value":1057},{"type":993,"tag":1025,"props":8391,"children":8392},{"style":1048},[8393],{"type":998,"value":2817},{"type":993,"tag":1025,"props":8395,"children":8396},{"style":1054},[8397],{"type":998,"value":8398},"(points)):\n",{"type":993,"tag":1025,"props":8400,"children":8401},{"class":1027,"line":72},[8402,8406,8410,8414,8418,8422,8426,8430,8434,8438],{"type":993,"tag":1025,"props":8403,"children":8404},{"style":1074},[8405],{"type":998,"value":5547},{"type":993,"tag":1025,"props":8407,"children":8408},{"style":1054},[8409],{"type":998,"value":1129},{"type":993,"tag":1025,"props":8411,"children":8412},{"style":1074},[8413],{"type":998,"value":1087},{"type":993,"tag":1025,"props":8415,"children":8416},{"style":1048},[8417],{"type":998,"value":1092},{"type":993,"tag":1025,"props":8419,"children":8420},{"style":1054},[8421],{"type":998,"value":3806},{"type":993,"tag":1025,"props":8423,"children":8424},{"style":1074},[8425],{"type":998,"value":3499},{"type":993,"tag":1025,"props":8427,"children":8428},{"style":1048},[8429],{"type":998,"value":3504},{"type":993,"tag":1025,"props":8431,"children":8432},{"style":1054},[8433],{"type":998,"value":1106},{"type":993,"tag":1025,"props":8435,"children":8436},{"style":1048},[8437],{"type":998,"value":2817},{"type":993,"tag":1025,"props":8439,"children":8440},{"style":1054},[8441],{"type":998,"value":8398},{"type":993,"tag":1025,"props":8443,"children":8444},{"class":1027,"line":81},[8445,8450,8454],{"type":993,"tag":1025,"props":8446,"children":8447},{"style":1054},[8448],{"type":998,"value":8449},"            x1, y1 ",{"type":993,"tag":1025,"props":8451,"children":8452},{"style":1074},[8453],{"type":998,"value":1170},{"type":993,"tag":1025,"props":8455,"children":8456},{"style":1054},[8457],{"type":998,"value":8458}," points[i]\n",{"type":993,"tag":1025,"props":8460,"children":8461},{"class":1027,"line":91},[8462,8467,8471],{"type":993,"tag":1025,"props":8463,"children":8464},{"style":1054},[8465],{"type":998,"value":8466},"            x2, y2 ",{"type":993,"tag":1025,"props":8468,"children":8469},{"style":1074},[8470],{"type":998,"value":1170},{"type":993,"tag":1025,"props":8472,"children":8473},{"style":1054},[8474],{"type":998,"value":8475}," points[j]\n",{"type":993,"tag":1025,"props":8477,"children":8478},{"class":1027,"line":100},[8479,8484,8488,8493,8498,8503,8508,8512,8517,8522,8526,8531,8535,8539,8544,8548],{"type":993,"tag":1025,"props":8480,"children":8481},{"style":1054},[8482],{"type":998,"value":8483},"            distance ",{"type":993,"tag":1025,"props":8485,"children":8486},{"style":1074},[8487],{"type":998,"value":1170},{"type":993,"tag":1025,"props":8489,"children":8490},{"style":1054},[8491],{"type":998,"value":8492}," ((x2 ",{"type":993,"tag":1025,"props":8494,"children":8495},{"style":1074},[8496],{"type":998,"value":8497},"-",{"type":993,"tag":1025,"props":8499,"children":8500},{"style":1054},[8501],{"type":998,"value":8502}," x1) ",{"type":993,"tag":1025,"props":8504,"children":8505},{"style":1074},[8506],{"type":998,"value":8507},"**",{"type":993,"tag":1025,"props":8509,"children":8510},{"style":1048},[8511],{"type":998,"value":4596},{"type":993,"tag":1025,"props":8513,"children":8514},{"style":1074},[8515],{"type":998,"value":8516}," +",{"type":993,"tag":1025,"props":8518,"children":8519},{"style":1054},[8520],{"type":998,"value":8521}," (y2 ",{"type":993,"tag":1025,"props":8523,"children":8524},{"style":1074},[8525],{"type":998,"value":8497},{"type":993,"tag":1025,"props":8527,"children":8528},{"style":1054},[8529],{"type":998,"value":8530}," y1) ",{"type":993,"tag":1025,"props":8532,"children":8533},{"style":1074},[8534],{"type":998,"value":8507},{"type":993,"tag":1025,"props":8536,"children":8537},{"style":1048},[8538],{"type":998,"value":4596},{"type":993,"tag":1025,"props":8540,"children":8541},{"style":1054},[8542],{"type":998,"value":8543},") ",{"type":993,"tag":1025,"props":8545,"children":8546},{"style":1074},[8547],{"type":998,"value":8507},{"type":993,"tag":1025,"props":8549,"children":8550},{"style":1048},[8551],{"type":998,"value":8552}," 0.5\n",{"type":993,"tag":1025,"props":8554,"children":8555},{"class":1027,"line":109},[8556,8560,8565,8570],{"type":993,"tag":1025,"props":8557,"children":8558},{"style":1074},[8559],{"type":998,"value":5572},{"type":993,"tag":1025,"props":8561,"children":8562},{"style":1054},[8563],{"type":998,"value":8564}," distance ",{"type":993,"tag":1025,"props":8566,"children":8567},{"style":1074},[8568],{"type":998,"value":8569},"\u003C",{"type":993,"tag":1025,"props":8571,"children":8572},{"style":1054},[8573],{"type":998,"value":8574}," min_distance:\n",{"type":993,"tag":1025,"props":8576,"children":8577},{"class":1027,"line":118},[8578,8583,8587],{"type":993,"tag":1025,"props":8579,"children":8580},{"style":1054},[8581],{"type":998,"value":8582},"                min_distance ",{"type":993,"tag":1025,"props":8584,"children":8585},{"style":1074},[8586],{"type":998,"value":1170},{"type":993,"tag":1025,"props":8588,"children":8589},{"style":1054},[8590],{"type":998,"value":8591}," distance\n",{"type":993,"tag":1025,"props":8593,"children":8594},{"class":1027,"line":127},[8595,8600,8604],{"type":993,"tag":1025,"props":8596,"children":8597},{"style":1054},[8598],{"type":998,"value":8599},"                closest_pair ",{"type":993,"tag":1025,"props":8601,"children":8602},{"style":1074},[8603],{"type":998,"value":1170},{"type":993,"tag":1025,"props":8605,"children":8606},{"style":1054},[8607],{"type":998,"value":8608}," (points[i], points[j])\n",{"type":993,"tag":1025,"props":8610,"children":8611},{"class":1027,"line":136},[8612],{"type":993,"tag":1025,"props":8613,"children":8614},{"style":1054},[8615],{"type":998,"value":7724},{"type":993,"tag":1025,"props":8617,"children":8618},{"class":1027,"line":146},[8619,8623],{"type":993,"tag":1025,"props":8620,"children":8621},{"style":1074},[8622],{"type":998,"value":5606},{"type":993,"tag":1025,"props":8624,"children":8625},{"style":1054},[8626],{"type":998,"value":8627}," closest_pair, min_distance\n",{"type":993,"tag":1025,"props":8629,"children":8630},{"class":1027,"line":155},[8631],{"type":993,"tag":1025,"props":8632,"children":8633},{"emptyLinePlaceholder":13},[8634],{"type":998,"value":1291},{"type":993,"tag":1025,"props":8636,"children":8637},{"class":1027,"line":164},[8638,8643,8647,8652,8656,8660,8664,8669,8673,8677,8681,8685,8689,8693,8697,8701,8705,8709,8713],{"type":993,"tag":1025,"props":8639,"children":8640},{"style":1054},[8641],{"type":998,"value":8642},"points ",{"type":993,"tag":1025,"props":8644,"children":8645},{"style":1074},[8646],{"type":998,"value":1170},{"type":993,"tag":1025,"props":8648,"children":8649},{"style":1054},[8650],{"type":998,"value":8651}," [(",{"type":993,"tag":1025,"props":8653,"children":8654},{"style":1048},[8655],{"type":998,"value":1101},{"type":993,"tag":1025,"props":8657,"children":8658},{"style":1054},[8659],{"type":998,"value":1106},{"type":993,"tag":1025,"props":8661,"children":8662},{"style":1048},[8663],{"type":998,"value":1101},{"type":993,"tag":1025,"props":8665,"children":8666},{"style":1054},[8667],{"type":998,"value":8668},"), (",{"type":993,"tag":1025,"props":8670,"children":8671},{"style":1048},[8672],{"type":998,"value":1338},{"type":993,"tag":1025,"props":8674,"children":8675},{"style":1054},[8676],{"type":998,"value":1106},{"type":993,"tag":1025,"props":8678,"children":8679},{"style":1048},[8680],{"type":998,"value":1111},{"type":993,"tag":1025,"props":8682,"children":8683},{"style":1054},[8684],{"type":998,"value":8668},{"type":993,"tag":1025,"props":8686,"children":8687},{"style":1048},[8688],{"type":998,"value":1329},{"type":993,"tag":1025,"props":8690,"children":8691},{"style":1054},[8692],{"type":998,"value":1106},{"type":993,"tag":1025,"props":8694,"children":8695},{"style":1048},[8696],{"type":998,"value":1329},{"type":993,"tag":1025,"props":8698,"children":8699},{"style":1054},[8700],{"type":998,"value":8668},{"type":993,"tag":1025,"props":8702,"children":8703},{"style":1048},[8704],{"type":998,"value":1356},{"type":993,"tag":1025,"props":8706,"children":8707},{"style":1054},[8708],{"type":998,"value":1106},{"type":993,"tag":1025,"props":8710,"children":8711},{"style":1048},[8712],{"type":998,"value":1101},{"type":993,"tag":1025,"props":8714,"children":8715},{"style":1054},[8716],{"type":998,"value":8717},")]\n",{"type":993,"tag":1025,"props":8719,"children":8720},{"class":1027,"line":173},[8721,8726,8730],{"type":993,"tag":1025,"props":8722,"children":8723},{"style":1054},[8724],{"type":998,"value":8725},"pair, distance ",{"type":993,"tag":1025,"props":8727,"children":8728},{"style":1074},[8729],{"type":998,"value":1170},{"type":993,"tag":1025,"props":8731,"children":8732},{"style":1054},[8733],{"type":998,"value":8734}," find_closest_pair(points)\n",{"type":993,"tag":1025,"props":8736,"children":8737},{"class":1027,"line":182},[8738,8742,8746,8750,8755,8759,8764,8768,8773,8777,8782,8787,8791,8795],{"type":993,"tag":1025,"props":8739,"children":8740},{"style":1048},[8741],{"type":998,"value":1051},{"type":993,"tag":1025,"props":8743,"children":8744},{"style":1054},[8745],{"type":998,"value":1057},{"type":993,"tag":1025,"props":8747,"children":8748},{"style":1074},[8749],{"type":998,"value":1201},{"type":993,"tag":1025,"props":8751,"children":8752},{"style":1060},[8753],{"type":998,"value":8754},"\"Closest pair: ",{"type":993,"tag":1025,"props":8756,"children":8757},{"style":1048},[8758],{"type":998,"value":1211},{"type":993,"tag":1025,"props":8760,"children":8761},{"style":1054},[8762],{"type":998,"value":8763},"pair",{"type":993,"tag":1025,"props":8765,"children":8766},{"style":1048},[8767],{"type":998,"value":1221},{"type":993,"tag":1025,"props":8769,"children":8770},{"style":1060},[8771],{"type":998,"value":8772}," with distance ",{"type":993,"tag":1025,"props":8774,"children":8775},{"style":1048},[8776],{"type":998,"value":1211},{"type":993,"tag":1025,"props":8778,"children":8779},{"style":1054},[8780],{"type":998,"value":8781},"distance",{"type":993,"tag":1025,"props":8783,"children":8784},{"style":1074},[8785],{"type":998,"value":8786},":.2f",{"type":993,"tag":1025,"props":8788,"children":8789},{"style":1048},[8790],{"type":998,"value":1221},{"type":993,"tag":1025,"props":8792,"children":8793},{"style":1060},[8794],{"type":998,"value":1206},{"type":993,"tag":1025,"props":8796,"children":8797},{"style":1054},[8798],{"type":998,"value":1068},{"type":993,"tag":1508,"props":8800,"children":8802},{"id":8801},"nested-loop-reference",[8803],{"type":998,"value":8804},"Nested Loop Reference",{"type":993,"tag":1000,"props":8806,"children":8807},{},[8808],{"type":998,"value":8809},"Nested loops provide various patterns for different multi-dimensional processing scenarios:",{"type":993,"tag":8811,"props":8812,"children":8813},"table",{},[8814,8843],{"type":993,"tag":8815,"props":8816,"children":8817},"thead",{},[8818],{"type":993,"tag":8819,"props":8820,"children":8821},"tr",{},[8822,8828,8833,8838],{"type":993,"tag":8823,"props":8824,"children":8825},"th",{},[8826],{"type":998,"value":8827},"Pattern",{"type":993,"tag":8823,"props":8829,"children":8830},{},[8831],{"type":998,"value":8832},"Purpose",{"type":993,"tag":8823,"props":8834,"children":8835},{},[8836],{"type":998,"value":8837},"Example",{"type":993,"tag":8823,"props":8839,"children":8840},{},[8841],{"type":998,"value":8842},"Use Case",{"type":993,"tag":8844,"props":8845,"children":8846},"tbody",{},[8847,8875,8902,8929,8956],{"type":993,"tag":8819,"props":8848,"children":8849},{},[8850,8856,8861,8870],{"type":993,"tag":8851,"props":8852,"children":8853},"td",{},[8854],{"type":998,"value":8855},"Matrix traversal",{"type":993,"tag":8851,"props":8857,"children":8858},{},[8859],{"type":998,"value":8860},"Process all elements",{"type":993,"tag":8851,"props":8862,"children":8863},{},[8864],{"type":993,"tag":1021,"props":8865,"children":8867},{"className":8866},[],[8868],{"type":998,"value":8869},"for row in matrix: for item in row:",{"type":993,"tag":8851,"props":8871,"children":8872},{},[8873],{"type":998,"value":8874},"Data processing",{"type":993,"tag":8819,"props":8876,"children":8877},{},[8878,8883,8888,8897],{"type":993,"tag":8851,"props":8879,"children":8880},{},[8881],{"type":998,"value":8882},"Coordinate iteration",{"type":993,"tag":8851,"props":8884,"children":8885},{},[8886],{"type":998,"value":8887},"Access by position",{"type":993,"tag":8851,"props":8889,"children":8890},{},[8891],{"type":993,"tag":1021,"props":8892,"children":8894},{"className":8893},[],[8895],{"type":998,"value":8896},"for i in range(rows): for j in range(cols):",{"type":993,"tag":8851,"props":8898,"children":8899},{},[8900],{"type":998,"value":8901},"Grid operations",{"type":993,"tag":8819,"props":8903,"children":8904},{},[8905,8910,8915,8924],{"type":993,"tag":8851,"props":8906,"children":8907},{},[8908],{"type":998,"value":8909},"Comparison loops",{"type":993,"tag":8851,"props":8911,"children":8912},{},[8913],{"type":998,"value":8914},"Compare all pairs",{"type":993,"tag":8851,"props":8916,"children":8917},{},[8918],{"type":993,"tag":1021,"props":8919,"children":8921},{"className":8920},[],[8922],{"type":998,"value":8923},"for i in range(n): for j in range(i+1, n):",{"type":993,"tag":8851,"props":8925,"children":8926},{},[8927],{"type":998,"value":8928},"Finding relationships",{"type":993,"tag":8819,"props":8930,"children":8931},{},[8932,8937,8942,8951],{"type":993,"tag":8851,"props":8933,"children":8934},{},[8935],{"type":998,"value":8936},"Pattern generation",{"type":993,"tag":8851,"props":8938,"children":8939},{},[8940],{"type":998,"value":8941},"Create visual patterns",{"type":993,"tag":8851,"props":8943,"children":8944},{},[8945],{"type":993,"tag":1021,"props":8946,"children":8948},{"className":8947},[],[8949],{"type":998,"value":8950},"for i in range(n): for j in range(i+1):",{"type":993,"tag":8851,"props":8952,"children":8953},{},[8954],{"type":998,"value":8955},"Graphics, formatting",{"type":993,"tag":8819,"props":8957,"children":8958},{},[8959,8964,8969,8978],{"type":993,"tag":8851,"props":8960,"children":8961},{},[8962],{"type":998,"value":8963},"Nested search",{"type":993,"tag":8851,"props":8965,"children":8966},{},[8967],{"type":998,"value":8968},"Find in 2D structure",{"type":993,"tag":8851,"props":8970,"children":8971},{},[8972],{"type":993,"tag":1021,"props":8973,"children":8975},{"className":8974},[],[8976],{"type":998,"value":8977},"for row in data: for item in row: if item == target:",{"type":993,"tag":8851,"props":8979,"children":8980},{},[8981],{"type":998,"value":8982},"Data lookup",{"type":993,"tag":1000,"props":8984,"children":8985},{},[8986],{"type":998,"value":8987},"Choose the pattern that best fits your multi-dimensional processing needs.",{"type":993,"tag":1508,"props":8989,"children":8991},{"id":8990},"take-quiz",[8992],{"type":998,"value":8993},"Take Quiz",{"type":993,"tag":1000,"props":8995,"children":8996},{},[8997],{"type":998,"value":8998},"Test your understanding of nested loops:",{"type":993,"tag":9000,"props":9001,"children":9003},"redirect-button",{"label":8993,"url":9002},"/tutorial-quiz/python/nested-loops",[],{"type":993,"tag":1508,"props":9005,"children":9007},{"id":9006},"whats-next",[9008],{"type":998,"value":9009},"What's Next?",{"type":993,"tag":1000,"props":9011,"children":9012},{},[9013,9015,9020,9022,9027,9028,9033,9034,9039],{"type":998,"value":9014},"Congratulations! You've completed the ",{"type":993,"tag":1530,"props":9016,"children":9017},{},[9018],{"type":998,"value":9019},"Repetition and Loops",{"type":998,"value":9021}," section. You now have comprehensive knowledge of ",{"type":993,"tag":4719,"props":9023,"children":9024},{"href":234},[9025],{"type":998,"value":9026},"while loops",{"type":998,"value":1106},{"type":993,"tag":4719,"props":9029,"children":9030},{"href":243},[9031],{"type":998,"value":9032},"for loops",{"type":998,"value":1106},{"type":993,"tag":4719,"props":9035,"children":9036},{"href":252},[9037],{"type":998,"value":9038},"loop control",{"type":998,"value":9040},", and nested loops - the fundamental building blocks for creating dynamic, iterative programs.",{"type":993,"tag":1000,"props":9042,"children":9043},{},[9044,9046,9051],{"type":998,"value":9045},"Now that you've mastered loops and repetition, you're ready to explore Python's powerful ",{"type":993,"tag":1530,"props":9047,"children":9048},{},[9049],{"type":998,"value":9050},"data structures",{"type":998,"value":9052},". Next, you'll learn about lists - ordered collections that are perfect for storing and manipulating sequences of data.",{"type":993,"tag":1000,"props":9054,"children":9055},{},[9056,9058,9062],{"type":998,"value":9057},"Ready to continue? Check out our lesson on ",{"type":993,"tag":4719,"props":9059,"children":9060},{"href":280},[9061],{"type":998,"value":281},{"type":998,"value":9063}," to start working with Python's most versatile data structure! 📋",{"type":993,"tag":9065,"props":9066,"children":9067},"style",{},[9068],{"type":998,"value":9069},"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":9071},[9072,9076,9081,9084,9090,9095,9101,9104,9108,9109,9110],{"id":1510,"depth":27,"text":1513,"children":9073},[9074,9075],{"id":1599,"depth":36,"text":1602},{"id":1891,"depth":36,"text":1894},{"id":2227,"depth":27,"text":2230,"children":9077},[9078,9079,9080],{"id":2323,"depth":36,"text":2326},{"id":2635,"depth":36,"text":2638},{"id":3001,"depth":36,"text":3004},{"id":3257,"depth":27,"text":3260,"children":9082},[9083],{"id":3369,"depth":36,"text":3372},{"id":3616,"depth":27,"text":3619,"children":9085},[9086,9087,9088,9089],{"id":3705,"depth":36,"text":3708},{"id":3869,"depth":36,"text":3872},{"id":4038,"depth":36,"text":4041},{"id":4457,"depth":36,"text":4460},{"id":4709,"depth":27,"text":4712,"children":9091},[9092,9093,9094],{"id":4805,"depth":36,"text":4808},{"id":5106,"depth":36,"text":5109},{"id":5469,"depth":36,"text":5472},{"id":5775,"depth":27,"text":5778,"children":9096},[9097,9098,9099,9100],{"id":5893,"depth":36,"text":5896},{"id":6169,"depth":36,"text":6172},{"id":6486,"depth":36,"text":6489},{"id":6778,"depth":36,"text":6781},{"id":7058,"depth":27,"text":7061,"children":9102},[9103],{"id":7146,"depth":36,"text":7149},{"id":7470,"depth":27,"text":7473,"children":9105},[9106,9107],{"id":7557,"depth":36,"text":7560},{"id":8270,"depth":36,"text":8273},{"id":8801,"depth":27,"text":8804},{"id":8990,"depth":27,"text":8993},{"id":9006,"depth":27,"text":9009},1782373735792]