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