[{"data":1,"prerenderedAt":13158},["ShallowReactive",2],{"tutorials-python":3,"category-items-python":987,"content-/python/iterating-tuples":988},[4,22,31,40,49,58,67,76,86,95,104,113,122,131,141,150,159,168,177,186,196,205,214,223,233,242,251,260,269,279,288,297,306,315,324,333,342,351,360,369,379,388,397,406,415,424,433,442,452,461,470,479,488,497,506,515,525,534,543,552,561,570,579,588,597,606,616,625,634,643,652,661,670,680,689,698,707,716,725,734,744,753,762,771,780,789,798,807,817,826,835,844,853,863,872,881,890,900,909,918,927,936,945,953,961,970,979],{"_path":5,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":9,"description":10,"slug":11,"order":12,"isParent":13,"icon":14,"_type":15,"_id":16,"_source":17,"_file":18,"_stem":19,"_extension":20,"children":21,"expanded":13},"/python/getting-started","python",false,"","Getting Started","Begin your Python programming journey. Learn what Python is, how to set it up, and write your first programs. Perfect for complete beginners starting their coding adventure.","getting-started",1,true,"pi pi-folder","markdown","content:python:1.getting-started.md","content","python/1.getting-started.md","python/1.getting-started","md",[22,31,40,49,58,67],{"_path":23,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":24,"description":25,"slug":26,"parentId":5,"order":27,"_type":15,"_id":28,"_source":17,"_file":29,"_stem":30,"_extension":20},"/python/what-is-python","What is Python","Discover Python's fascinating history, design philosophy, and key features. Learn why Python has become one of the world's most popular programming languages and perfect for beginners.","what-is-python",2,"content:python:2.what-is-python.md","python/2.what-is-python.md","python/2.what-is-python",{"_path":32,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":33,"description":34,"slug":35,"parentId":5,"order":36,"_type":15,"_id":37,"_source":17,"_file":38,"_stem":39,"_extension":20},"/python/setup-python","Setup Python","Learn how to install Python on your computer and set up your development environment. Step-by-step guide for Windows, macOS, and Linux with beginner-friendly instructions.","setup-python",3,"content:python:3.setup-python.md","python/3.setup-python.md","python/3.setup-python",{"_path":41,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":42,"description":43,"slug":44,"parentId":5,"order":45,"_type":15,"_id":46,"_source":17,"_file":47,"_stem":48,"_extension":20},"/python/your-first-program","Your First Program","Write and run your first Python program! Learn the basics of Python programming with simple examples and step-by-step instructions for beginners.","your-first-program",4,"content:python:4.your-first-program.md","python/4.your-first-program.md","python/4.your-first-program",{"_path":50,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":51,"description":52,"slug":53,"parentId":5,"order":54,"_type":15,"_id":55,"_source":17,"_file":56,"_stem":57,"_extension":20},"/python/python-code-structure","Python Code Structure","Learn how Python code is organized and structured. Understand indentation, line breaks, and the basic rules that make Python programs work correctly.","python-code-structure",5,"content:python:5.python-code-structure.md","python/5.python-code-structure.md","python/5.python-code-structure",{"_path":59,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":60,"description":61,"slug":62,"parentId":5,"order":63,"_type":15,"_id":64,"_source":17,"_file":65,"_stem":66,"_extension":20},"/python/writing-comments","Writing Comments","Learn how to write effective comments in Python. Discover when and how to document your code to make it clear, maintainable, and easy to understand.","writing-comments",6,"content:python:6.writing-comments.md","python/6.writing-comments.md","python/6.writing-comments",{"_path":68,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":69,"description":70,"slug":71,"parentId":5,"order":72,"_type":15,"_id":73,"_source":17,"_file":74,"_stem":75,"_extension":20},"/python/working-with-variables","Working with Variables","Learn how to create, use, and manage variables in Python. Understand how to store data, change values, and follow naming conventions for clean, readable code.","working-with-variables",7,"content:python:7.working-with-variables.md","python/7.working-with-variables.md","python/7.working-with-variables",{"_path":77,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":78,"description":79,"slug":80,"order":81,"isParent":13,"icon":14,"_type":15,"_id":82,"_source":17,"_file":83,"_stem":84,"_extension":20,"children":85,"expanded":13},"/python/basic-data-types","Basic Data Types","Learn about Python's fundamental data types including numbers, text, and boolean values","basic-data-types",8,"content:python:8.basic-data-types.md","python/8.basic-data-types.md","python/8.basic-data-types",[86,95,104,113,122],{"_path":87,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":88,"description":89,"slug":90,"parentId":77,"order":91,"_type":15,"_id":92,"_source":17,"_file":93,"_stem":94,"_extension":20},"/python/understanding-data-types","Understanding Data Types","Learn how Python identifies different data types and why they're important for programming","understanding-data-types",9,"content:python:9.understanding-data-types.md","python/9.understanding-data-types.md","python/9.understanding-data-types",{"_path":96,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":97,"description":98,"slug":99,"parentId":77,"order":100,"_type":15,"_id":101,"_source":17,"_file":102,"_stem":103,"_extension":20},"/python/working-with-numbers","Working with Numbers","Learn about Python's numeric data types including integers and floats, and how to perform calculations","working-with-numbers",10,"content:python:10.working-with-numbers.md","python/10.working-with-numbers.md","python/10.working-with-numbers",{"_path":105,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":106,"description":107,"slug":108,"parentId":77,"order":109,"_type":15,"_id":110,"_source":17,"_file":111,"_stem":112,"_extension":20},"/python/text-and-strings","Text and Strings","Learn how to work with text data in Python using strings, including creation, manipulation, and formatting","text-and-strings",11,"content:python:11.text-and-strings.md","python/11.text-and-strings.md","python/11.text-and-strings",{"_path":114,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":115,"description":116,"slug":117,"parentId":77,"order":118,"_type":15,"_id":119,"_source":17,"_file":120,"_stem":121,"_extension":20},"/python/true-false-values","True/False Values","Learn about boolean values in Python, including True/False logic, comparison operations, and how to use booleans for decision-making in your programs","true-false-values",12,"content:python:12.true-false-values.md","python/12.true-false-values.md","python/12.true-false-values",{"_path":123,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":124,"description":125,"slug":126,"parentId":77,"order":127,"_type":15,"_id":128,"_source":17,"_file":129,"_stem":130,"_extension":20},"/python/converting-types","Converting Types","Learn how to convert between different Python data types including strings, numbers, and booleans","converting-types",13,"content:python:13.converting-types.md","python/13.converting-types.md","python/13.converting-types",{"_path":132,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":133,"description":134,"slug":135,"order":136,"isParent":13,"icon":14,"_type":15,"_id":137,"_source":17,"_file":138,"_stem":139,"_extension":20,"children":140,"expanded":13},"/python/python-operators","Python Operators","Learn about Python operators - the symbols and keywords that perform operations on data. Discover arithmetic, comparison, logical, and assignment operators with simple examples.","python-operators",14,"content:python:14.python-operators.md","python/14.python-operators.md","python/14.python-operators",[141,150,159,168,177],{"_path":142,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":143,"description":144,"slug":145,"parentId":132,"order":146,"_type":15,"_id":147,"_source":17,"_file":148,"_stem":149,"_extension":20},"/python/math-operations","Math Operations","Learn Python's arithmetic operators for mathematical calculations. Master addition, subtraction, multiplication, division, and more with practical examples.","math-operations",15,"content:python:15.math-operations.md","python/15.math-operations.md","python/15.math-operations",{"_path":151,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":152,"description":153,"slug":154,"parentId":132,"order":155,"_type":15,"_id":156,"_source":17,"_file":157,"_stem":158,"_extension":20},"/python/comparing-values","Comparing Values","Learn Python's comparison operators to compare values and make decisions. Master equality, inequality, and relational operators with practical examples.","comparing-values",16,"content:python:16.comparing-values.md","python/16.comparing-values.md","python/16.comparing-values",{"_path":160,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":161,"description":162,"slug":163,"parentId":132,"order":164,"_type":15,"_id":165,"_source":17,"_file":166,"_stem":167,"_extension":20},"/python/logic-operations","Logic Operations","Learn about Python's logical operators for combining conditions and creating complex boolean expressions","logic-operations",17,"content:python:17.logic-operations.md","python/17.logic-operations.md","python/17.logic-operations",{"_path":169,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":170,"description":171,"slug":172,"parentId":132,"order":173,"_type":15,"_id":174,"_source":17,"_file":175,"_stem":176,"_extension":20},"/python/value-assignment","Value Assignment","Learn about Python's assignment operators for efficiently updating variables and performing calculations","value-assignment",18,"content:python:18.value-assignment.md","python/18.value-assignment.md","python/18.value-assignment",{"_path":178,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":179,"description":180,"slug":181,"parentId":132,"order":182,"_type":15,"_id":183,"_source":17,"_file":184,"_stem":185,"_extension":20},"/python/operator-precedence","Operator Precedence","Learn how Python evaluates expressions with multiple operators and how to control evaluation order","operator-precedence",19,"content:python:19.operator-precedence.md","python/19.operator-precedence.md","python/19.operator-precedence",{"_path":187,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":188,"description":189,"slug":190,"order":191,"isParent":13,"icon":14,"_type":15,"_id":192,"_source":17,"_file":193,"_stem":194,"_extension":20,"children":195,"expanded":13},"/python/decision-making","Decision Making","Learn how to make decisions in your Python programs using conditional statements and control flow","decision-making",20,"content:python:20.decision-making.md","python/20.decision-making.md","python/20.decision-making",[196,205,214],{"_path":197,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":198,"description":199,"slug":200,"parentId":187,"order":201,"_type":15,"_id":202,"_source":17,"_file":203,"_stem":204,"_extension":20},"/python/if-statements","If Statements","Learn how to use if statements to make decisions and control program flow in Python","if-statements",21,"content:python:21.if-statements.md","python/21.if-statements.md","python/21.if-statements",{"_path":206,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":207,"description":208,"slug":209,"parentId":187,"order":210,"_type":15,"_id":211,"_source":17,"_file":212,"_stem":213,"_extension":20},"/python/multiple-conditions","Multiple Conditions","Learn how to handle multiple conditions using elif statements and complex conditional logic in Python","multiple-conditions",22,"content:python:22.multiple-conditions.md","python/22.multiple-conditions.md","python/22.multiple-conditions",{"_path":215,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":216,"description":217,"slug":218,"parentId":187,"order":219,"_type":15,"_id":220,"_source":17,"_file":221,"_stem":222,"_extension":20},"/python/pattern-matching","Pattern Matching","Learn how to use Python's match-case statements for powerful pattern matching and complex decision making","pattern-matching",23,"content:python:23.pattern-matching.md","python/23.pattern-matching.md","python/23.pattern-matching",{"_path":224,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":225,"description":226,"slug":227,"order":228,"isParent":13,"icon":14,"_type":15,"_id":229,"_source":17,"_file":230,"_stem":231,"_extension":20,"children":232,"expanded":13},"/python/repetition-and-loops","Python Loops","Learn how to use loops to repeat code efficiently and handle repetitive tasks in Python","repetition-and-loops",24,"content:python:24.repetition-and-loops.md","python/24.repetition-and-loops.md","python/24.repetition-and-loops",[233,242,251,260],{"_path":234,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":235,"description":236,"slug":237,"parentId":224,"order":238,"_type":15,"_id":239,"_source":17,"_file":240,"_stem":241,"_extension":20},"/python/while-loops","While Loops","Learn how to use while loops for condition-based repetition and create loops that run until specific conditions are met","while-loops",25,"content:python:25.while-loops.md","python/25.while-loops.md","python/25.while-loops",{"_path":243,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":244,"description":245,"slug":246,"parentId":224,"order":247,"_type":15,"_id":248,"_source":17,"_file":249,"_stem":250,"_extension":20},"/python/for-loops","For Loops","Learn how to use for loops to iterate through sequences, collections, and ranges efficiently in Python","for-loops",26,"content:python:26.for-loops.md","python/26.for-loops.md","python/26.for-loops",{"_path":252,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":253,"description":254,"slug":255,"parentId":224,"order":256,"_type":15,"_id":257,"_source":17,"_file":258,"_stem":259,"_extension":20},"/python/loop-control","Loop Control","Master advanced loop control techniques including break, continue, and else clauses for sophisticated iteration patterns","loop-control",27,"content:python:27.loop-control.md","python/27.loop-control.md","python/27.loop-control",{"_path":261,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":262,"description":263,"slug":264,"parentId":224,"order":265,"_type":15,"_id":266,"_source":17,"_file":267,"_stem":268,"_extension":20},"/python/nested-loops","Nested Loops","Learn how to use nested loops to process multi-dimensional data, create patterns, and handle complex iteration scenarios","nested-loops",28,"content:python:28.nested-loops.md","python/28.nested-loops.md","python/28.nested-loops",{"_path":270,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":271,"description":272,"slug":273,"order":274,"isParent":13,"icon":14,"_type":15,"_id":275,"_source":17,"_file":276,"_stem":277,"_extension":20,"children":278,"expanded":13},"/python/python-lists","Python Lists","Learn about Python lists, one of the most important and versatile data structures for storing and organizing collections of data","python-lists",29,"content:python:29.python-lists.md","python/29.python-lists.md","python/29.python-lists",[279,288,297,306,315,324,333,342,351,360],{"_path":280,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":281,"description":282,"slug":283,"parentId":270,"order":284,"_type":15,"_id":285,"_source":17,"_file":286,"_stem":287,"_extension":20},"/python/creating-lists","Creating Lists","Learn different methods to create and initialize Python lists, from simple literals to advanced techniques","creating-lists",30,"content:python:30.creating-lists.md","python/30.creating-lists.md","python/30.creating-lists",{"_path":289,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":290,"description":291,"slug":292,"parentId":270,"order":293,"_type":15,"_id":294,"_source":17,"_file":295,"_stem":296,"_extension":20},"/python/reading-list-data","Reading List Data","Master techniques for accessing and retrieving data from Python lists using indexing, slicing, and built-in methods","reading-list-data",31,"content:python:31.reading-list-data.md","python/31.reading-list-data.md","python/31.reading-list-data",{"_path":298,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":299,"description":300,"slug":301,"parentId":270,"order":302,"_type":15,"_id":303,"_source":17,"_file":304,"_stem":305,"_extension":20},"/python/modifying-lists","Modifying Lists","Learn how to change, update, and modify existing elements in Python lists using indexing and various methods","modifying-lists",32,"content:python:32.modifying-lists.md","python/32.modifying-lists.md","python/32.modifying-lists",{"_path":307,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":308,"description":309,"slug":310,"parentId":270,"order":311,"_type":15,"_id":312,"_source":17,"_file":313,"_stem":314,"_extension":20},"/python/adding-to-lists","Adding to Lists","Learn various methods to add elements to Python lists including append, insert, extend, and concatenation techniques","adding-to-lists",33,"content:python:33.adding-to-lists.md","python/33.adding-to-lists.md","python/33.adding-to-lists",{"_path":316,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":317,"description":318,"slug":319,"parentId":270,"order":320,"_type":15,"_id":321,"_source":17,"_file":322,"_stem":323,"_extension":20},"/python/removing-from-lists","Removing from Lists","Learn different methods to remove and delete elements from Python lists including remove, pop, del, and clear","removing-from-lists",34,"content:python:34.removing-from-lists.md","python/34.removing-from-lists.md","python/34.removing-from-lists",{"_path":325,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":326,"description":327,"slug":328,"parentId":270,"order":329,"_type":15,"_id":330,"_source":17,"_file":331,"_stem":332,"_extension":20},"/python/looping-through-lists","Looping Through Lists","Learn different ways to iterate through Python lists using for loops, while loops, enumerate, and other iteration techniques","looping-through-lists",35,"content:python:35.looping-through-lists.md","python/35.looping-through-lists.md","python/35.looping-through-lists",{"_path":334,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":335,"description":336,"slug":337,"parentId":270,"order":338,"_type":15,"_id":339,"_source":17,"_file":340,"_stem":341,"_extension":20},"/python/list-shortcuts","List Shortcuts","Learn powerful Python list shortcuts including list comprehensions, slicing tricks, and built-in functions for efficient list operations","list-shortcuts",36,"content:python:36.list-shortcuts.md","python/36.list-shortcuts.md","python/36.list-shortcuts",{"_path":343,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":344,"description":345,"slug":346,"parentId":270,"order":347,"_type":15,"_id":348,"_source":17,"_file":349,"_stem":350,"_extension":20},"/python/organizing-lists","Organizing Lists","Learn how to sort, reverse, and organize Python lists using built-in methods and custom sorting techniques","organizing-lists",37,"content:python:37.organizing-lists.md","python/37.organizing-lists.md","python/37.organizing-lists",{"_path":352,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":353,"description":354,"slug":355,"parentId":270,"order":356,"_type":15,"_id":357,"_source":17,"_file":358,"_stem":359,"_extension":20},"/python/combining-lists","Combining Lists","Learn various techniques to combine, merge, and join Python lists including concatenation, zipping, and advanced merging strategies","combining-lists",38,"content:python:38.combining-lists.md","python/38.combining-lists.md","python/38.combining-lists",{"_path":361,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":362,"description":363,"slug":364,"parentId":270,"order":365,"_type":15,"_id":366,"_source":17,"_file":367,"_stem":368,"_extension":20},"/python/essential-list-tools","Essential List Tools","Master powerful built-in functions and advanced techniques for efficient Python list manipulation and data processing","essential-list-tools",39,"content:python:39.essential-list-tools.md","python/39.essential-list-tools.md","python/39.essential-list-tools",{"_path":370,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":371,"description":372,"slug":373,"order":374,"isParent":13,"icon":14,"_type":15,"_id":375,"_source":17,"_file":376,"_stem":377,"_extension":20,"children":378,"expanded":13},"/python/python-tuples","Python Tuples","Master Python tuples - immutable sequences perfect for storing related data that shouldn't change. Learn creation, access, and manipulation techniques.","python-tuples",40,"content:python:40.python-tuples.md","python/40.python-tuples.md","python/40.python-tuples",[379,388,397,406,415,424,433],{"_path":380,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":381,"description":382,"slug":383,"parentId":370,"order":384,"_type":15,"_id":385,"_source":17,"_file":386,"_stem":387,"_extension":20},"/python/creating-tuples","Creating Tuples","Learn different ways to create Python tuples, from basic syntax to advanced techniques. Master tuple initialization and understand when to use tuples.","creating-tuples",41,"content:python:41.creating-tuples.md","python/41.creating-tuples.md","python/41.creating-tuples",{"_path":389,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":390,"description":391,"slug":392,"parentId":370,"order":393,"_type":15,"_id":394,"_source":17,"_file":395,"_stem":396,"_extension":20},"/python/reading-tuple-data","Reading Tuple Data","Master accessing tuple elements through indexing, slicing, and searching. Learn efficient patterns for reading and working with tuple data.","reading-tuple-data",42,"content:python:42.reading-tuple-data.md","python/42.reading-tuple-data.md","python/42.reading-tuple-data",{"_path":398,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":399,"description":400,"slug":401,"parentId":370,"order":402,"_type":15,"_id":403,"_source":17,"_file":404,"_stem":405,"_extension":20},"/python/changing-tuples","Changing Tuples","Understand tuple immutability and learn techniques for working with unchangeable data. Master creating modified tuple versions and handling immutable constraints.","changing-tuples",43,"content:python:43.changing-tuples.md","python/43.changing-tuples.md","python/43.changing-tuples",{"_path":407,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":408,"description":409,"slug":410,"parentId":370,"order":411,"_type":15,"_id":412,"_source":17,"_file":413,"_stem":414,"_extension":20},"/python/tuple-unpacking","Tuple Unpacking","Master tuple unpacking for elegant variable assignment, function returns, and data extraction. Learn Python's powerful unpacking syntax and patterns.","tuple-unpacking",44,"content:python:44.tuple-unpacking.md","python/44.tuple-unpacking.md","python/44.tuple-unpacking",{"_path":416,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":417,"description":418,"slug":419,"parentId":370,"order":420,"_type":15,"_id":421,"_source":17,"_file":422,"_stem":423,"_extension":20},"/python/iterating-tuples","Iterating Tuples","Master tuple iteration techniques for processing sequence data. Learn basic loops, enumerate, nested iteration, and advanced patterns for efficient data processing.","iterating-tuples",45,"content:python:45.iterating-tuples.md","python/45.iterating-tuples.md","python/45.iterating-tuples",{"_path":425,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":426,"description":427,"slug":428,"parentId":370,"order":429,"_type":15,"_id":430,"_source":17,"_file":431,"_stem":432,"_extension":20},"/python/merging-tuples","Merging Tuples","Learn techniques for combining and merging tuples to create larger data structures. Master concatenation, joining multiple tuples, and advanced merging patterns.","merging-tuples",46,"content:python:46.merging-tuples.md","python/46.merging-tuples.md","python/46.merging-tuples",{"_path":434,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":435,"description":436,"slug":437,"parentId":370,"order":438,"_type":15,"_id":439,"_source":17,"_file":440,"_stem":441,"_extension":20},"/python/tuple-operations","Tuple Operations","Master comprehensive tuple operations including built-in functions, mathematical operations, comparisons, and advanced techniques for efficient tuple manipulation.","tuple-operations",47,"content:python:47.tuple-operations.md","python/47.tuple-operations.md","python/47.tuple-operations",{"_path":443,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":444,"description":445,"slug":446,"order":447,"isParent":13,"icon":14,"_type":15,"_id":448,"_source":17,"_file":449,"_stem":450,"_extension":20,"children":451},"/python/python-sets","Python Sets","Discover Python sets - unique collections that automatically eliminate duplicates and provide powerful mathematical operations for data filtering and analysis.","python-sets",48,"content:python:48.python-sets.md","python/48.python-sets.md","python/48.python-sets",[452,461,470,479,488,497,506],{"_path":453,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":454,"description":455,"slug":456,"parentId":443,"order":457,"_type":15,"_id":458,"_source":17,"_file":459,"_stem":460,"_extension":20},"/python/creating-sets","Creating Sets","Learn multiple ways to create sets in Python including literal syntax, set() function, and set comprehensions. Master set creation from different data sources.","creating-sets",49,"content:python:49.creating-sets.md","python/49.creating-sets.md","python/49.creating-sets",{"_path":462,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":463,"description":464,"slug":465,"parentId":443,"order":466,"_type":15,"_id":467,"_source":17,"_file":468,"_stem":469,"_extension":20},"/python/reading-set-data","Reading Set Data","Learn how to access and examine set data in Python including membership testing, iteration, size checking, and converting sets to other data types.","reading-set-data",50,"content:python:50.reading-set-data.md","python/50.reading-set-data.md","python/50.reading-set-data",{"_path":471,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":472,"description":473,"slug":474,"parentId":443,"order":475,"_type":15,"_id":476,"_source":17,"_file":477,"_stem":478,"_extension":20},"/python/adding-to-sets","Adding to Sets","Learn how to add elements to sets in Python using add(), update(), and union operations. Master growing sets dynamically with single items and multiple elements.","adding-to-sets",51,"content:python:51.adding-to-sets.md","python/51.adding-to-sets.md","python/51.adding-to-sets",{"_path":480,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":481,"description":482,"slug":483,"parentId":443,"order":484,"_type":15,"_id":485,"_source":17,"_file":486,"_stem":487,"_extension":20},"/python/removing-from-sets","Removing from Sets","Learn how to remove elements from Python sets using different methods like remove(), discard(), pop(), and clear()","removing-from-sets",52,"content:python:52.removing-from-sets.md","python/52.removing-from-sets.md","python/52.removing-from-sets",{"_path":489,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":490,"description":491,"slug":492,"parentId":443,"order":493,"_type":15,"_id":494,"_source":17,"_file":495,"_stem":496,"_extension":20},"/python/iterating-sets","Iterating Sets","Learn different ways to iterate through Python sets using for loops, comprehensions, and built-in functions","iterating-sets",53,"content:python:53.iterating-sets.md","python/53.iterating-sets.md","python/53.iterating-sets",{"_path":498,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":499,"description":500,"slug":501,"parentId":443,"order":502,"_type":15,"_id":503,"_source":17,"_file":504,"_stem":505,"_extension":20},"/python/combining-sets","Combining Sets","Learn how to combine Python sets using union, intersection, difference, and other set operations","combining-sets",54,"content:python:54.combining-sets.md","python/54.combining-sets.md","python/54.combining-sets",{"_path":507,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":508,"description":509,"slug":510,"parentId":443,"order":511,"_type":15,"_id":512,"_source":17,"_file":513,"_stem":514,"_extension":20},"/python/set-operations","Set Operations","Learn advanced Python set operations including comparisons, subsets, supersets, and mathematical set relationships","set-operations",55,"content:python:55.set-operations.md","python/55.set-operations.md","python/55.set-operations",{"_path":516,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":517,"description":518,"slug":519,"order":520,"isParent":13,"icon":14,"_type":15,"_id":521,"_source":17,"_file":522,"_stem":523,"_extension":20,"children":524},"/python/python-dictionaries","Python Dictionaries","Learn about Python dictionaries - key-value data structures for storing and organizing related information","python-dictionaries",56,"content:python:56.python-dictionaries.md","python/56.python-dictionaries.md","python/56.python-dictionaries",[525,534,543,552,561,570,579,588,597],{"_path":526,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":527,"description":528,"slug":529,"parentId":516,"order":530,"_type":15,"_id":531,"_source":17,"_file":532,"_stem":533,"_extension":20},"/python/creating-dictionaries","Creating Dictionaries","Learn different methods to create Python dictionaries using literals, constructors, and comprehensions","creating-dictionaries",57,"content:python:57.creating-dictionaries.md","python/57.creating-dictionaries.md","python/57.creating-dictionaries",{"_path":535,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":536,"description":537,"slug":538,"parentId":516,"order":539,"_type":15,"_id":540,"_source":17,"_file":541,"_stem":542,"_extension":20},"/python/getting-dictionary-values","Getting Dictionary Values","Learn safe and efficient methods to retrieve data from Python dictionaries using various access techniques","getting-dictionary-values",58,"content:python:58.getting-dictionary-values.md","python/58.getting-dictionary-values.md","python/58.getting-dictionary-values",{"_path":544,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":545,"description":546,"slug":547,"parentId":516,"order":548,"_type":15,"_id":549,"_source":17,"_file":550,"_stem":551,"_extension":20},"/python/updating-dictionaries","Updating Dictionaries","Learn how to modify and maintain Python dictionary data using various update methods and techniques","updating-dictionaries",59,"content:python:59.updating-dictionaries.md","python/59.updating-dictionaries.md","python/59.updating-dictionaries",{"_path":553,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":554,"description":555,"slug":556,"parentId":516,"order":557,"_type":15,"_id":558,"_source":17,"_file":559,"_stem":560,"_extension":20},"/python/adding-dictionary-items","Adding Dictionary Items","Learn effective techniques for adding new items to Python dictionaries with various methods and best practices","adding-dictionary-items",60,"content:python:60.adding-dictionary-items.md","python/60.adding-dictionary-items.md","python/60.adding-dictionary-items",{"_path":562,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":563,"description":564,"slug":565,"parentId":516,"order":566,"_type":15,"_id":567,"_source":17,"_file":568,"_stem":569,"_extension":20},"/python/deleting-dictionary-items","Deleting Dictionary Items","Master safe and efficient techniques for removing items from Python dictionaries with various methods and error handling","deleting-dictionary-items",61,"content:python:61.deleting-dictionary-items.md","python/61.deleting-dictionary-items.md","python/61.deleting-dictionary-items",{"_path":571,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":572,"description":573,"slug":574,"parentId":516,"order":575,"_type":15,"_id":576,"_source":17,"_file":577,"_stem":578,"_extension":20},"/python/looping-dictionaries","Looping Dictionaries","Learn efficient techniques for iterating through Python dictionaries using keys, values, and items","looping-dictionaries",62,"content:python:62.looping-dictionaries.md","python/62.looping-dictionaries.md","python/62.looping-dictionaries",{"_path":580,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":581,"description":582,"slug":583,"parentId":516,"order":584,"_type":15,"_id":585,"_source":17,"_file":586,"_stem":587,"_extension":20},"/python/dictionary-copies","Dictionary Copies","Learn safe techniques for duplicating Python dictionaries using shallow and deep copy methods","dictionary-copies",63,"content:python:63.dictionary-copies.md","python/63.dictionary-copies.md","python/63.dictionary-copies",{"_path":589,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":590,"description":591,"slug":592,"parentId":516,"order":593,"_type":15,"_id":594,"_source":17,"_file":595,"_stem":596,"_extension":20},"/python/multi-level-dictionaries","Multi-level Dictionaries","Master working with nested Python dictionaries for complex data structures and hierarchical information","multi-level-dictionaries",64,"content:python:64.multi-level-dictionaries.md","python/64.multi-level-dictionaries.md","python/64.multi-level-dictionaries",{"_path":598,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":599,"description":600,"slug":601,"parentId":516,"order":602,"_type":15,"_id":603,"_source":17,"_file":604,"_stem":605,"_extension":20},"/python/dictionary-tools","Dictionary Tools","Explore powerful built-in functions and advanced techniques for efficient Python dictionary manipulation and analysis","dictionary-tools",65,"content:python:65.dictionary-tools.md","python/65.dictionary-tools.md","python/65.dictionary-tools",{"_path":607,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":608,"description":609,"slug":610,"order":611,"isParent":13,"icon":14,"_type":15,"_id":612,"_source":17,"_file":613,"_stem":614,"_extension":20,"children":615},"/python/python-functions","Python Functions","Learn how to create and use Python functions to organize code into reusable, modular components that make programs more efficient and maintainable","python-functions",66,"content:python:66.python-functions.md","python/66.python-functions.md","python/66.python-functions",[616,625,634,643,652,661],{"_path":617,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":618,"description":619,"slug":620,"parentId":607,"order":621,"_type":15,"_id":622,"_source":17,"_file":623,"_stem":624,"_extension":20},"/python/function-basics","Function Basics","Learn the fundamentals of creating and using Python functions to organize code into reusable, modular components","function-basics",67,"content:python:67.function-basics.md","python/67.function-basics.md","python/67.function-basics",{"_path":626,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":627,"description":628,"slug":629,"parentId":607,"order":630,"_type":15,"_id":631,"_source":17,"_file":632,"_stem":633,"_extension":20},"/python/function-parameters","Function Parameters","Master different types of Python function parameters including positional, keyword, default, and variable-length arguments","function-parameters",68,"content:python:68.function-parameters.md","python/68.function-parameters.md","python/68.function-parameters",{"_path":635,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":636,"description":637,"slug":638,"parentId":607,"order":639,"_type":15,"_id":640,"_source":17,"_file":641,"_stem":642,"_extension":20},"/python/returning-values","Returning Values","Learn different ways Python functions return data including single values, multiple values, and conditional returns","returning-values",69,"content:python:69.returning-values.md","python/69.returning-values.md","python/69.returning-values",{"_path":644,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":645,"description":646,"slug":647,"parentId":607,"order":648,"_type":15,"_id":649,"_source":17,"_file":650,"_stem":651,"_extension":20},"/python/variable-scope","Variable Scope","Understand Python variable scope including local, global, and nonlocal variables and how they affect function behavior","variable-scope",70,"content:python:70.variable-scope.md","python/70.variable-scope.md","python/70.variable-scope",{"_path":653,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":654,"description":655,"slug":656,"parentId":607,"order":657,"_type":15,"_id":658,"_source":17,"_file":659,"_stem":660,"_extension":20},"/python/anonymous-functions","Anonymous Functions","Learn to create and use Python lambda functions for concise, inline function definitions and functional programming patterns","anonymous-functions",71,"content:python:71.anonymous-functions.md","python/71.anonymous-functions.md","python/71.anonymous-functions",{"_path":662,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":663,"description":664,"slug":665,"parentId":607,"order":666,"_type":15,"_id":667,"_source":17,"_file":668,"_stem":669,"_extension":20},"/python/function-recursion","Function Recursion","Master recursive functions in Python by learning how functions can call themselves to solve complex problems with elegant, mathematical solutions","function-recursion",72,"content:python:72.function-recursion.md","python/72.function-recursion.md","python/72.function-recursion",{"_path":671,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":672,"description":673,"slug":674,"order":675,"isParent":13,"icon":14,"_type":15,"_id":676,"_source":17,"_file":677,"_stem":678,"_extension":20,"children":679},"/python/object-programming","Object Programming","Learn object-oriented programming (OOP) in Python - create classes, objects, and methods to build organized, reusable code","object-programming",73,"content:python:73.object-programming.md","python/73.object-programming.md","python/73.object-programming",[680,689,698,707,716,725],{"_path":681,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":682,"description":683,"slug":684,"parentId":671,"order":685,"_type":15,"_id":686,"_source":17,"_file":687,"_stem":688,"_extension":20},"/python/classes-and-objects","Classes and Objects","Learn to create Python classes and objects - the foundation of object-oriented programming for building reusable, organized code","classes-and-objects",74,"content:python:74.classes-and-objects.md","python/74.classes-and-objects.md","python/74.classes-and-objects",{"_path":690,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":691,"description":692,"slug":693,"parentId":671,"order":694,"_type":15,"_id":695,"_source":17,"_file":696,"_stem":697,"_extension":20},"/python/object-methods","Object Methods","Master object methods in Python - learn to define behaviors, work with parameters, and create interactive objects that respond to actions","object-methods",75,"content:python:75.object-methods.md","python/75.object-methods.md","python/75.object-methods",{"_path":699,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":700,"description":701,"slug":702,"parentId":671,"order":703,"_type":15,"_id":704,"_source":17,"_file":705,"_stem":706,"_extension":20},"/python/class-inheritance","Class Inheritance","Learn Python class inheritance - create specialized classes that build upon existing functionality while adding new features and behaviors","class-inheritance",76,"content:python:76.class-inheritance.md","python/76.class-inheritance.md","python/76.class-inheritance",{"_path":708,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":709,"description":710,"slug":711,"parentId":671,"order":712,"_type":15,"_id":713,"_source":17,"_file":714,"_stem":715,"_extension":20},"/python/method-overriding","Method Overriding","Master method overriding in Python - learn to customize inherited methods, use super(), and create specialized behaviors while maintaining inheritance benefits","method-overriding",77,"content:python:77.method-overriding.md","python/77.method-overriding.md","python/77.method-overriding",{"_path":717,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":718,"description":719,"slug":720,"parentId":671,"order":721,"_type":15,"_id":722,"_source":17,"_file":723,"_stem":724,"_extension":20},"/python/variable-visibility","Variable Visibility","Master Python variable visibility - learn public, protected, and private attributes to control access and create well-encapsulated classes","variable-visibility",78,"content:python:78.variable-visibility.md","python/78.variable-visibility.md","python/78.variable-visibility",{"_path":726,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":727,"description":728,"slug":729,"parentId":671,"order":730,"_type":15,"_id":731,"_source":17,"_file":732,"_stem":733,"_extension":20},"/python/special-methods","Special Methods","Master Python special methods (magic methods) - learn to implement __str__, __len__, __eq__ and more to make your classes work seamlessly with Python's built-in functions","special-methods",79,"content:python:79.special-methods.md","python/79.special-methods.md","python/79.special-methods",{"_path":735,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":736,"description":737,"slug":738,"order":739,"isParent":13,"icon":14,"_type":15,"_id":740,"_source":17,"_file":741,"_stem":742,"_extension":20,"children":743},"/python/advanced-concepts","Advanced Concepts","Master advanced Python programming concepts - work with dates, mathematics, JSON data, pattern matching, and more sophisticated programming techniques","advanced-concepts",80,"content:python:80.advanced-concepts.md","python/80.advanced-concepts.md","python/80.advanced-concepts",[744,753,762,771,780,789,798],{"_path":745,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":746,"description":747,"slug":748,"parentId":735,"order":749,"_type":15,"_id":750,"_source":17,"_file":751,"_stem":752,"_extension":20},"/python/working-with-dates","Working with Dates","Master Python date and time handling - work with datetime objects, format dates, calculate durations, and build time-aware applications","working-with-dates",81,"content:python:81.working-with-dates.md","python/81.working-with-dates.md","python/81.working-with-dates",{"_path":754,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":755,"description":756,"slug":757,"parentId":735,"order":758,"_type":15,"_id":759,"_source":17,"_file":760,"_stem":761,"_extension":20},"/python/mathematical-operations","Mathematical Operations","Master Python mathematical computing - use math functions, perform statistical calculations, and implement scientific computing for data analysis and problem-solving","mathematical-operations",82,"content:python:82.mathematical-operations.md","python/82.mathematical-operations.md","python/82.mathematical-operations",{"_path":763,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":764,"description":765,"slug":766,"parentId":735,"order":767,"_type":15,"_id":768,"_source":17,"_file":769,"_stem":770,"_extension":20},"/python/json-data","JSON Data","Master JSON data handling in Python - serialize and deserialize data, work with APIs, manage configuration files, and exchange data between applications","json-data",83,"content:python:83.json-data.md","python/83.json-data.md","python/83.json-data",{"_path":772,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":773,"description":774,"slug":775,"parentId":735,"order":776,"_type":15,"_id":777,"_source":17,"_file":778,"_stem":779,"_extension":20},"/python/package-management","Package Management","Master Python package management with pip and virtual environments - install libraries, manage dependencies, create isolated environments, and distribute packages professionally","package-management",85,"content:python:85.package-management.md","python/85.package-management.md","python/85.package-management",{"_path":781,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":782,"description":783,"slug":784,"parentId":735,"order":785,"_type":15,"_id":786,"_source":17,"_file":787,"_stem":788,"_extension":20},"/python/error-handling","Error Handling","Master Python error handling with try/except blocks, exception types, custom exceptions, debugging techniques, and best practices for robust application development","error-handling",86,"content:python:86.error-handling.md","python/86.error-handling.md","python/86.error-handling",{"_path":790,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":791,"description":792,"slug":793,"parentId":735,"order":794,"_type":15,"_id":795,"_source":17,"_file":796,"_stem":797,"_extension":20},"/python/getting-user-input","Getting User Input","Master user input handling in Python with input validation, data type conversion, interactive programs, and command-line interfaces for engaging user experiences","getting-user-input",87,"content:python:87.getting-user-input.md","python/87.getting-user-input.md","python/87.getting-user-input",{"_path":799,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":800,"description":801,"slug":802,"parentId":735,"order":803,"_type":15,"_id":804,"_source":17,"_file":805,"_stem":806,"_extension":20},"/python/text-formatting","Text Formatting","Master Python text formatting with f-strings, format methods, alignment, number formatting, and advanced techniques for professional, readable output","text-formatting",88,"content:python:88.text-formatting.md","python/88.text-formatting.md","python/88.text-formatting",{"_path":808,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":809,"description":810,"slug":811,"order":812,"isParent":13,"icon":14,"_type":15,"_id":813,"_source":17,"_file":814,"_stem":815,"_extension":20,"children":816},"/python/file-operations","File Operations","Master Python file handling with reading, writing, and managing files for data persistence and real-world applications","file-operations",89,"content:python:89.file-operations.md","python/89.file-operations.md","python/89.file-operations",[817,826,835,844],{"_path":818,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":819,"description":820,"slug":821,"parentId":808,"order":822,"_type":15,"_id":823,"_source":17,"_file":824,"_stem":825,"_extension":20},"/python/file-basics","File Basics","Learn fundamental Python file operations including opening files, understanding file modes, using context managers, and basic file handling concepts","file-basics",90,"content:python:90.file-basics.md","python/90.file-basics.md","python/90.file-basics",{"_path":827,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":828,"description":829,"slug":830,"parentId":808,"order":831,"_type":15,"_id":832,"_source":17,"_file":833,"_stem":834,"_extension":20},"/python/reading-files","Reading Files","Master Python file reading techniques including reading entire files, line-by-line processing, and handling different file formats for efficient data processing","reading-files",91,"content:python:91.reading-files.md","python/91.reading-files.md","python/91.reading-files",{"_path":836,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":837,"description":838,"slug":839,"parentId":808,"order":840,"_type":15,"_id":841,"_source":17,"_file":842,"_stem":843,"_extension":20},"/python/writing-files","Writing Files","Learn Python file writing techniques including creating new files, appending content, updating existing files, and saving different data formats safely","writing-files",92,"content:python:92.writing-files.md","python/92.writing-files.md","python/92.writing-files",{"_path":845,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":846,"description":847,"slug":848,"parentId":808,"order":849,"_type":15,"_id":850,"_source":17,"_file":851,"_stem":852,"_extension":20},"/python/file-management","File Management","Learn Python file management techniques including checking file properties, organizing files, directory operations, and implementing file system maintenance tasks","file-management",93,"content:python:93.file-management.md","python/93.file-management.md","python/93.file-management",{"_path":854,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":855,"description":856,"slug":857,"order":858,"isParent":13,"icon":14,"_type":15,"_id":859,"_source":17,"_file":860,"_stem":861,"_extension":20,"children":862},"/python/code-organization","Code Organization","Master Python code organization with modules, built-in libraries, and path management for creating maintainable and reusable applications","code-organization",94,"content:python:94.code-organization.md","python/94.code-organization.md","python/94.code-organization",[863,872,881],{"_path":864,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":865,"description":866,"slug":867,"parentId":854,"order":868,"_type":15,"_id":869,"_source":17,"_file":870,"_stem":871,"_extension":20},"/python/creating-modules","Creating Modules","Learn how to create custom Python modules, organize functions and classes, write reusable code components, and design effective module structures","creating-modules",95,"content:python:95.creating-modules.md","python/95.creating-modules.md","python/95.creating-modules",{"_path":873,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":874,"description":875,"slug":876,"parentId":854,"order":877,"_type":15,"_id":878,"_source":17,"_file":879,"_stem":880,"_extension":20},"/python/using-built-in-modules","Using Built-in Modules","Discover Python's extensive standard library and learn to effectively use built-in modules for common programming tasks, data processing, and system operations","using-built-in-modules",96,"content:python:96.using-built-in-modules.md","python/96.using-built-in-modules.md","python/96.using-built-in-modules",{"_path":882,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":883,"description":884,"slug":885,"parentId":854,"order":886,"_type":15,"_id":887,"_source":17,"_file":888,"_stem":889,"_extension":20},"/python/module-paths","Module Paths","Understand Python's module search system, manage import paths, work with packages, and organize larger projects with proper module path management","module-paths",97,"content:python:97.module-paths.md","python/97.module-paths.md","python/97.module-paths",{"_path":891,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":892,"description":893,"slug":894,"order":895,"isParent":13,"icon":14,"_type":15,"_id":896,"_source":17,"_file":897,"_stem":898,"_extension":20,"children":899,"expanded":13},"/python/reference-materials","Reference Materials","Comprehensive Python reference materials including reserved words, built-in functions, and operation guides for quick lookup and development support","reference-materials",98,"content:python:98.reference-materials.md","python/98.reference-materials.md","python/98.reference-materials",[900,909,918,927,936,945,953,961,970],{"_path":901,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":902,"description":903,"slug":904,"parentId":891,"order":905,"_type":15,"_id":906,"_source":17,"_file":907,"_stem":908,"_extension":20},"/python/reserved-words","Reserved Words","Complete reference of Python keywords and reserved words with descriptions, usage examples, and syntax guidelines","reserved-words",99,"content:python:99.reserved-words.md","python/99.reserved-words.md","python/99.reserved-words",{"_path":910,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":911,"description":912,"slug":913,"parentId":891,"order":914,"_type":15,"_id":915,"_source":17,"_file":916,"_stem":917,"_extension":20},"/python/built-in-functions","Built-in Functions","Comprehensive reference of Python's built-in functions with parameters, return values, and practical usage examples","built-in-functions",100,"content:python:100.built-in-functions.md","python/100.built-in-functions.md","python/100.built-in-functions",{"_path":919,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":920,"description":921,"slug":922,"parentId":891,"order":923,"_type":15,"_id":924,"_source":17,"_file":925,"_stem":926,"_extension":20},"/python/string-operations","String Operations","Complete reference of Python string methods, operations, and formatting techniques with examples and use cases","string-operations",101,"content:python:101.string-operations.md","python/101.string-operations.md","python/101.string-operations",{"_path":928,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":929,"description":930,"slug":931,"parentId":891,"order":932,"_type":15,"_id":933,"_source":17,"_file":934,"_stem":935,"_extension":20},"/python/list-operations","List Operations","Complete reference of Python list methods, operations, and manipulation techniques with examples and performance notes","list-operations",102,"content:python:102.list-operations.md","python/102.list-operations.md","python/102.list-operations",{"_path":937,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":938,"description":939,"slug":940,"parentId":891,"order":941,"_type":15,"_id":942,"_source":17,"_file":943,"_stem":944,"_extension":20},"/python/dictionary-operations","Dictionary Operations","Complete reference of Python dictionary methods, operations, and manipulation techniques with examples and use cases","dictionary-operations",103,"content:python:103.dictionary-operations.md","python/103.dictionary-operations.md","python/103.dictionary-operations",{"_path":946,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":435,"description":947,"slug":948,"parentId":891,"order":949,"_type":15,"_id":950,"_source":17,"_file":951,"_stem":952,"_extension":20},"/python/tuple-methods","Complete reference of Python tuple operations, methods, and techniques with examples and use cases","tuple-methods",104,"content:python:104.tuple-methods.md","python/104.tuple-methods.md","python/104.tuple-methods",{"_path":954,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":508,"description":955,"slug":956,"parentId":891,"order":957,"_type":15,"_id":958,"_source":17,"_file":959,"_stem":960,"_extension":20},"/python/set-methods","Complete reference of Python set operations, methods, and mathematical set operations with examples and use cases","set-methods",105,"content:python:105.set-methods.md","python/105.set-methods.md","python/105.set-methods",{"_path":962,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":963,"description":964,"slug":965,"parentId":891,"order":966,"_type":15,"_id":967,"_source":17,"_file":968,"_stem":969,"_extension":20},"/python/file-operations-reference","File Operations Reference","Complete reference of Python file operations, modes, methods, and file handling techniques with examples","file-operations-reference",106,"content:python:106.file-operations-reference.md","python/106.file-operations-reference.md","python/106.file-operations-reference",{"_path":971,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":972,"description":973,"slug":974,"parentId":891,"order":975,"_type":15,"_id":976,"_source":17,"_file":977,"_stem":978,"_extension":20},"/python/error-types","Error Types","Complete reference of Python exception types, error handling patterns, and debugging techniques with examples","error-types",107,"content:python:107.error-types.md","python/107.error-types.md","python/107.error-types",{"_path":980,"_dir":8,"_draft":7,"_partial":7,"_locale":8,"title":981,"description":10,"slug":982,"order":983,"icon":14,"_type":15,"_id":984,"_source":17,"_file":985,"_stem":986,"_extension":20},"/python","Introduction","python-tutorial",0,"content:python:index.md","python/index.md","python/index",[415],{"_path":416,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":417,"description":418,"slug":419,"parentId":370,"order":420,"body":989,"_type":15,"_id":421,"_source":17,"_file":422,"_stem":423,"_extension":20},{"type":990,"children":991,"toc":13127},"root",[992,1000,1006,1011,1493,1500,1505,1604,1611,1616,2065,2071,2076,2672,2678,2683,3272,3278,3283,3372,3378,3383,4078,4084,4089,4870,4876,4881,5512,5517,5523,5528,5633,5639,5644,6254,6260,6265,6981,6987,6992,7577,7583,7588,7681,7687,7692,8415,8421,8426,9272,9278,9283,10280,10286,10291,10385,10391,10396,10988,10994,10999,11859,11865,11870,12145,12150,12170,12439,12445,13081,13087,13092,13099,13105,13110,13121],{"type":993,"tag":994,"props":995,"children":996},"element","h1",{"id":419},[997],{"type":998,"value":999},"text","🔄 Iterating Tuples",{"type":993,"tag":1001,"props":1002,"children":1003},"p",{},[1004],{"type":998,"value":1005},"Iterating through tuples is essential for processing sequence data systematically. Python provides multiple iteration patterns that work seamlessly with tuples, from basic for loops to advanced techniques with enumerate, zip, and comprehensions. Understanding these patterns enables efficient data processing while maintaining clean, readable code.",{"type":993,"tag":1001,"props":1007,"children":1008},{},[1009],{"type":998,"value":1010},"Tuple iteration is particularly useful for processing coordinates, records, configurations, and any structured data where you need to examine or transform each element.",{"type":993,"tag":1012,"props":1013,"children":1014},"code-try",{},[1015],{"type":993,"tag":1016,"props":1017,"children":1020},"pre",{"className":1018,"code":1019,"language":6,"meta":8,"style":8},"language-python shiki shiki-themes github-light github-dark","# Basic tuple iteration\ncolors = (\"red\", \"green\", \"blue\", \"yellow\")\ncoordinates = (10, 20, 30)\nstudents = (\"Alice\", \"Bob\", \"Carol\", \"David\")\n\n# Simple iteration\nprint(\"Colors:\")\nfor color in colors:\n    print(f\"Color: {color}\")\n\nprint(\"\\nCoordinates:\")\nfor coord in coordinates:\n    print(f\"Value: {coord}\")\n\nprint(\"\\nStudents:\")\nfor student in students:\n    print(f\"Student: {student}\")\n",[1021],{"type":993,"tag":1022,"props":1023,"children":1024},"code",{"__ignoreMap":8},[1025,1036,1095,1139,1191,1199,1207,1229,1252,1298,1305,1334,1355,1396,1403,1431,1452],{"type":993,"tag":1026,"props":1027,"children":1029},"span",{"class":1028,"line":12},"line",[1030],{"type":993,"tag":1026,"props":1031,"children":1033},{"style":1032},"--shiki-default:#6A737D;--shiki-app-dark-mode:#6A737D",[1034],{"type":998,"value":1035},"# Basic tuple iteration\n",{"type":993,"tag":1026,"props":1037,"children":1038},{"class":1028,"line":27},[1039,1045,1051,1056,1062,1067,1072,1076,1081,1085,1090],{"type":993,"tag":1026,"props":1040,"children":1042},{"style":1041},"--shiki-default:#24292E;--shiki-app-dark-mode:#E1E4E8",[1043],{"type":998,"value":1044},"colors ",{"type":993,"tag":1026,"props":1046,"children":1048},{"style":1047},"--shiki-default:#D73A49;--shiki-app-dark-mode:#F97583",[1049],{"type":998,"value":1050},"=",{"type":993,"tag":1026,"props":1052,"children":1053},{"style":1041},[1054],{"type":998,"value":1055}," (",{"type":993,"tag":1026,"props":1057,"children":1059},{"style":1058},"--shiki-default:#032F62;--shiki-app-dark-mode:#9ECBFF",[1060],{"type":998,"value":1061},"\"red\"",{"type":993,"tag":1026,"props":1063,"children":1064},{"style":1041},[1065],{"type":998,"value":1066},", ",{"type":993,"tag":1026,"props":1068,"children":1069},{"style":1058},[1070],{"type":998,"value":1071},"\"green\"",{"type":993,"tag":1026,"props":1073,"children":1074},{"style":1041},[1075],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1077,"children":1078},{"style":1058},[1079],{"type":998,"value":1080},"\"blue\"",{"type":993,"tag":1026,"props":1082,"children":1083},{"style":1041},[1084],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1086,"children":1087},{"style":1058},[1088],{"type":998,"value":1089},"\"yellow\"",{"type":993,"tag":1026,"props":1091,"children":1092},{"style":1041},[1093],{"type":998,"value":1094},")\n",{"type":993,"tag":1026,"props":1096,"children":1097},{"class":1028,"line":36},[1098,1103,1107,1111,1117,1121,1126,1130,1135],{"type":993,"tag":1026,"props":1099,"children":1100},{"style":1041},[1101],{"type":998,"value":1102},"coordinates ",{"type":993,"tag":1026,"props":1104,"children":1105},{"style":1047},[1106],{"type":998,"value":1050},{"type":993,"tag":1026,"props":1108,"children":1109},{"style":1041},[1110],{"type":998,"value":1055},{"type":993,"tag":1026,"props":1112,"children":1114},{"style":1113},"--shiki-default:#005CC5;--shiki-app-dark-mode:#79B8FF",[1115],{"type":998,"value":1116},"10",{"type":993,"tag":1026,"props":1118,"children":1119},{"style":1041},[1120],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1122,"children":1123},{"style":1113},[1124],{"type":998,"value":1125},"20",{"type":993,"tag":1026,"props":1127,"children":1128},{"style":1041},[1129],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1131,"children":1132},{"style":1113},[1133],{"type":998,"value":1134},"30",{"type":993,"tag":1026,"props":1136,"children":1137},{"style":1041},[1138],{"type":998,"value":1094},{"type":993,"tag":1026,"props":1140,"children":1141},{"class":1028,"line":45},[1142,1147,1151,1155,1160,1164,1169,1173,1178,1182,1187],{"type":993,"tag":1026,"props":1143,"children":1144},{"style":1041},[1145],{"type":998,"value":1146},"students ",{"type":993,"tag":1026,"props":1148,"children":1149},{"style":1047},[1150],{"type":998,"value":1050},{"type":993,"tag":1026,"props":1152,"children":1153},{"style":1041},[1154],{"type":998,"value":1055},{"type":993,"tag":1026,"props":1156,"children":1157},{"style":1058},[1158],{"type":998,"value":1159},"\"Alice\"",{"type":993,"tag":1026,"props":1161,"children":1162},{"style":1041},[1163],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1165,"children":1166},{"style":1058},[1167],{"type":998,"value":1168},"\"Bob\"",{"type":993,"tag":1026,"props":1170,"children":1171},{"style":1041},[1172],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1174,"children":1175},{"style":1058},[1176],{"type":998,"value":1177},"\"Carol\"",{"type":993,"tag":1026,"props":1179,"children":1180},{"style":1041},[1181],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1183,"children":1184},{"style":1058},[1185],{"type":998,"value":1186},"\"David\"",{"type":993,"tag":1026,"props":1188,"children":1189},{"style":1041},[1190],{"type":998,"value":1094},{"type":993,"tag":1026,"props":1192,"children":1193},{"class":1028,"line":54},[1194],{"type":993,"tag":1026,"props":1195,"children":1196},{"emptyLinePlaceholder":13},[1197],{"type":998,"value":1198},"\n",{"type":993,"tag":1026,"props":1200,"children":1201},{"class":1028,"line":63},[1202],{"type":993,"tag":1026,"props":1203,"children":1204},{"style":1032},[1205],{"type":998,"value":1206},"# Simple iteration\n",{"type":993,"tag":1026,"props":1208,"children":1209},{"class":1028,"line":72},[1210,1215,1220,1225],{"type":993,"tag":1026,"props":1211,"children":1212},{"style":1113},[1213],{"type":998,"value":1214},"print",{"type":993,"tag":1026,"props":1216,"children":1217},{"style":1041},[1218],{"type":998,"value":1219},"(",{"type":993,"tag":1026,"props":1221,"children":1222},{"style":1058},[1223],{"type":998,"value":1224},"\"Colors:\"",{"type":993,"tag":1026,"props":1226,"children":1227},{"style":1041},[1228],{"type":998,"value":1094},{"type":993,"tag":1026,"props":1230,"children":1231},{"class":1028,"line":81},[1232,1237,1242,1247],{"type":993,"tag":1026,"props":1233,"children":1234},{"style":1047},[1235],{"type":998,"value":1236},"for",{"type":993,"tag":1026,"props":1238,"children":1239},{"style":1041},[1240],{"type":998,"value":1241}," color ",{"type":993,"tag":1026,"props":1243,"children":1244},{"style":1047},[1245],{"type":998,"value":1246},"in",{"type":993,"tag":1026,"props":1248,"children":1249},{"style":1041},[1250],{"type":998,"value":1251}," colors:\n",{"type":993,"tag":1026,"props":1253,"children":1254},{"class":1028,"line":91},[1255,1260,1264,1269,1274,1279,1284,1289,1294],{"type":993,"tag":1026,"props":1256,"children":1257},{"style":1113},[1258],{"type":998,"value":1259},"    print",{"type":993,"tag":1026,"props":1261,"children":1262},{"style":1041},[1263],{"type":998,"value":1219},{"type":993,"tag":1026,"props":1265,"children":1266},{"style":1047},[1267],{"type":998,"value":1268},"f",{"type":993,"tag":1026,"props":1270,"children":1271},{"style":1058},[1272],{"type":998,"value":1273},"\"Color: ",{"type":993,"tag":1026,"props":1275,"children":1276},{"style":1113},[1277],{"type":998,"value":1278},"{",{"type":993,"tag":1026,"props":1280,"children":1281},{"style":1041},[1282],{"type":998,"value":1283},"color",{"type":993,"tag":1026,"props":1285,"children":1286},{"style":1113},[1287],{"type":998,"value":1288},"}",{"type":993,"tag":1026,"props":1290,"children":1291},{"style":1058},[1292],{"type":998,"value":1293},"\"",{"type":993,"tag":1026,"props":1295,"children":1296},{"style":1041},[1297],{"type":998,"value":1094},{"type":993,"tag":1026,"props":1299,"children":1300},{"class":1028,"line":100},[1301],{"type":993,"tag":1026,"props":1302,"children":1303},{"emptyLinePlaceholder":13},[1304],{"type":998,"value":1198},{"type":993,"tag":1026,"props":1306,"children":1307},{"class":1028,"line":109},[1308,1312,1316,1320,1325,1330],{"type":993,"tag":1026,"props":1309,"children":1310},{"style":1113},[1311],{"type":998,"value":1214},{"type":993,"tag":1026,"props":1313,"children":1314},{"style":1041},[1315],{"type":998,"value":1219},{"type":993,"tag":1026,"props":1317,"children":1318},{"style":1058},[1319],{"type":998,"value":1293},{"type":993,"tag":1026,"props":1321,"children":1322},{"style":1113},[1323],{"type":998,"value":1324},"\\n",{"type":993,"tag":1026,"props":1326,"children":1327},{"style":1058},[1328],{"type":998,"value":1329},"Coordinates:\"",{"type":993,"tag":1026,"props":1331,"children":1332},{"style":1041},[1333],{"type":998,"value":1094},{"type":993,"tag":1026,"props":1335,"children":1336},{"class":1028,"line":118},[1337,1341,1346,1350],{"type":993,"tag":1026,"props":1338,"children":1339},{"style":1047},[1340],{"type":998,"value":1236},{"type":993,"tag":1026,"props":1342,"children":1343},{"style":1041},[1344],{"type":998,"value":1345}," coord ",{"type":993,"tag":1026,"props":1347,"children":1348},{"style":1047},[1349],{"type":998,"value":1246},{"type":993,"tag":1026,"props":1351,"children":1352},{"style":1041},[1353],{"type":998,"value":1354}," coordinates:\n",{"type":993,"tag":1026,"props":1356,"children":1357},{"class":1028,"line":127},[1358,1362,1366,1370,1375,1379,1384,1388,1392],{"type":993,"tag":1026,"props":1359,"children":1360},{"style":1113},[1361],{"type":998,"value":1259},{"type":993,"tag":1026,"props":1363,"children":1364},{"style":1041},[1365],{"type":998,"value":1219},{"type":993,"tag":1026,"props":1367,"children":1368},{"style":1047},[1369],{"type":998,"value":1268},{"type":993,"tag":1026,"props":1371,"children":1372},{"style":1058},[1373],{"type":998,"value":1374},"\"Value: ",{"type":993,"tag":1026,"props":1376,"children":1377},{"style":1113},[1378],{"type":998,"value":1278},{"type":993,"tag":1026,"props":1380,"children":1381},{"style":1041},[1382],{"type":998,"value":1383},"coord",{"type":993,"tag":1026,"props":1385,"children":1386},{"style":1113},[1387],{"type":998,"value":1288},{"type":993,"tag":1026,"props":1389,"children":1390},{"style":1058},[1391],{"type":998,"value":1293},{"type":993,"tag":1026,"props":1393,"children":1394},{"style":1041},[1395],{"type":998,"value":1094},{"type":993,"tag":1026,"props":1397,"children":1398},{"class":1028,"line":136},[1399],{"type":993,"tag":1026,"props":1400,"children":1401},{"emptyLinePlaceholder":13},[1402],{"type":998,"value":1198},{"type":993,"tag":1026,"props":1404,"children":1405},{"class":1028,"line":146},[1406,1410,1414,1418,1422,1427],{"type":993,"tag":1026,"props":1407,"children":1408},{"style":1113},[1409],{"type":998,"value":1214},{"type":993,"tag":1026,"props":1411,"children":1412},{"style":1041},[1413],{"type":998,"value":1219},{"type":993,"tag":1026,"props":1415,"children":1416},{"style":1058},[1417],{"type":998,"value":1293},{"type":993,"tag":1026,"props":1419,"children":1420},{"style":1113},[1421],{"type":998,"value":1324},{"type":993,"tag":1026,"props":1423,"children":1424},{"style":1058},[1425],{"type":998,"value":1426},"Students:\"",{"type":993,"tag":1026,"props":1428,"children":1429},{"style":1041},[1430],{"type":998,"value":1094},{"type":993,"tag":1026,"props":1432,"children":1433},{"class":1028,"line":155},[1434,1438,1443,1447],{"type":993,"tag":1026,"props":1435,"children":1436},{"style":1047},[1437],{"type":998,"value":1236},{"type":993,"tag":1026,"props":1439,"children":1440},{"style":1041},[1441],{"type":998,"value":1442}," student ",{"type":993,"tag":1026,"props":1444,"children":1445},{"style":1047},[1446],{"type":998,"value":1246},{"type":993,"tag":1026,"props":1448,"children":1449},{"style":1041},[1450],{"type":998,"value":1451}," students:\n",{"type":993,"tag":1026,"props":1453,"children":1454},{"class":1028,"line":164},[1455,1459,1463,1467,1472,1476,1481,1485,1489],{"type":993,"tag":1026,"props":1456,"children":1457},{"style":1113},[1458],{"type":998,"value":1259},{"type":993,"tag":1026,"props":1460,"children":1461},{"style":1041},[1462],{"type":998,"value":1219},{"type":993,"tag":1026,"props":1464,"children":1465},{"style":1047},[1466],{"type":998,"value":1268},{"type":993,"tag":1026,"props":1468,"children":1469},{"style":1058},[1470],{"type":998,"value":1471},"\"Student: ",{"type":993,"tag":1026,"props":1473,"children":1474},{"style":1113},[1475],{"type":998,"value":1278},{"type":993,"tag":1026,"props":1477,"children":1478},{"style":1041},[1479],{"type":998,"value":1480},"student",{"type":993,"tag":1026,"props":1482,"children":1483},{"style":1113},[1484],{"type":998,"value":1288},{"type":993,"tag":1026,"props":1486,"children":1487},{"style":1058},[1488],{"type":998,"value":1293},{"type":993,"tag":1026,"props":1490,"children":1491},{"style":1041},[1492],{"type":998,"value":1094},{"type":993,"tag":1494,"props":1495,"children":1497},"h2",{"id":1496},"basic-tuple-iteration",[1498],{"type":998,"value":1499},"🎯 Basic Tuple Iteration",{"type":993,"tag":1001,"props":1501,"children":1502},{},[1503],{"type":998,"value":1504},"The most common way to iterate through tuples is using a for loop, which provides clean access to each element without index management.",{"type":993,"tag":1506,"props":1507,"children":1511},"info-box",{"emoji":1508,"title":1509,"type":1510},"🔄","Basic Iteration Fundamentals","info",[1512,1521,1546,1554,1583,1591],{"type":993,"tag":1001,"props":1513,"children":1514},{},[1515],{"type":993,"tag":1516,"props":1517,"children":1518},"strong",{},[1519],{"type":998,"value":1520},"For Loop Benefits:",{"type":993,"tag":1522,"props":1523,"children":1524},"ul",{},[1525,1531,1536,1541],{"type":993,"tag":1526,"props":1527,"children":1528},"li",{},[1529],{"type":998,"value":1530},"Direct element access without indexing",{"type":993,"tag":1526,"props":1532,"children":1533},{},[1534],{"type":998,"value":1535},"Works with any tuple size",{"type":993,"tag":1526,"props":1537,"children":1538},{},[1539],{"type":998,"value":1540},"Pythonic and readable syntax",{"type":993,"tag":1526,"props":1542,"children":1543},{},[1544],{"type":998,"value":1545},"No risk of index errors",{"type":993,"tag":1001,"props":1547,"children":1548},{},[1549],{"type":993,"tag":1516,"props":1550,"children":1551},{},[1552],{"type":998,"value":1553},"Common Patterns:",{"type":993,"tag":1522,"props":1555,"children":1556},{},[1557,1568,1573,1578],{"type":993,"tag":1526,"props":1558,"children":1559},{},[1560,1562],{"type":998,"value":1561},"Simple processing: ",{"type":993,"tag":1022,"props":1563,"children":1565},{"className":1564},[],[1566],{"type":998,"value":1567},"for item in tuple:",{"type":993,"tag":1526,"props":1569,"children":1570},{},[1571],{"type":998,"value":1572},"Conditional processing: filter during iteration",{"type":993,"tag":1526,"props":1574,"children":1575},{},[1576],{"type":998,"value":1577},"Accumulation: build results while iterating",{"type":993,"tag":1526,"props":1579,"children":1580},{},[1581],{"type":998,"value":1582},"Transformation: modify elements during iteration",{"type":993,"tag":1001,"props":1584,"children":1585},{},[1586],{"type":993,"tag":1516,"props":1587,"children":1588},{},[1589],{"type":998,"value":1590},"Memory Efficiency:",{"type":993,"tag":1522,"props":1592,"children":1593},{},[1594,1599],{"type":993,"tag":1526,"props":1595,"children":1596},{},[1597],{"type":998,"value":1598},"Tuples support lazy iteration",{"type":993,"tag":1526,"props":1600,"children":1601},{},[1602],{"type":998,"value":1603},"No additional memory overhead for iteration",{"type":993,"tag":1605,"props":1606,"children":1608},"h3",{"id":1607},"simple-element-processing",[1609],{"type":998,"value":1610},"Simple Element Processing",{"type":993,"tag":1001,"props":1612,"children":1613},{},[1614],{"type":998,"value":1615},"Direct tuple element processing using for loops for straightforward data handling.",{"type":993,"tag":1012,"props":1617,"children":1618},{},[1619],{"type":993,"tag":1016,"props":1620,"children":1622},{"className":1018,"code":1621,"language":6,"meta":8,"style":8},"# Simple element processing\nnumbers = (1, 4, 9, 16, 25)\nwords = (\"python\", \"programming\", \"tutorial\")\n\n# Process numbers\nprint(\"Square roots:\")\nfor num in numbers:\n    sqrt = num ** 0.5\n    print(f\"√{num} = {sqrt:.1f}\")\n\n# Process words\nprint(\"\\nWord analysis:\")\nfor word in words:\n    length = len(word)\n    capitalized = word.capitalize()\n    print(f\"'{word}' -> {length} letters, capitalized: '{capitalized}'\")\n",[1623],{"type":993,"tag":1022,"props":1624,"children":1625},{"__ignoreMap":8},[1626,1634,1695,1738,1745,1753,1773,1794,1820,1884,1891,1899,1927,1948,1970,1987],{"type":993,"tag":1026,"props":1627,"children":1628},{"class":1028,"line":12},[1629],{"type":993,"tag":1026,"props":1630,"children":1631},{"style":1032},[1632],{"type":998,"value":1633},"# Simple element processing\n",{"type":993,"tag":1026,"props":1635,"children":1636},{"class":1028,"line":27},[1637,1642,1646,1650,1655,1659,1664,1668,1673,1677,1682,1686,1691],{"type":993,"tag":1026,"props":1638,"children":1639},{"style":1041},[1640],{"type":998,"value":1641},"numbers ",{"type":993,"tag":1026,"props":1643,"children":1644},{"style":1047},[1645],{"type":998,"value":1050},{"type":993,"tag":1026,"props":1647,"children":1648},{"style":1041},[1649],{"type":998,"value":1055},{"type":993,"tag":1026,"props":1651,"children":1652},{"style":1113},[1653],{"type":998,"value":1654},"1",{"type":993,"tag":1026,"props":1656,"children":1657},{"style":1041},[1658],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1660,"children":1661},{"style":1113},[1662],{"type":998,"value":1663},"4",{"type":993,"tag":1026,"props":1665,"children":1666},{"style":1041},[1667],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1669,"children":1670},{"style":1113},[1671],{"type":998,"value":1672},"9",{"type":993,"tag":1026,"props":1674,"children":1675},{"style":1041},[1676],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1678,"children":1679},{"style":1113},[1680],{"type":998,"value":1681},"16",{"type":993,"tag":1026,"props":1683,"children":1684},{"style":1041},[1685],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1687,"children":1688},{"style":1113},[1689],{"type":998,"value":1690},"25",{"type":993,"tag":1026,"props":1692,"children":1693},{"style":1041},[1694],{"type":998,"value":1094},{"type":993,"tag":1026,"props":1696,"children":1697},{"class":1028,"line":36},[1698,1703,1707,1711,1716,1720,1725,1729,1734],{"type":993,"tag":1026,"props":1699,"children":1700},{"style":1041},[1701],{"type":998,"value":1702},"words ",{"type":993,"tag":1026,"props":1704,"children":1705},{"style":1047},[1706],{"type":998,"value":1050},{"type":993,"tag":1026,"props":1708,"children":1709},{"style":1041},[1710],{"type":998,"value":1055},{"type":993,"tag":1026,"props":1712,"children":1713},{"style":1058},[1714],{"type":998,"value":1715},"\"python\"",{"type":993,"tag":1026,"props":1717,"children":1718},{"style":1041},[1719],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1721,"children":1722},{"style":1058},[1723],{"type":998,"value":1724},"\"programming\"",{"type":993,"tag":1026,"props":1726,"children":1727},{"style":1041},[1728],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1730,"children":1731},{"style":1058},[1732],{"type":998,"value":1733},"\"tutorial\"",{"type":993,"tag":1026,"props":1735,"children":1736},{"style":1041},[1737],{"type":998,"value":1094},{"type":993,"tag":1026,"props":1739,"children":1740},{"class":1028,"line":45},[1741],{"type":993,"tag":1026,"props":1742,"children":1743},{"emptyLinePlaceholder":13},[1744],{"type":998,"value":1198},{"type":993,"tag":1026,"props":1746,"children":1747},{"class":1028,"line":54},[1748],{"type":993,"tag":1026,"props":1749,"children":1750},{"style":1032},[1751],{"type":998,"value":1752},"# Process numbers\n",{"type":993,"tag":1026,"props":1754,"children":1755},{"class":1028,"line":63},[1756,1760,1764,1769],{"type":993,"tag":1026,"props":1757,"children":1758},{"style":1113},[1759],{"type":998,"value":1214},{"type":993,"tag":1026,"props":1761,"children":1762},{"style":1041},[1763],{"type":998,"value":1219},{"type":993,"tag":1026,"props":1765,"children":1766},{"style":1058},[1767],{"type":998,"value":1768},"\"Square roots:\"",{"type":993,"tag":1026,"props":1770,"children":1771},{"style":1041},[1772],{"type":998,"value":1094},{"type":993,"tag":1026,"props":1774,"children":1775},{"class":1028,"line":72},[1776,1780,1785,1789],{"type":993,"tag":1026,"props":1777,"children":1778},{"style":1047},[1779],{"type":998,"value":1236},{"type":993,"tag":1026,"props":1781,"children":1782},{"style":1041},[1783],{"type":998,"value":1784}," num ",{"type":993,"tag":1026,"props":1786,"children":1787},{"style":1047},[1788],{"type":998,"value":1246},{"type":993,"tag":1026,"props":1790,"children":1791},{"style":1041},[1792],{"type":998,"value":1793}," numbers:\n",{"type":993,"tag":1026,"props":1795,"children":1796},{"class":1028,"line":81},[1797,1802,1806,1810,1815],{"type":993,"tag":1026,"props":1798,"children":1799},{"style":1041},[1800],{"type":998,"value":1801},"    sqrt ",{"type":993,"tag":1026,"props":1803,"children":1804},{"style":1047},[1805],{"type":998,"value":1050},{"type":993,"tag":1026,"props":1807,"children":1808},{"style":1041},[1809],{"type":998,"value":1784},{"type":993,"tag":1026,"props":1811,"children":1812},{"style":1047},[1813],{"type":998,"value":1814},"**",{"type":993,"tag":1026,"props":1816,"children":1817},{"style":1113},[1818],{"type":998,"value":1819}," 0.5\n",{"type":993,"tag":1026,"props":1821,"children":1822},{"class":1028,"line":91},[1823,1827,1831,1835,1840,1844,1849,1853,1858,1862,1867,1872,1876,1880],{"type":993,"tag":1026,"props":1824,"children":1825},{"style":1113},[1826],{"type":998,"value":1259},{"type":993,"tag":1026,"props":1828,"children":1829},{"style":1041},[1830],{"type":998,"value":1219},{"type":993,"tag":1026,"props":1832,"children":1833},{"style":1047},[1834],{"type":998,"value":1268},{"type":993,"tag":1026,"props":1836,"children":1837},{"style":1058},[1838],{"type":998,"value":1839},"\"√",{"type":993,"tag":1026,"props":1841,"children":1842},{"style":1113},[1843],{"type":998,"value":1278},{"type":993,"tag":1026,"props":1845,"children":1846},{"style":1041},[1847],{"type":998,"value":1848},"num",{"type":993,"tag":1026,"props":1850,"children":1851},{"style":1113},[1852],{"type":998,"value":1288},{"type":993,"tag":1026,"props":1854,"children":1855},{"style":1058},[1856],{"type":998,"value":1857}," = ",{"type":993,"tag":1026,"props":1859,"children":1860},{"style":1113},[1861],{"type":998,"value":1278},{"type":993,"tag":1026,"props":1863,"children":1864},{"style":1041},[1865],{"type":998,"value":1866},"sqrt",{"type":993,"tag":1026,"props":1868,"children":1869},{"style":1047},[1870],{"type":998,"value":1871},":.1f",{"type":993,"tag":1026,"props":1873,"children":1874},{"style":1113},[1875],{"type":998,"value":1288},{"type":993,"tag":1026,"props":1877,"children":1878},{"style":1058},[1879],{"type":998,"value":1293},{"type":993,"tag":1026,"props":1881,"children":1882},{"style":1041},[1883],{"type":998,"value":1094},{"type":993,"tag":1026,"props":1885,"children":1886},{"class":1028,"line":100},[1887],{"type":993,"tag":1026,"props":1888,"children":1889},{"emptyLinePlaceholder":13},[1890],{"type":998,"value":1198},{"type":993,"tag":1026,"props":1892,"children":1893},{"class":1028,"line":109},[1894],{"type":993,"tag":1026,"props":1895,"children":1896},{"style":1032},[1897],{"type":998,"value":1898},"# Process words\n",{"type":993,"tag":1026,"props":1900,"children":1901},{"class":1028,"line":118},[1902,1906,1910,1914,1918,1923],{"type":993,"tag":1026,"props":1903,"children":1904},{"style":1113},[1905],{"type":998,"value":1214},{"type":993,"tag":1026,"props":1907,"children":1908},{"style":1041},[1909],{"type":998,"value":1219},{"type":993,"tag":1026,"props":1911,"children":1912},{"style":1058},[1913],{"type":998,"value":1293},{"type":993,"tag":1026,"props":1915,"children":1916},{"style":1113},[1917],{"type":998,"value":1324},{"type":993,"tag":1026,"props":1919,"children":1920},{"style":1058},[1921],{"type":998,"value":1922},"Word analysis:\"",{"type":993,"tag":1026,"props":1924,"children":1925},{"style":1041},[1926],{"type":998,"value":1094},{"type":993,"tag":1026,"props":1928,"children":1929},{"class":1028,"line":127},[1930,1934,1939,1943],{"type":993,"tag":1026,"props":1931,"children":1932},{"style":1047},[1933],{"type":998,"value":1236},{"type":993,"tag":1026,"props":1935,"children":1936},{"style":1041},[1937],{"type":998,"value":1938}," word ",{"type":993,"tag":1026,"props":1940,"children":1941},{"style":1047},[1942],{"type":998,"value":1246},{"type":993,"tag":1026,"props":1944,"children":1945},{"style":1041},[1946],{"type":998,"value":1947}," words:\n",{"type":993,"tag":1026,"props":1949,"children":1950},{"class":1028,"line":136},[1951,1956,1960,1965],{"type":993,"tag":1026,"props":1952,"children":1953},{"style":1041},[1954],{"type":998,"value":1955},"    length ",{"type":993,"tag":1026,"props":1957,"children":1958},{"style":1047},[1959],{"type":998,"value":1050},{"type":993,"tag":1026,"props":1961,"children":1962},{"style":1113},[1963],{"type":998,"value":1964}," len",{"type":993,"tag":1026,"props":1966,"children":1967},{"style":1041},[1968],{"type":998,"value":1969},"(word)\n",{"type":993,"tag":1026,"props":1971,"children":1972},{"class":1028,"line":146},[1973,1978,1982],{"type":993,"tag":1026,"props":1974,"children":1975},{"style":1041},[1976],{"type":998,"value":1977},"    capitalized ",{"type":993,"tag":1026,"props":1979,"children":1980},{"style":1047},[1981],{"type":998,"value":1050},{"type":993,"tag":1026,"props":1983,"children":1984},{"style":1041},[1985],{"type":998,"value":1986}," word.capitalize()\n",{"type":993,"tag":1026,"props":1988,"children":1989},{"class":1028,"line":155},[1990,1994,1998,2002,2007,2011,2016,2020,2025,2029,2034,2038,2043,2047,2052,2056,2061],{"type":993,"tag":1026,"props":1991,"children":1992},{"style":1113},[1993],{"type":998,"value":1259},{"type":993,"tag":1026,"props":1995,"children":1996},{"style":1041},[1997],{"type":998,"value":1219},{"type":993,"tag":1026,"props":1999,"children":2000},{"style":1047},[2001],{"type":998,"value":1268},{"type":993,"tag":1026,"props":2003,"children":2004},{"style":1058},[2005],{"type":998,"value":2006},"\"'",{"type":993,"tag":1026,"props":2008,"children":2009},{"style":1113},[2010],{"type":998,"value":1278},{"type":993,"tag":1026,"props":2012,"children":2013},{"style":1041},[2014],{"type":998,"value":2015},"word",{"type":993,"tag":1026,"props":2017,"children":2018},{"style":1113},[2019],{"type":998,"value":1288},{"type":993,"tag":1026,"props":2021,"children":2022},{"style":1058},[2023],{"type":998,"value":2024},"' -> ",{"type":993,"tag":1026,"props":2026,"children":2027},{"style":1113},[2028],{"type":998,"value":1278},{"type":993,"tag":1026,"props":2030,"children":2031},{"style":1041},[2032],{"type":998,"value":2033},"length",{"type":993,"tag":1026,"props":2035,"children":2036},{"style":1113},[2037],{"type":998,"value":1288},{"type":993,"tag":1026,"props":2039,"children":2040},{"style":1058},[2041],{"type":998,"value":2042}," letters, capitalized: '",{"type":993,"tag":1026,"props":2044,"children":2045},{"style":1113},[2046],{"type":998,"value":1278},{"type":993,"tag":1026,"props":2048,"children":2049},{"style":1041},[2050],{"type":998,"value":2051},"capitalized",{"type":993,"tag":1026,"props":2053,"children":2054},{"style":1113},[2055],{"type":998,"value":1288},{"type":993,"tag":1026,"props":2057,"children":2058},{"style":1058},[2059],{"type":998,"value":2060},"'\"",{"type":993,"tag":1026,"props":2062,"children":2063},{"style":1041},[2064],{"type":998,"value":1094},{"type":993,"tag":1605,"props":2066,"children":2068},{"id":2067},"conditional-processing",[2069],{"type":998,"value":2070},"Conditional Processing",{"type":993,"tag":1001,"props":2072,"children":2073},{},[2074],{"type":998,"value":2075},"Selective element processing based on conditions during tuple iteration.",{"type":993,"tag":1012,"props":2077,"children":2078},{},[2079],{"type":993,"tag":1016,"props":2080,"children":2082},{"className":1018,"code":2081,"language":6,"meta":8,"style":8},"# Conditional processing during iteration\nscores = (85, 92, 78, 96, 88, 73, 91)\ntemperatures = (68, 75, 82, 79, 85, 90, 77)\n\n# Process high scores only\nprint(\"High scores (90+):\")\nfor score in scores:\n    if score >= 90:\n        grade = \"A\" if score >= 95 else \"A-\"\n        print(f\"Score: {score} (Grade: {grade})\")\n\n# Temperature analysis\nprint(\"\\nTemperature status:\")\nfor temp in temperatures:\n    if temp >= 85:\n        status = \"Hot\"\n    elif temp >= 75:\n        status = \"Warm\"\n    else:\n        status = \"Cool\"\n    print(f\"{temp}°F - {status}\")\n",[2083],{"type":993,"tag":1022,"props":2084,"children":2085},{"__ignoreMap":8},[2086,2094,2173,2251,2258,2266,2286,2307,2334,2379,2440,2447,2455,2483,2504,2528,2545,2570,2586,2598,2614],{"type":993,"tag":1026,"props":2087,"children":2088},{"class":1028,"line":12},[2089],{"type":993,"tag":1026,"props":2090,"children":2091},{"style":1032},[2092],{"type":998,"value":2093},"# Conditional processing during iteration\n",{"type":993,"tag":1026,"props":2095,"children":2096},{"class":1028,"line":27},[2097,2102,2106,2110,2115,2119,2124,2128,2133,2137,2142,2146,2151,2155,2160,2164,2169],{"type":993,"tag":1026,"props":2098,"children":2099},{"style":1041},[2100],{"type":998,"value":2101},"scores ",{"type":993,"tag":1026,"props":2103,"children":2104},{"style":1047},[2105],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2107,"children":2108},{"style":1041},[2109],{"type":998,"value":1055},{"type":993,"tag":1026,"props":2111,"children":2112},{"style":1113},[2113],{"type":998,"value":2114},"85",{"type":993,"tag":1026,"props":2116,"children":2117},{"style":1041},[2118],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2120,"children":2121},{"style":1113},[2122],{"type":998,"value":2123},"92",{"type":993,"tag":1026,"props":2125,"children":2126},{"style":1041},[2127],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2129,"children":2130},{"style":1113},[2131],{"type":998,"value":2132},"78",{"type":993,"tag":1026,"props":2134,"children":2135},{"style":1041},[2136],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2138,"children":2139},{"style":1113},[2140],{"type":998,"value":2141},"96",{"type":993,"tag":1026,"props":2143,"children":2144},{"style":1041},[2145],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2147,"children":2148},{"style":1113},[2149],{"type":998,"value":2150},"88",{"type":993,"tag":1026,"props":2152,"children":2153},{"style":1041},[2154],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2156,"children":2157},{"style":1113},[2158],{"type":998,"value":2159},"73",{"type":993,"tag":1026,"props":2161,"children":2162},{"style":1041},[2163],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2165,"children":2166},{"style":1113},[2167],{"type":998,"value":2168},"91",{"type":993,"tag":1026,"props":2170,"children":2171},{"style":1041},[2172],{"type":998,"value":1094},{"type":993,"tag":1026,"props":2174,"children":2175},{"class":1028,"line":36},[2176,2181,2185,2189,2194,2198,2203,2207,2212,2216,2221,2225,2229,2233,2238,2242,2247],{"type":993,"tag":1026,"props":2177,"children":2178},{"style":1041},[2179],{"type":998,"value":2180},"temperatures ",{"type":993,"tag":1026,"props":2182,"children":2183},{"style":1047},[2184],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2186,"children":2187},{"style":1041},[2188],{"type":998,"value":1055},{"type":993,"tag":1026,"props":2190,"children":2191},{"style":1113},[2192],{"type":998,"value":2193},"68",{"type":993,"tag":1026,"props":2195,"children":2196},{"style":1041},[2197],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2199,"children":2200},{"style":1113},[2201],{"type":998,"value":2202},"75",{"type":993,"tag":1026,"props":2204,"children":2205},{"style":1041},[2206],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2208,"children":2209},{"style":1113},[2210],{"type":998,"value":2211},"82",{"type":993,"tag":1026,"props":2213,"children":2214},{"style":1041},[2215],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2217,"children":2218},{"style":1113},[2219],{"type":998,"value":2220},"79",{"type":993,"tag":1026,"props":2222,"children":2223},{"style":1041},[2224],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2226,"children":2227},{"style":1113},[2228],{"type":998,"value":2114},{"type":993,"tag":1026,"props":2230,"children":2231},{"style":1041},[2232],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2234,"children":2235},{"style":1113},[2236],{"type":998,"value":2237},"90",{"type":993,"tag":1026,"props":2239,"children":2240},{"style":1041},[2241],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2243,"children":2244},{"style":1113},[2245],{"type":998,"value":2246},"77",{"type":993,"tag":1026,"props":2248,"children":2249},{"style":1041},[2250],{"type":998,"value":1094},{"type":993,"tag":1026,"props":2252,"children":2253},{"class":1028,"line":45},[2254],{"type":993,"tag":1026,"props":2255,"children":2256},{"emptyLinePlaceholder":13},[2257],{"type":998,"value":1198},{"type":993,"tag":1026,"props":2259,"children":2260},{"class":1028,"line":54},[2261],{"type":993,"tag":1026,"props":2262,"children":2263},{"style":1032},[2264],{"type":998,"value":2265},"# Process high scores only\n",{"type":993,"tag":1026,"props":2267,"children":2268},{"class":1028,"line":63},[2269,2273,2277,2282],{"type":993,"tag":1026,"props":2270,"children":2271},{"style":1113},[2272],{"type":998,"value":1214},{"type":993,"tag":1026,"props":2274,"children":2275},{"style":1041},[2276],{"type":998,"value":1219},{"type":993,"tag":1026,"props":2278,"children":2279},{"style":1058},[2280],{"type":998,"value":2281},"\"High scores (90+):\"",{"type":993,"tag":1026,"props":2283,"children":2284},{"style":1041},[2285],{"type":998,"value":1094},{"type":993,"tag":1026,"props":2287,"children":2288},{"class":1028,"line":72},[2289,2293,2298,2302],{"type":993,"tag":1026,"props":2290,"children":2291},{"style":1047},[2292],{"type":998,"value":1236},{"type":993,"tag":1026,"props":2294,"children":2295},{"style":1041},[2296],{"type":998,"value":2297}," score ",{"type":993,"tag":1026,"props":2299,"children":2300},{"style":1047},[2301],{"type":998,"value":1246},{"type":993,"tag":1026,"props":2303,"children":2304},{"style":1041},[2305],{"type":998,"value":2306}," scores:\n",{"type":993,"tag":1026,"props":2308,"children":2309},{"class":1028,"line":81},[2310,2315,2319,2324,2329],{"type":993,"tag":1026,"props":2311,"children":2312},{"style":1047},[2313],{"type":998,"value":2314},"    if",{"type":993,"tag":1026,"props":2316,"children":2317},{"style":1041},[2318],{"type":998,"value":2297},{"type":993,"tag":1026,"props":2320,"children":2321},{"style":1047},[2322],{"type":998,"value":2323},">=",{"type":993,"tag":1026,"props":2325,"children":2326},{"style":1113},[2327],{"type":998,"value":2328}," 90",{"type":993,"tag":1026,"props":2330,"children":2331},{"style":1041},[2332],{"type":998,"value":2333},":\n",{"type":993,"tag":1026,"props":2335,"children":2336},{"class":1028,"line":91},[2337,2342,2346,2351,2356,2360,2364,2369,2374],{"type":993,"tag":1026,"props":2338,"children":2339},{"style":1041},[2340],{"type":998,"value":2341},"        grade ",{"type":993,"tag":1026,"props":2343,"children":2344},{"style":1047},[2345],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2347,"children":2348},{"style":1058},[2349],{"type":998,"value":2350}," \"A\"",{"type":993,"tag":1026,"props":2352,"children":2353},{"style":1047},[2354],{"type":998,"value":2355}," if",{"type":993,"tag":1026,"props":2357,"children":2358},{"style":1041},[2359],{"type":998,"value":2297},{"type":993,"tag":1026,"props":2361,"children":2362},{"style":1047},[2363],{"type":998,"value":2323},{"type":993,"tag":1026,"props":2365,"children":2366},{"style":1113},[2367],{"type":998,"value":2368}," 95",{"type":993,"tag":1026,"props":2370,"children":2371},{"style":1047},[2372],{"type":998,"value":2373}," else",{"type":993,"tag":1026,"props":2375,"children":2376},{"style":1058},[2377],{"type":998,"value":2378}," \"A-\"\n",{"type":993,"tag":1026,"props":2380,"children":2381},{"class":1028,"line":100},[2382,2387,2391,2395,2400,2404,2409,2413,2418,2422,2427,2431,2436],{"type":993,"tag":1026,"props":2383,"children":2384},{"style":1113},[2385],{"type":998,"value":2386},"        print",{"type":993,"tag":1026,"props":2388,"children":2389},{"style":1041},[2390],{"type":998,"value":1219},{"type":993,"tag":1026,"props":2392,"children":2393},{"style":1047},[2394],{"type":998,"value":1268},{"type":993,"tag":1026,"props":2396,"children":2397},{"style":1058},[2398],{"type":998,"value":2399},"\"Score: ",{"type":993,"tag":1026,"props":2401,"children":2402},{"style":1113},[2403],{"type":998,"value":1278},{"type":993,"tag":1026,"props":2405,"children":2406},{"style":1041},[2407],{"type":998,"value":2408},"score",{"type":993,"tag":1026,"props":2410,"children":2411},{"style":1113},[2412],{"type":998,"value":1288},{"type":993,"tag":1026,"props":2414,"children":2415},{"style":1058},[2416],{"type":998,"value":2417}," (Grade: ",{"type":993,"tag":1026,"props":2419,"children":2420},{"style":1113},[2421],{"type":998,"value":1278},{"type":993,"tag":1026,"props":2423,"children":2424},{"style":1041},[2425],{"type":998,"value":2426},"grade",{"type":993,"tag":1026,"props":2428,"children":2429},{"style":1113},[2430],{"type":998,"value":1288},{"type":993,"tag":1026,"props":2432,"children":2433},{"style":1058},[2434],{"type":998,"value":2435},")\"",{"type":993,"tag":1026,"props":2437,"children":2438},{"style":1041},[2439],{"type":998,"value":1094},{"type":993,"tag":1026,"props":2441,"children":2442},{"class":1028,"line":109},[2443],{"type":993,"tag":1026,"props":2444,"children":2445},{"emptyLinePlaceholder":13},[2446],{"type":998,"value":1198},{"type":993,"tag":1026,"props":2448,"children":2449},{"class":1028,"line":118},[2450],{"type":993,"tag":1026,"props":2451,"children":2452},{"style":1032},[2453],{"type":998,"value":2454},"# Temperature analysis\n",{"type":993,"tag":1026,"props":2456,"children":2457},{"class":1028,"line":127},[2458,2462,2466,2470,2474,2479],{"type":993,"tag":1026,"props":2459,"children":2460},{"style":1113},[2461],{"type":998,"value":1214},{"type":993,"tag":1026,"props":2463,"children":2464},{"style":1041},[2465],{"type":998,"value":1219},{"type":993,"tag":1026,"props":2467,"children":2468},{"style":1058},[2469],{"type":998,"value":1293},{"type":993,"tag":1026,"props":2471,"children":2472},{"style":1113},[2473],{"type":998,"value":1324},{"type":993,"tag":1026,"props":2475,"children":2476},{"style":1058},[2477],{"type":998,"value":2478},"Temperature status:\"",{"type":993,"tag":1026,"props":2480,"children":2481},{"style":1041},[2482],{"type":998,"value":1094},{"type":993,"tag":1026,"props":2484,"children":2485},{"class":1028,"line":136},[2486,2490,2495,2499],{"type":993,"tag":1026,"props":2487,"children":2488},{"style":1047},[2489],{"type":998,"value":1236},{"type":993,"tag":1026,"props":2491,"children":2492},{"style":1041},[2493],{"type":998,"value":2494}," temp ",{"type":993,"tag":1026,"props":2496,"children":2497},{"style":1047},[2498],{"type":998,"value":1246},{"type":993,"tag":1026,"props":2500,"children":2501},{"style":1041},[2502],{"type":998,"value":2503}," temperatures:\n",{"type":993,"tag":1026,"props":2505,"children":2506},{"class":1028,"line":146},[2507,2511,2515,2519,2524],{"type":993,"tag":1026,"props":2508,"children":2509},{"style":1047},[2510],{"type":998,"value":2314},{"type":993,"tag":1026,"props":2512,"children":2513},{"style":1041},[2514],{"type":998,"value":2494},{"type":993,"tag":1026,"props":2516,"children":2517},{"style":1047},[2518],{"type":998,"value":2323},{"type":993,"tag":1026,"props":2520,"children":2521},{"style":1113},[2522],{"type":998,"value":2523}," 85",{"type":993,"tag":1026,"props":2525,"children":2526},{"style":1041},[2527],{"type":998,"value":2333},{"type":993,"tag":1026,"props":2529,"children":2530},{"class":1028,"line":155},[2531,2536,2540],{"type":993,"tag":1026,"props":2532,"children":2533},{"style":1041},[2534],{"type":998,"value":2535},"        status ",{"type":993,"tag":1026,"props":2537,"children":2538},{"style":1047},[2539],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2541,"children":2542},{"style":1058},[2543],{"type":998,"value":2544}," \"Hot\"\n",{"type":993,"tag":1026,"props":2546,"children":2547},{"class":1028,"line":164},[2548,2553,2557,2561,2566],{"type":993,"tag":1026,"props":2549,"children":2550},{"style":1047},[2551],{"type":998,"value":2552},"    elif",{"type":993,"tag":1026,"props":2554,"children":2555},{"style":1041},[2556],{"type":998,"value":2494},{"type":993,"tag":1026,"props":2558,"children":2559},{"style":1047},[2560],{"type":998,"value":2323},{"type":993,"tag":1026,"props":2562,"children":2563},{"style":1113},[2564],{"type":998,"value":2565}," 75",{"type":993,"tag":1026,"props":2567,"children":2568},{"style":1041},[2569],{"type":998,"value":2333},{"type":993,"tag":1026,"props":2571,"children":2572},{"class":1028,"line":173},[2573,2577,2581],{"type":993,"tag":1026,"props":2574,"children":2575},{"style":1041},[2576],{"type":998,"value":2535},{"type":993,"tag":1026,"props":2578,"children":2579},{"style":1047},[2580],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2582,"children":2583},{"style":1058},[2584],{"type":998,"value":2585}," \"Warm\"\n",{"type":993,"tag":1026,"props":2587,"children":2588},{"class":1028,"line":182},[2589,2594],{"type":993,"tag":1026,"props":2590,"children":2591},{"style":1047},[2592],{"type":998,"value":2593},"    else",{"type":993,"tag":1026,"props":2595,"children":2596},{"style":1041},[2597],{"type":998,"value":2333},{"type":993,"tag":1026,"props":2599,"children":2600},{"class":1028,"line":191},[2601,2605,2609],{"type":993,"tag":1026,"props":2602,"children":2603},{"style":1041},[2604],{"type":998,"value":2535},{"type":993,"tag":1026,"props":2606,"children":2607},{"style":1047},[2608],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2610,"children":2611},{"style":1058},[2612],{"type":998,"value":2613}," \"Cool\"\n",{"type":993,"tag":1026,"props":2615,"children":2616},{"class":1028,"line":201},[2617,2621,2625,2629,2633,2637,2642,2646,2651,2655,2660,2664,2668],{"type":993,"tag":1026,"props":2618,"children":2619},{"style":1113},[2620],{"type":998,"value":1259},{"type":993,"tag":1026,"props":2622,"children":2623},{"style":1041},[2624],{"type":998,"value":1219},{"type":993,"tag":1026,"props":2626,"children":2627},{"style":1047},[2628],{"type":998,"value":1268},{"type":993,"tag":1026,"props":2630,"children":2631},{"style":1058},[2632],{"type":998,"value":1293},{"type":993,"tag":1026,"props":2634,"children":2635},{"style":1113},[2636],{"type":998,"value":1278},{"type":993,"tag":1026,"props":2638,"children":2639},{"style":1041},[2640],{"type":998,"value":2641},"temp",{"type":993,"tag":1026,"props":2643,"children":2644},{"style":1113},[2645],{"type":998,"value":1288},{"type":993,"tag":1026,"props":2647,"children":2648},{"style":1058},[2649],{"type":998,"value":2650},"°F - ",{"type":993,"tag":1026,"props":2652,"children":2653},{"style":1113},[2654],{"type":998,"value":1278},{"type":993,"tag":1026,"props":2656,"children":2657},{"style":1041},[2658],{"type":998,"value":2659},"status",{"type":993,"tag":1026,"props":2661,"children":2662},{"style":1113},[2663],{"type":998,"value":1288},{"type":993,"tag":1026,"props":2665,"children":2666},{"style":1058},[2667],{"type":998,"value":1293},{"type":993,"tag":1026,"props":2669,"children":2670},{"style":1041},[2671],{"type":998,"value":1094},{"type":993,"tag":1605,"props":2673,"children":2675},{"id":2674},"accumulation-patterns",[2676],{"type":998,"value":2677},"Accumulation Patterns",{"type":993,"tag":1001,"props":2679,"children":2680},{},[2681],{"type":998,"value":2682},"Building results and collecting data during tuple iteration for analysis.",{"type":993,"tag":1012,"props":2684,"children":2685},{},[2686],{"type":993,"tag":1016,"props":2687,"children":2689},{"className":1018,"code":2688,"language":6,"meta":8,"style":8},"# Accumulation during iteration\nprices = (29.99, 15.50, 8.75, 42.00, 33.25)\nratings = (4.5, 3.8, 4.9, 4.2, 3.9, 4.7)\n\n# Calculate totals and statistics\ntotal_price = 0\nexpensive_items = 0\n\nfor price in prices:\n    total_price += price\n    if price > 30:\n        expensive_items += 1\n\nprint(f\"Total price: ${total_price:.2f}\")\nprint(f\"Average price: ${total_price / len(prices):.2f}\")\nprint(f\"Expensive items (>$30): {expensive_items}\")\n\n# Rating analysis\nhigh_ratings = []\nfor rating in ratings:\n    if rating >= 4.5:\n        high_ratings.append(rating)\n\nprint(f\"High ratings (4.5+): {len(high_ratings)} out of {len(ratings)}\")\n",[2690],{"type":993,"tag":1022,"props":2691,"children":2692},{"__ignoreMap":8},[2693,2701,2762,2832,2839,2847,2864,2880,2887,2908,2926,2951,2968,2975,3021,3079,3120,3127,3135,3152,3173,3197,3205,3212],{"type":993,"tag":1026,"props":2694,"children":2695},{"class":1028,"line":12},[2696],{"type":993,"tag":1026,"props":2697,"children":2698},{"style":1032},[2699],{"type":998,"value":2700},"# Accumulation during iteration\n",{"type":993,"tag":1026,"props":2702,"children":2703},{"class":1028,"line":27},[2704,2709,2713,2717,2722,2726,2731,2735,2740,2744,2749,2753,2758],{"type":993,"tag":1026,"props":2705,"children":2706},{"style":1041},[2707],{"type":998,"value":2708},"prices ",{"type":993,"tag":1026,"props":2710,"children":2711},{"style":1047},[2712],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2714,"children":2715},{"style":1041},[2716],{"type":998,"value":1055},{"type":993,"tag":1026,"props":2718,"children":2719},{"style":1113},[2720],{"type":998,"value":2721},"29.99",{"type":993,"tag":1026,"props":2723,"children":2724},{"style":1041},[2725],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2727,"children":2728},{"style":1113},[2729],{"type":998,"value":2730},"15.50",{"type":993,"tag":1026,"props":2732,"children":2733},{"style":1041},[2734],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2736,"children":2737},{"style":1113},[2738],{"type":998,"value":2739},"8.75",{"type":993,"tag":1026,"props":2741,"children":2742},{"style":1041},[2743],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2745,"children":2746},{"style":1113},[2747],{"type":998,"value":2748},"42.00",{"type":993,"tag":1026,"props":2750,"children":2751},{"style":1041},[2752],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2754,"children":2755},{"style":1113},[2756],{"type":998,"value":2757},"33.25",{"type":993,"tag":1026,"props":2759,"children":2760},{"style":1041},[2761],{"type":998,"value":1094},{"type":993,"tag":1026,"props":2763,"children":2764},{"class":1028,"line":36},[2765,2770,2774,2778,2783,2787,2792,2796,2801,2805,2810,2814,2819,2823,2828],{"type":993,"tag":1026,"props":2766,"children":2767},{"style":1041},[2768],{"type":998,"value":2769},"ratings ",{"type":993,"tag":1026,"props":2771,"children":2772},{"style":1047},[2773],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2775,"children":2776},{"style":1041},[2777],{"type":998,"value":1055},{"type":993,"tag":1026,"props":2779,"children":2780},{"style":1113},[2781],{"type":998,"value":2782},"4.5",{"type":993,"tag":1026,"props":2784,"children":2785},{"style":1041},[2786],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2788,"children":2789},{"style":1113},[2790],{"type":998,"value":2791},"3.8",{"type":993,"tag":1026,"props":2793,"children":2794},{"style":1041},[2795],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2797,"children":2798},{"style":1113},[2799],{"type":998,"value":2800},"4.9",{"type":993,"tag":1026,"props":2802,"children":2803},{"style":1041},[2804],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2806,"children":2807},{"style":1113},[2808],{"type":998,"value":2809},"4.2",{"type":993,"tag":1026,"props":2811,"children":2812},{"style":1041},[2813],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2815,"children":2816},{"style":1113},[2817],{"type":998,"value":2818},"3.9",{"type":993,"tag":1026,"props":2820,"children":2821},{"style":1041},[2822],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2824,"children":2825},{"style":1113},[2826],{"type":998,"value":2827},"4.7",{"type":993,"tag":1026,"props":2829,"children":2830},{"style":1041},[2831],{"type":998,"value":1094},{"type":993,"tag":1026,"props":2833,"children":2834},{"class":1028,"line":45},[2835],{"type":993,"tag":1026,"props":2836,"children":2837},{"emptyLinePlaceholder":13},[2838],{"type":998,"value":1198},{"type":993,"tag":1026,"props":2840,"children":2841},{"class":1028,"line":54},[2842],{"type":993,"tag":1026,"props":2843,"children":2844},{"style":1032},[2845],{"type":998,"value":2846},"# Calculate totals and statistics\n",{"type":993,"tag":1026,"props":2848,"children":2849},{"class":1028,"line":63},[2850,2855,2859],{"type":993,"tag":1026,"props":2851,"children":2852},{"style":1041},[2853],{"type":998,"value":2854},"total_price ",{"type":993,"tag":1026,"props":2856,"children":2857},{"style":1047},[2858],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2860,"children":2861},{"style":1113},[2862],{"type":998,"value":2863}," 0\n",{"type":993,"tag":1026,"props":2865,"children":2866},{"class":1028,"line":72},[2867,2872,2876],{"type":993,"tag":1026,"props":2868,"children":2869},{"style":1041},[2870],{"type":998,"value":2871},"expensive_items ",{"type":993,"tag":1026,"props":2873,"children":2874},{"style":1047},[2875],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2877,"children":2878},{"style":1113},[2879],{"type":998,"value":2863},{"type":993,"tag":1026,"props":2881,"children":2882},{"class":1028,"line":81},[2883],{"type":993,"tag":1026,"props":2884,"children":2885},{"emptyLinePlaceholder":13},[2886],{"type":998,"value":1198},{"type":993,"tag":1026,"props":2888,"children":2889},{"class":1028,"line":91},[2890,2894,2899,2903],{"type":993,"tag":1026,"props":2891,"children":2892},{"style":1047},[2893],{"type":998,"value":1236},{"type":993,"tag":1026,"props":2895,"children":2896},{"style":1041},[2897],{"type":998,"value":2898}," price ",{"type":993,"tag":1026,"props":2900,"children":2901},{"style":1047},[2902],{"type":998,"value":1246},{"type":993,"tag":1026,"props":2904,"children":2905},{"style":1041},[2906],{"type":998,"value":2907}," prices:\n",{"type":993,"tag":1026,"props":2909,"children":2910},{"class":1028,"line":100},[2911,2916,2921],{"type":993,"tag":1026,"props":2912,"children":2913},{"style":1041},[2914],{"type":998,"value":2915},"    total_price ",{"type":993,"tag":1026,"props":2917,"children":2918},{"style":1047},[2919],{"type":998,"value":2920},"+=",{"type":993,"tag":1026,"props":2922,"children":2923},{"style":1041},[2924],{"type":998,"value":2925}," price\n",{"type":993,"tag":1026,"props":2927,"children":2928},{"class":1028,"line":109},[2929,2933,2937,2942,2947],{"type":993,"tag":1026,"props":2930,"children":2931},{"style":1047},[2932],{"type":998,"value":2314},{"type":993,"tag":1026,"props":2934,"children":2935},{"style":1041},[2936],{"type":998,"value":2898},{"type":993,"tag":1026,"props":2938,"children":2939},{"style":1047},[2940],{"type":998,"value":2941},">",{"type":993,"tag":1026,"props":2943,"children":2944},{"style":1113},[2945],{"type":998,"value":2946}," 30",{"type":993,"tag":1026,"props":2948,"children":2949},{"style":1041},[2950],{"type":998,"value":2333},{"type":993,"tag":1026,"props":2952,"children":2953},{"class":1028,"line":118},[2954,2959,2963],{"type":993,"tag":1026,"props":2955,"children":2956},{"style":1041},[2957],{"type":998,"value":2958},"        expensive_items ",{"type":993,"tag":1026,"props":2960,"children":2961},{"style":1047},[2962],{"type":998,"value":2920},{"type":993,"tag":1026,"props":2964,"children":2965},{"style":1113},[2966],{"type":998,"value":2967}," 1\n",{"type":993,"tag":1026,"props":2969,"children":2970},{"class":1028,"line":127},[2971],{"type":993,"tag":1026,"props":2972,"children":2973},{"emptyLinePlaceholder":13},[2974],{"type":998,"value":1198},{"type":993,"tag":1026,"props":2976,"children":2977},{"class":1028,"line":136},[2978,2982,2986,2990,2995,2999,3004,3009,3013,3017],{"type":993,"tag":1026,"props":2979,"children":2980},{"style":1113},[2981],{"type":998,"value":1214},{"type":993,"tag":1026,"props":2983,"children":2984},{"style":1041},[2985],{"type":998,"value":1219},{"type":993,"tag":1026,"props":2987,"children":2988},{"style":1047},[2989],{"type":998,"value":1268},{"type":993,"tag":1026,"props":2991,"children":2992},{"style":1058},[2993],{"type":998,"value":2994},"\"Total price: $",{"type":993,"tag":1026,"props":2996,"children":2997},{"style":1113},[2998],{"type":998,"value":1278},{"type":993,"tag":1026,"props":3000,"children":3001},{"style":1041},[3002],{"type":998,"value":3003},"total_price",{"type":993,"tag":1026,"props":3005,"children":3006},{"style":1047},[3007],{"type":998,"value":3008},":.2f",{"type":993,"tag":1026,"props":3010,"children":3011},{"style":1113},[3012],{"type":998,"value":1288},{"type":993,"tag":1026,"props":3014,"children":3015},{"style":1058},[3016],{"type":998,"value":1293},{"type":993,"tag":1026,"props":3018,"children":3019},{"style":1041},[3020],{"type":998,"value":1094},{"type":993,"tag":1026,"props":3022,"children":3023},{"class":1028,"line":146},[3024,3028,3032,3036,3041,3045,3049,3054,3058,3063,3067,3071,3075],{"type":993,"tag":1026,"props":3025,"children":3026},{"style":1113},[3027],{"type":998,"value":1214},{"type":993,"tag":1026,"props":3029,"children":3030},{"style":1041},[3031],{"type":998,"value":1219},{"type":993,"tag":1026,"props":3033,"children":3034},{"style":1047},[3035],{"type":998,"value":1268},{"type":993,"tag":1026,"props":3037,"children":3038},{"style":1058},[3039],{"type":998,"value":3040},"\"Average price: $",{"type":993,"tag":1026,"props":3042,"children":3043},{"style":1113},[3044],{"type":998,"value":1278},{"type":993,"tag":1026,"props":3046,"children":3047},{"style":1041},[3048],{"type":998,"value":2854},{"type":993,"tag":1026,"props":3050,"children":3051},{"style":1047},[3052],{"type":998,"value":3053},"/",{"type":993,"tag":1026,"props":3055,"children":3056},{"style":1113},[3057],{"type":998,"value":1964},{"type":993,"tag":1026,"props":3059,"children":3060},{"style":1041},[3061],{"type":998,"value":3062},"(prices)",{"type":993,"tag":1026,"props":3064,"children":3065},{"style":1047},[3066],{"type":998,"value":3008},{"type":993,"tag":1026,"props":3068,"children":3069},{"style":1113},[3070],{"type":998,"value":1288},{"type":993,"tag":1026,"props":3072,"children":3073},{"style":1058},[3074],{"type":998,"value":1293},{"type":993,"tag":1026,"props":3076,"children":3077},{"style":1041},[3078],{"type":998,"value":1094},{"type":993,"tag":1026,"props":3080,"children":3081},{"class":1028,"line":155},[3082,3086,3090,3094,3099,3103,3108,3112,3116],{"type":993,"tag":1026,"props":3083,"children":3084},{"style":1113},[3085],{"type":998,"value":1214},{"type":993,"tag":1026,"props":3087,"children":3088},{"style":1041},[3089],{"type":998,"value":1219},{"type":993,"tag":1026,"props":3091,"children":3092},{"style":1047},[3093],{"type":998,"value":1268},{"type":993,"tag":1026,"props":3095,"children":3096},{"style":1058},[3097],{"type":998,"value":3098},"\"Expensive items (>$30): ",{"type":993,"tag":1026,"props":3100,"children":3101},{"style":1113},[3102],{"type":998,"value":1278},{"type":993,"tag":1026,"props":3104,"children":3105},{"style":1041},[3106],{"type":998,"value":3107},"expensive_items",{"type":993,"tag":1026,"props":3109,"children":3110},{"style":1113},[3111],{"type":998,"value":1288},{"type":993,"tag":1026,"props":3113,"children":3114},{"style":1058},[3115],{"type":998,"value":1293},{"type":993,"tag":1026,"props":3117,"children":3118},{"style":1041},[3119],{"type":998,"value":1094},{"type":993,"tag":1026,"props":3121,"children":3122},{"class":1028,"line":164},[3123],{"type":993,"tag":1026,"props":3124,"children":3125},{"emptyLinePlaceholder":13},[3126],{"type":998,"value":1198},{"type":993,"tag":1026,"props":3128,"children":3129},{"class":1028,"line":173},[3130],{"type":993,"tag":1026,"props":3131,"children":3132},{"style":1032},[3133],{"type":998,"value":3134},"# Rating analysis\n",{"type":993,"tag":1026,"props":3136,"children":3137},{"class":1028,"line":182},[3138,3143,3147],{"type":993,"tag":1026,"props":3139,"children":3140},{"style":1041},[3141],{"type":998,"value":3142},"high_ratings ",{"type":993,"tag":1026,"props":3144,"children":3145},{"style":1047},[3146],{"type":998,"value":1050},{"type":993,"tag":1026,"props":3148,"children":3149},{"style":1041},[3150],{"type":998,"value":3151}," []\n",{"type":993,"tag":1026,"props":3153,"children":3154},{"class":1028,"line":191},[3155,3159,3164,3168],{"type":993,"tag":1026,"props":3156,"children":3157},{"style":1047},[3158],{"type":998,"value":1236},{"type":993,"tag":1026,"props":3160,"children":3161},{"style":1041},[3162],{"type":998,"value":3163}," rating ",{"type":993,"tag":1026,"props":3165,"children":3166},{"style":1047},[3167],{"type":998,"value":1246},{"type":993,"tag":1026,"props":3169,"children":3170},{"style":1041},[3171],{"type":998,"value":3172}," ratings:\n",{"type":993,"tag":1026,"props":3174,"children":3175},{"class":1028,"line":201},[3176,3180,3184,3188,3193],{"type":993,"tag":1026,"props":3177,"children":3178},{"style":1047},[3179],{"type":998,"value":2314},{"type":993,"tag":1026,"props":3181,"children":3182},{"style":1041},[3183],{"type":998,"value":3163},{"type":993,"tag":1026,"props":3185,"children":3186},{"style":1047},[3187],{"type":998,"value":2323},{"type":993,"tag":1026,"props":3189,"children":3190},{"style":1113},[3191],{"type":998,"value":3192}," 4.5",{"type":993,"tag":1026,"props":3194,"children":3195},{"style":1041},[3196],{"type":998,"value":2333},{"type":993,"tag":1026,"props":3198,"children":3199},{"class":1028,"line":210},[3200],{"type":993,"tag":1026,"props":3201,"children":3202},{"style":1041},[3203],{"type":998,"value":3204},"        high_ratings.append(rating)\n",{"type":993,"tag":1026,"props":3206,"children":3207},{"class":1028,"line":219},[3208],{"type":993,"tag":1026,"props":3209,"children":3210},{"emptyLinePlaceholder":13},[3211],{"type":998,"value":1198},{"type":993,"tag":1026,"props":3213,"children":3214},{"class":1028,"line":228},[3215,3219,3223,3227,3232,3237,3242,3246,3251,3255,3260,3264,3268],{"type":993,"tag":1026,"props":3216,"children":3217},{"style":1113},[3218],{"type":998,"value":1214},{"type":993,"tag":1026,"props":3220,"children":3221},{"style":1041},[3222],{"type":998,"value":1219},{"type":993,"tag":1026,"props":3224,"children":3225},{"style":1047},[3226],{"type":998,"value":1268},{"type":993,"tag":1026,"props":3228,"children":3229},{"style":1058},[3230],{"type":998,"value":3231},"\"High ratings (4.5+): ",{"type":993,"tag":1026,"props":3233,"children":3234},{"style":1113},[3235],{"type":998,"value":3236},"{len",{"type":993,"tag":1026,"props":3238,"children":3239},{"style":1041},[3240],{"type":998,"value":3241},"(high_ratings)",{"type":993,"tag":1026,"props":3243,"children":3244},{"style":1113},[3245],{"type":998,"value":1288},{"type":993,"tag":1026,"props":3247,"children":3248},{"style":1058},[3249],{"type":998,"value":3250}," out of ",{"type":993,"tag":1026,"props":3252,"children":3253},{"style":1113},[3254],{"type":998,"value":3236},{"type":993,"tag":1026,"props":3256,"children":3257},{"style":1041},[3258],{"type":998,"value":3259},"(ratings)",{"type":993,"tag":1026,"props":3261,"children":3262},{"style":1113},[3263],{"type":998,"value":1288},{"type":993,"tag":1026,"props":3265,"children":3266},{"style":1058},[3267],{"type":998,"value":1293},{"type":993,"tag":1026,"props":3269,"children":3270},{"style":1041},[3271],{"type":998,"value":1094},{"type":993,"tag":1494,"props":3273,"children":3275},{"id":3274},"iteration-with-index-access",[3276],{"type":998,"value":3277},"📍 Iteration with Index Access",{"type":993,"tag":1001,"props":3279,"children":3280},{},[3281],{"type":998,"value":3282},"Sometimes you need both the element and its position. Python provides enumerate() to access indices elegantly, and range(len()) for traditional index-based iteration.",{"type":993,"tag":1506,"props":3284,"children":3288},{"emoji":3285,"title":3286,"type":3287},"📍","Index Access Methods","success",[3289,3297,3320,3328,3351,3359],{"type":993,"tag":1001,"props":3290,"children":3291},{},[3292],{"type":993,"tag":1516,"props":3293,"children":3294},{},[3295],{"type":998,"value":3296},"enumerate() Function:",{"type":993,"tag":1522,"props":3298,"children":3299},{},[3300,3305,3310,3315],{"type":993,"tag":1526,"props":3301,"children":3302},{},[3303],{"type":998,"value":3304},"Returns (index, element) pairs",{"type":993,"tag":1526,"props":3306,"children":3307},{},[3308],{"type":998,"value":3309},"Optional start parameter for custom numbering",{"type":993,"tag":1526,"props":3311,"children":3312},{},[3313],{"type":998,"value":3314},"Most Pythonic way to get indices",{"type":993,"tag":1526,"props":3316,"children":3317},{},[3318],{"type":998,"value":3319},"Works with all iterables",{"type":993,"tag":1001,"props":3321,"children":3322},{},[3323],{"type":993,"tag":1516,"props":3324,"children":3325},{},[3326],{"type":998,"value":3327},"range(len()) Pattern:",{"type":993,"tag":1522,"props":3329,"children":3330},{},[3331,3336,3341,3346],{"type":993,"tag":1526,"props":3332,"children":3333},{},[3334],{"type":998,"value":3335},"Traditional index-based access",{"type":993,"tag":1526,"props":3337,"children":3338},{},[3339],{"type":998,"value":3340},"Useful when you need to modify other sequences",{"type":993,"tag":1526,"props":3342,"children":3343},{},[3344],{"type":998,"value":3345},"Direct index control",{"type":993,"tag":1526,"props":3347,"children":3348},{},[3349],{"type":998,"value":3350},"Required for some algorithmic patterns",{"type":993,"tag":1001,"props":3352,"children":3353},{},[3354],{"type":993,"tag":1516,"props":3355,"children":3356},{},[3357],{"type":998,"value":3358},"Best Practice:",{"type":993,"tag":1522,"props":3360,"children":3361},{},[3362,3367],{"type":993,"tag":1526,"props":3363,"children":3364},{},[3365],{"type":998,"value":3366},"Use enumerate() when you need both index and element",{"type":993,"tag":1526,"props":3368,"children":3369},{},[3370],{"type":998,"value":3371},"Use range(len()) only when necessary for specific algorithms",{"type":993,"tag":1605,"props":3373,"children":3375},{"id":3374},"using-enumerate-for-position-tracking",[3376],{"type":998,"value":3377},"Using enumerate() for Position Tracking",{"type":993,"tag":1001,"props":3379,"children":3380},{},[3381],{"type":998,"value":3382},"Position-aware iteration using enumerate() for elegant index and element access.",{"type":993,"tag":1012,"props":3384,"children":3385},{},[3386],{"type":993,"tag":1016,"props":3387,"children":3389},{"className":1018,"code":3388,"language":6,"meta":8,"style":8},"# Using enumerate for position tracking\nsubjects = (\"Math\", \"Science\", \"English\", \"History\", \"Art\")\ngrades = (88, 92, 85, 90, 87)\n\nprint(\"Subject grades with positions:\")\nfor index, subject in enumerate(subjects):\n    grade = grades[index] if index \u003C len(grades) else \"N/A\"\n    position = index + 1\n    print(f\"{position}. {subject}: {grade}\")\n\n# Custom start numbering\nprint(\"\\nSubjects starting from 10:\")\nfor number, subject in enumerate(subjects, 10):\n    print(f\"Subject {number}: {subject}\")\n\n# Finding positions of specific elements\nsearch_subjects = (\"Science\", \"Art\", \"Music\")\nfor subject in search_subjects:\n    if subject in subjects:\n        position = subjects.index(subject)\n        print(f\"'{subject}' found at position {position}\")\n    else:\n        print(f\"'{subject}' not found\")\n",[3390],{"type":993,"tag":1022,"props":3391,"children":3392},{"__ignoreMap":8},[3393,3401,3462,3519,3526,3546,3572,3623,3648,3723,3730,3738,3766,3800,3857,3864,3872,3913,3934,3954,3971,4027,4038],{"type":993,"tag":1026,"props":3394,"children":3395},{"class":1028,"line":12},[3396],{"type":993,"tag":1026,"props":3397,"children":3398},{"style":1032},[3399],{"type":998,"value":3400},"# Using enumerate for position tracking\n",{"type":993,"tag":1026,"props":3402,"children":3403},{"class":1028,"line":27},[3404,3409,3413,3417,3422,3426,3431,3435,3440,3444,3449,3453,3458],{"type":993,"tag":1026,"props":3405,"children":3406},{"style":1041},[3407],{"type":998,"value":3408},"subjects ",{"type":993,"tag":1026,"props":3410,"children":3411},{"style":1047},[3412],{"type":998,"value":1050},{"type":993,"tag":1026,"props":3414,"children":3415},{"style":1041},[3416],{"type":998,"value":1055},{"type":993,"tag":1026,"props":3418,"children":3419},{"style":1058},[3420],{"type":998,"value":3421},"\"Math\"",{"type":993,"tag":1026,"props":3423,"children":3424},{"style":1041},[3425],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3427,"children":3428},{"style":1058},[3429],{"type":998,"value":3430},"\"Science\"",{"type":993,"tag":1026,"props":3432,"children":3433},{"style":1041},[3434],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3436,"children":3437},{"style":1058},[3438],{"type":998,"value":3439},"\"English\"",{"type":993,"tag":1026,"props":3441,"children":3442},{"style":1041},[3443],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3445,"children":3446},{"style":1058},[3447],{"type":998,"value":3448},"\"History\"",{"type":993,"tag":1026,"props":3450,"children":3451},{"style":1041},[3452],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3454,"children":3455},{"style":1058},[3456],{"type":998,"value":3457},"\"Art\"",{"type":993,"tag":1026,"props":3459,"children":3460},{"style":1041},[3461],{"type":998,"value":1094},{"type":993,"tag":1026,"props":3463,"children":3464},{"class":1028,"line":36},[3465,3470,3474,3478,3482,3486,3490,3494,3498,3502,3506,3510,3515],{"type":993,"tag":1026,"props":3466,"children":3467},{"style":1041},[3468],{"type":998,"value":3469},"grades ",{"type":993,"tag":1026,"props":3471,"children":3472},{"style":1047},[3473],{"type":998,"value":1050},{"type":993,"tag":1026,"props":3475,"children":3476},{"style":1041},[3477],{"type":998,"value":1055},{"type":993,"tag":1026,"props":3479,"children":3480},{"style":1113},[3481],{"type":998,"value":2150},{"type":993,"tag":1026,"props":3483,"children":3484},{"style":1041},[3485],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3487,"children":3488},{"style":1113},[3489],{"type":998,"value":2123},{"type":993,"tag":1026,"props":3491,"children":3492},{"style":1041},[3493],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3495,"children":3496},{"style":1113},[3497],{"type":998,"value":2114},{"type":993,"tag":1026,"props":3499,"children":3500},{"style":1041},[3501],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3503,"children":3504},{"style":1113},[3505],{"type":998,"value":2237},{"type":993,"tag":1026,"props":3507,"children":3508},{"style":1041},[3509],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3511,"children":3512},{"style":1113},[3513],{"type":998,"value":3514},"87",{"type":993,"tag":1026,"props":3516,"children":3517},{"style":1041},[3518],{"type":998,"value":1094},{"type":993,"tag":1026,"props":3520,"children":3521},{"class":1028,"line":45},[3522],{"type":993,"tag":1026,"props":3523,"children":3524},{"emptyLinePlaceholder":13},[3525],{"type":998,"value":1198},{"type":993,"tag":1026,"props":3527,"children":3528},{"class":1028,"line":54},[3529,3533,3537,3542],{"type":993,"tag":1026,"props":3530,"children":3531},{"style":1113},[3532],{"type":998,"value":1214},{"type":993,"tag":1026,"props":3534,"children":3535},{"style":1041},[3536],{"type":998,"value":1219},{"type":993,"tag":1026,"props":3538,"children":3539},{"style":1058},[3540],{"type":998,"value":3541},"\"Subject grades with positions:\"",{"type":993,"tag":1026,"props":3543,"children":3544},{"style":1041},[3545],{"type":998,"value":1094},{"type":993,"tag":1026,"props":3547,"children":3548},{"class":1028,"line":63},[3549,3553,3558,3562,3567],{"type":993,"tag":1026,"props":3550,"children":3551},{"style":1047},[3552],{"type":998,"value":1236},{"type":993,"tag":1026,"props":3554,"children":3555},{"style":1041},[3556],{"type":998,"value":3557}," index, subject ",{"type":993,"tag":1026,"props":3559,"children":3560},{"style":1047},[3561],{"type":998,"value":1246},{"type":993,"tag":1026,"props":3563,"children":3564},{"style":1113},[3565],{"type":998,"value":3566}," enumerate",{"type":993,"tag":1026,"props":3568,"children":3569},{"style":1041},[3570],{"type":998,"value":3571},"(subjects):\n",{"type":993,"tag":1026,"props":3573,"children":3574},{"class":1028,"line":72},[3575,3580,3584,3589,3594,3599,3604,3608,3613,3618],{"type":993,"tag":1026,"props":3576,"children":3577},{"style":1041},[3578],{"type":998,"value":3579},"    grade ",{"type":993,"tag":1026,"props":3581,"children":3582},{"style":1047},[3583],{"type":998,"value":1050},{"type":993,"tag":1026,"props":3585,"children":3586},{"style":1041},[3587],{"type":998,"value":3588}," grades[index] ",{"type":993,"tag":1026,"props":3590,"children":3591},{"style":1047},[3592],{"type":998,"value":3593},"if",{"type":993,"tag":1026,"props":3595,"children":3596},{"style":1041},[3597],{"type":998,"value":3598}," index ",{"type":993,"tag":1026,"props":3600,"children":3601},{"style":1047},[3602],{"type":998,"value":3603},"\u003C",{"type":993,"tag":1026,"props":3605,"children":3606},{"style":1113},[3607],{"type":998,"value":1964},{"type":993,"tag":1026,"props":3609,"children":3610},{"style":1041},[3611],{"type":998,"value":3612},"(grades) ",{"type":993,"tag":1026,"props":3614,"children":3615},{"style":1047},[3616],{"type":998,"value":3617},"else",{"type":993,"tag":1026,"props":3619,"children":3620},{"style":1058},[3621],{"type":998,"value":3622}," \"N/A\"\n",{"type":993,"tag":1026,"props":3624,"children":3625},{"class":1028,"line":81},[3626,3631,3635,3639,3644],{"type":993,"tag":1026,"props":3627,"children":3628},{"style":1041},[3629],{"type":998,"value":3630},"    position ",{"type":993,"tag":1026,"props":3632,"children":3633},{"style":1047},[3634],{"type":998,"value":1050},{"type":993,"tag":1026,"props":3636,"children":3637},{"style":1041},[3638],{"type":998,"value":3598},{"type":993,"tag":1026,"props":3640,"children":3641},{"style":1047},[3642],{"type":998,"value":3643},"+",{"type":993,"tag":1026,"props":3645,"children":3646},{"style":1113},[3647],{"type":998,"value":2967},{"type":993,"tag":1026,"props":3649,"children":3650},{"class":1028,"line":91},[3651,3655,3659,3663,3667,3671,3676,3680,3685,3689,3694,3698,3703,3707,3711,3715,3719],{"type":993,"tag":1026,"props":3652,"children":3653},{"style":1113},[3654],{"type":998,"value":1259},{"type":993,"tag":1026,"props":3656,"children":3657},{"style":1041},[3658],{"type":998,"value":1219},{"type":993,"tag":1026,"props":3660,"children":3661},{"style":1047},[3662],{"type":998,"value":1268},{"type":993,"tag":1026,"props":3664,"children":3665},{"style":1058},[3666],{"type":998,"value":1293},{"type":993,"tag":1026,"props":3668,"children":3669},{"style":1113},[3670],{"type":998,"value":1278},{"type":993,"tag":1026,"props":3672,"children":3673},{"style":1041},[3674],{"type":998,"value":3675},"position",{"type":993,"tag":1026,"props":3677,"children":3678},{"style":1113},[3679],{"type":998,"value":1288},{"type":993,"tag":1026,"props":3681,"children":3682},{"style":1058},[3683],{"type":998,"value":3684},". ",{"type":993,"tag":1026,"props":3686,"children":3687},{"style":1113},[3688],{"type":998,"value":1278},{"type":993,"tag":1026,"props":3690,"children":3691},{"style":1041},[3692],{"type":998,"value":3693},"subject",{"type":993,"tag":1026,"props":3695,"children":3696},{"style":1113},[3697],{"type":998,"value":1288},{"type":993,"tag":1026,"props":3699,"children":3700},{"style":1058},[3701],{"type":998,"value":3702},": ",{"type":993,"tag":1026,"props":3704,"children":3705},{"style":1113},[3706],{"type":998,"value":1278},{"type":993,"tag":1026,"props":3708,"children":3709},{"style":1041},[3710],{"type":998,"value":2426},{"type":993,"tag":1026,"props":3712,"children":3713},{"style":1113},[3714],{"type":998,"value":1288},{"type":993,"tag":1026,"props":3716,"children":3717},{"style":1058},[3718],{"type":998,"value":1293},{"type":993,"tag":1026,"props":3720,"children":3721},{"style":1041},[3722],{"type":998,"value":1094},{"type":993,"tag":1026,"props":3724,"children":3725},{"class":1028,"line":100},[3726],{"type":993,"tag":1026,"props":3727,"children":3728},{"emptyLinePlaceholder":13},[3729],{"type":998,"value":1198},{"type":993,"tag":1026,"props":3731,"children":3732},{"class":1028,"line":109},[3733],{"type":993,"tag":1026,"props":3734,"children":3735},{"style":1032},[3736],{"type":998,"value":3737},"# Custom start numbering\n",{"type":993,"tag":1026,"props":3739,"children":3740},{"class":1028,"line":118},[3741,3745,3749,3753,3757,3762],{"type":993,"tag":1026,"props":3742,"children":3743},{"style":1113},[3744],{"type":998,"value":1214},{"type":993,"tag":1026,"props":3746,"children":3747},{"style":1041},[3748],{"type":998,"value":1219},{"type":993,"tag":1026,"props":3750,"children":3751},{"style":1058},[3752],{"type":998,"value":1293},{"type":993,"tag":1026,"props":3754,"children":3755},{"style":1113},[3756],{"type":998,"value":1324},{"type":993,"tag":1026,"props":3758,"children":3759},{"style":1058},[3760],{"type":998,"value":3761},"Subjects starting from 10:\"",{"type":993,"tag":1026,"props":3763,"children":3764},{"style":1041},[3765],{"type":998,"value":1094},{"type":993,"tag":1026,"props":3767,"children":3768},{"class":1028,"line":127},[3769,3773,3778,3782,3786,3791,3795],{"type":993,"tag":1026,"props":3770,"children":3771},{"style":1047},[3772],{"type":998,"value":1236},{"type":993,"tag":1026,"props":3774,"children":3775},{"style":1041},[3776],{"type":998,"value":3777}," number, subject ",{"type":993,"tag":1026,"props":3779,"children":3780},{"style":1047},[3781],{"type":998,"value":1246},{"type":993,"tag":1026,"props":3783,"children":3784},{"style":1113},[3785],{"type":998,"value":3566},{"type":993,"tag":1026,"props":3787,"children":3788},{"style":1041},[3789],{"type":998,"value":3790},"(subjects, ",{"type":993,"tag":1026,"props":3792,"children":3793},{"style":1113},[3794],{"type":998,"value":1116},{"type":993,"tag":1026,"props":3796,"children":3797},{"style":1041},[3798],{"type":998,"value":3799},"):\n",{"type":993,"tag":1026,"props":3801,"children":3802},{"class":1028,"line":136},[3803,3807,3811,3815,3820,3824,3829,3833,3837,3841,3845,3849,3853],{"type":993,"tag":1026,"props":3804,"children":3805},{"style":1113},[3806],{"type":998,"value":1259},{"type":993,"tag":1026,"props":3808,"children":3809},{"style":1041},[3810],{"type":998,"value":1219},{"type":993,"tag":1026,"props":3812,"children":3813},{"style":1047},[3814],{"type":998,"value":1268},{"type":993,"tag":1026,"props":3816,"children":3817},{"style":1058},[3818],{"type":998,"value":3819},"\"Subject ",{"type":993,"tag":1026,"props":3821,"children":3822},{"style":1113},[3823],{"type":998,"value":1278},{"type":993,"tag":1026,"props":3825,"children":3826},{"style":1041},[3827],{"type":998,"value":3828},"number",{"type":993,"tag":1026,"props":3830,"children":3831},{"style":1113},[3832],{"type":998,"value":1288},{"type":993,"tag":1026,"props":3834,"children":3835},{"style":1058},[3836],{"type":998,"value":3702},{"type":993,"tag":1026,"props":3838,"children":3839},{"style":1113},[3840],{"type":998,"value":1278},{"type":993,"tag":1026,"props":3842,"children":3843},{"style":1041},[3844],{"type":998,"value":3693},{"type":993,"tag":1026,"props":3846,"children":3847},{"style":1113},[3848],{"type":998,"value":1288},{"type":993,"tag":1026,"props":3850,"children":3851},{"style":1058},[3852],{"type":998,"value":1293},{"type":993,"tag":1026,"props":3854,"children":3855},{"style":1041},[3856],{"type":998,"value":1094},{"type":993,"tag":1026,"props":3858,"children":3859},{"class":1028,"line":146},[3860],{"type":993,"tag":1026,"props":3861,"children":3862},{"emptyLinePlaceholder":13},[3863],{"type":998,"value":1198},{"type":993,"tag":1026,"props":3865,"children":3866},{"class":1028,"line":155},[3867],{"type":993,"tag":1026,"props":3868,"children":3869},{"style":1032},[3870],{"type":998,"value":3871},"# Finding positions of specific elements\n",{"type":993,"tag":1026,"props":3873,"children":3874},{"class":1028,"line":164},[3875,3880,3884,3888,3892,3896,3900,3904,3909],{"type":993,"tag":1026,"props":3876,"children":3877},{"style":1041},[3878],{"type":998,"value":3879},"search_subjects ",{"type":993,"tag":1026,"props":3881,"children":3882},{"style":1047},[3883],{"type":998,"value":1050},{"type":993,"tag":1026,"props":3885,"children":3886},{"style":1041},[3887],{"type":998,"value":1055},{"type":993,"tag":1026,"props":3889,"children":3890},{"style":1058},[3891],{"type":998,"value":3430},{"type":993,"tag":1026,"props":3893,"children":3894},{"style":1041},[3895],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3897,"children":3898},{"style":1058},[3899],{"type":998,"value":3457},{"type":993,"tag":1026,"props":3901,"children":3902},{"style":1041},[3903],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3905,"children":3906},{"style":1058},[3907],{"type":998,"value":3908},"\"Music\"",{"type":993,"tag":1026,"props":3910,"children":3911},{"style":1041},[3912],{"type":998,"value":1094},{"type":993,"tag":1026,"props":3914,"children":3915},{"class":1028,"line":173},[3916,3920,3925,3929],{"type":993,"tag":1026,"props":3917,"children":3918},{"style":1047},[3919],{"type":998,"value":1236},{"type":993,"tag":1026,"props":3921,"children":3922},{"style":1041},[3923],{"type":998,"value":3924}," subject ",{"type":993,"tag":1026,"props":3926,"children":3927},{"style":1047},[3928],{"type":998,"value":1246},{"type":993,"tag":1026,"props":3930,"children":3931},{"style":1041},[3932],{"type":998,"value":3933}," search_subjects:\n",{"type":993,"tag":1026,"props":3935,"children":3936},{"class":1028,"line":182},[3937,3941,3945,3949],{"type":993,"tag":1026,"props":3938,"children":3939},{"style":1047},[3940],{"type":998,"value":2314},{"type":993,"tag":1026,"props":3942,"children":3943},{"style":1041},[3944],{"type":998,"value":3924},{"type":993,"tag":1026,"props":3946,"children":3947},{"style":1047},[3948],{"type":998,"value":1246},{"type":993,"tag":1026,"props":3950,"children":3951},{"style":1041},[3952],{"type":998,"value":3953}," subjects:\n",{"type":993,"tag":1026,"props":3955,"children":3956},{"class":1028,"line":191},[3957,3962,3966],{"type":993,"tag":1026,"props":3958,"children":3959},{"style":1041},[3960],{"type":998,"value":3961},"        position ",{"type":993,"tag":1026,"props":3963,"children":3964},{"style":1047},[3965],{"type":998,"value":1050},{"type":993,"tag":1026,"props":3967,"children":3968},{"style":1041},[3969],{"type":998,"value":3970}," subjects.index(subject)\n",{"type":993,"tag":1026,"props":3972,"children":3973},{"class":1028,"line":201},[3974,3978,3982,3986,3990,3994,3998,4002,4007,4011,4015,4019,4023],{"type":993,"tag":1026,"props":3975,"children":3976},{"style":1113},[3977],{"type":998,"value":2386},{"type":993,"tag":1026,"props":3979,"children":3980},{"style":1041},[3981],{"type":998,"value":1219},{"type":993,"tag":1026,"props":3983,"children":3984},{"style":1047},[3985],{"type":998,"value":1268},{"type":993,"tag":1026,"props":3987,"children":3988},{"style":1058},[3989],{"type":998,"value":2006},{"type":993,"tag":1026,"props":3991,"children":3992},{"style":1113},[3993],{"type":998,"value":1278},{"type":993,"tag":1026,"props":3995,"children":3996},{"style":1041},[3997],{"type":998,"value":3693},{"type":993,"tag":1026,"props":3999,"children":4000},{"style":1113},[4001],{"type":998,"value":1288},{"type":993,"tag":1026,"props":4003,"children":4004},{"style":1058},[4005],{"type":998,"value":4006},"' found at position ",{"type":993,"tag":1026,"props":4008,"children":4009},{"style":1113},[4010],{"type":998,"value":1278},{"type":993,"tag":1026,"props":4012,"children":4013},{"style":1041},[4014],{"type":998,"value":3675},{"type":993,"tag":1026,"props":4016,"children":4017},{"style":1113},[4018],{"type":998,"value":1288},{"type":993,"tag":1026,"props":4020,"children":4021},{"style":1058},[4022],{"type":998,"value":1293},{"type":993,"tag":1026,"props":4024,"children":4025},{"style":1041},[4026],{"type":998,"value":1094},{"type":993,"tag":1026,"props":4028,"children":4029},{"class":1028,"line":210},[4030,4034],{"type":993,"tag":1026,"props":4031,"children":4032},{"style":1047},[4033],{"type":998,"value":2593},{"type":993,"tag":1026,"props":4035,"children":4036},{"style":1041},[4037],{"type":998,"value":2333},{"type":993,"tag":1026,"props":4039,"children":4040},{"class":1028,"line":219},[4041,4045,4049,4053,4057,4061,4065,4069,4074],{"type":993,"tag":1026,"props":4042,"children":4043},{"style":1113},[4044],{"type":998,"value":2386},{"type":993,"tag":1026,"props":4046,"children":4047},{"style":1041},[4048],{"type":998,"value":1219},{"type":993,"tag":1026,"props":4050,"children":4051},{"style":1047},[4052],{"type":998,"value":1268},{"type":993,"tag":1026,"props":4054,"children":4055},{"style":1058},[4056],{"type":998,"value":2006},{"type":993,"tag":1026,"props":4058,"children":4059},{"style":1113},[4060],{"type":998,"value":1278},{"type":993,"tag":1026,"props":4062,"children":4063},{"style":1041},[4064],{"type":998,"value":3693},{"type":993,"tag":1026,"props":4066,"children":4067},{"style":1113},[4068],{"type":998,"value":1288},{"type":993,"tag":1026,"props":4070,"children":4071},{"style":1058},[4072],{"type":998,"value":4073},"' not found\"",{"type":993,"tag":1026,"props":4075,"children":4076},{"style":1041},[4077],{"type":998,"value":1094},{"type":993,"tag":1605,"props":4079,"children":4081},{"id":4080},"index-based-iteration-patterns",[4082],{"type":998,"value":4083},"Index-Based Iteration Patterns",{"type":993,"tag":1001,"props":4085,"children":4086},{},[4087],{"type":998,"value":4088},"Traditional index-based iteration for specific algorithmic requirements.",{"type":993,"tag":1012,"props":4090,"children":4091},{},[4092],{"type":993,"tag":1016,"props":4093,"children":4095},{"className":1018,"code":4094,"language":6,"meta":8,"style":8},"# Index-based iteration with range(len())\ndata = (10, 25, 30, 15, 40, 35)\nnames = (\"Alice\", \"Bob\", \"Carol\", \"David\")\n\nprint(\"Index-based processing:\")\nfor i in range(len(data)):\n    value = data[i]\n    is_even_index = i % 2 == 0\n    position_type = \"even\" if is_even_index else \"odd\"\n    print(f\"Index {i} ({position_type}): {value}\")\n\n# Compare adjacent elements\nprint(\"\\nAdjacent comparisons:\")\nfor i in range(len(data) - 1):\n    current = data[i]\n    next_val = data[i + 1]\n    trend = \"increasing\" if next_val > current else \"decreasing\"\n    print(f\"From {current} to {next_val}: {trend}\")\n\n# Reverse iteration using indices\nprint(\"\\nReverse order:\")\nfor i in range(len(names) - 1, -1, -1):\n    print(f\"Position {i}: {names[i]}\")\n",[4096],{"type":993,"tag":1022,"props":4097,"children":4098},{"__ignoreMap":8},[4099,4107,4174,4222,4229,4249,4284,4301,4336,4371,4447,4454,4462,4490,4536,4552,4582,4626,4702,4709,4717,4745,4813],{"type":993,"tag":1026,"props":4100,"children":4101},{"class":1028,"line":12},[4102],{"type":993,"tag":1026,"props":4103,"children":4104},{"style":1032},[4105],{"type":998,"value":4106},"# Index-based iteration with range(len())\n",{"type":993,"tag":1026,"props":4108,"children":4109},{"class":1028,"line":27},[4110,4115,4119,4123,4127,4131,4135,4139,4143,4147,4152,4156,4161,4165,4170],{"type":993,"tag":1026,"props":4111,"children":4112},{"style":1041},[4113],{"type":998,"value":4114},"data ",{"type":993,"tag":1026,"props":4116,"children":4117},{"style":1047},[4118],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4120,"children":4121},{"style":1041},[4122],{"type":998,"value":1055},{"type":993,"tag":1026,"props":4124,"children":4125},{"style":1113},[4126],{"type":998,"value":1116},{"type":993,"tag":1026,"props":4128,"children":4129},{"style":1041},[4130],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4132,"children":4133},{"style":1113},[4134],{"type":998,"value":1690},{"type":993,"tag":1026,"props":4136,"children":4137},{"style":1041},[4138],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4140,"children":4141},{"style":1113},[4142],{"type":998,"value":1134},{"type":993,"tag":1026,"props":4144,"children":4145},{"style":1041},[4146],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4148,"children":4149},{"style":1113},[4150],{"type":998,"value":4151},"15",{"type":993,"tag":1026,"props":4153,"children":4154},{"style":1041},[4155],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4157,"children":4158},{"style":1113},[4159],{"type":998,"value":4160},"40",{"type":993,"tag":1026,"props":4162,"children":4163},{"style":1041},[4164],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4166,"children":4167},{"style":1113},[4168],{"type":998,"value":4169},"35",{"type":993,"tag":1026,"props":4171,"children":4172},{"style":1041},[4173],{"type":998,"value":1094},{"type":993,"tag":1026,"props":4175,"children":4176},{"class":1028,"line":36},[4177,4182,4186,4190,4194,4198,4202,4206,4210,4214,4218],{"type":993,"tag":1026,"props":4178,"children":4179},{"style":1041},[4180],{"type":998,"value":4181},"names ",{"type":993,"tag":1026,"props":4183,"children":4184},{"style":1047},[4185],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4187,"children":4188},{"style":1041},[4189],{"type":998,"value":1055},{"type":993,"tag":1026,"props":4191,"children":4192},{"style":1058},[4193],{"type":998,"value":1159},{"type":993,"tag":1026,"props":4195,"children":4196},{"style":1041},[4197],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4199,"children":4200},{"style":1058},[4201],{"type":998,"value":1168},{"type":993,"tag":1026,"props":4203,"children":4204},{"style":1041},[4205],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4207,"children":4208},{"style":1058},[4209],{"type":998,"value":1177},{"type":993,"tag":1026,"props":4211,"children":4212},{"style":1041},[4213],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4215,"children":4216},{"style":1058},[4217],{"type":998,"value":1186},{"type":993,"tag":1026,"props":4219,"children":4220},{"style":1041},[4221],{"type":998,"value":1094},{"type":993,"tag":1026,"props":4223,"children":4224},{"class":1028,"line":45},[4225],{"type":993,"tag":1026,"props":4226,"children":4227},{"emptyLinePlaceholder":13},[4228],{"type":998,"value":1198},{"type":993,"tag":1026,"props":4230,"children":4231},{"class":1028,"line":54},[4232,4236,4240,4245],{"type":993,"tag":1026,"props":4233,"children":4234},{"style":1113},[4235],{"type":998,"value":1214},{"type":993,"tag":1026,"props":4237,"children":4238},{"style":1041},[4239],{"type":998,"value":1219},{"type":993,"tag":1026,"props":4241,"children":4242},{"style":1058},[4243],{"type":998,"value":4244},"\"Index-based processing:\"",{"type":993,"tag":1026,"props":4246,"children":4247},{"style":1041},[4248],{"type":998,"value":1094},{"type":993,"tag":1026,"props":4250,"children":4251},{"class":1028,"line":63},[4252,4256,4261,4265,4270,4274,4279],{"type":993,"tag":1026,"props":4253,"children":4254},{"style":1047},[4255],{"type":998,"value":1236},{"type":993,"tag":1026,"props":4257,"children":4258},{"style":1041},[4259],{"type":998,"value":4260}," i ",{"type":993,"tag":1026,"props":4262,"children":4263},{"style":1047},[4264],{"type":998,"value":1246},{"type":993,"tag":1026,"props":4266,"children":4267},{"style":1113},[4268],{"type":998,"value":4269}," range",{"type":993,"tag":1026,"props":4271,"children":4272},{"style":1041},[4273],{"type":998,"value":1219},{"type":993,"tag":1026,"props":4275,"children":4276},{"style":1113},[4277],{"type":998,"value":4278},"len",{"type":993,"tag":1026,"props":4280,"children":4281},{"style":1041},[4282],{"type":998,"value":4283},"(data)):\n",{"type":993,"tag":1026,"props":4285,"children":4286},{"class":1028,"line":72},[4287,4292,4296],{"type":993,"tag":1026,"props":4288,"children":4289},{"style":1041},[4290],{"type":998,"value":4291},"    value ",{"type":993,"tag":1026,"props":4293,"children":4294},{"style":1047},[4295],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4297,"children":4298},{"style":1041},[4299],{"type":998,"value":4300}," data[i]\n",{"type":993,"tag":1026,"props":4302,"children":4303},{"class":1028,"line":81},[4304,4309,4313,4317,4322,4327,4332],{"type":993,"tag":1026,"props":4305,"children":4306},{"style":1041},[4307],{"type":998,"value":4308},"    is_even_index ",{"type":993,"tag":1026,"props":4310,"children":4311},{"style":1047},[4312],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4314,"children":4315},{"style":1041},[4316],{"type":998,"value":4260},{"type":993,"tag":1026,"props":4318,"children":4319},{"style":1047},[4320],{"type":998,"value":4321},"%",{"type":993,"tag":1026,"props":4323,"children":4324},{"style":1113},[4325],{"type":998,"value":4326}," 2",{"type":993,"tag":1026,"props":4328,"children":4329},{"style":1047},[4330],{"type":998,"value":4331}," ==",{"type":993,"tag":1026,"props":4333,"children":4334},{"style":1113},[4335],{"type":998,"value":2863},{"type":993,"tag":1026,"props":4337,"children":4338},{"class":1028,"line":91},[4339,4344,4348,4353,4357,4362,4366],{"type":993,"tag":1026,"props":4340,"children":4341},{"style":1041},[4342],{"type":998,"value":4343},"    position_type ",{"type":993,"tag":1026,"props":4345,"children":4346},{"style":1047},[4347],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4349,"children":4350},{"style":1058},[4351],{"type":998,"value":4352}," \"even\"",{"type":993,"tag":1026,"props":4354,"children":4355},{"style":1047},[4356],{"type":998,"value":2355},{"type":993,"tag":1026,"props":4358,"children":4359},{"style":1041},[4360],{"type":998,"value":4361}," is_even_index ",{"type":993,"tag":1026,"props":4363,"children":4364},{"style":1047},[4365],{"type":998,"value":3617},{"type":993,"tag":1026,"props":4367,"children":4368},{"style":1058},[4369],{"type":998,"value":4370}," \"odd\"\n",{"type":993,"tag":1026,"props":4372,"children":4373},{"class":1028,"line":100},[4374,4378,4382,4386,4391,4395,4400,4404,4408,4412,4417,4421,4426,4430,4435,4439,4443],{"type":993,"tag":1026,"props":4375,"children":4376},{"style":1113},[4377],{"type":998,"value":1259},{"type":993,"tag":1026,"props":4379,"children":4380},{"style":1041},[4381],{"type":998,"value":1219},{"type":993,"tag":1026,"props":4383,"children":4384},{"style":1047},[4385],{"type":998,"value":1268},{"type":993,"tag":1026,"props":4387,"children":4388},{"style":1058},[4389],{"type":998,"value":4390},"\"Index ",{"type":993,"tag":1026,"props":4392,"children":4393},{"style":1113},[4394],{"type":998,"value":1278},{"type":993,"tag":1026,"props":4396,"children":4397},{"style":1041},[4398],{"type":998,"value":4399},"i",{"type":993,"tag":1026,"props":4401,"children":4402},{"style":1113},[4403],{"type":998,"value":1288},{"type":993,"tag":1026,"props":4405,"children":4406},{"style":1058},[4407],{"type":998,"value":1055},{"type":993,"tag":1026,"props":4409,"children":4410},{"style":1113},[4411],{"type":998,"value":1278},{"type":993,"tag":1026,"props":4413,"children":4414},{"style":1041},[4415],{"type":998,"value":4416},"position_type",{"type":993,"tag":1026,"props":4418,"children":4419},{"style":1113},[4420],{"type":998,"value":1288},{"type":993,"tag":1026,"props":4422,"children":4423},{"style":1058},[4424],{"type":998,"value":4425},"): ",{"type":993,"tag":1026,"props":4427,"children":4428},{"style":1113},[4429],{"type":998,"value":1278},{"type":993,"tag":1026,"props":4431,"children":4432},{"style":1041},[4433],{"type":998,"value":4434},"value",{"type":993,"tag":1026,"props":4436,"children":4437},{"style":1113},[4438],{"type":998,"value":1288},{"type":993,"tag":1026,"props":4440,"children":4441},{"style":1058},[4442],{"type":998,"value":1293},{"type":993,"tag":1026,"props":4444,"children":4445},{"style":1041},[4446],{"type":998,"value":1094},{"type":993,"tag":1026,"props":4448,"children":4449},{"class":1028,"line":109},[4450],{"type":993,"tag":1026,"props":4451,"children":4452},{"emptyLinePlaceholder":13},[4453],{"type":998,"value":1198},{"type":993,"tag":1026,"props":4455,"children":4456},{"class":1028,"line":118},[4457],{"type":993,"tag":1026,"props":4458,"children":4459},{"style":1032},[4460],{"type":998,"value":4461},"# Compare adjacent elements\n",{"type":993,"tag":1026,"props":4463,"children":4464},{"class":1028,"line":127},[4465,4469,4473,4477,4481,4486],{"type":993,"tag":1026,"props":4466,"children":4467},{"style":1113},[4468],{"type":998,"value":1214},{"type":993,"tag":1026,"props":4470,"children":4471},{"style":1041},[4472],{"type":998,"value":1219},{"type":993,"tag":1026,"props":4474,"children":4475},{"style":1058},[4476],{"type":998,"value":1293},{"type":993,"tag":1026,"props":4478,"children":4479},{"style":1113},[4480],{"type":998,"value":1324},{"type":993,"tag":1026,"props":4482,"children":4483},{"style":1058},[4484],{"type":998,"value":4485},"Adjacent comparisons:\"",{"type":993,"tag":1026,"props":4487,"children":4488},{"style":1041},[4489],{"type":998,"value":1094},{"type":993,"tag":1026,"props":4491,"children":4492},{"class":1028,"line":136},[4493,4497,4501,4505,4509,4513,4517,4522,4527,4532],{"type":993,"tag":1026,"props":4494,"children":4495},{"style":1047},[4496],{"type":998,"value":1236},{"type":993,"tag":1026,"props":4498,"children":4499},{"style":1041},[4500],{"type":998,"value":4260},{"type":993,"tag":1026,"props":4502,"children":4503},{"style":1047},[4504],{"type":998,"value":1246},{"type":993,"tag":1026,"props":4506,"children":4507},{"style":1113},[4508],{"type":998,"value":4269},{"type":993,"tag":1026,"props":4510,"children":4511},{"style":1041},[4512],{"type":998,"value":1219},{"type":993,"tag":1026,"props":4514,"children":4515},{"style":1113},[4516],{"type":998,"value":4278},{"type":993,"tag":1026,"props":4518,"children":4519},{"style":1041},[4520],{"type":998,"value":4521},"(data) ",{"type":993,"tag":1026,"props":4523,"children":4524},{"style":1047},[4525],{"type":998,"value":4526},"-",{"type":993,"tag":1026,"props":4528,"children":4529},{"style":1113},[4530],{"type":998,"value":4531}," 1",{"type":993,"tag":1026,"props":4533,"children":4534},{"style":1041},[4535],{"type":998,"value":3799},{"type":993,"tag":1026,"props":4537,"children":4538},{"class":1028,"line":146},[4539,4544,4548],{"type":993,"tag":1026,"props":4540,"children":4541},{"style":1041},[4542],{"type":998,"value":4543},"    current ",{"type":993,"tag":1026,"props":4545,"children":4546},{"style":1047},[4547],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4549,"children":4550},{"style":1041},[4551],{"type":998,"value":4300},{"type":993,"tag":1026,"props":4553,"children":4554},{"class":1028,"line":155},[4555,4560,4564,4569,4573,4577],{"type":993,"tag":1026,"props":4556,"children":4557},{"style":1041},[4558],{"type":998,"value":4559},"    next_val ",{"type":993,"tag":1026,"props":4561,"children":4562},{"style":1047},[4563],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4565,"children":4566},{"style":1041},[4567],{"type":998,"value":4568}," data[i ",{"type":993,"tag":1026,"props":4570,"children":4571},{"style":1047},[4572],{"type":998,"value":3643},{"type":993,"tag":1026,"props":4574,"children":4575},{"style":1113},[4576],{"type":998,"value":4531},{"type":993,"tag":1026,"props":4578,"children":4579},{"style":1041},[4580],{"type":998,"value":4581},"]\n",{"type":993,"tag":1026,"props":4583,"children":4584},{"class":1028,"line":164},[4585,4590,4594,4599,4603,4608,4612,4617,4621],{"type":993,"tag":1026,"props":4586,"children":4587},{"style":1041},[4588],{"type":998,"value":4589},"    trend ",{"type":993,"tag":1026,"props":4591,"children":4592},{"style":1047},[4593],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4595,"children":4596},{"style":1058},[4597],{"type":998,"value":4598}," \"increasing\"",{"type":993,"tag":1026,"props":4600,"children":4601},{"style":1047},[4602],{"type":998,"value":2355},{"type":993,"tag":1026,"props":4604,"children":4605},{"style":1041},[4606],{"type":998,"value":4607}," next_val ",{"type":993,"tag":1026,"props":4609,"children":4610},{"style":1047},[4611],{"type":998,"value":2941},{"type":993,"tag":1026,"props":4613,"children":4614},{"style":1041},[4615],{"type":998,"value":4616}," current ",{"type":993,"tag":1026,"props":4618,"children":4619},{"style":1047},[4620],{"type":998,"value":3617},{"type":993,"tag":1026,"props":4622,"children":4623},{"style":1058},[4624],{"type":998,"value":4625}," \"decreasing\"\n",{"type":993,"tag":1026,"props":4627,"children":4628},{"class":1028,"line":173},[4629,4633,4637,4641,4646,4650,4655,4659,4664,4668,4673,4677,4681,4685,4690,4694,4698],{"type":993,"tag":1026,"props":4630,"children":4631},{"style":1113},[4632],{"type":998,"value":1259},{"type":993,"tag":1026,"props":4634,"children":4635},{"style":1041},[4636],{"type":998,"value":1219},{"type":993,"tag":1026,"props":4638,"children":4639},{"style":1047},[4640],{"type":998,"value":1268},{"type":993,"tag":1026,"props":4642,"children":4643},{"style":1058},[4644],{"type":998,"value":4645},"\"From ",{"type":993,"tag":1026,"props":4647,"children":4648},{"style":1113},[4649],{"type":998,"value":1278},{"type":993,"tag":1026,"props":4651,"children":4652},{"style":1041},[4653],{"type":998,"value":4654},"current",{"type":993,"tag":1026,"props":4656,"children":4657},{"style":1113},[4658],{"type":998,"value":1288},{"type":993,"tag":1026,"props":4660,"children":4661},{"style":1058},[4662],{"type":998,"value":4663}," to ",{"type":993,"tag":1026,"props":4665,"children":4666},{"style":1113},[4667],{"type":998,"value":1278},{"type":993,"tag":1026,"props":4669,"children":4670},{"style":1041},[4671],{"type":998,"value":4672},"next_val",{"type":993,"tag":1026,"props":4674,"children":4675},{"style":1113},[4676],{"type":998,"value":1288},{"type":993,"tag":1026,"props":4678,"children":4679},{"style":1058},[4680],{"type":998,"value":3702},{"type":993,"tag":1026,"props":4682,"children":4683},{"style":1113},[4684],{"type":998,"value":1278},{"type":993,"tag":1026,"props":4686,"children":4687},{"style":1041},[4688],{"type":998,"value":4689},"trend",{"type":993,"tag":1026,"props":4691,"children":4692},{"style":1113},[4693],{"type":998,"value":1288},{"type":993,"tag":1026,"props":4695,"children":4696},{"style":1058},[4697],{"type":998,"value":1293},{"type":993,"tag":1026,"props":4699,"children":4700},{"style":1041},[4701],{"type":998,"value":1094},{"type":993,"tag":1026,"props":4703,"children":4704},{"class":1028,"line":182},[4705],{"type":993,"tag":1026,"props":4706,"children":4707},{"emptyLinePlaceholder":13},[4708],{"type":998,"value":1198},{"type":993,"tag":1026,"props":4710,"children":4711},{"class":1028,"line":191},[4712],{"type":993,"tag":1026,"props":4713,"children":4714},{"style":1032},[4715],{"type":998,"value":4716},"# Reverse iteration using indices\n",{"type":993,"tag":1026,"props":4718,"children":4719},{"class":1028,"line":201},[4720,4724,4728,4732,4736,4741],{"type":993,"tag":1026,"props":4721,"children":4722},{"style":1113},[4723],{"type":998,"value":1214},{"type":993,"tag":1026,"props":4725,"children":4726},{"style":1041},[4727],{"type":998,"value":1219},{"type":993,"tag":1026,"props":4729,"children":4730},{"style":1058},[4731],{"type":998,"value":1293},{"type":993,"tag":1026,"props":4733,"children":4734},{"style":1113},[4735],{"type":998,"value":1324},{"type":993,"tag":1026,"props":4737,"children":4738},{"style":1058},[4739],{"type":998,"value":4740},"Reverse order:\"",{"type":993,"tag":1026,"props":4742,"children":4743},{"style":1041},[4744],{"type":998,"value":1094},{"type":993,"tag":1026,"props":4746,"children":4747},{"class":1028,"line":210},[4748,4752,4756,4760,4764,4768,4772,4777,4781,4785,4789,4793,4797,4801,4805,4809],{"type":993,"tag":1026,"props":4749,"children":4750},{"style":1047},[4751],{"type":998,"value":1236},{"type":993,"tag":1026,"props":4753,"children":4754},{"style":1041},[4755],{"type":998,"value":4260},{"type":993,"tag":1026,"props":4757,"children":4758},{"style":1047},[4759],{"type":998,"value":1246},{"type":993,"tag":1026,"props":4761,"children":4762},{"style":1113},[4763],{"type":998,"value":4269},{"type":993,"tag":1026,"props":4765,"children":4766},{"style":1041},[4767],{"type":998,"value":1219},{"type":993,"tag":1026,"props":4769,"children":4770},{"style":1113},[4771],{"type":998,"value":4278},{"type":993,"tag":1026,"props":4773,"children":4774},{"style":1041},[4775],{"type":998,"value":4776},"(names) ",{"type":993,"tag":1026,"props":4778,"children":4779},{"style":1047},[4780],{"type":998,"value":4526},{"type":993,"tag":1026,"props":4782,"children":4783},{"style":1113},[4784],{"type":998,"value":4531},{"type":993,"tag":1026,"props":4786,"children":4787},{"style":1041},[4788],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4790,"children":4791},{"style":1047},[4792],{"type":998,"value":4526},{"type":993,"tag":1026,"props":4794,"children":4795},{"style":1113},[4796],{"type":998,"value":1654},{"type":993,"tag":1026,"props":4798,"children":4799},{"style":1041},[4800],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4802,"children":4803},{"style":1047},[4804],{"type":998,"value":4526},{"type":993,"tag":1026,"props":4806,"children":4807},{"style":1113},[4808],{"type":998,"value":1654},{"type":993,"tag":1026,"props":4810,"children":4811},{"style":1041},[4812],{"type":998,"value":3799},{"type":993,"tag":1026,"props":4814,"children":4815},{"class":1028,"line":219},[4816,4820,4824,4828,4833,4837,4841,4845,4849,4853,4858,4862,4866],{"type":993,"tag":1026,"props":4817,"children":4818},{"style":1113},[4819],{"type":998,"value":1259},{"type":993,"tag":1026,"props":4821,"children":4822},{"style":1041},[4823],{"type":998,"value":1219},{"type":993,"tag":1026,"props":4825,"children":4826},{"style":1047},[4827],{"type":998,"value":1268},{"type":993,"tag":1026,"props":4829,"children":4830},{"style":1058},[4831],{"type":998,"value":4832},"\"Position ",{"type":993,"tag":1026,"props":4834,"children":4835},{"style":1113},[4836],{"type":998,"value":1278},{"type":993,"tag":1026,"props":4838,"children":4839},{"style":1041},[4840],{"type":998,"value":4399},{"type":993,"tag":1026,"props":4842,"children":4843},{"style":1113},[4844],{"type":998,"value":1288},{"type":993,"tag":1026,"props":4846,"children":4847},{"style":1058},[4848],{"type":998,"value":3702},{"type":993,"tag":1026,"props":4850,"children":4851},{"style":1113},[4852],{"type":998,"value":1278},{"type":993,"tag":1026,"props":4854,"children":4855},{"style":1041},[4856],{"type":998,"value":4857},"names[i]",{"type":993,"tag":1026,"props":4859,"children":4860},{"style":1113},[4861],{"type":998,"value":1288},{"type":993,"tag":1026,"props":4863,"children":4864},{"style":1058},[4865],{"type":998,"value":1293},{"type":993,"tag":1026,"props":4867,"children":4868},{"style":1041},[4869],{"type":998,"value":1094},{"type":993,"tag":1605,"props":4871,"children":4873},{"id":4872},"combining-multiple-iterables",[4874],{"type":998,"value":4875},"Combining Multiple Iterables",{"type":993,"tag":1001,"props":4877,"children":4878},{},[4879],{"type":998,"value":4880},"Simultaneous iteration over multiple tuples using zip() for parallel processing.",{"type":993,"tag":1012,"props":4882,"children":4883},{},[4884],{"type":993,"tag":1016,"props":4885,"children":4887},{"className":1018,"code":4886,"language":6,"meta":8,"style":8},"# Iterating multiple tuples together\nstudents = (\"Alice\", \"Bob\", \"Carol\", \"David\")\nsubjects = (\"Math\", \"Science\", \"English\", \"History\")\nscores = (88, 92, 85, 90)\n\nprint(\"Student performance:\")\nfor student, subject, score in zip(students, subjects, scores):\n    grade = \"A\" if score >= 90 else \"B\" if score >= 80 else \"C\"\n    print(f\"{student} - {subject}: {score} (Grade {grade})\")\n\n# Handling different lengths with zip_longest\nfrom itertools import zip_longest\n\nteachers = (\"Smith\", \"Johnson\")\nrooms = (\"101\", \"102\", \"103\", \"104\")\n\nprint(\"\\nTeacher assignments (with defaults):\")\nfor teacher, room in zip_longest(teachers, rooms, fillvalue=\"TBA\"):\n    print(f\"Room {room}: {teacher}\")\n",[4888],{"type":993,"tag":1022,"props":4889,"children":4890},{"__ignoreMap":8},[4891,4899,4946,4993,5040,5047,5067,5093,5159,5248,5255,5263,5286,5293,5327,5379,5386,5414,5454],{"type":993,"tag":1026,"props":4892,"children":4893},{"class":1028,"line":12},[4894],{"type":993,"tag":1026,"props":4895,"children":4896},{"style":1032},[4897],{"type":998,"value":4898},"# Iterating multiple tuples together\n",{"type":993,"tag":1026,"props":4900,"children":4901},{"class":1028,"line":27},[4902,4906,4910,4914,4918,4922,4926,4930,4934,4938,4942],{"type":993,"tag":1026,"props":4903,"children":4904},{"style":1041},[4905],{"type":998,"value":1146},{"type":993,"tag":1026,"props":4907,"children":4908},{"style":1047},[4909],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4911,"children":4912},{"style":1041},[4913],{"type":998,"value":1055},{"type":993,"tag":1026,"props":4915,"children":4916},{"style":1058},[4917],{"type":998,"value":1159},{"type":993,"tag":1026,"props":4919,"children":4920},{"style":1041},[4921],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4923,"children":4924},{"style":1058},[4925],{"type":998,"value":1168},{"type":993,"tag":1026,"props":4927,"children":4928},{"style":1041},[4929],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4931,"children":4932},{"style":1058},[4933],{"type":998,"value":1177},{"type":993,"tag":1026,"props":4935,"children":4936},{"style":1041},[4937],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4939,"children":4940},{"style":1058},[4941],{"type":998,"value":1186},{"type":993,"tag":1026,"props":4943,"children":4944},{"style":1041},[4945],{"type":998,"value":1094},{"type":993,"tag":1026,"props":4947,"children":4948},{"class":1028,"line":36},[4949,4953,4957,4961,4965,4969,4973,4977,4981,4985,4989],{"type":993,"tag":1026,"props":4950,"children":4951},{"style":1041},[4952],{"type":998,"value":3408},{"type":993,"tag":1026,"props":4954,"children":4955},{"style":1047},[4956],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4958,"children":4959},{"style":1041},[4960],{"type":998,"value":1055},{"type":993,"tag":1026,"props":4962,"children":4963},{"style":1058},[4964],{"type":998,"value":3421},{"type":993,"tag":1026,"props":4966,"children":4967},{"style":1041},[4968],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4970,"children":4971},{"style":1058},[4972],{"type":998,"value":3430},{"type":993,"tag":1026,"props":4974,"children":4975},{"style":1041},[4976],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4978,"children":4979},{"style":1058},[4980],{"type":998,"value":3439},{"type":993,"tag":1026,"props":4982,"children":4983},{"style":1041},[4984],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4986,"children":4987},{"style":1058},[4988],{"type":998,"value":3448},{"type":993,"tag":1026,"props":4990,"children":4991},{"style":1041},[4992],{"type":998,"value":1094},{"type":993,"tag":1026,"props":4994,"children":4995},{"class":1028,"line":45},[4996,5000,5004,5008,5012,5016,5020,5024,5028,5032,5036],{"type":993,"tag":1026,"props":4997,"children":4998},{"style":1041},[4999],{"type":998,"value":2101},{"type":993,"tag":1026,"props":5001,"children":5002},{"style":1047},[5003],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5005,"children":5006},{"style":1041},[5007],{"type":998,"value":1055},{"type":993,"tag":1026,"props":5009,"children":5010},{"style":1113},[5011],{"type":998,"value":2150},{"type":993,"tag":1026,"props":5013,"children":5014},{"style":1041},[5015],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5017,"children":5018},{"style":1113},[5019],{"type":998,"value":2123},{"type":993,"tag":1026,"props":5021,"children":5022},{"style":1041},[5023],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5025,"children":5026},{"style":1113},[5027],{"type":998,"value":2114},{"type":993,"tag":1026,"props":5029,"children":5030},{"style":1041},[5031],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5033,"children":5034},{"style":1113},[5035],{"type":998,"value":2237},{"type":993,"tag":1026,"props":5037,"children":5038},{"style":1041},[5039],{"type":998,"value":1094},{"type":993,"tag":1026,"props":5041,"children":5042},{"class":1028,"line":54},[5043],{"type":993,"tag":1026,"props":5044,"children":5045},{"emptyLinePlaceholder":13},[5046],{"type":998,"value":1198},{"type":993,"tag":1026,"props":5048,"children":5049},{"class":1028,"line":63},[5050,5054,5058,5063],{"type":993,"tag":1026,"props":5051,"children":5052},{"style":1113},[5053],{"type":998,"value":1214},{"type":993,"tag":1026,"props":5055,"children":5056},{"style":1041},[5057],{"type":998,"value":1219},{"type":993,"tag":1026,"props":5059,"children":5060},{"style":1058},[5061],{"type":998,"value":5062},"\"Student performance:\"",{"type":993,"tag":1026,"props":5064,"children":5065},{"style":1041},[5066],{"type":998,"value":1094},{"type":993,"tag":1026,"props":5068,"children":5069},{"class":1028,"line":72},[5070,5074,5079,5083,5088],{"type":993,"tag":1026,"props":5071,"children":5072},{"style":1047},[5073],{"type":998,"value":1236},{"type":993,"tag":1026,"props":5075,"children":5076},{"style":1041},[5077],{"type":998,"value":5078}," student, subject, score ",{"type":993,"tag":1026,"props":5080,"children":5081},{"style":1047},[5082],{"type":998,"value":1246},{"type":993,"tag":1026,"props":5084,"children":5085},{"style":1113},[5086],{"type":998,"value":5087}," zip",{"type":993,"tag":1026,"props":5089,"children":5090},{"style":1041},[5091],{"type":998,"value":5092},"(students, subjects, scores):\n",{"type":993,"tag":1026,"props":5094,"children":5095},{"class":1028,"line":81},[5096,5100,5104,5108,5112,5116,5120,5124,5128,5133,5137,5141,5145,5150,5154],{"type":993,"tag":1026,"props":5097,"children":5098},{"style":1041},[5099],{"type":998,"value":3579},{"type":993,"tag":1026,"props":5101,"children":5102},{"style":1047},[5103],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5105,"children":5106},{"style":1058},[5107],{"type":998,"value":2350},{"type":993,"tag":1026,"props":5109,"children":5110},{"style":1047},[5111],{"type":998,"value":2355},{"type":993,"tag":1026,"props":5113,"children":5114},{"style":1041},[5115],{"type":998,"value":2297},{"type":993,"tag":1026,"props":5117,"children":5118},{"style":1047},[5119],{"type":998,"value":2323},{"type":993,"tag":1026,"props":5121,"children":5122},{"style":1113},[5123],{"type":998,"value":2328},{"type":993,"tag":1026,"props":5125,"children":5126},{"style":1047},[5127],{"type":998,"value":2373},{"type":993,"tag":1026,"props":5129,"children":5130},{"style":1058},[5131],{"type":998,"value":5132}," \"B\"",{"type":993,"tag":1026,"props":5134,"children":5135},{"style":1047},[5136],{"type":998,"value":2355},{"type":993,"tag":1026,"props":5138,"children":5139},{"style":1041},[5140],{"type":998,"value":2297},{"type":993,"tag":1026,"props":5142,"children":5143},{"style":1047},[5144],{"type":998,"value":2323},{"type":993,"tag":1026,"props":5146,"children":5147},{"style":1113},[5148],{"type":998,"value":5149}," 80",{"type":993,"tag":1026,"props":5151,"children":5152},{"style":1047},[5153],{"type":998,"value":2373},{"type":993,"tag":1026,"props":5155,"children":5156},{"style":1058},[5157],{"type":998,"value":5158}," \"C\"\n",{"type":993,"tag":1026,"props":5160,"children":5161},{"class":1028,"line":91},[5162,5166,5170,5174,5178,5182,5186,5190,5195,5199,5203,5207,5211,5215,5219,5223,5228,5232,5236,5240,5244],{"type":993,"tag":1026,"props":5163,"children":5164},{"style":1113},[5165],{"type":998,"value":1259},{"type":993,"tag":1026,"props":5167,"children":5168},{"style":1041},[5169],{"type":998,"value":1219},{"type":993,"tag":1026,"props":5171,"children":5172},{"style":1047},[5173],{"type":998,"value":1268},{"type":993,"tag":1026,"props":5175,"children":5176},{"style":1058},[5177],{"type":998,"value":1293},{"type":993,"tag":1026,"props":5179,"children":5180},{"style":1113},[5181],{"type":998,"value":1278},{"type":993,"tag":1026,"props":5183,"children":5184},{"style":1041},[5185],{"type":998,"value":1480},{"type":993,"tag":1026,"props":5187,"children":5188},{"style":1113},[5189],{"type":998,"value":1288},{"type":993,"tag":1026,"props":5191,"children":5192},{"style":1058},[5193],{"type":998,"value":5194}," - ",{"type":993,"tag":1026,"props":5196,"children":5197},{"style":1113},[5198],{"type":998,"value":1278},{"type":993,"tag":1026,"props":5200,"children":5201},{"style":1041},[5202],{"type":998,"value":3693},{"type":993,"tag":1026,"props":5204,"children":5205},{"style":1113},[5206],{"type":998,"value":1288},{"type":993,"tag":1026,"props":5208,"children":5209},{"style":1058},[5210],{"type":998,"value":3702},{"type":993,"tag":1026,"props":5212,"children":5213},{"style":1113},[5214],{"type":998,"value":1278},{"type":993,"tag":1026,"props":5216,"children":5217},{"style":1041},[5218],{"type":998,"value":2408},{"type":993,"tag":1026,"props":5220,"children":5221},{"style":1113},[5222],{"type":998,"value":1288},{"type":993,"tag":1026,"props":5224,"children":5225},{"style":1058},[5226],{"type":998,"value":5227}," (Grade ",{"type":993,"tag":1026,"props":5229,"children":5230},{"style":1113},[5231],{"type":998,"value":1278},{"type":993,"tag":1026,"props":5233,"children":5234},{"style":1041},[5235],{"type":998,"value":2426},{"type":993,"tag":1026,"props":5237,"children":5238},{"style":1113},[5239],{"type":998,"value":1288},{"type":993,"tag":1026,"props":5241,"children":5242},{"style":1058},[5243],{"type":998,"value":2435},{"type":993,"tag":1026,"props":5245,"children":5246},{"style":1041},[5247],{"type":998,"value":1094},{"type":993,"tag":1026,"props":5249,"children":5250},{"class":1028,"line":100},[5251],{"type":993,"tag":1026,"props":5252,"children":5253},{"emptyLinePlaceholder":13},[5254],{"type":998,"value":1198},{"type":993,"tag":1026,"props":5256,"children":5257},{"class":1028,"line":109},[5258],{"type":993,"tag":1026,"props":5259,"children":5260},{"style":1032},[5261],{"type":998,"value":5262},"# Handling different lengths with zip_longest\n",{"type":993,"tag":1026,"props":5264,"children":5265},{"class":1028,"line":118},[5266,5271,5276,5281],{"type":993,"tag":1026,"props":5267,"children":5268},{"style":1047},[5269],{"type":998,"value":5270},"from",{"type":993,"tag":1026,"props":5272,"children":5273},{"style":1041},[5274],{"type":998,"value":5275}," itertools ",{"type":993,"tag":1026,"props":5277,"children":5278},{"style":1047},[5279],{"type":998,"value":5280},"import",{"type":993,"tag":1026,"props":5282,"children":5283},{"style":1041},[5284],{"type":998,"value":5285}," zip_longest\n",{"type":993,"tag":1026,"props":5287,"children":5288},{"class":1028,"line":127},[5289],{"type":993,"tag":1026,"props":5290,"children":5291},{"emptyLinePlaceholder":13},[5292],{"type":998,"value":1198},{"type":993,"tag":1026,"props":5294,"children":5295},{"class":1028,"line":136},[5296,5301,5305,5309,5314,5318,5323],{"type":993,"tag":1026,"props":5297,"children":5298},{"style":1041},[5299],{"type":998,"value":5300},"teachers ",{"type":993,"tag":1026,"props":5302,"children":5303},{"style":1047},[5304],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5306,"children":5307},{"style":1041},[5308],{"type":998,"value":1055},{"type":993,"tag":1026,"props":5310,"children":5311},{"style":1058},[5312],{"type":998,"value":5313},"\"Smith\"",{"type":993,"tag":1026,"props":5315,"children":5316},{"style":1041},[5317],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5319,"children":5320},{"style":1058},[5321],{"type":998,"value":5322},"\"Johnson\"",{"type":993,"tag":1026,"props":5324,"children":5325},{"style":1041},[5326],{"type":998,"value":1094},{"type":993,"tag":1026,"props":5328,"children":5329},{"class":1028,"line":146},[5330,5335,5339,5343,5348,5352,5357,5361,5366,5370,5375],{"type":993,"tag":1026,"props":5331,"children":5332},{"style":1041},[5333],{"type":998,"value":5334},"rooms ",{"type":993,"tag":1026,"props":5336,"children":5337},{"style":1047},[5338],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5340,"children":5341},{"style":1041},[5342],{"type":998,"value":1055},{"type":993,"tag":1026,"props":5344,"children":5345},{"style":1058},[5346],{"type":998,"value":5347},"\"101\"",{"type":993,"tag":1026,"props":5349,"children":5350},{"style":1041},[5351],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5353,"children":5354},{"style":1058},[5355],{"type":998,"value":5356},"\"102\"",{"type":993,"tag":1026,"props":5358,"children":5359},{"style":1041},[5360],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5362,"children":5363},{"style":1058},[5364],{"type":998,"value":5365},"\"103\"",{"type":993,"tag":1026,"props":5367,"children":5368},{"style":1041},[5369],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5371,"children":5372},{"style":1058},[5373],{"type":998,"value":5374},"\"104\"",{"type":993,"tag":1026,"props":5376,"children":5377},{"style":1041},[5378],{"type":998,"value":1094},{"type":993,"tag":1026,"props":5380,"children":5381},{"class":1028,"line":155},[5382],{"type":993,"tag":1026,"props":5383,"children":5384},{"emptyLinePlaceholder":13},[5385],{"type":998,"value":1198},{"type":993,"tag":1026,"props":5387,"children":5388},{"class":1028,"line":164},[5389,5393,5397,5401,5405,5410],{"type":993,"tag":1026,"props":5390,"children":5391},{"style":1113},[5392],{"type":998,"value":1214},{"type":993,"tag":1026,"props":5394,"children":5395},{"style":1041},[5396],{"type":998,"value":1219},{"type":993,"tag":1026,"props":5398,"children":5399},{"style":1058},[5400],{"type":998,"value":1293},{"type":993,"tag":1026,"props":5402,"children":5403},{"style":1113},[5404],{"type":998,"value":1324},{"type":993,"tag":1026,"props":5406,"children":5407},{"style":1058},[5408],{"type":998,"value":5409},"Teacher assignments (with defaults):\"",{"type":993,"tag":1026,"props":5411,"children":5412},{"style":1041},[5413],{"type":998,"value":1094},{"type":993,"tag":1026,"props":5415,"children":5416},{"class":1028,"line":173},[5417,5421,5426,5430,5435,5441,5445,5450],{"type":993,"tag":1026,"props":5418,"children":5419},{"style":1047},[5420],{"type":998,"value":1236},{"type":993,"tag":1026,"props":5422,"children":5423},{"style":1041},[5424],{"type":998,"value":5425}," teacher, room ",{"type":993,"tag":1026,"props":5427,"children":5428},{"style":1047},[5429],{"type":998,"value":1246},{"type":993,"tag":1026,"props":5431,"children":5432},{"style":1041},[5433],{"type":998,"value":5434}," zip_longest(teachers, rooms, ",{"type":993,"tag":1026,"props":5436,"children":5438},{"style":5437},"--shiki-default:#E36209;--shiki-app-dark-mode:#FFAB70",[5439],{"type":998,"value":5440},"fillvalue",{"type":993,"tag":1026,"props":5442,"children":5443},{"style":1047},[5444],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5446,"children":5447},{"style":1058},[5448],{"type":998,"value":5449},"\"TBA\"",{"type":993,"tag":1026,"props":5451,"children":5452},{"style":1041},[5453],{"type":998,"value":3799},{"type":993,"tag":1026,"props":5455,"children":5456},{"class":1028,"line":182},[5457,5461,5465,5469,5474,5478,5483,5487,5491,5495,5500,5504,5508],{"type":993,"tag":1026,"props":5458,"children":5459},{"style":1113},[5460],{"type":998,"value":1259},{"type":993,"tag":1026,"props":5462,"children":5463},{"style":1041},[5464],{"type":998,"value":1219},{"type":993,"tag":1026,"props":5466,"children":5467},{"style":1047},[5468],{"type":998,"value":1268},{"type":993,"tag":1026,"props":5470,"children":5471},{"style":1058},[5472],{"type":998,"value":5473},"\"Room ",{"type":993,"tag":1026,"props":5475,"children":5476},{"style":1113},[5477],{"type":998,"value":1278},{"type":993,"tag":1026,"props":5479,"children":5480},{"style":1041},[5481],{"type":998,"value":5482},"room",{"type":993,"tag":1026,"props":5484,"children":5485},{"style":1113},[5486],{"type":998,"value":1288},{"type":993,"tag":1026,"props":5488,"children":5489},{"style":1058},[5490],{"type":998,"value":3702},{"type":993,"tag":1026,"props":5492,"children":5493},{"style":1113},[5494],{"type":998,"value":1278},{"type":993,"tag":1026,"props":5496,"children":5497},{"style":1041},[5498],{"type":998,"value":5499},"teacher",{"type":993,"tag":1026,"props":5501,"children":5502},{"style":1113},[5503],{"type":998,"value":1288},{"type":993,"tag":1026,"props":5505,"children":5506},{"style":1058},[5507],{"type":998,"value":1293},{"type":993,"tag":1026,"props":5509,"children":5510},{"style":1041},[5511],{"type":998,"value":1094},{"type":993,"tag":5513,"props":5514,"children":5516},"content-exercise",{":widget-view":5515,"category":6,"id":419},"true",[],{"type":993,"tag":1494,"props":5518,"children":5520},{"id":5519},"nested-tuple-iteration",[5521],{"type":998,"value":5522},"🔄 Nested Tuple Iteration",{"type":993,"tag":1001,"props":5524,"children":5525},{},[5526],{"type":998,"value":5527},"When tuples contain other tuples or complex structures, you need nested iteration patterns to access all elements systematically.",{"type":993,"tag":1506,"props":5529,"children":5531},{"emoji":1508,"title":5530,"type":1510},"Nested Iteration Strategies",[5532,5540,5563,5571,5612,5620],{"type":993,"tag":1001,"props":5533,"children":5534},{},[5535],{"type":993,"tag":1516,"props":5536,"children":5537},{},[5538],{"type":998,"value":5539},"Iteration Approaches:",{"type":993,"tag":1522,"props":5541,"children":5542},{},[5543,5548,5553,5558],{"type":993,"tag":1526,"props":5544,"children":5545},{},[5546],{"type":998,"value":5547},"Nested loops for multi-dimensional data",{"type":993,"tag":1526,"props":5549,"children":5550},{},[5551],{"type":998,"value":5552},"Tuple unpacking within loops",{"type":993,"tag":1526,"props":5554,"children":5555},{},[5556],{"type":998,"value":5557},"Flattening for single-level processing",{"type":993,"tag":1526,"props":5559,"children":5560},{},[5561],{"type":998,"value":5562},"Recursive patterns for deep nesting",{"type":993,"tag":1001,"props":5564,"children":5565},{},[5566],{"type":993,"tag":1516,"props":5567,"children":5568},{},[5569],{"type":998,"value":5570},"Common Structures:",{"type":993,"tag":1522,"props":5572,"children":5573},{},[5574,5585,5596,5607],{"type":993,"tag":1526,"props":5575,"children":5576},{},[5577,5579],{"type":998,"value":5578},"Coordinates: ",{"type":993,"tag":1022,"props":5580,"children":5582},{"className":5581},[],[5583],{"type":998,"value":5584},"((x1, y1), (x2, y2))",{"type":993,"tag":1526,"props":5586,"children":5587},{},[5588,5590],{"type":998,"value":5589},"Records: ",{"type":993,"tag":1022,"props":5591,"children":5593},{"className":5592},[],[5594],{"type":998,"value":5595},"((name, age), (name, age))",{"type":993,"tag":1526,"props":5597,"children":5598},{},[5599,5601],{"type":998,"value":5600},"Matrices: ",{"type":993,"tag":1022,"props":5602,"children":5604},{"className":5603},[],[5605],{"type":998,"value":5606},"((row1), (row2), (row3))",{"type":993,"tag":1526,"props":5608,"children":5609},{},[5610],{"type":998,"value":5611},"Hierarchical data: nested tuples of varying depth",{"type":993,"tag":1001,"props":5613,"children":5614},{},[5615],{"type":993,"tag":1516,"props":5616,"children":5617},{},[5618],{"type":998,"value":5619},"Design Choices:",{"type":993,"tag":1522,"props":5621,"children":5622},{},[5623,5628],{"type":993,"tag":1526,"props":5624,"children":5625},{},[5626],{"type":998,"value":5627},"Choose between nested loops vs unpacking based on clarity",{"type":993,"tag":1526,"props":5629,"children":5630},{},[5631],{"type":998,"value":5632},"Consider flattening for uniform processing",{"type":993,"tag":1605,"props":5634,"children":5636},{"id":5635},"processing-nested-structures",[5637],{"type":998,"value":5638},"Processing Nested Structures",{"type":993,"tag":1001,"props":5640,"children":5641},{},[5642],{"type":998,"value":5643},"Systematic iteration through nested tuple structures using loops and unpacking.",{"type":993,"tag":1012,"props":5645,"children":5646},{},[5647],{"type":993,"tag":1016,"props":5648,"children":5650},{"className":1018,"code":5649,"language":6,"meta":8,"style":8},"# Nested tuple iteration\npoints = ((10, 20), (30, 40), (50, 60))\nstudent_records = (\n    (\"Alice\", 20, (\"Math\", \"Science\")),\n    (\"Bob\", 19, (\"English\", \"History\")),\n    (\"Carol\", 21, (\"Art\", \"Music\"))\n)\n\n# Iterate with unpacking\nprint(\"Point coordinates:\")\nfor x, y in points:\n    distance = (x**2 + y**2)**0.5\n    print(f\"Point ({x}, {y}), distance from origin: {distance:.1f}\")\n\n# Nested records with unpacking\nprint(\"\\nStudent information:\")\nfor name, age, subjects in student_records:\n    print(f\"{name} (age {age}):\")\n    for subject in subjects:\n        print(f\"  - {subject}\")\n",[5651],{"type":993,"tag":1022,"props":5652,"children":5653},{"__ignoreMap":8},[5654,5662,5731,5748,5790,5830,5870,5877,5884,5892,5912,5933,5991,6071,6078,6086,6114,6135,6194,6214],{"type":993,"tag":1026,"props":5655,"children":5656},{"class":1028,"line":12},[5657],{"type":993,"tag":1026,"props":5658,"children":5659},{"style":1032},[5660],{"type":998,"value":5661},"# Nested tuple iteration\n",{"type":993,"tag":1026,"props":5663,"children":5664},{"class":1028,"line":27},[5665,5670,5674,5679,5683,5687,5691,5696,5700,5704,5708,5712,5717,5721,5726],{"type":993,"tag":1026,"props":5666,"children":5667},{"style":1041},[5668],{"type":998,"value":5669},"points ",{"type":993,"tag":1026,"props":5671,"children":5672},{"style":1047},[5673],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5675,"children":5676},{"style":1041},[5677],{"type":998,"value":5678}," ((",{"type":993,"tag":1026,"props":5680,"children":5681},{"style":1113},[5682],{"type":998,"value":1116},{"type":993,"tag":1026,"props":5684,"children":5685},{"style":1041},[5686],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5688,"children":5689},{"style":1113},[5690],{"type":998,"value":1125},{"type":993,"tag":1026,"props":5692,"children":5693},{"style":1041},[5694],{"type":998,"value":5695},"), (",{"type":993,"tag":1026,"props":5697,"children":5698},{"style":1113},[5699],{"type":998,"value":1134},{"type":993,"tag":1026,"props":5701,"children":5702},{"style":1041},[5703],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5705,"children":5706},{"style":1113},[5707],{"type":998,"value":4160},{"type":993,"tag":1026,"props":5709,"children":5710},{"style":1041},[5711],{"type":998,"value":5695},{"type":993,"tag":1026,"props":5713,"children":5714},{"style":1113},[5715],{"type":998,"value":5716},"50",{"type":993,"tag":1026,"props":5718,"children":5719},{"style":1041},[5720],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5722,"children":5723},{"style":1113},[5724],{"type":998,"value":5725},"60",{"type":993,"tag":1026,"props":5727,"children":5728},{"style":1041},[5729],{"type":998,"value":5730},"))\n",{"type":993,"tag":1026,"props":5732,"children":5733},{"class":1028,"line":36},[5734,5739,5743],{"type":993,"tag":1026,"props":5735,"children":5736},{"style":1041},[5737],{"type":998,"value":5738},"student_records ",{"type":993,"tag":1026,"props":5740,"children":5741},{"style":1047},[5742],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5744,"children":5745},{"style":1041},[5746],{"type":998,"value":5747}," (\n",{"type":993,"tag":1026,"props":5749,"children":5750},{"class":1028,"line":45},[5751,5756,5760,5764,5768,5773,5777,5781,5785],{"type":993,"tag":1026,"props":5752,"children":5753},{"style":1041},[5754],{"type":998,"value":5755},"    (",{"type":993,"tag":1026,"props":5757,"children":5758},{"style":1058},[5759],{"type":998,"value":1159},{"type":993,"tag":1026,"props":5761,"children":5762},{"style":1041},[5763],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5765,"children":5766},{"style":1113},[5767],{"type":998,"value":1125},{"type":993,"tag":1026,"props":5769,"children":5770},{"style":1041},[5771],{"type":998,"value":5772},", (",{"type":993,"tag":1026,"props":5774,"children":5775},{"style":1058},[5776],{"type":998,"value":3421},{"type":993,"tag":1026,"props":5778,"children":5779},{"style":1041},[5780],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5782,"children":5783},{"style":1058},[5784],{"type":998,"value":3430},{"type":993,"tag":1026,"props":5786,"children":5787},{"style":1041},[5788],{"type":998,"value":5789},")),\n",{"type":993,"tag":1026,"props":5791,"children":5792},{"class":1028,"line":54},[5793,5797,5801,5805,5810,5814,5818,5822,5826],{"type":993,"tag":1026,"props":5794,"children":5795},{"style":1041},[5796],{"type":998,"value":5755},{"type":993,"tag":1026,"props":5798,"children":5799},{"style":1058},[5800],{"type":998,"value":1168},{"type":993,"tag":1026,"props":5802,"children":5803},{"style":1041},[5804],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5806,"children":5807},{"style":1113},[5808],{"type":998,"value":5809},"19",{"type":993,"tag":1026,"props":5811,"children":5812},{"style":1041},[5813],{"type":998,"value":5772},{"type":993,"tag":1026,"props":5815,"children":5816},{"style":1058},[5817],{"type":998,"value":3439},{"type":993,"tag":1026,"props":5819,"children":5820},{"style":1041},[5821],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5823,"children":5824},{"style":1058},[5825],{"type":998,"value":3448},{"type":993,"tag":1026,"props":5827,"children":5828},{"style":1041},[5829],{"type":998,"value":5789},{"type":993,"tag":1026,"props":5831,"children":5832},{"class":1028,"line":63},[5833,5837,5841,5845,5850,5854,5858,5862,5866],{"type":993,"tag":1026,"props":5834,"children":5835},{"style":1041},[5836],{"type":998,"value":5755},{"type":993,"tag":1026,"props":5838,"children":5839},{"style":1058},[5840],{"type":998,"value":1177},{"type":993,"tag":1026,"props":5842,"children":5843},{"style":1041},[5844],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5846,"children":5847},{"style":1113},[5848],{"type":998,"value":5849},"21",{"type":993,"tag":1026,"props":5851,"children":5852},{"style":1041},[5853],{"type":998,"value":5772},{"type":993,"tag":1026,"props":5855,"children":5856},{"style":1058},[5857],{"type":998,"value":3457},{"type":993,"tag":1026,"props":5859,"children":5860},{"style":1041},[5861],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5863,"children":5864},{"style":1058},[5865],{"type":998,"value":3908},{"type":993,"tag":1026,"props":5867,"children":5868},{"style":1041},[5869],{"type":998,"value":5730},{"type":993,"tag":1026,"props":5871,"children":5872},{"class":1028,"line":72},[5873],{"type":993,"tag":1026,"props":5874,"children":5875},{"style":1041},[5876],{"type":998,"value":1094},{"type":993,"tag":1026,"props":5878,"children":5879},{"class":1028,"line":81},[5880],{"type":993,"tag":1026,"props":5881,"children":5882},{"emptyLinePlaceholder":13},[5883],{"type":998,"value":1198},{"type":993,"tag":1026,"props":5885,"children":5886},{"class":1028,"line":91},[5887],{"type":993,"tag":1026,"props":5888,"children":5889},{"style":1032},[5890],{"type":998,"value":5891},"# Iterate with unpacking\n",{"type":993,"tag":1026,"props":5893,"children":5894},{"class":1028,"line":100},[5895,5899,5903,5908],{"type":993,"tag":1026,"props":5896,"children":5897},{"style":1113},[5898],{"type":998,"value":1214},{"type":993,"tag":1026,"props":5900,"children":5901},{"style":1041},[5902],{"type":998,"value":1219},{"type":993,"tag":1026,"props":5904,"children":5905},{"style":1058},[5906],{"type":998,"value":5907},"\"Point coordinates:\"",{"type":993,"tag":1026,"props":5909,"children":5910},{"style":1041},[5911],{"type":998,"value":1094},{"type":993,"tag":1026,"props":5913,"children":5914},{"class":1028,"line":109},[5915,5919,5924,5928],{"type":993,"tag":1026,"props":5916,"children":5917},{"style":1047},[5918],{"type":998,"value":1236},{"type":993,"tag":1026,"props":5920,"children":5921},{"style":1041},[5922],{"type":998,"value":5923}," x, y ",{"type":993,"tag":1026,"props":5925,"children":5926},{"style":1047},[5927],{"type":998,"value":1246},{"type":993,"tag":1026,"props":5929,"children":5930},{"style":1041},[5931],{"type":998,"value":5932}," points:\n",{"type":993,"tag":1026,"props":5934,"children":5935},{"class":1028,"line":118},[5936,5941,5945,5950,5954,5959,5964,5969,5973,5977,5982,5986],{"type":993,"tag":1026,"props":5937,"children":5938},{"style":1041},[5939],{"type":998,"value":5940},"    distance ",{"type":993,"tag":1026,"props":5942,"children":5943},{"style":1047},[5944],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5946,"children":5947},{"style":1041},[5948],{"type":998,"value":5949}," (x",{"type":993,"tag":1026,"props":5951,"children":5952},{"style":1047},[5953],{"type":998,"value":1814},{"type":993,"tag":1026,"props":5955,"children":5956},{"style":1113},[5957],{"type":998,"value":5958},"2",{"type":993,"tag":1026,"props":5960,"children":5961},{"style":1047},[5962],{"type":998,"value":5963}," +",{"type":993,"tag":1026,"props":5965,"children":5966},{"style":1041},[5967],{"type":998,"value":5968}," y",{"type":993,"tag":1026,"props":5970,"children":5971},{"style":1047},[5972],{"type":998,"value":1814},{"type":993,"tag":1026,"props":5974,"children":5975},{"style":1113},[5976],{"type":998,"value":5958},{"type":993,"tag":1026,"props":5978,"children":5979},{"style":1041},[5980],{"type":998,"value":5981},")",{"type":993,"tag":1026,"props":5983,"children":5984},{"style":1047},[5985],{"type":998,"value":1814},{"type":993,"tag":1026,"props":5987,"children":5988},{"style":1113},[5989],{"type":998,"value":5990},"0.5\n",{"type":993,"tag":1026,"props":5992,"children":5993},{"class":1028,"line":127},[5994,5998,6002,6006,6011,6015,6020,6024,6028,6032,6037,6041,6046,6050,6055,6059,6063,6067],{"type":993,"tag":1026,"props":5995,"children":5996},{"style":1113},[5997],{"type":998,"value":1259},{"type":993,"tag":1026,"props":5999,"children":6000},{"style":1041},[6001],{"type":998,"value":1219},{"type":993,"tag":1026,"props":6003,"children":6004},{"style":1047},[6005],{"type":998,"value":1268},{"type":993,"tag":1026,"props":6007,"children":6008},{"style":1058},[6009],{"type":998,"value":6010},"\"Point (",{"type":993,"tag":1026,"props":6012,"children":6013},{"style":1113},[6014],{"type":998,"value":1278},{"type":993,"tag":1026,"props":6016,"children":6017},{"style":1041},[6018],{"type":998,"value":6019},"x",{"type":993,"tag":1026,"props":6021,"children":6022},{"style":1113},[6023],{"type":998,"value":1288},{"type":993,"tag":1026,"props":6025,"children":6026},{"style":1058},[6027],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6029,"children":6030},{"style":1113},[6031],{"type":998,"value":1278},{"type":993,"tag":1026,"props":6033,"children":6034},{"style":1041},[6035],{"type":998,"value":6036},"y",{"type":993,"tag":1026,"props":6038,"children":6039},{"style":1113},[6040],{"type":998,"value":1288},{"type":993,"tag":1026,"props":6042,"children":6043},{"style":1058},[6044],{"type":998,"value":6045},"), distance from origin: ",{"type":993,"tag":1026,"props":6047,"children":6048},{"style":1113},[6049],{"type":998,"value":1278},{"type":993,"tag":1026,"props":6051,"children":6052},{"style":1041},[6053],{"type":998,"value":6054},"distance",{"type":993,"tag":1026,"props":6056,"children":6057},{"style":1047},[6058],{"type":998,"value":1871},{"type":993,"tag":1026,"props":6060,"children":6061},{"style":1113},[6062],{"type":998,"value":1288},{"type":993,"tag":1026,"props":6064,"children":6065},{"style":1058},[6066],{"type":998,"value":1293},{"type":993,"tag":1026,"props":6068,"children":6069},{"style":1041},[6070],{"type":998,"value":1094},{"type":993,"tag":1026,"props":6072,"children":6073},{"class":1028,"line":136},[6074],{"type":993,"tag":1026,"props":6075,"children":6076},{"emptyLinePlaceholder":13},[6077],{"type":998,"value":1198},{"type":993,"tag":1026,"props":6079,"children":6080},{"class":1028,"line":146},[6081],{"type":993,"tag":1026,"props":6082,"children":6083},{"style":1032},[6084],{"type":998,"value":6085},"# Nested records with unpacking\n",{"type":993,"tag":1026,"props":6087,"children":6088},{"class":1028,"line":155},[6089,6093,6097,6101,6105,6110],{"type":993,"tag":1026,"props":6090,"children":6091},{"style":1113},[6092],{"type":998,"value":1214},{"type":993,"tag":1026,"props":6094,"children":6095},{"style":1041},[6096],{"type":998,"value":1219},{"type":993,"tag":1026,"props":6098,"children":6099},{"style":1058},[6100],{"type":998,"value":1293},{"type":993,"tag":1026,"props":6102,"children":6103},{"style":1113},[6104],{"type":998,"value":1324},{"type":993,"tag":1026,"props":6106,"children":6107},{"style":1058},[6108],{"type":998,"value":6109},"Student information:\"",{"type":993,"tag":1026,"props":6111,"children":6112},{"style":1041},[6113],{"type":998,"value":1094},{"type":993,"tag":1026,"props":6115,"children":6116},{"class":1028,"line":164},[6117,6121,6126,6130],{"type":993,"tag":1026,"props":6118,"children":6119},{"style":1047},[6120],{"type":998,"value":1236},{"type":993,"tag":1026,"props":6122,"children":6123},{"style":1041},[6124],{"type":998,"value":6125}," name, age, subjects ",{"type":993,"tag":1026,"props":6127,"children":6128},{"style":1047},[6129],{"type":998,"value":1246},{"type":993,"tag":1026,"props":6131,"children":6132},{"style":1041},[6133],{"type":998,"value":6134}," student_records:\n",{"type":993,"tag":1026,"props":6136,"children":6137},{"class":1028,"line":173},[6138,6142,6146,6150,6154,6158,6163,6167,6172,6176,6181,6185,6190],{"type":993,"tag":1026,"props":6139,"children":6140},{"style":1113},[6141],{"type":998,"value":1259},{"type":993,"tag":1026,"props":6143,"children":6144},{"style":1041},[6145],{"type":998,"value":1219},{"type":993,"tag":1026,"props":6147,"children":6148},{"style":1047},[6149],{"type":998,"value":1268},{"type":993,"tag":1026,"props":6151,"children":6152},{"style":1058},[6153],{"type":998,"value":1293},{"type":993,"tag":1026,"props":6155,"children":6156},{"style":1113},[6157],{"type":998,"value":1278},{"type":993,"tag":1026,"props":6159,"children":6160},{"style":1041},[6161],{"type":998,"value":6162},"name",{"type":993,"tag":1026,"props":6164,"children":6165},{"style":1113},[6166],{"type":998,"value":1288},{"type":993,"tag":1026,"props":6168,"children":6169},{"style":1058},[6170],{"type":998,"value":6171}," (age ",{"type":993,"tag":1026,"props":6173,"children":6174},{"style":1113},[6175],{"type":998,"value":1278},{"type":993,"tag":1026,"props":6177,"children":6178},{"style":1041},[6179],{"type":998,"value":6180},"age",{"type":993,"tag":1026,"props":6182,"children":6183},{"style":1113},[6184],{"type":998,"value":1288},{"type":993,"tag":1026,"props":6186,"children":6187},{"style":1058},[6188],{"type":998,"value":6189},"):\"",{"type":993,"tag":1026,"props":6191,"children":6192},{"style":1041},[6193],{"type":998,"value":1094},{"type":993,"tag":1026,"props":6195,"children":6196},{"class":1028,"line":182},[6197,6202,6206,6210],{"type":993,"tag":1026,"props":6198,"children":6199},{"style":1047},[6200],{"type":998,"value":6201},"    for",{"type":993,"tag":1026,"props":6203,"children":6204},{"style":1041},[6205],{"type":998,"value":3924},{"type":993,"tag":1026,"props":6207,"children":6208},{"style":1047},[6209],{"type":998,"value":1246},{"type":993,"tag":1026,"props":6211,"children":6212},{"style":1041},[6213],{"type":998,"value":3953},{"type":993,"tag":1026,"props":6215,"children":6216},{"class":1028,"line":191},[6217,6221,6225,6229,6234,6238,6242,6246,6250],{"type":993,"tag":1026,"props":6218,"children":6219},{"style":1113},[6220],{"type":998,"value":2386},{"type":993,"tag":1026,"props":6222,"children":6223},{"style":1041},[6224],{"type":998,"value":1219},{"type":993,"tag":1026,"props":6226,"children":6227},{"style":1047},[6228],{"type":998,"value":1268},{"type":993,"tag":1026,"props":6230,"children":6231},{"style":1058},[6232],{"type":998,"value":6233},"\"  - ",{"type":993,"tag":1026,"props":6235,"children":6236},{"style":1113},[6237],{"type":998,"value":1278},{"type":993,"tag":1026,"props":6239,"children":6240},{"style":1041},[6241],{"type":998,"value":3693},{"type":993,"tag":1026,"props":6243,"children":6244},{"style":1113},[6245],{"type":998,"value":1288},{"type":993,"tag":1026,"props":6247,"children":6248},{"style":1058},[6249],{"type":998,"value":1293},{"type":993,"tag":1026,"props":6251,"children":6252},{"style":1041},[6253],{"type":998,"value":1094},{"type":993,"tag":1605,"props":6255,"children":6257},{"id":6256},"matrix-style-iteration",[6258],{"type":998,"value":6259},"Matrix-Style Iteration",{"type":993,"tag":1001,"props":6261,"children":6262},{},[6263],{"type":998,"value":6264},"Two-dimensional data processing using nested loops for row and column access.",{"type":993,"tag":1012,"props":6266,"children":6267},{},[6268],{"type":993,"tag":1016,"props":6269,"children":6271},{"className":1018,"code":6270,"language":6,"meta":8,"style":8},"# Matrix-style iteration\nmatrix = (\n    (1, 2, 3),\n    (4, 5, 6),\n    (7, 8, 9)\n)\n\ngame_board = (\n    (\"X\", \"O\", \"X\"),\n    (\"O\", \"X\", \"O\"),\n    (\"X\", \"O\", \"X\")\n)\n\n# Iterate through matrix elements\nprint(\"Matrix elements:\")\nfor row_index, row in enumerate(matrix):\n    for col_index, value in enumerate(row):\n        print(f\"Position ({row_index}, {col_index}): {value}\")\n\n# Process game board\nprint(\"\\nGame board:\")\nfor row_num, row in enumerate(game_board):\n    row_str = \" | \".join(row)\n    print(f\"Row {row_num + 1}: {row_str}\")\n\n# Calculate matrix sum\ntotal = 0\nfor row in matrix:\n    for value in row:\n        total += value\nprint(f\"\\nMatrix sum: {total}\")\n",[6272],{"type":993,"tag":1022,"props":6273,"children":6274},{"__ignoreMap":8},[6275,6283,6299,6332,6365,6398,6405,6412,6428,6461,6492,6523,6530,6537,6545,6565,6590,6615,6689,6696,6704,6732,6757,6779,6842,6849,6857,6873,6894,6915,6932],{"type":993,"tag":1026,"props":6276,"children":6277},{"class":1028,"line":12},[6278],{"type":993,"tag":1026,"props":6279,"children":6280},{"style":1032},[6281],{"type":998,"value":6282},"# Matrix-style iteration\n",{"type":993,"tag":1026,"props":6284,"children":6285},{"class":1028,"line":27},[6286,6291,6295],{"type":993,"tag":1026,"props":6287,"children":6288},{"style":1041},[6289],{"type":998,"value":6290},"matrix ",{"type":993,"tag":1026,"props":6292,"children":6293},{"style":1047},[6294],{"type":998,"value":1050},{"type":993,"tag":1026,"props":6296,"children":6297},{"style":1041},[6298],{"type":998,"value":5747},{"type":993,"tag":1026,"props":6300,"children":6301},{"class":1028,"line":36},[6302,6306,6310,6314,6318,6322,6327],{"type":993,"tag":1026,"props":6303,"children":6304},{"style":1041},[6305],{"type":998,"value":5755},{"type":993,"tag":1026,"props":6307,"children":6308},{"style":1113},[6309],{"type":998,"value":1654},{"type":993,"tag":1026,"props":6311,"children":6312},{"style":1041},[6313],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6315,"children":6316},{"style":1113},[6317],{"type":998,"value":5958},{"type":993,"tag":1026,"props":6319,"children":6320},{"style":1041},[6321],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6323,"children":6324},{"style":1113},[6325],{"type":998,"value":6326},"3",{"type":993,"tag":1026,"props":6328,"children":6329},{"style":1041},[6330],{"type":998,"value":6331},"),\n",{"type":993,"tag":1026,"props":6333,"children":6334},{"class":1028,"line":45},[6335,6339,6343,6347,6352,6356,6361],{"type":993,"tag":1026,"props":6336,"children":6337},{"style":1041},[6338],{"type":998,"value":5755},{"type":993,"tag":1026,"props":6340,"children":6341},{"style":1113},[6342],{"type":998,"value":1663},{"type":993,"tag":1026,"props":6344,"children":6345},{"style":1041},[6346],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6348,"children":6349},{"style":1113},[6350],{"type":998,"value":6351},"5",{"type":993,"tag":1026,"props":6353,"children":6354},{"style":1041},[6355],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6357,"children":6358},{"style":1113},[6359],{"type":998,"value":6360},"6",{"type":993,"tag":1026,"props":6362,"children":6363},{"style":1041},[6364],{"type":998,"value":6331},{"type":993,"tag":1026,"props":6366,"children":6367},{"class":1028,"line":54},[6368,6372,6377,6381,6386,6390,6394],{"type":993,"tag":1026,"props":6369,"children":6370},{"style":1041},[6371],{"type":998,"value":5755},{"type":993,"tag":1026,"props":6373,"children":6374},{"style":1113},[6375],{"type":998,"value":6376},"7",{"type":993,"tag":1026,"props":6378,"children":6379},{"style":1041},[6380],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6382,"children":6383},{"style":1113},[6384],{"type":998,"value":6385},"8",{"type":993,"tag":1026,"props":6387,"children":6388},{"style":1041},[6389],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6391,"children":6392},{"style":1113},[6393],{"type":998,"value":1672},{"type":993,"tag":1026,"props":6395,"children":6396},{"style":1041},[6397],{"type":998,"value":1094},{"type":993,"tag":1026,"props":6399,"children":6400},{"class":1028,"line":63},[6401],{"type":993,"tag":1026,"props":6402,"children":6403},{"style":1041},[6404],{"type":998,"value":1094},{"type":993,"tag":1026,"props":6406,"children":6407},{"class":1028,"line":72},[6408],{"type":993,"tag":1026,"props":6409,"children":6410},{"emptyLinePlaceholder":13},[6411],{"type":998,"value":1198},{"type":993,"tag":1026,"props":6413,"children":6414},{"class":1028,"line":81},[6415,6420,6424],{"type":993,"tag":1026,"props":6416,"children":6417},{"style":1041},[6418],{"type":998,"value":6419},"game_board ",{"type":993,"tag":1026,"props":6421,"children":6422},{"style":1047},[6423],{"type":998,"value":1050},{"type":993,"tag":1026,"props":6425,"children":6426},{"style":1041},[6427],{"type":998,"value":5747},{"type":993,"tag":1026,"props":6429,"children":6430},{"class":1028,"line":91},[6431,6435,6440,6444,6449,6453,6457],{"type":993,"tag":1026,"props":6432,"children":6433},{"style":1041},[6434],{"type":998,"value":5755},{"type":993,"tag":1026,"props":6436,"children":6437},{"style":1058},[6438],{"type":998,"value":6439},"\"X\"",{"type":993,"tag":1026,"props":6441,"children":6442},{"style":1041},[6443],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6445,"children":6446},{"style":1058},[6447],{"type":998,"value":6448},"\"O\"",{"type":993,"tag":1026,"props":6450,"children":6451},{"style":1041},[6452],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6454,"children":6455},{"style":1058},[6456],{"type":998,"value":6439},{"type":993,"tag":1026,"props":6458,"children":6459},{"style":1041},[6460],{"type":998,"value":6331},{"type":993,"tag":1026,"props":6462,"children":6463},{"class":1028,"line":100},[6464,6468,6472,6476,6480,6484,6488],{"type":993,"tag":1026,"props":6465,"children":6466},{"style":1041},[6467],{"type":998,"value":5755},{"type":993,"tag":1026,"props":6469,"children":6470},{"style":1058},[6471],{"type":998,"value":6448},{"type":993,"tag":1026,"props":6473,"children":6474},{"style":1041},[6475],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6477,"children":6478},{"style":1058},[6479],{"type":998,"value":6439},{"type":993,"tag":1026,"props":6481,"children":6482},{"style":1041},[6483],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6485,"children":6486},{"style":1058},[6487],{"type":998,"value":6448},{"type":993,"tag":1026,"props":6489,"children":6490},{"style":1041},[6491],{"type":998,"value":6331},{"type":993,"tag":1026,"props":6493,"children":6494},{"class":1028,"line":109},[6495,6499,6503,6507,6511,6515,6519],{"type":993,"tag":1026,"props":6496,"children":6497},{"style":1041},[6498],{"type":998,"value":5755},{"type":993,"tag":1026,"props":6500,"children":6501},{"style":1058},[6502],{"type":998,"value":6439},{"type":993,"tag":1026,"props":6504,"children":6505},{"style":1041},[6506],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6508,"children":6509},{"style":1058},[6510],{"type":998,"value":6448},{"type":993,"tag":1026,"props":6512,"children":6513},{"style":1041},[6514],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6516,"children":6517},{"style":1058},[6518],{"type":998,"value":6439},{"type":993,"tag":1026,"props":6520,"children":6521},{"style":1041},[6522],{"type":998,"value":1094},{"type":993,"tag":1026,"props":6524,"children":6525},{"class":1028,"line":118},[6526],{"type":993,"tag":1026,"props":6527,"children":6528},{"style":1041},[6529],{"type":998,"value":1094},{"type":993,"tag":1026,"props":6531,"children":6532},{"class":1028,"line":127},[6533],{"type":993,"tag":1026,"props":6534,"children":6535},{"emptyLinePlaceholder":13},[6536],{"type":998,"value":1198},{"type":993,"tag":1026,"props":6538,"children":6539},{"class":1028,"line":136},[6540],{"type":993,"tag":1026,"props":6541,"children":6542},{"style":1032},[6543],{"type":998,"value":6544},"# Iterate through matrix elements\n",{"type":993,"tag":1026,"props":6546,"children":6547},{"class":1028,"line":146},[6548,6552,6556,6561],{"type":993,"tag":1026,"props":6549,"children":6550},{"style":1113},[6551],{"type":998,"value":1214},{"type":993,"tag":1026,"props":6553,"children":6554},{"style":1041},[6555],{"type":998,"value":1219},{"type":993,"tag":1026,"props":6557,"children":6558},{"style":1058},[6559],{"type":998,"value":6560},"\"Matrix elements:\"",{"type":993,"tag":1026,"props":6562,"children":6563},{"style":1041},[6564],{"type":998,"value":1094},{"type":993,"tag":1026,"props":6566,"children":6567},{"class":1028,"line":155},[6568,6572,6577,6581,6585],{"type":993,"tag":1026,"props":6569,"children":6570},{"style":1047},[6571],{"type":998,"value":1236},{"type":993,"tag":1026,"props":6573,"children":6574},{"style":1041},[6575],{"type":998,"value":6576}," row_index, row ",{"type":993,"tag":1026,"props":6578,"children":6579},{"style":1047},[6580],{"type":998,"value":1246},{"type":993,"tag":1026,"props":6582,"children":6583},{"style":1113},[6584],{"type":998,"value":3566},{"type":993,"tag":1026,"props":6586,"children":6587},{"style":1041},[6588],{"type":998,"value":6589},"(matrix):\n",{"type":993,"tag":1026,"props":6591,"children":6592},{"class":1028,"line":164},[6593,6597,6602,6606,6610],{"type":993,"tag":1026,"props":6594,"children":6595},{"style":1047},[6596],{"type":998,"value":6201},{"type":993,"tag":1026,"props":6598,"children":6599},{"style":1041},[6600],{"type":998,"value":6601}," col_index, value ",{"type":993,"tag":1026,"props":6603,"children":6604},{"style":1047},[6605],{"type":998,"value":1246},{"type":993,"tag":1026,"props":6607,"children":6608},{"style":1113},[6609],{"type":998,"value":3566},{"type":993,"tag":1026,"props":6611,"children":6612},{"style":1041},[6613],{"type":998,"value":6614},"(row):\n",{"type":993,"tag":1026,"props":6616,"children":6617},{"class":1028,"line":173},[6618,6622,6626,6630,6635,6639,6644,6648,6652,6656,6661,6665,6669,6673,6677,6681,6685],{"type":993,"tag":1026,"props":6619,"children":6620},{"style":1113},[6621],{"type":998,"value":2386},{"type":993,"tag":1026,"props":6623,"children":6624},{"style":1041},[6625],{"type":998,"value":1219},{"type":993,"tag":1026,"props":6627,"children":6628},{"style":1047},[6629],{"type":998,"value":1268},{"type":993,"tag":1026,"props":6631,"children":6632},{"style":1058},[6633],{"type":998,"value":6634},"\"Position (",{"type":993,"tag":1026,"props":6636,"children":6637},{"style":1113},[6638],{"type":998,"value":1278},{"type":993,"tag":1026,"props":6640,"children":6641},{"style":1041},[6642],{"type":998,"value":6643},"row_index",{"type":993,"tag":1026,"props":6645,"children":6646},{"style":1113},[6647],{"type":998,"value":1288},{"type":993,"tag":1026,"props":6649,"children":6650},{"style":1058},[6651],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6653,"children":6654},{"style":1113},[6655],{"type":998,"value":1278},{"type":993,"tag":1026,"props":6657,"children":6658},{"style":1041},[6659],{"type":998,"value":6660},"col_index",{"type":993,"tag":1026,"props":6662,"children":6663},{"style":1113},[6664],{"type":998,"value":1288},{"type":993,"tag":1026,"props":6666,"children":6667},{"style":1058},[6668],{"type":998,"value":4425},{"type":993,"tag":1026,"props":6670,"children":6671},{"style":1113},[6672],{"type":998,"value":1278},{"type":993,"tag":1026,"props":6674,"children":6675},{"style":1041},[6676],{"type":998,"value":4434},{"type":993,"tag":1026,"props":6678,"children":6679},{"style":1113},[6680],{"type":998,"value":1288},{"type":993,"tag":1026,"props":6682,"children":6683},{"style":1058},[6684],{"type":998,"value":1293},{"type":993,"tag":1026,"props":6686,"children":6687},{"style":1041},[6688],{"type":998,"value":1094},{"type":993,"tag":1026,"props":6690,"children":6691},{"class":1028,"line":182},[6692],{"type":993,"tag":1026,"props":6693,"children":6694},{"emptyLinePlaceholder":13},[6695],{"type":998,"value":1198},{"type":993,"tag":1026,"props":6697,"children":6698},{"class":1028,"line":191},[6699],{"type":993,"tag":1026,"props":6700,"children":6701},{"style":1032},[6702],{"type":998,"value":6703},"# Process game board\n",{"type":993,"tag":1026,"props":6705,"children":6706},{"class":1028,"line":201},[6707,6711,6715,6719,6723,6728],{"type":993,"tag":1026,"props":6708,"children":6709},{"style":1113},[6710],{"type":998,"value":1214},{"type":993,"tag":1026,"props":6712,"children":6713},{"style":1041},[6714],{"type":998,"value":1219},{"type":993,"tag":1026,"props":6716,"children":6717},{"style":1058},[6718],{"type":998,"value":1293},{"type":993,"tag":1026,"props":6720,"children":6721},{"style":1113},[6722],{"type":998,"value":1324},{"type":993,"tag":1026,"props":6724,"children":6725},{"style":1058},[6726],{"type":998,"value":6727},"Game board:\"",{"type":993,"tag":1026,"props":6729,"children":6730},{"style":1041},[6731],{"type":998,"value":1094},{"type":993,"tag":1026,"props":6733,"children":6734},{"class":1028,"line":210},[6735,6739,6744,6748,6752],{"type":993,"tag":1026,"props":6736,"children":6737},{"style":1047},[6738],{"type":998,"value":1236},{"type":993,"tag":1026,"props":6740,"children":6741},{"style":1041},[6742],{"type":998,"value":6743}," row_num, row ",{"type":993,"tag":1026,"props":6745,"children":6746},{"style":1047},[6747],{"type":998,"value":1246},{"type":993,"tag":1026,"props":6749,"children":6750},{"style":1113},[6751],{"type":998,"value":3566},{"type":993,"tag":1026,"props":6753,"children":6754},{"style":1041},[6755],{"type":998,"value":6756},"(game_board):\n",{"type":993,"tag":1026,"props":6758,"children":6759},{"class":1028,"line":219},[6760,6765,6769,6774],{"type":993,"tag":1026,"props":6761,"children":6762},{"style":1041},[6763],{"type":998,"value":6764},"    row_str ",{"type":993,"tag":1026,"props":6766,"children":6767},{"style":1047},[6768],{"type":998,"value":1050},{"type":993,"tag":1026,"props":6770,"children":6771},{"style":1058},[6772],{"type":998,"value":6773}," \" | \"",{"type":993,"tag":1026,"props":6775,"children":6776},{"style":1041},[6777],{"type":998,"value":6778},".join(row)\n",{"type":993,"tag":1026,"props":6780,"children":6781},{"class":1028,"line":228},[6782,6786,6790,6794,6799,6803,6808,6812,6817,6821,6825,6830,6834,6838],{"type":993,"tag":1026,"props":6783,"children":6784},{"style":1113},[6785],{"type":998,"value":1259},{"type":993,"tag":1026,"props":6787,"children":6788},{"style":1041},[6789],{"type":998,"value":1219},{"type":993,"tag":1026,"props":6791,"children":6792},{"style":1047},[6793],{"type":998,"value":1268},{"type":993,"tag":1026,"props":6795,"children":6796},{"style":1058},[6797],{"type":998,"value":6798},"\"Row ",{"type":993,"tag":1026,"props":6800,"children":6801},{"style":1113},[6802],{"type":998,"value":1278},{"type":993,"tag":1026,"props":6804,"children":6805},{"style":1041},[6806],{"type":998,"value":6807},"row_num ",{"type":993,"tag":1026,"props":6809,"children":6810},{"style":1047},[6811],{"type":998,"value":3643},{"type":993,"tag":1026,"props":6813,"children":6814},{"style":1113},[6815],{"type":998,"value":6816}," 1}",{"type":993,"tag":1026,"props":6818,"children":6819},{"style":1058},[6820],{"type":998,"value":3702},{"type":993,"tag":1026,"props":6822,"children":6823},{"style":1113},[6824],{"type":998,"value":1278},{"type":993,"tag":1026,"props":6826,"children":6827},{"style":1041},[6828],{"type":998,"value":6829},"row_str",{"type":993,"tag":1026,"props":6831,"children":6832},{"style":1113},[6833],{"type":998,"value":1288},{"type":993,"tag":1026,"props":6835,"children":6836},{"style":1058},[6837],{"type":998,"value":1293},{"type":993,"tag":1026,"props":6839,"children":6840},{"style":1041},[6841],{"type":998,"value":1094},{"type":993,"tag":1026,"props":6843,"children":6844},{"class":1028,"line":238},[6845],{"type":993,"tag":1026,"props":6846,"children":6847},{"emptyLinePlaceholder":13},[6848],{"type":998,"value":1198},{"type":993,"tag":1026,"props":6850,"children":6851},{"class":1028,"line":247},[6852],{"type":993,"tag":1026,"props":6853,"children":6854},{"style":1032},[6855],{"type":998,"value":6856},"# Calculate matrix sum\n",{"type":993,"tag":1026,"props":6858,"children":6859},{"class":1028,"line":256},[6860,6865,6869],{"type":993,"tag":1026,"props":6861,"children":6862},{"style":1041},[6863],{"type":998,"value":6864},"total ",{"type":993,"tag":1026,"props":6866,"children":6867},{"style":1047},[6868],{"type":998,"value":1050},{"type":993,"tag":1026,"props":6870,"children":6871},{"style":1113},[6872],{"type":998,"value":2863},{"type":993,"tag":1026,"props":6874,"children":6875},{"class":1028,"line":265},[6876,6880,6885,6889],{"type":993,"tag":1026,"props":6877,"children":6878},{"style":1047},[6879],{"type":998,"value":1236},{"type":993,"tag":1026,"props":6881,"children":6882},{"style":1041},[6883],{"type":998,"value":6884}," row ",{"type":993,"tag":1026,"props":6886,"children":6887},{"style":1047},[6888],{"type":998,"value":1246},{"type":993,"tag":1026,"props":6890,"children":6891},{"style":1041},[6892],{"type":998,"value":6893}," matrix:\n",{"type":993,"tag":1026,"props":6895,"children":6896},{"class":1028,"line":274},[6897,6901,6906,6910],{"type":993,"tag":1026,"props":6898,"children":6899},{"style":1047},[6900],{"type":998,"value":6201},{"type":993,"tag":1026,"props":6902,"children":6903},{"style":1041},[6904],{"type":998,"value":6905}," value ",{"type":993,"tag":1026,"props":6907,"children":6908},{"style":1047},[6909],{"type":998,"value":1246},{"type":993,"tag":1026,"props":6911,"children":6912},{"style":1041},[6913],{"type":998,"value":6914}," row:\n",{"type":993,"tag":1026,"props":6916,"children":6917},{"class":1028,"line":284},[6918,6923,6927],{"type":993,"tag":1026,"props":6919,"children":6920},{"style":1041},[6921],{"type":998,"value":6922},"        total ",{"type":993,"tag":1026,"props":6924,"children":6925},{"style":1047},[6926],{"type":998,"value":2920},{"type":993,"tag":1026,"props":6928,"children":6929},{"style":1041},[6930],{"type":998,"value":6931}," value\n",{"type":993,"tag":1026,"props":6933,"children":6934},{"class":1028,"line":293},[6935,6939,6943,6947,6951,6955,6960,6964,6969,6973,6977],{"type":993,"tag":1026,"props":6936,"children":6937},{"style":1113},[6938],{"type":998,"value":1214},{"type":993,"tag":1026,"props":6940,"children":6941},{"style":1041},[6942],{"type":998,"value":1219},{"type":993,"tag":1026,"props":6944,"children":6945},{"style":1047},[6946],{"type":998,"value":1268},{"type":993,"tag":1026,"props":6948,"children":6949},{"style":1058},[6950],{"type":998,"value":1293},{"type":993,"tag":1026,"props":6952,"children":6953},{"style":1113},[6954],{"type":998,"value":1324},{"type":993,"tag":1026,"props":6956,"children":6957},{"style":1058},[6958],{"type":998,"value":6959},"Matrix sum: ",{"type":993,"tag":1026,"props":6961,"children":6962},{"style":1113},[6963],{"type":998,"value":1278},{"type":993,"tag":1026,"props":6965,"children":6966},{"style":1041},[6967],{"type":998,"value":6968},"total",{"type":993,"tag":1026,"props":6970,"children":6971},{"style":1113},[6972],{"type":998,"value":1288},{"type":993,"tag":1026,"props":6974,"children":6975},{"style":1058},[6976],{"type":998,"value":1293},{"type":993,"tag":1026,"props":6978,"children":6979},{"style":1041},[6980],{"type":998,"value":1094},{"type":993,"tag":1605,"props":6982,"children":6984},{"id":6983},"flattening-nested-tuples",[6985],{"type":998,"value":6986},"Flattening Nested Tuples",{"type":993,"tag":1001,"props":6988,"children":6989},{},[6990],{"type":998,"value":6991},"Converting nested structures to flat iteration for uniform element processing.",{"type":993,"tag":1012,"props":6993,"children":6994},{},[6995],{"type":993,"tag":1016,"props":6996,"children":6998},{"className":1018,"code":6997,"language":6,"meta":8,"style":8},"# Flattening nested tuples\nnested_data = ((1, 2), (3, 4, 5), (6,), (7, 8, 9))\nnested_words = ((\"python\", \"programming\"), (\"data\", \"science\"), (\"machine\", \"learning\"))\n\n# Flatten using nested loops\nflattened_numbers = []\nfor subtuple in nested_data:\n    for number in subtuple:\n        flattened_numbers.append(number)\n\nprint(f\"Original: {nested_data}\")\nprint(f\"Flattened: {tuple(flattened_numbers)}\")\n\n# Flatten with comprehension\nflattened_words = tuple(word for subtuple in nested_words for word in subtuple)\nprint(f\"Words: {flattened_words}\")\n\n# Process flattened data\ntotal = sum(flattened_numbers)\naverage = total / len(flattened_numbers)\nprint(f\"Sum: {total}, Average: {average:.1f}\")\n",[6999],{"type":993,"tag":1022,"props":7000,"children":7001},{"__ignoreMap":8},[7002,7010,7099,7167,7174,7182,7198,7219,7240,7248,7255,7296,7338,7345,7353,7409,7450,7457,7465,7486,7515],{"type":993,"tag":1026,"props":7003,"children":7004},{"class":1028,"line":12},[7005],{"type":993,"tag":1026,"props":7006,"children":7007},{"style":1032},[7008],{"type":998,"value":7009},"# Flattening nested tuples\n",{"type":993,"tag":1026,"props":7011,"children":7012},{"class":1028,"line":27},[7013,7018,7022,7026,7030,7034,7038,7042,7046,7050,7054,7058,7062,7066,7070,7075,7079,7083,7087,7091,7095],{"type":993,"tag":1026,"props":7014,"children":7015},{"style":1041},[7016],{"type":998,"value":7017},"nested_data ",{"type":993,"tag":1026,"props":7019,"children":7020},{"style":1047},[7021],{"type":998,"value":1050},{"type":993,"tag":1026,"props":7023,"children":7024},{"style":1041},[7025],{"type":998,"value":5678},{"type":993,"tag":1026,"props":7027,"children":7028},{"style":1113},[7029],{"type":998,"value":1654},{"type":993,"tag":1026,"props":7031,"children":7032},{"style":1041},[7033],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7035,"children":7036},{"style":1113},[7037],{"type":998,"value":5958},{"type":993,"tag":1026,"props":7039,"children":7040},{"style":1041},[7041],{"type":998,"value":5695},{"type":993,"tag":1026,"props":7043,"children":7044},{"style":1113},[7045],{"type":998,"value":6326},{"type":993,"tag":1026,"props":7047,"children":7048},{"style":1041},[7049],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7051,"children":7052},{"style":1113},[7053],{"type":998,"value":1663},{"type":993,"tag":1026,"props":7055,"children":7056},{"style":1041},[7057],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7059,"children":7060},{"style":1113},[7061],{"type":998,"value":6351},{"type":993,"tag":1026,"props":7063,"children":7064},{"style":1041},[7065],{"type":998,"value":5695},{"type":993,"tag":1026,"props":7067,"children":7068},{"style":1113},[7069],{"type":998,"value":6360},{"type":993,"tag":1026,"props":7071,"children":7072},{"style":1041},[7073],{"type":998,"value":7074},",), (",{"type":993,"tag":1026,"props":7076,"children":7077},{"style":1113},[7078],{"type":998,"value":6376},{"type":993,"tag":1026,"props":7080,"children":7081},{"style":1041},[7082],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7084,"children":7085},{"style":1113},[7086],{"type":998,"value":6385},{"type":993,"tag":1026,"props":7088,"children":7089},{"style":1041},[7090],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7092,"children":7093},{"style":1113},[7094],{"type":998,"value":1672},{"type":993,"tag":1026,"props":7096,"children":7097},{"style":1041},[7098],{"type":998,"value":5730},{"type":993,"tag":1026,"props":7100,"children":7101},{"class":1028,"line":36},[7102,7107,7111,7115,7119,7123,7127,7131,7136,7140,7145,7149,7154,7158,7163],{"type":993,"tag":1026,"props":7103,"children":7104},{"style":1041},[7105],{"type":998,"value":7106},"nested_words ",{"type":993,"tag":1026,"props":7108,"children":7109},{"style":1047},[7110],{"type":998,"value":1050},{"type":993,"tag":1026,"props":7112,"children":7113},{"style":1041},[7114],{"type":998,"value":5678},{"type":993,"tag":1026,"props":7116,"children":7117},{"style":1058},[7118],{"type":998,"value":1715},{"type":993,"tag":1026,"props":7120,"children":7121},{"style":1041},[7122],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7124,"children":7125},{"style":1058},[7126],{"type":998,"value":1724},{"type":993,"tag":1026,"props":7128,"children":7129},{"style":1041},[7130],{"type":998,"value":5695},{"type":993,"tag":1026,"props":7132,"children":7133},{"style":1058},[7134],{"type":998,"value":7135},"\"data\"",{"type":993,"tag":1026,"props":7137,"children":7138},{"style":1041},[7139],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7141,"children":7142},{"style":1058},[7143],{"type":998,"value":7144},"\"science\"",{"type":993,"tag":1026,"props":7146,"children":7147},{"style":1041},[7148],{"type":998,"value":5695},{"type":993,"tag":1026,"props":7150,"children":7151},{"style":1058},[7152],{"type":998,"value":7153},"\"machine\"",{"type":993,"tag":1026,"props":7155,"children":7156},{"style":1041},[7157],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7159,"children":7160},{"style":1058},[7161],{"type":998,"value":7162},"\"learning\"",{"type":993,"tag":1026,"props":7164,"children":7165},{"style":1041},[7166],{"type":998,"value":5730},{"type":993,"tag":1026,"props":7168,"children":7169},{"class":1028,"line":45},[7170],{"type":993,"tag":1026,"props":7171,"children":7172},{"emptyLinePlaceholder":13},[7173],{"type":998,"value":1198},{"type":993,"tag":1026,"props":7175,"children":7176},{"class":1028,"line":54},[7177],{"type":993,"tag":1026,"props":7178,"children":7179},{"style":1032},[7180],{"type":998,"value":7181},"# Flatten using nested loops\n",{"type":993,"tag":1026,"props":7183,"children":7184},{"class":1028,"line":63},[7185,7190,7194],{"type":993,"tag":1026,"props":7186,"children":7187},{"style":1041},[7188],{"type":998,"value":7189},"flattened_numbers ",{"type":993,"tag":1026,"props":7191,"children":7192},{"style":1047},[7193],{"type":998,"value":1050},{"type":993,"tag":1026,"props":7195,"children":7196},{"style":1041},[7197],{"type":998,"value":3151},{"type":993,"tag":1026,"props":7199,"children":7200},{"class":1028,"line":72},[7201,7205,7210,7214],{"type":993,"tag":1026,"props":7202,"children":7203},{"style":1047},[7204],{"type":998,"value":1236},{"type":993,"tag":1026,"props":7206,"children":7207},{"style":1041},[7208],{"type":998,"value":7209}," subtuple ",{"type":993,"tag":1026,"props":7211,"children":7212},{"style":1047},[7213],{"type":998,"value":1246},{"type":993,"tag":1026,"props":7215,"children":7216},{"style":1041},[7217],{"type":998,"value":7218}," nested_data:\n",{"type":993,"tag":1026,"props":7220,"children":7221},{"class":1028,"line":81},[7222,7226,7231,7235],{"type":993,"tag":1026,"props":7223,"children":7224},{"style":1047},[7225],{"type":998,"value":6201},{"type":993,"tag":1026,"props":7227,"children":7228},{"style":1041},[7229],{"type":998,"value":7230}," number ",{"type":993,"tag":1026,"props":7232,"children":7233},{"style":1047},[7234],{"type":998,"value":1246},{"type":993,"tag":1026,"props":7236,"children":7237},{"style":1041},[7238],{"type":998,"value":7239}," subtuple:\n",{"type":993,"tag":1026,"props":7241,"children":7242},{"class":1028,"line":91},[7243],{"type":993,"tag":1026,"props":7244,"children":7245},{"style":1041},[7246],{"type":998,"value":7247},"        flattened_numbers.append(number)\n",{"type":993,"tag":1026,"props":7249,"children":7250},{"class":1028,"line":100},[7251],{"type":993,"tag":1026,"props":7252,"children":7253},{"emptyLinePlaceholder":13},[7254],{"type":998,"value":1198},{"type":993,"tag":1026,"props":7256,"children":7257},{"class":1028,"line":109},[7258,7262,7266,7270,7275,7279,7284,7288,7292],{"type":993,"tag":1026,"props":7259,"children":7260},{"style":1113},[7261],{"type":998,"value":1214},{"type":993,"tag":1026,"props":7263,"children":7264},{"style":1041},[7265],{"type":998,"value":1219},{"type":993,"tag":1026,"props":7267,"children":7268},{"style":1047},[7269],{"type":998,"value":1268},{"type":993,"tag":1026,"props":7271,"children":7272},{"style":1058},[7273],{"type":998,"value":7274},"\"Original: ",{"type":993,"tag":1026,"props":7276,"children":7277},{"style":1113},[7278],{"type":998,"value":1278},{"type":993,"tag":1026,"props":7280,"children":7281},{"style":1041},[7282],{"type":998,"value":7283},"nested_data",{"type":993,"tag":1026,"props":7285,"children":7286},{"style":1113},[7287],{"type":998,"value":1288},{"type":993,"tag":1026,"props":7289,"children":7290},{"style":1058},[7291],{"type":998,"value":1293},{"type":993,"tag":1026,"props":7293,"children":7294},{"style":1041},[7295],{"type":998,"value":1094},{"type":993,"tag":1026,"props":7297,"children":7298},{"class":1028,"line":118},[7299,7303,7307,7311,7316,7321,7326,7330,7334],{"type":993,"tag":1026,"props":7300,"children":7301},{"style":1113},[7302],{"type":998,"value":1214},{"type":993,"tag":1026,"props":7304,"children":7305},{"style":1041},[7306],{"type":998,"value":1219},{"type":993,"tag":1026,"props":7308,"children":7309},{"style":1047},[7310],{"type":998,"value":1268},{"type":993,"tag":1026,"props":7312,"children":7313},{"style":1058},[7314],{"type":998,"value":7315},"\"Flattened: ",{"type":993,"tag":1026,"props":7317,"children":7318},{"style":1113},[7319],{"type":998,"value":7320},"{tuple",{"type":993,"tag":1026,"props":7322,"children":7323},{"style":1041},[7324],{"type":998,"value":7325},"(flattened_numbers)",{"type":993,"tag":1026,"props":7327,"children":7328},{"style":1113},[7329],{"type":998,"value":1288},{"type":993,"tag":1026,"props":7331,"children":7332},{"style":1058},[7333],{"type":998,"value":1293},{"type":993,"tag":1026,"props":7335,"children":7336},{"style":1041},[7337],{"type":998,"value":1094},{"type":993,"tag":1026,"props":7339,"children":7340},{"class":1028,"line":127},[7341],{"type":993,"tag":1026,"props":7342,"children":7343},{"emptyLinePlaceholder":13},[7344],{"type":998,"value":1198},{"type":993,"tag":1026,"props":7346,"children":7347},{"class":1028,"line":136},[7348],{"type":993,"tag":1026,"props":7349,"children":7350},{"style":1032},[7351],{"type":998,"value":7352},"# Flatten with comprehension\n",{"type":993,"tag":1026,"props":7354,"children":7355},{"class":1028,"line":146},[7356,7361,7365,7370,7375,7379,7383,7387,7392,7396,7400,7404],{"type":993,"tag":1026,"props":7357,"children":7358},{"style":1041},[7359],{"type":998,"value":7360},"flattened_words ",{"type":993,"tag":1026,"props":7362,"children":7363},{"style":1047},[7364],{"type":998,"value":1050},{"type":993,"tag":1026,"props":7366,"children":7367},{"style":1113},[7368],{"type":998,"value":7369}," tuple",{"type":993,"tag":1026,"props":7371,"children":7372},{"style":1041},[7373],{"type":998,"value":7374},"(word ",{"type":993,"tag":1026,"props":7376,"children":7377},{"style":1047},[7378],{"type":998,"value":1236},{"type":993,"tag":1026,"props":7380,"children":7381},{"style":1041},[7382],{"type":998,"value":7209},{"type":993,"tag":1026,"props":7384,"children":7385},{"style":1047},[7386],{"type":998,"value":1246},{"type":993,"tag":1026,"props":7388,"children":7389},{"style":1041},[7390],{"type":998,"value":7391}," nested_words ",{"type":993,"tag":1026,"props":7393,"children":7394},{"style":1047},[7395],{"type":998,"value":1236},{"type":993,"tag":1026,"props":7397,"children":7398},{"style":1041},[7399],{"type":998,"value":1938},{"type":993,"tag":1026,"props":7401,"children":7402},{"style":1047},[7403],{"type":998,"value":1246},{"type":993,"tag":1026,"props":7405,"children":7406},{"style":1041},[7407],{"type":998,"value":7408}," subtuple)\n",{"type":993,"tag":1026,"props":7410,"children":7411},{"class":1028,"line":155},[7412,7416,7420,7424,7429,7433,7438,7442,7446],{"type":993,"tag":1026,"props":7413,"children":7414},{"style":1113},[7415],{"type":998,"value":1214},{"type":993,"tag":1026,"props":7417,"children":7418},{"style":1041},[7419],{"type":998,"value":1219},{"type":993,"tag":1026,"props":7421,"children":7422},{"style":1047},[7423],{"type":998,"value":1268},{"type":993,"tag":1026,"props":7425,"children":7426},{"style":1058},[7427],{"type":998,"value":7428},"\"Words: ",{"type":993,"tag":1026,"props":7430,"children":7431},{"style":1113},[7432],{"type":998,"value":1278},{"type":993,"tag":1026,"props":7434,"children":7435},{"style":1041},[7436],{"type":998,"value":7437},"flattened_words",{"type":993,"tag":1026,"props":7439,"children":7440},{"style":1113},[7441],{"type":998,"value":1288},{"type":993,"tag":1026,"props":7443,"children":7444},{"style":1058},[7445],{"type":998,"value":1293},{"type":993,"tag":1026,"props":7447,"children":7448},{"style":1041},[7449],{"type":998,"value":1094},{"type":993,"tag":1026,"props":7451,"children":7452},{"class":1028,"line":164},[7453],{"type":993,"tag":1026,"props":7454,"children":7455},{"emptyLinePlaceholder":13},[7456],{"type":998,"value":1198},{"type":993,"tag":1026,"props":7458,"children":7459},{"class":1028,"line":173},[7460],{"type":993,"tag":1026,"props":7461,"children":7462},{"style":1032},[7463],{"type":998,"value":7464},"# Process flattened data\n",{"type":993,"tag":1026,"props":7466,"children":7467},{"class":1028,"line":182},[7468,7472,7476,7481],{"type":993,"tag":1026,"props":7469,"children":7470},{"style":1041},[7471],{"type":998,"value":6864},{"type":993,"tag":1026,"props":7473,"children":7474},{"style":1047},[7475],{"type":998,"value":1050},{"type":993,"tag":1026,"props":7477,"children":7478},{"style":1113},[7479],{"type":998,"value":7480}," sum",{"type":993,"tag":1026,"props":7482,"children":7483},{"style":1041},[7484],{"type":998,"value":7485},"(flattened_numbers)\n",{"type":993,"tag":1026,"props":7487,"children":7488},{"class":1028,"line":191},[7489,7494,7498,7503,7507,7511],{"type":993,"tag":1026,"props":7490,"children":7491},{"style":1041},[7492],{"type":998,"value":7493},"average ",{"type":993,"tag":1026,"props":7495,"children":7496},{"style":1047},[7497],{"type":998,"value":1050},{"type":993,"tag":1026,"props":7499,"children":7500},{"style":1041},[7501],{"type":998,"value":7502}," total ",{"type":993,"tag":1026,"props":7504,"children":7505},{"style":1047},[7506],{"type":998,"value":3053},{"type":993,"tag":1026,"props":7508,"children":7509},{"style":1113},[7510],{"type":998,"value":1964},{"type":993,"tag":1026,"props":7512,"children":7513},{"style":1041},[7514],{"type":998,"value":7485},{"type":993,"tag":1026,"props":7516,"children":7517},{"class":1028,"line":201},[7518,7522,7526,7530,7535,7539,7543,7547,7552,7556,7561,7565,7569,7573],{"type":993,"tag":1026,"props":7519,"children":7520},{"style":1113},[7521],{"type":998,"value":1214},{"type":993,"tag":1026,"props":7523,"children":7524},{"style":1041},[7525],{"type":998,"value":1219},{"type":993,"tag":1026,"props":7527,"children":7528},{"style":1047},[7529],{"type":998,"value":1268},{"type":993,"tag":1026,"props":7531,"children":7532},{"style":1058},[7533],{"type":998,"value":7534},"\"Sum: ",{"type":993,"tag":1026,"props":7536,"children":7537},{"style":1113},[7538],{"type":998,"value":1278},{"type":993,"tag":1026,"props":7540,"children":7541},{"style":1041},[7542],{"type":998,"value":6968},{"type":993,"tag":1026,"props":7544,"children":7545},{"style":1113},[7546],{"type":998,"value":1288},{"type":993,"tag":1026,"props":7548,"children":7549},{"style":1058},[7550],{"type":998,"value":7551},", Average: ",{"type":993,"tag":1026,"props":7553,"children":7554},{"style":1113},[7555],{"type":998,"value":1278},{"type":993,"tag":1026,"props":7557,"children":7558},{"style":1041},[7559],{"type":998,"value":7560},"average",{"type":993,"tag":1026,"props":7562,"children":7563},{"style":1047},[7564],{"type":998,"value":1871},{"type":993,"tag":1026,"props":7566,"children":7567},{"style":1113},[7568],{"type":998,"value":1288},{"type":993,"tag":1026,"props":7570,"children":7571},{"style":1058},[7572],{"type":998,"value":1293},{"type":993,"tag":1026,"props":7574,"children":7575},{"style":1041},[7576],{"type":998,"value":1094},{"type":993,"tag":1494,"props":7578,"children":7580},{"id":7579},"advanced-iteration-techniques",[7581],{"type":998,"value":7582},"🚀 Advanced Iteration Techniques",{"type":993,"tag":1001,"props":7584,"children":7585},{},[7586],{"type":998,"value":7587},"Python provides powerful iteration tools like comprehensions, filter, map, and itertools that work excellently with tuples for sophisticated data processing.",{"type":993,"tag":1506,"props":7589,"children":7592},{"emoji":7590,"title":7591,"type":3287},"🚀","Advanced Iteration Tools",[7593,7601,7624,7632,7655,7663],{"type":993,"tag":1001,"props":7594,"children":7595},{},[7596],{"type":993,"tag":1516,"props":7597,"children":7598},{},[7599],{"type":998,"value":7600},"Comprehension Benefits:",{"type":993,"tag":1522,"props":7602,"children":7603},{},[7604,7609,7614,7619],{"type":993,"tag":1526,"props":7605,"children":7606},{},[7607],{"type":998,"value":7608},"Concise syntax for transformations",{"type":993,"tag":1526,"props":7610,"children":7611},{},[7612],{"type":998,"value":7613},"Built-in filtering capabilities",{"type":993,"tag":1526,"props":7615,"children":7616},{},[7617],{"type":998,"value":7618},"Memory efficient for large datasets",{"type":993,"tag":1526,"props":7620,"children":7621},{},[7622],{"type":998,"value":7623},"Expressive and readable for simple operations",{"type":993,"tag":1001,"props":7625,"children":7626},{},[7627],{"type":993,"tag":1516,"props":7628,"children":7629},{},[7630],{"type":998,"value":7631},"Functional Tools:",{"type":993,"tag":1522,"props":7633,"children":7634},{},[7635,7640,7645,7650],{"type":993,"tag":1526,"props":7636,"children":7637},{},[7638],{"type":998,"value":7639},"filter(): Select elements meeting criteria",{"type":993,"tag":1526,"props":7641,"children":7642},{},[7643],{"type":998,"value":7644},"map(): Transform all elements",{"type":993,"tag":1526,"props":7646,"children":7647},{},[7648],{"type":998,"value":7649},"any()/all(): Boolean testing across elements",{"type":993,"tag":1526,"props":7651,"children":7652},{},[7653],{"type":998,"value":7654},"itertools: Advanced iteration patterns",{"type":993,"tag":1001,"props":7656,"children":7657},{},[7658],{"type":993,"tag":1516,"props":7659,"children":7660},{},[7661],{"type":998,"value":7662},"When to Use:",{"type":993,"tag":1522,"props":7664,"children":7665},{},[7666,7671,7676],{"type":993,"tag":1526,"props":7667,"children":7668},{},[7669],{"type":998,"value":7670},"Comprehensions for simple transformations",{"type":993,"tag":1526,"props":7672,"children":7673},{},[7674],{"type":998,"value":7675},"filter/map for functional programming style",{"type":993,"tag":1526,"props":7677,"children":7678},{},[7679],{"type":998,"value":7680},"itertools for complex iteration patterns",{"type":993,"tag":1605,"props":7682,"children":7684},{"id":7683},"tuple-comprehensions-and-generators",[7685],{"type":998,"value":7686},"Tuple Comprehensions and Generators",{"type":993,"tag":1001,"props":7688,"children":7689},{},[7690],{"type":998,"value":7691},"Creating new tuples through comprehension expressions and generator patterns.",{"type":993,"tag":1012,"props":7693,"children":7694},{},[7695],{"type":993,"tag":1016,"props":7696,"children":7698},{"className":1018,"code":7697,"language":6,"meta":8,"style":8},"# Tuple comprehensions and transformations\nnumbers = (1, 2, 3, 4, 5, 6, 7, 8, 9, 10)\nwords = (\"python\", \"java\", \"javascript\", \"go\", \"rust\")\n\n# Tuple comprehension (creates generator, convert to tuple)\nsquares = tuple(x**2 for x in numbers)\neven_numbers = tuple(x for x in numbers if x % 2 == 0)\nword_lengths = tuple(len(word) for word in words)\n\nprint(f\"Squares: {squares}\")\nprint(f\"Even numbers: {even_numbers}\")\nprint(f\"Word lengths: {word_lengths}\")\n\n# Generator for memory efficiency\ndef process_large_tuple(data_tuple):\n    \"\"\"Generator for processing large tuples efficiently\"\"\"\n    for item in data_tuple:\n        if isinstance(item, (int, float)):\n            yield item * 2\n\n# Use generator\nlarge_data = tuple(range(1, 11))\nprocessed = tuple(process_large_tuple(large_data))\nprint(f\"Processed: {processed}\")\n",[7699],{"type":993,"tag":1022,"props":7700,"children":7701},{"__ignoreMap":8},[7702,7710,7805,7864,7871,7879,7927,7994,8040,8047,8088,8129,8170,8177,8185,8204,8212,8233,8270,8292,8299,8307,8353,8374],{"type":993,"tag":1026,"props":7703,"children":7704},{"class":1028,"line":12},[7705],{"type":993,"tag":1026,"props":7706,"children":7707},{"style":1032},[7708],{"type":998,"value":7709},"# Tuple comprehensions and transformations\n",{"type":993,"tag":1026,"props":7711,"children":7712},{"class":1028,"line":27},[7713,7717,7721,7725,7729,7733,7737,7741,7745,7749,7753,7757,7761,7765,7769,7773,7777,7781,7785,7789,7793,7797,7801],{"type":993,"tag":1026,"props":7714,"children":7715},{"style":1041},[7716],{"type":998,"value":1641},{"type":993,"tag":1026,"props":7718,"children":7719},{"style":1047},[7720],{"type":998,"value":1050},{"type":993,"tag":1026,"props":7722,"children":7723},{"style":1041},[7724],{"type":998,"value":1055},{"type":993,"tag":1026,"props":7726,"children":7727},{"style":1113},[7728],{"type":998,"value":1654},{"type":993,"tag":1026,"props":7730,"children":7731},{"style":1041},[7732],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7734,"children":7735},{"style":1113},[7736],{"type":998,"value":5958},{"type":993,"tag":1026,"props":7738,"children":7739},{"style":1041},[7740],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7742,"children":7743},{"style":1113},[7744],{"type":998,"value":6326},{"type":993,"tag":1026,"props":7746,"children":7747},{"style":1041},[7748],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7750,"children":7751},{"style":1113},[7752],{"type":998,"value":1663},{"type":993,"tag":1026,"props":7754,"children":7755},{"style":1041},[7756],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7758,"children":7759},{"style":1113},[7760],{"type":998,"value":6351},{"type":993,"tag":1026,"props":7762,"children":7763},{"style":1041},[7764],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7766,"children":7767},{"style":1113},[7768],{"type":998,"value":6360},{"type":993,"tag":1026,"props":7770,"children":7771},{"style":1041},[7772],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7774,"children":7775},{"style":1113},[7776],{"type":998,"value":6376},{"type":993,"tag":1026,"props":7778,"children":7779},{"style":1041},[7780],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7782,"children":7783},{"style":1113},[7784],{"type":998,"value":6385},{"type":993,"tag":1026,"props":7786,"children":7787},{"style":1041},[7788],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7790,"children":7791},{"style":1113},[7792],{"type":998,"value":1672},{"type":993,"tag":1026,"props":7794,"children":7795},{"style":1041},[7796],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7798,"children":7799},{"style":1113},[7800],{"type":998,"value":1116},{"type":993,"tag":1026,"props":7802,"children":7803},{"style":1041},[7804],{"type":998,"value":1094},{"type":993,"tag":1026,"props":7806,"children":7807},{"class":1028,"line":36},[7808,7812,7816,7820,7824,7828,7833,7837,7842,7846,7851,7855,7860],{"type":993,"tag":1026,"props":7809,"children":7810},{"style":1041},[7811],{"type":998,"value":1702},{"type":993,"tag":1026,"props":7813,"children":7814},{"style":1047},[7815],{"type":998,"value":1050},{"type":993,"tag":1026,"props":7817,"children":7818},{"style":1041},[7819],{"type":998,"value":1055},{"type":993,"tag":1026,"props":7821,"children":7822},{"style":1058},[7823],{"type":998,"value":1715},{"type":993,"tag":1026,"props":7825,"children":7826},{"style":1041},[7827],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7829,"children":7830},{"style":1058},[7831],{"type":998,"value":7832},"\"java\"",{"type":993,"tag":1026,"props":7834,"children":7835},{"style":1041},[7836],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7838,"children":7839},{"style":1058},[7840],{"type":998,"value":7841},"\"javascript\"",{"type":993,"tag":1026,"props":7843,"children":7844},{"style":1041},[7845],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7847,"children":7848},{"style":1058},[7849],{"type":998,"value":7850},"\"go\"",{"type":993,"tag":1026,"props":7852,"children":7853},{"style":1041},[7854],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7856,"children":7857},{"style":1058},[7858],{"type":998,"value":7859},"\"rust\"",{"type":993,"tag":1026,"props":7861,"children":7862},{"style":1041},[7863],{"type":998,"value":1094},{"type":993,"tag":1026,"props":7865,"children":7866},{"class":1028,"line":45},[7867],{"type":993,"tag":1026,"props":7868,"children":7869},{"emptyLinePlaceholder":13},[7870],{"type":998,"value":1198},{"type":993,"tag":1026,"props":7872,"children":7873},{"class":1028,"line":54},[7874],{"type":993,"tag":1026,"props":7875,"children":7876},{"style":1032},[7877],{"type":998,"value":7878},"# Tuple comprehension (creates generator, convert to tuple)\n",{"type":993,"tag":1026,"props":7880,"children":7881},{"class":1028,"line":63},[7882,7887,7891,7895,7900,7904,7908,7913,7918,7922],{"type":993,"tag":1026,"props":7883,"children":7884},{"style":1041},[7885],{"type":998,"value":7886},"squares ",{"type":993,"tag":1026,"props":7888,"children":7889},{"style":1047},[7890],{"type":998,"value":1050},{"type":993,"tag":1026,"props":7892,"children":7893},{"style":1113},[7894],{"type":998,"value":7369},{"type":993,"tag":1026,"props":7896,"children":7897},{"style":1041},[7898],{"type":998,"value":7899},"(x",{"type":993,"tag":1026,"props":7901,"children":7902},{"style":1047},[7903],{"type":998,"value":1814},{"type":993,"tag":1026,"props":7905,"children":7906},{"style":1113},[7907],{"type":998,"value":5958},{"type":993,"tag":1026,"props":7909,"children":7910},{"style":1047},[7911],{"type":998,"value":7912}," for",{"type":993,"tag":1026,"props":7914,"children":7915},{"style":1041},[7916],{"type":998,"value":7917}," x ",{"type":993,"tag":1026,"props":7919,"children":7920},{"style":1047},[7921],{"type":998,"value":1246},{"type":993,"tag":1026,"props":7923,"children":7924},{"style":1041},[7925],{"type":998,"value":7926}," numbers)\n",{"type":993,"tag":1026,"props":7928,"children":7929},{"class":1028,"line":72},[7930,7935,7939,7943,7948,7952,7956,7960,7965,7969,7973,7977,7981,7985,7990],{"type":993,"tag":1026,"props":7931,"children":7932},{"style":1041},[7933],{"type":998,"value":7934},"even_numbers ",{"type":993,"tag":1026,"props":7936,"children":7937},{"style":1047},[7938],{"type":998,"value":1050},{"type":993,"tag":1026,"props":7940,"children":7941},{"style":1113},[7942],{"type":998,"value":7369},{"type":993,"tag":1026,"props":7944,"children":7945},{"style":1041},[7946],{"type":998,"value":7947},"(x ",{"type":993,"tag":1026,"props":7949,"children":7950},{"style":1047},[7951],{"type":998,"value":1236},{"type":993,"tag":1026,"props":7953,"children":7954},{"style":1041},[7955],{"type":998,"value":7917},{"type":993,"tag":1026,"props":7957,"children":7958},{"style":1047},[7959],{"type":998,"value":1246},{"type":993,"tag":1026,"props":7961,"children":7962},{"style":1041},[7963],{"type":998,"value":7964}," numbers ",{"type":993,"tag":1026,"props":7966,"children":7967},{"style":1047},[7968],{"type":998,"value":3593},{"type":993,"tag":1026,"props":7970,"children":7971},{"style":1041},[7972],{"type":998,"value":7917},{"type":993,"tag":1026,"props":7974,"children":7975},{"style":1047},[7976],{"type":998,"value":4321},{"type":993,"tag":1026,"props":7978,"children":7979},{"style":1113},[7980],{"type":998,"value":4326},{"type":993,"tag":1026,"props":7982,"children":7983},{"style":1047},[7984],{"type":998,"value":4331},{"type":993,"tag":1026,"props":7986,"children":7987},{"style":1113},[7988],{"type":998,"value":7989}," 0",{"type":993,"tag":1026,"props":7991,"children":7992},{"style":1041},[7993],{"type":998,"value":1094},{"type":993,"tag":1026,"props":7995,"children":7996},{"class":1028,"line":81},[7997,8002,8006,8010,8014,8018,8023,8027,8031,8035],{"type":993,"tag":1026,"props":7998,"children":7999},{"style":1041},[8000],{"type":998,"value":8001},"word_lengths ",{"type":993,"tag":1026,"props":8003,"children":8004},{"style":1047},[8005],{"type":998,"value":1050},{"type":993,"tag":1026,"props":8007,"children":8008},{"style":1113},[8009],{"type":998,"value":7369},{"type":993,"tag":1026,"props":8011,"children":8012},{"style":1041},[8013],{"type":998,"value":1219},{"type":993,"tag":1026,"props":8015,"children":8016},{"style":1113},[8017],{"type":998,"value":4278},{"type":993,"tag":1026,"props":8019,"children":8020},{"style":1041},[8021],{"type":998,"value":8022},"(word) ",{"type":993,"tag":1026,"props":8024,"children":8025},{"style":1047},[8026],{"type":998,"value":1236},{"type":993,"tag":1026,"props":8028,"children":8029},{"style":1041},[8030],{"type":998,"value":1938},{"type":993,"tag":1026,"props":8032,"children":8033},{"style":1047},[8034],{"type":998,"value":1246},{"type":993,"tag":1026,"props":8036,"children":8037},{"style":1041},[8038],{"type":998,"value":8039}," words)\n",{"type":993,"tag":1026,"props":8041,"children":8042},{"class":1028,"line":91},[8043],{"type":993,"tag":1026,"props":8044,"children":8045},{"emptyLinePlaceholder":13},[8046],{"type":998,"value":1198},{"type":993,"tag":1026,"props":8048,"children":8049},{"class":1028,"line":100},[8050,8054,8058,8062,8067,8071,8076,8080,8084],{"type":993,"tag":1026,"props":8051,"children":8052},{"style":1113},[8053],{"type":998,"value":1214},{"type":993,"tag":1026,"props":8055,"children":8056},{"style":1041},[8057],{"type":998,"value":1219},{"type":993,"tag":1026,"props":8059,"children":8060},{"style":1047},[8061],{"type":998,"value":1268},{"type":993,"tag":1026,"props":8063,"children":8064},{"style":1058},[8065],{"type":998,"value":8066},"\"Squares: ",{"type":993,"tag":1026,"props":8068,"children":8069},{"style":1113},[8070],{"type":998,"value":1278},{"type":993,"tag":1026,"props":8072,"children":8073},{"style":1041},[8074],{"type":998,"value":8075},"squares",{"type":993,"tag":1026,"props":8077,"children":8078},{"style":1113},[8079],{"type":998,"value":1288},{"type":993,"tag":1026,"props":8081,"children":8082},{"style":1058},[8083],{"type":998,"value":1293},{"type":993,"tag":1026,"props":8085,"children":8086},{"style":1041},[8087],{"type":998,"value":1094},{"type":993,"tag":1026,"props":8089,"children":8090},{"class":1028,"line":109},[8091,8095,8099,8103,8108,8112,8117,8121,8125],{"type":993,"tag":1026,"props":8092,"children":8093},{"style":1113},[8094],{"type":998,"value":1214},{"type":993,"tag":1026,"props":8096,"children":8097},{"style":1041},[8098],{"type":998,"value":1219},{"type":993,"tag":1026,"props":8100,"children":8101},{"style":1047},[8102],{"type":998,"value":1268},{"type":993,"tag":1026,"props":8104,"children":8105},{"style":1058},[8106],{"type":998,"value":8107},"\"Even numbers: ",{"type":993,"tag":1026,"props":8109,"children":8110},{"style":1113},[8111],{"type":998,"value":1278},{"type":993,"tag":1026,"props":8113,"children":8114},{"style":1041},[8115],{"type":998,"value":8116},"even_numbers",{"type":993,"tag":1026,"props":8118,"children":8119},{"style":1113},[8120],{"type":998,"value":1288},{"type":993,"tag":1026,"props":8122,"children":8123},{"style":1058},[8124],{"type":998,"value":1293},{"type":993,"tag":1026,"props":8126,"children":8127},{"style":1041},[8128],{"type":998,"value":1094},{"type":993,"tag":1026,"props":8130,"children":8131},{"class":1028,"line":118},[8132,8136,8140,8144,8149,8153,8158,8162,8166],{"type":993,"tag":1026,"props":8133,"children":8134},{"style":1113},[8135],{"type":998,"value":1214},{"type":993,"tag":1026,"props":8137,"children":8138},{"style":1041},[8139],{"type":998,"value":1219},{"type":993,"tag":1026,"props":8141,"children":8142},{"style":1047},[8143],{"type":998,"value":1268},{"type":993,"tag":1026,"props":8145,"children":8146},{"style":1058},[8147],{"type":998,"value":8148},"\"Word lengths: ",{"type":993,"tag":1026,"props":8150,"children":8151},{"style":1113},[8152],{"type":998,"value":1278},{"type":993,"tag":1026,"props":8154,"children":8155},{"style":1041},[8156],{"type":998,"value":8157},"word_lengths",{"type":993,"tag":1026,"props":8159,"children":8160},{"style":1113},[8161],{"type":998,"value":1288},{"type":993,"tag":1026,"props":8163,"children":8164},{"style":1058},[8165],{"type":998,"value":1293},{"type":993,"tag":1026,"props":8167,"children":8168},{"style":1041},[8169],{"type":998,"value":1094},{"type":993,"tag":1026,"props":8171,"children":8172},{"class":1028,"line":127},[8173],{"type":993,"tag":1026,"props":8174,"children":8175},{"emptyLinePlaceholder":13},[8176],{"type":998,"value":1198},{"type":993,"tag":1026,"props":8178,"children":8179},{"class":1028,"line":136},[8180],{"type":993,"tag":1026,"props":8181,"children":8182},{"style":1032},[8183],{"type":998,"value":8184},"# Generator for memory efficiency\n",{"type":993,"tag":1026,"props":8186,"children":8187},{"class":1028,"line":146},[8188,8193,8199],{"type":993,"tag":1026,"props":8189,"children":8190},{"style":1047},[8191],{"type":998,"value":8192},"def",{"type":993,"tag":1026,"props":8194,"children":8196},{"style":8195},"--shiki-default:#6F42C1;--shiki-app-dark-mode:#B392F0",[8197],{"type":998,"value":8198}," process_large_tuple",{"type":993,"tag":1026,"props":8200,"children":8201},{"style":1041},[8202],{"type":998,"value":8203},"(data_tuple):\n",{"type":993,"tag":1026,"props":8205,"children":8206},{"class":1028,"line":155},[8207],{"type":993,"tag":1026,"props":8208,"children":8209},{"style":1058},[8210],{"type":998,"value":8211},"    \"\"\"Generator for processing large tuples efficiently\"\"\"\n",{"type":993,"tag":1026,"props":8213,"children":8214},{"class":1028,"line":164},[8215,8219,8224,8228],{"type":993,"tag":1026,"props":8216,"children":8217},{"style":1047},[8218],{"type":998,"value":6201},{"type":993,"tag":1026,"props":8220,"children":8221},{"style":1041},[8222],{"type":998,"value":8223}," item ",{"type":993,"tag":1026,"props":8225,"children":8226},{"style":1047},[8227],{"type":998,"value":1246},{"type":993,"tag":1026,"props":8229,"children":8230},{"style":1041},[8231],{"type":998,"value":8232}," data_tuple:\n",{"type":993,"tag":1026,"props":8234,"children":8235},{"class":1028,"line":173},[8236,8241,8246,8251,8256,8260,8265],{"type":993,"tag":1026,"props":8237,"children":8238},{"style":1047},[8239],{"type":998,"value":8240},"        if",{"type":993,"tag":1026,"props":8242,"children":8243},{"style":1113},[8244],{"type":998,"value":8245}," isinstance",{"type":993,"tag":1026,"props":8247,"children":8248},{"style":1041},[8249],{"type":998,"value":8250},"(item, (",{"type":993,"tag":1026,"props":8252,"children":8253},{"style":1113},[8254],{"type":998,"value":8255},"int",{"type":993,"tag":1026,"props":8257,"children":8258},{"style":1041},[8259],{"type":998,"value":1066},{"type":993,"tag":1026,"props":8261,"children":8262},{"style":1113},[8263],{"type":998,"value":8264},"float",{"type":993,"tag":1026,"props":8266,"children":8267},{"style":1041},[8268],{"type":998,"value":8269},")):\n",{"type":993,"tag":1026,"props":8271,"children":8272},{"class":1028,"line":182},[8273,8278,8282,8287],{"type":993,"tag":1026,"props":8274,"children":8275},{"style":1047},[8276],{"type":998,"value":8277},"            yield",{"type":993,"tag":1026,"props":8279,"children":8280},{"style":1041},[8281],{"type":998,"value":8223},{"type":993,"tag":1026,"props":8283,"children":8284},{"style":1047},[8285],{"type":998,"value":8286},"*",{"type":993,"tag":1026,"props":8288,"children":8289},{"style":1113},[8290],{"type":998,"value":8291}," 2\n",{"type":993,"tag":1026,"props":8293,"children":8294},{"class":1028,"line":191},[8295],{"type":993,"tag":1026,"props":8296,"children":8297},{"emptyLinePlaceholder":13},[8298],{"type":998,"value":1198},{"type":993,"tag":1026,"props":8300,"children":8301},{"class":1028,"line":201},[8302],{"type":993,"tag":1026,"props":8303,"children":8304},{"style":1032},[8305],{"type":998,"value":8306},"# Use generator\n",{"type":993,"tag":1026,"props":8308,"children":8309},{"class":1028,"line":210},[8310,8315,8319,8323,8327,8332,8336,8340,8344,8349],{"type":993,"tag":1026,"props":8311,"children":8312},{"style":1041},[8313],{"type":998,"value":8314},"large_data ",{"type":993,"tag":1026,"props":8316,"children":8317},{"style":1047},[8318],{"type":998,"value":1050},{"type":993,"tag":1026,"props":8320,"children":8321},{"style":1113},[8322],{"type":998,"value":7369},{"type":993,"tag":1026,"props":8324,"children":8325},{"style":1041},[8326],{"type":998,"value":1219},{"type":993,"tag":1026,"props":8328,"children":8329},{"style":1113},[8330],{"type":998,"value":8331},"range",{"type":993,"tag":1026,"props":8333,"children":8334},{"style":1041},[8335],{"type":998,"value":1219},{"type":993,"tag":1026,"props":8337,"children":8338},{"style":1113},[8339],{"type":998,"value":1654},{"type":993,"tag":1026,"props":8341,"children":8342},{"style":1041},[8343],{"type":998,"value":1066},{"type":993,"tag":1026,"props":8345,"children":8346},{"style":1113},[8347],{"type":998,"value":8348},"11",{"type":993,"tag":1026,"props":8350,"children":8351},{"style":1041},[8352],{"type":998,"value":5730},{"type":993,"tag":1026,"props":8354,"children":8355},{"class":1028,"line":219},[8356,8361,8365,8369],{"type":993,"tag":1026,"props":8357,"children":8358},{"style":1041},[8359],{"type":998,"value":8360},"processed ",{"type":993,"tag":1026,"props":8362,"children":8363},{"style":1047},[8364],{"type":998,"value":1050},{"type":993,"tag":1026,"props":8366,"children":8367},{"style":1113},[8368],{"type":998,"value":7369},{"type":993,"tag":1026,"props":8370,"children":8371},{"style":1041},[8372],{"type":998,"value":8373},"(process_large_tuple(large_data))\n",{"type":993,"tag":1026,"props":8375,"children":8376},{"class":1028,"line":228},[8377,8381,8385,8389,8394,8398,8403,8407,8411],{"type":993,"tag":1026,"props":8378,"children":8379},{"style":1113},[8380],{"type":998,"value":1214},{"type":993,"tag":1026,"props":8382,"children":8383},{"style":1041},[8384],{"type":998,"value":1219},{"type":993,"tag":1026,"props":8386,"children":8387},{"style":1047},[8388],{"type":998,"value":1268},{"type":993,"tag":1026,"props":8390,"children":8391},{"style":1058},[8392],{"type":998,"value":8393},"\"Processed: ",{"type":993,"tag":1026,"props":8395,"children":8396},{"style":1113},[8397],{"type":998,"value":1278},{"type":993,"tag":1026,"props":8399,"children":8400},{"style":1041},[8401],{"type":998,"value":8402},"processed",{"type":993,"tag":1026,"props":8404,"children":8405},{"style":1113},[8406],{"type":998,"value":1288},{"type":993,"tag":1026,"props":8408,"children":8409},{"style":1058},[8410],{"type":998,"value":1293},{"type":993,"tag":1026,"props":8412,"children":8413},{"style":1041},[8414],{"type":998,"value":1094},{"type":993,"tag":1605,"props":8416,"children":8418},{"id":8417},"functional-programming-with-tuples",[8419],{"type":998,"value":8420},"Functional Programming with Tuples",{"type":993,"tag":1001,"props":8422,"children":8423},{},[8424],{"type":998,"value":8425},"Using filter, map, and functional approaches for tuple data processing.",{"type":993,"tag":1012,"props":8427,"children":8428},{},[8429],{"type":993,"tag":1016,"props":8430,"children":8432},{"className":1018,"code":8431,"language":6,"meta":8,"style":8},"# Functional programming approaches\nscores = (85, 92, 78, 96, 88, 73, 91, 87)\ntemperatures = (68.5, 75.2, 82.1, 79.8, 85.3, 90.1, 77.4)\n\n# Using filter to select elements\nhigh_scores = tuple(filter(lambda x: x >= 90, scores))\npassing_scores = tuple(filter(lambda x: x >= 80, scores))\n\nprint(f\"High scores (90+): {high_scores}\")\nprint(f\"Passing scores (80+): {passing_scores}\")\n\n# Using map to transform elements\nfahrenheit_to_celsius = tuple(map(lambda f: round((f - 32) * 5/9, 1), temperatures))\nscore_grades = tuple(map(lambda s: \"A\" if s >= 90 else \"B\" if s >= 80 else \"C\", scores))\n\nprint(f\"Celsius temperatures: {fahrenheit_to_celsius}\")\nprint(f\"Letter grades: {score_grades}\")\n\n# Combining functional operations\nhigh_celsius = tuple(\n    temp for temp in map(lambda f: (f - 32) * 5/9, temperatures) \n    if temp > 25\n)\nprint(f\"High Celsius temps (>25°C): {high_celsius}\")\n",[8433],{"type":993,"tag":1022,"props":8434,"children":8435},{"__ignoreMap":8},[8436,8444,8523,8601,8608,8616,8668,8716,8723,8764,8805,8812,8820,8912,9008,9015,9056,9097,9104,9112,9133,9204,9224,9231],{"type":993,"tag":1026,"props":8437,"children":8438},{"class":1028,"line":12},[8439],{"type":993,"tag":1026,"props":8440,"children":8441},{"style":1032},[8442],{"type":998,"value":8443},"# Functional programming approaches\n",{"type":993,"tag":1026,"props":8445,"children":8446},{"class":1028,"line":27},[8447,8451,8455,8459,8463,8467,8471,8475,8479,8483,8487,8491,8495,8499,8503,8507,8511,8515,8519],{"type":993,"tag":1026,"props":8448,"children":8449},{"style":1041},[8450],{"type":998,"value":2101},{"type":993,"tag":1026,"props":8452,"children":8453},{"style":1047},[8454],{"type":998,"value":1050},{"type":993,"tag":1026,"props":8456,"children":8457},{"style":1041},[8458],{"type":998,"value":1055},{"type":993,"tag":1026,"props":8460,"children":8461},{"style":1113},[8462],{"type":998,"value":2114},{"type":993,"tag":1026,"props":8464,"children":8465},{"style":1041},[8466],{"type":998,"value":1066},{"type":993,"tag":1026,"props":8468,"children":8469},{"style":1113},[8470],{"type":998,"value":2123},{"type":993,"tag":1026,"props":8472,"children":8473},{"style":1041},[8474],{"type":998,"value":1066},{"type":993,"tag":1026,"props":8476,"children":8477},{"style":1113},[8478],{"type":998,"value":2132},{"type":993,"tag":1026,"props":8480,"children":8481},{"style":1041},[8482],{"type":998,"value":1066},{"type":993,"tag":1026,"props":8484,"children":8485},{"style":1113},[8486],{"type":998,"value":2141},{"type":993,"tag":1026,"props":8488,"children":8489},{"style":1041},[8490],{"type":998,"value":1066},{"type":993,"tag":1026,"props":8492,"children":8493},{"style":1113},[8494],{"type":998,"value":2150},{"type":993,"tag":1026,"props":8496,"children":8497},{"style":1041},[8498],{"type":998,"value":1066},{"type":993,"tag":1026,"props":8500,"children":8501},{"style":1113},[8502],{"type":998,"value":2159},{"type":993,"tag":1026,"props":8504,"children":8505},{"style":1041},[8506],{"type":998,"value":1066},{"type":993,"tag":1026,"props":8508,"children":8509},{"style":1113},[8510],{"type":998,"value":2168},{"type":993,"tag":1026,"props":8512,"children":8513},{"style":1041},[8514],{"type":998,"value":1066},{"type":993,"tag":1026,"props":8516,"children":8517},{"style":1113},[8518],{"type":998,"value":3514},{"type":993,"tag":1026,"props":8520,"children":8521},{"style":1041},[8522],{"type":998,"value":1094},{"type":993,"tag":1026,"props":8524,"children":8525},{"class":1028,"line":36},[8526,8530,8534,8538,8543,8547,8552,8556,8561,8565,8570,8574,8579,8583,8588,8592,8597],{"type":993,"tag":1026,"props":8527,"children":8528},{"style":1041},[8529],{"type":998,"value":2180},{"type":993,"tag":1026,"props":8531,"children":8532},{"style":1047},[8533],{"type":998,"value":1050},{"type":993,"tag":1026,"props":8535,"children":8536},{"style":1041},[8537],{"type":998,"value":1055},{"type":993,"tag":1026,"props":8539,"children":8540},{"style":1113},[8541],{"type":998,"value":8542},"68.5",{"type":993,"tag":1026,"props":8544,"children":8545},{"style":1041},[8546],{"type":998,"value":1066},{"type":993,"tag":1026,"props":8548,"children":8549},{"style":1113},[8550],{"type":998,"value":8551},"75.2",{"type":993,"tag":1026,"props":8553,"children":8554},{"style":1041},[8555],{"type":998,"value":1066},{"type":993,"tag":1026,"props":8557,"children":8558},{"style":1113},[8559],{"type":998,"value":8560},"82.1",{"type":993,"tag":1026,"props":8562,"children":8563},{"style":1041},[8564],{"type":998,"value":1066},{"type":993,"tag":1026,"props":8566,"children":8567},{"style":1113},[8568],{"type":998,"value":8569},"79.8",{"type":993,"tag":1026,"props":8571,"children":8572},{"style":1041},[8573],{"type":998,"value":1066},{"type":993,"tag":1026,"props":8575,"children":8576},{"style":1113},[8577],{"type":998,"value":8578},"85.3",{"type":993,"tag":1026,"props":8580,"children":8581},{"style":1041},[8582],{"type":998,"value":1066},{"type":993,"tag":1026,"props":8584,"children":8585},{"style":1113},[8586],{"type":998,"value":8587},"90.1",{"type":993,"tag":1026,"props":8589,"children":8590},{"style":1041},[8591],{"type":998,"value":1066},{"type":993,"tag":1026,"props":8593,"children":8594},{"style":1113},[8595],{"type":998,"value":8596},"77.4",{"type":993,"tag":1026,"props":8598,"children":8599},{"style":1041},[8600],{"type":998,"value":1094},{"type":993,"tag":1026,"props":8602,"children":8603},{"class":1028,"line":45},[8604],{"type":993,"tag":1026,"props":8605,"children":8606},{"emptyLinePlaceholder":13},[8607],{"type":998,"value":1198},{"type":993,"tag":1026,"props":8609,"children":8610},{"class":1028,"line":54},[8611],{"type":993,"tag":1026,"props":8612,"children":8613},{"style":1032},[8614],{"type":998,"value":8615},"# Using filter to select elements\n",{"type":993,"tag":1026,"props":8617,"children":8618},{"class":1028,"line":63},[8619,8624,8628,8632,8636,8641,8645,8650,8655,8659,8663],{"type":993,"tag":1026,"props":8620,"children":8621},{"style":1041},[8622],{"type":998,"value":8623},"high_scores ",{"type":993,"tag":1026,"props":8625,"children":8626},{"style":1047},[8627],{"type":998,"value":1050},{"type":993,"tag":1026,"props":8629,"children":8630},{"style":1113},[8631],{"type":998,"value":7369},{"type":993,"tag":1026,"props":8633,"children":8634},{"style":1041},[8635],{"type":998,"value":1219},{"type":993,"tag":1026,"props":8637,"children":8638},{"style":1113},[8639],{"type":998,"value":8640},"filter",{"type":993,"tag":1026,"props":8642,"children":8643},{"style":1041},[8644],{"type":998,"value":1219},{"type":993,"tag":1026,"props":8646,"children":8647},{"style":1047},[8648],{"type":998,"value":8649},"lambda",{"type":993,"tag":1026,"props":8651,"children":8652},{"style":1041},[8653],{"type":998,"value":8654}," x: x ",{"type":993,"tag":1026,"props":8656,"children":8657},{"style":1047},[8658],{"type":998,"value":2323},{"type":993,"tag":1026,"props":8660,"children":8661},{"style":1113},[8662],{"type":998,"value":2328},{"type":993,"tag":1026,"props":8664,"children":8665},{"style":1041},[8666],{"type":998,"value":8667},", scores))\n",{"type":993,"tag":1026,"props":8669,"children":8670},{"class":1028,"line":72},[8671,8676,8680,8684,8688,8692,8696,8700,8704,8708,8712],{"type":993,"tag":1026,"props":8672,"children":8673},{"style":1041},[8674],{"type":998,"value":8675},"passing_scores ",{"type":993,"tag":1026,"props":8677,"children":8678},{"style":1047},[8679],{"type":998,"value":1050},{"type":993,"tag":1026,"props":8681,"children":8682},{"style":1113},[8683],{"type":998,"value":7369},{"type":993,"tag":1026,"props":8685,"children":8686},{"style":1041},[8687],{"type":998,"value":1219},{"type":993,"tag":1026,"props":8689,"children":8690},{"style":1113},[8691],{"type":998,"value":8640},{"type":993,"tag":1026,"props":8693,"children":8694},{"style":1041},[8695],{"type":998,"value":1219},{"type":993,"tag":1026,"props":8697,"children":8698},{"style":1047},[8699],{"type":998,"value":8649},{"type":993,"tag":1026,"props":8701,"children":8702},{"style":1041},[8703],{"type":998,"value":8654},{"type":993,"tag":1026,"props":8705,"children":8706},{"style":1047},[8707],{"type":998,"value":2323},{"type":993,"tag":1026,"props":8709,"children":8710},{"style":1113},[8711],{"type":998,"value":5149},{"type":993,"tag":1026,"props":8713,"children":8714},{"style":1041},[8715],{"type":998,"value":8667},{"type":993,"tag":1026,"props":8717,"children":8718},{"class":1028,"line":81},[8719],{"type":993,"tag":1026,"props":8720,"children":8721},{"emptyLinePlaceholder":13},[8722],{"type":998,"value":1198},{"type":993,"tag":1026,"props":8724,"children":8725},{"class":1028,"line":91},[8726,8730,8734,8738,8743,8747,8752,8756,8760],{"type":993,"tag":1026,"props":8727,"children":8728},{"style":1113},[8729],{"type":998,"value":1214},{"type":993,"tag":1026,"props":8731,"children":8732},{"style":1041},[8733],{"type":998,"value":1219},{"type":993,"tag":1026,"props":8735,"children":8736},{"style":1047},[8737],{"type":998,"value":1268},{"type":993,"tag":1026,"props":8739,"children":8740},{"style":1058},[8741],{"type":998,"value":8742},"\"High scores (90+): ",{"type":993,"tag":1026,"props":8744,"children":8745},{"style":1113},[8746],{"type":998,"value":1278},{"type":993,"tag":1026,"props":8748,"children":8749},{"style":1041},[8750],{"type":998,"value":8751},"high_scores",{"type":993,"tag":1026,"props":8753,"children":8754},{"style":1113},[8755],{"type":998,"value":1288},{"type":993,"tag":1026,"props":8757,"children":8758},{"style":1058},[8759],{"type":998,"value":1293},{"type":993,"tag":1026,"props":8761,"children":8762},{"style":1041},[8763],{"type":998,"value":1094},{"type":993,"tag":1026,"props":8765,"children":8766},{"class":1028,"line":100},[8767,8771,8775,8779,8784,8788,8793,8797,8801],{"type":993,"tag":1026,"props":8768,"children":8769},{"style":1113},[8770],{"type":998,"value":1214},{"type":993,"tag":1026,"props":8772,"children":8773},{"style":1041},[8774],{"type":998,"value":1219},{"type":993,"tag":1026,"props":8776,"children":8777},{"style":1047},[8778],{"type":998,"value":1268},{"type":993,"tag":1026,"props":8780,"children":8781},{"style":1058},[8782],{"type":998,"value":8783},"\"Passing scores (80+): ",{"type":993,"tag":1026,"props":8785,"children":8786},{"style":1113},[8787],{"type":998,"value":1278},{"type":993,"tag":1026,"props":8789,"children":8790},{"style":1041},[8791],{"type":998,"value":8792},"passing_scores",{"type":993,"tag":1026,"props":8794,"children":8795},{"style":1113},[8796],{"type":998,"value":1288},{"type":993,"tag":1026,"props":8798,"children":8799},{"style":1058},[8800],{"type":998,"value":1293},{"type":993,"tag":1026,"props":8802,"children":8803},{"style":1041},[8804],{"type":998,"value":1094},{"type":993,"tag":1026,"props":8806,"children":8807},{"class":1028,"line":109},[8808],{"type":993,"tag":1026,"props":8809,"children":8810},{"emptyLinePlaceholder":13},[8811],{"type":998,"value":1198},{"type":993,"tag":1026,"props":8813,"children":8814},{"class":1028,"line":118},[8815],{"type":993,"tag":1026,"props":8816,"children":8817},{"style":1032},[8818],{"type":998,"value":8819},"# Using map to transform elements\n",{"type":993,"tag":1026,"props":8821,"children":8822},{"class":1028,"line":127},[8823,8828,8832,8836,8840,8845,8849,8853,8858,8863,8868,8872,8877,8882,8886,8891,8895,8899,8903,8907],{"type":993,"tag":1026,"props":8824,"children":8825},{"style":1041},[8826],{"type":998,"value":8827},"fahrenheit_to_celsius ",{"type":993,"tag":1026,"props":8829,"children":8830},{"style":1047},[8831],{"type":998,"value":1050},{"type":993,"tag":1026,"props":8833,"children":8834},{"style":1113},[8835],{"type":998,"value":7369},{"type":993,"tag":1026,"props":8837,"children":8838},{"style":1041},[8839],{"type":998,"value":1219},{"type":993,"tag":1026,"props":8841,"children":8842},{"style":1113},[8843],{"type":998,"value":8844},"map",{"type":993,"tag":1026,"props":8846,"children":8847},{"style":1041},[8848],{"type":998,"value":1219},{"type":993,"tag":1026,"props":8850,"children":8851},{"style":1047},[8852],{"type":998,"value":8649},{"type":993,"tag":1026,"props":8854,"children":8855},{"style":1041},[8856],{"type":998,"value":8857}," f: ",{"type":993,"tag":1026,"props":8859,"children":8860},{"style":1113},[8861],{"type":998,"value":8862},"round",{"type":993,"tag":1026,"props":8864,"children":8865},{"style":1041},[8866],{"type":998,"value":8867},"((f ",{"type":993,"tag":1026,"props":8869,"children":8870},{"style":1047},[8871],{"type":998,"value":4526},{"type":993,"tag":1026,"props":8873,"children":8874},{"style":1113},[8875],{"type":998,"value":8876}," 32",{"type":993,"tag":1026,"props":8878,"children":8879},{"style":1041},[8880],{"type":998,"value":8881},") ",{"type":993,"tag":1026,"props":8883,"children":8884},{"style":1047},[8885],{"type":998,"value":8286},{"type":993,"tag":1026,"props":8887,"children":8888},{"style":1113},[8889],{"type":998,"value":8890}," 5",{"type":993,"tag":1026,"props":8892,"children":8893},{"style":1047},[8894],{"type":998,"value":3053},{"type":993,"tag":1026,"props":8896,"children":8897},{"style":1113},[8898],{"type":998,"value":1672},{"type":993,"tag":1026,"props":8900,"children":8901},{"style":1041},[8902],{"type":998,"value":1066},{"type":993,"tag":1026,"props":8904,"children":8905},{"style":1113},[8906],{"type":998,"value":1654},{"type":993,"tag":1026,"props":8908,"children":8909},{"style":1041},[8910],{"type":998,"value":8911},"), temperatures))\n",{"type":993,"tag":1026,"props":8913,"children":8914},{"class":1028,"line":136},[8915,8920,8924,8928,8932,8936,8940,8944,8949,8954,8958,8963,8967,8971,8975,8979,8983,8987,8991,8995,8999,9004],{"type":993,"tag":1026,"props":8916,"children":8917},{"style":1041},[8918],{"type":998,"value":8919},"score_grades ",{"type":993,"tag":1026,"props":8921,"children":8922},{"style":1047},[8923],{"type":998,"value":1050},{"type":993,"tag":1026,"props":8925,"children":8926},{"style":1113},[8927],{"type":998,"value":7369},{"type":993,"tag":1026,"props":8929,"children":8930},{"style":1041},[8931],{"type":998,"value":1219},{"type":993,"tag":1026,"props":8933,"children":8934},{"style":1113},[8935],{"type":998,"value":8844},{"type":993,"tag":1026,"props":8937,"children":8938},{"style":1041},[8939],{"type":998,"value":1219},{"type":993,"tag":1026,"props":8941,"children":8942},{"style":1047},[8943],{"type":998,"value":8649},{"type":993,"tag":1026,"props":8945,"children":8946},{"style":1041},[8947],{"type":998,"value":8948}," s: ",{"type":993,"tag":1026,"props":8950,"children":8951},{"style":1058},[8952],{"type":998,"value":8953},"\"A\"",{"type":993,"tag":1026,"props":8955,"children":8956},{"style":1047},[8957],{"type":998,"value":2355},{"type":993,"tag":1026,"props":8959,"children":8960},{"style":1041},[8961],{"type":998,"value":8962}," s ",{"type":993,"tag":1026,"props":8964,"children":8965},{"style":1047},[8966],{"type":998,"value":2323},{"type":993,"tag":1026,"props":8968,"children":8969},{"style":1113},[8970],{"type":998,"value":2328},{"type":993,"tag":1026,"props":8972,"children":8973},{"style":1047},[8974],{"type":998,"value":2373},{"type":993,"tag":1026,"props":8976,"children":8977},{"style":1058},[8978],{"type":998,"value":5132},{"type":993,"tag":1026,"props":8980,"children":8981},{"style":1047},[8982],{"type":998,"value":2355},{"type":993,"tag":1026,"props":8984,"children":8985},{"style":1041},[8986],{"type":998,"value":8962},{"type":993,"tag":1026,"props":8988,"children":8989},{"style":1047},[8990],{"type":998,"value":2323},{"type":993,"tag":1026,"props":8992,"children":8993},{"style":1113},[8994],{"type":998,"value":5149},{"type":993,"tag":1026,"props":8996,"children":8997},{"style":1047},[8998],{"type":998,"value":2373},{"type":993,"tag":1026,"props":9000,"children":9001},{"style":1058},[9002],{"type":998,"value":9003}," \"C\"",{"type":993,"tag":1026,"props":9005,"children":9006},{"style":1041},[9007],{"type":998,"value":8667},{"type":993,"tag":1026,"props":9009,"children":9010},{"class":1028,"line":146},[9011],{"type":993,"tag":1026,"props":9012,"children":9013},{"emptyLinePlaceholder":13},[9014],{"type":998,"value":1198},{"type":993,"tag":1026,"props":9016,"children":9017},{"class":1028,"line":155},[9018,9022,9026,9030,9035,9039,9044,9048,9052],{"type":993,"tag":1026,"props":9019,"children":9020},{"style":1113},[9021],{"type":998,"value":1214},{"type":993,"tag":1026,"props":9023,"children":9024},{"style":1041},[9025],{"type":998,"value":1219},{"type":993,"tag":1026,"props":9027,"children":9028},{"style":1047},[9029],{"type":998,"value":1268},{"type":993,"tag":1026,"props":9031,"children":9032},{"style":1058},[9033],{"type":998,"value":9034},"\"Celsius temperatures: ",{"type":993,"tag":1026,"props":9036,"children":9037},{"style":1113},[9038],{"type":998,"value":1278},{"type":993,"tag":1026,"props":9040,"children":9041},{"style":1041},[9042],{"type":998,"value":9043},"fahrenheit_to_celsius",{"type":993,"tag":1026,"props":9045,"children":9046},{"style":1113},[9047],{"type":998,"value":1288},{"type":993,"tag":1026,"props":9049,"children":9050},{"style":1058},[9051],{"type":998,"value":1293},{"type":993,"tag":1026,"props":9053,"children":9054},{"style":1041},[9055],{"type":998,"value":1094},{"type":993,"tag":1026,"props":9057,"children":9058},{"class":1028,"line":164},[9059,9063,9067,9071,9076,9080,9085,9089,9093],{"type":993,"tag":1026,"props":9060,"children":9061},{"style":1113},[9062],{"type":998,"value":1214},{"type":993,"tag":1026,"props":9064,"children":9065},{"style":1041},[9066],{"type":998,"value":1219},{"type":993,"tag":1026,"props":9068,"children":9069},{"style":1047},[9070],{"type":998,"value":1268},{"type":993,"tag":1026,"props":9072,"children":9073},{"style":1058},[9074],{"type":998,"value":9075},"\"Letter grades: ",{"type":993,"tag":1026,"props":9077,"children":9078},{"style":1113},[9079],{"type":998,"value":1278},{"type":993,"tag":1026,"props":9081,"children":9082},{"style":1041},[9083],{"type":998,"value":9084},"score_grades",{"type":993,"tag":1026,"props":9086,"children":9087},{"style":1113},[9088],{"type":998,"value":1288},{"type":993,"tag":1026,"props":9090,"children":9091},{"style":1058},[9092],{"type":998,"value":1293},{"type":993,"tag":1026,"props":9094,"children":9095},{"style":1041},[9096],{"type":998,"value":1094},{"type":993,"tag":1026,"props":9098,"children":9099},{"class":1028,"line":173},[9100],{"type":993,"tag":1026,"props":9101,"children":9102},{"emptyLinePlaceholder":13},[9103],{"type":998,"value":1198},{"type":993,"tag":1026,"props":9105,"children":9106},{"class":1028,"line":182},[9107],{"type":993,"tag":1026,"props":9108,"children":9109},{"style":1032},[9110],{"type":998,"value":9111},"# Combining functional operations\n",{"type":993,"tag":1026,"props":9113,"children":9114},{"class":1028,"line":191},[9115,9120,9124,9128],{"type":993,"tag":1026,"props":9116,"children":9117},{"style":1041},[9118],{"type":998,"value":9119},"high_celsius ",{"type":993,"tag":1026,"props":9121,"children":9122},{"style":1047},[9123],{"type":998,"value":1050},{"type":993,"tag":1026,"props":9125,"children":9126},{"style":1113},[9127],{"type":998,"value":7369},{"type":993,"tag":1026,"props":9129,"children":9130},{"style":1041},[9131],{"type":998,"value":9132},"(\n",{"type":993,"tag":1026,"props":9134,"children":9135},{"class":1028,"line":201},[9136,9141,9145,9149,9153,9158,9162,9166,9171,9175,9179,9183,9187,9191,9195,9199],{"type":993,"tag":1026,"props":9137,"children":9138},{"style":1041},[9139],{"type":998,"value":9140},"    temp ",{"type":993,"tag":1026,"props":9142,"children":9143},{"style":1047},[9144],{"type":998,"value":1236},{"type":993,"tag":1026,"props":9146,"children":9147},{"style":1041},[9148],{"type":998,"value":2494},{"type":993,"tag":1026,"props":9150,"children":9151},{"style":1047},[9152],{"type":998,"value":1246},{"type":993,"tag":1026,"props":9154,"children":9155},{"style":1113},[9156],{"type":998,"value":9157}," map",{"type":993,"tag":1026,"props":9159,"children":9160},{"style":1041},[9161],{"type":998,"value":1219},{"type":993,"tag":1026,"props":9163,"children":9164},{"style":1047},[9165],{"type":998,"value":8649},{"type":993,"tag":1026,"props":9167,"children":9168},{"style":1041},[9169],{"type":998,"value":9170}," f: (f ",{"type":993,"tag":1026,"props":9172,"children":9173},{"style":1047},[9174],{"type":998,"value":4526},{"type":993,"tag":1026,"props":9176,"children":9177},{"style":1113},[9178],{"type":998,"value":8876},{"type":993,"tag":1026,"props":9180,"children":9181},{"style":1041},[9182],{"type":998,"value":8881},{"type":993,"tag":1026,"props":9184,"children":9185},{"style":1047},[9186],{"type":998,"value":8286},{"type":993,"tag":1026,"props":9188,"children":9189},{"style":1113},[9190],{"type":998,"value":8890},{"type":993,"tag":1026,"props":9192,"children":9193},{"style":1047},[9194],{"type":998,"value":3053},{"type":993,"tag":1026,"props":9196,"children":9197},{"style":1113},[9198],{"type":998,"value":1672},{"type":993,"tag":1026,"props":9200,"children":9201},{"style":1041},[9202],{"type":998,"value":9203},", temperatures) \n",{"type":993,"tag":1026,"props":9205,"children":9206},{"class":1028,"line":210},[9207,9211,9215,9219],{"type":993,"tag":1026,"props":9208,"children":9209},{"style":1047},[9210],{"type":998,"value":2314},{"type":993,"tag":1026,"props":9212,"children":9213},{"style":1041},[9214],{"type":998,"value":2494},{"type":993,"tag":1026,"props":9216,"children":9217},{"style":1047},[9218],{"type":998,"value":2941},{"type":993,"tag":1026,"props":9220,"children":9221},{"style":1113},[9222],{"type":998,"value":9223}," 25\n",{"type":993,"tag":1026,"props":9225,"children":9226},{"class":1028,"line":219},[9227],{"type":993,"tag":1026,"props":9228,"children":9229},{"style":1041},[9230],{"type":998,"value":1094},{"type":993,"tag":1026,"props":9232,"children":9233},{"class":1028,"line":228},[9234,9238,9242,9246,9251,9255,9260,9264,9268],{"type":993,"tag":1026,"props":9235,"children":9236},{"style":1113},[9237],{"type":998,"value":1214},{"type":993,"tag":1026,"props":9239,"children":9240},{"style":1041},[9241],{"type":998,"value":1219},{"type":993,"tag":1026,"props":9243,"children":9244},{"style":1047},[9245],{"type":998,"value":1268},{"type":993,"tag":1026,"props":9247,"children":9248},{"style":1058},[9249],{"type":998,"value":9250},"\"High Celsius temps (>25°C): ",{"type":993,"tag":1026,"props":9252,"children":9253},{"style":1113},[9254],{"type":998,"value":1278},{"type":993,"tag":1026,"props":9256,"children":9257},{"style":1041},[9258],{"type":998,"value":9259},"high_celsius",{"type":993,"tag":1026,"props":9261,"children":9262},{"style":1113},[9263],{"type":998,"value":1288},{"type":993,"tag":1026,"props":9265,"children":9266},{"style":1058},[9267],{"type":998,"value":1293},{"type":993,"tag":1026,"props":9269,"children":9270},{"style":1041},[9271],{"type":998,"value":1094},{"type":993,"tag":1605,"props":9273,"children":9275},{"id":9274},"boolean-testing-and-validation",[9276],{"type":998,"value":9277},"Boolean Testing and Validation",{"type":993,"tag":1001,"props":9279,"children":9280},{},[9281],{"type":998,"value":9282},"Using any(), all(), and related functions for tuple-wide boolean operations.",{"type":993,"tag":1012,"props":9284,"children":9285},{},[9286],{"type":993,"tag":1016,"props":9287,"children":9289},{"className":1018,"code":9288,"language":6,"meta":8,"style":8},"# Boolean testing across tuples\ntest_scores = (85, 92, 78, 96, 88)\nattendance = (True, True, False, True, True)\npermissions = (True, True, True, True, True)\n\n# Test conditions across entire tuple\nall_passing = all(score >= 70 for score in test_scores)\nany_excellent = any(score >= 95 for score in test_scores)\nperfect_attendance = all(attendance)\nany_absent = any(not present for present in attendance)\n\nprint(f\"All students passing (70+): {all_passing}\")\nprint(f\"Any excellent scores (95+): {any_excellent}\")\nprint(f\"Perfect attendance: {perfect_attendance}\")\nprint(f\"Any absences: {any_absent}\")\n\n# Complex validation\ndef validate_data(data_tuple):\n    \"\"\"Validate tuple data meets criteria\"\"\"\n    if not data_tuple:\n        return False, \"Empty data\"\n    \n    if not all(isinstance(x, (int, float)) for x in data_tuple):\n        return False, \"All elements must be numbers\"\n    \n    if any(x \u003C 0 for x in data_tuple):\n        return False, \"Negative values not allowed\"\n    \n    return True, \"Valid data\"\n\n# Test validation\ntest_data = [(85, 92, 78), (-5, 10, 15), (\"text\", 42), ()]\nfor data in test_data:\n    valid, message = validate_data(data)\n    print(f\"Data {data}: {message}\")\n",[9290],{"type":993,"tag":1022,"props":9291,"children":9292},{"__ignoreMap":8},[9293,9301,9357,9415,9471,9478,9486,9534,9579,9600,9647,9654,9695,9736,9777,9818,9825,9833,9849,9857,9873,9895,9903,9966,9986,9993,10032,10052,10059,10081,10088,10096,10184,10205,10222],{"type":993,"tag":1026,"props":9294,"children":9295},{"class":1028,"line":12},[9296],{"type":993,"tag":1026,"props":9297,"children":9298},{"style":1032},[9299],{"type":998,"value":9300},"# Boolean testing across tuples\n",{"type":993,"tag":1026,"props":9302,"children":9303},{"class":1028,"line":27},[9304,9309,9313,9317,9321,9325,9329,9333,9337,9341,9345,9349,9353],{"type":993,"tag":1026,"props":9305,"children":9306},{"style":1041},[9307],{"type":998,"value":9308},"test_scores ",{"type":993,"tag":1026,"props":9310,"children":9311},{"style":1047},[9312],{"type":998,"value":1050},{"type":993,"tag":1026,"props":9314,"children":9315},{"style":1041},[9316],{"type":998,"value":1055},{"type":993,"tag":1026,"props":9318,"children":9319},{"style":1113},[9320],{"type":998,"value":2114},{"type":993,"tag":1026,"props":9322,"children":9323},{"style":1041},[9324],{"type":998,"value":1066},{"type":993,"tag":1026,"props":9326,"children":9327},{"style":1113},[9328],{"type":998,"value":2123},{"type":993,"tag":1026,"props":9330,"children":9331},{"style":1041},[9332],{"type":998,"value":1066},{"type":993,"tag":1026,"props":9334,"children":9335},{"style":1113},[9336],{"type":998,"value":2132},{"type":993,"tag":1026,"props":9338,"children":9339},{"style":1041},[9340],{"type":998,"value":1066},{"type":993,"tag":1026,"props":9342,"children":9343},{"style":1113},[9344],{"type":998,"value":2141},{"type":993,"tag":1026,"props":9346,"children":9347},{"style":1041},[9348],{"type":998,"value":1066},{"type":993,"tag":1026,"props":9350,"children":9351},{"style":1113},[9352],{"type":998,"value":2150},{"type":993,"tag":1026,"props":9354,"children":9355},{"style":1041},[9356],{"type":998,"value":1094},{"type":993,"tag":1026,"props":9358,"children":9359},{"class":1028,"line":36},[9360,9365,9369,9373,9378,9382,9386,9390,9395,9399,9403,9407,9411],{"type":993,"tag":1026,"props":9361,"children":9362},{"style":1041},[9363],{"type":998,"value":9364},"attendance ",{"type":993,"tag":1026,"props":9366,"children":9367},{"style":1047},[9368],{"type":998,"value":1050},{"type":993,"tag":1026,"props":9370,"children":9371},{"style":1041},[9372],{"type":998,"value":1055},{"type":993,"tag":1026,"props":9374,"children":9375},{"style":1113},[9376],{"type":998,"value":9377},"True",{"type":993,"tag":1026,"props":9379,"children":9380},{"style":1041},[9381],{"type":998,"value":1066},{"type":993,"tag":1026,"props":9383,"children":9384},{"style":1113},[9385],{"type":998,"value":9377},{"type":993,"tag":1026,"props":9387,"children":9388},{"style":1041},[9389],{"type":998,"value":1066},{"type":993,"tag":1026,"props":9391,"children":9392},{"style":1113},[9393],{"type":998,"value":9394},"False",{"type":993,"tag":1026,"props":9396,"children":9397},{"style":1041},[9398],{"type":998,"value":1066},{"type":993,"tag":1026,"props":9400,"children":9401},{"style":1113},[9402],{"type":998,"value":9377},{"type":993,"tag":1026,"props":9404,"children":9405},{"style":1041},[9406],{"type":998,"value":1066},{"type":993,"tag":1026,"props":9408,"children":9409},{"style":1113},[9410],{"type":998,"value":9377},{"type":993,"tag":1026,"props":9412,"children":9413},{"style":1041},[9414],{"type":998,"value":1094},{"type":993,"tag":1026,"props":9416,"children":9417},{"class":1028,"line":45},[9418,9423,9427,9431,9435,9439,9443,9447,9451,9455,9459,9463,9467],{"type":993,"tag":1026,"props":9419,"children":9420},{"style":1041},[9421],{"type":998,"value":9422},"permissions ",{"type":993,"tag":1026,"props":9424,"children":9425},{"style":1047},[9426],{"type":998,"value":1050},{"type":993,"tag":1026,"props":9428,"children":9429},{"style":1041},[9430],{"type":998,"value":1055},{"type":993,"tag":1026,"props":9432,"children":9433},{"style":1113},[9434],{"type":998,"value":9377},{"type":993,"tag":1026,"props":9436,"children":9437},{"style":1041},[9438],{"type":998,"value":1066},{"type":993,"tag":1026,"props":9440,"children":9441},{"style":1113},[9442],{"type":998,"value":9377},{"type":993,"tag":1026,"props":9444,"children":9445},{"style":1041},[9446],{"type":998,"value":1066},{"type":993,"tag":1026,"props":9448,"children":9449},{"style":1113},[9450],{"type":998,"value":9377},{"type":993,"tag":1026,"props":9452,"children":9453},{"style":1041},[9454],{"type":998,"value":1066},{"type":993,"tag":1026,"props":9456,"children":9457},{"style":1113},[9458],{"type":998,"value":9377},{"type":993,"tag":1026,"props":9460,"children":9461},{"style":1041},[9462],{"type":998,"value":1066},{"type":993,"tag":1026,"props":9464,"children":9465},{"style":1113},[9466],{"type":998,"value":9377},{"type":993,"tag":1026,"props":9468,"children":9469},{"style":1041},[9470],{"type":998,"value":1094},{"type":993,"tag":1026,"props":9472,"children":9473},{"class":1028,"line":54},[9474],{"type":993,"tag":1026,"props":9475,"children":9476},{"emptyLinePlaceholder":13},[9477],{"type":998,"value":1198},{"type":993,"tag":1026,"props":9479,"children":9480},{"class":1028,"line":63},[9481],{"type":993,"tag":1026,"props":9482,"children":9483},{"style":1032},[9484],{"type":998,"value":9485},"# Test conditions across entire tuple\n",{"type":993,"tag":1026,"props":9487,"children":9488},{"class":1028,"line":72},[9489,9494,9498,9503,9508,9512,9517,9521,9525,9529],{"type":993,"tag":1026,"props":9490,"children":9491},{"style":1041},[9492],{"type":998,"value":9493},"all_passing ",{"type":993,"tag":1026,"props":9495,"children":9496},{"style":1047},[9497],{"type":998,"value":1050},{"type":993,"tag":1026,"props":9499,"children":9500},{"style":1113},[9501],{"type":998,"value":9502}," all",{"type":993,"tag":1026,"props":9504,"children":9505},{"style":1041},[9506],{"type":998,"value":9507},"(score ",{"type":993,"tag":1026,"props":9509,"children":9510},{"style":1047},[9511],{"type":998,"value":2323},{"type":993,"tag":1026,"props":9513,"children":9514},{"style":1113},[9515],{"type":998,"value":9516}," 70",{"type":993,"tag":1026,"props":9518,"children":9519},{"style":1047},[9520],{"type":998,"value":7912},{"type":993,"tag":1026,"props":9522,"children":9523},{"style":1041},[9524],{"type":998,"value":2297},{"type":993,"tag":1026,"props":9526,"children":9527},{"style":1047},[9528],{"type":998,"value":1246},{"type":993,"tag":1026,"props":9530,"children":9531},{"style":1041},[9532],{"type":998,"value":9533}," test_scores)\n",{"type":993,"tag":1026,"props":9535,"children":9536},{"class":1028,"line":81},[9537,9542,9546,9551,9555,9559,9563,9567,9571,9575],{"type":993,"tag":1026,"props":9538,"children":9539},{"style":1041},[9540],{"type":998,"value":9541},"any_excellent ",{"type":993,"tag":1026,"props":9543,"children":9544},{"style":1047},[9545],{"type":998,"value":1050},{"type":993,"tag":1026,"props":9547,"children":9548},{"style":1113},[9549],{"type":998,"value":9550}," any",{"type":993,"tag":1026,"props":9552,"children":9553},{"style":1041},[9554],{"type":998,"value":9507},{"type":993,"tag":1026,"props":9556,"children":9557},{"style":1047},[9558],{"type":998,"value":2323},{"type":993,"tag":1026,"props":9560,"children":9561},{"style":1113},[9562],{"type":998,"value":2368},{"type":993,"tag":1026,"props":9564,"children":9565},{"style":1047},[9566],{"type":998,"value":7912},{"type":993,"tag":1026,"props":9568,"children":9569},{"style":1041},[9570],{"type":998,"value":2297},{"type":993,"tag":1026,"props":9572,"children":9573},{"style":1047},[9574],{"type":998,"value":1246},{"type":993,"tag":1026,"props":9576,"children":9577},{"style":1041},[9578],{"type":998,"value":9533},{"type":993,"tag":1026,"props":9580,"children":9581},{"class":1028,"line":91},[9582,9587,9591,9595],{"type":993,"tag":1026,"props":9583,"children":9584},{"style":1041},[9585],{"type":998,"value":9586},"perfect_attendance ",{"type":993,"tag":1026,"props":9588,"children":9589},{"style":1047},[9590],{"type":998,"value":1050},{"type":993,"tag":1026,"props":9592,"children":9593},{"style":1113},[9594],{"type":998,"value":9502},{"type":993,"tag":1026,"props":9596,"children":9597},{"style":1041},[9598],{"type":998,"value":9599},"(attendance)\n",{"type":993,"tag":1026,"props":9601,"children":9602},{"class":1028,"line":100},[9603,9608,9612,9616,9620,9625,9630,9634,9638,9642],{"type":993,"tag":1026,"props":9604,"children":9605},{"style":1041},[9606],{"type":998,"value":9607},"any_absent ",{"type":993,"tag":1026,"props":9609,"children":9610},{"style":1047},[9611],{"type":998,"value":1050},{"type":993,"tag":1026,"props":9613,"children":9614},{"style":1113},[9615],{"type":998,"value":9550},{"type":993,"tag":1026,"props":9617,"children":9618},{"style":1041},[9619],{"type":998,"value":1219},{"type":993,"tag":1026,"props":9621,"children":9622},{"style":1047},[9623],{"type":998,"value":9624},"not",{"type":993,"tag":1026,"props":9626,"children":9627},{"style":1041},[9628],{"type":998,"value":9629}," present ",{"type":993,"tag":1026,"props":9631,"children":9632},{"style":1047},[9633],{"type":998,"value":1236},{"type":993,"tag":1026,"props":9635,"children":9636},{"style":1041},[9637],{"type":998,"value":9629},{"type":993,"tag":1026,"props":9639,"children":9640},{"style":1047},[9641],{"type":998,"value":1246},{"type":993,"tag":1026,"props":9643,"children":9644},{"style":1041},[9645],{"type":998,"value":9646}," attendance)\n",{"type":993,"tag":1026,"props":9648,"children":9649},{"class":1028,"line":109},[9650],{"type":993,"tag":1026,"props":9651,"children":9652},{"emptyLinePlaceholder":13},[9653],{"type":998,"value":1198},{"type":993,"tag":1026,"props":9655,"children":9656},{"class":1028,"line":118},[9657,9661,9665,9669,9674,9678,9683,9687,9691],{"type":993,"tag":1026,"props":9658,"children":9659},{"style":1113},[9660],{"type":998,"value":1214},{"type":993,"tag":1026,"props":9662,"children":9663},{"style":1041},[9664],{"type":998,"value":1219},{"type":993,"tag":1026,"props":9666,"children":9667},{"style":1047},[9668],{"type":998,"value":1268},{"type":993,"tag":1026,"props":9670,"children":9671},{"style":1058},[9672],{"type":998,"value":9673},"\"All students passing (70+): ",{"type":993,"tag":1026,"props":9675,"children":9676},{"style":1113},[9677],{"type":998,"value":1278},{"type":993,"tag":1026,"props":9679,"children":9680},{"style":1041},[9681],{"type":998,"value":9682},"all_passing",{"type":993,"tag":1026,"props":9684,"children":9685},{"style":1113},[9686],{"type":998,"value":1288},{"type":993,"tag":1026,"props":9688,"children":9689},{"style":1058},[9690],{"type":998,"value":1293},{"type":993,"tag":1026,"props":9692,"children":9693},{"style":1041},[9694],{"type":998,"value":1094},{"type":993,"tag":1026,"props":9696,"children":9697},{"class":1028,"line":127},[9698,9702,9706,9710,9715,9719,9724,9728,9732],{"type":993,"tag":1026,"props":9699,"children":9700},{"style":1113},[9701],{"type":998,"value":1214},{"type":993,"tag":1026,"props":9703,"children":9704},{"style":1041},[9705],{"type":998,"value":1219},{"type":993,"tag":1026,"props":9707,"children":9708},{"style":1047},[9709],{"type":998,"value":1268},{"type":993,"tag":1026,"props":9711,"children":9712},{"style":1058},[9713],{"type":998,"value":9714},"\"Any excellent scores (95+): ",{"type":993,"tag":1026,"props":9716,"children":9717},{"style":1113},[9718],{"type":998,"value":1278},{"type":993,"tag":1026,"props":9720,"children":9721},{"style":1041},[9722],{"type":998,"value":9723},"any_excellent",{"type":993,"tag":1026,"props":9725,"children":9726},{"style":1113},[9727],{"type":998,"value":1288},{"type":993,"tag":1026,"props":9729,"children":9730},{"style":1058},[9731],{"type":998,"value":1293},{"type":993,"tag":1026,"props":9733,"children":9734},{"style":1041},[9735],{"type":998,"value":1094},{"type":993,"tag":1026,"props":9737,"children":9738},{"class":1028,"line":136},[9739,9743,9747,9751,9756,9760,9765,9769,9773],{"type":993,"tag":1026,"props":9740,"children":9741},{"style":1113},[9742],{"type":998,"value":1214},{"type":993,"tag":1026,"props":9744,"children":9745},{"style":1041},[9746],{"type":998,"value":1219},{"type":993,"tag":1026,"props":9748,"children":9749},{"style":1047},[9750],{"type":998,"value":1268},{"type":993,"tag":1026,"props":9752,"children":9753},{"style":1058},[9754],{"type":998,"value":9755},"\"Perfect attendance: ",{"type":993,"tag":1026,"props":9757,"children":9758},{"style":1113},[9759],{"type":998,"value":1278},{"type":993,"tag":1026,"props":9761,"children":9762},{"style":1041},[9763],{"type":998,"value":9764},"perfect_attendance",{"type":993,"tag":1026,"props":9766,"children":9767},{"style":1113},[9768],{"type":998,"value":1288},{"type":993,"tag":1026,"props":9770,"children":9771},{"style":1058},[9772],{"type":998,"value":1293},{"type":993,"tag":1026,"props":9774,"children":9775},{"style":1041},[9776],{"type":998,"value":1094},{"type":993,"tag":1026,"props":9778,"children":9779},{"class":1028,"line":146},[9780,9784,9788,9792,9797,9801,9806,9810,9814],{"type":993,"tag":1026,"props":9781,"children":9782},{"style":1113},[9783],{"type":998,"value":1214},{"type":993,"tag":1026,"props":9785,"children":9786},{"style":1041},[9787],{"type":998,"value":1219},{"type":993,"tag":1026,"props":9789,"children":9790},{"style":1047},[9791],{"type":998,"value":1268},{"type":993,"tag":1026,"props":9793,"children":9794},{"style":1058},[9795],{"type":998,"value":9796},"\"Any absences: ",{"type":993,"tag":1026,"props":9798,"children":9799},{"style":1113},[9800],{"type":998,"value":1278},{"type":993,"tag":1026,"props":9802,"children":9803},{"style":1041},[9804],{"type":998,"value":9805},"any_absent",{"type":993,"tag":1026,"props":9807,"children":9808},{"style":1113},[9809],{"type":998,"value":1288},{"type":993,"tag":1026,"props":9811,"children":9812},{"style":1058},[9813],{"type":998,"value":1293},{"type":993,"tag":1026,"props":9815,"children":9816},{"style":1041},[9817],{"type":998,"value":1094},{"type":993,"tag":1026,"props":9819,"children":9820},{"class":1028,"line":155},[9821],{"type":993,"tag":1026,"props":9822,"children":9823},{"emptyLinePlaceholder":13},[9824],{"type":998,"value":1198},{"type":993,"tag":1026,"props":9826,"children":9827},{"class":1028,"line":164},[9828],{"type":993,"tag":1026,"props":9829,"children":9830},{"style":1032},[9831],{"type":998,"value":9832},"# Complex validation\n",{"type":993,"tag":1026,"props":9834,"children":9835},{"class":1028,"line":173},[9836,9840,9845],{"type":993,"tag":1026,"props":9837,"children":9838},{"style":1047},[9839],{"type":998,"value":8192},{"type":993,"tag":1026,"props":9841,"children":9842},{"style":8195},[9843],{"type":998,"value":9844}," validate_data",{"type":993,"tag":1026,"props":9846,"children":9847},{"style":1041},[9848],{"type":998,"value":8203},{"type":993,"tag":1026,"props":9850,"children":9851},{"class":1028,"line":182},[9852],{"type":993,"tag":1026,"props":9853,"children":9854},{"style":1058},[9855],{"type":998,"value":9856},"    \"\"\"Validate tuple data meets criteria\"\"\"\n",{"type":993,"tag":1026,"props":9858,"children":9859},{"class":1028,"line":191},[9860,9864,9869],{"type":993,"tag":1026,"props":9861,"children":9862},{"style":1047},[9863],{"type":998,"value":2314},{"type":993,"tag":1026,"props":9865,"children":9866},{"style":1047},[9867],{"type":998,"value":9868}," not",{"type":993,"tag":1026,"props":9870,"children":9871},{"style":1041},[9872],{"type":998,"value":8232},{"type":993,"tag":1026,"props":9874,"children":9875},{"class":1028,"line":201},[9876,9881,9886,9890],{"type":993,"tag":1026,"props":9877,"children":9878},{"style":1047},[9879],{"type":998,"value":9880},"        return",{"type":993,"tag":1026,"props":9882,"children":9883},{"style":1113},[9884],{"type":998,"value":9885}," False",{"type":993,"tag":1026,"props":9887,"children":9888},{"style":1041},[9889],{"type":998,"value":1066},{"type":993,"tag":1026,"props":9891,"children":9892},{"style":1058},[9893],{"type":998,"value":9894},"\"Empty data\"\n",{"type":993,"tag":1026,"props":9896,"children":9897},{"class":1028,"line":210},[9898],{"type":993,"tag":1026,"props":9899,"children":9900},{"style":1041},[9901],{"type":998,"value":9902},"    \n",{"type":993,"tag":1026,"props":9904,"children":9905},{"class":1028,"line":219},[9906,9910,9914,9918,9922,9927,9932,9936,9940,9944,9949,9953,9957,9961],{"type":993,"tag":1026,"props":9907,"children":9908},{"style":1047},[9909],{"type":998,"value":2314},{"type":993,"tag":1026,"props":9911,"children":9912},{"style":1047},[9913],{"type":998,"value":9868},{"type":993,"tag":1026,"props":9915,"children":9916},{"style":1113},[9917],{"type":998,"value":9502},{"type":993,"tag":1026,"props":9919,"children":9920},{"style":1041},[9921],{"type":998,"value":1219},{"type":993,"tag":1026,"props":9923,"children":9924},{"style":1113},[9925],{"type":998,"value":9926},"isinstance",{"type":993,"tag":1026,"props":9928,"children":9929},{"style":1041},[9930],{"type":998,"value":9931},"(x, (",{"type":993,"tag":1026,"props":9933,"children":9934},{"style":1113},[9935],{"type":998,"value":8255},{"type":993,"tag":1026,"props":9937,"children":9938},{"style":1041},[9939],{"type":998,"value":1066},{"type":993,"tag":1026,"props":9941,"children":9942},{"style":1113},[9943],{"type":998,"value":8264},{"type":993,"tag":1026,"props":9945,"children":9946},{"style":1041},[9947],{"type":998,"value":9948},")) ",{"type":993,"tag":1026,"props":9950,"children":9951},{"style":1047},[9952],{"type":998,"value":1236},{"type":993,"tag":1026,"props":9954,"children":9955},{"style":1041},[9956],{"type":998,"value":7917},{"type":993,"tag":1026,"props":9958,"children":9959},{"style":1047},[9960],{"type":998,"value":1246},{"type":993,"tag":1026,"props":9962,"children":9963},{"style":1041},[9964],{"type":998,"value":9965}," data_tuple):\n",{"type":993,"tag":1026,"props":9967,"children":9968},{"class":1028,"line":228},[9969,9973,9977,9981],{"type":993,"tag":1026,"props":9970,"children":9971},{"style":1047},[9972],{"type":998,"value":9880},{"type":993,"tag":1026,"props":9974,"children":9975},{"style":1113},[9976],{"type":998,"value":9885},{"type":993,"tag":1026,"props":9978,"children":9979},{"style":1041},[9980],{"type":998,"value":1066},{"type":993,"tag":1026,"props":9982,"children":9983},{"style":1058},[9984],{"type":998,"value":9985},"\"All elements must be numbers\"\n",{"type":993,"tag":1026,"props":9987,"children":9988},{"class":1028,"line":238},[9989],{"type":993,"tag":1026,"props":9990,"children":9991},{"style":1041},[9992],{"type":998,"value":9902},{"type":993,"tag":1026,"props":9994,"children":9995},{"class":1028,"line":247},[9996,10000,10004,10008,10012,10016,10020,10024,10028],{"type":993,"tag":1026,"props":9997,"children":9998},{"style":1047},[9999],{"type":998,"value":2314},{"type":993,"tag":1026,"props":10001,"children":10002},{"style":1113},[10003],{"type":998,"value":9550},{"type":993,"tag":1026,"props":10005,"children":10006},{"style":1041},[10007],{"type":998,"value":7947},{"type":993,"tag":1026,"props":10009,"children":10010},{"style":1047},[10011],{"type":998,"value":3603},{"type":993,"tag":1026,"props":10013,"children":10014},{"style":1113},[10015],{"type":998,"value":7989},{"type":993,"tag":1026,"props":10017,"children":10018},{"style":1047},[10019],{"type":998,"value":7912},{"type":993,"tag":1026,"props":10021,"children":10022},{"style":1041},[10023],{"type":998,"value":7917},{"type":993,"tag":1026,"props":10025,"children":10026},{"style":1047},[10027],{"type":998,"value":1246},{"type":993,"tag":1026,"props":10029,"children":10030},{"style":1041},[10031],{"type":998,"value":9965},{"type":993,"tag":1026,"props":10033,"children":10034},{"class":1028,"line":256},[10035,10039,10043,10047],{"type":993,"tag":1026,"props":10036,"children":10037},{"style":1047},[10038],{"type":998,"value":9880},{"type":993,"tag":1026,"props":10040,"children":10041},{"style":1113},[10042],{"type":998,"value":9885},{"type":993,"tag":1026,"props":10044,"children":10045},{"style":1041},[10046],{"type":998,"value":1066},{"type":993,"tag":1026,"props":10048,"children":10049},{"style":1058},[10050],{"type":998,"value":10051},"\"Negative values not allowed\"\n",{"type":993,"tag":1026,"props":10053,"children":10054},{"class":1028,"line":265},[10055],{"type":993,"tag":1026,"props":10056,"children":10057},{"style":1041},[10058],{"type":998,"value":9902},{"type":993,"tag":1026,"props":10060,"children":10061},{"class":1028,"line":274},[10062,10067,10072,10076],{"type":993,"tag":1026,"props":10063,"children":10064},{"style":1047},[10065],{"type":998,"value":10066},"    return",{"type":993,"tag":1026,"props":10068,"children":10069},{"style":1113},[10070],{"type":998,"value":10071}," True",{"type":993,"tag":1026,"props":10073,"children":10074},{"style":1041},[10075],{"type":998,"value":1066},{"type":993,"tag":1026,"props":10077,"children":10078},{"style":1058},[10079],{"type":998,"value":10080},"\"Valid data\"\n",{"type":993,"tag":1026,"props":10082,"children":10083},{"class":1028,"line":284},[10084],{"type":993,"tag":1026,"props":10085,"children":10086},{"emptyLinePlaceholder":13},[10087],{"type":998,"value":1198},{"type":993,"tag":1026,"props":10089,"children":10090},{"class":1028,"line":293},[10091],{"type":993,"tag":1026,"props":10092,"children":10093},{"style":1032},[10094],{"type":998,"value":10095},"# Test validation\n",{"type":993,"tag":1026,"props":10097,"children":10098},{"class":1028,"line":302},[10099,10104,10108,10113,10117,10121,10125,10129,10133,10137,10141,10145,10149,10153,10157,10161,10165,10170,10174,10179],{"type":993,"tag":1026,"props":10100,"children":10101},{"style":1041},[10102],{"type":998,"value":10103},"test_data ",{"type":993,"tag":1026,"props":10105,"children":10106},{"style":1047},[10107],{"type":998,"value":1050},{"type":993,"tag":1026,"props":10109,"children":10110},{"style":1041},[10111],{"type":998,"value":10112}," [(",{"type":993,"tag":1026,"props":10114,"children":10115},{"style":1113},[10116],{"type":998,"value":2114},{"type":993,"tag":1026,"props":10118,"children":10119},{"style":1041},[10120],{"type":998,"value":1066},{"type":993,"tag":1026,"props":10122,"children":10123},{"style":1113},[10124],{"type":998,"value":2123},{"type":993,"tag":1026,"props":10126,"children":10127},{"style":1041},[10128],{"type":998,"value":1066},{"type":993,"tag":1026,"props":10130,"children":10131},{"style":1113},[10132],{"type":998,"value":2132},{"type":993,"tag":1026,"props":10134,"children":10135},{"style":1041},[10136],{"type":998,"value":5695},{"type":993,"tag":1026,"props":10138,"children":10139},{"style":1047},[10140],{"type":998,"value":4526},{"type":993,"tag":1026,"props":10142,"children":10143},{"style":1113},[10144],{"type":998,"value":6351},{"type":993,"tag":1026,"props":10146,"children":10147},{"style":1041},[10148],{"type":998,"value":1066},{"type":993,"tag":1026,"props":10150,"children":10151},{"style":1113},[10152],{"type":998,"value":1116},{"type":993,"tag":1026,"props":10154,"children":10155},{"style":1041},[10156],{"type":998,"value":1066},{"type":993,"tag":1026,"props":10158,"children":10159},{"style":1113},[10160],{"type":998,"value":4151},{"type":993,"tag":1026,"props":10162,"children":10163},{"style":1041},[10164],{"type":998,"value":5695},{"type":993,"tag":1026,"props":10166,"children":10167},{"style":1058},[10168],{"type":998,"value":10169},"\"text\"",{"type":993,"tag":1026,"props":10171,"children":10172},{"style":1041},[10173],{"type":998,"value":1066},{"type":993,"tag":1026,"props":10175,"children":10176},{"style":1113},[10177],{"type":998,"value":10178},"42",{"type":993,"tag":1026,"props":10180,"children":10181},{"style":1041},[10182],{"type":998,"value":10183},"), ()]\n",{"type":993,"tag":1026,"props":10185,"children":10186},{"class":1028,"line":311},[10187,10191,10196,10200],{"type":993,"tag":1026,"props":10188,"children":10189},{"style":1047},[10190],{"type":998,"value":1236},{"type":993,"tag":1026,"props":10192,"children":10193},{"style":1041},[10194],{"type":998,"value":10195}," data ",{"type":993,"tag":1026,"props":10197,"children":10198},{"style":1047},[10199],{"type":998,"value":1246},{"type":993,"tag":1026,"props":10201,"children":10202},{"style":1041},[10203],{"type":998,"value":10204}," test_data:\n",{"type":993,"tag":1026,"props":10206,"children":10207},{"class":1028,"line":320},[10208,10213,10217],{"type":993,"tag":1026,"props":10209,"children":10210},{"style":1041},[10211],{"type":998,"value":10212},"    valid, message ",{"type":993,"tag":1026,"props":10214,"children":10215},{"style":1047},[10216],{"type":998,"value":1050},{"type":993,"tag":1026,"props":10218,"children":10219},{"style":1041},[10220],{"type":998,"value":10221}," validate_data(data)\n",{"type":993,"tag":1026,"props":10223,"children":10224},{"class":1028,"line":329},[10225,10229,10233,10237,10242,10246,10251,10255,10259,10263,10268,10272,10276],{"type":993,"tag":1026,"props":10226,"children":10227},{"style":1113},[10228],{"type":998,"value":1259},{"type":993,"tag":1026,"props":10230,"children":10231},{"style":1041},[10232],{"type":998,"value":1219},{"type":993,"tag":1026,"props":10234,"children":10235},{"style":1047},[10236],{"type":998,"value":1268},{"type":993,"tag":1026,"props":10238,"children":10239},{"style":1058},[10240],{"type":998,"value":10241},"\"Data ",{"type":993,"tag":1026,"props":10243,"children":10244},{"style":1113},[10245],{"type":998,"value":1278},{"type":993,"tag":1026,"props":10247,"children":10248},{"style":1041},[10249],{"type":998,"value":10250},"data",{"type":993,"tag":1026,"props":10252,"children":10253},{"style":1113},[10254],{"type":998,"value":1288},{"type":993,"tag":1026,"props":10256,"children":10257},{"style":1058},[10258],{"type":998,"value":3702},{"type":993,"tag":1026,"props":10260,"children":10261},{"style":1113},[10262],{"type":998,"value":1278},{"type":993,"tag":1026,"props":10264,"children":10265},{"style":1041},[10266],{"type":998,"value":10267},"message",{"type":993,"tag":1026,"props":10269,"children":10270},{"style":1113},[10271],{"type":998,"value":1288},{"type":993,"tag":1026,"props":10273,"children":10274},{"style":1058},[10275],{"type":998,"value":1293},{"type":993,"tag":1026,"props":10277,"children":10278},{"style":1041},[10279],{"type":998,"value":1094},{"type":993,"tag":1494,"props":10281,"children":10283},{"id":10282},"performance-best-practices",[10284],{"type":998,"value":10285},"⚡ Performance Best Practices",{"type":993,"tag":1001,"props":10287,"children":10288},{},[10289],{"type":998,"value":10290},"Understanding performance characteristics and following best practices ensures efficient tuple iteration in your applications.",{"type":993,"tag":1506,"props":10292,"children":10296},{"emoji":10293,"title":10294,"type":10295},"⚡","Iteration Best Practices","warning",[10297,10305,10328,10336,10359,10367],{"type":993,"tag":1001,"props":10298,"children":10299},{},[10300],{"type":993,"tag":1516,"props":10301,"children":10302},{},[10303],{"type":998,"value":10304},"Efficiency Guidelines:",{"type":993,"tag":1522,"props":10306,"children":10307},{},[10308,10313,10318,10323],{"type":993,"tag":1526,"props":10309,"children":10310},{},[10311],{"type":998,"value":10312},"Use appropriate iteration method for your needs",{"type":993,"tag":1526,"props":10314,"children":10315},{},[10316],{"type":998,"value":10317},"Avoid unnecessary conversions during iteration",{"type":993,"tag":1526,"props":10319,"children":10320},{},[10321],{"type":998,"value":10322},"Consider generator expressions for large datasets",{"type":993,"tag":1526,"props":10324,"children":10325},{},[10326],{"type":998,"value":10327},"Use built-in functions when possible",{"type":993,"tag":1001,"props":10329,"children":10330},{},[10331],{"type":993,"tag":1516,"props":10332,"children":10333},{},[10334],{"type":998,"value":10335},"Readability Principles:",{"type":993,"tag":1522,"props":10337,"children":10338},{},[10339,10344,10349,10354],{"type":993,"tag":1526,"props":10340,"children":10341},{},[10342],{"type":998,"value":10343},"Choose clear variable names in loops",{"type":993,"tag":1526,"props":10345,"children":10346},{},[10347],{"type":998,"value":10348},"Keep loop bodies focused and simple",{"type":993,"tag":1526,"props":10350,"children":10351},{},[10352],{"type":998,"value":10353},"Use appropriate iteration pattern for the task",{"type":993,"tag":1526,"props":10355,"children":10356},{},[10357],{"type":998,"value":10358},"Comment complex iteration logic",{"type":993,"tag":1001,"props":10360,"children":10361},{},[10362],{"type":993,"tag":1516,"props":10363,"children":10364},{},[10365],{"type":998,"value":10366},"Common Pitfalls:",{"type":993,"tag":1522,"props":10368,"children":10369},{},[10370,10375,10380],{"type":993,"tag":1526,"props":10371,"children":10372},{},[10373],{"type":998,"value":10374},"Modifying tuples during iteration (impossible, but worth noting)",{"type":993,"tag":1526,"props":10376,"children":10377},{},[10378],{"type":998,"value":10379},"Unnecessary index access when enumerate() suffices",{"type":993,"tag":1526,"props":10381,"children":10382},{},[10383],{"type":998,"value":10384},"Converting to lists unnecessarily for simple operations",{"type":993,"tag":1605,"props":10386,"children":10388},{"id":10387},"efficient-iteration-patterns",[10389],{"type":998,"value":10390},"Efficient Iteration Patterns",{"type":993,"tag":1001,"props":10392,"children":10393},{},[10394],{"type":998,"value":10395},"Performance-optimized approaches for different iteration scenarios.",{"type":993,"tag":1012,"props":10397,"children":10398},{},[10399],{"type":993,"tag":1016,"props":10400,"children":10402},{"className":1018,"code":10401,"language":6,"meta":8,"style":8},"# Efficient iteration patterns\ndef efficient_filter(data, condition):\n    \"\"\"Memory-efficient filtering\"\"\"\n    return tuple(x for x in data if condition(x))\n\ndef efficient_transform(data, transform_func):\n    \"\"\"Memory-efficient transformation\"\"\"\n    return tuple(transform_func(x) for x in data)\n\ndef efficient_sum(data):\n    \"\"\"Efficient summation\"\"\"\n    total = 0\n    for value in data:\n        total += value\n    return total\n\n# Test with data\ntest_data = (1, 2, 3, 4, 5, 6, 7, 8, 9, 10)\n\n# Efficient operations\nevens = efficient_filter(test_data, lambda x: x % 2 == 0)\nsquares = efficient_transform(test_data, lambda x: x**2)\ntotal = efficient_sum(test_data)\n\nprint(f\"Even numbers: {evens}\")\nprint(f\"Squares: {squares}\")\nprint(f\"Total: {total}\")\n",[10403],{"type":993,"tag":1022,"props":10404,"children":10405},{"__ignoreMap":8},[10406,10414,10431,10439,10479,10486,10503,10511,10544,10551,10568,10576,10592,10612,10627,10639,10646,10654,10749,10756,10764,10809,10846,10862,10869,10909,10948],{"type":993,"tag":1026,"props":10407,"children":10408},{"class":1028,"line":12},[10409],{"type":993,"tag":1026,"props":10410,"children":10411},{"style":1032},[10412],{"type":998,"value":10413},"# Efficient iteration patterns\n",{"type":993,"tag":1026,"props":10415,"children":10416},{"class":1028,"line":27},[10417,10421,10426],{"type":993,"tag":1026,"props":10418,"children":10419},{"style":1047},[10420],{"type":998,"value":8192},{"type":993,"tag":1026,"props":10422,"children":10423},{"style":8195},[10424],{"type":998,"value":10425}," efficient_filter",{"type":993,"tag":1026,"props":10427,"children":10428},{"style":1041},[10429],{"type":998,"value":10430},"(data, condition):\n",{"type":993,"tag":1026,"props":10432,"children":10433},{"class":1028,"line":36},[10434],{"type":993,"tag":1026,"props":10435,"children":10436},{"style":1058},[10437],{"type":998,"value":10438},"    \"\"\"Memory-efficient filtering\"\"\"\n",{"type":993,"tag":1026,"props":10440,"children":10441},{"class":1028,"line":45},[10442,10446,10450,10454,10458,10462,10466,10470,10474],{"type":993,"tag":1026,"props":10443,"children":10444},{"style":1047},[10445],{"type":998,"value":10066},{"type":993,"tag":1026,"props":10447,"children":10448},{"style":1113},[10449],{"type":998,"value":7369},{"type":993,"tag":1026,"props":10451,"children":10452},{"style":1041},[10453],{"type":998,"value":7947},{"type":993,"tag":1026,"props":10455,"children":10456},{"style":1047},[10457],{"type":998,"value":1236},{"type":993,"tag":1026,"props":10459,"children":10460},{"style":1041},[10461],{"type":998,"value":7917},{"type":993,"tag":1026,"props":10463,"children":10464},{"style":1047},[10465],{"type":998,"value":1246},{"type":993,"tag":1026,"props":10467,"children":10468},{"style":1041},[10469],{"type":998,"value":10195},{"type":993,"tag":1026,"props":10471,"children":10472},{"style":1047},[10473],{"type":998,"value":3593},{"type":993,"tag":1026,"props":10475,"children":10476},{"style":1041},[10477],{"type":998,"value":10478}," condition(x))\n",{"type":993,"tag":1026,"props":10480,"children":10481},{"class":1028,"line":54},[10482],{"type":993,"tag":1026,"props":10483,"children":10484},{"emptyLinePlaceholder":13},[10485],{"type":998,"value":1198},{"type":993,"tag":1026,"props":10487,"children":10488},{"class":1028,"line":63},[10489,10493,10498],{"type":993,"tag":1026,"props":10490,"children":10491},{"style":1047},[10492],{"type":998,"value":8192},{"type":993,"tag":1026,"props":10494,"children":10495},{"style":8195},[10496],{"type":998,"value":10497}," efficient_transform",{"type":993,"tag":1026,"props":10499,"children":10500},{"style":1041},[10501],{"type":998,"value":10502},"(data, transform_func):\n",{"type":993,"tag":1026,"props":10504,"children":10505},{"class":1028,"line":72},[10506],{"type":993,"tag":1026,"props":10507,"children":10508},{"style":1058},[10509],{"type":998,"value":10510},"    \"\"\"Memory-efficient transformation\"\"\"\n",{"type":993,"tag":1026,"props":10512,"children":10513},{"class":1028,"line":81},[10514,10518,10522,10527,10531,10535,10539],{"type":993,"tag":1026,"props":10515,"children":10516},{"style":1047},[10517],{"type":998,"value":10066},{"type":993,"tag":1026,"props":10519,"children":10520},{"style":1113},[10521],{"type":998,"value":7369},{"type":993,"tag":1026,"props":10523,"children":10524},{"style":1041},[10525],{"type":998,"value":10526},"(transform_func(x) ",{"type":993,"tag":1026,"props":10528,"children":10529},{"style":1047},[10530],{"type":998,"value":1236},{"type":993,"tag":1026,"props":10532,"children":10533},{"style":1041},[10534],{"type":998,"value":7917},{"type":993,"tag":1026,"props":10536,"children":10537},{"style":1047},[10538],{"type":998,"value":1246},{"type":993,"tag":1026,"props":10540,"children":10541},{"style":1041},[10542],{"type":998,"value":10543}," data)\n",{"type":993,"tag":1026,"props":10545,"children":10546},{"class":1028,"line":91},[10547],{"type":993,"tag":1026,"props":10548,"children":10549},{"emptyLinePlaceholder":13},[10550],{"type":998,"value":1198},{"type":993,"tag":1026,"props":10552,"children":10553},{"class":1028,"line":100},[10554,10558,10563],{"type":993,"tag":1026,"props":10555,"children":10556},{"style":1047},[10557],{"type":998,"value":8192},{"type":993,"tag":1026,"props":10559,"children":10560},{"style":8195},[10561],{"type":998,"value":10562}," efficient_sum",{"type":993,"tag":1026,"props":10564,"children":10565},{"style":1041},[10566],{"type":998,"value":10567},"(data):\n",{"type":993,"tag":1026,"props":10569,"children":10570},{"class":1028,"line":109},[10571],{"type":993,"tag":1026,"props":10572,"children":10573},{"style":1058},[10574],{"type":998,"value":10575},"    \"\"\"Efficient summation\"\"\"\n",{"type":993,"tag":1026,"props":10577,"children":10578},{"class":1028,"line":118},[10579,10584,10588],{"type":993,"tag":1026,"props":10580,"children":10581},{"style":1041},[10582],{"type":998,"value":10583},"    total ",{"type":993,"tag":1026,"props":10585,"children":10586},{"style":1047},[10587],{"type":998,"value":1050},{"type":993,"tag":1026,"props":10589,"children":10590},{"style":1113},[10591],{"type":998,"value":2863},{"type":993,"tag":1026,"props":10593,"children":10594},{"class":1028,"line":127},[10595,10599,10603,10607],{"type":993,"tag":1026,"props":10596,"children":10597},{"style":1047},[10598],{"type":998,"value":6201},{"type":993,"tag":1026,"props":10600,"children":10601},{"style":1041},[10602],{"type":998,"value":6905},{"type":993,"tag":1026,"props":10604,"children":10605},{"style":1047},[10606],{"type":998,"value":1246},{"type":993,"tag":1026,"props":10608,"children":10609},{"style":1041},[10610],{"type":998,"value":10611}," data:\n",{"type":993,"tag":1026,"props":10613,"children":10614},{"class":1028,"line":136},[10615,10619,10623],{"type":993,"tag":1026,"props":10616,"children":10617},{"style":1041},[10618],{"type":998,"value":6922},{"type":993,"tag":1026,"props":10620,"children":10621},{"style":1047},[10622],{"type":998,"value":2920},{"type":993,"tag":1026,"props":10624,"children":10625},{"style":1041},[10626],{"type":998,"value":6931},{"type":993,"tag":1026,"props":10628,"children":10629},{"class":1028,"line":146},[10630,10634],{"type":993,"tag":1026,"props":10631,"children":10632},{"style":1047},[10633],{"type":998,"value":10066},{"type":993,"tag":1026,"props":10635,"children":10636},{"style":1041},[10637],{"type":998,"value":10638}," total\n",{"type":993,"tag":1026,"props":10640,"children":10641},{"class":1028,"line":155},[10642],{"type":993,"tag":1026,"props":10643,"children":10644},{"emptyLinePlaceholder":13},[10645],{"type":998,"value":1198},{"type":993,"tag":1026,"props":10647,"children":10648},{"class":1028,"line":164},[10649],{"type":993,"tag":1026,"props":10650,"children":10651},{"style":1032},[10652],{"type":998,"value":10653},"# Test with data\n",{"type":993,"tag":1026,"props":10655,"children":10656},{"class":1028,"line":173},[10657,10661,10665,10669,10673,10677,10681,10685,10689,10693,10697,10701,10705,10709,10713,10717,10721,10725,10729,10733,10737,10741,10745],{"type":993,"tag":1026,"props":10658,"children":10659},{"style":1041},[10660],{"type":998,"value":10103},{"type":993,"tag":1026,"props":10662,"children":10663},{"style":1047},[10664],{"type":998,"value":1050},{"type":993,"tag":1026,"props":10666,"children":10667},{"style":1041},[10668],{"type":998,"value":1055},{"type":993,"tag":1026,"props":10670,"children":10671},{"style":1113},[10672],{"type":998,"value":1654},{"type":993,"tag":1026,"props":10674,"children":10675},{"style":1041},[10676],{"type":998,"value":1066},{"type":993,"tag":1026,"props":10678,"children":10679},{"style":1113},[10680],{"type":998,"value":5958},{"type":993,"tag":1026,"props":10682,"children":10683},{"style":1041},[10684],{"type":998,"value":1066},{"type":993,"tag":1026,"props":10686,"children":10687},{"style":1113},[10688],{"type":998,"value":6326},{"type":993,"tag":1026,"props":10690,"children":10691},{"style":1041},[10692],{"type":998,"value":1066},{"type":993,"tag":1026,"props":10694,"children":10695},{"style":1113},[10696],{"type":998,"value":1663},{"type":993,"tag":1026,"props":10698,"children":10699},{"style":1041},[10700],{"type":998,"value":1066},{"type":993,"tag":1026,"props":10702,"children":10703},{"style":1113},[10704],{"type":998,"value":6351},{"type":993,"tag":1026,"props":10706,"children":10707},{"style":1041},[10708],{"type":998,"value":1066},{"type":993,"tag":1026,"props":10710,"children":10711},{"style":1113},[10712],{"type":998,"value":6360},{"type":993,"tag":1026,"props":10714,"children":10715},{"style":1041},[10716],{"type":998,"value":1066},{"type":993,"tag":1026,"props":10718,"children":10719},{"style":1113},[10720],{"type":998,"value":6376},{"type":993,"tag":1026,"props":10722,"children":10723},{"style":1041},[10724],{"type":998,"value":1066},{"type":993,"tag":1026,"props":10726,"children":10727},{"style":1113},[10728],{"type":998,"value":6385},{"type":993,"tag":1026,"props":10730,"children":10731},{"style":1041},[10732],{"type":998,"value":1066},{"type":993,"tag":1026,"props":10734,"children":10735},{"style":1113},[10736],{"type":998,"value":1672},{"type":993,"tag":1026,"props":10738,"children":10739},{"style":1041},[10740],{"type":998,"value":1066},{"type":993,"tag":1026,"props":10742,"children":10743},{"style":1113},[10744],{"type":998,"value":1116},{"type":993,"tag":1026,"props":10746,"children":10747},{"style":1041},[10748],{"type":998,"value":1094},{"type":993,"tag":1026,"props":10750,"children":10751},{"class":1028,"line":182},[10752],{"type":993,"tag":1026,"props":10753,"children":10754},{"emptyLinePlaceholder":13},[10755],{"type":998,"value":1198},{"type":993,"tag":1026,"props":10757,"children":10758},{"class":1028,"line":191},[10759],{"type":993,"tag":1026,"props":10760,"children":10761},{"style":1032},[10762],{"type":998,"value":10763},"# Efficient operations\n",{"type":993,"tag":1026,"props":10765,"children":10766},{"class":1028,"line":201},[10767,10772,10776,10781,10785,10789,10793,10797,10801,10805],{"type":993,"tag":1026,"props":10768,"children":10769},{"style":1041},[10770],{"type":998,"value":10771},"evens ",{"type":993,"tag":1026,"props":10773,"children":10774},{"style":1047},[10775],{"type":998,"value":1050},{"type":993,"tag":1026,"props":10777,"children":10778},{"style":1041},[10779],{"type":998,"value":10780}," efficient_filter(test_data, ",{"type":993,"tag":1026,"props":10782,"children":10783},{"style":1047},[10784],{"type":998,"value":8649},{"type":993,"tag":1026,"props":10786,"children":10787},{"style":1041},[10788],{"type":998,"value":8654},{"type":993,"tag":1026,"props":10790,"children":10791},{"style":1047},[10792],{"type":998,"value":4321},{"type":993,"tag":1026,"props":10794,"children":10795},{"style":1113},[10796],{"type":998,"value":4326},{"type":993,"tag":1026,"props":10798,"children":10799},{"style":1047},[10800],{"type":998,"value":4331},{"type":993,"tag":1026,"props":10802,"children":10803},{"style":1113},[10804],{"type":998,"value":7989},{"type":993,"tag":1026,"props":10806,"children":10807},{"style":1041},[10808],{"type":998,"value":1094},{"type":993,"tag":1026,"props":10810,"children":10811},{"class":1028,"line":210},[10812,10816,10820,10825,10829,10834,10838,10842],{"type":993,"tag":1026,"props":10813,"children":10814},{"style":1041},[10815],{"type":998,"value":7886},{"type":993,"tag":1026,"props":10817,"children":10818},{"style":1047},[10819],{"type":998,"value":1050},{"type":993,"tag":1026,"props":10821,"children":10822},{"style":1041},[10823],{"type":998,"value":10824}," efficient_transform(test_data, ",{"type":993,"tag":1026,"props":10826,"children":10827},{"style":1047},[10828],{"type":998,"value":8649},{"type":993,"tag":1026,"props":10830,"children":10831},{"style":1041},[10832],{"type":998,"value":10833}," x: x",{"type":993,"tag":1026,"props":10835,"children":10836},{"style":1047},[10837],{"type":998,"value":1814},{"type":993,"tag":1026,"props":10839,"children":10840},{"style":1113},[10841],{"type":998,"value":5958},{"type":993,"tag":1026,"props":10843,"children":10844},{"style":1041},[10845],{"type":998,"value":1094},{"type":993,"tag":1026,"props":10847,"children":10848},{"class":1028,"line":219},[10849,10853,10857],{"type":993,"tag":1026,"props":10850,"children":10851},{"style":1041},[10852],{"type":998,"value":6864},{"type":993,"tag":1026,"props":10854,"children":10855},{"style":1047},[10856],{"type":998,"value":1050},{"type":993,"tag":1026,"props":10858,"children":10859},{"style":1041},[10860],{"type":998,"value":10861}," efficient_sum(test_data)\n",{"type":993,"tag":1026,"props":10863,"children":10864},{"class":1028,"line":228},[10865],{"type":993,"tag":1026,"props":10866,"children":10867},{"emptyLinePlaceholder":13},[10868],{"type":998,"value":1198},{"type":993,"tag":1026,"props":10870,"children":10871},{"class":1028,"line":238},[10872,10876,10880,10884,10888,10892,10897,10901,10905],{"type":993,"tag":1026,"props":10873,"children":10874},{"style":1113},[10875],{"type":998,"value":1214},{"type":993,"tag":1026,"props":10877,"children":10878},{"style":1041},[10879],{"type":998,"value":1219},{"type":993,"tag":1026,"props":10881,"children":10882},{"style":1047},[10883],{"type":998,"value":1268},{"type":993,"tag":1026,"props":10885,"children":10886},{"style":1058},[10887],{"type":998,"value":8107},{"type":993,"tag":1026,"props":10889,"children":10890},{"style":1113},[10891],{"type":998,"value":1278},{"type":993,"tag":1026,"props":10893,"children":10894},{"style":1041},[10895],{"type":998,"value":10896},"evens",{"type":993,"tag":1026,"props":10898,"children":10899},{"style":1113},[10900],{"type":998,"value":1288},{"type":993,"tag":1026,"props":10902,"children":10903},{"style":1058},[10904],{"type":998,"value":1293},{"type":993,"tag":1026,"props":10906,"children":10907},{"style":1041},[10908],{"type":998,"value":1094},{"type":993,"tag":1026,"props":10910,"children":10911},{"class":1028,"line":247},[10912,10916,10920,10924,10928,10932,10936,10940,10944],{"type":993,"tag":1026,"props":10913,"children":10914},{"style":1113},[10915],{"type":998,"value":1214},{"type":993,"tag":1026,"props":10917,"children":10918},{"style":1041},[10919],{"type":998,"value":1219},{"type":993,"tag":1026,"props":10921,"children":10922},{"style":1047},[10923],{"type":998,"value":1268},{"type":993,"tag":1026,"props":10925,"children":10926},{"style":1058},[10927],{"type":998,"value":8066},{"type":993,"tag":1026,"props":10929,"children":10930},{"style":1113},[10931],{"type":998,"value":1278},{"type":993,"tag":1026,"props":10933,"children":10934},{"style":1041},[10935],{"type":998,"value":8075},{"type":993,"tag":1026,"props":10937,"children":10938},{"style":1113},[10939],{"type":998,"value":1288},{"type":993,"tag":1026,"props":10941,"children":10942},{"style":1058},[10943],{"type":998,"value":1293},{"type":993,"tag":1026,"props":10945,"children":10946},{"style":1041},[10947],{"type":998,"value":1094},{"type":993,"tag":1026,"props":10949,"children":10950},{"class":1028,"line":256},[10951,10955,10959,10963,10968,10972,10976,10980,10984],{"type":993,"tag":1026,"props":10952,"children":10953},{"style":1113},[10954],{"type":998,"value":1214},{"type":993,"tag":1026,"props":10956,"children":10957},{"style":1041},[10958],{"type":998,"value":1219},{"type":993,"tag":1026,"props":10960,"children":10961},{"style":1047},[10962],{"type":998,"value":1268},{"type":993,"tag":1026,"props":10964,"children":10965},{"style":1058},[10966],{"type":998,"value":10967},"\"Total: ",{"type":993,"tag":1026,"props":10969,"children":10970},{"style":1113},[10971],{"type":998,"value":1278},{"type":993,"tag":1026,"props":10973,"children":10974},{"style":1041},[10975],{"type":998,"value":6968},{"type":993,"tag":1026,"props":10977,"children":10978},{"style":1113},[10979],{"type":998,"value":1288},{"type":993,"tag":1026,"props":10981,"children":10982},{"style":1058},[10983],{"type":998,"value":1293},{"type":993,"tag":1026,"props":10985,"children":10986},{"style":1041},[10987],{"type":998,"value":1094},{"type":993,"tag":1605,"props":10989,"children":10991},{"id":10990},"memory-conscious-iteration",[10992],{"type":998,"value":10993},"Memory-Conscious Iteration",{"type":993,"tag":1001,"props":10995,"children":10996},{},[10997],{"type":998,"value":10998},"Patterns for handling large tuples without excessive memory usage.",{"type":993,"tag":1012,"props":11000,"children":11001},{},[11002],{"type":993,"tag":1016,"props":11003,"children":11005},{"className":1018,"code":11004,"language":6,"meta":8,"style":8},"# Memory-conscious iteration\ndef process_in_chunks(data_tuple, chunk_size=3):\n    \"\"\"Process tuple in chunks to manage memory\"\"\"\n    for i in range(0, len(data_tuple), chunk_size):\n        chunk = data_tuple[i:i + chunk_size]\n        yield chunk\n\ndef calculate_statistics_incrementally(data_tuple):\n    \"\"\"Calculate statistics without storing intermediate results\"\"\"\n    count = 0\n    total = 0\n    min_val = float('inf')\n    max_val = float('-inf')\n    \n    for value in data_tuple:\n        count += 1\n        total += value\n        min_val = min(min_val, value)\n        max_val = max(max_val, value)\n    \n    average = total / count if count > 0 else 0\n    return {\n        'count': count,\n        'sum': total,\n        'average': average,\n        'min': min_val,\n        'max': max_val\n    }\n\n# Example usage\nsample_data = (12, 8, 15, 22, 7, 19, 31, 5, 28, 14)\n\n# Process in chunks\nprint(\"Processing in chunks:\")\nfor chunk_num, chunk in enumerate(process_in_chunks(sample_data), 1):\n    chunk_sum = sum(chunk)\n    print(f\"Chunk {chunk_num}: {chunk} -> Sum: {chunk_sum}\")\n\n# Calculate statistics efficiently\nstats = calculate_statistics_incrementally(sample_data)\nprint(f\"\\nStatistics: {stats}\")\n",[11006],{"type":993,"tag":1022,"props":11007,"children":11008},{"__ignoreMap":8},[11009,11017,11046,11054,11095,11121,11134,11141,11157,11165,11181,11196,11226,11255,11262,11281,11297,11312,11334,11356,11363,11412,11424,11437,11450,11463,11476,11489,11497,11504,11512,11613,11620,11628,11648,11681,11702,11778,11785,11793,11810],{"type":993,"tag":1026,"props":11010,"children":11011},{"class":1028,"line":12},[11012],{"type":993,"tag":1026,"props":11013,"children":11014},{"style":1032},[11015],{"type":998,"value":11016},"# Memory-conscious iteration\n",{"type":993,"tag":1026,"props":11018,"children":11019},{"class":1028,"line":27},[11020,11024,11029,11034,11038,11042],{"type":993,"tag":1026,"props":11021,"children":11022},{"style":1047},[11023],{"type":998,"value":8192},{"type":993,"tag":1026,"props":11025,"children":11026},{"style":8195},[11027],{"type":998,"value":11028}," process_in_chunks",{"type":993,"tag":1026,"props":11030,"children":11031},{"style":1041},[11032],{"type":998,"value":11033},"(data_tuple, chunk_size",{"type":993,"tag":1026,"props":11035,"children":11036},{"style":1047},[11037],{"type":998,"value":1050},{"type":993,"tag":1026,"props":11039,"children":11040},{"style":1113},[11041],{"type":998,"value":6326},{"type":993,"tag":1026,"props":11043,"children":11044},{"style":1041},[11045],{"type":998,"value":3799},{"type":993,"tag":1026,"props":11047,"children":11048},{"class":1028,"line":36},[11049],{"type":993,"tag":1026,"props":11050,"children":11051},{"style":1058},[11052],{"type":998,"value":11053},"    \"\"\"Process tuple in chunks to manage memory\"\"\"\n",{"type":993,"tag":1026,"props":11055,"children":11056},{"class":1028,"line":45},[11057,11061,11065,11069,11073,11077,11082,11086,11090],{"type":993,"tag":1026,"props":11058,"children":11059},{"style":1047},[11060],{"type":998,"value":6201},{"type":993,"tag":1026,"props":11062,"children":11063},{"style":1041},[11064],{"type":998,"value":4260},{"type":993,"tag":1026,"props":11066,"children":11067},{"style":1047},[11068],{"type":998,"value":1246},{"type":993,"tag":1026,"props":11070,"children":11071},{"style":1113},[11072],{"type":998,"value":4269},{"type":993,"tag":1026,"props":11074,"children":11075},{"style":1041},[11076],{"type":998,"value":1219},{"type":993,"tag":1026,"props":11078,"children":11079},{"style":1113},[11080],{"type":998,"value":11081},"0",{"type":993,"tag":1026,"props":11083,"children":11084},{"style":1041},[11085],{"type":998,"value":1066},{"type":993,"tag":1026,"props":11087,"children":11088},{"style":1113},[11089],{"type":998,"value":4278},{"type":993,"tag":1026,"props":11091,"children":11092},{"style":1041},[11093],{"type":998,"value":11094},"(data_tuple), chunk_size):\n",{"type":993,"tag":1026,"props":11096,"children":11097},{"class":1028,"line":54},[11098,11103,11107,11112,11116],{"type":993,"tag":1026,"props":11099,"children":11100},{"style":1041},[11101],{"type":998,"value":11102},"        chunk ",{"type":993,"tag":1026,"props":11104,"children":11105},{"style":1047},[11106],{"type":998,"value":1050},{"type":993,"tag":1026,"props":11108,"children":11109},{"style":1041},[11110],{"type":998,"value":11111}," data_tuple[i:i ",{"type":993,"tag":1026,"props":11113,"children":11114},{"style":1047},[11115],{"type":998,"value":3643},{"type":993,"tag":1026,"props":11117,"children":11118},{"style":1041},[11119],{"type":998,"value":11120}," chunk_size]\n",{"type":993,"tag":1026,"props":11122,"children":11123},{"class":1028,"line":63},[11124,11129],{"type":993,"tag":1026,"props":11125,"children":11126},{"style":1047},[11127],{"type":998,"value":11128},"        yield",{"type":993,"tag":1026,"props":11130,"children":11131},{"style":1041},[11132],{"type":998,"value":11133}," chunk\n",{"type":993,"tag":1026,"props":11135,"children":11136},{"class":1028,"line":72},[11137],{"type":993,"tag":1026,"props":11138,"children":11139},{"emptyLinePlaceholder":13},[11140],{"type":998,"value":1198},{"type":993,"tag":1026,"props":11142,"children":11143},{"class":1028,"line":81},[11144,11148,11153],{"type":993,"tag":1026,"props":11145,"children":11146},{"style":1047},[11147],{"type":998,"value":8192},{"type":993,"tag":1026,"props":11149,"children":11150},{"style":8195},[11151],{"type":998,"value":11152}," calculate_statistics_incrementally",{"type":993,"tag":1026,"props":11154,"children":11155},{"style":1041},[11156],{"type":998,"value":8203},{"type":993,"tag":1026,"props":11158,"children":11159},{"class":1028,"line":91},[11160],{"type":993,"tag":1026,"props":11161,"children":11162},{"style":1058},[11163],{"type":998,"value":11164},"    \"\"\"Calculate statistics without storing intermediate results\"\"\"\n",{"type":993,"tag":1026,"props":11166,"children":11167},{"class":1028,"line":100},[11168,11173,11177],{"type":993,"tag":1026,"props":11169,"children":11170},{"style":1041},[11171],{"type":998,"value":11172},"    count ",{"type":993,"tag":1026,"props":11174,"children":11175},{"style":1047},[11176],{"type":998,"value":1050},{"type":993,"tag":1026,"props":11178,"children":11179},{"style":1113},[11180],{"type":998,"value":2863},{"type":993,"tag":1026,"props":11182,"children":11183},{"class":1028,"line":109},[11184,11188,11192],{"type":993,"tag":1026,"props":11185,"children":11186},{"style":1041},[11187],{"type":998,"value":10583},{"type":993,"tag":1026,"props":11189,"children":11190},{"style":1047},[11191],{"type":998,"value":1050},{"type":993,"tag":1026,"props":11193,"children":11194},{"style":1113},[11195],{"type":998,"value":2863},{"type":993,"tag":1026,"props":11197,"children":11198},{"class":1028,"line":118},[11199,11204,11208,11213,11217,11222],{"type":993,"tag":1026,"props":11200,"children":11201},{"style":1041},[11202],{"type":998,"value":11203},"    min_val ",{"type":993,"tag":1026,"props":11205,"children":11206},{"style":1047},[11207],{"type":998,"value":1050},{"type":993,"tag":1026,"props":11209,"children":11210},{"style":1113},[11211],{"type":998,"value":11212}," float",{"type":993,"tag":1026,"props":11214,"children":11215},{"style":1041},[11216],{"type":998,"value":1219},{"type":993,"tag":1026,"props":11218,"children":11219},{"style":1058},[11220],{"type":998,"value":11221},"'inf'",{"type":993,"tag":1026,"props":11223,"children":11224},{"style":1041},[11225],{"type":998,"value":1094},{"type":993,"tag":1026,"props":11227,"children":11228},{"class":1028,"line":127},[11229,11234,11238,11242,11246,11251],{"type":993,"tag":1026,"props":11230,"children":11231},{"style":1041},[11232],{"type":998,"value":11233},"    max_val ",{"type":993,"tag":1026,"props":11235,"children":11236},{"style":1047},[11237],{"type":998,"value":1050},{"type":993,"tag":1026,"props":11239,"children":11240},{"style":1113},[11241],{"type":998,"value":11212},{"type":993,"tag":1026,"props":11243,"children":11244},{"style":1041},[11245],{"type":998,"value":1219},{"type":993,"tag":1026,"props":11247,"children":11248},{"style":1058},[11249],{"type":998,"value":11250},"'-inf'",{"type":993,"tag":1026,"props":11252,"children":11253},{"style":1041},[11254],{"type":998,"value":1094},{"type":993,"tag":1026,"props":11256,"children":11257},{"class":1028,"line":136},[11258],{"type":993,"tag":1026,"props":11259,"children":11260},{"style":1041},[11261],{"type":998,"value":9902},{"type":993,"tag":1026,"props":11263,"children":11264},{"class":1028,"line":146},[11265,11269,11273,11277],{"type":993,"tag":1026,"props":11266,"children":11267},{"style":1047},[11268],{"type":998,"value":6201},{"type":993,"tag":1026,"props":11270,"children":11271},{"style":1041},[11272],{"type":998,"value":6905},{"type":993,"tag":1026,"props":11274,"children":11275},{"style":1047},[11276],{"type":998,"value":1246},{"type":993,"tag":1026,"props":11278,"children":11279},{"style":1041},[11280],{"type":998,"value":8232},{"type":993,"tag":1026,"props":11282,"children":11283},{"class":1028,"line":155},[11284,11289,11293],{"type":993,"tag":1026,"props":11285,"children":11286},{"style":1041},[11287],{"type":998,"value":11288},"        count ",{"type":993,"tag":1026,"props":11290,"children":11291},{"style":1047},[11292],{"type":998,"value":2920},{"type":993,"tag":1026,"props":11294,"children":11295},{"style":1113},[11296],{"type":998,"value":2967},{"type":993,"tag":1026,"props":11298,"children":11299},{"class":1028,"line":164},[11300,11304,11308],{"type":993,"tag":1026,"props":11301,"children":11302},{"style":1041},[11303],{"type":998,"value":6922},{"type":993,"tag":1026,"props":11305,"children":11306},{"style":1047},[11307],{"type":998,"value":2920},{"type":993,"tag":1026,"props":11309,"children":11310},{"style":1041},[11311],{"type":998,"value":6931},{"type":993,"tag":1026,"props":11313,"children":11314},{"class":1028,"line":173},[11315,11320,11324,11329],{"type":993,"tag":1026,"props":11316,"children":11317},{"style":1041},[11318],{"type":998,"value":11319},"        min_val ",{"type":993,"tag":1026,"props":11321,"children":11322},{"style":1047},[11323],{"type":998,"value":1050},{"type":993,"tag":1026,"props":11325,"children":11326},{"style":1113},[11327],{"type":998,"value":11328}," min",{"type":993,"tag":1026,"props":11330,"children":11331},{"style":1041},[11332],{"type":998,"value":11333},"(min_val, value)\n",{"type":993,"tag":1026,"props":11335,"children":11336},{"class":1028,"line":182},[11337,11342,11346,11351],{"type":993,"tag":1026,"props":11338,"children":11339},{"style":1041},[11340],{"type":998,"value":11341},"        max_val ",{"type":993,"tag":1026,"props":11343,"children":11344},{"style":1047},[11345],{"type":998,"value":1050},{"type":993,"tag":1026,"props":11347,"children":11348},{"style":1113},[11349],{"type":998,"value":11350}," max",{"type":993,"tag":1026,"props":11352,"children":11353},{"style":1041},[11354],{"type":998,"value":11355},"(max_val, value)\n",{"type":993,"tag":1026,"props":11357,"children":11358},{"class":1028,"line":191},[11359],{"type":993,"tag":1026,"props":11360,"children":11361},{"style":1041},[11362],{"type":998,"value":9902},{"type":993,"tag":1026,"props":11364,"children":11365},{"class":1028,"line":201},[11366,11371,11375,11379,11383,11388,11392,11396,11400,11404,11408],{"type":993,"tag":1026,"props":11367,"children":11368},{"style":1041},[11369],{"type":998,"value":11370},"    average ",{"type":993,"tag":1026,"props":11372,"children":11373},{"style":1047},[11374],{"type":998,"value":1050},{"type":993,"tag":1026,"props":11376,"children":11377},{"style":1041},[11378],{"type":998,"value":7502},{"type":993,"tag":1026,"props":11380,"children":11381},{"style":1047},[11382],{"type":998,"value":3053},{"type":993,"tag":1026,"props":11384,"children":11385},{"style":1041},[11386],{"type":998,"value":11387}," count ",{"type":993,"tag":1026,"props":11389,"children":11390},{"style":1047},[11391],{"type":998,"value":3593},{"type":993,"tag":1026,"props":11393,"children":11394},{"style":1041},[11395],{"type":998,"value":11387},{"type":993,"tag":1026,"props":11397,"children":11398},{"style":1047},[11399],{"type":998,"value":2941},{"type":993,"tag":1026,"props":11401,"children":11402},{"style":1113},[11403],{"type":998,"value":7989},{"type":993,"tag":1026,"props":11405,"children":11406},{"style":1047},[11407],{"type":998,"value":2373},{"type":993,"tag":1026,"props":11409,"children":11410},{"style":1113},[11411],{"type":998,"value":2863},{"type":993,"tag":1026,"props":11413,"children":11414},{"class":1028,"line":210},[11415,11419],{"type":993,"tag":1026,"props":11416,"children":11417},{"style":1047},[11418],{"type":998,"value":10066},{"type":993,"tag":1026,"props":11420,"children":11421},{"style":1041},[11422],{"type":998,"value":11423}," {\n",{"type":993,"tag":1026,"props":11425,"children":11426},{"class":1028,"line":219},[11427,11432],{"type":993,"tag":1026,"props":11428,"children":11429},{"style":1058},[11430],{"type":998,"value":11431},"        'count'",{"type":993,"tag":1026,"props":11433,"children":11434},{"style":1041},[11435],{"type":998,"value":11436},": count,\n",{"type":993,"tag":1026,"props":11438,"children":11439},{"class":1028,"line":228},[11440,11445],{"type":993,"tag":1026,"props":11441,"children":11442},{"style":1058},[11443],{"type":998,"value":11444},"        'sum'",{"type":993,"tag":1026,"props":11446,"children":11447},{"style":1041},[11448],{"type":998,"value":11449},": total,\n",{"type":993,"tag":1026,"props":11451,"children":11452},{"class":1028,"line":238},[11453,11458],{"type":993,"tag":1026,"props":11454,"children":11455},{"style":1058},[11456],{"type":998,"value":11457},"        'average'",{"type":993,"tag":1026,"props":11459,"children":11460},{"style":1041},[11461],{"type":998,"value":11462},": average,\n",{"type":993,"tag":1026,"props":11464,"children":11465},{"class":1028,"line":247},[11466,11471],{"type":993,"tag":1026,"props":11467,"children":11468},{"style":1058},[11469],{"type":998,"value":11470},"        'min'",{"type":993,"tag":1026,"props":11472,"children":11473},{"style":1041},[11474],{"type":998,"value":11475},": min_val,\n",{"type":993,"tag":1026,"props":11477,"children":11478},{"class":1028,"line":256},[11479,11484],{"type":993,"tag":1026,"props":11480,"children":11481},{"style":1058},[11482],{"type":998,"value":11483},"        'max'",{"type":993,"tag":1026,"props":11485,"children":11486},{"style":1041},[11487],{"type":998,"value":11488},": max_val\n",{"type":993,"tag":1026,"props":11490,"children":11491},{"class":1028,"line":265},[11492],{"type":993,"tag":1026,"props":11493,"children":11494},{"style":1041},[11495],{"type":998,"value":11496},"    }\n",{"type":993,"tag":1026,"props":11498,"children":11499},{"class":1028,"line":274},[11500],{"type":993,"tag":1026,"props":11501,"children":11502},{"emptyLinePlaceholder":13},[11503],{"type":998,"value":1198},{"type":993,"tag":1026,"props":11505,"children":11506},{"class":1028,"line":284},[11507],{"type":993,"tag":1026,"props":11508,"children":11509},{"style":1032},[11510],{"type":998,"value":11511},"# Example usage\n",{"type":993,"tag":1026,"props":11513,"children":11514},{"class":1028,"line":293},[11515,11520,11524,11528,11533,11537,11541,11545,11549,11553,11558,11562,11566,11570,11574,11578,11583,11587,11591,11595,11600,11604,11609],{"type":993,"tag":1026,"props":11516,"children":11517},{"style":1041},[11518],{"type":998,"value":11519},"sample_data ",{"type":993,"tag":1026,"props":11521,"children":11522},{"style":1047},[11523],{"type":998,"value":1050},{"type":993,"tag":1026,"props":11525,"children":11526},{"style":1041},[11527],{"type":998,"value":1055},{"type":993,"tag":1026,"props":11529,"children":11530},{"style":1113},[11531],{"type":998,"value":11532},"12",{"type":993,"tag":1026,"props":11534,"children":11535},{"style":1041},[11536],{"type":998,"value":1066},{"type":993,"tag":1026,"props":11538,"children":11539},{"style":1113},[11540],{"type":998,"value":6385},{"type":993,"tag":1026,"props":11542,"children":11543},{"style":1041},[11544],{"type":998,"value":1066},{"type":993,"tag":1026,"props":11546,"children":11547},{"style":1113},[11548],{"type":998,"value":4151},{"type":993,"tag":1026,"props":11550,"children":11551},{"style":1041},[11552],{"type":998,"value":1066},{"type":993,"tag":1026,"props":11554,"children":11555},{"style":1113},[11556],{"type":998,"value":11557},"22",{"type":993,"tag":1026,"props":11559,"children":11560},{"style":1041},[11561],{"type":998,"value":1066},{"type":993,"tag":1026,"props":11563,"children":11564},{"style":1113},[11565],{"type":998,"value":6376},{"type":993,"tag":1026,"props":11567,"children":11568},{"style":1041},[11569],{"type":998,"value":1066},{"type":993,"tag":1026,"props":11571,"children":11572},{"style":1113},[11573],{"type":998,"value":5809},{"type":993,"tag":1026,"props":11575,"children":11576},{"style":1041},[11577],{"type":998,"value":1066},{"type":993,"tag":1026,"props":11579,"children":11580},{"style":1113},[11581],{"type":998,"value":11582},"31",{"type":993,"tag":1026,"props":11584,"children":11585},{"style":1041},[11586],{"type":998,"value":1066},{"type":993,"tag":1026,"props":11588,"children":11589},{"style":1113},[11590],{"type":998,"value":6351},{"type":993,"tag":1026,"props":11592,"children":11593},{"style":1041},[11594],{"type":998,"value":1066},{"type":993,"tag":1026,"props":11596,"children":11597},{"style":1113},[11598],{"type":998,"value":11599},"28",{"type":993,"tag":1026,"props":11601,"children":11602},{"style":1041},[11603],{"type":998,"value":1066},{"type":993,"tag":1026,"props":11605,"children":11606},{"style":1113},[11607],{"type":998,"value":11608},"14",{"type":993,"tag":1026,"props":11610,"children":11611},{"style":1041},[11612],{"type":998,"value":1094},{"type":993,"tag":1026,"props":11614,"children":11615},{"class":1028,"line":302},[11616],{"type":993,"tag":1026,"props":11617,"children":11618},{"emptyLinePlaceholder":13},[11619],{"type":998,"value":1198},{"type":993,"tag":1026,"props":11621,"children":11622},{"class":1028,"line":311},[11623],{"type":993,"tag":1026,"props":11624,"children":11625},{"style":1032},[11626],{"type":998,"value":11627},"# Process in chunks\n",{"type":993,"tag":1026,"props":11629,"children":11630},{"class":1028,"line":320},[11631,11635,11639,11644],{"type":993,"tag":1026,"props":11632,"children":11633},{"style":1113},[11634],{"type":998,"value":1214},{"type":993,"tag":1026,"props":11636,"children":11637},{"style":1041},[11638],{"type":998,"value":1219},{"type":993,"tag":1026,"props":11640,"children":11641},{"style":1058},[11642],{"type":998,"value":11643},"\"Processing in chunks:\"",{"type":993,"tag":1026,"props":11645,"children":11646},{"style":1041},[11647],{"type":998,"value":1094},{"type":993,"tag":1026,"props":11649,"children":11650},{"class":1028,"line":329},[11651,11655,11660,11664,11668,11673,11677],{"type":993,"tag":1026,"props":11652,"children":11653},{"style":1047},[11654],{"type":998,"value":1236},{"type":993,"tag":1026,"props":11656,"children":11657},{"style":1041},[11658],{"type":998,"value":11659}," chunk_num, chunk ",{"type":993,"tag":1026,"props":11661,"children":11662},{"style":1047},[11663],{"type":998,"value":1246},{"type":993,"tag":1026,"props":11665,"children":11666},{"style":1113},[11667],{"type":998,"value":3566},{"type":993,"tag":1026,"props":11669,"children":11670},{"style":1041},[11671],{"type":998,"value":11672},"(process_in_chunks(sample_data), ",{"type":993,"tag":1026,"props":11674,"children":11675},{"style":1113},[11676],{"type":998,"value":1654},{"type":993,"tag":1026,"props":11678,"children":11679},{"style":1041},[11680],{"type":998,"value":3799},{"type":993,"tag":1026,"props":11682,"children":11683},{"class":1028,"line":338},[11684,11689,11693,11697],{"type":993,"tag":1026,"props":11685,"children":11686},{"style":1041},[11687],{"type":998,"value":11688},"    chunk_sum ",{"type":993,"tag":1026,"props":11690,"children":11691},{"style":1047},[11692],{"type":998,"value":1050},{"type":993,"tag":1026,"props":11694,"children":11695},{"style":1113},[11696],{"type":998,"value":7480},{"type":993,"tag":1026,"props":11698,"children":11699},{"style":1041},[11700],{"type":998,"value":11701},"(chunk)\n",{"type":993,"tag":1026,"props":11703,"children":11704},{"class":1028,"line":347},[11705,11709,11713,11717,11722,11726,11731,11735,11739,11743,11748,11752,11757,11761,11766,11770,11774],{"type":993,"tag":1026,"props":11706,"children":11707},{"style":1113},[11708],{"type":998,"value":1259},{"type":993,"tag":1026,"props":11710,"children":11711},{"style":1041},[11712],{"type":998,"value":1219},{"type":993,"tag":1026,"props":11714,"children":11715},{"style":1047},[11716],{"type":998,"value":1268},{"type":993,"tag":1026,"props":11718,"children":11719},{"style":1058},[11720],{"type":998,"value":11721},"\"Chunk ",{"type":993,"tag":1026,"props":11723,"children":11724},{"style":1113},[11725],{"type":998,"value":1278},{"type":993,"tag":1026,"props":11727,"children":11728},{"style":1041},[11729],{"type":998,"value":11730},"chunk_num",{"type":993,"tag":1026,"props":11732,"children":11733},{"style":1113},[11734],{"type":998,"value":1288},{"type":993,"tag":1026,"props":11736,"children":11737},{"style":1058},[11738],{"type":998,"value":3702},{"type":993,"tag":1026,"props":11740,"children":11741},{"style":1113},[11742],{"type":998,"value":1278},{"type":993,"tag":1026,"props":11744,"children":11745},{"style":1041},[11746],{"type":998,"value":11747},"chunk",{"type":993,"tag":1026,"props":11749,"children":11750},{"style":1113},[11751],{"type":998,"value":1288},{"type":993,"tag":1026,"props":11753,"children":11754},{"style":1058},[11755],{"type":998,"value":11756}," -> Sum: ",{"type":993,"tag":1026,"props":11758,"children":11759},{"style":1113},[11760],{"type":998,"value":1278},{"type":993,"tag":1026,"props":11762,"children":11763},{"style":1041},[11764],{"type":998,"value":11765},"chunk_sum",{"type":993,"tag":1026,"props":11767,"children":11768},{"style":1113},[11769],{"type":998,"value":1288},{"type":993,"tag":1026,"props":11771,"children":11772},{"style":1058},[11773],{"type":998,"value":1293},{"type":993,"tag":1026,"props":11775,"children":11776},{"style":1041},[11777],{"type":998,"value":1094},{"type":993,"tag":1026,"props":11779,"children":11780},{"class":1028,"line":356},[11781],{"type":993,"tag":1026,"props":11782,"children":11783},{"emptyLinePlaceholder":13},[11784],{"type":998,"value":1198},{"type":993,"tag":1026,"props":11786,"children":11787},{"class":1028,"line":365},[11788],{"type":993,"tag":1026,"props":11789,"children":11790},{"style":1032},[11791],{"type":998,"value":11792},"# Calculate statistics efficiently\n",{"type":993,"tag":1026,"props":11794,"children":11795},{"class":1028,"line":374},[11796,11801,11805],{"type":993,"tag":1026,"props":11797,"children":11798},{"style":1041},[11799],{"type":998,"value":11800},"stats ",{"type":993,"tag":1026,"props":11802,"children":11803},{"style":1047},[11804],{"type":998,"value":1050},{"type":993,"tag":1026,"props":11806,"children":11807},{"style":1041},[11808],{"type":998,"value":11809}," calculate_statistics_incrementally(sample_data)\n",{"type":993,"tag":1026,"props":11811,"children":11812},{"class":1028,"line":384},[11813,11817,11821,11825,11829,11833,11838,11842,11847,11851,11855],{"type":993,"tag":1026,"props":11814,"children":11815},{"style":1113},[11816],{"type":998,"value":1214},{"type":993,"tag":1026,"props":11818,"children":11819},{"style":1041},[11820],{"type":998,"value":1219},{"type":993,"tag":1026,"props":11822,"children":11823},{"style":1047},[11824],{"type":998,"value":1268},{"type":993,"tag":1026,"props":11826,"children":11827},{"style":1058},[11828],{"type":998,"value":1293},{"type":993,"tag":1026,"props":11830,"children":11831},{"style":1113},[11832],{"type":998,"value":1324},{"type":993,"tag":1026,"props":11834,"children":11835},{"style":1058},[11836],{"type":998,"value":11837},"Statistics: ",{"type":993,"tag":1026,"props":11839,"children":11840},{"style":1113},[11841],{"type":998,"value":1278},{"type":993,"tag":1026,"props":11843,"children":11844},{"style":1041},[11845],{"type":998,"value":11846},"stats",{"type":993,"tag":1026,"props":11848,"children":11849},{"style":1113},[11850],{"type":998,"value":1288},{"type":993,"tag":1026,"props":11852,"children":11853},{"style":1058},[11854],{"type":998,"value":1293},{"type":993,"tag":1026,"props":11856,"children":11857},{"style":1041},[11858],{"type":998,"value":1094},{"type":993,"tag":1494,"props":11860,"children":11862},{"id":11861},"iteration-reference",[11863],{"type":998,"value":11864},"📚 Iteration Reference",{"type":993,"tag":1001,"props":11866,"children":11867},{},[11868],{"type":998,"value":11869},"Common tuple iteration patterns and their optimal use cases:",{"type":993,"tag":11871,"props":11872,"children":11873},"table",{},[11874,11903],{"type":993,"tag":11875,"props":11876,"children":11877},"thead",{},[11878],{"type":993,"tag":11879,"props":11880,"children":11881},"tr",{},[11882,11888,11893,11898],{"type":993,"tag":11883,"props":11884,"children":11885},"th",{},[11886],{"type":998,"value":11887},"Pattern",{"type":993,"tag":11883,"props":11889,"children":11890},{},[11891],{"type":998,"value":11892},"Syntax",{"type":993,"tag":11883,"props":11894,"children":11895},{},[11896],{"type":998,"value":11897},"Use Case",{"type":993,"tag":11883,"props":11899,"children":11900},{},[11901],{"type":998,"value":11902},"Example",{"type":993,"tag":11904,"props":11905,"children":11906},"tbody",{},[11907,11941,11975,12009,12043,12077,12111],{"type":993,"tag":11879,"props":11908,"children":11909},{},[11910,11919,11927,11932],{"type":993,"tag":11911,"props":11912,"children":11913},"td",{},[11914],{"type":993,"tag":1516,"props":11915,"children":11916},{},[11917],{"type":998,"value":11918},"Basic Loop",{"type":993,"tag":11911,"props":11920,"children":11921},{},[11922],{"type":993,"tag":1022,"props":11923,"children":11925},{"className":11924},[],[11926],{"type":998,"value":1567},{"type":993,"tag":11911,"props":11928,"children":11929},{},[11930],{"type":998,"value":11931},"Simple processing",{"type":993,"tag":11911,"props":11933,"children":11934},{},[11935],{"type":993,"tag":1022,"props":11936,"children":11938},{"className":11937},[],[11939],{"type":998,"value":11940},"for color in colors:",{"type":993,"tag":11879,"props":11942,"children":11943},{},[11944,11952,11961,11966],{"type":993,"tag":11911,"props":11945,"children":11946},{},[11947],{"type":993,"tag":1516,"props":11948,"children":11949},{},[11950],{"type":998,"value":11951},"Enumerate",{"type":993,"tag":11911,"props":11953,"children":11954},{},[11955],{"type":993,"tag":1022,"props":11956,"children":11958},{"className":11957},[],[11959],{"type":998,"value":11960},"for i, item in enumerate(tuple):",{"type":993,"tag":11911,"props":11962,"children":11963},{},[11964],{"type":998,"value":11965},"Need index and element",{"type":993,"tag":11911,"props":11967,"children":11968},{},[11969],{"type":993,"tag":1022,"props":11970,"children":11972},{"className":11971},[],[11973],{"type":998,"value":11974},"for i, name in enumerate(names):",{"type":993,"tag":11879,"props":11976,"children":11977},{},[11978,11986,11995,12000],{"type":993,"tag":11911,"props":11979,"children":11980},{},[11981],{"type":993,"tag":1516,"props":11982,"children":11983},{},[11984],{"type":998,"value":11985},"Index-Based",{"type":993,"tag":11911,"props":11987,"children":11988},{},[11989],{"type":993,"tag":1022,"props":11990,"children":11992},{"className":11991},[],[11993],{"type":998,"value":11994},"for i in range(len(tuple)):",{"type":993,"tag":11911,"props":11996,"children":11997},{},[11998],{"type":998,"value":11999},"Algorithmic requirements",{"type":993,"tag":11911,"props":12001,"children":12002},{},[12003],{"type":993,"tag":1022,"props":12004,"children":12006},{"className":12005},[],[12007],{"type":998,"value":12008},"for i in range(len(data)):",{"type":993,"tag":11879,"props":12010,"children":12011},{},[12012,12020,12029,12034],{"type":993,"tag":11911,"props":12013,"children":12014},{},[12015],{"type":993,"tag":1516,"props":12016,"children":12017},{},[12018],{"type":998,"value":12019},"Zip Multiple",{"type":993,"tag":11911,"props":12021,"children":12022},{},[12023],{"type":993,"tag":1022,"props":12024,"children":12026},{"className":12025},[],[12027],{"type":998,"value":12028},"for a, b in zip(tuple1, tuple2):",{"type":993,"tag":11911,"props":12030,"children":12031},{},[12032],{"type":998,"value":12033},"Parallel iteration",{"type":993,"tag":11911,"props":12035,"children":12036},{},[12037],{"type":993,"tag":1022,"props":12038,"children":12040},{"className":12039},[],[12041],{"type":998,"value":12042},"for x, y in zip(xs, ys):",{"type":993,"tag":11879,"props":12044,"children":12045},{},[12046,12054,12063,12068],{"type":993,"tag":11911,"props":12047,"children":12048},{},[12049],{"type":993,"tag":1516,"props":12050,"children":12051},{},[12052],{"type":998,"value":12053},"Unpacking",{"type":993,"tag":11911,"props":12055,"children":12056},{},[12057],{"type":993,"tag":1022,"props":12058,"children":12060},{"className":12059},[],[12061],{"type":998,"value":12062},"for a, b in nested_tuple:",{"type":993,"tag":11911,"props":12064,"children":12065},{},[12066],{"type":998,"value":12067},"Nested structures",{"type":993,"tag":11911,"props":12069,"children":12070},{},[12071],{"type":993,"tag":1022,"props":12072,"children":12074},{"className":12073},[],[12075],{"type":998,"value":12076},"for x, y in points:",{"type":993,"tag":11879,"props":12078,"children":12079},{},[12080,12088,12097,12102],{"type":993,"tag":11911,"props":12081,"children":12082},{},[12083],{"type":993,"tag":1516,"props":12084,"children":12085},{},[12086],{"type":998,"value":12087},"Comprehension",{"type":993,"tag":11911,"props":12089,"children":12090},{},[12091],{"type":993,"tag":1022,"props":12092,"children":12094},{"className":12093},[],[12095],{"type":998,"value":12096},"tuple(f(x) for x in tuple)",{"type":993,"tag":11911,"props":12098,"children":12099},{},[12100],{"type":998,"value":12101},"Transformation",{"type":993,"tag":11911,"props":12103,"children":12104},{},[12105],{"type":993,"tag":1022,"props":12106,"children":12108},{"className":12107},[],[12109],{"type":998,"value":12110},"tuple(x*2 for x in numbers)",{"type":993,"tag":11879,"props":12112,"children":12113},{},[12114,12122,12131,12136],{"type":993,"tag":11911,"props":12115,"children":12116},{},[12117],{"type":993,"tag":1516,"props":12118,"children":12119},{},[12120],{"type":998,"value":12121},"Filter",{"type":993,"tag":11911,"props":12123,"children":12124},{},[12125],{"type":993,"tag":1022,"props":12126,"children":12128},{"className":12127},[],[12129],{"type":998,"value":12130},"tuple(filter(func, tuple))",{"type":993,"tag":11911,"props":12132,"children":12133},{},[12134],{"type":998,"value":12135},"Conditional selection",{"type":993,"tag":11911,"props":12137,"children":12138},{},[12139],{"type":993,"tag":1022,"props":12140,"children":12142},{"className":12141},[],[12143],{"type":998,"value":12144},"tuple(filter(lambda x: x>0, data))",{"type":993,"tag":1001,"props":12146,"children":12147},{},[12148],{"type":998,"value":12149},"Choose the pattern that best expresses your intent and provides the clearest code for your specific use case.",{"type":993,"tag":1001,"props":12151,"children":12152},{},[12153,12155,12161,12163,12168],{"type":998,"value":12154},"Learn more about ",{"type":993,"tag":12156,"props":12157,"children":12158},"a",{"href":425},[12159],{"type":998,"value":12160},"merging tuples",{"type":998,"value":12162}," and ",{"type":993,"tag":12156,"props":12164,"children":12165},{"href":434},[12166],{"type":998,"value":12167},"tuple operations",{"type":998,"value":12169}," to expand your tuple manipulation capabilities.",{"type":993,"tag":12171,"props":12172,"children":12175},"exercise",{"hint":12173,"prompt":12174},"Use nested iteration to access both the student names and their individual grades, then calculate averages","Given a tuple of student records where each record contains (name, [grades]), calculate and print each student's average grade, and find the student with the highest average.",[12176],{"type":993,"tag":1016,"props":12177,"children":12179},{"className":1018,"code":12178,"language":6,"meta":8,"style":8},"students = (\n    (\"Alice\", (85, 92, 78, 96)),\n    (\"Bob\", (88, 85, 92, 89)),\n    (\"Carol\", (95, 89, 94, 97)),\n    (\"David\", (78, 82, 85, 80))\n)\n\n# TODO: Write your code here to:\n# 1. Calculate each student's average\n# 2. Find the student with highest average\n",[12180],{"type":993,"tag":1022,"props":12181,"children":12182},{"__ignoreMap":8},[12183,12198,12245,12293,12343,12391,12398,12405,12423,12431],{"type":993,"tag":1026,"props":12184,"children":12185},{"class":1028,"line":12},[12186,12190,12194],{"type":993,"tag":1026,"props":12187,"children":12188},{"style":1041},[12189],{"type":998,"value":1146},{"type":993,"tag":1026,"props":12191,"children":12192},{"style":1047},[12193],{"type":998,"value":1050},{"type":993,"tag":1026,"props":12195,"children":12196},{"style":1041},[12197],{"type":998,"value":5747},{"type":993,"tag":1026,"props":12199,"children":12200},{"class":1028,"line":27},[12201,12205,12209,12213,12217,12221,12225,12229,12233,12237,12241],{"type":993,"tag":1026,"props":12202,"children":12203},{"style":1041},[12204],{"type":998,"value":5755},{"type":993,"tag":1026,"props":12206,"children":12207},{"style":1058},[12208],{"type":998,"value":1159},{"type":993,"tag":1026,"props":12210,"children":12211},{"style":1041},[12212],{"type":998,"value":5772},{"type":993,"tag":1026,"props":12214,"children":12215},{"style":1113},[12216],{"type":998,"value":2114},{"type":993,"tag":1026,"props":12218,"children":12219},{"style":1041},[12220],{"type":998,"value":1066},{"type":993,"tag":1026,"props":12222,"children":12223},{"style":1113},[12224],{"type":998,"value":2123},{"type":993,"tag":1026,"props":12226,"children":12227},{"style":1041},[12228],{"type":998,"value":1066},{"type":993,"tag":1026,"props":12230,"children":12231},{"style":1113},[12232],{"type":998,"value":2132},{"type":993,"tag":1026,"props":12234,"children":12235},{"style":1041},[12236],{"type":998,"value":1066},{"type":993,"tag":1026,"props":12238,"children":12239},{"style":1113},[12240],{"type":998,"value":2141},{"type":993,"tag":1026,"props":12242,"children":12243},{"style":1041},[12244],{"type":998,"value":5789},{"type":993,"tag":1026,"props":12246,"children":12247},{"class":1028,"line":36},[12248,12252,12256,12260,12264,12268,12272,12276,12280,12284,12289],{"type":993,"tag":1026,"props":12249,"children":12250},{"style":1041},[12251],{"type":998,"value":5755},{"type":993,"tag":1026,"props":12253,"children":12254},{"style":1058},[12255],{"type":998,"value":1168},{"type":993,"tag":1026,"props":12257,"children":12258},{"style":1041},[12259],{"type":998,"value":5772},{"type":993,"tag":1026,"props":12261,"children":12262},{"style":1113},[12263],{"type":998,"value":2150},{"type":993,"tag":1026,"props":12265,"children":12266},{"style":1041},[12267],{"type":998,"value":1066},{"type":993,"tag":1026,"props":12269,"children":12270},{"style":1113},[12271],{"type":998,"value":2114},{"type":993,"tag":1026,"props":12273,"children":12274},{"style":1041},[12275],{"type":998,"value":1066},{"type":993,"tag":1026,"props":12277,"children":12278},{"style":1113},[12279],{"type":998,"value":2123},{"type":993,"tag":1026,"props":12281,"children":12282},{"style":1041},[12283],{"type":998,"value":1066},{"type":993,"tag":1026,"props":12285,"children":12286},{"style":1113},[12287],{"type":998,"value":12288},"89",{"type":993,"tag":1026,"props":12290,"children":12291},{"style":1041},[12292],{"type":998,"value":5789},{"type":993,"tag":1026,"props":12294,"children":12295},{"class":1028,"line":45},[12296,12300,12304,12308,12313,12317,12321,12325,12330,12334,12339],{"type":993,"tag":1026,"props":12297,"children":12298},{"style":1041},[12299],{"type":998,"value":5755},{"type":993,"tag":1026,"props":12301,"children":12302},{"style":1058},[12303],{"type":998,"value":1177},{"type":993,"tag":1026,"props":12305,"children":12306},{"style":1041},[12307],{"type":998,"value":5772},{"type":993,"tag":1026,"props":12309,"children":12310},{"style":1113},[12311],{"type":998,"value":12312},"95",{"type":993,"tag":1026,"props":12314,"children":12315},{"style":1041},[12316],{"type":998,"value":1066},{"type":993,"tag":1026,"props":12318,"children":12319},{"style":1113},[12320],{"type":998,"value":12288},{"type":993,"tag":1026,"props":12322,"children":12323},{"style":1041},[12324],{"type":998,"value":1066},{"type":993,"tag":1026,"props":12326,"children":12327},{"style":1113},[12328],{"type":998,"value":12329},"94",{"type":993,"tag":1026,"props":12331,"children":12332},{"style":1041},[12333],{"type":998,"value":1066},{"type":993,"tag":1026,"props":12335,"children":12336},{"style":1113},[12337],{"type":998,"value":12338},"97",{"type":993,"tag":1026,"props":12340,"children":12341},{"style":1041},[12342],{"type":998,"value":5789},{"type":993,"tag":1026,"props":12344,"children":12345},{"class":1028,"line":54},[12346,12350,12354,12358,12362,12366,12370,12374,12378,12382,12387],{"type":993,"tag":1026,"props":12347,"children":12348},{"style":1041},[12349],{"type":998,"value":5755},{"type":993,"tag":1026,"props":12351,"children":12352},{"style":1058},[12353],{"type":998,"value":1186},{"type":993,"tag":1026,"props":12355,"children":12356},{"style":1041},[12357],{"type":998,"value":5772},{"type":993,"tag":1026,"props":12359,"children":12360},{"style":1113},[12361],{"type":998,"value":2132},{"type":993,"tag":1026,"props":12363,"children":12364},{"style":1041},[12365],{"type":998,"value":1066},{"type":993,"tag":1026,"props":12367,"children":12368},{"style":1113},[12369],{"type":998,"value":2211},{"type":993,"tag":1026,"props":12371,"children":12372},{"style":1041},[12373],{"type":998,"value":1066},{"type":993,"tag":1026,"props":12375,"children":12376},{"style":1113},[12377],{"type":998,"value":2114},{"type":993,"tag":1026,"props":12379,"children":12380},{"style":1041},[12381],{"type":998,"value":1066},{"type":993,"tag":1026,"props":12383,"children":12384},{"style":1113},[12385],{"type":998,"value":12386},"80",{"type":993,"tag":1026,"props":12388,"children":12389},{"style":1041},[12390],{"type":998,"value":5730},{"type":993,"tag":1026,"props":12392,"children":12393},{"class":1028,"line":63},[12394],{"type":993,"tag":1026,"props":12395,"children":12396},{"style":1041},[12397],{"type":998,"value":1094},{"type":993,"tag":1026,"props":12399,"children":12400},{"class":1028,"line":72},[12401],{"type":993,"tag":1026,"props":12402,"children":12403},{"emptyLinePlaceholder":13},[12404],{"type":998,"value":1198},{"type":993,"tag":1026,"props":12406,"children":12407},{"class":1028,"line":81},[12408,12413,12418],{"type":993,"tag":1026,"props":12409,"children":12410},{"style":1032},[12411],{"type":998,"value":12412},"# ",{"type":993,"tag":1026,"props":12414,"children":12415},{"style":1047},[12416],{"type":998,"value":12417},"TODO",{"type":993,"tag":1026,"props":12419,"children":12420},{"style":1032},[12421],{"type":998,"value":12422},": Write your code here to:\n",{"type":993,"tag":1026,"props":12424,"children":12425},{"class":1028,"line":91},[12426],{"type":993,"tag":1026,"props":12427,"children":12428},{"style":1032},[12429],{"type":998,"value":12430},"# 1. Calculate each student's average\n",{"type":993,"tag":1026,"props":12432,"children":12433},{"class":1028,"line":100},[12434],{"type":993,"tag":1026,"props":12435,"children":12436},{"style":1032},[12437],{"type":998,"value":12438},"# 2. Find the student with highest average\n",{"type":993,"tag":1605,"props":12440,"children":12442},{"id":12441},"solution-and-explanation",[12443],{"type":998,"value":12444},"Solution and Explanation 💡",{"type":993,"tag":12446,"props":12447,"children":12448},"details",{},[12449,12457,13010,13018],{"type":993,"tag":12450,"props":12451,"children":12454},"summary",{"className":12452},[12453],"cursor-pointer",[12455],{"type":998,"value":12456},"Click to see the complete solution",{"type":993,"tag":1012,"props":12458,"children":12459},{},[12460],{"type":993,"tag":1016,"props":12461,"children":12463},{"className":1018,"code":12462,"language":6,"meta":8,"style":8},"students = (\n    (\"Alice\", (85, 92, 78, 96)),\n    (\"Bob\", (88, 85, 92, 89)),\n    (\"Carol\", (95, 89, 94, 97)),\n    (\"David\", (78, 82, 85, 80))\n)\n\n# Calculate each student's average\nhighest_average = 0\nbest_student = \"\"\n\nprint(\"Student averages:\")\nfor name, grades in students:\n    average = sum(grades) / len(grades)\n    print(f\"{name}: {average:.1f}\")\n    \n    # Track the highest average\n    if average > highest_average:\n        highest_average = average\n        best_student = name\n\nprint(f\"\\nStudent with highest average: {best_student} ({highest_average:.1f})\")\n",[12464],{"type":993,"tag":1022,"props":12465,"children":12466},{"__ignoreMap":8},[12467,12482,12529,12576,12623,12670,12677,12684,12692,12708,12725,12732,12752,12772,12804,12863,12870,12878,12899,12916,12933,12940],{"type":993,"tag":1026,"props":12468,"children":12469},{"class":1028,"line":12},[12470,12474,12478],{"type":993,"tag":1026,"props":12471,"children":12472},{"style":1041},[12473],{"type":998,"value":1146},{"type":993,"tag":1026,"props":12475,"children":12476},{"style":1047},[12477],{"type":998,"value":1050},{"type":993,"tag":1026,"props":12479,"children":12480},{"style":1041},[12481],{"type":998,"value":5747},{"type":993,"tag":1026,"props":12483,"children":12484},{"class":1028,"line":27},[12485,12489,12493,12497,12501,12505,12509,12513,12517,12521,12525],{"type":993,"tag":1026,"props":12486,"children":12487},{"style":1041},[12488],{"type":998,"value":5755},{"type":993,"tag":1026,"props":12490,"children":12491},{"style":1058},[12492],{"type":998,"value":1159},{"type":993,"tag":1026,"props":12494,"children":12495},{"style":1041},[12496],{"type":998,"value":5772},{"type":993,"tag":1026,"props":12498,"children":12499},{"style":1113},[12500],{"type":998,"value":2114},{"type":993,"tag":1026,"props":12502,"children":12503},{"style":1041},[12504],{"type":998,"value":1066},{"type":993,"tag":1026,"props":12506,"children":12507},{"style":1113},[12508],{"type":998,"value":2123},{"type":993,"tag":1026,"props":12510,"children":12511},{"style":1041},[12512],{"type":998,"value":1066},{"type":993,"tag":1026,"props":12514,"children":12515},{"style":1113},[12516],{"type":998,"value":2132},{"type":993,"tag":1026,"props":12518,"children":12519},{"style":1041},[12520],{"type":998,"value":1066},{"type":993,"tag":1026,"props":12522,"children":12523},{"style":1113},[12524],{"type":998,"value":2141},{"type":993,"tag":1026,"props":12526,"children":12527},{"style":1041},[12528],{"type":998,"value":5789},{"type":993,"tag":1026,"props":12530,"children":12531},{"class":1028,"line":36},[12532,12536,12540,12544,12548,12552,12556,12560,12564,12568,12572],{"type":993,"tag":1026,"props":12533,"children":12534},{"style":1041},[12535],{"type":998,"value":5755},{"type":993,"tag":1026,"props":12537,"children":12538},{"style":1058},[12539],{"type":998,"value":1168},{"type":993,"tag":1026,"props":12541,"children":12542},{"style":1041},[12543],{"type":998,"value":5772},{"type":993,"tag":1026,"props":12545,"children":12546},{"style":1113},[12547],{"type":998,"value":2150},{"type":993,"tag":1026,"props":12549,"children":12550},{"style":1041},[12551],{"type":998,"value":1066},{"type":993,"tag":1026,"props":12553,"children":12554},{"style":1113},[12555],{"type":998,"value":2114},{"type":993,"tag":1026,"props":12557,"children":12558},{"style":1041},[12559],{"type":998,"value":1066},{"type":993,"tag":1026,"props":12561,"children":12562},{"style":1113},[12563],{"type":998,"value":2123},{"type":993,"tag":1026,"props":12565,"children":12566},{"style":1041},[12567],{"type":998,"value":1066},{"type":993,"tag":1026,"props":12569,"children":12570},{"style":1113},[12571],{"type":998,"value":12288},{"type":993,"tag":1026,"props":12573,"children":12574},{"style":1041},[12575],{"type":998,"value":5789},{"type":993,"tag":1026,"props":12577,"children":12578},{"class":1028,"line":45},[12579,12583,12587,12591,12595,12599,12603,12607,12611,12615,12619],{"type":993,"tag":1026,"props":12580,"children":12581},{"style":1041},[12582],{"type":998,"value":5755},{"type":993,"tag":1026,"props":12584,"children":12585},{"style":1058},[12586],{"type":998,"value":1177},{"type":993,"tag":1026,"props":12588,"children":12589},{"style":1041},[12590],{"type":998,"value":5772},{"type":993,"tag":1026,"props":12592,"children":12593},{"style":1113},[12594],{"type":998,"value":12312},{"type":993,"tag":1026,"props":12596,"children":12597},{"style":1041},[12598],{"type":998,"value":1066},{"type":993,"tag":1026,"props":12600,"children":12601},{"style":1113},[12602],{"type":998,"value":12288},{"type":993,"tag":1026,"props":12604,"children":12605},{"style":1041},[12606],{"type":998,"value":1066},{"type":993,"tag":1026,"props":12608,"children":12609},{"style":1113},[12610],{"type":998,"value":12329},{"type":993,"tag":1026,"props":12612,"children":12613},{"style":1041},[12614],{"type":998,"value":1066},{"type":993,"tag":1026,"props":12616,"children":12617},{"style":1113},[12618],{"type":998,"value":12338},{"type":993,"tag":1026,"props":12620,"children":12621},{"style":1041},[12622],{"type":998,"value":5789},{"type":993,"tag":1026,"props":12624,"children":12625},{"class":1028,"line":54},[12626,12630,12634,12638,12642,12646,12650,12654,12658,12662,12666],{"type":993,"tag":1026,"props":12627,"children":12628},{"style":1041},[12629],{"type":998,"value":5755},{"type":993,"tag":1026,"props":12631,"children":12632},{"style":1058},[12633],{"type":998,"value":1186},{"type":993,"tag":1026,"props":12635,"children":12636},{"style":1041},[12637],{"type":998,"value":5772},{"type":993,"tag":1026,"props":12639,"children":12640},{"style":1113},[12641],{"type":998,"value":2132},{"type":993,"tag":1026,"props":12643,"children":12644},{"style":1041},[12645],{"type":998,"value":1066},{"type":993,"tag":1026,"props":12647,"children":12648},{"style":1113},[12649],{"type":998,"value":2211},{"type":993,"tag":1026,"props":12651,"children":12652},{"style":1041},[12653],{"type":998,"value":1066},{"type":993,"tag":1026,"props":12655,"children":12656},{"style":1113},[12657],{"type":998,"value":2114},{"type":993,"tag":1026,"props":12659,"children":12660},{"style":1041},[12661],{"type":998,"value":1066},{"type":993,"tag":1026,"props":12663,"children":12664},{"style":1113},[12665],{"type":998,"value":12386},{"type":993,"tag":1026,"props":12667,"children":12668},{"style":1041},[12669],{"type":998,"value":5730},{"type":993,"tag":1026,"props":12671,"children":12672},{"class":1028,"line":63},[12673],{"type":993,"tag":1026,"props":12674,"children":12675},{"style":1041},[12676],{"type":998,"value":1094},{"type":993,"tag":1026,"props":12678,"children":12679},{"class":1028,"line":72},[12680],{"type":993,"tag":1026,"props":12681,"children":12682},{"emptyLinePlaceholder":13},[12683],{"type":998,"value":1198},{"type":993,"tag":1026,"props":12685,"children":12686},{"class":1028,"line":81},[12687],{"type":993,"tag":1026,"props":12688,"children":12689},{"style":1032},[12690],{"type":998,"value":12691},"# Calculate each student's average\n",{"type":993,"tag":1026,"props":12693,"children":12694},{"class":1028,"line":91},[12695,12700,12704],{"type":993,"tag":1026,"props":12696,"children":12697},{"style":1041},[12698],{"type":998,"value":12699},"highest_average ",{"type":993,"tag":1026,"props":12701,"children":12702},{"style":1047},[12703],{"type":998,"value":1050},{"type":993,"tag":1026,"props":12705,"children":12706},{"style":1113},[12707],{"type":998,"value":2863},{"type":993,"tag":1026,"props":12709,"children":12710},{"class":1028,"line":100},[12711,12716,12720],{"type":993,"tag":1026,"props":12712,"children":12713},{"style":1041},[12714],{"type":998,"value":12715},"best_student ",{"type":993,"tag":1026,"props":12717,"children":12718},{"style":1047},[12719],{"type":998,"value":1050},{"type":993,"tag":1026,"props":12721,"children":12722},{"style":1058},[12723],{"type":998,"value":12724}," \"\"\n",{"type":993,"tag":1026,"props":12726,"children":12727},{"class":1028,"line":109},[12728],{"type":993,"tag":1026,"props":12729,"children":12730},{"emptyLinePlaceholder":13},[12731],{"type":998,"value":1198},{"type":993,"tag":1026,"props":12733,"children":12734},{"class":1028,"line":118},[12735,12739,12743,12748],{"type":993,"tag":1026,"props":12736,"children":12737},{"style":1113},[12738],{"type":998,"value":1214},{"type":993,"tag":1026,"props":12740,"children":12741},{"style":1041},[12742],{"type":998,"value":1219},{"type":993,"tag":1026,"props":12744,"children":12745},{"style":1058},[12746],{"type":998,"value":12747},"\"Student averages:\"",{"type":993,"tag":1026,"props":12749,"children":12750},{"style":1041},[12751],{"type":998,"value":1094},{"type":993,"tag":1026,"props":12753,"children":12754},{"class":1028,"line":127},[12755,12759,12764,12768],{"type":993,"tag":1026,"props":12756,"children":12757},{"style":1047},[12758],{"type":998,"value":1236},{"type":993,"tag":1026,"props":12760,"children":12761},{"style":1041},[12762],{"type":998,"value":12763}," name, grades ",{"type":993,"tag":1026,"props":12765,"children":12766},{"style":1047},[12767],{"type":998,"value":1246},{"type":993,"tag":1026,"props":12769,"children":12770},{"style":1041},[12771],{"type":998,"value":1451},{"type":993,"tag":1026,"props":12773,"children":12774},{"class":1028,"line":136},[12775,12779,12783,12787,12791,12795,12799],{"type":993,"tag":1026,"props":12776,"children":12777},{"style":1041},[12778],{"type":998,"value":11370},{"type":993,"tag":1026,"props":12780,"children":12781},{"style":1047},[12782],{"type":998,"value":1050},{"type":993,"tag":1026,"props":12784,"children":12785},{"style":1113},[12786],{"type":998,"value":7480},{"type":993,"tag":1026,"props":12788,"children":12789},{"style":1041},[12790],{"type":998,"value":3612},{"type":993,"tag":1026,"props":12792,"children":12793},{"style":1047},[12794],{"type":998,"value":3053},{"type":993,"tag":1026,"props":12796,"children":12797},{"style":1113},[12798],{"type":998,"value":1964},{"type":993,"tag":1026,"props":12800,"children":12801},{"style":1041},[12802],{"type":998,"value":12803},"(grades)\n",{"type":993,"tag":1026,"props":12805,"children":12806},{"class":1028,"line":146},[12807,12811,12815,12819,12823,12827,12831,12835,12839,12843,12847,12851,12855,12859],{"type":993,"tag":1026,"props":12808,"children":12809},{"style":1113},[12810],{"type":998,"value":1259},{"type":993,"tag":1026,"props":12812,"children":12813},{"style":1041},[12814],{"type":998,"value":1219},{"type":993,"tag":1026,"props":12816,"children":12817},{"style":1047},[12818],{"type":998,"value":1268},{"type":993,"tag":1026,"props":12820,"children":12821},{"style":1058},[12822],{"type":998,"value":1293},{"type":993,"tag":1026,"props":12824,"children":12825},{"style":1113},[12826],{"type":998,"value":1278},{"type":993,"tag":1026,"props":12828,"children":12829},{"style":1041},[12830],{"type":998,"value":6162},{"type":993,"tag":1026,"props":12832,"children":12833},{"style":1113},[12834],{"type":998,"value":1288},{"type":993,"tag":1026,"props":12836,"children":12837},{"style":1058},[12838],{"type":998,"value":3702},{"type":993,"tag":1026,"props":12840,"children":12841},{"style":1113},[12842],{"type":998,"value":1278},{"type":993,"tag":1026,"props":12844,"children":12845},{"style":1041},[12846],{"type":998,"value":7560},{"type":993,"tag":1026,"props":12848,"children":12849},{"style":1047},[12850],{"type":998,"value":1871},{"type":993,"tag":1026,"props":12852,"children":12853},{"style":1113},[12854],{"type":998,"value":1288},{"type":993,"tag":1026,"props":12856,"children":12857},{"style":1058},[12858],{"type":998,"value":1293},{"type":993,"tag":1026,"props":12860,"children":12861},{"style":1041},[12862],{"type":998,"value":1094},{"type":993,"tag":1026,"props":12864,"children":12865},{"class":1028,"line":155},[12866],{"type":993,"tag":1026,"props":12867,"children":12868},{"style":1041},[12869],{"type":998,"value":9902},{"type":993,"tag":1026,"props":12871,"children":12872},{"class":1028,"line":164},[12873],{"type":993,"tag":1026,"props":12874,"children":12875},{"style":1032},[12876],{"type":998,"value":12877},"    # Track the highest average\n",{"type":993,"tag":1026,"props":12879,"children":12880},{"class":1028,"line":173},[12881,12885,12890,12894],{"type":993,"tag":1026,"props":12882,"children":12883},{"style":1047},[12884],{"type":998,"value":2314},{"type":993,"tag":1026,"props":12886,"children":12887},{"style":1041},[12888],{"type":998,"value":12889}," average ",{"type":993,"tag":1026,"props":12891,"children":12892},{"style":1047},[12893],{"type":998,"value":2941},{"type":993,"tag":1026,"props":12895,"children":12896},{"style":1041},[12897],{"type":998,"value":12898}," highest_average:\n",{"type":993,"tag":1026,"props":12900,"children":12901},{"class":1028,"line":182},[12902,12907,12911],{"type":993,"tag":1026,"props":12903,"children":12904},{"style":1041},[12905],{"type":998,"value":12906},"        highest_average ",{"type":993,"tag":1026,"props":12908,"children":12909},{"style":1047},[12910],{"type":998,"value":1050},{"type":993,"tag":1026,"props":12912,"children":12913},{"style":1041},[12914],{"type":998,"value":12915}," average\n",{"type":993,"tag":1026,"props":12917,"children":12918},{"class":1028,"line":191},[12919,12924,12928],{"type":993,"tag":1026,"props":12920,"children":12921},{"style":1041},[12922],{"type":998,"value":12923},"        best_student ",{"type":993,"tag":1026,"props":12925,"children":12926},{"style":1047},[12927],{"type":998,"value":1050},{"type":993,"tag":1026,"props":12929,"children":12930},{"style":1041},[12931],{"type":998,"value":12932}," name\n",{"type":993,"tag":1026,"props":12934,"children":12935},{"class":1028,"line":201},[12936],{"type":993,"tag":1026,"props":12937,"children":12938},{"emptyLinePlaceholder":13},[12939],{"type":998,"value":1198},{"type":993,"tag":1026,"props":12941,"children":12942},{"class":1028,"line":210},[12943,12947,12951,12955,12959,12963,12968,12972,12977,12981,12985,12989,12994,12998,13002,13006],{"type":993,"tag":1026,"props":12944,"children":12945},{"style":1113},[12946],{"type":998,"value":1214},{"type":993,"tag":1026,"props":12948,"children":12949},{"style":1041},[12950],{"type":998,"value":1219},{"type":993,"tag":1026,"props":12952,"children":12953},{"style":1047},[12954],{"type":998,"value":1268},{"type":993,"tag":1026,"props":12956,"children":12957},{"style":1058},[12958],{"type":998,"value":1293},{"type":993,"tag":1026,"props":12960,"children":12961},{"style":1113},[12962],{"type":998,"value":1324},{"type":993,"tag":1026,"props":12964,"children":12965},{"style":1058},[12966],{"type":998,"value":12967},"Student with highest average: ",{"type":993,"tag":1026,"props":12969,"children":12970},{"style":1113},[12971],{"type":998,"value":1278},{"type":993,"tag":1026,"props":12973,"children":12974},{"style":1041},[12975],{"type":998,"value":12976},"best_student",{"type":993,"tag":1026,"props":12978,"children":12979},{"style":1113},[12980],{"type":998,"value":1288},{"type":993,"tag":1026,"props":12982,"children":12983},{"style":1058},[12984],{"type":998,"value":1055},{"type":993,"tag":1026,"props":12986,"children":12987},{"style":1113},[12988],{"type":998,"value":1278},{"type":993,"tag":1026,"props":12990,"children":12991},{"style":1041},[12992],{"type":998,"value":12993},"highest_average",{"type":993,"tag":1026,"props":12995,"children":12996},{"style":1047},[12997],{"type":998,"value":1871},{"type":993,"tag":1026,"props":12999,"children":13000},{"style":1113},[13001],{"type":998,"value":1288},{"type":993,"tag":1026,"props":13003,"children":13004},{"style":1058},[13005],{"type":998,"value":2435},{"type":993,"tag":1026,"props":13007,"children":13008},{"style":1041},[13009],{"type":998,"value":1094},{"type":993,"tag":1001,"props":13011,"children":13012},{},[13013],{"type":993,"tag":1516,"props":13014,"children":13015},{},[13016],{"type":998,"value":13017},"Key Learning Points:",{"type":993,"tag":1522,"props":13019,"children":13020},{},[13021,13041,13052,13070],{"type":993,"tag":1526,"props":13022,"children":13023},{},[13024,13026,13031,13033,13039],{"type":998,"value":13025},"📌 ",{"type":993,"tag":1516,"props":13027,"children":13028},{},[13029],{"type":998,"value":13030},"Tuple unpacking in loops",{"type":998,"value":13032},": Use ",{"type":993,"tag":1022,"props":13034,"children":13036},{"className":13035},[],[13037],{"type":998,"value":13038},"for name, grades in students",{"type":998,"value":13040}," to unpack each record",{"type":993,"tag":1526,"props":13042,"children":13043},{},[13044,13045,13050],{"type":998,"value":13025},{"type":993,"tag":1516,"props":13046,"children":13047},{},[13048],{"type":998,"value":13049},"Nested tuple access",{"type":998,"value":13051},": Each grades element is itself a tuple to iterate through",{"type":993,"tag":1526,"props":13053,"children":13054},{},[13055,13056,13061,13062,13068],{"type":998,"value":13025},{"type":993,"tag":1516,"props":13057,"children":13058},{},[13059],{"type":998,"value":13060},"Average calculation",{"type":998,"value":13032},{"type":993,"tag":1022,"props":13063,"children":13065},{"className":13064},[],[13066],{"type":998,"value":13067},"sum(grades) / len(grades)",{"type":998,"value":13069}," to calculate mean",{"type":993,"tag":1526,"props":13071,"children":13072},{},[13073,13074,13079],{"type":998,"value":13025},{"type":993,"tag":1516,"props":13075,"children":13076},{},[13077],{"type":998,"value":13078},"Tracking maximum",{"type":998,"value":13080},": Compare each average to find the highest during iteration",{"type":993,"tag":1494,"props":13082,"children":13084},{"id":13083},"test-your-knowledge",[13085],{"type":998,"value":13086},"Test Your Knowledge",{"type":993,"tag":1001,"props":13088,"children":13089},{},[13090],{"type":998,"value":13091},"Test what you've learned about iterating tuples in Python:",{"type":993,"tag":13093,"props":13094,"children":13098},"redirect-button",{"icon":13095,"label":13096,"url":13097},"pi pi-send","Take Quiz","/tutorial-quiz/python/iterating-tuples",[],{"type":993,"tag":1494,"props":13100,"children":13102},{"id":13101},"whats-next",[13103],{"type":998,"value":13104},"What's Next?",{"type":993,"tag":1001,"props":13106,"children":13107},{},[13108],{"type":998,"value":13109},"Now that you understand tuple iteration, you're ready to learn about combining and merging tuples to create more complex data structures. Understanding tuple merging is essential for data aggregation and combination operations.",{"type":993,"tag":1001,"props":13111,"children":13112},{},[13113,13115,13119],{"type":998,"value":13114},"Ready to continue? Check out our lesson on ",{"type":993,"tag":12156,"props":13116,"children":13117},{"href":425},[13118],{"type":998,"value":426},{"type":998,"value":13120},".",{"type":993,"tag":13122,"props":13123,"children":13124},"style",{},[13125],{"type":998,"value":13126},"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":13128},[13129,13134,13139,13144,13149,13153,13156,13157],{"id":1496,"depth":27,"text":1499,"children":13130},[13131,13132,13133],{"id":1607,"depth":36,"text":1610},{"id":2067,"depth":36,"text":2070},{"id":2674,"depth":36,"text":2677},{"id":3274,"depth":27,"text":3277,"children":13135},[13136,13137,13138],{"id":3374,"depth":36,"text":3377},{"id":4080,"depth":36,"text":4083},{"id":4872,"depth":36,"text":4875},{"id":5519,"depth":27,"text":5522,"children":13140},[13141,13142,13143],{"id":5635,"depth":36,"text":5638},{"id":6256,"depth":36,"text":6259},{"id":6983,"depth":36,"text":6986},{"id":7579,"depth":27,"text":7582,"children":13145},[13146,13147,13148],{"id":7683,"depth":36,"text":7686},{"id":8417,"depth":36,"text":8420},{"id":9274,"depth":36,"text":9277},{"id":10282,"depth":27,"text":10285,"children":13150},[13151,13152],{"id":10387,"depth":36,"text":10390},{"id":10990,"depth":36,"text":10993},{"id":11861,"depth":27,"text":11864,"children":13154},[13155],{"id":12441,"depth":36,"text":12444},{"id":13083,"depth":27,"text":13086},{"id":13101,"depth":27,"text":13104},1782373739427]