[{"data":1,"prerenderedAt":5984},["ShallowReactive",2],{"tutorials-python":3,"category-items-python":987,"content-/python/looping-through-lists":988},[4,22,31,40,49,58,67,76,86,95,104,113,122,131,141,150,159,168,177,186,196,205,214,223,233,242,251,260,269,279,288,297,306,315,324,333,342,351,360,369,379,388,397,406,415,424,433,442,452,461,470,479,488,497,506,515,525,534,543,552,561,570,579,588,597,606,616,625,634,643,652,661,670,680,689,698,707,716,725,734,744,753,762,771,780,789,798,807,817,826,835,844,853,863,872,881,890,900,909,918,927,936,945,953,961,970,979],{"_path":5,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":9,"description":10,"slug":11,"order":12,"isParent":13,"icon":14,"_type":15,"_id":16,"_source":17,"_file":18,"_stem":19,"_extension":20,"children":21,"expanded":13},"/python/getting-started","python",false,"","Getting Started","Begin your Python programming journey. Learn what Python is, how to set it up, and write your first programs. Perfect for complete beginners starting their coding adventure.","getting-started",1,true,"pi pi-folder","markdown","content:python:1.getting-started.md","content","python/1.getting-started.md","python/1.getting-started","md",[22,31,40,49,58,67],{"_path":23,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":24,"description":25,"slug":26,"parentId":5,"order":27,"_type":15,"_id":28,"_source":17,"_file":29,"_stem":30,"_extension":20},"/python/what-is-python","What is Python","Discover Python's fascinating history, design philosophy, and key features. Learn why Python has become one of the world's most popular programming languages and perfect for beginners.","what-is-python",2,"content:python:2.what-is-python.md","python/2.what-is-python.md","python/2.what-is-python",{"_path":32,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":33,"description":34,"slug":35,"parentId":5,"order":36,"_type":15,"_id":37,"_source":17,"_file":38,"_stem":39,"_extension":20},"/python/setup-python","Setup Python","Learn how to install Python on your computer and set up your development environment. Step-by-step guide for Windows, macOS, and Linux with beginner-friendly instructions.","setup-python",3,"content:python:3.setup-python.md","python/3.setup-python.md","python/3.setup-python",{"_path":41,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":42,"description":43,"slug":44,"parentId":5,"order":45,"_type":15,"_id":46,"_source":17,"_file":47,"_stem":48,"_extension":20},"/python/your-first-program","Your First Program","Write and run your first Python program! Learn the basics of Python programming with simple examples and step-by-step instructions for beginners.","your-first-program",4,"content:python:4.your-first-program.md","python/4.your-first-program.md","python/4.your-first-program",{"_path":50,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":51,"description":52,"slug":53,"parentId":5,"order":54,"_type":15,"_id":55,"_source":17,"_file":56,"_stem":57,"_extension":20},"/python/python-code-structure","Python Code Structure","Learn how Python code is organized and structured. Understand indentation, line breaks, and the basic rules that make Python programs work correctly.","python-code-structure",5,"content:python:5.python-code-structure.md","python/5.python-code-structure.md","python/5.python-code-structure",{"_path":59,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":60,"description":61,"slug":62,"parentId":5,"order":63,"_type":15,"_id":64,"_source":17,"_file":65,"_stem":66,"_extension":20},"/python/writing-comments","Writing Comments","Learn how to write effective comments in Python. Discover when and how to document your code to make it clear, maintainable, and easy to understand.","writing-comments",6,"content:python:6.writing-comments.md","python/6.writing-comments.md","python/6.writing-comments",{"_path":68,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":69,"description":70,"slug":71,"parentId":5,"order":72,"_type":15,"_id":73,"_source":17,"_file":74,"_stem":75,"_extension":20},"/python/working-with-variables","Working with Variables","Learn how to create, use, and manage variables in Python. Understand how to store data, change values, and follow naming conventions for clean, readable code.","working-with-variables",7,"content:python:7.working-with-variables.md","python/7.working-with-variables.md","python/7.working-with-variables",{"_path":77,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":78,"description":79,"slug":80,"order":81,"isParent":13,"icon":14,"_type":15,"_id":82,"_source":17,"_file":83,"_stem":84,"_extension":20,"children":85,"expanded":13},"/python/basic-data-types","Basic Data Types","Learn about Python's fundamental data types including numbers, text, and boolean values","basic-data-types",8,"content:python:8.basic-data-types.md","python/8.basic-data-types.md","python/8.basic-data-types",[86,95,104,113,122],{"_path":87,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":88,"description":89,"slug":90,"parentId":77,"order":91,"_type":15,"_id":92,"_source":17,"_file":93,"_stem":94,"_extension":20},"/python/understanding-data-types","Understanding Data Types","Learn how Python identifies different data types and why they're important for programming","understanding-data-types",9,"content:python:9.understanding-data-types.md","python/9.understanding-data-types.md","python/9.understanding-data-types",{"_path":96,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":97,"description":98,"slug":99,"parentId":77,"order":100,"_type":15,"_id":101,"_source":17,"_file":102,"_stem":103,"_extension":20},"/python/working-with-numbers","Working with Numbers","Learn about Python's numeric data types including integers and floats, and how to perform calculations","working-with-numbers",10,"content:python:10.working-with-numbers.md","python/10.working-with-numbers.md","python/10.working-with-numbers",{"_path":105,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":106,"description":107,"slug":108,"parentId":77,"order":109,"_type":15,"_id":110,"_source":17,"_file":111,"_stem":112,"_extension":20},"/python/text-and-strings","Text and Strings","Learn how to work with text data in Python using strings, including creation, manipulation, and formatting","text-and-strings",11,"content:python:11.text-and-strings.md","python/11.text-and-strings.md","python/11.text-and-strings",{"_path":114,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":115,"description":116,"slug":117,"parentId":77,"order":118,"_type":15,"_id":119,"_source":17,"_file":120,"_stem":121,"_extension":20},"/python/true-false-values","True/False Values","Learn about boolean values in Python, including True/False logic, comparison operations, and how to use booleans for decision-making in your programs","true-false-values",12,"content:python:12.true-false-values.md","python/12.true-false-values.md","python/12.true-false-values",{"_path":123,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":124,"description":125,"slug":126,"parentId":77,"order":127,"_type":15,"_id":128,"_source":17,"_file":129,"_stem":130,"_extension":20},"/python/converting-types","Converting Types","Learn how to convert between different Python data types including strings, numbers, and booleans","converting-types",13,"content:python:13.converting-types.md","python/13.converting-types.md","python/13.converting-types",{"_path":132,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":133,"description":134,"slug":135,"order":136,"isParent":13,"icon":14,"_type":15,"_id":137,"_source":17,"_file":138,"_stem":139,"_extension":20,"children":140,"expanded":13},"/python/python-operators","Python Operators","Learn about Python operators - the symbols and keywords that perform operations on data. Discover arithmetic, comparison, logical, and assignment operators with simple examples.","python-operators",14,"content:python:14.python-operators.md","python/14.python-operators.md","python/14.python-operators",[141,150,159,168,177],{"_path":142,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":143,"description":144,"slug":145,"parentId":132,"order":146,"_type":15,"_id":147,"_source":17,"_file":148,"_stem":149,"_extension":20},"/python/math-operations","Math Operations","Learn Python's arithmetic operators for mathematical calculations. Master addition, subtraction, multiplication, division, and more with practical examples.","math-operations",15,"content:python:15.math-operations.md","python/15.math-operations.md","python/15.math-operations",{"_path":151,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":152,"description":153,"slug":154,"parentId":132,"order":155,"_type":15,"_id":156,"_source":17,"_file":157,"_stem":158,"_extension":20},"/python/comparing-values","Comparing Values","Learn Python's comparison operators to compare values and make decisions. Master equality, inequality, and relational operators with practical examples.","comparing-values",16,"content:python:16.comparing-values.md","python/16.comparing-values.md","python/16.comparing-values",{"_path":160,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":161,"description":162,"slug":163,"parentId":132,"order":164,"_type":15,"_id":165,"_source":17,"_file":166,"_stem":167,"_extension":20},"/python/logic-operations","Logic Operations","Learn about Python's logical operators for combining conditions and creating complex boolean expressions","logic-operations",17,"content:python:17.logic-operations.md","python/17.logic-operations.md","python/17.logic-operations",{"_path":169,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":170,"description":171,"slug":172,"parentId":132,"order":173,"_type":15,"_id":174,"_source":17,"_file":175,"_stem":176,"_extension":20},"/python/value-assignment","Value Assignment","Learn about Python's assignment operators for efficiently updating variables and performing calculations","value-assignment",18,"content:python:18.value-assignment.md","python/18.value-assignment.md","python/18.value-assignment",{"_path":178,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":179,"description":180,"slug":181,"parentId":132,"order":182,"_type":15,"_id":183,"_source":17,"_file":184,"_stem":185,"_extension":20},"/python/operator-precedence","Operator Precedence","Learn how Python evaluates expressions with multiple operators and how to control evaluation order","operator-precedence",19,"content:python:19.operator-precedence.md","python/19.operator-precedence.md","python/19.operator-precedence",{"_path":187,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":188,"description":189,"slug":190,"order":191,"isParent":13,"icon":14,"_type":15,"_id":192,"_source":17,"_file":193,"_stem":194,"_extension":20,"children":195,"expanded":13},"/python/decision-making","Decision Making","Learn how to make decisions in your Python programs using conditional statements and control flow","decision-making",20,"content:python:20.decision-making.md","python/20.decision-making.md","python/20.decision-making",[196,205,214],{"_path":197,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":198,"description":199,"slug":200,"parentId":187,"order":201,"_type":15,"_id":202,"_source":17,"_file":203,"_stem":204,"_extension":20},"/python/if-statements","If Statements","Learn how to use if statements to make decisions and control program flow in Python","if-statements",21,"content:python:21.if-statements.md","python/21.if-statements.md","python/21.if-statements",{"_path":206,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":207,"description":208,"slug":209,"parentId":187,"order":210,"_type":15,"_id":211,"_source":17,"_file":212,"_stem":213,"_extension":20},"/python/multiple-conditions","Multiple Conditions","Learn how to handle multiple conditions using elif statements and complex conditional logic in Python","multiple-conditions",22,"content:python:22.multiple-conditions.md","python/22.multiple-conditions.md","python/22.multiple-conditions",{"_path":215,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":216,"description":217,"slug":218,"parentId":187,"order":219,"_type":15,"_id":220,"_source":17,"_file":221,"_stem":222,"_extension":20},"/python/pattern-matching","Pattern Matching","Learn how to use Python's match-case statements for powerful pattern matching and complex decision making","pattern-matching",23,"content:python:23.pattern-matching.md","python/23.pattern-matching.md","python/23.pattern-matching",{"_path":224,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":225,"description":226,"slug":227,"order":228,"isParent":13,"icon":14,"_type":15,"_id":229,"_source":17,"_file":230,"_stem":231,"_extension":20,"children":232,"expanded":13},"/python/repetition-and-loops","Python Loops","Learn how to use loops to repeat code efficiently and handle repetitive tasks in Python","repetition-and-loops",24,"content:python:24.repetition-and-loops.md","python/24.repetition-and-loops.md","python/24.repetition-and-loops",[233,242,251,260],{"_path":234,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":235,"description":236,"slug":237,"parentId":224,"order":238,"_type":15,"_id":239,"_source":17,"_file":240,"_stem":241,"_extension":20},"/python/while-loops","While Loops","Learn how to use while loops for condition-based repetition and create loops that run until specific conditions are met","while-loops",25,"content:python:25.while-loops.md","python/25.while-loops.md","python/25.while-loops",{"_path":243,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":244,"description":245,"slug":246,"parentId":224,"order":247,"_type":15,"_id":248,"_source":17,"_file":249,"_stem":250,"_extension":20},"/python/for-loops","For Loops","Learn how to use for loops to iterate through sequences, collections, and ranges efficiently in Python","for-loops",26,"content:python:26.for-loops.md","python/26.for-loops.md","python/26.for-loops",{"_path":252,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":253,"description":254,"slug":255,"parentId":224,"order":256,"_type":15,"_id":257,"_source":17,"_file":258,"_stem":259,"_extension":20},"/python/loop-control","Loop Control","Master advanced loop control techniques including break, continue, and else clauses for sophisticated iteration patterns","loop-control",27,"content:python:27.loop-control.md","python/27.loop-control.md","python/27.loop-control",{"_path":261,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":262,"description":263,"slug":264,"parentId":224,"order":265,"_type":15,"_id":266,"_source":17,"_file":267,"_stem":268,"_extension":20},"/python/nested-loops","Nested Loops","Learn how to use nested loops to process multi-dimensional data, create patterns, and handle complex iteration scenarios","nested-loops",28,"content:python:28.nested-loops.md","python/28.nested-loops.md","python/28.nested-loops",{"_path":270,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":271,"description":272,"slug":273,"order":274,"isParent":13,"icon":14,"_type":15,"_id":275,"_source":17,"_file":276,"_stem":277,"_extension":20,"children":278,"expanded":13},"/python/python-lists","Python Lists","Learn about Python lists, one of the most important and versatile data structures for storing and organizing collections of data","python-lists",29,"content:python:29.python-lists.md","python/29.python-lists.md","python/29.python-lists",[279,288,297,306,315,324,333,342,351,360],{"_path":280,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":281,"description":282,"slug":283,"parentId":270,"order":284,"_type":15,"_id":285,"_source":17,"_file":286,"_stem":287,"_extension":20},"/python/creating-lists","Creating Lists","Learn different methods to create and initialize Python lists, from simple literals to advanced techniques","creating-lists",30,"content:python:30.creating-lists.md","python/30.creating-lists.md","python/30.creating-lists",{"_path":289,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":290,"description":291,"slug":292,"parentId":270,"order":293,"_type":15,"_id":294,"_source":17,"_file":295,"_stem":296,"_extension":20},"/python/reading-list-data","Reading List Data","Master techniques for accessing and retrieving data from Python lists using indexing, slicing, and built-in methods","reading-list-data",31,"content:python:31.reading-list-data.md","python/31.reading-list-data.md","python/31.reading-list-data",{"_path":298,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":299,"description":300,"slug":301,"parentId":270,"order":302,"_type":15,"_id":303,"_source":17,"_file":304,"_stem":305,"_extension":20},"/python/modifying-lists","Modifying Lists","Learn how to change, update, and modify existing elements in Python lists using indexing and various methods","modifying-lists",32,"content:python:32.modifying-lists.md","python/32.modifying-lists.md","python/32.modifying-lists",{"_path":307,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":308,"description":309,"slug":310,"parentId":270,"order":311,"_type":15,"_id":312,"_source":17,"_file":313,"_stem":314,"_extension":20},"/python/adding-to-lists","Adding to Lists","Learn various methods to add elements to Python lists including append, insert, extend, and concatenation techniques","adding-to-lists",33,"content:python:33.adding-to-lists.md","python/33.adding-to-lists.md","python/33.adding-to-lists",{"_path":316,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":317,"description":318,"slug":319,"parentId":270,"order":320,"_type":15,"_id":321,"_source":17,"_file":322,"_stem":323,"_extension":20},"/python/removing-from-lists","Removing from Lists","Learn different methods to remove and delete elements from Python lists including remove, pop, del, and clear","removing-from-lists",34,"content:python:34.removing-from-lists.md","python/34.removing-from-lists.md","python/34.removing-from-lists",{"_path":325,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":326,"description":327,"slug":328,"parentId":270,"order":329,"_type":15,"_id":330,"_source":17,"_file":331,"_stem":332,"_extension":20},"/python/looping-through-lists","Looping Through Lists","Learn different ways to iterate through Python lists using for loops, while loops, enumerate, and other iteration techniques","looping-through-lists",35,"content:python:35.looping-through-lists.md","python/35.looping-through-lists.md","python/35.looping-through-lists",{"_path":334,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":335,"description":336,"slug":337,"parentId":270,"order":338,"_type":15,"_id":339,"_source":17,"_file":340,"_stem":341,"_extension":20},"/python/list-shortcuts","List Shortcuts","Learn powerful Python list shortcuts including list comprehensions, slicing tricks, and built-in functions for efficient list operations","list-shortcuts",36,"content:python:36.list-shortcuts.md","python/36.list-shortcuts.md","python/36.list-shortcuts",{"_path":343,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":344,"description":345,"slug":346,"parentId":270,"order":347,"_type":15,"_id":348,"_source":17,"_file":349,"_stem":350,"_extension":20},"/python/organizing-lists","Organizing Lists","Learn how to sort, reverse, and organize Python lists using built-in methods and custom sorting techniques","organizing-lists",37,"content:python:37.organizing-lists.md","python/37.organizing-lists.md","python/37.organizing-lists",{"_path":352,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":353,"description":354,"slug":355,"parentId":270,"order":356,"_type":15,"_id":357,"_source":17,"_file":358,"_stem":359,"_extension":20},"/python/combining-lists","Combining Lists","Learn various techniques to combine, merge, and join Python lists including concatenation, zipping, and advanced merging strategies","combining-lists",38,"content:python:38.combining-lists.md","python/38.combining-lists.md","python/38.combining-lists",{"_path":361,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":362,"description":363,"slug":364,"parentId":270,"order":365,"_type":15,"_id":366,"_source":17,"_file":367,"_stem":368,"_extension":20},"/python/essential-list-tools","Essential List Tools","Master powerful built-in functions and advanced techniques for efficient Python list manipulation and data processing","essential-list-tools",39,"content:python:39.essential-list-tools.md","python/39.essential-list-tools.md","python/39.essential-list-tools",{"_path":370,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":371,"description":372,"slug":373,"order":374,"isParent":13,"icon":14,"_type":15,"_id":375,"_source":17,"_file":376,"_stem":377,"_extension":20,"children":378},"/python/python-tuples","Python Tuples","Master Python tuples - immutable sequences perfect for storing related data that shouldn't change. Learn creation, access, and manipulation techniques.","python-tuples",40,"content:python:40.python-tuples.md","python/40.python-tuples.md","python/40.python-tuples",[379,388,397,406,415,424,433],{"_path":380,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":381,"description":382,"slug":383,"parentId":370,"order":384,"_type":15,"_id":385,"_source":17,"_file":386,"_stem":387,"_extension":20},"/python/creating-tuples","Creating Tuples","Learn different ways to create Python tuples, from basic syntax to advanced techniques. Master tuple initialization and understand when to use tuples.","creating-tuples",41,"content:python:41.creating-tuples.md","python/41.creating-tuples.md","python/41.creating-tuples",{"_path":389,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":390,"description":391,"slug":392,"parentId":370,"order":393,"_type":15,"_id":394,"_source":17,"_file":395,"_stem":396,"_extension":20},"/python/reading-tuple-data","Reading Tuple Data","Master accessing tuple elements through indexing, slicing, and searching. Learn efficient patterns for reading and working with tuple data.","reading-tuple-data",42,"content:python:42.reading-tuple-data.md","python/42.reading-tuple-data.md","python/42.reading-tuple-data",{"_path":398,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":399,"description":400,"slug":401,"parentId":370,"order":402,"_type":15,"_id":403,"_source":17,"_file":404,"_stem":405,"_extension":20},"/python/changing-tuples","Changing Tuples","Understand tuple immutability and learn techniques for working with unchangeable data. Master creating modified tuple versions and handling immutable constraints.","changing-tuples",43,"content:python:43.changing-tuples.md","python/43.changing-tuples.md","python/43.changing-tuples",{"_path":407,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":408,"description":409,"slug":410,"parentId":370,"order":411,"_type":15,"_id":412,"_source":17,"_file":413,"_stem":414,"_extension":20},"/python/tuple-unpacking","Tuple Unpacking","Master tuple unpacking for elegant variable assignment, function returns, and data extraction. Learn Python's powerful unpacking syntax and patterns.","tuple-unpacking",44,"content:python:44.tuple-unpacking.md","python/44.tuple-unpacking.md","python/44.tuple-unpacking",{"_path":416,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":417,"description":418,"slug":419,"parentId":370,"order":420,"_type":15,"_id":421,"_source":17,"_file":422,"_stem":423,"_extension":20},"/python/iterating-tuples","Iterating Tuples","Master tuple iteration techniques for processing sequence data. Learn basic loops, enumerate, nested iteration, and advanced patterns for efficient data processing.","iterating-tuples",45,"content:python:45.iterating-tuples.md","python/45.iterating-tuples.md","python/45.iterating-tuples",{"_path":425,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":426,"description":427,"slug":428,"parentId":370,"order":429,"_type":15,"_id":430,"_source":17,"_file":431,"_stem":432,"_extension":20},"/python/merging-tuples","Merging Tuples","Learn techniques for combining and merging tuples to create larger data structures. Master concatenation, joining multiple tuples, and advanced merging patterns.","merging-tuples",46,"content:python:46.merging-tuples.md","python/46.merging-tuples.md","python/46.merging-tuples",{"_path":434,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":435,"description":436,"slug":437,"parentId":370,"order":438,"_type":15,"_id":439,"_source":17,"_file":440,"_stem":441,"_extension":20},"/python/tuple-operations","Tuple Operations","Master comprehensive tuple operations including built-in functions, mathematical operations, comparisons, and advanced techniques for efficient tuple manipulation.","tuple-operations",47,"content:python:47.tuple-operations.md","python/47.tuple-operations.md","python/47.tuple-operations",{"_path":443,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":444,"description":445,"slug":446,"order":447,"isParent":13,"icon":14,"_type":15,"_id":448,"_source":17,"_file":449,"_stem":450,"_extension":20,"children":451},"/python/python-sets","Python Sets","Discover Python sets - unique collections that automatically eliminate duplicates and provide powerful mathematical operations for data filtering and analysis.","python-sets",48,"content:python:48.python-sets.md","python/48.python-sets.md","python/48.python-sets",[452,461,470,479,488,497,506],{"_path":453,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":454,"description":455,"slug":456,"parentId":443,"order":457,"_type":15,"_id":458,"_source":17,"_file":459,"_stem":460,"_extension":20},"/python/creating-sets","Creating Sets","Learn multiple ways to create sets in Python including literal syntax, set() function, and set comprehensions. Master set creation from different data sources.","creating-sets",49,"content:python:49.creating-sets.md","python/49.creating-sets.md","python/49.creating-sets",{"_path":462,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":463,"description":464,"slug":465,"parentId":443,"order":466,"_type":15,"_id":467,"_source":17,"_file":468,"_stem":469,"_extension":20},"/python/reading-set-data","Reading Set Data","Learn how to access and examine set data in Python including membership testing, iteration, size checking, and converting sets to other data types.","reading-set-data",50,"content:python:50.reading-set-data.md","python/50.reading-set-data.md","python/50.reading-set-data",{"_path":471,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":472,"description":473,"slug":474,"parentId":443,"order":475,"_type":15,"_id":476,"_source":17,"_file":477,"_stem":478,"_extension":20},"/python/adding-to-sets","Adding to Sets","Learn how to add elements to sets in Python using add(), update(), and union operations. Master growing sets dynamically with single items and multiple elements.","adding-to-sets",51,"content:python:51.adding-to-sets.md","python/51.adding-to-sets.md","python/51.adding-to-sets",{"_path":480,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":481,"description":482,"slug":483,"parentId":443,"order":484,"_type":15,"_id":485,"_source":17,"_file":486,"_stem":487,"_extension":20},"/python/removing-from-sets","Removing from Sets","Learn how to remove elements from Python sets using different methods like remove(), discard(), pop(), and clear()","removing-from-sets",52,"content:python:52.removing-from-sets.md","python/52.removing-from-sets.md","python/52.removing-from-sets",{"_path":489,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":490,"description":491,"slug":492,"parentId":443,"order":493,"_type":15,"_id":494,"_source":17,"_file":495,"_stem":496,"_extension":20},"/python/iterating-sets","Iterating Sets","Learn different ways to iterate through Python sets using for loops, comprehensions, and built-in functions","iterating-sets",53,"content:python:53.iterating-sets.md","python/53.iterating-sets.md","python/53.iterating-sets",{"_path":498,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":499,"description":500,"slug":501,"parentId":443,"order":502,"_type":15,"_id":503,"_source":17,"_file":504,"_stem":505,"_extension":20},"/python/combining-sets","Combining Sets","Learn how to combine Python sets using union, intersection, difference, and other set operations","combining-sets",54,"content:python:54.combining-sets.md","python/54.combining-sets.md","python/54.combining-sets",{"_path":507,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":508,"description":509,"slug":510,"parentId":443,"order":511,"_type":15,"_id":512,"_source":17,"_file":513,"_stem":514,"_extension":20},"/python/set-operations","Set Operations","Learn advanced Python set operations including comparisons, subsets, supersets, and mathematical set relationships","set-operations",55,"content:python:55.set-operations.md","python/55.set-operations.md","python/55.set-operations",{"_path":516,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":517,"description":518,"slug":519,"order":520,"isParent":13,"icon":14,"_type":15,"_id":521,"_source":17,"_file":522,"_stem":523,"_extension":20,"children":524},"/python/python-dictionaries","Python Dictionaries","Learn about Python dictionaries - key-value data structures for storing and organizing related information","python-dictionaries",56,"content:python:56.python-dictionaries.md","python/56.python-dictionaries.md","python/56.python-dictionaries",[525,534,543,552,561,570,579,588,597],{"_path":526,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":527,"description":528,"slug":529,"parentId":516,"order":530,"_type":15,"_id":531,"_source":17,"_file":532,"_stem":533,"_extension":20},"/python/creating-dictionaries","Creating Dictionaries","Learn different methods to create Python dictionaries using literals, constructors, and comprehensions","creating-dictionaries",57,"content:python:57.creating-dictionaries.md","python/57.creating-dictionaries.md","python/57.creating-dictionaries",{"_path":535,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":536,"description":537,"slug":538,"parentId":516,"order":539,"_type":15,"_id":540,"_source":17,"_file":541,"_stem":542,"_extension":20},"/python/getting-dictionary-values","Getting Dictionary Values","Learn safe and efficient methods to retrieve data from Python dictionaries using various access techniques","getting-dictionary-values",58,"content:python:58.getting-dictionary-values.md","python/58.getting-dictionary-values.md","python/58.getting-dictionary-values",{"_path":544,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":545,"description":546,"slug":547,"parentId":516,"order":548,"_type":15,"_id":549,"_source":17,"_file":550,"_stem":551,"_extension":20},"/python/updating-dictionaries","Updating Dictionaries","Learn how to modify and maintain Python dictionary data using various update methods and techniques","updating-dictionaries",59,"content:python:59.updating-dictionaries.md","python/59.updating-dictionaries.md","python/59.updating-dictionaries",{"_path":553,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":554,"description":555,"slug":556,"parentId":516,"order":557,"_type":15,"_id":558,"_source":17,"_file":559,"_stem":560,"_extension":20},"/python/adding-dictionary-items","Adding Dictionary Items","Learn effective techniques for adding new items to Python dictionaries with various methods and best practices","adding-dictionary-items",60,"content:python:60.adding-dictionary-items.md","python/60.adding-dictionary-items.md","python/60.adding-dictionary-items",{"_path":562,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":563,"description":564,"slug":565,"parentId":516,"order":566,"_type":15,"_id":567,"_source":17,"_file":568,"_stem":569,"_extension":20},"/python/deleting-dictionary-items","Deleting Dictionary Items","Master safe and efficient techniques for removing items from Python dictionaries with various methods and error handling","deleting-dictionary-items",61,"content:python:61.deleting-dictionary-items.md","python/61.deleting-dictionary-items.md","python/61.deleting-dictionary-items",{"_path":571,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":572,"description":573,"slug":574,"parentId":516,"order":575,"_type":15,"_id":576,"_source":17,"_file":577,"_stem":578,"_extension":20},"/python/looping-dictionaries","Looping Dictionaries","Learn efficient techniques for iterating through Python dictionaries using keys, values, and items","looping-dictionaries",62,"content:python:62.looping-dictionaries.md","python/62.looping-dictionaries.md","python/62.looping-dictionaries",{"_path":580,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":581,"description":582,"slug":583,"parentId":516,"order":584,"_type":15,"_id":585,"_source":17,"_file":586,"_stem":587,"_extension":20},"/python/dictionary-copies","Dictionary Copies","Learn safe techniques for duplicating Python dictionaries using shallow and deep copy methods","dictionary-copies",63,"content:python:63.dictionary-copies.md","python/63.dictionary-copies.md","python/63.dictionary-copies",{"_path":589,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":590,"description":591,"slug":592,"parentId":516,"order":593,"_type":15,"_id":594,"_source":17,"_file":595,"_stem":596,"_extension":20},"/python/multi-level-dictionaries","Multi-level Dictionaries","Master working with nested Python dictionaries for complex data structures and hierarchical information","multi-level-dictionaries",64,"content:python:64.multi-level-dictionaries.md","python/64.multi-level-dictionaries.md","python/64.multi-level-dictionaries",{"_path":598,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":599,"description":600,"slug":601,"parentId":516,"order":602,"_type":15,"_id":603,"_source":17,"_file":604,"_stem":605,"_extension":20},"/python/dictionary-tools","Dictionary Tools","Explore powerful built-in functions and advanced techniques for efficient Python dictionary manipulation and analysis","dictionary-tools",65,"content:python:65.dictionary-tools.md","python/65.dictionary-tools.md","python/65.dictionary-tools",{"_path":607,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":608,"description":609,"slug":610,"order":611,"isParent":13,"icon":14,"_type":15,"_id":612,"_source":17,"_file":613,"_stem":614,"_extension":20,"children":615},"/python/python-functions","Python Functions","Learn how to create and use Python functions to organize code into reusable, modular components that make programs more efficient and maintainable","python-functions",66,"content:python:66.python-functions.md","python/66.python-functions.md","python/66.python-functions",[616,625,634,643,652,661],{"_path":617,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":618,"description":619,"slug":620,"parentId":607,"order":621,"_type":15,"_id":622,"_source":17,"_file":623,"_stem":624,"_extension":20},"/python/function-basics","Function Basics","Learn the fundamentals of creating and using Python functions to organize code into reusable, modular components","function-basics",67,"content:python:67.function-basics.md","python/67.function-basics.md","python/67.function-basics",{"_path":626,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":627,"description":628,"slug":629,"parentId":607,"order":630,"_type":15,"_id":631,"_source":17,"_file":632,"_stem":633,"_extension":20},"/python/function-parameters","Function Parameters","Master different types of Python function parameters including positional, keyword, default, and variable-length arguments","function-parameters",68,"content:python:68.function-parameters.md","python/68.function-parameters.md","python/68.function-parameters",{"_path":635,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":636,"description":637,"slug":638,"parentId":607,"order":639,"_type":15,"_id":640,"_source":17,"_file":641,"_stem":642,"_extension":20},"/python/returning-values","Returning Values","Learn different ways Python functions return data including single values, multiple values, and conditional returns","returning-values",69,"content:python:69.returning-values.md","python/69.returning-values.md","python/69.returning-values",{"_path":644,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":645,"description":646,"slug":647,"parentId":607,"order":648,"_type":15,"_id":649,"_source":17,"_file":650,"_stem":651,"_extension":20},"/python/variable-scope","Variable Scope","Understand Python variable scope including local, global, and nonlocal variables and how they affect function behavior","variable-scope",70,"content:python:70.variable-scope.md","python/70.variable-scope.md","python/70.variable-scope",{"_path":653,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":654,"description":655,"slug":656,"parentId":607,"order":657,"_type":15,"_id":658,"_source":17,"_file":659,"_stem":660,"_extension":20},"/python/anonymous-functions","Anonymous Functions","Learn to create and use Python lambda functions for concise, inline function definitions and functional programming patterns","anonymous-functions",71,"content:python:71.anonymous-functions.md","python/71.anonymous-functions.md","python/71.anonymous-functions",{"_path":662,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":663,"description":664,"slug":665,"parentId":607,"order":666,"_type":15,"_id":667,"_source":17,"_file":668,"_stem":669,"_extension":20},"/python/function-recursion","Function Recursion","Master recursive functions in Python by learning how functions can call themselves to solve complex problems with elegant, mathematical solutions","function-recursion",72,"content:python:72.function-recursion.md","python/72.function-recursion.md","python/72.function-recursion",{"_path":671,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":672,"description":673,"slug":674,"order":675,"isParent":13,"icon":14,"_type":15,"_id":676,"_source":17,"_file":677,"_stem":678,"_extension":20,"children":679},"/python/object-programming","Object Programming","Learn object-oriented programming (OOP) in Python - create classes, objects, and methods to build organized, reusable code","object-programming",73,"content:python:73.object-programming.md","python/73.object-programming.md","python/73.object-programming",[680,689,698,707,716,725],{"_path":681,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":682,"description":683,"slug":684,"parentId":671,"order":685,"_type":15,"_id":686,"_source":17,"_file":687,"_stem":688,"_extension":20},"/python/classes-and-objects","Classes and Objects","Learn to create Python classes and objects - the foundation of object-oriented programming for building reusable, organized code","classes-and-objects",74,"content:python:74.classes-and-objects.md","python/74.classes-and-objects.md","python/74.classes-and-objects",{"_path":690,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":691,"description":692,"slug":693,"parentId":671,"order":694,"_type":15,"_id":695,"_source":17,"_file":696,"_stem":697,"_extension":20},"/python/object-methods","Object Methods","Master object methods in Python - learn to define behaviors, work with parameters, and create interactive objects that respond to actions","object-methods",75,"content:python:75.object-methods.md","python/75.object-methods.md","python/75.object-methods",{"_path":699,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":700,"description":701,"slug":702,"parentId":671,"order":703,"_type":15,"_id":704,"_source":17,"_file":705,"_stem":706,"_extension":20},"/python/class-inheritance","Class Inheritance","Learn Python class inheritance - create specialized classes that build upon existing functionality while adding new features and behaviors","class-inheritance",76,"content:python:76.class-inheritance.md","python/76.class-inheritance.md","python/76.class-inheritance",{"_path":708,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":709,"description":710,"slug":711,"parentId":671,"order":712,"_type":15,"_id":713,"_source":17,"_file":714,"_stem":715,"_extension":20},"/python/method-overriding","Method Overriding","Master method overriding in Python - learn to customize inherited methods, use super(), and create specialized behaviors while maintaining inheritance benefits","method-overriding",77,"content:python:77.method-overriding.md","python/77.method-overriding.md","python/77.method-overriding",{"_path":717,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":718,"description":719,"slug":720,"parentId":671,"order":721,"_type":15,"_id":722,"_source":17,"_file":723,"_stem":724,"_extension":20},"/python/variable-visibility","Variable Visibility","Master Python variable visibility - learn public, protected, and private attributes to control access and create well-encapsulated classes","variable-visibility",78,"content:python:78.variable-visibility.md","python/78.variable-visibility.md","python/78.variable-visibility",{"_path":726,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":727,"description":728,"slug":729,"parentId":671,"order":730,"_type":15,"_id":731,"_source":17,"_file":732,"_stem":733,"_extension":20},"/python/special-methods","Special Methods","Master Python special methods (magic methods) - learn to implement __str__, __len__, __eq__ and more to make your classes work seamlessly with Python's built-in functions","special-methods",79,"content:python:79.special-methods.md","python/79.special-methods.md","python/79.special-methods",{"_path":735,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":736,"description":737,"slug":738,"order":739,"isParent":13,"icon":14,"_type":15,"_id":740,"_source":17,"_file":741,"_stem":742,"_extension":20,"children":743},"/python/advanced-concepts","Advanced Concepts","Master advanced Python programming concepts - work with dates, mathematics, JSON data, pattern matching, and more sophisticated programming techniques","advanced-concepts",80,"content:python:80.advanced-concepts.md","python/80.advanced-concepts.md","python/80.advanced-concepts",[744,753,762,771,780,789,798],{"_path":745,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":746,"description":747,"slug":748,"parentId":735,"order":749,"_type":15,"_id":750,"_source":17,"_file":751,"_stem":752,"_extension":20},"/python/working-with-dates","Working with Dates","Master Python date and time handling - work with datetime objects, format dates, calculate durations, and build time-aware applications","working-with-dates",81,"content:python:81.working-with-dates.md","python/81.working-with-dates.md","python/81.working-with-dates",{"_path":754,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":755,"description":756,"slug":757,"parentId":735,"order":758,"_type":15,"_id":759,"_source":17,"_file":760,"_stem":761,"_extension":20},"/python/mathematical-operations","Mathematical Operations","Master Python mathematical computing - use math functions, perform statistical calculations, and implement scientific computing for data analysis and problem-solving","mathematical-operations",82,"content:python:82.mathematical-operations.md","python/82.mathematical-operations.md","python/82.mathematical-operations",{"_path":763,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":764,"description":765,"slug":766,"parentId":735,"order":767,"_type":15,"_id":768,"_source":17,"_file":769,"_stem":770,"_extension":20},"/python/json-data","JSON Data","Master JSON data handling in Python - serialize and deserialize data, work with APIs, manage configuration files, and exchange data between applications","json-data",83,"content:python:83.json-data.md","python/83.json-data.md","python/83.json-data",{"_path":772,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":773,"description":774,"slug":775,"parentId":735,"order":776,"_type":15,"_id":777,"_source":17,"_file":778,"_stem":779,"_extension":20},"/python/package-management","Package Management","Master Python package management with pip and virtual environments - install libraries, manage dependencies, create isolated environments, and distribute packages professionally","package-management",85,"content:python:85.package-management.md","python/85.package-management.md","python/85.package-management",{"_path":781,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":782,"description":783,"slug":784,"parentId":735,"order":785,"_type":15,"_id":786,"_source":17,"_file":787,"_stem":788,"_extension":20},"/python/error-handling","Error Handling","Master Python error handling with try/except blocks, exception types, custom exceptions, debugging techniques, and best practices for robust application development","error-handling",86,"content:python:86.error-handling.md","python/86.error-handling.md","python/86.error-handling",{"_path":790,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":791,"description":792,"slug":793,"parentId":735,"order":794,"_type":15,"_id":795,"_source":17,"_file":796,"_stem":797,"_extension":20},"/python/getting-user-input","Getting User Input","Master user input handling in Python with input validation, data type conversion, interactive programs, and command-line interfaces for engaging user experiences","getting-user-input",87,"content:python:87.getting-user-input.md","python/87.getting-user-input.md","python/87.getting-user-input",{"_path":799,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":800,"description":801,"slug":802,"parentId":735,"order":803,"_type":15,"_id":804,"_source":17,"_file":805,"_stem":806,"_extension":20},"/python/text-formatting","Text Formatting","Master Python text formatting with f-strings, format methods, alignment, number formatting, and advanced techniques for professional, readable output","text-formatting",88,"content:python:88.text-formatting.md","python/88.text-formatting.md","python/88.text-formatting",{"_path":808,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":809,"description":810,"slug":811,"order":812,"isParent":13,"icon":14,"_type":15,"_id":813,"_source":17,"_file":814,"_stem":815,"_extension":20,"children":816},"/python/file-operations","File Operations","Master Python file handling with reading, writing, and managing files for data persistence and real-world applications","file-operations",89,"content:python:89.file-operations.md","python/89.file-operations.md","python/89.file-operations",[817,826,835,844],{"_path":818,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":819,"description":820,"slug":821,"parentId":808,"order":822,"_type":15,"_id":823,"_source":17,"_file":824,"_stem":825,"_extension":20},"/python/file-basics","File Basics","Learn fundamental Python file operations including opening files, understanding file modes, using context managers, and basic file handling concepts","file-basics",90,"content:python:90.file-basics.md","python/90.file-basics.md","python/90.file-basics",{"_path":827,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":828,"description":829,"slug":830,"parentId":808,"order":831,"_type":15,"_id":832,"_source":17,"_file":833,"_stem":834,"_extension":20},"/python/reading-files","Reading Files","Master Python file reading techniques including reading entire files, line-by-line processing, and handling different file formats for efficient data processing","reading-files",91,"content:python:91.reading-files.md","python/91.reading-files.md","python/91.reading-files",{"_path":836,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":837,"description":838,"slug":839,"parentId":808,"order":840,"_type":15,"_id":841,"_source":17,"_file":842,"_stem":843,"_extension":20},"/python/writing-files","Writing Files","Learn Python file writing techniques including creating new files, appending content, updating existing files, and saving different data formats safely","writing-files",92,"content:python:92.writing-files.md","python/92.writing-files.md","python/92.writing-files",{"_path":845,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":846,"description":847,"slug":848,"parentId":808,"order":849,"_type":15,"_id":850,"_source":17,"_file":851,"_stem":852,"_extension":20},"/python/file-management","File Management","Learn Python file management techniques including checking file properties, organizing files, directory operations, and implementing file system maintenance tasks","file-management",93,"content:python:93.file-management.md","python/93.file-management.md","python/93.file-management",{"_path":854,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":855,"description":856,"slug":857,"order":858,"isParent":13,"icon":14,"_type":15,"_id":859,"_source":17,"_file":860,"_stem":861,"_extension":20,"children":862},"/python/code-organization","Code Organization","Master Python code organization with modules, built-in libraries, and path management for creating maintainable and reusable applications","code-organization",94,"content:python:94.code-organization.md","python/94.code-organization.md","python/94.code-organization",[863,872,881],{"_path":864,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":865,"description":866,"slug":867,"parentId":854,"order":868,"_type":15,"_id":869,"_source":17,"_file":870,"_stem":871,"_extension":20},"/python/creating-modules","Creating Modules","Learn how to create custom Python modules, organize functions and classes, write reusable code components, and design effective module structures","creating-modules",95,"content:python:95.creating-modules.md","python/95.creating-modules.md","python/95.creating-modules",{"_path":873,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":874,"description":875,"slug":876,"parentId":854,"order":877,"_type":15,"_id":878,"_source":17,"_file":879,"_stem":880,"_extension":20},"/python/using-built-in-modules","Using Built-in Modules","Discover Python's extensive standard library and learn to effectively use built-in modules for common programming tasks, data processing, and system operations","using-built-in-modules",96,"content:python:96.using-built-in-modules.md","python/96.using-built-in-modules.md","python/96.using-built-in-modules",{"_path":882,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":883,"description":884,"slug":885,"parentId":854,"order":886,"_type":15,"_id":887,"_source":17,"_file":888,"_stem":889,"_extension":20},"/python/module-paths","Module Paths","Understand Python's module search system, manage import paths, work with packages, and organize larger projects with proper module path management","module-paths",97,"content:python:97.module-paths.md","python/97.module-paths.md","python/97.module-paths",{"_path":891,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":892,"description":893,"slug":894,"order":895,"isParent":13,"icon":14,"_type":15,"_id":896,"_source":17,"_file":897,"_stem":898,"_extension":20,"children":899,"expanded":13},"/python/reference-materials","Reference Materials","Comprehensive Python reference materials including reserved words, built-in functions, and operation guides for quick lookup and development support","reference-materials",98,"content:python:98.reference-materials.md","python/98.reference-materials.md","python/98.reference-materials",[900,909,918,927,936,945,953,961,970],{"_path":901,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":902,"description":903,"slug":904,"parentId":891,"order":905,"_type":15,"_id":906,"_source":17,"_file":907,"_stem":908,"_extension":20},"/python/reserved-words","Reserved Words","Complete reference of Python keywords and reserved words with descriptions, usage examples, and syntax guidelines","reserved-words",99,"content:python:99.reserved-words.md","python/99.reserved-words.md","python/99.reserved-words",{"_path":910,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":911,"description":912,"slug":913,"parentId":891,"order":914,"_type":15,"_id":915,"_source":17,"_file":916,"_stem":917,"_extension":20},"/python/built-in-functions","Built-in Functions","Comprehensive reference of Python's built-in functions with parameters, return values, and practical usage examples","built-in-functions",100,"content:python:100.built-in-functions.md","python/100.built-in-functions.md","python/100.built-in-functions",{"_path":919,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":920,"description":921,"slug":922,"parentId":891,"order":923,"_type":15,"_id":924,"_source":17,"_file":925,"_stem":926,"_extension":20},"/python/string-operations","String Operations","Complete reference of Python string methods, operations, and formatting techniques with examples and use cases","string-operations",101,"content:python:101.string-operations.md","python/101.string-operations.md","python/101.string-operations",{"_path":928,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":929,"description":930,"slug":931,"parentId":891,"order":932,"_type":15,"_id":933,"_source":17,"_file":934,"_stem":935,"_extension":20},"/python/list-operations","List Operations","Complete reference of Python list methods, operations, and manipulation techniques with examples and performance notes","list-operations",102,"content:python:102.list-operations.md","python/102.list-operations.md","python/102.list-operations",{"_path":937,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":938,"description":939,"slug":940,"parentId":891,"order":941,"_type":15,"_id":942,"_source":17,"_file":943,"_stem":944,"_extension":20},"/python/dictionary-operations","Dictionary Operations","Complete reference of Python dictionary methods, operations, and manipulation techniques with examples and use cases","dictionary-operations",103,"content:python:103.dictionary-operations.md","python/103.dictionary-operations.md","python/103.dictionary-operations",{"_path":946,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":435,"description":947,"slug":948,"parentId":891,"order":949,"_type":15,"_id":950,"_source":17,"_file":951,"_stem":952,"_extension":20},"/python/tuple-methods","Complete reference of Python tuple operations, methods, and techniques with examples and use cases","tuple-methods",104,"content:python:104.tuple-methods.md","python/104.tuple-methods.md","python/104.tuple-methods",{"_path":954,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":508,"description":955,"slug":956,"parentId":891,"order":957,"_type":15,"_id":958,"_source":17,"_file":959,"_stem":960,"_extension":20},"/python/set-methods","Complete reference of Python set operations, methods, and mathematical set operations with examples and use cases","set-methods",105,"content:python:105.set-methods.md","python/105.set-methods.md","python/105.set-methods",{"_path":962,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":963,"description":964,"slug":965,"parentId":891,"order":966,"_type":15,"_id":967,"_source":17,"_file":968,"_stem":969,"_extension":20},"/python/file-operations-reference","File Operations Reference","Complete reference of Python file operations, modes, methods, and file handling techniques with examples","file-operations-reference",106,"content:python:106.file-operations-reference.md","python/106.file-operations-reference.md","python/106.file-operations-reference",{"_path":971,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":972,"description":973,"slug":974,"parentId":891,"order":975,"_type":15,"_id":976,"_source":17,"_file":977,"_stem":978,"_extension":20},"/python/error-types","Error Types","Complete reference of Python exception types, error handling patterns, and debugging techniques with examples","error-types",107,"content:python:107.error-types.md","python/107.error-types.md","python/107.error-types",{"_path":980,"_dir":8,"_draft":7,"_partial":7,"_locale":8,"title":981,"description":10,"slug":982,"order":983,"icon":14,"_type":15,"_id":984,"_source":17,"_file":985,"_stem":986,"_extension":20},"/python","Introduction","python-tutorial",0,"content:python:index.md","python/index.md","python/index",[324],{"_path":325,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":326,"description":327,"slug":328,"parentId":270,"order":329,"body":989,"_type":15,"_id":330,"_source":17,"_file":331,"_stem":332,"_extension":20},{"type":990,"children":991,"toc":5959},"root",[992,1000,1006,1011,1468,1475,1480,1555,1562,1738,1744,1920,1926,2250,2256,2269,2330,2336,2530,2536,2722,2728,2929,2934,2940,2945,2951,3221,3227,3459,3465,3756,4111,4117,4624,4630,4636,4873,4879,5311,5317,5812,5901,5914,5920,5925,5931,5937,5942,5953],{"type":993,"tag":994,"props":995,"children":996},"element","h1",{"id":328},[997],{"type":998,"value":999},"text","🔄 Looping Through Lists",{"type":993,"tag":1001,"props":1002,"children":1003},"p",{},[1004],{"type":998,"value":1005},"Looping through lists is one of the most common operations in Python programming. Whether you need to process each item, find specific elements, or perform calculations, understanding different iteration methods is essential for effective programming.",{"type":993,"tag":1001,"props":1007,"children":1008},{},[1009],{"type":998,"value":1010},"Python provides several powerful methods for looping through lists, each with its own advantages and use cases.",{"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","# Different ways to loop through lists\nfruits = [\"apple\", \"banana\", \"cherry\", \"date\"]\n\n# Simple for loop\nprint(\"Method 1 - Simple for loop:\")\nfor fruit in fruits:\n    print(f\"I like {fruit}\")\n\n# Loop with index using enumerate\nprint(\"\\nMethod 2 - With index:\")\nfor index, fruit in enumerate(fruits):\n    print(f\"{index}: {fruit}\")\n\n# Loop with range and len\nprint(\"\\nMethod 3 - Using range:\")\nfor i in range(len(fruits)):\n    print(f\"Position {i} has {fruits[i]}\")\n",[1021],{"type":993,"tag":1022,"props":1023,"children":1024},"code",{"__ignoreMap":8},[1025,1036,1095,1103,1111,1135,1158,1204,1211,1219,1248,1274,1331,1338,1346,1374,1409],{"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},"# Different ways to loop through lists\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},"fruits ",{"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},"\"apple\"",{"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},"\"banana\"",{"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},"\"cherry\"",{"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},"\"date\"",{"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],{"type":993,"tag":1026,"props":1099,"children":1100},{"emptyLinePlaceholder":13},[1101],{"type":998,"value":1102},"\n",{"type":993,"tag":1026,"props":1104,"children":1105},{"class":1028,"line":45},[1106],{"type":993,"tag":1026,"props":1107,"children":1108},{"style":1032},[1109],{"type":998,"value":1110},"# Simple for loop\n",{"type":993,"tag":1026,"props":1112,"children":1113},{"class":1028,"line":54},[1114,1120,1125,1130],{"type":993,"tag":1026,"props":1115,"children":1117},{"style":1116},"--shiki-default:#005CC5;--shiki-app-dark-mode:#79B8FF",[1118],{"type":998,"value":1119},"print",{"type":993,"tag":1026,"props":1121,"children":1122},{"style":1041},[1123],{"type":998,"value":1124},"(",{"type":993,"tag":1026,"props":1126,"children":1127},{"style":1058},[1128],{"type":998,"value":1129},"\"Method 1 - Simple for loop:\"",{"type":993,"tag":1026,"props":1131,"children":1132},{"style":1041},[1133],{"type":998,"value":1134},")\n",{"type":993,"tag":1026,"props":1136,"children":1137},{"class":1028,"line":63},[1138,1143,1148,1153],{"type":993,"tag":1026,"props":1139,"children":1140},{"style":1047},[1141],{"type":998,"value":1142},"for",{"type":993,"tag":1026,"props":1144,"children":1145},{"style":1041},[1146],{"type":998,"value":1147}," fruit ",{"type":993,"tag":1026,"props":1149,"children":1150},{"style":1047},[1151],{"type":998,"value":1152},"in",{"type":993,"tag":1026,"props":1154,"children":1155},{"style":1041},[1156],{"type":998,"value":1157}," fruits:\n",{"type":993,"tag":1026,"props":1159,"children":1160},{"class":1028,"line":72},[1161,1166,1170,1175,1180,1185,1190,1195,1200],{"type":993,"tag":1026,"props":1162,"children":1163},{"style":1116},[1164],{"type":998,"value":1165},"    print",{"type":993,"tag":1026,"props":1167,"children":1168},{"style":1041},[1169],{"type":998,"value":1124},{"type":993,"tag":1026,"props":1171,"children":1172},{"style":1047},[1173],{"type":998,"value":1174},"f",{"type":993,"tag":1026,"props":1176,"children":1177},{"style":1058},[1178],{"type":998,"value":1179},"\"I like ",{"type":993,"tag":1026,"props":1181,"children":1182},{"style":1116},[1183],{"type":998,"value":1184},"{",{"type":993,"tag":1026,"props":1186,"children":1187},{"style":1041},[1188],{"type":998,"value":1189},"fruit",{"type":993,"tag":1026,"props":1191,"children":1192},{"style":1116},[1193],{"type":998,"value":1194},"}",{"type":993,"tag":1026,"props":1196,"children":1197},{"style":1058},[1198],{"type":998,"value":1199},"\"",{"type":993,"tag":1026,"props":1201,"children":1202},{"style":1041},[1203],{"type":998,"value":1134},{"type":993,"tag":1026,"props":1205,"children":1206},{"class":1028,"line":81},[1207],{"type":993,"tag":1026,"props":1208,"children":1209},{"emptyLinePlaceholder":13},[1210],{"type":998,"value":1102},{"type":993,"tag":1026,"props":1212,"children":1213},{"class":1028,"line":91},[1214],{"type":993,"tag":1026,"props":1215,"children":1216},{"style":1032},[1217],{"type":998,"value":1218},"# Loop with index using enumerate\n",{"type":993,"tag":1026,"props":1220,"children":1221},{"class":1028,"line":100},[1222,1226,1230,1234,1239,1244],{"type":993,"tag":1026,"props":1223,"children":1224},{"style":1116},[1225],{"type":998,"value":1119},{"type":993,"tag":1026,"props":1227,"children":1228},{"style":1041},[1229],{"type":998,"value":1124},{"type":993,"tag":1026,"props":1231,"children":1232},{"style":1058},[1233],{"type":998,"value":1199},{"type":993,"tag":1026,"props":1235,"children":1236},{"style":1116},[1237],{"type":998,"value":1238},"\\n",{"type":993,"tag":1026,"props":1240,"children":1241},{"style":1058},[1242],{"type":998,"value":1243},"Method 2 - With index:\"",{"type":993,"tag":1026,"props":1245,"children":1246},{"style":1041},[1247],{"type":998,"value":1134},{"type":993,"tag":1026,"props":1249,"children":1250},{"class":1028,"line":109},[1251,1255,1260,1264,1269],{"type":993,"tag":1026,"props":1252,"children":1253},{"style":1047},[1254],{"type":998,"value":1142},{"type":993,"tag":1026,"props":1256,"children":1257},{"style":1041},[1258],{"type":998,"value":1259}," index, fruit ",{"type":993,"tag":1026,"props":1261,"children":1262},{"style":1047},[1263],{"type":998,"value":1152},{"type":993,"tag":1026,"props":1265,"children":1266},{"style":1116},[1267],{"type":998,"value":1268}," enumerate",{"type":993,"tag":1026,"props":1270,"children":1271},{"style":1041},[1272],{"type":998,"value":1273},"(fruits):\n",{"type":993,"tag":1026,"props":1275,"children":1276},{"class":1028,"line":118},[1277,1281,1285,1289,1293,1297,1302,1306,1311,1315,1319,1323,1327],{"type":993,"tag":1026,"props":1278,"children":1279},{"style":1116},[1280],{"type":998,"value":1165},{"type":993,"tag":1026,"props":1282,"children":1283},{"style":1041},[1284],{"type":998,"value":1124},{"type":993,"tag":1026,"props":1286,"children":1287},{"style":1047},[1288],{"type":998,"value":1174},{"type":993,"tag":1026,"props":1290,"children":1291},{"style":1058},[1292],{"type":998,"value":1199},{"type":993,"tag":1026,"props":1294,"children":1295},{"style":1116},[1296],{"type":998,"value":1184},{"type":993,"tag":1026,"props":1298,"children":1299},{"style":1041},[1300],{"type":998,"value":1301},"index",{"type":993,"tag":1026,"props":1303,"children":1304},{"style":1116},[1305],{"type":998,"value":1194},{"type":993,"tag":1026,"props":1307,"children":1308},{"style":1058},[1309],{"type":998,"value":1310},": ",{"type":993,"tag":1026,"props":1312,"children":1313},{"style":1116},[1314],{"type":998,"value":1184},{"type":993,"tag":1026,"props":1316,"children":1317},{"style":1041},[1318],{"type":998,"value":1189},{"type":993,"tag":1026,"props":1320,"children":1321},{"style":1116},[1322],{"type":998,"value":1194},{"type":993,"tag":1026,"props":1324,"children":1325},{"style":1058},[1326],{"type":998,"value":1199},{"type":993,"tag":1026,"props":1328,"children":1329},{"style":1041},[1330],{"type":998,"value":1134},{"type":993,"tag":1026,"props":1332,"children":1333},{"class":1028,"line":127},[1334],{"type":993,"tag":1026,"props":1335,"children":1336},{"emptyLinePlaceholder":13},[1337],{"type":998,"value":1102},{"type":993,"tag":1026,"props":1339,"children":1340},{"class":1028,"line":136},[1341],{"type":993,"tag":1026,"props":1342,"children":1343},{"style":1032},[1344],{"type":998,"value":1345},"# Loop with range and len\n",{"type":993,"tag":1026,"props":1347,"children":1348},{"class":1028,"line":146},[1349,1353,1357,1361,1365,1370],{"type":993,"tag":1026,"props":1350,"children":1351},{"style":1116},[1352],{"type":998,"value":1119},{"type":993,"tag":1026,"props":1354,"children":1355},{"style":1041},[1356],{"type":998,"value":1124},{"type":993,"tag":1026,"props":1358,"children":1359},{"style":1058},[1360],{"type":998,"value":1199},{"type":993,"tag":1026,"props":1362,"children":1363},{"style":1116},[1364],{"type":998,"value":1238},{"type":993,"tag":1026,"props":1366,"children":1367},{"style":1058},[1368],{"type":998,"value":1369},"Method 3 - Using range:\"",{"type":993,"tag":1026,"props":1371,"children":1372},{"style":1041},[1373],{"type":998,"value":1134},{"type":993,"tag":1026,"props":1375,"children":1376},{"class":1028,"line":155},[1377,1381,1386,1390,1395,1399,1404],{"type":993,"tag":1026,"props":1378,"children":1379},{"style":1047},[1380],{"type":998,"value":1142},{"type":993,"tag":1026,"props":1382,"children":1383},{"style":1041},[1384],{"type":998,"value":1385}," i ",{"type":993,"tag":1026,"props":1387,"children":1388},{"style":1047},[1389],{"type":998,"value":1152},{"type":993,"tag":1026,"props":1391,"children":1392},{"style":1116},[1393],{"type":998,"value":1394}," range",{"type":993,"tag":1026,"props":1396,"children":1397},{"style":1041},[1398],{"type":998,"value":1124},{"type":993,"tag":1026,"props":1400,"children":1401},{"style":1116},[1402],{"type":998,"value":1403},"len",{"type":993,"tag":1026,"props":1405,"children":1406},{"style":1041},[1407],{"type":998,"value":1408},"(fruits)):\n",{"type":993,"tag":1026,"props":1410,"children":1411},{"class":1028,"line":164},[1412,1416,1420,1424,1429,1433,1438,1442,1447,1451,1456,1460,1464],{"type":993,"tag":1026,"props":1413,"children":1414},{"style":1116},[1415],{"type":998,"value":1165},{"type":993,"tag":1026,"props":1417,"children":1418},{"style":1041},[1419],{"type":998,"value":1124},{"type":993,"tag":1026,"props":1421,"children":1422},{"style":1047},[1423],{"type":998,"value":1174},{"type":993,"tag":1026,"props":1425,"children":1426},{"style":1058},[1427],{"type":998,"value":1428},"\"Position ",{"type":993,"tag":1026,"props":1430,"children":1431},{"style":1116},[1432],{"type":998,"value":1184},{"type":993,"tag":1026,"props":1434,"children":1435},{"style":1041},[1436],{"type":998,"value":1437},"i",{"type":993,"tag":1026,"props":1439,"children":1440},{"style":1116},[1441],{"type":998,"value":1194},{"type":993,"tag":1026,"props":1443,"children":1444},{"style":1058},[1445],{"type":998,"value":1446}," has ",{"type":993,"tag":1026,"props":1448,"children":1449},{"style":1116},[1450],{"type":998,"value":1184},{"type":993,"tag":1026,"props":1452,"children":1453},{"style":1041},[1454],{"type":998,"value":1455},"fruits[i]",{"type":993,"tag":1026,"props":1457,"children":1458},{"style":1116},[1459],{"type":998,"value":1194},{"type":993,"tag":1026,"props":1461,"children":1462},{"style":1058},[1463],{"type":998,"value":1199},{"type":993,"tag":1026,"props":1465,"children":1466},{"style":1041},[1467],{"type":998,"value":1134},{"type":993,"tag":1469,"props":1470,"children":1472},"h2",{"id":1471},"basic-for-loop-iteration",[1473],{"type":998,"value":1474},"🌟 Basic For Loop Iteration",{"type":993,"tag":1001,"props":1476,"children":1477},{},[1478],{"type":998,"value":1479},"The most common and Pythonic way to loop through a list is using a simple for loop. This method gives you direct access to each element without worrying about indices.",{"type":993,"tag":1481,"props":1482,"children":1486},"info-box",{"emoji":1483,"title":1484,"type":1485},"🔄","For Loop Fundamentals","info",[1487,1504,1512,1537],{"type":993,"tag":1001,"props":1488,"children":1489},{},[1490,1496,1498],{"type":993,"tag":1491,"props":1492,"children":1493},"strong",{},[1494],{"type":998,"value":1495},"Syntax:",{"type":998,"value":1497}," ",{"type":993,"tag":1022,"props":1499,"children":1501},{"className":1500},[],[1502],{"type":998,"value":1503},"for item in list:",{"type":993,"tag":1001,"props":1505,"children":1506},{},[1507],{"type":993,"tag":1491,"props":1508,"children":1509},{},[1510],{"type":998,"value":1511},"Key Benefits:",{"type":993,"tag":1513,"props":1514,"children":1515},"ul",{},[1516,1522,1527,1532],{"type":993,"tag":1517,"props":1518,"children":1519},"li",{},[1520],{"type":998,"value":1521},"Most readable and Pythonic approach",{"type":993,"tag":1517,"props":1523,"children":1524},{},[1525],{"type":998,"value":1526},"Direct access to values (no indexing needed)",{"type":993,"tag":1517,"props":1528,"children":1529},{},[1530],{"type":998,"value":1531},"Automatically handles list length",{"type":993,"tag":1517,"props":1533,"children":1534},{},[1535],{"type":998,"value":1536},"Works with any iterable object",{"type":993,"tag":1001,"props":1538,"children":1539},{},[1540,1545,1547,1553],{"type":993,"tag":1491,"props":1541,"children":1542},{},[1543],{"type":998,"value":1544},"Best Practice:",{"type":998,"value":1546}," Use descriptive variable names (",{"type":993,"tag":1022,"props":1548,"children":1550},{"className":1549},[],[1551],{"type":998,"value":1552},"for student in students",{"type":998,"value":1554},")",{"type":993,"tag":1556,"props":1557,"children":1559},"h3",{"id":1558},"simple-value-processing",[1560],{"type":998,"value":1561},"Simple Value Processing",{"type":993,"tag":1012,"props":1563,"children":1564},{},[1565],{"type":993,"tag":1016,"props":1566,"children":1568},{"className":1018,"code":1567,"language":6,"meta":8,"style":8},"# Basic for loop examples\ncolors = [\"red\", \"green\", \"blue\", \"yellow\", \"purple\"]\n\n# Print each color\nprint(\"Available colors:\")\nfor color in colors:\n    print(f\"- {color}\")\n",[1569],{"type":993,"tag":1022,"props":1570,"children":1571},{"__ignoreMap":8},[1572,1580,1641,1648,1656,1676,1697],{"type":993,"tag":1026,"props":1573,"children":1574},{"class":1028,"line":12},[1575],{"type":993,"tag":1026,"props":1576,"children":1577},{"style":1032},[1578],{"type":998,"value":1579},"# Basic for loop examples\n",{"type":993,"tag":1026,"props":1581,"children":1582},{"class":1028,"line":27},[1583,1588,1592,1596,1601,1605,1610,1614,1619,1623,1628,1632,1637],{"type":993,"tag":1026,"props":1584,"children":1585},{"style":1041},[1586],{"type":998,"value":1587},"colors ",{"type":993,"tag":1026,"props":1589,"children":1590},{"style":1047},[1591],{"type":998,"value":1050},{"type":993,"tag":1026,"props":1593,"children":1594},{"style":1041},[1595],{"type":998,"value":1055},{"type":993,"tag":1026,"props":1597,"children":1598},{"style":1058},[1599],{"type":998,"value":1600},"\"red\"",{"type":993,"tag":1026,"props":1602,"children":1603},{"style":1041},[1604],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1606,"children":1607},{"style":1058},[1608],{"type":998,"value":1609},"\"green\"",{"type":993,"tag":1026,"props":1611,"children":1612},{"style":1041},[1613],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1615,"children":1616},{"style":1058},[1617],{"type":998,"value":1618},"\"blue\"",{"type":993,"tag":1026,"props":1620,"children":1621},{"style":1041},[1622],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1624,"children":1625},{"style":1058},[1626],{"type":998,"value":1627},"\"yellow\"",{"type":993,"tag":1026,"props":1629,"children":1630},{"style":1041},[1631],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1633,"children":1634},{"style":1058},[1635],{"type":998,"value":1636},"\"purple\"",{"type":993,"tag":1026,"props":1638,"children":1639},{"style":1041},[1640],{"type":998,"value":1094},{"type":993,"tag":1026,"props":1642,"children":1643},{"class":1028,"line":36},[1644],{"type":993,"tag":1026,"props":1645,"children":1646},{"emptyLinePlaceholder":13},[1647],{"type":998,"value":1102},{"type":993,"tag":1026,"props":1649,"children":1650},{"class":1028,"line":45},[1651],{"type":993,"tag":1026,"props":1652,"children":1653},{"style":1032},[1654],{"type":998,"value":1655},"# Print each color\n",{"type":993,"tag":1026,"props":1657,"children":1658},{"class":1028,"line":54},[1659,1663,1667,1672],{"type":993,"tag":1026,"props":1660,"children":1661},{"style":1116},[1662],{"type":998,"value":1119},{"type":993,"tag":1026,"props":1664,"children":1665},{"style":1041},[1666],{"type":998,"value":1124},{"type":993,"tag":1026,"props":1668,"children":1669},{"style":1058},[1670],{"type":998,"value":1671},"\"Available colors:\"",{"type":993,"tag":1026,"props":1673,"children":1674},{"style":1041},[1675],{"type":998,"value":1134},{"type":993,"tag":1026,"props":1677,"children":1678},{"class":1028,"line":63},[1679,1683,1688,1692],{"type":993,"tag":1026,"props":1680,"children":1681},{"style":1047},[1682],{"type":998,"value":1142},{"type":993,"tag":1026,"props":1684,"children":1685},{"style":1041},[1686],{"type":998,"value":1687}," color ",{"type":993,"tag":1026,"props":1689,"children":1690},{"style":1047},[1691],{"type":998,"value":1152},{"type":993,"tag":1026,"props":1693,"children":1694},{"style":1041},[1695],{"type":998,"value":1696}," colors:\n",{"type":993,"tag":1026,"props":1698,"children":1699},{"class":1028,"line":72},[1700,1704,1708,1712,1717,1721,1726,1730,1734],{"type":993,"tag":1026,"props":1701,"children":1702},{"style":1116},[1703],{"type":998,"value":1165},{"type":993,"tag":1026,"props":1705,"children":1706},{"style":1041},[1707],{"type":998,"value":1124},{"type":993,"tag":1026,"props":1709,"children":1710},{"style":1047},[1711],{"type":998,"value":1174},{"type":993,"tag":1026,"props":1713,"children":1714},{"style":1058},[1715],{"type":998,"value":1716},"\"- ",{"type":993,"tag":1026,"props":1718,"children":1719},{"style":1116},[1720],{"type":998,"value":1184},{"type":993,"tag":1026,"props":1722,"children":1723},{"style":1041},[1724],{"type":998,"value":1725},"color",{"type":993,"tag":1026,"props":1727,"children":1728},{"style":1116},[1729],{"type":998,"value":1194},{"type":993,"tag":1026,"props":1731,"children":1732},{"style":1058},[1733],{"type":998,"value":1199},{"type":993,"tag":1026,"props":1735,"children":1736},{"style":1041},[1737],{"type":998,"value":1134},{"type":993,"tag":1556,"props":1739,"children":1741},{"id":1740},"accumulating-values",[1742],{"type":998,"value":1743},"Accumulating Values",{"type":993,"tag":1012,"props":1745,"children":1746},{},[1747],{"type":993,"tag":1016,"props":1748,"children":1750},{"className":1018,"code":1749,"language":6,"meta":8,"style":8},"# Process each item\nnumbers = [1, 2, 3, 4, 5]\ntotal = 0\nfor number in numbers:\n    total += number\nprint(f\"Sum of numbers: {total}\")\n",[1751],{"type":993,"tag":1022,"props":1752,"children":1753},{"__ignoreMap":8},[1754,1762,1823,1840,1861,1879],{"type":993,"tag":1026,"props":1755,"children":1756},{"class":1028,"line":12},[1757],{"type":993,"tag":1026,"props":1758,"children":1759},{"style":1032},[1760],{"type":998,"value":1761},"# Process each item\n",{"type":993,"tag":1026,"props":1763,"children":1764},{"class":1028,"line":27},[1765,1770,1774,1778,1783,1787,1792,1796,1801,1805,1810,1814,1819],{"type":993,"tag":1026,"props":1766,"children":1767},{"style":1041},[1768],{"type":998,"value":1769},"numbers ",{"type":993,"tag":1026,"props":1771,"children":1772},{"style":1047},[1773],{"type":998,"value":1050},{"type":993,"tag":1026,"props":1775,"children":1776},{"style":1041},[1777],{"type":998,"value":1055},{"type":993,"tag":1026,"props":1779,"children":1780},{"style":1116},[1781],{"type":998,"value":1782},"1",{"type":993,"tag":1026,"props":1784,"children":1785},{"style":1041},[1786],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1788,"children":1789},{"style":1116},[1790],{"type":998,"value":1791},"2",{"type":993,"tag":1026,"props":1793,"children":1794},{"style":1041},[1795],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1797,"children":1798},{"style":1116},[1799],{"type":998,"value":1800},"3",{"type":993,"tag":1026,"props":1802,"children":1803},{"style":1041},[1804],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1806,"children":1807},{"style":1116},[1808],{"type":998,"value":1809},"4",{"type":993,"tag":1026,"props":1811,"children":1812},{"style":1041},[1813],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1815,"children":1816},{"style":1116},[1817],{"type":998,"value":1818},"5",{"type":993,"tag":1026,"props":1820,"children":1821},{"style":1041},[1822],{"type":998,"value":1094},{"type":993,"tag":1026,"props":1824,"children":1825},{"class":1028,"line":36},[1826,1831,1835],{"type":993,"tag":1026,"props":1827,"children":1828},{"style":1041},[1829],{"type":998,"value":1830},"total ",{"type":993,"tag":1026,"props":1832,"children":1833},{"style":1047},[1834],{"type":998,"value":1050},{"type":993,"tag":1026,"props":1836,"children":1837},{"style":1116},[1838],{"type":998,"value":1839}," 0\n",{"type":993,"tag":1026,"props":1841,"children":1842},{"class":1028,"line":45},[1843,1847,1852,1856],{"type":993,"tag":1026,"props":1844,"children":1845},{"style":1047},[1846],{"type":998,"value":1142},{"type":993,"tag":1026,"props":1848,"children":1849},{"style":1041},[1850],{"type":998,"value":1851}," number ",{"type":993,"tag":1026,"props":1853,"children":1854},{"style":1047},[1855],{"type":998,"value":1152},{"type":993,"tag":1026,"props":1857,"children":1858},{"style":1041},[1859],{"type":998,"value":1860}," numbers:\n",{"type":993,"tag":1026,"props":1862,"children":1863},{"class":1028,"line":54},[1864,1869,1874],{"type":993,"tag":1026,"props":1865,"children":1866},{"style":1041},[1867],{"type":998,"value":1868},"    total ",{"type":993,"tag":1026,"props":1870,"children":1871},{"style":1047},[1872],{"type":998,"value":1873},"+=",{"type":993,"tag":1026,"props":1875,"children":1876},{"style":1041},[1877],{"type":998,"value":1878}," number\n",{"type":993,"tag":1026,"props":1880,"children":1881},{"class":1028,"line":63},[1882,1886,1890,1894,1899,1903,1908,1912,1916],{"type":993,"tag":1026,"props":1883,"children":1884},{"style":1116},[1885],{"type":998,"value":1119},{"type":993,"tag":1026,"props":1887,"children":1888},{"style":1041},[1889],{"type":998,"value":1124},{"type":993,"tag":1026,"props":1891,"children":1892},{"style":1047},[1893],{"type":998,"value":1174},{"type":993,"tag":1026,"props":1895,"children":1896},{"style":1058},[1897],{"type":998,"value":1898},"\"Sum of numbers: ",{"type":993,"tag":1026,"props":1900,"children":1901},{"style":1116},[1902],{"type":998,"value":1184},{"type":993,"tag":1026,"props":1904,"children":1905},{"style":1041},[1906],{"type":998,"value":1907},"total",{"type":993,"tag":1026,"props":1909,"children":1910},{"style":1116},[1911],{"type":998,"value":1194},{"type":993,"tag":1026,"props":1913,"children":1914},{"style":1058},[1915],{"type":998,"value":1199},{"type":993,"tag":1026,"props":1917,"children":1918},{"style":1041},[1919],{"type":998,"value":1134},{"type":993,"tag":1556,"props":1921,"children":1923},{"id":1922},"conditional-processing",[1924],{"type":998,"value":1925},"Conditional Processing",{"type":993,"tag":1012,"props":1927,"children":1928},{},[1929],{"type":993,"tag":1016,"props":1930,"children":1932},{"className":1018,"code":1931,"language":6,"meta":8,"style":8},"# Conditional processing\ngrades = [85, 92, 78, 96, 88, 73, 91]\nprint(\"Grade analysis:\")\nfor grade in grades:\n    if grade >= 90:\n        print(f\"{grade} - Excellent!\")\n    elif grade >= 80:\n        print(f\"{grade} - Good\")\n    else:\n        print(f\"{grade} - Needs improvement\")\n",[1933],{"type":993,"tag":1022,"props":1934,"children":1935},{"__ignoreMap":8},[1936,1944,2023,2043,2064,2091,2133,2158,2198,2210],{"type":993,"tag":1026,"props":1937,"children":1938},{"class":1028,"line":12},[1939],{"type":993,"tag":1026,"props":1940,"children":1941},{"style":1032},[1942],{"type":998,"value":1943},"# Conditional processing\n",{"type":993,"tag":1026,"props":1945,"children":1946},{"class":1028,"line":27},[1947,1952,1956,1960,1965,1969,1974,1978,1983,1987,1992,1996,2001,2005,2010,2014,2019],{"type":993,"tag":1026,"props":1948,"children":1949},{"style":1041},[1950],{"type":998,"value":1951},"grades ",{"type":993,"tag":1026,"props":1953,"children":1954},{"style":1047},[1955],{"type":998,"value":1050},{"type":993,"tag":1026,"props":1957,"children":1958},{"style":1041},[1959],{"type":998,"value":1055},{"type":993,"tag":1026,"props":1961,"children":1962},{"style":1116},[1963],{"type":998,"value":1964},"85",{"type":993,"tag":1026,"props":1966,"children":1967},{"style":1041},[1968],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1970,"children":1971},{"style":1116},[1972],{"type":998,"value":1973},"92",{"type":993,"tag":1026,"props":1975,"children":1976},{"style":1041},[1977],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1979,"children":1980},{"style":1116},[1981],{"type":998,"value":1982},"78",{"type":993,"tag":1026,"props":1984,"children":1985},{"style":1041},[1986],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1988,"children":1989},{"style":1116},[1990],{"type":998,"value":1991},"96",{"type":993,"tag":1026,"props":1993,"children":1994},{"style":1041},[1995],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1997,"children":1998},{"style":1116},[1999],{"type":998,"value":2000},"88",{"type":993,"tag":1026,"props":2002,"children":2003},{"style":1041},[2004],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2006,"children":2007},{"style":1116},[2008],{"type":998,"value":2009},"73",{"type":993,"tag":1026,"props":2011,"children":2012},{"style":1041},[2013],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2015,"children":2016},{"style":1116},[2017],{"type":998,"value":2018},"91",{"type":993,"tag":1026,"props":2020,"children":2021},{"style":1041},[2022],{"type":998,"value":1094},{"type":993,"tag":1026,"props":2024,"children":2025},{"class":1028,"line":36},[2026,2030,2034,2039],{"type":993,"tag":1026,"props":2027,"children":2028},{"style":1116},[2029],{"type":998,"value":1119},{"type":993,"tag":1026,"props":2031,"children":2032},{"style":1041},[2033],{"type":998,"value":1124},{"type":993,"tag":1026,"props":2035,"children":2036},{"style":1058},[2037],{"type":998,"value":2038},"\"Grade analysis:\"",{"type":993,"tag":1026,"props":2040,"children":2041},{"style":1041},[2042],{"type":998,"value":1134},{"type":993,"tag":1026,"props":2044,"children":2045},{"class":1028,"line":45},[2046,2050,2055,2059],{"type":993,"tag":1026,"props":2047,"children":2048},{"style":1047},[2049],{"type":998,"value":1142},{"type":993,"tag":1026,"props":2051,"children":2052},{"style":1041},[2053],{"type":998,"value":2054}," grade ",{"type":993,"tag":1026,"props":2056,"children":2057},{"style":1047},[2058],{"type":998,"value":1152},{"type":993,"tag":1026,"props":2060,"children":2061},{"style":1041},[2062],{"type":998,"value":2063}," grades:\n",{"type":993,"tag":1026,"props":2065,"children":2066},{"class":1028,"line":54},[2067,2072,2076,2081,2086],{"type":993,"tag":1026,"props":2068,"children":2069},{"style":1047},[2070],{"type":998,"value":2071},"    if",{"type":993,"tag":1026,"props":2073,"children":2074},{"style":1041},[2075],{"type":998,"value":2054},{"type":993,"tag":1026,"props":2077,"children":2078},{"style":1047},[2079],{"type":998,"value":2080},">=",{"type":993,"tag":1026,"props":2082,"children":2083},{"style":1116},[2084],{"type":998,"value":2085}," 90",{"type":993,"tag":1026,"props":2087,"children":2088},{"style":1041},[2089],{"type":998,"value":2090},":\n",{"type":993,"tag":1026,"props":2092,"children":2093},{"class":1028,"line":63},[2094,2099,2103,2107,2111,2115,2120,2124,2129],{"type":993,"tag":1026,"props":2095,"children":2096},{"style":1116},[2097],{"type":998,"value":2098},"        print",{"type":993,"tag":1026,"props":2100,"children":2101},{"style":1041},[2102],{"type":998,"value":1124},{"type":993,"tag":1026,"props":2104,"children":2105},{"style":1047},[2106],{"type":998,"value":1174},{"type":993,"tag":1026,"props":2108,"children":2109},{"style":1058},[2110],{"type":998,"value":1199},{"type":993,"tag":1026,"props":2112,"children":2113},{"style":1116},[2114],{"type":998,"value":1184},{"type":993,"tag":1026,"props":2116,"children":2117},{"style":1041},[2118],{"type":998,"value":2119},"grade",{"type":993,"tag":1026,"props":2121,"children":2122},{"style":1116},[2123],{"type":998,"value":1194},{"type":993,"tag":1026,"props":2125,"children":2126},{"style":1058},[2127],{"type":998,"value":2128}," - Excellent!\"",{"type":993,"tag":1026,"props":2130,"children":2131},{"style":1041},[2132],{"type":998,"value":1134},{"type":993,"tag":1026,"props":2134,"children":2135},{"class":1028,"line":72},[2136,2141,2145,2149,2154],{"type":993,"tag":1026,"props":2137,"children":2138},{"style":1047},[2139],{"type":998,"value":2140},"    elif",{"type":993,"tag":1026,"props":2142,"children":2143},{"style":1041},[2144],{"type":998,"value":2054},{"type":993,"tag":1026,"props":2146,"children":2147},{"style":1047},[2148],{"type":998,"value":2080},{"type":993,"tag":1026,"props":2150,"children":2151},{"style":1116},[2152],{"type":998,"value":2153}," 80",{"type":993,"tag":1026,"props":2155,"children":2156},{"style":1041},[2157],{"type":998,"value":2090},{"type":993,"tag":1026,"props":2159,"children":2160},{"class":1028,"line":81},[2161,2165,2169,2173,2177,2181,2185,2189,2194],{"type":993,"tag":1026,"props":2162,"children":2163},{"style":1116},[2164],{"type":998,"value":2098},{"type":993,"tag":1026,"props":2166,"children":2167},{"style":1041},[2168],{"type":998,"value":1124},{"type":993,"tag":1026,"props":2170,"children":2171},{"style":1047},[2172],{"type":998,"value":1174},{"type":993,"tag":1026,"props":2174,"children":2175},{"style":1058},[2176],{"type":998,"value":1199},{"type":993,"tag":1026,"props":2178,"children":2179},{"style":1116},[2180],{"type":998,"value":1184},{"type":993,"tag":1026,"props":2182,"children":2183},{"style":1041},[2184],{"type":998,"value":2119},{"type":993,"tag":1026,"props":2186,"children":2187},{"style":1116},[2188],{"type":998,"value":1194},{"type":993,"tag":1026,"props":2190,"children":2191},{"style":1058},[2192],{"type":998,"value":2193}," - Good\"",{"type":993,"tag":1026,"props":2195,"children":2196},{"style":1041},[2197],{"type":998,"value":1134},{"type":993,"tag":1026,"props":2199,"children":2200},{"class":1028,"line":91},[2201,2206],{"type":993,"tag":1026,"props":2202,"children":2203},{"style":1047},[2204],{"type":998,"value":2205},"    else",{"type":993,"tag":1026,"props":2207,"children":2208},{"style":1041},[2209],{"type":998,"value":2090},{"type":993,"tag":1026,"props":2211,"children":2212},{"class":1028,"line":100},[2213,2217,2221,2225,2229,2233,2237,2241,2246],{"type":993,"tag":1026,"props":2214,"children":2215},{"style":1116},[2216],{"type":998,"value":2098},{"type":993,"tag":1026,"props":2218,"children":2219},{"style":1041},[2220],{"type":998,"value":1124},{"type":993,"tag":1026,"props":2222,"children":2223},{"style":1047},[2224],{"type":998,"value":1174},{"type":993,"tag":1026,"props":2226,"children":2227},{"style":1058},[2228],{"type":998,"value":1199},{"type":993,"tag":1026,"props":2230,"children":2231},{"style":1116},[2232],{"type":998,"value":1184},{"type":993,"tag":1026,"props":2234,"children":2235},{"style":1041},[2236],{"type":998,"value":2119},{"type":993,"tag":1026,"props":2238,"children":2239},{"style":1116},[2240],{"type":998,"value":1194},{"type":993,"tag":1026,"props":2242,"children":2243},{"style":1058},[2244],{"type":998,"value":2245}," - Needs improvement\"",{"type":993,"tag":1026,"props":2247,"children":2248},{"style":1041},[2249],{"type":998,"value":1134},{"type":993,"tag":1469,"props":2251,"children":2253},{"id":2252},"looping-with-index-using-enumerate",[2254],{"type":998,"value":2255},"📍 Looping with Index using enumerate()",{"type":993,"tag":1001,"props":2257,"children":2258},{},[2259,2261,2267],{"type":998,"value":2260},"Sometimes you need both the element and its position. The ",{"type":993,"tag":1022,"props":2262,"children":2264},{"className":2263},[],[2265],{"type":998,"value":2266},"enumerate()",{"type":998,"value":2268}," function provides both the index and the value in each iteration.",{"type":993,"tag":1481,"props":2270,"children":2274},{"emoji":2271,"title":2272,"type":2273},"📍","enumerate() Function Benefits","success",[2275,2289,2297,2320],{"type":993,"tag":1001,"props":2276,"children":2277},{},[2278,2282,2283],{"type":993,"tag":1491,"props":2279,"children":2280},{},[2281],{"type":998,"value":1495},{"type":998,"value":1497},{"type":993,"tag":1022,"props":2284,"children":2286},{"className":2285},[],[2287],{"type":998,"value":2288},"for index, value in enumerate(list, start=0):",{"type":993,"tag":1001,"props":2290,"children":2291},{},[2292],{"type":993,"tag":1491,"props":2293,"children":2294},{},[2295],{"type":998,"value":2296},"Key Advantages:",{"type":993,"tag":1513,"props":2298,"children":2299},{},[2300,2305,2310,2315],{"type":993,"tag":1517,"props":2301,"children":2302},{},[2303],{"type":998,"value":2304},"Provides both index and value simultaneously",{"type":993,"tag":1517,"props":2306,"children":2307},{},[2308],{"type":998,"value":2309},"Cleaner than manual index tracking",{"type":993,"tag":1517,"props":2311,"children":2312},{},[2313],{"type":998,"value":2314},"Optional start parameter for custom numbering",{"type":993,"tag":1517,"props":2316,"children":2317},{},[2318],{"type":998,"value":2319},"More readable than range(len()) approach",{"type":993,"tag":1001,"props":2321,"children":2322},{},[2323,2328],{"type":993,"tag":1491,"props":2324,"children":2325},{},[2326],{"type":998,"value":2327},"Perfect for:",{"type":998,"value":2329}," Creating numbered lists, position-aware processing",{"type":993,"tag":1556,"props":2331,"children":2333},{"id":2332},"basic-enumerate-usage",[2334],{"type":998,"value":2335},"Basic Enumerate Usage",{"type":993,"tag":1012,"props":2337,"children":2338},{},[2339],{"type":993,"tag":1016,"props":2340,"children":2342},{"className":1018,"code":2341,"language":6,"meta":8,"style":8},"# Using enumerate for index and value\nstudents = [\"Alice\", \"Bob\", \"Charlie\", \"Diana\"]\n\n# Print with position numbers\nprint(\"Class roster:\")\nfor index, student in enumerate(students):\n    print(f\"{index + 1}. {student}\")\n",[2343],{"type":993,"tag":1022,"props":2344,"children":2345},{"__ignoreMap":8},[2346,2354,2406,2413,2421,2441,2466],{"type":993,"tag":1026,"props":2347,"children":2348},{"class":1028,"line":12},[2349],{"type":993,"tag":1026,"props":2350,"children":2351},{"style":1032},[2352],{"type":998,"value":2353},"# Using enumerate for index and value\n",{"type":993,"tag":1026,"props":2355,"children":2356},{"class":1028,"line":27},[2357,2362,2366,2370,2375,2379,2384,2388,2393,2397,2402],{"type":993,"tag":1026,"props":2358,"children":2359},{"style":1041},[2360],{"type":998,"value":2361},"students ",{"type":993,"tag":1026,"props":2363,"children":2364},{"style":1047},[2365],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2367,"children":2368},{"style":1041},[2369],{"type":998,"value":1055},{"type":993,"tag":1026,"props":2371,"children":2372},{"style":1058},[2373],{"type":998,"value":2374},"\"Alice\"",{"type":993,"tag":1026,"props":2376,"children":2377},{"style":1041},[2378],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2380,"children":2381},{"style":1058},[2382],{"type":998,"value":2383},"\"Bob\"",{"type":993,"tag":1026,"props":2385,"children":2386},{"style":1041},[2387],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2389,"children":2390},{"style":1058},[2391],{"type":998,"value":2392},"\"Charlie\"",{"type":993,"tag":1026,"props":2394,"children":2395},{"style":1041},[2396],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2398,"children":2399},{"style":1058},[2400],{"type":998,"value":2401},"\"Diana\"",{"type":993,"tag":1026,"props":2403,"children":2404},{"style":1041},[2405],{"type":998,"value":1094},{"type":993,"tag":1026,"props":2407,"children":2408},{"class":1028,"line":36},[2409],{"type":993,"tag":1026,"props":2410,"children":2411},{"emptyLinePlaceholder":13},[2412],{"type":998,"value":1102},{"type":993,"tag":1026,"props":2414,"children":2415},{"class":1028,"line":45},[2416],{"type":993,"tag":1026,"props":2417,"children":2418},{"style":1032},[2419],{"type":998,"value":2420},"# Print with position numbers\n",{"type":993,"tag":1026,"props":2422,"children":2423},{"class":1028,"line":54},[2424,2428,2432,2437],{"type":993,"tag":1026,"props":2425,"children":2426},{"style":1116},[2427],{"type":998,"value":1119},{"type":993,"tag":1026,"props":2429,"children":2430},{"style":1041},[2431],{"type":998,"value":1124},{"type":993,"tag":1026,"props":2433,"children":2434},{"style":1058},[2435],{"type":998,"value":2436},"\"Class roster:\"",{"type":993,"tag":1026,"props":2438,"children":2439},{"style":1041},[2440],{"type":998,"value":1134},{"type":993,"tag":1026,"props":2442,"children":2443},{"class":1028,"line":63},[2444,2448,2453,2457,2461],{"type":993,"tag":1026,"props":2445,"children":2446},{"style":1047},[2447],{"type":998,"value":1142},{"type":993,"tag":1026,"props":2449,"children":2450},{"style":1041},[2451],{"type":998,"value":2452}," index, student ",{"type":993,"tag":1026,"props":2454,"children":2455},{"style":1047},[2456],{"type":998,"value":1152},{"type":993,"tag":1026,"props":2458,"children":2459},{"style":1116},[2460],{"type":998,"value":1268},{"type":993,"tag":1026,"props":2462,"children":2463},{"style":1041},[2464],{"type":998,"value":2465},"(students):\n",{"type":993,"tag":1026,"props":2467,"children":2468},{"class":1028,"line":72},[2469,2473,2477,2481,2485,2489,2494,2499,2504,2509,2513,2518,2522,2526],{"type":993,"tag":1026,"props":2470,"children":2471},{"style":1116},[2472],{"type":998,"value":1165},{"type":993,"tag":1026,"props":2474,"children":2475},{"style":1041},[2476],{"type":998,"value":1124},{"type":993,"tag":1026,"props":2478,"children":2479},{"style":1047},[2480],{"type":998,"value":1174},{"type":993,"tag":1026,"props":2482,"children":2483},{"style":1058},[2484],{"type":998,"value":1199},{"type":993,"tag":1026,"props":2486,"children":2487},{"style":1116},[2488],{"type":998,"value":1184},{"type":993,"tag":1026,"props":2490,"children":2491},{"style":1041},[2492],{"type":998,"value":2493},"index ",{"type":993,"tag":1026,"props":2495,"children":2496},{"style":1047},[2497],{"type":998,"value":2498},"+",{"type":993,"tag":1026,"props":2500,"children":2501},{"style":1116},[2502],{"type":998,"value":2503}," 1}",{"type":993,"tag":1026,"props":2505,"children":2506},{"style":1058},[2507],{"type":998,"value":2508},". ",{"type":993,"tag":1026,"props":2510,"children":2511},{"style":1116},[2512],{"type":998,"value":1184},{"type":993,"tag":1026,"props":2514,"children":2515},{"style":1041},[2516],{"type":998,"value":2517},"student",{"type":993,"tag":1026,"props":2519,"children":2520},{"style":1116},[2521],{"type":998,"value":1194},{"type":993,"tag":1026,"props":2523,"children":2524},{"style":1058},[2525],{"type":998,"value":1199},{"type":993,"tag":1026,"props":2527,"children":2528},{"style":1041},[2529],{"type":998,"value":1134},{"type":993,"tag":1556,"props":2531,"children":2533},{"id":2532},"custom-starting-number",[2534],{"type":998,"value":2535},"Custom Starting Number",{"type":993,"tag":1012,"props":2537,"children":2538},{},[2539],{"type":993,"tag":1016,"props":2540,"children":2542},{"className":1018,"code":2541,"language":6,"meta":8,"style":8},"# Start enumerate from a different number\nstudents = [\"Alice\", \"Bob\", \"Charlie\", \"Diana\"]\nprint(\"With custom starting number:\")\nfor position, student in enumerate(students, start=1):\n    print(f\"Student #{position}: {student}\")\n",[2543],{"type":993,"tag":1022,"props":2544,"children":2545},{"__ignoreMap":8},[2546,2554,2601,2621,2665],{"type":993,"tag":1026,"props":2547,"children":2548},{"class":1028,"line":12},[2549],{"type":993,"tag":1026,"props":2550,"children":2551},{"style":1032},[2552],{"type":998,"value":2553},"# Start enumerate from a different number\n",{"type":993,"tag":1026,"props":2555,"children":2556},{"class":1028,"line":27},[2557,2561,2565,2569,2573,2577,2581,2585,2589,2593,2597],{"type":993,"tag":1026,"props":2558,"children":2559},{"style":1041},[2560],{"type":998,"value":2361},{"type":993,"tag":1026,"props":2562,"children":2563},{"style":1047},[2564],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2566,"children":2567},{"style":1041},[2568],{"type":998,"value":1055},{"type":993,"tag":1026,"props":2570,"children":2571},{"style":1058},[2572],{"type":998,"value":2374},{"type":993,"tag":1026,"props":2574,"children":2575},{"style":1041},[2576],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2578,"children":2579},{"style":1058},[2580],{"type":998,"value":2383},{"type":993,"tag":1026,"props":2582,"children":2583},{"style":1041},[2584],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2586,"children":2587},{"style":1058},[2588],{"type":998,"value":2392},{"type":993,"tag":1026,"props":2590,"children":2591},{"style":1041},[2592],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2594,"children":2595},{"style":1058},[2596],{"type":998,"value":2401},{"type":993,"tag":1026,"props":2598,"children":2599},{"style":1041},[2600],{"type":998,"value":1094},{"type":993,"tag":1026,"props":2602,"children":2603},{"class":1028,"line":36},[2604,2608,2612,2617],{"type":993,"tag":1026,"props":2605,"children":2606},{"style":1116},[2607],{"type":998,"value":1119},{"type":993,"tag":1026,"props":2609,"children":2610},{"style":1041},[2611],{"type":998,"value":1124},{"type":993,"tag":1026,"props":2613,"children":2614},{"style":1058},[2615],{"type":998,"value":2616},"\"With custom starting number:\"",{"type":993,"tag":1026,"props":2618,"children":2619},{"style":1041},[2620],{"type":998,"value":1134},{"type":993,"tag":1026,"props":2622,"children":2623},{"class":1028,"line":45},[2624,2628,2633,2637,2641,2646,2652,2656,2660],{"type":993,"tag":1026,"props":2625,"children":2626},{"style":1047},[2627],{"type":998,"value":1142},{"type":993,"tag":1026,"props":2629,"children":2630},{"style":1041},[2631],{"type":998,"value":2632}," position, student ",{"type":993,"tag":1026,"props":2634,"children":2635},{"style":1047},[2636],{"type":998,"value":1152},{"type":993,"tag":1026,"props":2638,"children":2639},{"style":1116},[2640],{"type":998,"value":1268},{"type":993,"tag":1026,"props":2642,"children":2643},{"style":1041},[2644],{"type":998,"value":2645},"(students, ",{"type":993,"tag":1026,"props":2647,"children":2649},{"style":2648},"--shiki-default:#E36209;--shiki-app-dark-mode:#FFAB70",[2650],{"type":998,"value":2651},"start",{"type":993,"tag":1026,"props":2653,"children":2654},{"style":1047},[2655],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2657,"children":2658},{"style":1116},[2659],{"type":998,"value":1782},{"type":993,"tag":1026,"props":2661,"children":2662},{"style":1041},[2663],{"type":998,"value":2664},"):\n",{"type":993,"tag":1026,"props":2666,"children":2667},{"class":1028,"line":54},[2668,2672,2676,2680,2685,2689,2694,2698,2702,2706,2710,2714,2718],{"type":993,"tag":1026,"props":2669,"children":2670},{"style":1116},[2671],{"type":998,"value":1165},{"type":993,"tag":1026,"props":2673,"children":2674},{"style":1041},[2675],{"type":998,"value":1124},{"type":993,"tag":1026,"props":2677,"children":2678},{"style":1047},[2679],{"type":998,"value":1174},{"type":993,"tag":1026,"props":2681,"children":2682},{"style":1058},[2683],{"type":998,"value":2684},"\"Student #",{"type":993,"tag":1026,"props":2686,"children":2687},{"style":1116},[2688],{"type":998,"value":1184},{"type":993,"tag":1026,"props":2690,"children":2691},{"style":1041},[2692],{"type":998,"value":2693},"position",{"type":993,"tag":1026,"props":2695,"children":2696},{"style":1116},[2697],{"type":998,"value":1194},{"type":993,"tag":1026,"props":2699,"children":2700},{"style":1058},[2701],{"type":998,"value":1310},{"type":993,"tag":1026,"props":2703,"children":2704},{"style":1116},[2705],{"type":998,"value":1184},{"type":993,"tag":1026,"props":2707,"children":2708},{"style":1041},[2709],{"type":998,"value":2517},{"type":993,"tag":1026,"props":2711,"children":2712},{"style":1116},[2713],{"type":998,"value":1194},{"type":993,"tag":1026,"props":2715,"children":2716},{"style":1058},[2717],{"type":998,"value":1199},{"type":993,"tag":1026,"props":2719,"children":2720},{"style":1041},[2721],{"type":998,"value":1134},{"type":993,"tag":1556,"props":2723,"children":2725},{"id":2724},"finding-positions",[2726],{"type":998,"value":2727},"Finding Positions",{"type":993,"tag":1012,"props":2729,"children":2730},{},[2731],{"type":993,"tag":1016,"props":2732,"children":2734},{"className":1018,"code":2733,"language":6,"meta":8,"style":8},"# Find positions of specific items\nfruits = [\"apple\", \"banana\", \"apple\", \"cherry\", \"apple\"]\napple_positions = []\n\nfor index, fruit in enumerate(fruits):\n    if fruit == \"apple\":\n        apple_positions.append(index)\n\nprint(f\"Apples found at positions: {apple_positions}\")\n",[2735],{"type":993,"tag":1022,"props":2736,"children":2737},{"__ignoreMap":8},[2738,2746,2801,2818,2825,2848,2873,2881,2888],{"type":993,"tag":1026,"props":2739,"children":2740},{"class":1028,"line":12},[2741],{"type":993,"tag":1026,"props":2742,"children":2743},{"style":1032},[2744],{"type":998,"value":2745},"# Find positions of specific items\n",{"type":993,"tag":1026,"props":2747,"children":2748},{"class":1028,"line":27},[2749,2753,2757,2761,2765,2769,2773,2777,2781,2785,2789,2793,2797],{"type":993,"tag":1026,"props":2750,"children":2751},{"style":1041},[2752],{"type":998,"value":1044},{"type":993,"tag":1026,"props":2754,"children":2755},{"style":1047},[2756],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2758,"children":2759},{"style":1041},[2760],{"type":998,"value":1055},{"type":993,"tag":1026,"props":2762,"children":2763},{"style":1058},[2764],{"type":998,"value":1061},{"type":993,"tag":1026,"props":2766,"children":2767},{"style":1041},[2768],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2770,"children":2771},{"style":1058},[2772],{"type":998,"value":1071},{"type":993,"tag":1026,"props":2774,"children":2775},{"style":1041},[2776],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2778,"children":2779},{"style":1058},[2780],{"type":998,"value":1061},{"type":993,"tag":1026,"props":2782,"children":2783},{"style":1041},[2784],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2786,"children":2787},{"style":1058},[2788],{"type":998,"value":1080},{"type":993,"tag":1026,"props":2790,"children":2791},{"style":1041},[2792],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2794,"children":2795},{"style":1058},[2796],{"type":998,"value":1061},{"type":993,"tag":1026,"props":2798,"children":2799},{"style":1041},[2800],{"type":998,"value":1094},{"type":993,"tag":1026,"props":2802,"children":2803},{"class":1028,"line":36},[2804,2809,2813],{"type":993,"tag":1026,"props":2805,"children":2806},{"style":1041},[2807],{"type":998,"value":2808},"apple_positions ",{"type":993,"tag":1026,"props":2810,"children":2811},{"style":1047},[2812],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2814,"children":2815},{"style":1041},[2816],{"type":998,"value":2817}," []\n",{"type":993,"tag":1026,"props":2819,"children":2820},{"class":1028,"line":45},[2821],{"type":993,"tag":1026,"props":2822,"children":2823},{"emptyLinePlaceholder":13},[2824],{"type":998,"value":1102},{"type":993,"tag":1026,"props":2826,"children":2827},{"class":1028,"line":54},[2828,2832,2836,2840,2844],{"type":993,"tag":1026,"props":2829,"children":2830},{"style":1047},[2831],{"type":998,"value":1142},{"type":993,"tag":1026,"props":2833,"children":2834},{"style":1041},[2835],{"type":998,"value":1259},{"type":993,"tag":1026,"props":2837,"children":2838},{"style":1047},[2839],{"type":998,"value":1152},{"type":993,"tag":1026,"props":2841,"children":2842},{"style":1116},[2843],{"type":998,"value":1268},{"type":993,"tag":1026,"props":2845,"children":2846},{"style":1041},[2847],{"type":998,"value":1273},{"type":993,"tag":1026,"props":2849,"children":2850},{"class":1028,"line":63},[2851,2855,2859,2864,2869],{"type":993,"tag":1026,"props":2852,"children":2853},{"style":1047},[2854],{"type":998,"value":2071},{"type":993,"tag":1026,"props":2856,"children":2857},{"style":1041},[2858],{"type":998,"value":1147},{"type":993,"tag":1026,"props":2860,"children":2861},{"style":1047},[2862],{"type":998,"value":2863},"==",{"type":993,"tag":1026,"props":2865,"children":2866},{"style":1058},[2867],{"type":998,"value":2868}," \"apple\"",{"type":993,"tag":1026,"props":2870,"children":2871},{"style":1041},[2872],{"type":998,"value":2090},{"type":993,"tag":1026,"props":2874,"children":2875},{"class":1028,"line":72},[2876],{"type":993,"tag":1026,"props":2877,"children":2878},{"style":1041},[2879],{"type":998,"value":2880},"        apple_positions.append(index)\n",{"type":993,"tag":1026,"props":2882,"children":2883},{"class":1028,"line":81},[2884],{"type":993,"tag":1026,"props":2885,"children":2886},{"emptyLinePlaceholder":13},[2887],{"type":998,"value":1102},{"type":993,"tag":1026,"props":2889,"children":2890},{"class":1028,"line":91},[2891,2895,2899,2903,2908,2912,2917,2921,2925],{"type":993,"tag":1026,"props":2892,"children":2893},{"style":1116},[2894],{"type":998,"value":1119},{"type":993,"tag":1026,"props":2896,"children":2897},{"style":1041},[2898],{"type":998,"value":1124},{"type":993,"tag":1026,"props":2900,"children":2901},{"style":1047},[2902],{"type":998,"value":1174},{"type":993,"tag":1026,"props":2904,"children":2905},{"style":1058},[2906],{"type":998,"value":2907},"\"Apples found at positions: ",{"type":993,"tag":1026,"props":2909,"children":2910},{"style":1116},[2911],{"type":998,"value":1184},{"type":993,"tag":1026,"props":2913,"children":2914},{"style":1041},[2915],{"type":998,"value":2916},"apple_positions",{"type":993,"tag":1026,"props":2918,"children":2919},{"style":1116},[2920],{"type":998,"value":1194},{"type":993,"tag":1026,"props":2922,"children":2923},{"style":1058},[2924],{"type":998,"value":1199},{"type":993,"tag":1026,"props":2926,"children":2927},{"style":1041},[2928],{"type":998,"value":1134},{"type":993,"tag":2930,"props":2931,"children":2933},"content-exercise",{":widget-view":2932,"category":6,"id":328},"true",[],{"type":993,"tag":1469,"props":2935,"children":2937},{"id":2936},"advanced-iteration-techniques",[2938],{"type":998,"value":2939},"🎯 Advanced Iteration Techniques",{"type":993,"tag":1001,"props":2941,"children":2942},{},[2943],{"type":998,"value":2944},"Python offers several advanced techniques for iterating through lists that can make your code more efficient and readable.",{"type":993,"tag":1556,"props":2946,"children":2948},{"id":2947},"using-zip-for-multiple-lists",[2949],{"type":998,"value":2950},"Using zip() for Multiple Lists",{"type":993,"tag":1012,"props":2952,"children":2953},{},[2954],{"type":993,"tag":1016,"props":2955,"children":2957},{"className":1018,"code":2956,"language":6,"meta":8,"style":8},"# Iterate through multiple lists simultaneously\nnames = [\"Alice\", \"Bob\", \"Charlie\"]\nscores = [85, 92, 78]\nsubjects = [\"Math\", \"Science\", \"English\"]\n\nprint(\"Student performance:\")\nfor name, score, subject in zip(names, scores, subjects):\n    print(f\"{name} scored {score} in {subject}\")\n",[2958],{"type":993,"tag":1022,"props":2959,"children":2960},{"__ignoreMap":8},[2961,2969,3009,3049,3092,3099,3119,3145],{"type":993,"tag":1026,"props":2962,"children":2963},{"class":1028,"line":12},[2964],{"type":993,"tag":1026,"props":2965,"children":2966},{"style":1032},[2967],{"type":998,"value":2968},"# Iterate through multiple lists simultaneously\n",{"type":993,"tag":1026,"props":2970,"children":2971},{"class":1028,"line":27},[2972,2977,2981,2985,2989,2993,2997,3001,3005],{"type":993,"tag":1026,"props":2973,"children":2974},{"style":1041},[2975],{"type":998,"value":2976},"names ",{"type":993,"tag":1026,"props":2978,"children":2979},{"style":1047},[2980],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2982,"children":2983},{"style":1041},[2984],{"type":998,"value":1055},{"type":993,"tag":1026,"props":2986,"children":2987},{"style":1058},[2988],{"type":998,"value":2374},{"type":993,"tag":1026,"props":2990,"children":2991},{"style":1041},[2992],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2994,"children":2995},{"style":1058},[2996],{"type":998,"value":2383},{"type":993,"tag":1026,"props":2998,"children":2999},{"style":1041},[3000],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3002,"children":3003},{"style":1058},[3004],{"type":998,"value":2392},{"type":993,"tag":1026,"props":3006,"children":3007},{"style":1041},[3008],{"type":998,"value":1094},{"type":993,"tag":1026,"props":3010,"children":3011},{"class":1028,"line":36},[3012,3017,3021,3025,3029,3033,3037,3041,3045],{"type":993,"tag":1026,"props":3013,"children":3014},{"style":1041},[3015],{"type":998,"value":3016},"scores ",{"type":993,"tag":1026,"props":3018,"children":3019},{"style":1047},[3020],{"type":998,"value":1050},{"type":993,"tag":1026,"props":3022,"children":3023},{"style":1041},[3024],{"type":998,"value":1055},{"type":993,"tag":1026,"props":3026,"children":3027},{"style":1116},[3028],{"type":998,"value":1964},{"type":993,"tag":1026,"props":3030,"children":3031},{"style":1041},[3032],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3034,"children":3035},{"style":1116},[3036],{"type":998,"value":1973},{"type":993,"tag":1026,"props":3038,"children":3039},{"style":1041},[3040],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3042,"children":3043},{"style":1116},[3044],{"type":998,"value":1982},{"type":993,"tag":1026,"props":3046,"children":3047},{"style":1041},[3048],{"type":998,"value":1094},{"type":993,"tag":1026,"props":3050,"children":3051},{"class":1028,"line":45},[3052,3057,3061,3065,3070,3074,3079,3083,3088],{"type":993,"tag":1026,"props":3053,"children":3054},{"style":1041},[3055],{"type":998,"value":3056},"subjects ",{"type":993,"tag":1026,"props":3058,"children":3059},{"style":1047},[3060],{"type":998,"value":1050},{"type":993,"tag":1026,"props":3062,"children":3063},{"style":1041},[3064],{"type":998,"value":1055},{"type":993,"tag":1026,"props":3066,"children":3067},{"style":1058},[3068],{"type":998,"value":3069},"\"Math\"",{"type":993,"tag":1026,"props":3071,"children":3072},{"style":1041},[3073],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3075,"children":3076},{"style":1058},[3077],{"type":998,"value":3078},"\"Science\"",{"type":993,"tag":1026,"props":3080,"children":3081},{"style":1041},[3082],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3084,"children":3085},{"style":1058},[3086],{"type":998,"value":3087},"\"English\"",{"type":993,"tag":1026,"props":3089,"children":3090},{"style":1041},[3091],{"type":998,"value":1094},{"type":993,"tag":1026,"props":3093,"children":3094},{"class":1028,"line":54},[3095],{"type":993,"tag":1026,"props":3096,"children":3097},{"emptyLinePlaceholder":13},[3098],{"type":998,"value":1102},{"type":993,"tag":1026,"props":3100,"children":3101},{"class":1028,"line":63},[3102,3106,3110,3115],{"type":993,"tag":1026,"props":3103,"children":3104},{"style":1116},[3105],{"type":998,"value":1119},{"type":993,"tag":1026,"props":3107,"children":3108},{"style":1041},[3109],{"type":998,"value":1124},{"type":993,"tag":1026,"props":3111,"children":3112},{"style":1058},[3113],{"type":998,"value":3114},"\"Student performance:\"",{"type":993,"tag":1026,"props":3116,"children":3117},{"style":1041},[3118],{"type":998,"value":1134},{"type":993,"tag":1026,"props":3120,"children":3121},{"class":1028,"line":72},[3122,3126,3131,3135,3140],{"type":993,"tag":1026,"props":3123,"children":3124},{"style":1047},[3125],{"type":998,"value":1142},{"type":993,"tag":1026,"props":3127,"children":3128},{"style":1041},[3129],{"type":998,"value":3130}," name, score, subject ",{"type":993,"tag":1026,"props":3132,"children":3133},{"style":1047},[3134],{"type":998,"value":1152},{"type":993,"tag":1026,"props":3136,"children":3137},{"style":1116},[3138],{"type":998,"value":3139}," zip",{"type":993,"tag":1026,"props":3141,"children":3142},{"style":1041},[3143],{"type":998,"value":3144},"(names, scores, subjects):\n",{"type":993,"tag":1026,"props":3146,"children":3147},{"class":1028,"line":81},[3148,3152,3156,3160,3164,3168,3173,3177,3182,3186,3191,3195,3200,3204,3209,3213,3217],{"type":993,"tag":1026,"props":3149,"children":3150},{"style":1116},[3151],{"type":998,"value":1165},{"type":993,"tag":1026,"props":3153,"children":3154},{"style":1041},[3155],{"type":998,"value":1124},{"type":993,"tag":1026,"props":3157,"children":3158},{"style":1047},[3159],{"type":998,"value":1174},{"type":993,"tag":1026,"props":3161,"children":3162},{"style":1058},[3163],{"type":998,"value":1199},{"type":993,"tag":1026,"props":3165,"children":3166},{"style":1116},[3167],{"type":998,"value":1184},{"type":993,"tag":1026,"props":3169,"children":3170},{"style":1041},[3171],{"type":998,"value":3172},"name",{"type":993,"tag":1026,"props":3174,"children":3175},{"style":1116},[3176],{"type":998,"value":1194},{"type":993,"tag":1026,"props":3178,"children":3179},{"style":1058},[3180],{"type":998,"value":3181}," scored ",{"type":993,"tag":1026,"props":3183,"children":3184},{"style":1116},[3185],{"type":998,"value":1184},{"type":993,"tag":1026,"props":3187,"children":3188},{"style":1041},[3189],{"type":998,"value":3190},"score",{"type":993,"tag":1026,"props":3192,"children":3193},{"style":1116},[3194],{"type":998,"value":1194},{"type":993,"tag":1026,"props":3196,"children":3197},{"style":1058},[3198],{"type":998,"value":3199}," in ",{"type":993,"tag":1026,"props":3201,"children":3202},{"style":1116},[3203],{"type":998,"value":1184},{"type":993,"tag":1026,"props":3205,"children":3206},{"style":1041},[3207],{"type":998,"value":3208},"subject",{"type":993,"tag":1026,"props":3210,"children":3211},{"style":1116},[3212],{"type":998,"value":1194},{"type":993,"tag":1026,"props":3214,"children":3215},{"style":1058},[3216],{"type":998,"value":1199},{"type":993,"tag":1026,"props":3218,"children":3219},{"style":1041},[3220],{"type":998,"value":1134},{"type":993,"tag":1556,"props":3222,"children":3224},{"id":3223},"list-comprehension-with-conditions",[3225],{"type":998,"value":3226},"List Comprehension with Conditions",{"type":993,"tag":1012,"props":3228,"children":3229},{},[3230],{"type":993,"tag":1016,"props":3231,"children":3233},{"className":1018,"code":3232,"language":6,"meta":8,"style":8},"# Process and filter in one step\nnumbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]\n\n# Create new list with processed even numbers\neven_squares = [x**2 for x in numbers if x % 2 == 0]\nprint(\"Squares of even numbers:\", even_squares)\n",[3234],{"type":993,"tag":1022,"props":3235,"children":3236},{"__ignoreMap":8},[3237,3245,3345,3352,3360,3438],{"type":993,"tag":1026,"props":3238,"children":3239},{"class":1028,"line":12},[3240],{"type":993,"tag":1026,"props":3241,"children":3242},{"style":1032},[3243],{"type":998,"value":3244},"# Process and filter in one step\n",{"type":993,"tag":1026,"props":3246,"children":3247},{"class":1028,"line":27},[3248,3252,3256,3260,3264,3268,3272,3276,3280,3284,3288,3292,3296,3300,3305,3309,3314,3318,3323,3327,3332,3336,3341],{"type":993,"tag":1026,"props":3249,"children":3250},{"style":1041},[3251],{"type":998,"value":1769},{"type":993,"tag":1026,"props":3253,"children":3254},{"style":1047},[3255],{"type":998,"value":1050},{"type":993,"tag":1026,"props":3257,"children":3258},{"style":1041},[3259],{"type":998,"value":1055},{"type":993,"tag":1026,"props":3261,"children":3262},{"style":1116},[3263],{"type":998,"value":1782},{"type":993,"tag":1026,"props":3265,"children":3266},{"style":1041},[3267],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3269,"children":3270},{"style":1116},[3271],{"type":998,"value":1791},{"type":993,"tag":1026,"props":3273,"children":3274},{"style":1041},[3275],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3277,"children":3278},{"style":1116},[3279],{"type":998,"value":1800},{"type":993,"tag":1026,"props":3281,"children":3282},{"style":1041},[3283],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3285,"children":3286},{"style":1116},[3287],{"type":998,"value":1809},{"type":993,"tag":1026,"props":3289,"children":3290},{"style":1041},[3291],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3293,"children":3294},{"style":1116},[3295],{"type":998,"value":1818},{"type":993,"tag":1026,"props":3297,"children":3298},{"style":1041},[3299],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3301,"children":3302},{"style":1116},[3303],{"type":998,"value":3304},"6",{"type":993,"tag":1026,"props":3306,"children":3307},{"style":1041},[3308],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3310,"children":3311},{"style":1116},[3312],{"type":998,"value":3313},"7",{"type":993,"tag":1026,"props":3315,"children":3316},{"style":1041},[3317],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3319,"children":3320},{"style":1116},[3321],{"type":998,"value":3322},"8",{"type":993,"tag":1026,"props":3324,"children":3325},{"style":1041},[3326],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3328,"children":3329},{"style":1116},[3330],{"type":998,"value":3331},"9",{"type":993,"tag":1026,"props":3333,"children":3334},{"style":1041},[3335],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3337,"children":3338},{"style":1116},[3339],{"type":998,"value":3340},"10",{"type":993,"tag":1026,"props":3342,"children":3343},{"style":1041},[3344],{"type":998,"value":1094},{"type":993,"tag":1026,"props":3346,"children":3347},{"class":1028,"line":36},[3348],{"type":993,"tag":1026,"props":3349,"children":3350},{"emptyLinePlaceholder":13},[3351],{"type":998,"value":1102},{"type":993,"tag":1026,"props":3353,"children":3354},{"class":1028,"line":45},[3355],{"type":993,"tag":1026,"props":3356,"children":3357},{"style":1032},[3358],{"type":998,"value":3359},"# Create new list with processed even numbers\n",{"type":993,"tag":1026,"props":3361,"children":3362},{"class":1028,"line":54},[3363,3368,3372,3377,3382,3386,3391,3396,3400,3405,3410,3414,3419,3424,3429,3434],{"type":993,"tag":1026,"props":3364,"children":3365},{"style":1041},[3366],{"type":998,"value":3367},"even_squares ",{"type":993,"tag":1026,"props":3369,"children":3370},{"style":1047},[3371],{"type":998,"value":1050},{"type":993,"tag":1026,"props":3373,"children":3374},{"style":1041},[3375],{"type":998,"value":3376}," [x",{"type":993,"tag":1026,"props":3378,"children":3379},{"style":1047},[3380],{"type":998,"value":3381},"**",{"type":993,"tag":1026,"props":3383,"children":3384},{"style":1116},[3385],{"type":998,"value":1791},{"type":993,"tag":1026,"props":3387,"children":3388},{"style":1047},[3389],{"type":998,"value":3390}," for",{"type":993,"tag":1026,"props":3392,"children":3393},{"style":1041},[3394],{"type":998,"value":3395}," x ",{"type":993,"tag":1026,"props":3397,"children":3398},{"style":1047},[3399],{"type":998,"value":1152},{"type":993,"tag":1026,"props":3401,"children":3402},{"style":1041},[3403],{"type":998,"value":3404}," numbers ",{"type":993,"tag":1026,"props":3406,"children":3407},{"style":1047},[3408],{"type":998,"value":3409},"if",{"type":993,"tag":1026,"props":3411,"children":3412},{"style":1041},[3413],{"type":998,"value":3395},{"type":993,"tag":1026,"props":3415,"children":3416},{"style":1047},[3417],{"type":998,"value":3418},"%",{"type":993,"tag":1026,"props":3420,"children":3421},{"style":1116},[3422],{"type":998,"value":3423}," 2",{"type":993,"tag":1026,"props":3425,"children":3426},{"style":1047},[3427],{"type":998,"value":3428}," ==",{"type":993,"tag":1026,"props":3430,"children":3431},{"style":1116},[3432],{"type":998,"value":3433}," 0",{"type":993,"tag":1026,"props":3435,"children":3436},{"style":1041},[3437],{"type":998,"value":1094},{"type":993,"tag":1026,"props":3439,"children":3440},{"class":1028,"line":63},[3441,3445,3449,3454],{"type":993,"tag":1026,"props":3442,"children":3443},{"style":1116},[3444],{"type":998,"value":1119},{"type":993,"tag":1026,"props":3446,"children":3447},{"style":1041},[3448],{"type":998,"value":1124},{"type":993,"tag":1026,"props":3450,"children":3451},{"style":1058},[3452],{"type":998,"value":3453},"\"Squares of even numbers:\"",{"type":993,"tag":1026,"props":3455,"children":3456},{"style":1041},[3457],{"type":998,"value":3458},", even_squares)\n",{"type":993,"tag":1556,"props":3460,"children":3462},{"id":3461},"nested-list-iteration",[3463],{"type":998,"value":3464},"Nested List Iteration",{"type":993,"tag":1012,"props":3466,"children":3467},{},[3468],{"type":993,"tag":1016,"props":3469,"children":3471},{"className":1018,"code":3470,"language":6,"meta":8,"style":8},"# Iterate through nested lists\nmatrix = [\n    [1, 2, 3],\n    [4, 5, 6],\n    [7, 8, 9]\n]\n\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",[3472],{"type":993,"tag":1022,"props":3473,"children":3474},{"__ignoreMap":8},[3475,3483,3500,3533,3564,3595,3602,3609,3629,3654,3680],{"type":993,"tag":1026,"props":3476,"children":3477},{"class":1028,"line":12},[3478],{"type":993,"tag":1026,"props":3479,"children":3480},{"style":1032},[3481],{"type":998,"value":3482},"# Iterate through nested lists\n",{"type":993,"tag":1026,"props":3484,"children":3485},{"class":1028,"line":27},[3486,3491,3495],{"type":993,"tag":1026,"props":3487,"children":3488},{"style":1041},[3489],{"type":998,"value":3490},"matrix ",{"type":993,"tag":1026,"props":3492,"children":3493},{"style":1047},[3494],{"type":998,"value":1050},{"type":993,"tag":1026,"props":3496,"children":3497},{"style":1041},[3498],{"type":998,"value":3499}," [\n",{"type":993,"tag":1026,"props":3501,"children":3502},{"class":1028,"line":36},[3503,3508,3512,3516,3520,3524,3528],{"type":993,"tag":1026,"props":3504,"children":3505},{"style":1041},[3506],{"type":998,"value":3507},"    [",{"type":993,"tag":1026,"props":3509,"children":3510},{"style":1116},[3511],{"type":998,"value":1782},{"type":993,"tag":1026,"props":3513,"children":3514},{"style":1041},[3515],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3517,"children":3518},{"style":1116},[3519],{"type":998,"value":1791},{"type":993,"tag":1026,"props":3521,"children":3522},{"style":1041},[3523],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3525,"children":3526},{"style":1116},[3527],{"type":998,"value":1800},{"type":993,"tag":1026,"props":3529,"children":3530},{"style":1041},[3531],{"type":998,"value":3532},"],\n",{"type":993,"tag":1026,"props":3534,"children":3535},{"class":1028,"line":45},[3536,3540,3544,3548,3552,3556,3560],{"type":993,"tag":1026,"props":3537,"children":3538},{"style":1041},[3539],{"type":998,"value":3507},{"type":993,"tag":1026,"props":3541,"children":3542},{"style":1116},[3543],{"type":998,"value":1809},{"type":993,"tag":1026,"props":3545,"children":3546},{"style":1041},[3547],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3549,"children":3550},{"style":1116},[3551],{"type":998,"value":1818},{"type":993,"tag":1026,"props":3553,"children":3554},{"style":1041},[3555],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3557,"children":3558},{"style":1116},[3559],{"type":998,"value":3304},{"type":993,"tag":1026,"props":3561,"children":3562},{"style":1041},[3563],{"type":998,"value":3532},{"type":993,"tag":1026,"props":3565,"children":3566},{"class":1028,"line":54},[3567,3571,3575,3579,3583,3587,3591],{"type":993,"tag":1026,"props":3568,"children":3569},{"style":1041},[3570],{"type":998,"value":3507},{"type":993,"tag":1026,"props":3572,"children":3573},{"style":1116},[3574],{"type":998,"value":3313},{"type":993,"tag":1026,"props":3576,"children":3577},{"style":1041},[3578],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3580,"children":3581},{"style":1116},[3582],{"type":998,"value":3322},{"type":993,"tag":1026,"props":3584,"children":3585},{"style":1041},[3586],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3588,"children":3589},{"style":1116},[3590],{"type":998,"value":3331},{"type":993,"tag":1026,"props":3592,"children":3593},{"style":1041},[3594],{"type":998,"value":1094},{"type":993,"tag":1026,"props":3596,"children":3597},{"class":1028,"line":63},[3598],{"type":993,"tag":1026,"props":3599,"children":3600},{"style":1041},[3601],{"type":998,"value":1094},{"type":993,"tag":1026,"props":3603,"children":3604},{"class":1028,"line":72},[3605],{"type":993,"tag":1026,"props":3606,"children":3607},{"emptyLinePlaceholder":13},[3608],{"type":998,"value":1102},{"type":993,"tag":1026,"props":3610,"children":3611},{"class":1028,"line":81},[3612,3616,3620,3625],{"type":993,"tag":1026,"props":3613,"children":3614},{"style":1116},[3615],{"type":998,"value":1119},{"type":993,"tag":1026,"props":3617,"children":3618},{"style":1041},[3619],{"type":998,"value":1124},{"type":993,"tag":1026,"props":3621,"children":3622},{"style":1058},[3623],{"type":998,"value":3624},"\"Matrix elements:\"",{"type":993,"tag":1026,"props":3626,"children":3627},{"style":1041},[3628],{"type":998,"value":1134},{"type":993,"tag":1026,"props":3630,"children":3631},{"class":1028,"line":91},[3632,3636,3641,3645,3649],{"type":993,"tag":1026,"props":3633,"children":3634},{"style":1047},[3635],{"type":998,"value":1142},{"type":993,"tag":1026,"props":3637,"children":3638},{"style":1041},[3639],{"type":998,"value":3640}," row_index, row ",{"type":993,"tag":1026,"props":3642,"children":3643},{"style":1047},[3644],{"type":998,"value":1152},{"type":993,"tag":1026,"props":3646,"children":3647},{"style":1116},[3648],{"type":998,"value":1268},{"type":993,"tag":1026,"props":3650,"children":3651},{"style":1041},[3652],{"type":998,"value":3653},"(matrix):\n",{"type":993,"tag":1026,"props":3655,"children":3656},{"class":1028,"line":100},[3657,3662,3667,3671,3675],{"type":993,"tag":1026,"props":3658,"children":3659},{"style":1047},[3660],{"type":998,"value":3661},"    for",{"type":993,"tag":1026,"props":3663,"children":3664},{"style":1041},[3665],{"type":998,"value":3666}," col_index, value ",{"type":993,"tag":1026,"props":3668,"children":3669},{"style":1047},[3670],{"type":998,"value":1152},{"type":993,"tag":1026,"props":3672,"children":3673},{"style":1116},[3674],{"type":998,"value":1268},{"type":993,"tag":1026,"props":3676,"children":3677},{"style":1041},[3678],{"type":998,"value":3679},"(row):\n",{"type":993,"tag":1026,"props":3681,"children":3682},{"class":1028,"line":109},[3683,3687,3691,3695,3700,3704,3709,3713,3717,3721,3726,3730,3735,3739,3744,3748,3752],{"type":993,"tag":1026,"props":3684,"children":3685},{"style":1116},[3686],{"type":998,"value":2098},{"type":993,"tag":1026,"props":3688,"children":3689},{"style":1041},[3690],{"type":998,"value":1124},{"type":993,"tag":1026,"props":3692,"children":3693},{"style":1047},[3694],{"type":998,"value":1174},{"type":993,"tag":1026,"props":3696,"children":3697},{"style":1058},[3698],{"type":998,"value":3699},"\"Position (",{"type":993,"tag":1026,"props":3701,"children":3702},{"style":1116},[3703],{"type":998,"value":1184},{"type":993,"tag":1026,"props":3705,"children":3706},{"style":1041},[3707],{"type":998,"value":3708},"row_index",{"type":993,"tag":1026,"props":3710,"children":3711},{"style":1116},[3712],{"type":998,"value":1194},{"type":993,"tag":1026,"props":3714,"children":3715},{"style":1058},[3716],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3718,"children":3719},{"style":1116},[3720],{"type":998,"value":1184},{"type":993,"tag":1026,"props":3722,"children":3723},{"style":1041},[3724],{"type":998,"value":3725},"col_index",{"type":993,"tag":1026,"props":3727,"children":3728},{"style":1116},[3729],{"type":998,"value":1194},{"type":993,"tag":1026,"props":3731,"children":3732},{"style":1058},[3733],{"type":998,"value":3734},"): ",{"type":993,"tag":1026,"props":3736,"children":3737},{"style":1116},[3738],{"type":998,"value":1184},{"type":993,"tag":1026,"props":3740,"children":3741},{"style":1041},[3742],{"type":998,"value":3743},"value",{"type":993,"tag":1026,"props":3745,"children":3746},{"style":1116},[3747],{"type":998,"value":1194},{"type":993,"tag":1026,"props":3749,"children":3750},{"style":1058},[3751],{"type":998,"value":1199},{"type":993,"tag":1026,"props":3753,"children":3754},{"style":1041},[3755],{"type":998,"value":1134},{"type":993,"tag":3757,"props":3758,"children":3761},"exercise",{"hint":3759,"prompt":3760},"Use two nested loops with different starting positions to avoid checking the same pair twice","Create a function that finds all pairs of numbers in a list that add up to a target sum. Use nested loops to check all combinations.",[3762],{"type":993,"tag":1016,"props":3763,"children":3765},{"className":1018,"code":3764,"language":6,"meta":8,"style":8},"def find_pairs(numbers, target_sum):\n    pairs = []\n    # TODO: Use nested loops to find all pairs that sum to target_sum\n    # Avoid checking the same pair twice by starting inner loop from i+1\n    # TODO: Your code here\n    return pairs\n\n# Test the function\ntest_numbers = [1, 2, 3, 4, 5, 6]\ntarget = 7\nresult = find_pairs(test_numbers, target)\nprint(f\"Numbers: {test_numbers}\")\nprint(f\"Target sum: {target}\")\nprint(f\"Pairs that sum to {target}: {result}\")\n",[3766],{"type":993,"tag":1022,"props":3767,"children":3768},{"__ignoreMap":8},[3769,3788,3804,3822,3830,3846,3859,3866,3874,3938,3955,3972,4013,4054],{"type":993,"tag":1026,"props":3770,"children":3771},{"class":1028,"line":12},[3772,3777,3783],{"type":993,"tag":1026,"props":3773,"children":3774},{"style":1047},[3775],{"type":998,"value":3776},"def",{"type":993,"tag":1026,"props":3778,"children":3780},{"style":3779},"--shiki-default:#6F42C1;--shiki-app-dark-mode:#B392F0",[3781],{"type":998,"value":3782}," find_pairs",{"type":993,"tag":1026,"props":3784,"children":3785},{"style":1041},[3786],{"type":998,"value":3787},"(numbers, target_sum):\n",{"type":993,"tag":1026,"props":3789,"children":3790},{"class":1028,"line":27},[3791,3796,3800],{"type":993,"tag":1026,"props":3792,"children":3793},{"style":1041},[3794],{"type":998,"value":3795},"    pairs ",{"type":993,"tag":1026,"props":3797,"children":3798},{"style":1047},[3799],{"type":998,"value":1050},{"type":993,"tag":1026,"props":3801,"children":3802},{"style":1041},[3803],{"type":998,"value":2817},{"type":993,"tag":1026,"props":3805,"children":3806},{"class":1028,"line":36},[3807,3812,3817],{"type":993,"tag":1026,"props":3808,"children":3809},{"style":1032},[3810],{"type":998,"value":3811},"    # ",{"type":993,"tag":1026,"props":3813,"children":3814},{"style":1047},[3815],{"type":998,"value":3816},"TODO",{"type":993,"tag":1026,"props":3818,"children":3819},{"style":1032},[3820],{"type":998,"value":3821},": Use nested loops to find all pairs that sum to target_sum\n",{"type":993,"tag":1026,"props":3823,"children":3824},{"class":1028,"line":45},[3825],{"type":993,"tag":1026,"props":3826,"children":3827},{"style":1032},[3828],{"type":998,"value":3829},"    # Avoid checking the same pair twice by starting inner loop from i+1\n",{"type":993,"tag":1026,"props":3831,"children":3832},{"class":1028,"line":54},[3833,3837,3841],{"type":993,"tag":1026,"props":3834,"children":3835},{"style":1032},[3836],{"type":998,"value":3811},{"type":993,"tag":1026,"props":3838,"children":3839},{"style":1047},[3840],{"type":998,"value":3816},{"type":993,"tag":1026,"props":3842,"children":3843},{"style":1032},[3844],{"type":998,"value":3845},": Your code here\n",{"type":993,"tag":1026,"props":3847,"children":3848},{"class":1028,"line":63},[3849,3854],{"type":993,"tag":1026,"props":3850,"children":3851},{"style":1047},[3852],{"type":998,"value":3853},"    return",{"type":993,"tag":1026,"props":3855,"children":3856},{"style":1041},[3857],{"type":998,"value":3858}," pairs\n",{"type":993,"tag":1026,"props":3860,"children":3861},{"class":1028,"line":72},[3862],{"type":993,"tag":1026,"props":3863,"children":3864},{"emptyLinePlaceholder":13},[3865],{"type":998,"value":1102},{"type":993,"tag":1026,"props":3867,"children":3868},{"class":1028,"line":81},[3869],{"type":993,"tag":1026,"props":3870,"children":3871},{"style":1032},[3872],{"type":998,"value":3873},"# Test the function\n",{"type":993,"tag":1026,"props":3875,"children":3876},{"class":1028,"line":91},[3877,3882,3886,3890,3894,3898,3902,3906,3910,3914,3918,3922,3926,3930,3934],{"type":993,"tag":1026,"props":3878,"children":3879},{"style":1041},[3880],{"type":998,"value":3881},"test_numbers ",{"type":993,"tag":1026,"props":3883,"children":3884},{"style":1047},[3885],{"type":998,"value":1050},{"type":993,"tag":1026,"props":3887,"children":3888},{"style":1041},[3889],{"type":998,"value":1055},{"type":993,"tag":1026,"props":3891,"children":3892},{"style":1116},[3893],{"type":998,"value":1782},{"type":993,"tag":1026,"props":3895,"children":3896},{"style":1041},[3897],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3899,"children":3900},{"style":1116},[3901],{"type":998,"value":1791},{"type":993,"tag":1026,"props":3903,"children":3904},{"style":1041},[3905],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3907,"children":3908},{"style":1116},[3909],{"type":998,"value":1800},{"type":993,"tag":1026,"props":3911,"children":3912},{"style":1041},[3913],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3915,"children":3916},{"style":1116},[3917],{"type":998,"value":1809},{"type":993,"tag":1026,"props":3919,"children":3920},{"style":1041},[3921],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3923,"children":3924},{"style":1116},[3925],{"type":998,"value":1818},{"type":993,"tag":1026,"props":3927,"children":3928},{"style":1041},[3929],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3931,"children":3932},{"style":1116},[3933],{"type":998,"value":3304},{"type":993,"tag":1026,"props":3935,"children":3936},{"style":1041},[3937],{"type":998,"value":1094},{"type":993,"tag":1026,"props":3939,"children":3940},{"class":1028,"line":100},[3941,3946,3950],{"type":993,"tag":1026,"props":3942,"children":3943},{"style":1041},[3944],{"type":998,"value":3945},"target ",{"type":993,"tag":1026,"props":3947,"children":3948},{"style":1047},[3949],{"type":998,"value":1050},{"type":993,"tag":1026,"props":3951,"children":3952},{"style":1116},[3953],{"type":998,"value":3954}," 7\n",{"type":993,"tag":1026,"props":3956,"children":3957},{"class":1028,"line":109},[3958,3963,3967],{"type":993,"tag":1026,"props":3959,"children":3960},{"style":1041},[3961],{"type":998,"value":3962},"result ",{"type":993,"tag":1026,"props":3964,"children":3965},{"style":1047},[3966],{"type":998,"value":1050},{"type":993,"tag":1026,"props":3968,"children":3969},{"style":1041},[3970],{"type":998,"value":3971}," find_pairs(test_numbers, target)\n",{"type":993,"tag":1026,"props":3973,"children":3974},{"class":1028,"line":118},[3975,3979,3983,3987,3992,3996,4001,4005,4009],{"type":993,"tag":1026,"props":3976,"children":3977},{"style":1116},[3978],{"type":998,"value":1119},{"type":993,"tag":1026,"props":3980,"children":3981},{"style":1041},[3982],{"type":998,"value":1124},{"type":993,"tag":1026,"props":3984,"children":3985},{"style":1047},[3986],{"type":998,"value":1174},{"type":993,"tag":1026,"props":3988,"children":3989},{"style":1058},[3990],{"type":998,"value":3991},"\"Numbers: ",{"type":993,"tag":1026,"props":3993,"children":3994},{"style":1116},[3995],{"type":998,"value":1184},{"type":993,"tag":1026,"props":3997,"children":3998},{"style":1041},[3999],{"type":998,"value":4000},"test_numbers",{"type":993,"tag":1026,"props":4002,"children":4003},{"style":1116},[4004],{"type":998,"value":1194},{"type":993,"tag":1026,"props":4006,"children":4007},{"style":1058},[4008],{"type":998,"value":1199},{"type":993,"tag":1026,"props":4010,"children":4011},{"style":1041},[4012],{"type":998,"value":1134},{"type":993,"tag":1026,"props":4014,"children":4015},{"class":1028,"line":127},[4016,4020,4024,4028,4033,4037,4042,4046,4050],{"type":993,"tag":1026,"props":4017,"children":4018},{"style":1116},[4019],{"type":998,"value":1119},{"type":993,"tag":1026,"props":4021,"children":4022},{"style":1041},[4023],{"type":998,"value":1124},{"type":993,"tag":1026,"props":4025,"children":4026},{"style":1047},[4027],{"type":998,"value":1174},{"type":993,"tag":1026,"props":4029,"children":4030},{"style":1058},[4031],{"type":998,"value":4032},"\"Target sum: ",{"type":993,"tag":1026,"props":4034,"children":4035},{"style":1116},[4036],{"type":998,"value":1184},{"type":993,"tag":1026,"props":4038,"children":4039},{"style":1041},[4040],{"type":998,"value":4041},"target",{"type":993,"tag":1026,"props":4043,"children":4044},{"style":1116},[4045],{"type":998,"value":1194},{"type":993,"tag":1026,"props":4047,"children":4048},{"style":1058},[4049],{"type":998,"value":1199},{"type":993,"tag":1026,"props":4051,"children":4052},{"style":1041},[4053],{"type":998,"value":1134},{"type":993,"tag":1026,"props":4055,"children":4056},{"class":1028,"line":136},[4057,4061,4065,4069,4074,4078,4082,4086,4090,4094,4099,4103,4107],{"type":993,"tag":1026,"props":4058,"children":4059},{"style":1116},[4060],{"type":998,"value":1119},{"type":993,"tag":1026,"props":4062,"children":4063},{"style":1041},[4064],{"type":998,"value":1124},{"type":993,"tag":1026,"props":4066,"children":4067},{"style":1047},[4068],{"type":998,"value":1174},{"type":993,"tag":1026,"props":4070,"children":4071},{"style":1058},[4072],{"type":998,"value":4073},"\"Pairs that sum to ",{"type":993,"tag":1026,"props":4075,"children":4076},{"style":1116},[4077],{"type":998,"value":1184},{"type":993,"tag":1026,"props":4079,"children":4080},{"style":1041},[4081],{"type":998,"value":4041},{"type":993,"tag":1026,"props":4083,"children":4084},{"style":1116},[4085],{"type":998,"value":1194},{"type":993,"tag":1026,"props":4087,"children":4088},{"style":1058},[4089],{"type":998,"value":1310},{"type":993,"tag":1026,"props":4091,"children":4092},{"style":1116},[4093],{"type":998,"value":1184},{"type":993,"tag":1026,"props":4095,"children":4096},{"style":1041},[4097],{"type":998,"value":4098},"result",{"type":993,"tag":1026,"props":4100,"children":4101},{"style":1116},[4102],{"type":998,"value":1194},{"type":993,"tag":1026,"props":4104,"children":4105},{"style":1058},[4106],{"type":998,"value":1199},{"type":993,"tag":1026,"props":4108,"children":4109},{"style":1041},[4110],{"type":998,"value":1134},{"type":993,"tag":1556,"props":4112,"children":4114},{"id":4113},"solution-and-explanation",[4115],{"type":998,"value":4116},"Solution and Explanation 💡",{"type":993,"tag":4118,"props":4119,"children":4120},"details",{},[4121,4129,4552,4560],{"type":993,"tag":4122,"props":4123,"children":4126},"summary",{"className":4124},[4125],"cursor-pointer",[4127],{"type":998,"value":4128},"Click to see the complete solution",{"type":993,"tag":1012,"props":4130,"children":4131},{},[4132],{"type":993,"tag":1016,"props":4133,"children":4135},{"className":1018,"code":4134,"language":6,"meta":8,"style":8},"def find_pairs(numbers, target_sum):\n    pairs = []\n    # Use nested loops to find all pairs that sum to target_sum\n    for i in range(len(numbers)):\n        for j in range(i + 1, len(numbers)):  # Start from i+1 to avoid duplicates\n            if numbers[i] + numbers[j] == target_sum:\n                pairs.append((numbers[i], numbers[j]))\n    return pairs\n\n# Test the function\ntest_numbers = [1, 2, 3, 4, 5, 6]\ntarget = 7\nresult = find_pairs(test_numbers, target)\nprint(f\"Numbers: {test_numbers}\")\nprint(f\"Target sum: {target}\")\nprint(f\"Pairs that sum to {target}: {result}\")\n",[4136],{"type":993,"tag":1022,"props":4137,"children":4138},{"__ignoreMap":8},[4139,4154,4169,4177,4209,4262,4293,4301,4312,4319,4326,4389,4404,4419,4458,4497],{"type":993,"tag":1026,"props":4140,"children":4141},{"class":1028,"line":12},[4142,4146,4150],{"type":993,"tag":1026,"props":4143,"children":4144},{"style":1047},[4145],{"type":998,"value":3776},{"type":993,"tag":1026,"props":4147,"children":4148},{"style":3779},[4149],{"type":998,"value":3782},{"type":993,"tag":1026,"props":4151,"children":4152},{"style":1041},[4153],{"type":998,"value":3787},{"type":993,"tag":1026,"props":4155,"children":4156},{"class":1028,"line":27},[4157,4161,4165],{"type":993,"tag":1026,"props":4158,"children":4159},{"style":1041},[4160],{"type":998,"value":3795},{"type":993,"tag":1026,"props":4162,"children":4163},{"style":1047},[4164],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4166,"children":4167},{"style":1041},[4168],{"type":998,"value":2817},{"type":993,"tag":1026,"props":4170,"children":4171},{"class":1028,"line":36},[4172],{"type":993,"tag":1026,"props":4173,"children":4174},{"style":1032},[4175],{"type":998,"value":4176},"    # Use nested loops to find all pairs that sum to target_sum\n",{"type":993,"tag":1026,"props":4178,"children":4179},{"class":1028,"line":45},[4180,4184,4188,4192,4196,4200,4204],{"type":993,"tag":1026,"props":4181,"children":4182},{"style":1047},[4183],{"type":998,"value":3661},{"type":993,"tag":1026,"props":4185,"children":4186},{"style":1041},[4187],{"type":998,"value":1385},{"type":993,"tag":1026,"props":4189,"children":4190},{"style":1047},[4191],{"type":998,"value":1152},{"type":993,"tag":1026,"props":4193,"children":4194},{"style":1116},[4195],{"type":998,"value":1394},{"type":993,"tag":1026,"props":4197,"children":4198},{"style":1041},[4199],{"type":998,"value":1124},{"type":993,"tag":1026,"props":4201,"children":4202},{"style":1116},[4203],{"type":998,"value":1403},{"type":993,"tag":1026,"props":4205,"children":4206},{"style":1041},[4207],{"type":998,"value":4208},"(numbers)):\n",{"type":993,"tag":1026,"props":4210,"children":4211},{"class":1028,"line":54},[4212,4217,4222,4226,4230,4235,4239,4244,4248,4252,4257],{"type":993,"tag":1026,"props":4213,"children":4214},{"style":1047},[4215],{"type":998,"value":4216},"        for",{"type":993,"tag":1026,"props":4218,"children":4219},{"style":1041},[4220],{"type":998,"value":4221}," j ",{"type":993,"tag":1026,"props":4223,"children":4224},{"style":1047},[4225],{"type":998,"value":1152},{"type":993,"tag":1026,"props":4227,"children":4228},{"style":1116},[4229],{"type":998,"value":1394},{"type":993,"tag":1026,"props":4231,"children":4232},{"style":1041},[4233],{"type":998,"value":4234},"(i ",{"type":993,"tag":1026,"props":4236,"children":4237},{"style":1047},[4238],{"type":998,"value":2498},{"type":993,"tag":1026,"props":4240,"children":4241},{"style":1116},[4242],{"type":998,"value":4243}," 1",{"type":993,"tag":1026,"props":4245,"children":4246},{"style":1041},[4247],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4249,"children":4250},{"style":1116},[4251],{"type":998,"value":1403},{"type":993,"tag":1026,"props":4253,"children":4254},{"style":1041},[4255],{"type":998,"value":4256},"(numbers)):  ",{"type":993,"tag":1026,"props":4258,"children":4259},{"style":1032},[4260],{"type":998,"value":4261},"# Start from i+1 to avoid duplicates\n",{"type":993,"tag":1026,"props":4263,"children":4264},{"class":1028,"line":63},[4265,4270,4275,4279,4284,4288],{"type":993,"tag":1026,"props":4266,"children":4267},{"style":1047},[4268],{"type":998,"value":4269},"            if",{"type":993,"tag":1026,"props":4271,"children":4272},{"style":1041},[4273],{"type":998,"value":4274}," numbers[i] ",{"type":993,"tag":1026,"props":4276,"children":4277},{"style":1047},[4278],{"type":998,"value":2498},{"type":993,"tag":1026,"props":4280,"children":4281},{"style":1041},[4282],{"type":998,"value":4283}," numbers[j] ",{"type":993,"tag":1026,"props":4285,"children":4286},{"style":1047},[4287],{"type":998,"value":2863},{"type":993,"tag":1026,"props":4289,"children":4290},{"style":1041},[4291],{"type":998,"value":4292}," target_sum:\n",{"type":993,"tag":1026,"props":4294,"children":4295},{"class":1028,"line":72},[4296],{"type":993,"tag":1026,"props":4297,"children":4298},{"style":1041},[4299],{"type":998,"value":4300},"                pairs.append((numbers[i], numbers[j]))\n",{"type":993,"tag":1026,"props":4302,"children":4303},{"class":1028,"line":81},[4304,4308],{"type":993,"tag":1026,"props":4305,"children":4306},{"style":1047},[4307],{"type":998,"value":3853},{"type":993,"tag":1026,"props":4309,"children":4310},{"style":1041},[4311],{"type":998,"value":3858},{"type":993,"tag":1026,"props":4313,"children":4314},{"class":1028,"line":91},[4315],{"type":993,"tag":1026,"props":4316,"children":4317},{"emptyLinePlaceholder":13},[4318],{"type":998,"value":1102},{"type":993,"tag":1026,"props":4320,"children":4321},{"class":1028,"line":100},[4322],{"type":993,"tag":1026,"props":4323,"children":4324},{"style":1032},[4325],{"type":998,"value":3873},{"type":993,"tag":1026,"props":4327,"children":4328},{"class":1028,"line":109},[4329,4333,4337,4341,4345,4349,4353,4357,4361,4365,4369,4373,4377,4381,4385],{"type":993,"tag":1026,"props":4330,"children":4331},{"style":1041},[4332],{"type":998,"value":3881},{"type":993,"tag":1026,"props":4334,"children":4335},{"style":1047},[4336],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4338,"children":4339},{"style":1041},[4340],{"type":998,"value":1055},{"type":993,"tag":1026,"props":4342,"children":4343},{"style":1116},[4344],{"type":998,"value":1782},{"type":993,"tag":1026,"props":4346,"children":4347},{"style":1041},[4348],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4350,"children":4351},{"style":1116},[4352],{"type":998,"value":1791},{"type":993,"tag":1026,"props":4354,"children":4355},{"style":1041},[4356],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4358,"children":4359},{"style":1116},[4360],{"type":998,"value":1800},{"type":993,"tag":1026,"props":4362,"children":4363},{"style":1041},[4364],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4366,"children":4367},{"style":1116},[4368],{"type":998,"value":1809},{"type":993,"tag":1026,"props":4370,"children":4371},{"style":1041},[4372],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4374,"children":4375},{"style":1116},[4376],{"type":998,"value":1818},{"type":993,"tag":1026,"props":4378,"children":4379},{"style":1041},[4380],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4382,"children":4383},{"style":1116},[4384],{"type":998,"value":3304},{"type":993,"tag":1026,"props":4386,"children":4387},{"style":1041},[4388],{"type":998,"value":1094},{"type":993,"tag":1026,"props":4390,"children":4391},{"class":1028,"line":118},[4392,4396,4400],{"type":993,"tag":1026,"props":4393,"children":4394},{"style":1041},[4395],{"type":998,"value":3945},{"type":993,"tag":1026,"props":4397,"children":4398},{"style":1047},[4399],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4401,"children":4402},{"style":1116},[4403],{"type":998,"value":3954},{"type":993,"tag":1026,"props":4405,"children":4406},{"class":1028,"line":127},[4407,4411,4415],{"type":993,"tag":1026,"props":4408,"children":4409},{"style":1041},[4410],{"type":998,"value":3962},{"type":993,"tag":1026,"props":4412,"children":4413},{"style":1047},[4414],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4416,"children":4417},{"style":1041},[4418],{"type":998,"value":3971},{"type":993,"tag":1026,"props":4420,"children":4421},{"class":1028,"line":136},[4422,4426,4430,4434,4438,4442,4446,4450,4454],{"type":993,"tag":1026,"props":4423,"children":4424},{"style":1116},[4425],{"type":998,"value":1119},{"type":993,"tag":1026,"props":4427,"children":4428},{"style":1041},[4429],{"type":998,"value":1124},{"type":993,"tag":1026,"props":4431,"children":4432},{"style":1047},[4433],{"type":998,"value":1174},{"type":993,"tag":1026,"props":4435,"children":4436},{"style":1058},[4437],{"type":998,"value":3991},{"type":993,"tag":1026,"props":4439,"children":4440},{"style":1116},[4441],{"type":998,"value":1184},{"type":993,"tag":1026,"props":4443,"children":4444},{"style":1041},[4445],{"type":998,"value":4000},{"type":993,"tag":1026,"props":4447,"children":4448},{"style":1116},[4449],{"type":998,"value":1194},{"type":993,"tag":1026,"props":4451,"children":4452},{"style":1058},[4453],{"type":998,"value":1199},{"type":993,"tag":1026,"props":4455,"children":4456},{"style":1041},[4457],{"type":998,"value":1134},{"type":993,"tag":1026,"props":4459,"children":4460},{"class":1028,"line":146},[4461,4465,4469,4473,4477,4481,4485,4489,4493],{"type":993,"tag":1026,"props":4462,"children":4463},{"style":1116},[4464],{"type":998,"value":1119},{"type":993,"tag":1026,"props":4466,"children":4467},{"style":1041},[4468],{"type":998,"value":1124},{"type":993,"tag":1026,"props":4470,"children":4471},{"style":1047},[4472],{"type":998,"value":1174},{"type":993,"tag":1026,"props":4474,"children":4475},{"style":1058},[4476],{"type":998,"value":4032},{"type":993,"tag":1026,"props":4478,"children":4479},{"style":1116},[4480],{"type":998,"value":1184},{"type":993,"tag":1026,"props":4482,"children":4483},{"style":1041},[4484],{"type":998,"value":4041},{"type":993,"tag":1026,"props":4486,"children":4487},{"style":1116},[4488],{"type":998,"value":1194},{"type":993,"tag":1026,"props":4490,"children":4491},{"style":1058},[4492],{"type":998,"value":1199},{"type":993,"tag":1026,"props":4494,"children":4495},{"style":1041},[4496],{"type":998,"value":1134},{"type":993,"tag":1026,"props":4498,"children":4499},{"class":1028,"line":155},[4500,4504,4508,4512,4516,4520,4524,4528,4532,4536,4540,4544,4548],{"type":993,"tag":1026,"props":4501,"children":4502},{"style":1116},[4503],{"type":998,"value":1119},{"type":993,"tag":1026,"props":4505,"children":4506},{"style":1041},[4507],{"type":998,"value":1124},{"type":993,"tag":1026,"props":4509,"children":4510},{"style":1047},[4511],{"type":998,"value":1174},{"type":993,"tag":1026,"props":4513,"children":4514},{"style":1058},[4515],{"type":998,"value":4073},{"type":993,"tag":1026,"props":4517,"children":4518},{"style":1116},[4519],{"type":998,"value":1184},{"type":993,"tag":1026,"props":4521,"children":4522},{"style":1041},[4523],{"type":998,"value":4041},{"type":993,"tag":1026,"props":4525,"children":4526},{"style":1116},[4527],{"type":998,"value":1194},{"type":993,"tag":1026,"props":4529,"children":4530},{"style":1058},[4531],{"type":998,"value":1310},{"type":993,"tag":1026,"props":4533,"children":4534},{"style":1116},[4535],{"type":998,"value":1184},{"type":993,"tag":1026,"props":4537,"children":4538},{"style":1041},[4539],{"type":998,"value":4098},{"type":993,"tag":1026,"props":4541,"children":4542},{"style":1116},[4543],{"type":998,"value":1194},{"type":993,"tag":1026,"props":4545,"children":4546},{"style":1058},[4547],{"type":998,"value":1199},{"type":993,"tag":1026,"props":4549,"children":4550},{"style":1041},[4551],{"type":998,"value":1134},{"type":993,"tag":1001,"props":4553,"children":4554},{},[4555],{"type":993,"tag":1491,"props":4556,"children":4557},{},[4558],{"type":998,"value":4559},"Key Learning Points:",{"type":993,"tag":1513,"props":4561,"children":4562},{},[4563,4575,4594,4613],{"type":993,"tag":1517,"props":4564,"children":4565},{},[4566,4568,4573],{"type":998,"value":4567},"📌 ",{"type":993,"tag":1491,"props":4569,"children":4570},{},[4571],{"type":998,"value":4572},"Nested loops",{"type":998,"value":4574},": Outer loop for first element, inner loop for second element",{"type":993,"tag":1517,"props":4576,"children":4577},{},[4578,4579,4584,4586,4592],{"type":998,"value":4567},{"type":993,"tag":1491,"props":4580,"children":4581},{},[4582],{"type":998,"value":4583},"Avoid duplicates",{"type":998,"value":4585},": Start inner loop from ",{"type":993,"tag":1022,"props":4587,"children":4589},{"className":4588},[],[4590],{"type":998,"value":4591},"i + 1",{"type":998,"value":4593}," to prevent checking same pairs",{"type":993,"tag":1517,"props":4595,"children":4596},{},[4597,4598,4603,4605,4611],{"type":998,"value":4567},{"type":993,"tag":1491,"props":4599,"children":4600},{},[4601],{"type":998,"value":4602},"Tuple creation",{"type":998,"value":4604},": Use ",{"type":993,"tag":1022,"props":4606,"children":4608},{"className":4607},[],[4609],{"type":998,"value":4610},"(a, b)",{"type":998,"value":4612}," to store pairs as tuples",{"type":993,"tag":1517,"props":4614,"children":4615},{},[4616,4617,4622],{"type":998,"value":4567},{"type":993,"tag":1491,"props":4618,"children":4619},{},[4620],{"type":998,"value":4621},"List building",{"type":998,"value":4623},": Append matching pairs to results list",{"type":993,"tag":1469,"props":4625,"children":4627},{"id":4626},"common-iteration-patterns",[4628],{"type":998,"value":4629},"🎨 Common Iteration Patterns",{"type":993,"tag":1556,"props":4631,"children":4633},{"id":4632},"data-processing-pipeline",[4634],{"type":998,"value":4635},"Data Processing Pipeline",{"type":993,"tag":1012,"props":4637,"children":4638},{},[4639],{"type":993,"tag":1016,"props":4640,"children":4642},{"className":1018,"code":4641,"language":6,"meta":8,"style":8},"# Data processing pipeline\nraw_data = [\"  Alice  \", \"BOB\", \"charlie\", \"  DIANA  \"]\nprocessed_data = []\n\nprint(\"Processing pipeline:\")\nfor item in raw_data:\n    # Clean whitespace and normalize case\n    cleaned = item.strip().title()\n    processed_data.append(cleaned)\n    print(f\"Processed: '{cleaned}'\")\n\nprint(\"Final processed data:\", processed_data)\n",[4643],{"type":993,"tag":1022,"props":4644,"children":4645},{"__ignoreMap":8},[4646,4654,4706,4722,4729,4749,4770,4778,4795,4803,4845,4852],{"type":993,"tag":1026,"props":4647,"children":4648},{"class":1028,"line":12},[4649],{"type":993,"tag":1026,"props":4650,"children":4651},{"style":1032},[4652],{"type":998,"value":4653},"# Data processing pipeline\n",{"type":993,"tag":1026,"props":4655,"children":4656},{"class":1028,"line":27},[4657,4662,4666,4670,4675,4679,4684,4688,4693,4697,4702],{"type":993,"tag":1026,"props":4658,"children":4659},{"style":1041},[4660],{"type":998,"value":4661},"raw_data ",{"type":993,"tag":1026,"props":4663,"children":4664},{"style":1047},[4665],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4667,"children":4668},{"style":1041},[4669],{"type":998,"value":1055},{"type":993,"tag":1026,"props":4671,"children":4672},{"style":1058},[4673],{"type":998,"value":4674},"\"  Alice  \"",{"type":993,"tag":1026,"props":4676,"children":4677},{"style":1041},[4678],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4680,"children":4681},{"style":1058},[4682],{"type":998,"value":4683},"\"BOB\"",{"type":993,"tag":1026,"props":4685,"children":4686},{"style":1041},[4687],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4689,"children":4690},{"style":1058},[4691],{"type":998,"value":4692},"\"charlie\"",{"type":993,"tag":1026,"props":4694,"children":4695},{"style":1041},[4696],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4698,"children":4699},{"style":1058},[4700],{"type":998,"value":4701},"\"  DIANA  \"",{"type":993,"tag":1026,"props":4703,"children":4704},{"style":1041},[4705],{"type":998,"value":1094},{"type":993,"tag":1026,"props":4707,"children":4708},{"class":1028,"line":36},[4709,4714,4718],{"type":993,"tag":1026,"props":4710,"children":4711},{"style":1041},[4712],{"type":998,"value":4713},"processed_data ",{"type":993,"tag":1026,"props":4715,"children":4716},{"style":1047},[4717],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4719,"children":4720},{"style":1041},[4721],{"type":998,"value":2817},{"type":993,"tag":1026,"props":4723,"children":4724},{"class":1028,"line":45},[4725],{"type":993,"tag":1026,"props":4726,"children":4727},{"emptyLinePlaceholder":13},[4728],{"type":998,"value":1102},{"type":993,"tag":1026,"props":4730,"children":4731},{"class":1028,"line":54},[4732,4736,4740,4745],{"type":993,"tag":1026,"props":4733,"children":4734},{"style":1116},[4735],{"type":998,"value":1119},{"type":993,"tag":1026,"props":4737,"children":4738},{"style":1041},[4739],{"type":998,"value":1124},{"type":993,"tag":1026,"props":4741,"children":4742},{"style":1058},[4743],{"type":998,"value":4744},"\"Processing pipeline:\"",{"type":993,"tag":1026,"props":4746,"children":4747},{"style":1041},[4748],{"type":998,"value":1134},{"type":993,"tag":1026,"props":4750,"children":4751},{"class":1028,"line":63},[4752,4756,4761,4765],{"type":993,"tag":1026,"props":4753,"children":4754},{"style":1047},[4755],{"type":998,"value":1142},{"type":993,"tag":1026,"props":4757,"children":4758},{"style":1041},[4759],{"type":998,"value":4760}," item ",{"type":993,"tag":1026,"props":4762,"children":4763},{"style":1047},[4764],{"type":998,"value":1152},{"type":993,"tag":1026,"props":4766,"children":4767},{"style":1041},[4768],{"type":998,"value":4769}," raw_data:\n",{"type":993,"tag":1026,"props":4771,"children":4772},{"class":1028,"line":72},[4773],{"type":993,"tag":1026,"props":4774,"children":4775},{"style":1032},[4776],{"type":998,"value":4777},"    # Clean whitespace and normalize case\n",{"type":993,"tag":1026,"props":4779,"children":4780},{"class":1028,"line":81},[4781,4786,4790],{"type":993,"tag":1026,"props":4782,"children":4783},{"style":1041},[4784],{"type":998,"value":4785},"    cleaned ",{"type":993,"tag":1026,"props":4787,"children":4788},{"style":1047},[4789],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4791,"children":4792},{"style":1041},[4793],{"type":998,"value":4794}," item.strip().title()\n",{"type":993,"tag":1026,"props":4796,"children":4797},{"class":1028,"line":91},[4798],{"type":993,"tag":1026,"props":4799,"children":4800},{"style":1041},[4801],{"type":998,"value":4802},"    processed_data.append(cleaned)\n",{"type":993,"tag":1026,"props":4804,"children":4805},{"class":1028,"line":100},[4806,4810,4814,4818,4823,4827,4832,4836,4841],{"type":993,"tag":1026,"props":4807,"children":4808},{"style":1116},[4809],{"type":998,"value":1165},{"type":993,"tag":1026,"props":4811,"children":4812},{"style":1041},[4813],{"type":998,"value":1124},{"type":993,"tag":1026,"props":4815,"children":4816},{"style":1047},[4817],{"type":998,"value":1174},{"type":993,"tag":1026,"props":4819,"children":4820},{"style":1058},[4821],{"type":998,"value":4822},"\"Processed: '",{"type":993,"tag":1026,"props":4824,"children":4825},{"style":1116},[4826],{"type":998,"value":1184},{"type":993,"tag":1026,"props":4828,"children":4829},{"style":1041},[4830],{"type":998,"value":4831},"cleaned",{"type":993,"tag":1026,"props":4833,"children":4834},{"style":1116},[4835],{"type":998,"value":1194},{"type":993,"tag":1026,"props":4837,"children":4838},{"style":1058},[4839],{"type":998,"value":4840},"'\"",{"type":993,"tag":1026,"props":4842,"children":4843},{"style":1041},[4844],{"type":998,"value":1134},{"type":993,"tag":1026,"props":4846,"children":4847},{"class":1028,"line":109},[4848],{"type":993,"tag":1026,"props":4849,"children":4850},{"emptyLinePlaceholder":13},[4851],{"type":998,"value":1102},{"type":993,"tag":1026,"props":4853,"children":4854},{"class":1028,"line":118},[4855,4859,4863,4868],{"type":993,"tag":1026,"props":4856,"children":4857},{"style":1116},[4858],{"type":998,"value":1119},{"type":993,"tag":1026,"props":4860,"children":4861},{"style":1041},[4862],{"type":998,"value":1124},{"type":993,"tag":1026,"props":4864,"children":4865},{"style":1058},[4866],{"type":998,"value":4867},"\"Final processed data:\"",{"type":993,"tag":1026,"props":4869,"children":4870},{"style":1041},[4871],{"type":998,"value":4872},", processed_data)\n",{"type":993,"tag":1556,"props":4874,"children":4876},{"id":4875},"validation-and-filtering",[4877],{"type":998,"value":4878},"Validation and Filtering",{"type":993,"tag":1012,"props":4880,"children":4881},{},[4882],{"type":993,"tag":1016,"props":4883,"children":4885},{"className":1018,"code":4884,"language":6,"meta":8,"style":8},"# Validation and filtering\nuser_inputs = [\"alice@email.com\", \"invalid-email\", \"bob@test.org\", \"\", \"charlie@domain.com\"]\nvalid_emails = []\ninvalid_count = 0\n\nprint(\"Email validation:\")\nfor email in user_inputs:\n    if \"@\" in email and \".\" in email and len(email) > 5:\n        valid_emails.append(email)\n        print(f\"✓ Valid: {email}\")\n    else:\n        invalid_count += 1\n        print(f\"✗ Invalid: {email}\")\n\nprint(f\"Valid emails: {valid_emails}\")\nprint(f\"Invalid count: {invalid_count}\")\n",[4886],{"type":993,"tag":1022,"props":4887,"children":4888},{"__ignoreMap":8},[4889,4897,4958,4974,4990,4997,5017,5038,5105,5113,5154,5165,5182,5222,5229,5270],{"type":993,"tag":1026,"props":4890,"children":4891},{"class":1028,"line":12},[4892],{"type":993,"tag":1026,"props":4893,"children":4894},{"style":1032},[4895],{"type":998,"value":4896},"# Validation and filtering\n",{"type":993,"tag":1026,"props":4898,"children":4899},{"class":1028,"line":27},[4900,4905,4909,4913,4918,4922,4927,4931,4936,4940,4945,4949,4954],{"type":993,"tag":1026,"props":4901,"children":4902},{"style":1041},[4903],{"type":998,"value":4904},"user_inputs ",{"type":993,"tag":1026,"props":4906,"children":4907},{"style":1047},[4908],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4910,"children":4911},{"style":1041},[4912],{"type":998,"value":1055},{"type":993,"tag":1026,"props":4914,"children":4915},{"style":1058},[4916],{"type":998,"value":4917},"\"alice@email.com\"",{"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":4926},"\"invalid-email\"",{"type":993,"tag":1026,"props":4928,"children":4929},{"style":1041},[4930],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4932,"children":4933},{"style":1058},[4934],{"type":998,"value":4935},"\"bob@test.org\"",{"type":993,"tag":1026,"props":4937,"children":4938},{"style":1041},[4939],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4941,"children":4942},{"style":1058},[4943],{"type":998,"value":4944},"\"\"",{"type":993,"tag":1026,"props":4946,"children":4947},{"style":1041},[4948],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4950,"children":4951},{"style":1058},[4952],{"type":998,"value":4953},"\"charlie@domain.com\"",{"type":993,"tag":1026,"props":4955,"children":4956},{"style":1041},[4957],{"type":998,"value":1094},{"type":993,"tag":1026,"props":4959,"children":4960},{"class":1028,"line":36},[4961,4966,4970],{"type":993,"tag":1026,"props":4962,"children":4963},{"style":1041},[4964],{"type":998,"value":4965},"valid_emails ",{"type":993,"tag":1026,"props":4967,"children":4968},{"style":1047},[4969],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4971,"children":4972},{"style":1041},[4973],{"type":998,"value":2817},{"type":993,"tag":1026,"props":4975,"children":4976},{"class":1028,"line":45},[4977,4982,4986],{"type":993,"tag":1026,"props":4978,"children":4979},{"style":1041},[4980],{"type":998,"value":4981},"invalid_count ",{"type":993,"tag":1026,"props":4983,"children":4984},{"style":1047},[4985],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4987,"children":4988},{"style":1116},[4989],{"type":998,"value":1839},{"type":993,"tag":1026,"props":4991,"children":4992},{"class":1028,"line":54},[4993],{"type":993,"tag":1026,"props":4994,"children":4995},{"emptyLinePlaceholder":13},[4996],{"type":998,"value":1102},{"type":993,"tag":1026,"props":4998,"children":4999},{"class":1028,"line":63},[5000,5004,5008,5013],{"type":993,"tag":1026,"props":5001,"children":5002},{"style":1116},[5003],{"type":998,"value":1119},{"type":993,"tag":1026,"props":5005,"children":5006},{"style":1041},[5007],{"type":998,"value":1124},{"type":993,"tag":1026,"props":5009,"children":5010},{"style":1058},[5011],{"type":998,"value":5012},"\"Email validation:\"",{"type":993,"tag":1026,"props":5014,"children":5015},{"style":1041},[5016],{"type":998,"value":1134},{"type":993,"tag":1026,"props":5018,"children":5019},{"class":1028,"line":72},[5020,5024,5029,5033],{"type":993,"tag":1026,"props":5021,"children":5022},{"style":1047},[5023],{"type":998,"value":1142},{"type":993,"tag":1026,"props":5025,"children":5026},{"style":1041},[5027],{"type":998,"value":5028}," email ",{"type":993,"tag":1026,"props":5030,"children":5031},{"style":1047},[5032],{"type":998,"value":1152},{"type":993,"tag":1026,"props":5034,"children":5035},{"style":1041},[5036],{"type":998,"value":5037}," user_inputs:\n",{"type":993,"tag":1026,"props":5039,"children":5040},{"class":1028,"line":81},[5041,5045,5050,5055,5059,5064,5069,5073,5077,5081,5086,5091,5096,5101],{"type":993,"tag":1026,"props":5042,"children":5043},{"style":1047},[5044],{"type":998,"value":2071},{"type":993,"tag":1026,"props":5046,"children":5047},{"style":1058},[5048],{"type":998,"value":5049}," \"@\"",{"type":993,"tag":1026,"props":5051,"children":5052},{"style":1047},[5053],{"type":998,"value":5054}," in",{"type":993,"tag":1026,"props":5056,"children":5057},{"style":1041},[5058],{"type":998,"value":5028},{"type":993,"tag":1026,"props":5060,"children":5061},{"style":1047},[5062],{"type":998,"value":5063},"and",{"type":993,"tag":1026,"props":5065,"children":5066},{"style":1058},[5067],{"type":998,"value":5068}," \".\"",{"type":993,"tag":1026,"props":5070,"children":5071},{"style":1047},[5072],{"type":998,"value":5054},{"type":993,"tag":1026,"props":5074,"children":5075},{"style":1041},[5076],{"type":998,"value":5028},{"type":993,"tag":1026,"props":5078,"children":5079},{"style":1047},[5080],{"type":998,"value":5063},{"type":993,"tag":1026,"props":5082,"children":5083},{"style":1116},[5084],{"type":998,"value":5085}," len",{"type":993,"tag":1026,"props":5087,"children":5088},{"style":1041},[5089],{"type":998,"value":5090},"(email) ",{"type":993,"tag":1026,"props":5092,"children":5093},{"style":1047},[5094],{"type":998,"value":5095},">",{"type":993,"tag":1026,"props":5097,"children":5098},{"style":1116},[5099],{"type":998,"value":5100}," 5",{"type":993,"tag":1026,"props":5102,"children":5103},{"style":1041},[5104],{"type":998,"value":2090},{"type":993,"tag":1026,"props":5106,"children":5107},{"class":1028,"line":91},[5108],{"type":993,"tag":1026,"props":5109,"children":5110},{"style":1041},[5111],{"type":998,"value":5112},"        valid_emails.append(email)\n",{"type":993,"tag":1026,"props":5114,"children":5115},{"class":1028,"line":100},[5116,5120,5124,5128,5133,5137,5142,5146,5150],{"type":993,"tag":1026,"props":5117,"children":5118},{"style":1116},[5119],{"type":998,"value":2098},{"type":993,"tag":1026,"props":5121,"children":5122},{"style":1041},[5123],{"type":998,"value":1124},{"type":993,"tag":1026,"props":5125,"children":5126},{"style":1047},[5127],{"type":998,"value":1174},{"type":993,"tag":1026,"props":5129,"children":5130},{"style":1058},[5131],{"type":998,"value":5132},"\"✓ Valid: ",{"type":993,"tag":1026,"props":5134,"children":5135},{"style":1116},[5136],{"type":998,"value":1184},{"type":993,"tag":1026,"props":5138,"children":5139},{"style":1041},[5140],{"type":998,"value":5141},"email",{"type":993,"tag":1026,"props":5143,"children":5144},{"style":1116},[5145],{"type":998,"value":1194},{"type":993,"tag":1026,"props":5147,"children":5148},{"style":1058},[5149],{"type":998,"value":1199},{"type":993,"tag":1026,"props":5151,"children":5152},{"style":1041},[5153],{"type":998,"value":1134},{"type":993,"tag":1026,"props":5155,"children":5156},{"class":1028,"line":109},[5157,5161],{"type":993,"tag":1026,"props":5158,"children":5159},{"style":1047},[5160],{"type":998,"value":2205},{"type":993,"tag":1026,"props":5162,"children":5163},{"style":1041},[5164],{"type":998,"value":2090},{"type":993,"tag":1026,"props":5166,"children":5167},{"class":1028,"line":118},[5168,5173,5177],{"type":993,"tag":1026,"props":5169,"children":5170},{"style":1041},[5171],{"type":998,"value":5172},"        invalid_count ",{"type":993,"tag":1026,"props":5174,"children":5175},{"style":1047},[5176],{"type":998,"value":1873},{"type":993,"tag":1026,"props":5178,"children":5179},{"style":1116},[5180],{"type":998,"value":5181}," 1\n",{"type":993,"tag":1026,"props":5183,"children":5184},{"class":1028,"line":127},[5185,5189,5193,5197,5202,5206,5210,5214,5218],{"type":993,"tag":1026,"props":5186,"children":5187},{"style":1116},[5188],{"type":998,"value":2098},{"type":993,"tag":1026,"props":5190,"children":5191},{"style":1041},[5192],{"type":998,"value":1124},{"type":993,"tag":1026,"props":5194,"children":5195},{"style":1047},[5196],{"type":998,"value":1174},{"type":993,"tag":1026,"props":5198,"children":5199},{"style":1058},[5200],{"type":998,"value":5201},"\"✗ Invalid: ",{"type":993,"tag":1026,"props":5203,"children":5204},{"style":1116},[5205],{"type":998,"value":1184},{"type":993,"tag":1026,"props":5207,"children":5208},{"style":1041},[5209],{"type":998,"value":5141},{"type":993,"tag":1026,"props":5211,"children":5212},{"style":1116},[5213],{"type":998,"value":1194},{"type":993,"tag":1026,"props":5215,"children":5216},{"style":1058},[5217],{"type":998,"value":1199},{"type":993,"tag":1026,"props":5219,"children":5220},{"style":1041},[5221],{"type":998,"value":1134},{"type":993,"tag":1026,"props":5223,"children":5224},{"class":1028,"line":136},[5225],{"type":993,"tag":1026,"props":5226,"children":5227},{"emptyLinePlaceholder":13},[5228],{"type":998,"value":1102},{"type":993,"tag":1026,"props":5230,"children":5231},{"class":1028,"line":146},[5232,5236,5240,5244,5249,5253,5258,5262,5266],{"type":993,"tag":1026,"props":5233,"children":5234},{"style":1116},[5235],{"type":998,"value":1119},{"type":993,"tag":1026,"props":5237,"children":5238},{"style":1041},[5239],{"type":998,"value":1124},{"type":993,"tag":1026,"props":5241,"children":5242},{"style":1047},[5243],{"type":998,"value":1174},{"type":993,"tag":1026,"props":5245,"children":5246},{"style":1058},[5247],{"type":998,"value":5248},"\"Valid emails: ",{"type":993,"tag":1026,"props":5250,"children":5251},{"style":1116},[5252],{"type":998,"value":1184},{"type":993,"tag":1026,"props":5254,"children":5255},{"style":1041},[5256],{"type":998,"value":5257},"valid_emails",{"type":993,"tag":1026,"props":5259,"children":5260},{"style":1116},[5261],{"type":998,"value":1194},{"type":993,"tag":1026,"props":5263,"children":5264},{"style":1058},[5265],{"type":998,"value":1199},{"type":993,"tag":1026,"props":5267,"children":5268},{"style":1041},[5269],{"type":998,"value":1134},{"type":993,"tag":1026,"props":5271,"children":5272},{"class":1028,"line":155},[5273,5277,5281,5285,5290,5294,5299,5303,5307],{"type":993,"tag":1026,"props":5274,"children":5275},{"style":1116},[5276],{"type":998,"value":1119},{"type":993,"tag":1026,"props":5278,"children":5279},{"style":1041},[5280],{"type":998,"value":1124},{"type":993,"tag":1026,"props":5282,"children":5283},{"style":1047},[5284],{"type":998,"value":1174},{"type":993,"tag":1026,"props":5286,"children":5287},{"style":1058},[5288],{"type":998,"value":5289},"\"Invalid count: ",{"type":993,"tag":1026,"props":5291,"children":5292},{"style":1116},[5293],{"type":998,"value":1184},{"type":993,"tag":1026,"props":5295,"children":5296},{"style":1041},[5297],{"type":998,"value":5298},"invalid_count",{"type":993,"tag":1026,"props":5300,"children":5301},{"style":1116},[5302],{"type":998,"value":1194},{"type":993,"tag":1026,"props":5304,"children":5305},{"style":1058},[5306],{"type":998,"value":1199},{"type":993,"tag":1026,"props":5308,"children":5309},{"style":1041},[5310],{"type":998,"value":1134},{"type":993,"tag":1556,"props":5312,"children":5314},{"id":5313},"accumulation-and-statistics",[5315],{"type":998,"value":5316},"Accumulation and Statistics",{"type":993,"tag":1012,"props":5318,"children":5319},{},[5320],{"type":993,"tag":1016,"props":5321,"children":5323},{"className":1018,"code":5322,"language":6,"meta":8,"style":8},"# Calculate statistics\ntest_scores = [85, 92, 78, 96, 88, 73, 91, 87]\ntotal = 0\ncount = 0\nhighest = test_scores[0]\nlowest = test_scores[0]\n\nprint(\"Calculating statistics:\")\nfor score in test_scores:\n    total += score\n    count += 1\n    if score > highest:\n        highest = score\n    if score \u003C lowest:\n        lowest = score\n\naverage = total / count\nprint(f\"Average: {average:.1f}\")\nprint(f\"Highest: {highest}\")\nprint(f\"Lowest: {lowest}\")\n",[5324],{"type":993,"tag":1022,"props":5325,"children":5326},{"__ignoreMap":8},[5327,5335,5416,5431,5447,5473,5497,5504,5524,5545,5561,5577,5597,5613,5634,5650,5657,5684,5730,5771],{"type":993,"tag":1026,"props":5328,"children":5329},{"class":1028,"line":12},[5330],{"type":993,"tag":1026,"props":5331,"children":5332},{"style":1032},[5333],{"type":998,"value":5334},"# Calculate statistics\n",{"type":993,"tag":1026,"props":5336,"children":5337},{"class":1028,"line":27},[5338,5343,5347,5351,5355,5359,5363,5367,5371,5375,5379,5383,5387,5391,5395,5399,5403,5407,5412],{"type":993,"tag":1026,"props":5339,"children":5340},{"style":1041},[5341],{"type":998,"value":5342},"test_scores ",{"type":993,"tag":1026,"props":5344,"children":5345},{"style":1047},[5346],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5348,"children":5349},{"style":1041},[5350],{"type":998,"value":1055},{"type":993,"tag":1026,"props":5352,"children":5353},{"style":1116},[5354],{"type":998,"value":1964},{"type":993,"tag":1026,"props":5356,"children":5357},{"style":1041},[5358],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5360,"children":5361},{"style":1116},[5362],{"type":998,"value":1973},{"type":993,"tag":1026,"props":5364,"children":5365},{"style":1041},[5366],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5368,"children":5369},{"style":1116},[5370],{"type":998,"value":1982},{"type":993,"tag":1026,"props":5372,"children":5373},{"style":1041},[5374],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5376,"children":5377},{"style":1116},[5378],{"type":998,"value":1991},{"type":993,"tag":1026,"props":5380,"children":5381},{"style":1041},[5382],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5384,"children":5385},{"style":1116},[5386],{"type":998,"value":2000},{"type":993,"tag":1026,"props":5388,"children":5389},{"style":1041},[5390],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5392,"children":5393},{"style":1116},[5394],{"type":998,"value":2009},{"type":993,"tag":1026,"props":5396,"children":5397},{"style":1041},[5398],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5400,"children":5401},{"style":1116},[5402],{"type":998,"value":2018},{"type":993,"tag":1026,"props":5404,"children":5405},{"style":1041},[5406],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5408,"children":5409},{"style":1116},[5410],{"type":998,"value":5411},"87",{"type":993,"tag":1026,"props":5413,"children":5414},{"style":1041},[5415],{"type":998,"value":1094},{"type":993,"tag":1026,"props":5417,"children":5418},{"class":1028,"line":36},[5419,5423,5427],{"type":993,"tag":1026,"props":5420,"children":5421},{"style":1041},[5422],{"type":998,"value":1830},{"type":993,"tag":1026,"props":5424,"children":5425},{"style":1047},[5426],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5428,"children":5429},{"style":1116},[5430],{"type":998,"value":1839},{"type":993,"tag":1026,"props":5432,"children":5433},{"class":1028,"line":45},[5434,5439,5443],{"type":993,"tag":1026,"props":5435,"children":5436},{"style":1041},[5437],{"type":998,"value":5438},"count ",{"type":993,"tag":1026,"props":5440,"children":5441},{"style":1047},[5442],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5444,"children":5445},{"style":1116},[5446],{"type":998,"value":1839},{"type":993,"tag":1026,"props":5448,"children":5449},{"class":1028,"line":54},[5450,5455,5459,5464,5469],{"type":993,"tag":1026,"props":5451,"children":5452},{"style":1041},[5453],{"type":998,"value":5454},"highest ",{"type":993,"tag":1026,"props":5456,"children":5457},{"style":1047},[5458],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5460,"children":5461},{"style":1041},[5462],{"type":998,"value":5463}," test_scores[",{"type":993,"tag":1026,"props":5465,"children":5466},{"style":1116},[5467],{"type":998,"value":5468},"0",{"type":993,"tag":1026,"props":5470,"children":5471},{"style":1041},[5472],{"type":998,"value":1094},{"type":993,"tag":1026,"props":5474,"children":5475},{"class":1028,"line":63},[5476,5481,5485,5489,5493],{"type":993,"tag":1026,"props":5477,"children":5478},{"style":1041},[5479],{"type":998,"value":5480},"lowest ",{"type":993,"tag":1026,"props":5482,"children":5483},{"style":1047},[5484],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5486,"children":5487},{"style":1041},[5488],{"type":998,"value":5463},{"type":993,"tag":1026,"props":5490,"children":5491},{"style":1116},[5492],{"type":998,"value":5468},{"type":993,"tag":1026,"props":5494,"children":5495},{"style":1041},[5496],{"type":998,"value":1094},{"type":993,"tag":1026,"props":5498,"children":5499},{"class":1028,"line":72},[5500],{"type":993,"tag":1026,"props":5501,"children":5502},{"emptyLinePlaceholder":13},[5503],{"type":998,"value":1102},{"type":993,"tag":1026,"props":5505,"children":5506},{"class":1028,"line":81},[5507,5511,5515,5520],{"type":993,"tag":1026,"props":5508,"children":5509},{"style":1116},[5510],{"type":998,"value":1119},{"type":993,"tag":1026,"props":5512,"children":5513},{"style":1041},[5514],{"type":998,"value":1124},{"type":993,"tag":1026,"props":5516,"children":5517},{"style":1058},[5518],{"type":998,"value":5519},"\"Calculating statistics:\"",{"type":993,"tag":1026,"props":5521,"children":5522},{"style":1041},[5523],{"type":998,"value":1134},{"type":993,"tag":1026,"props":5525,"children":5526},{"class":1028,"line":91},[5527,5531,5536,5540],{"type":993,"tag":1026,"props":5528,"children":5529},{"style":1047},[5530],{"type":998,"value":1142},{"type":993,"tag":1026,"props":5532,"children":5533},{"style":1041},[5534],{"type":998,"value":5535}," score ",{"type":993,"tag":1026,"props":5537,"children":5538},{"style":1047},[5539],{"type":998,"value":1152},{"type":993,"tag":1026,"props":5541,"children":5542},{"style":1041},[5543],{"type":998,"value":5544}," test_scores:\n",{"type":993,"tag":1026,"props":5546,"children":5547},{"class":1028,"line":100},[5548,5552,5556],{"type":993,"tag":1026,"props":5549,"children":5550},{"style":1041},[5551],{"type":998,"value":1868},{"type":993,"tag":1026,"props":5553,"children":5554},{"style":1047},[5555],{"type":998,"value":1873},{"type":993,"tag":1026,"props":5557,"children":5558},{"style":1041},[5559],{"type":998,"value":5560}," score\n",{"type":993,"tag":1026,"props":5562,"children":5563},{"class":1028,"line":109},[5564,5569,5573],{"type":993,"tag":1026,"props":5565,"children":5566},{"style":1041},[5567],{"type":998,"value":5568},"    count ",{"type":993,"tag":1026,"props":5570,"children":5571},{"style":1047},[5572],{"type":998,"value":1873},{"type":993,"tag":1026,"props":5574,"children":5575},{"style":1116},[5576],{"type":998,"value":5181},{"type":993,"tag":1026,"props":5578,"children":5579},{"class":1028,"line":118},[5580,5584,5588,5592],{"type":993,"tag":1026,"props":5581,"children":5582},{"style":1047},[5583],{"type":998,"value":2071},{"type":993,"tag":1026,"props":5585,"children":5586},{"style":1041},[5587],{"type":998,"value":5535},{"type":993,"tag":1026,"props":5589,"children":5590},{"style":1047},[5591],{"type":998,"value":5095},{"type":993,"tag":1026,"props":5593,"children":5594},{"style":1041},[5595],{"type":998,"value":5596}," highest:\n",{"type":993,"tag":1026,"props":5598,"children":5599},{"class":1028,"line":127},[5600,5605,5609],{"type":993,"tag":1026,"props":5601,"children":5602},{"style":1041},[5603],{"type":998,"value":5604},"        highest ",{"type":993,"tag":1026,"props":5606,"children":5607},{"style":1047},[5608],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5610,"children":5611},{"style":1041},[5612],{"type":998,"value":5560},{"type":993,"tag":1026,"props":5614,"children":5615},{"class":1028,"line":136},[5616,5620,5624,5629],{"type":993,"tag":1026,"props":5617,"children":5618},{"style":1047},[5619],{"type":998,"value":2071},{"type":993,"tag":1026,"props":5621,"children":5622},{"style":1041},[5623],{"type":998,"value":5535},{"type":993,"tag":1026,"props":5625,"children":5626},{"style":1047},[5627],{"type":998,"value":5628},"\u003C",{"type":993,"tag":1026,"props":5630,"children":5631},{"style":1041},[5632],{"type":998,"value":5633}," lowest:\n",{"type":993,"tag":1026,"props":5635,"children":5636},{"class":1028,"line":146},[5637,5642,5646],{"type":993,"tag":1026,"props":5638,"children":5639},{"style":1041},[5640],{"type":998,"value":5641},"        lowest ",{"type":993,"tag":1026,"props":5643,"children":5644},{"style":1047},[5645],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5647,"children":5648},{"style":1041},[5649],{"type":998,"value":5560},{"type":993,"tag":1026,"props":5651,"children":5652},{"class":1028,"line":155},[5653],{"type":993,"tag":1026,"props":5654,"children":5655},{"emptyLinePlaceholder":13},[5656],{"type":998,"value":1102},{"type":993,"tag":1026,"props":5658,"children":5659},{"class":1028,"line":164},[5660,5665,5669,5674,5679],{"type":993,"tag":1026,"props":5661,"children":5662},{"style":1041},[5663],{"type":998,"value":5664},"average ",{"type":993,"tag":1026,"props":5666,"children":5667},{"style":1047},[5668],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5670,"children":5671},{"style":1041},[5672],{"type":998,"value":5673}," total ",{"type":993,"tag":1026,"props":5675,"children":5676},{"style":1047},[5677],{"type":998,"value":5678},"/",{"type":993,"tag":1026,"props":5680,"children":5681},{"style":1041},[5682],{"type":998,"value":5683}," count\n",{"type":993,"tag":1026,"props":5685,"children":5686},{"class":1028,"line":173},[5687,5691,5695,5699,5704,5708,5713,5718,5722,5726],{"type":993,"tag":1026,"props":5688,"children":5689},{"style":1116},[5690],{"type":998,"value":1119},{"type":993,"tag":1026,"props":5692,"children":5693},{"style":1041},[5694],{"type":998,"value":1124},{"type":993,"tag":1026,"props":5696,"children":5697},{"style":1047},[5698],{"type":998,"value":1174},{"type":993,"tag":1026,"props":5700,"children":5701},{"style":1058},[5702],{"type":998,"value":5703},"\"Average: ",{"type":993,"tag":1026,"props":5705,"children":5706},{"style":1116},[5707],{"type":998,"value":1184},{"type":993,"tag":1026,"props":5709,"children":5710},{"style":1041},[5711],{"type":998,"value":5712},"average",{"type":993,"tag":1026,"props":5714,"children":5715},{"style":1047},[5716],{"type":998,"value":5717},":.1f",{"type":993,"tag":1026,"props":5719,"children":5720},{"style":1116},[5721],{"type":998,"value":1194},{"type":993,"tag":1026,"props":5723,"children":5724},{"style":1058},[5725],{"type":998,"value":1199},{"type":993,"tag":1026,"props":5727,"children":5728},{"style":1041},[5729],{"type":998,"value":1134},{"type":993,"tag":1026,"props":5731,"children":5732},{"class":1028,"line":182},[5733,5737,5741,5745,5750,5754,5759,5763,5767],{"type":993,"tag":1026,"props":5734,"children":5735},{"style":1116},[5736],{"type":998,"value":1119},{"type":993,"tag":1026,"props":5738,"children":5739},{"style":1041},[5740],{"type":998,"value":1124},{"type":993,"tag":1026,"props":5742,"children":5743},{"style":1047},[5744],{"type":998,"value":1174},{"type":993,"tag":1026,"props":5746,"children":5747},{"style":1058},[5748],{"type":998,"value":5749},"\"Highest: ",{"type":993,"tag":1026,"props":5751,"children":5752},{"style":1116},[5753],{"type":998,"value":1184},{"type":993,"tag":1026,"props":5755,"children":5756},{"style":1041},[5757],{"type":998,"value":5758},"highest",{"type":993,"tag":1026,"props":5760,"children":5761},{"style":1116},[5762],{"type":998,"value":1194},{"type":993,"tag":1026,"props":5764,"children":5765},{"style":1058},[5766],{"type":998,"value":1199},{"type":993,"tag":1026,"props":5768,"children":5769},{"style":1041},[5770],{"type":998,"value":1134},{"type":993,"tag":1026,"props":5772,"children":5773},{"class":1028,"line":191},[5774,5778,5782,5786,5791,5795,5800,5804,5808],{"type":993,"tag":1026,"props":5775,"children":5776},{"style":1116},[5777],{"type":998,"value":1119},{"type":993,"tag":1026,"props":5779,"children":5780},{"style":1041},[5781],{"type":998,"value":1124},{"type":993,"tag":1026,"props":5783,"children":5784},{"style":1047},[5785],{"type":998,"value":1174},{"type":993,"tag":1026,"props":5787,"children":5788},{"style":1058},[5789],{"type":998,"value":5790},"\"Lowest: ",{"type":993,"tag":1026,"props":5792,"children":5793},{"style":1116},[5794],{"type":998,"value":1184},{"type":993,"tag":1026,"props":5796,"children":5797},{"style":1041},[5798],{"type":998,"value":5799},"lowest",{"type":993,"tag":1026,"props":5801,"children":5802},{"style":1116},[5803],{"type":998,"value":1194},{"type":993,"tag":1026,"props":5805,"children":5806},{"style":1058},[5807],{"type":998,"value":1199},{"type":993,"tag":1026,"props":5809,"children":5810},{"style":1041},[5811],{"type":998,"value":1134},{"type":993,"tag":1481,"props":5813,"children":5817},{"emoji":5814,"title":5815,"type":5816},"⚡","Iteration Best Practices","warning",[5818,5826,5849,5857,5875,5883],{"type":993,"tag":1001,"props":5819,"children":5820},{},[5821],{"type":993,"tag":1491,"props":5822,"children":5823},{},[5824],{"type":998,"value":5825},"Performance Guidelines:",{"type":993,"tag":1513,"props":5827,"children":5828},{},[5829,5834,5839,5844],{"type":993,"tag":1517,"props":5830,"children":5831},{},[5832],{"type":998,"value":5833},"Use simple for loops when you only need values",{"type":993,"tag":1517,"props":5835,"children":5836},{},[5837],{"type":998,"value":5838},"Use enumerate() when you need both index and value",{"type":993,"tag":1517,"props":5840,"children":5841},{},[5842],{"type":998,"value":5843},"Avoid range(len()) unless absolutely necessary",{"type":993,"tag":1517,"props":5845,"children":5846},{},[5847],{"type":998,"value":5848},"Consider list comprehensions for simple transformations",{"type":993,"tag":1001,"props":5850,"children":5851},{},[5852],{"type":993,"tag":1491,"props":5853,"children":5854},{},[5855],{"type":998,"value":5856},"Code Readability:",{"type":993,"tag":1513,"props":5858,"children":5859},{},[5860,5865,5870],{"type":993,"tag":1517,"props":5861,"children":5862},{},[5863],{"type":998,"value":5864},"Choose descriptive variable names in loops",{"type":993,"tag":1517,"props":5866,"children":5867},{},[5868],{"type":998,"value":5869},"Keep loop bodies concise and focused",{"type":993,"tag":1517,"props":5871,"children":5872},{},[5873],{"type":998,"value":5874},"Use appropriate loop type for the task",{"type":993,"tag":1001,"props":5876,"children":5877},{},[5878],{"type":993,"tag":1491,"props":5879,"children":5880},{},[5881],{"type":998,"value":5882},"Common Pitfalls:",{"type":993,"tag":1513,"props":5884,"children":5885},{},[5886,5891,5896],{"type":993,"tag":1517,"props":5887,"children":5888},{},[5889],{"type":998,"value":5890},"Modifying list while iterating (can cause issues)",{"type":993,"tag":1517,"props":5892,"children":5893},{},[5894],{"type":998,"value":5895},"Using wrong loop type for the task",{"type":993,"tag":1517,"props":5897,"children":5898},{},[5899],{"type":998,"value":5900},"Forgetting to handle empty lists",{"type":993,"tag":1001,"props":5902,"children":5903},{},[5904,5906,5912],{"type":998,"value":5905},"Learn more about ",{"type":993,"tag":5907,"props":5908,"children":5909},"a",{"href":243},[5910],{"type":998,"value":5911},"for loops",{"type":998,"value":5913}," for additional looping techniques and patterns.",{"type":993,"tag":1469,"props":5915,"children":5917},{"id":5916},"test-your-knowledge",[5918],{"type":998,"value":5919},"Test Your Knowledge",{"type":993,"tag":1001,"props":5921,"children":5922},{},[5923],{"type":998,"value":5924},"Test what you've learned about looping through lists in Python:",{"type":993,"tag":5926,"props":5927,"children":5930},"redirect-button",{"label":5928,"url":5929},"Take Quiz","/tutorial-quiz/python/looping-through-lists",[],{"type":993,"tag":1469,"props":5932,"children":5934},{"id":5933},"whats-next",[5935],{"type":998,"value":5936},"What's Next?",{"type":993,"tag":1001,"props":5938,"children":5939},{},[5940],{"type":998,"value":5941},"Now that you know how to loop through lists effectively, you're ready to learn about list shortcuts. This includes powerful techniques, built-in functions, and Pythonic ways to work with lists more efficiently.",{"type":993,"tag":1001,"props":5943,"children":5944},{},[5945,5947,5951],{"type":998,"value":5946},"Ready to continue? Check out our lesson on ",{"type":993,"tag":5907,"props":5948,"children":5949},{"href":334},[5950],{"type":998,"value":335},{"type":998,"value":5952},".",{"type":993,"tag":5954,"props":5955,"children":5956},"style",{},[5957],{"type":998,"value":5958},"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":5960},[5961,5966,5971,5977,5982,5983],{"id":1471,"depth":27,"text":1474,"children":5962},[5963,5964,5965],{"id":1558,"depth":36,"text":1561},{"id":1740,"depth":36,"text":1743},{"id":1922,"depth":36,"text":1925},{"id":2252,"depth":27,"text":2255,"children":5967},[5968,5969,5970],{"id":2332,"depth":36,"text":2335},{"id":2532,"depth":36,"text":2535},{"id":2724,"depth":36,"text":2727},{"id":2936,"depth":27,"text":2939,"children":5972},[5973,5974,5975,5976],{"id":2947,"depth":36,"text":2950},{"id":3223,"depth":36,"text":3226},{"id":3461,"depth":36,"text":3464},{"id":4113,"depth":36,"text":4116},{"id":4626,"depth":27,"text":4629,"children":5978},[5979,5980,5981],{"id":4632,"depth":36,"text":4635},{"id":4875,"depth":36,"text":4878},{"id":5313,"depth":36,"text":5316},{"id":5916,"depth":27,"text":5919},{"id":5933,"depth":27,"text":5936},1782373737267]