[{"data":1,"prerenderedAt":5672},["ShallowReactive",2],{"tutorials-python":3,"category-items-python":987,"content-/python/looping-dictionaries":988},[4,22,31,40,49,58,67,76,86,95,104,113,122,131,141,150,159,168,177,186,196,205,214,223,233,242,251,260,269,279,288,297,306,315,324,333,342,351,360,369,379,388,397,406,415,424,433,442,452,461,470,479,488,497,506,515,525,534,543,552,561,570,579,588,597,606,616,625,634,643,652,661,670,680,689,698,707,716,725,734,744,753,762,771,780,789,798,807,817,826,835,844,853,863,872,881,890,900,909,918,927,936,945,953,961,970,979],{"_path":5,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":9,"description":10,"slug":11,"order":12,"isParent":13,"icon":14,"_type":15,"_id":16,"_source":17,"_file":18,"_stem":19,"_extension":20,"children":21,"expanded":13},"/python/getting-started","python",false,"","Getting Started","Begin your Python programming journey. Learn what Python is, how to set it up, and write your first programs. Perfect for complete beginners starting their coding adventure.","getting-started",1,true,"pi pi-folder","markdown","content:python:1.getting-started.md","content","python/1.getting-started.md","python/1.getting-started","md",[22,31,40,49,58,67],{"_path":23,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":24,"description":25,"slug":26,"parentId":5,"order":27,"_type":15,"_id":28,"_source":17,"_file":29,"_stem":30,"_extension":20},"/python/what-is-python","What is Python","Discover Python's fascinating history, design philosophy, and key features. Learn why Python has become one of the world's most popular programming languages and perfect for beginners.","what-is-python",2,"content:python:2.what-is-python.md","python/2.what-is-python.md","python/2.what-is-python",{"_path":32,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":33,"description":34,"slug":35,"parentId":5,"order":36,"_type":15,"_id":37,"_source":17,"_file":38,"_stem":39,"_extension":20},"/python/setup-python","Setup Python","Learn how to install Python on your computer and set up your development environment. Step-by-step guide for Windows, macOS, and Linux with beginner-friendly instructions.","setup-python",3,"content:python:3.setup-python.md","python/3.setup-python.md","python/3.setup-python",{"_path":41,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":42,"description":43,"slug":44,"parentId":5,"order":45,"_type":15,"_id":46,"_source":17,"_file":47,"_stem":48,"_extension":20},"/python/your-first-program","Your First Program","Write and run your first Python program! Learn the basics of Python programming with simple examples and step-by-step instructions for beginners.","your-first-program",4,"content:python:4.your-first-program.md","python/4.your-first-program.md","python/4.your-first-program",{"_path":50,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":51,"description":52,"slug":53,"parentId":5,"order":54,"_type":15,"_id":55,"_source":17,"_file":56,"_stem":57,"_extension":20},"/python/python-code-structure","Python Code Structure","Learn how Python code is organized and structured. Understand indentation, line breaks, and the basic rules that make Python programs work correctly.","python-code-structure",5,"content:python:5.python-code-structure.md","python/5.python-code-structure.md","python/5.python-code-structure",{"_path":59,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":60,"description":61,"slug":62,"parentId":5,"order":63,"_type":15,"_id":64,"_source":17,"_file":65,"_stem":66,"_extension":20},"/python/writing-comments","Writing Comments","Learn how to write effective comments in Python. Discover when and how to document your code to make it clear, maintainable, and easy to understand.","writing-comments",6,"content:python:6.writing-comments.md","python/6.writing-comments.md","python/6.writing-comments",{"_path":68,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":69,"description":70,"slug":71,"parentId":5,"order":72,"_type":15,"_id":73,"_source":17,"_file":74,"_stem":75,"_extension":20},"/python/working-with-variables","Working with Variables","Learn how to create, use, and manage variables in Python. Understand how to store data, change values, and follow naming conventions for clean, readable code.","working-with-variables",7,"content:python:7.working-with-variables.md","python/7.working-with-variables.md","python/7.working-with-variables",{"_path":77,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":78,"description":79,"slug":80,"order":81,"isParent":13,"icon":14,"_type":15,"_id":82,"_source":17,"_file":83,"_stem":84,"_extension":20,"children":85,"expanded":13},"/python/basic-data-types","Basic Data Types","Learn about Python's fundamental data types including numbers, text, and boolean values","basic-data-types",8,"content:python:8.basic-data-types.md","python/8.basic-data-types.md","python/8.basic-data-types",[86,95,104,113,122],{"_path":87,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":88,"description":89,"slug":90,"parentId":77,"order":91,"_type":15,"_id":92,"_source":17,"_file":93,"_stem":94,"_extension":20},"/python/understanding-data-types","Understanding Data Types","Learn how Python identifies different data types and why they're important for programming","understanding-data-types",9,"content:python:9.understanding-data-types.md","python/9.understanding-data-types.md","python/9.understanding-data-types",{"_path":96,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":97,"description":98,"slug":99,"parentId":77,"order":100,"_type":15,"_id":101,"_source":17,"_file":102,"_stem":103,"_extension":20},"/python/working-with-numbers","Working with Numbers","Learn about Python's numeric data types including integers and floats, and how to perform calculations","working-with-numbers",10,"content:python:10.working-with-numbers.md","python/10.working-with-numbers.md","python/10.working-with-numbers",{"_path":105,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":106,"description":107,"slug":108,"parentId":77,"order":109,"_type":15,"_id":110,"_source":17,"_file":111,"_stem":112,"_extension":20},"/python/text-and-strings","Text and Strings","Learn how to work with text data in Python using strings, including creation, manipulation, and formatting","text-and-strings",11,"content:python:11.text-and-strings.md","python/11.text-and-strings.md","python/11.text-and-strings",{"_path":114,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":115,"description":116,"slug":117,"parentId":77,"order":118,"_type":15,"_id":119,"_source":17,"_file":120,"_stem":121,"_extension":20},"/python/true-false-values","True/False Values","Learn about boolean values in Python, including True/False logic, comparison operations, and how to use booleans for decision-making in your programs","true-false-values",12,"content:python:12.true-false-values.md","python/12.true-false-values.md","python/12.true-false-values",{"_path":123,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":124,"description":125,"slug":126,"parentId":77,"order":127,"_type":15,"_id":128,"_source":17,"_file":129,"_stem":130,"_extension":20},"/python/converting-types","Converting Types","Learn how to convert between different Python data types including strings, numbers, and booleans","converting-types",13,"content:python:13.converting-types.md","python/13.converting-types.md","python/13.converting-types",{"_path":132,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":133,"description":134,"slug":135,"order":136,"isParent":13,"icon":14,"_type":15,"_id":137,"_source":17,"_file":138,"_stem":139,"_extension":20,"children":140,"expanded":13},"/python/python-operators","Python Operators","Learn about Python operators - the symbols and keywords that perform operations on data. Discover arithmetic, comparison, logical, and assignment operators with simple examples.","python-operators",14,"content:python:14.python-operators.md","python/14.python-operators.md","python/14.python-operators",[141,150,159,168,177],{"_path":142,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":143,"description":144,"slug":145,"parentId":132,"order":146,"_type":15,"_id":147,"_source":17,"_file":148,"_stem":149,"_extension":20},"/python/math-operations","Math Operations","Learn Python's arithmetic operators for mathematical calculations. Master addition, subtraction, multiplication, division, and more with practical examples.","math-operations",15,"content:python:15.math-operations.md","python/15.math-operations.md","python/15.math-operations",{"_path":151,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":152,"description":153,"slug":154,"parentId":132,"order":155,"_type":15,"_id":156,"_source":17,"_file":157,"_stem":158,"_extension":20},"/python/comparing-values","Comparing Values","Learn Python's comparison operators to compare values and make decisions. Master equality, inequality, and relational operators with practical examples.","comparing-values",16,"content:python:16.comparing-values.md","python/16.comparing-values.md","python/16.comparing-values",{"_path":160,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":161,"description":162,"slug":163,"parentId":132,"order":164,"_type":15,"_id":165,"_source":17,"_file":166,"_stem":167,"_extension":20},"/python/logic-operations","Logic Operations","Learn about Python's logical operators for combining conditions and creating complex boolean expressions","logic-operations",17,"content:python:17.logic-operations.md","python/17.logic-operations.md","python/17.logic-operations",{"_path":169,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":170,"description":171,"slug":172,"parentId":132,"order":173,"_type":15,"_id":174,"_source":17,"_file":175,"_stem":176,"_extension":20},"/python/value-assignment","Value Assignment","Learn about Python's assignment operators for efficiently updating variables and performing calculations","value-assignment",18,"content:python:18.value-assignment.md","python/18.value-assignment.md","python/18.value-assignment",{"_path":178,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":179,"description":180,"slug":181,"parentId":132,"order":182,"_type":15,"_id":183,"_source":17,"_file":184,"_stem":185,"_extension":20},"/python/operator-precedence","Operator Precedence","Learn how Python evaluates expressions with multiple operators and how to control evaluation order","operator-precedence",19,"content:python:19.operator-precedence.md","python/19.operator-precedence.md","python/19.operator-precedence",{"_path":187,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":188,"description":189,"slug":190,"order":191,"isParent":13,"icon":14,"_type":15,"_id":192,"_source":17,"_file":193,"_stem":194,"_extension":20,"children":195,"expanded":13},"/python/decision-making","Decision Making","Learn how to make decisions in your Python programs using conditional statements and control flow","decision-making",20,"content:python:20.decision-making.md","python/20.decision-making.md","python/20.decision-making",[196,205,214],{"_path":197,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":198,"description":199,"slug":200,"parentId":187,"order":201,"_type":15,"_id":202,"_source":17,"_file":203,"_stem":204,"_extension":20},"/python/if-statements","If Statements","Learn how to use if statements to make decisions and control program flow in Python","if-statements",21,"content:python:21.if-statements.md","python/21.if-statements.md","python/21.if-statements",{"_path":206,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":207,"description":208,"slug":209,"parentId":187,"order":210,"_type":15,"_id":211,"_source":17,"_file":212,"_stem":213,"_extension":20},"/python/multiple-conditions","Multiple Conditions","Learn how to handle multiple conditions using elif statements and complex conditional logic in Python","multiple-conditions",22,"content:python:22.multiple-conditions.md","python/22.multiple-conditions.md","python/22.multiple-conditions",{"_path":215,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":216,"description":217,"slug":218,"parentId":187,"order":219,"_type":15,"_id":220,"_source":17,"_file":221,"_stem":222,"_extension":20},"/python/pattern-matching","Pattern Matching","Learn how to use Python's match-case statements for powerful pattern matching and complex decision making","pattern-matching",23,"content:python:23.pattern-matching.md","python/23.pattern-matching.md","python/23.pattern-matching",{"_path":224,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":225,"description":226,"slug":227,"order":228,"isParent":13,"icon":14,"_type":15,"_id":229,"_source":17,"_file":230,"_stem":231,"_extension":20,"children":232,"expanded":13},"/python/repetition-and-loops","Python Loops","Learn how to use loops to repeat code efficiently and handle repetitive tasks in Python","repetition-and-loops",24,"content:python:24.repetition-and-loops.md","python/24.repetition-and-loops.md","python/24.repetition-and-loops",[233,242,251,260],{"_path":234,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":235,"description":236,"slug":237,"parentId":224,"order":238,"_type":15,"_id":239,"_source":17,"_file":240,"_stem":241,"_extension":20},"/python/while-loops","While Loops","Learn how to use while loops for condition-based repetition and create loops that run until specific conditions are met","while-loops",25,"content:python:25.while-loops.md","python/25.while-loops.md","python/25.while-loops",{"_path":243,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":244,"description":245,"slug":246,"parentId":224,"order":247,"_type":15,"_id":248,"_source":17,"_file":249,"_stem":250,"_extension":20},"/python/for-loops","For Loops","Learn how to use for loops to iterate through sequences, collections, and ranges efficiently in Python","for-loops",26,"content:python:26.for-loops.md","python/26.for-loops.md","python/26.for-loops",{"_path":252,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":253,"description":254,"slug":255,"parentId":224,"order":256,"_type":15,"_id":257,"_source":17,"_file":258,"_stem":259,"_extension":20},"/python/loop-control","Loop Control","Master advanced loop control techniques including break, continue, and else clauses for sophisticated iteration patterns","loop-control",27,"content:python:27.loop-control.md","python/27.loop-control.md","python/27.loop-control",{"_path":261,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":262,"description":263,"slug":264,"parentId":224,"order":265,"_type":15,"_id":266,"_source":17,"_file":267,"_stem":268,"_extension":20},"/python/nested-loops","Nested Loops","Learn how to use nested loops to process multi-dimensional data, create patterns, and handle complex iteration scenarios","nested-loops",28,"content:python:28.nested-loops.md","python/28.nested-loops.md","python/28.nested-loops",{"_path":270,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":271,"description":272,"slug":273,"order":274,"isParent":13,"icon":14,"_type":15,"_id":275,"_source":17,"_file":276,"_stem":277,"_extension":20,"children":278,"expanded":13},"/python/python-lists","Python Lists","Learn about Python lists, one of the most important and versatile data structures for storing and organizing collections of data","python-lists",29,"content:python:29.python-lists.md","python/29.python-lists.md","python/29.python-lists",[279,288,297,306,315,324,333,342,351,360],{"_path":280,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":281,"description":282,"slug":283,"parentId":270,"order":284,"_type":15,"_id":285,"_source":17,"_file":286,"_stem":287,"_extension":20},"/python/creating-lists","Creating Lists","Learn different methods to create and initialize Python lists, from simple literals to advanced techniques","creating-lists",30,"content:python:30.creating-lists.md","python/30.creating-lists.md","python/30.creating-lists",{"_path":289,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":290,"description":291,"slug":292,"parentId":270,"order":293,"_type":15,"_id":294,"_source":17,"_file":295,"_stem":296,"_extension":20},"/python/reading-list-data","Reading List Data","Master techniques for accessing and retrieving data from Python lists using indexing, slicing, and built-in methods","reading-list-data",31,"content:python:31.reading-list-data.md","python/31.reading-list-data.md","python/31.reading-list-data",{"_path":298,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":299,"description":300,"slug":301,"parentId":270,"order":302,"_type":15,"_id":303,"_source":17,"_file":304,"_stem":305,"_extension":20},"/python/modifying-lists","Modifying Lists","Learn how to change, update, and modify existing elements in Python lists using indexing and various methods","modifying-lists",32,"content:python:32.modifying-lists.md","python/32.modifying-lists.md","python/32.modifying-lists",{"_path":307,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":308,"description":309,"slug":310,"parentId":270,"order":311,"_type":15,"_id":312,"_source":17,"_file":313,"_stem":314,"_extension":20},"/python/adding-to-lists","Adding to Lists","Learn various methods to add elements to Python lists including append, insert, extend, and concatenation techniques","adding-to-lists",33,"content:python:33.adding-to-lists.md","python/33.adding-to-lists.md","python/33.adding-to-lists",{"_path":316,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":317,"description":318,"slug":319,"parentId":270,"order":320,"_type":15,"_id":321,"_source":17,"_file":322,"_stem":323,"_extension":20},"/python/removing-from-lists","Removing from Lists","Learn different methods to remove and delete elements from Python lists including remove, pop, del, and clear","removing-from-lists",34,"content:python:34.removing-from-lists.md","python/34.removing-from-lists.md","python/34.removing-from-lists",{"_path":325,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":326,"description":327,"slug":328,"parentId":270,"order":329,"_type":15,"_id":330,"_source":17,"_file":331,"_stem":332,"_extension":20},"/python/looping-through-lists","Looping Through Lists","Learn different ways to iterate through Python lists using for loops, while loops, enumerate, and other iteration techniques","looping-through-lists",35,"content:python:35.looping-through-lists.md","python/35.looping-through-lists.md","python/35.looping-through-lists",{"_path":334,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":335,"description":336,"slug":337,"parentId":270,"order":338,"_type":15,"_id":339,"_source":17,"_file":340,"_stem":341,"_extension":20},"/python/list-shortcuts","List Shortcuts","Learn powerful Python list shortcuts including list comprehensions, slicing tricks, and built-in functions for efficient list operations","list-shortcuts",36,"content:python:36.list-shortcuts.md","python/36.list-shortcuts.md","python/36.list-shortcuts",{"_path":343,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":344,"description":345,"slug":346,"parentId":270,"order":347,"_type":15,"_id":348,"_source":17,"_file":349,"_stem":350,"_extension":20},"/python/organizing-lists","Organizing Lists","Learn how to sort, reverse, and organize Python lists using built-in methods and custom sorting techniques","organizing-lists",37,"content:python:37.organizing-lists.md","python/37.organizing-lists.md","python/37.organizing-lists",{"_path":352,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":353,"description":354,"slug":355,"parentId":270,"order":356,"_type":15,"_id":357,"_source":17,"_file":358,"_stem":359,"_extension":20},"/python/combining-lists","Combining Lists","Learn various techniques to combine, merge, and join Python lists including concatenation, zipping, and advanced merging strategies","combining-lists",38,"content:python:38.combining-lists.md","python/38.combining-lists.md","python/38.combining-lists",{"_path":361,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":362,"description":363,"slug":364,"parentId":270,"order":365,"_type":15,"_id":366,"_source":17,"_file":367,"_stem":368,"_extension":20},"/python/essential-list-tools","Essential List Tools","Master powerful built-in functions and advanced techniques for efficient Python list manipulation and data processing","essential-list-tools",39,"content:python:39.essential-list-tools.md","python/39.essential-list-tools.md","python/39.essential-list-tools",{"_path":370,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":371,"description":372,"slug":373,"order":374,"isParent":13,"icon":14,"_type":15,"_id":375,"_source":17,"_file":376,"_stem":377,"_extension":20,"children":378,"expanded":13},"/python/python-tuples","Python Tuples","Master Python tuples - immutable sequences perfect for storing related data that shouldn't change. Learn creation, access, and manipulation techniques.","python-tuples",40,"content:python:40.python-tuples.md","python/40.python-tuples.md","python/40.python-tuples",[379,388,397,406,415,424,433],{"_path":380,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":381,"description":382,"slug":383,"parentId":370,"order":384,"_type":15,"_id":385,"_source":17,"_file":386,"_stem":387,"_extension":20},"/python/creating-tuples","Creating Tuples","Learn different ways to create Python tuples, from basic syntax to advanced techniques. Master tuple initialization and understand when to use tuples.","creating-tuples",41,"content:python:41.creating-tuples.md","python/41.creating-tuples.md","python/41.creating-tuples",{"_path":389,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":390,"description":391,"slug":392,"parentId":370,"order":393,"_type":15,"_id":394,"_source":17,"_file":395,"_stem":396,"_extension":20},"/python/reading-tuple-data","Reading Tuple Data","Master accessing tuple elements through indexing, slicing, and searching. Learn efficient patterns for reading and working with tuple data.","reading-tuple-data",42,"content:python:42.reading-tuple-data.md","python/42.reading-tuple-data.md","python/42.reading-tuple-data",{"_path":398,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":399,"description":400,"slug":401,"parentId":370,"order":402,"_type":15,"_id":403,"_source":17,"_file":404,"_stem":405,"_extension":20},"/python/changing-tuples","Changing Tuples","Understand tuple immutability and learn techniques for working with unchangeable data. Master creating modified tuple versions and handling immutable constraints.","changing-tuples",43,"content:python:43.changing-tuples.md","python/43.changing-tuples.md","python/43.changing-tuples",{"_path":407,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":408,"description":409,"slug":410,"parentId":370,"order":411,"_type":15,"_id":412,"_source":17,"_file":413,"_stem":414,"_extension":20},"/python/tuple-unpacking","Tuple Unpacking","Master tuple unpacking for elegant variable assignment, function returns, and data extraction. Learn Python's powerful unpacking syntax and patterns.","tuple-unpacking",44,"content:python:44.tuple-unpacking.md","python/44.tuple-unpacking.md","python/44.tuple-unpacking",{"_path":416,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":417,"description":418,"slug":419,"parentId":370,"order":420,"_type":15,"_id":421,"_source":17,"_file":422,"_stem":423,"_extension":20},"/python/iterating-tuples","Iterating Tuples","Master tuple iteration techniques for processing sequence data. Learn basic loops, enumerate, nested iteration, and advanced patterns for efficient data processing.","iterating-tuples",45,"content:python:45.iterating-tuples.md","python/45.iterating-tuples.md","python/45.iterating-tuples",{"_path":425,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":426,"description":427,"slug":428,"parentId":370,"order":429,"_type":15,"_id":430,"_source":17,"_file":431,"_stem":432,"_extension":20},"/python/merging-tuples","Merging Tuples","Learn techniques for combining and merging tuples to create larger data structures. Master concatenation, joining multiple tuples, and advanced merging patterns.","merging-tuples",46,"content:python:46.merging-tuples.md","python/46.merging-tuples.md","python/46.merging-tuples",{"_path":434,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":435,"description":436,"slug":437,"parentId":370,"order":438,"_type":15,"_id":439,"_source":17,"_file":440,"_stem":441,"_extension":20},"/python/tuple-operations","Tuple Operations","Master comprehensive tuple operations including built-in functions, mathematical operations, comparisons, and advanced techniques for efficient tuple manipulation.","tuple-operations",47,"content:python:47.tuple-operations.md","python/47.tuple-operations.md","python/47.tuple-operations",{"_path":443,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":444,"description":445,"slug":446,"order":447,"isParent":13,"icon":14,"_type":15,"_id":448,"_source":17,"_file":449,"_stem":450,"_extension":20,"children":451,"expanded":13},"/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,"expanded":13},"/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",[570],{"_path":571,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":572,"description":573,"slug":574,"parentId":516,"order":575,"body":989,"_type":15,"_id":576,"_source":17,"_file":577,"_stem":578,"_extension":20},{"type":990,"children":991,"toc":5651},"root",[992,1000,1006,1306,1313,1318,1568,1624,1630,1635,1900,1906,1919,2233,2239,2382,2388,2393,2718,2724,2729,2984,2990,2995,3379,3385,3392,3397,3657,3663,3668,3883,3889,3894,4077,4083,4089,4094,4332,4338,4343,4571,4617,4622,5013,5019,5593,5606,5612,5617,5624,5630,5635,5645],{"type":993,"tag":994,"props":995,"children":996},"element","h1",{"id":574},[997],{"type":998,"value":999},"text","🔄 Looping Dictionaries",{"type":993,"tag":1001,"props":1002,"children":1003},"p",{},[1004],{"type":998,"value":1005},"Iterating through dictionaries is essential for data processing, analysis, and transformation tasks. Python provides several powerful methods to loop through dictionary content, each designed for specific scenarios and performance requirements.",{"type":993,"tag":1007,"props":1008,"children":1009},"code-try",{},[1010],{"type":993,"tag":1011,"props":1012,"children":1015},"pre",{"className":1013,"code":1014,"language":6,"meta":8,"style":8},"language-python shiki shiki-themes github-light github-dark","# Basic dictionary iteration\nstudent_grades = {'Alice': 85, 'Bob': 92, 'Charlie': 78}\n\n# Loop through keys\nfor student in student_grades:\n    print(f\"{student}: {student_grades[student]}\")\n\n# Loop through key-value pairs\nfor student, grade in student_grades.items():\n    print(f\"{student} scored {grade}\")\n",[1016],{"type":993,"tag":1017,"props":1018,"children":1019},"code",{"__ignoreMap":8},[1020,1031,1110,1118,1126,1149,1213,1220,1228,1249],{"type":993,"tag":1021,"props":1022,"children":1024},"span",{"class":1023,"line":12},"line",[1025],{"type":993,"tag":1021,"props":1026,"children":1028},{"style":1027},"--shiki-default:#6A737D;--shiki-app-dark-mode:#6A737D",[1029],{"type":998,"value":1030},"# Basic dictionary iteration\n",{"type":993,"tag":1021,"props":1032,"children":1033},{"class":1023,"line":27},[1034,1040,1046,1051,1057,1062,1068,1073,1078,1082,1087,1091,1096,1100,1105],{"type":993,"tag":1021,"props":1035,"children":1037},{"style":1036},"--shiki-default:#24292E;--shiki-app-dark-mode:#E1E4E8",[1038],{"type":998,"value":1039},"student_grades ",{"type":993,"tag":1021,"props":1041,"children":1043},{"style":1042},"--shiki-default:#D73A49;--shiki-app-dark-mode:#F97583",[1044],{"type":998,"value":1045},"=",{"type":993,"tag":1021,"props":1047,"children":1048},{"style":1036},[1049],{"type":998,"value":1050}," {",{"type":993,"tag":1021,"props":1052,"children":1054},{"style":1053},"--shiki-default:#032F62;--shiki-app-dark-mode:#9ECBFF",[1055],{"type":998,"value":1056},"'Alice'",{"type":993,"tag":1021,"props":1058,"children":1059},{"style":1036},[1060],{"type":998,"value":1061},": ",{"type":993,"tag":1021,"props":1063,"children":1065},{"style":1064},"--shiki-default:#005CC5;--shiki-app-dark-mode:#79B8FF",[1066],{"type":998,"value":1067},"85",{"type":993,"tag":1021,"props":1069,"children":1070},{"style":1036},[1071],{"type":998,"value":1072},", ",{"type":993,"tag":1021,"props":1074,"children":1075},{"style":1053},[1076],{"type":998,"value":1077},"'Bob'",{"type":993,"tag":1021,"props":1079,"children":1080},{"style":1036},[1081],{"type":998,"value":1061},{"type":993,"tag":1021,"props":1083,"children":1084},{"style":1064},[1085],{"type":998,"value":1086},"92",{"type":993,"tag":1021,"props":1088,"children":1089},{"style":1036},[1090],{"type":998,"value":1072},{"type":993,"tag":1021,"props":1092,"children":1093},{"style":1053},[1094],{"type":998,"value":1095},"'Charlie'",{"type":993,"tag":1021,"props":1097,"children":1098},{"style":1036},[1099],{"type":998,"value":1061},{"type":993,"tag":1021,"props":1101,"children":1102},{"style":1064},[1103],{"type":998,"value":1104},"78",{"type":993,"tag":1021,"props":1106,"children":1107},{"style":1036},[1108],{"type":998,"value":1109},"}\n",{"type":993,"tag":1021,"props":1111,"children":1112},{"class":1023,"line":36},[1113],{"type":993,"tag":1021,"props":1114,"children":1115},{"emptyLinePlaceholder":13},[1116],{"type":998,"value":1117},"\n",{"type":993,"tag":1021,"props":1119,"children":1120},{"class":1023,"line":45},[1121],{"type":993,"tag":1021,"props":1122,"children":1123},{"style":1027},[1124],{"type":998,"value":1125},"# Loop through keys\n",{"type":993,"tag":1021,"props":1127,"children":1128},{"class":1023,"line":54},[1129,1134,1139,1144],{"type":993,"tag":1021,"props":1130,"children":1131},{"style":1042},[1132],{"type":998,"value":1133},"for",{"type":993,"tag":1021,"props":1135,"children":1136},{"style":1036},[1137],{"type":998,"value":1138}," student ",{"type":993,"tag":1021,"props":1140,"children":1141},{"style":1042},[1142],{"type":998,"value":1143},"in",{"type":993,"tag":1021,"props":1145,"children":1146},{"style":1036},[1147],{"type":998,"value":1148}," student_grades:\n",{"type":993,"tag":1021,"props":1150,"children":1151},{"class":1023,"line":63},[1152,1157,1162,1167,1172,1177,1182,1187,1191,1195,1200,1204,1208],{"type":993,"tag":1021,"props":1153,"children":1154},{"style":1064},[1155],{"type":998,"value":1156},"    print",{"type":993,"tag":1021,"props":1158,"children":1159},{"style":1036},[1160],{"type":998,"value":1161},"(",{"type":993,"tag":1021,"props":1163,"children":1164},{"style":1042},[1165],{"type":998,"value":1166},"f",{"type":993,"tag":1021,"props":1168,"children":1169},{"style":1053},[1170],{"type":998,"value":1171},"\"",{"type":993,"tag":1021,"props":1173,"children":1174},{"style":1064},[1175],{"type":998,"value":1176},"{",{"type":993,"tag":1021,"props":1178,"children":1179},{"style":1036},[1180],{"type":998,"value":1181},"student",{"type":993,"tag":1021,"props":1183,"children":1184},{"style":1064},[1185],{"type":998,"value":1186},"}",{"type":993,"tag":1021,"props":1188,"children":1189},{"style":1053},[1190],{"type":998,"value":1061},{"type":993,"tag":1021,"props":1192,"children":1193},{"style":1064},[1194],{"type":998,"value":1176},{"type":993,"tag":1021,"props":1196,"children":1197},{"style":1036},[1198],{"type":998,"value":1199},"student_grades[student]",{"type":993,"tag":1021,"props":1201,"children":1202},{"style":1064},[1203],{"type":998,"value":1186},{"type":993,"tag":1021,"props":1205,"children":1206},{"style":1053},[1207],{"type":998,"value":1171},{"type":993,"tag":1021,"props":1209,"children":1210},{"style":1036},[1211],{"type":998,"value":1212},")\n",{"type":993,"tag":1021,"props":1214,"children":1215},{"class":1023,"line":72},[1216],{"type":993,"tag":1021,"props":1217,"children":1218},{"emptyLinePlaceholder":13},[1219],{"type":998,"value":1117},{"type":993,"tag":1021,"props":1221,"children":1222},{"class":1023,"line":81},[1223],{"type":993,"tag":1021,"props":1224,"children":1225},{"style":1027},[1226],{"type":998,"value":1227},"# Loop through key-value pairs\n",{"type":993,"tag":1021,"props":1229,"children":1230},{"class":1023,"line":91},[1231,1235,1240,1244],{"type":993,"tag":1021,"props":1232,"children":1233},{"style":1042},[1234],{"type":998,"value":1133},{"type":993,"tag":1021,"props":1236,"children":1237},{"style":1036},[1238],{"type":998,"value":1239}," student, grade ",{"type":993,"tag":1021,"props":1241,"children":1242},{"style":1042},[1243],{"type":998,"value":1143},{"type":993,"tag":1021,"props":1245,"children":1246},{"style":1036},[1247],{"type":998,"value":1248}," student_grades.items():\n",{"type":993,"tag":1021,"props":1250,"children":1251},{"class":1023,"line":100},[1252,1256,1260,1264,1268,1272,1276,1280,1285,1289,1294,1298,1302],{"type":993,"tag":1021,"props":1253,"children":1254},{"style":1064},[1255],{"type":998,"value":1156},{"type":993,"tag":1021,"props":1257,"children":1258},{"style":1036},[1259],{"type":998,"value":1161},{"type":993,"tag":1021,"props":1261,"children":1262},{"style":1042},[1263],{"type":998,"value":1166},{"type":993,"tag":1021,"props":1265,"children":1266},{"style":1053},[1267],{"type":998,"value":1171},{"type":993,"tag":1021,"props":1269,"children":1270},{"style":1064},[1271],{"type":998,"value":1176},{"type":993,"tag":1021,"props":1273,"children":1274},{"style":1036},[1275],{"type":998,"value":1181},{"type":993,"tag":1021,"props":1277,"children":1278},{"style":1064},[1279],{"type":998,"value":1186},{"type":993,"tag":1021,"props":1281,"children":1282},{"style":1053},[1283],{"type":998,"value":1284}," scored ",{"type":993,"tag":1021,"props":1286,"children":1287},{"style":1064},[1288],{"type":998,"value":1176},{"type":993,"tag":1021,"props":1290,"children":1291},{"style":1036},[1292],{"type":998,"value":1293},"grade",{"type":993,"tag":1021,"props":1295,"children":1296},{"style":1064},[1297],{"type":998,"value":1186},{"type":993,"tag":1021,"props":1299,"children":1300},{"style":1053},[1301],{"type":998,"value":1171},{"type":993,"tag":1021,"props":1303,"children":1304},{"style":1036},[1305],{"type":998,"value":1212},{"type":993,"tag":1307,"props":1308,"children":1310},"h2",{"id":1309},"iterating-through-keys",[1311],{"type":998,"value":1312},"🎯 Iterating Through Keys",{"type":993,"tag":1001,"props":1314,"children":1315},{},[1316],{"type":998,"value":1317},"Looping through dictionary keys provides access to identifiers while allowing value lookup when needed. The default iteration behavior gives you keys directly, making this the most common iteration pattern.",{"type":993,"tag":1007,"props":1319,"children":1320},{},[1321],{"type":993,"tag":1011,"props":1322,"children":1324},{"className":1013,"code":1323,"language":6,"meta":8,"style":8},"inventory = {'apples': 50, 'bananas': 30, 'oranges': 25}\n\n# Default iteration through keys\nfor item in inventory:\n    print(f\"Item: {item}, Stock: {inventory[item]}\")\n\n# Explicit keys() method\nfor item in inventory.keys():\n    print(f\"Available: {item}\")\n",[1325],{"type":993,"tag":1017,"props":1326,"children":1327},{"__ignoreMap":8},[1328,1398,1405,1413,1434,1493,1500,1508,1528],{"type":993,"tag":1021,"props":1329,"children":1330},{"class":1023,"line":12},[1331,1336,1340,1344,1349,1353,1358,1362,1367,1371,1376,1380,1385,1389,1394],{"type":993,"tag":1021,"props":1332,"children":1333},{"style":1036},[1334],{"type":998,"value":1335},"inventory ",{"type":993,"tag":1021,"props":1337,"children":1338},{"style":1042},[1339],{"type":998,"value":1045},{"type":993,"tag":1021,"props":1341,"children":1342},{"style":1036},[1343],{"type":998,"value":1050},{"type":993,"tag":1021,"props":1345,"children":1346},{"style":1053},[1347],{"type":998,"value":1348},"'apples'",{"type":993,"tag":1021,"props":1350,"children":1351},{"style":1036},[1352],{"type":998,"value":1061},{"type":993,"tag":1021,"props":1354,"children":1355},{"style":1064},[1356],{"type":998,"value":1357},"50",{"type":993,"tag":1021,"props":1359,"children":1360},{"style":1036},[1361],{"type":998,"value":1072},{"type":993,"tag":1021,"props":1363,"children":1364},{"style":1053},[1365],{"type":998,"value":1366},"'bananas'",{"type":993,"tag":1021,"props":1368,"children":1369},{"style":1036},[1370],{"type":998,"value":1061},{"type":993,"tag":1021,"props":1372,"children":1373},{"style":1064},[1374],{"type":998,"value":1375},"30",{"type":993,"tag":1021,"props":1377,"children":1378},{"style":1036},[1379],{"type":998,"value":1072},{"type":993,"tag":1021,"props":1381,"children":1382},{"style":1053},[1383],{"type":998,"value":1384},"'oranges'",{"type":993,"tag":1021,"props":1386,"children":1387},{"style":1036},[1388],{"type":998,"value":1061},{"type":993,"tag":1021,"props":1390,"children":1391},{"style":1064},[1392],{"type":998,"value":1393},"25",{"type":993,"tag":1021,"props":1395,"children":1396},{"style":1036},[1397],{"type":998,"value":1109},{"type":993,"tag":1021,"props":1399,"children":1400},{"class":1023,"line":27},[1401],{"type":993,"tag":1021,"props":1402,"children":1403},{"emptyLinePlaceholder":13},[1404],{"type":998,"value":1117},{"type":993,"tag":1021,"props":1406,"children":1407},{"class":1023,"line":36},[1408],{"type":993,"tag":1021,"props":1409,"children":1410},{"style":1027},[1411],{"type":998,"value":1412},"# Default iteration through keys\n",{"type":993,"tag":1021,"props":1414,"children":1415},{"class":1023,"line":45},[1416,1420,1425,1429],{"type":993,"tag":1021,"props":1417,"children":1418},{"style":1042},[1419],{"type":998,"value":1133},{"type":993,"tag":1021,"props":1421,"children":1422},{"style":1036},[1423],{"type":998,"value":1424}," item ",{"type":993,"tag":1021,"props":1426,"children":1427},{"style":1042},[1428],{"type":998,"value":1143},{"type":993,"tag":1021,"props":1430,"children":1431},{"style":1036},[1432],{"type":998,"value":1433}," inventory:\n",{"type":993,"tag":1021,"props":1435,"children":1436},{"class":1023,"line":54},[1437,1441,1445,1449,1454,1458,1463,1467,1472,1476,1481,1485,1489],{"type":993,"tag":1021,"props":1438,"children":1439},{"style":1064},[1440],{"type":998,"value":1156},{"type":993,"tag":1021,"props":1442,"children":1443},{"style":1036},[1444],{"type":998,"value":1161},{"type":993,"tag":1021,"props":1446,"children":1447},{"style":1042},[1448],{"type":998,"value":1166},{"type":993,"tag":1021,"props":1450,"children":1451},{"style":1053},[1452],{"type":998,"value":1453},"\"Item: ",{"type":993,"tag":1021,"props":1455,"children":1456},{"style":1064},[1457],{"type":998,"value":1176},{"type":993,"tag":1021,"props":1459,"children":1460},{"style":1036},[1461],{"type":998,"value":1462},"item",{"type":993,"tag":1021,"props":1464,"children":1465},{"style":1064},[1466],{"type":998,"value":1186},{"type":993,"tag":1021,"props":1468,"children":1469},{"style":1053},[1470],{"type":998,"value":1471},", Stock: ",{"type":993,"tag":1021,"props":1473,"children":1474},{"style":1064},[1475],{"type":998,"value":1176},{"type":993,"tag":1021,"props":1477,"children":1478},{"style":1036},[1479],{"type":998,"value":1480},"inventory[item]",{"type":993,"tag":1021,"props":1482,"children":1483},{"style":1064},[1484],{"type":998,"value":1186},{"type":993,"tag":1021,"props":1486,"children":1487},{"style":1053},[1488],{"type":998,"value":1171},{"type":993,"tag":1021,"props":1490,"children":1491},{"style":1036},[1492],{"type":998,"value":1212},{"type":993,"tag":1021,"props":1494,"children":1495},{"class":1023,"line":63},[1496],{"type":993,"tag":1021,"props":1497,"children":1498},{"emptyLinePlaceholder":13},[1499],{"type":998,"value":1117},{"type":993,"tag":1021,"props":1501,"children":1502},{"class":1023,"line":72},[1503],{"type":993,"tag":1021,"props":1504,"children":1505},{"style":1027},[1506],{"type":998,"value":1507},"# Explicit keys() method\n",{"type":993,"tag":1021,"props":1509,"children":1510},{"class":1023,"line":81},[1511,1515,1519,1523],{"type":993,"tag":1021,"props":1512,"children":1513},{"style":1042},[1514],{"type":998,"value":1133},{"type":993,"tag":1021,"props":1516,"children":1517},{"style":1036},[1518],{"type":998,"value":1424},{"type":993,"tag":1021,"props":1520,"children":1521},{"style":1042},[1522],{"type":998,"value":1143},{"type":993,"tag":1021,"props":1524,"children":1525},{"style":1036},[1526],{"type":998,"value":1527}," inventory.keys():\n",{"type":993,"tag":1021,"props":1529,"children":1530},{"class":1023,"line":91},[1531,1535,1539,1543,1548,1552,1556,1560,1564],{"type":993,"tag":1021,"props":1532,"children":1533},{"style":1064},[1534],{"type":998,"value":1156},{"type":993,"tag":1021,"props":1536,"children":1537},{"style":1036},[1538],{"type":998,"value":1161},{"type":993,"tag":1021,"props":1540,"children":1541},{"style":1042},[1542],{"type":998,"value":1166},{"type":993,"tag":1021,"props":1544,"children":1545},{"style":1053},[1546],{"type":998,"value":1547},"\"Available: ",{"type":993,"tag":1021,"props":1549,"children":1550},{"style":1064},[1551],{"type":998,"value":1176},{"type":993,"tag":1021,"props":1553,"children":1554},{"style":1036},[1555],{"type":998,"value":1462},{"type":993,"tag":1021,"props":1557,"children":1558},{"style":1064},[1559],{"type":998,"value":1186},{"type":993,"tag":1021,"props":1561,"children":1562},{"style":1053},[1563],{"type":998,"value":1171},{"type":993,"tag":1021,"props":1565,"children":1566},{"style":1036},[1567],{"type":998,"value":1212},{"type":993,"tag":1569,"props":1570,"children":1574},"info-box",{"emoji":1571,"title":1572,"type":1573},"🔑","Key Iteration Benefits","info",[1575,1586,1596,1614],{"type":993,"tag":1001,"props":1576,"children":1577},{},[1578,1584],{"type":993,"tag":1579,"props":1580,"children":1581},"strong",{},[1582],{"type":998,"value":1583},"Memory Efficient:",{"type":998,"value":1585}," Keys iteration uses minimal memory for large dictionaries.",{"type":993,"tag":1001,"props":1587,"children":1588},{},[1589,1594],{"type":993,"tag":1579,"props":1590,"children":1591},{},[1592],{"type":998,"value":1593},"Flexible Access:",{"type":998,"value":1595}," Allows conditional value access based on key properties.",{"type":993,"tag":1001,"props":1597,"children":1598},{},[1599,1604,1606,1612],{"type":993,"tag":1579,"props":1600,"children":1601},{},[1602],{"type":998,"value":1603},"Default Behavior:",{"type":998,"value":1605}," Simplest syntax using just ",{"type":993,"tag":1017,"props":1607,"children":1609},{"className":1608},[],[1610],{"type":998,"value":1611},"for key in dict",{"type":998,"value":1613},".",{"type":993,"tag":1001,"props":1615,"children":1616},{},[1617,1622],{"type":993,"tag":1579,"props":1618,"children":1619},{},[1620],{"type":998,"value":1621},"Dynamic Filtering:",{"type":998,"value":1623}," Easy to skip certain keys based on conditions.",{"type":993,"tag":1307,"props":1625,"children":1627},{"id":1626},"iterating-through-values",[1628],{"type":998,"value":1629},"⚡ Iterating Through Values",{"type":993,"tag":1001,"props":1631,"children":1632},{},[1633],{"type":998,"value":1634},"Value-focused iteration enables direct data processing without concern for key information. This approach works perfectly for mathematical operations, data analysis, and content manipulation.",{"type":993,"tag":1007,"props":1636,"children":1637},{},[1638],{"type":993,"tag":1011,"props":1639,"children":1641},{"className":1013,"code":1640,"language":6,"meta":8,"style":8},"test_scores = {'math': 85, 'science': 92, 'english': 78}\n\n# Calculate average score\ntotal = sum(test_scores.values())\naverage = total / len(test_scores)\nprint(f\"Average score: {average}\")\n\n# Find highest score\nhighest = max(test_scores.values())\nprint(f\"Highest score: {highest}\")\n",[1642],{"type":993,"tag":1017,"props":1643,"children":1644},{"__ignoreMap":8},[1645,1712,1719,1727,1749,1781,1823,1830,1838,1859],{"type":993,"tag":1021,"props":1646,"children":1647},{"class":1023,"line":12},[1648,1653,1657,1661,1666,1670,1674,1678,1683,1687,1691,1695,1700,1704,1708],{"type":993,"tag":1021,"props":1649,"children":1650},{"style":1036},[1651],{"type":998,"value":1652},"test_scores ",{"type":993,"tag":1021,"props":1654,"children":1655},{"style":1042},[1656],{"type":998,"value":1045},{"type":993,"tag":1021,"props":1658,"children":1659},{"style":1036},[1660],{"type":998,"value":1050},{"type":993,"tag":1021,"props":1662,"children":1663},{"style":1053},[1664],{"type":998,"value":1665},"'math'",{"type":993,"tag":1021,"props":1667,"children":1668},{"style":1036},[1669],{"type":998,"value":1061},{"type":993,"tag":1021,"props":1671,"children":1672},{"style":1064},[1673],{"type":998,"value":1067},{"type":993,"tag":1021,"props":1675,"children":1676},{"style":1036},[1677],{"type":998,"value":1072},{"type":993,"tag":1021,"props":1679,"children":1680},{"style":1053},[1681],{"type":998,"value":1682},"'science'",{"type":993,"tag":1021,"props":1684,"children":1685},{"style":1036},[1686],{"type":998,"value":1061},{"type":993,"tag":1021,"props":1688,"children":1689},{"style":1064},[1690],{"type":998,"value":1086},{"type":993,"tag":1021,"props":1692,"children":1693},{"style":1036},[1694],{"type":998,"value":1072},{"type":993,"tag":1021,"props":1696,"children":1697},{"style":1053},[1698],{"type":998,"value":1699},"'english'",{"type":993,"tag":1021,"props":1701,"children":1702},{"style":1036},[1703],{"type":998,"value":1061},{"type":993,"tag":1021,"props":1705,"children":1706},{"style":1064},[1707],{"type":998,"value":1104},{"type":993,"tag":1021,"props":1709,"children":1710},{"style":1036},[1711],{"type":998,"value":1109},{"type":993,"tag":1021,"props":1713,"children":1714},{"class":1023,"line":27},[1715],{"type":993,"tag":1021,"props":1716,"children":1717},{"emptyLinePlaceholder":13},[1718],{"type":998,"value":1117},{"type":993,"tag":1021,"props":1720,"children":1721},{"class":1023,"line":36},[1722],{"type":993,"tag":1021,"props":1723,"children":1724},{"style":1027},[1725],{"type":998,"value":1726},"# Calculate average score\n",{"type":993,"tag":1021,"props":1728,"children":1729},{"class":1023,"line":45},[1730,1735,1739,1744],{"type":993,"tag":1021,"props":1731,"children":1732},{"style":1036},[1733],{"type":998,"value":1734},"total ",{"type":993,"tag":1021,"props":1736,"children":1737},{"style":1042},[1738],{"type":998,"value":1045},{"type":993,"tag":1021,"props":1740,"children":1741},{"style":1064},[1742],{"type":998,"value":1743}," sum",{"type":993,"tag":1021,"props":1745,"children":1746},{"style":1036},[1747],{"type":998,"value":1748},"(test_scores.values())\n",{"type":993,"tag":1021,"props":1750,"children":1751},{"class":1023,"line":54},[1752,1757,1761,1766,1771,1776],{"type":993,"tag":1021,"props":1753,"children":1754},{"style":1036},[1755],{"type":998,"value":1756},"average ",{"type":993,"tag":1021,"props":1758,"children":1759},{"style":1042},[1760],{"type":998,"value":1045},{"type":993,"tag":1021,"props":1762,"children":1763},{"style":1036},[1764],{"type":998,"value":1765}," total ",{"type":993,"tag":1021,"props":1767,"children":1768},{"style":1042},[1769],{"type":998,"value":1770},"/",{"type":993,"tag":1021,"props":1772,"children":1773},{"style":1064},[1774],{"type":998,"value":1775}," len",{"type":993,"tag":1021,"props":1777,"children":1778},{"style":1036},[1779],{"type":998,"value":1780},"(test_scores)\n",{"type":993,"tag":1021,"props":1782,"children":1783},{"class":1023,"line":63},[1784,1789,1793,1797,1802,1806,1811,1815,1819],{"type":993,"tag":1021,"props":1785,"children":1786},{"style":1064},[1787],{"type":998,"value":1788},"print",{"type":993,"tag":1021,"props":1790,"children":1791},{"style":1036},[1792],{"type":998,"value":1161},{"type":993,"tag":1021,"props":1794,"children":1795},{"style":1042},[1796],{"type":998,"value":1166},{"type":993,"tag":1021,"props":1798,"children":1799},{"style":1053},[1800],{"type":998,"value":1801},"\"Average score: ",{"type":993,"tag":1021,"props":1803,"children":1804},{"style":1064},[1805],{"type":998,"value":1176},{"type":993,"tag":1021,"props":1807,"children":1808},{"style":1036},[1809],{"type":998,"value":1810},"average",{"type":993,"tag":1021,"props":1812,"children":1813},{"style":1064},[1814],{"type":998,"value":1186},{"type":993,"tag":1021,"props":1816,"children":1817},{"style":1053},[1818],{"type":998,"value":1171},{"type":993,"tag":1021,"props":1820,"children":1821},{"style":1036},[1822],{"type":998,"value":1212},{"type":993,"tag":1021,"props":1824,"children":1825},{"class":1023,"line":72},[1826],{"type":993,"tag":1021,"props":1827,"children":1828},{"emptyLinePlaceholder":13},[1829],{"type":998,"value":1117},{"type":993,"tag":1021,"props":1831,"children":1832},{"class":1023,"line":81},[1833],{"type":993,"tag":1021,"props":1834,"children":1835},{"style":1027},[1836],{"type":998,"value":1837},"# Find highest score\n",{"type":993,"tag":1021,"props":1839,"children":1840},{"class":1023,"line":91},[1841,1846,1850,1855],{"type":993,"tag":1021,"props":1842,"children":1843},{"style":1036},[1844],{"type":998,"value":1845},"highest ",{"type":993,"tag":1021,"props":1847,"children":1848},{"style":1042},[1849],{"type":998,"value":1045},{"type":993,"tag":1021,"props":1851,"children":1852},{"style":1064},[1853],{"type":998,"value":1854}," max",{"type":993,"tag":1021,"props":1856,"children":1857},{"style":1036},[1858],{"type":998,"value":1748},{"type":993,"tag":1021,"props":1860,"children":1861},{"class":1023,"line":100},[1862,1866,1870,1874,1879,1883,1888,1892,1896],{"type":993,"tag":1021,"props":1863,"children":1864},{"style":1064},[1865],{"type":998,"value":1788},{"type":993,"tag":1021,"props":1867,"children":1868},{"style":1036},[1869],{"type":998,"value":1161},{"type":993,"tag":1021,"props":1871,"children":1872},{"style":1042},[1873],{"type":998,"value":1166},{"type":993,"tag":1021,"props":1875,"children":1876},{"style":1053},[1877],{"type":998,"value":1878},"\"Highest score: ",{"type":993,"tag":1021,"props":1880,"children":1881},{"style":1064},[1882],{"type":998,"value":1176},{"type":993,"tag":1021,"props":1884,"children":1885},{"style":1036},[1886],{"type":998,"value":1887},"highest",{"type":993,"tag":1021,"props":1889,"children":1890},{"style":1064},[1891],{"type":998,"value":1186},{"type":993,"tag":1021,"props":1893,"children":1894},{"style":1053},[1895],{"type":998,"value":1171},{"type":993,"tag":1021,"props":1897,"children":1898},{"style":1036},[1899],{"type":998,"value":1212},{"type":993,"tag":1307,"props":1901,"children":1903},{"id":1902},"iterating-through-key-value-pairs",[1904],{"type":998,"value":1905},"🚀 Iterating Through Key-Value Pairs",{"type":993,"tag":1001,"props":1907,"children":1908},{},[1909,1911,1917],{"type":998,"value":1910},"The ",{"type":993,"tag":1017,"props":1912,"children":1914},{"className":1913},[],[1915],{"type":998,"value":1916},"items()",{"type":998,"value":1918}," method provides simultaneous access to both keys and values, enabling comprehensive data processing in a single loop. Here we process complete information without additional lookups.",{"type":993,"tag":1007,"props":1920,"children":1921},{},[1922],{"type":993,"tag":1011,"props":1923,"children":1925},{"className":1013,"code":1924,"language":6,"meta":8,"style":8},"user_settings = {'theme': 'dark', 'font_size': 14, 'notifications': True}\n\n# Process all settings\nfor setting, value in user_settings.items():\n    print(f\"Setting {setting} is set to {value}\")\n\n# Conditional processing\nfor setting, value in user_settings.items():\n    if isinstance(value, bool):\n        print(f\"{setting}: {'enabled' if value else 'disabled'}\")\n",[1926],{"type":993,"tag":1017,"props":1927,"children":1928},{"__ignoreMap":8},[1929,1999,2006,2014,2035,2094,2101,2109,2128,2156],{"type":993,"tag":1021,"props":1930,"children":1931},{"class":1023,"line":12},[1932,1937,1941,1945,1950,1954,1959,1963,1968,1972,1977,1981,1986,1990,1995],{"type":993,"tag":1021,"props":1933,"children":1934},{"style":1036},[1935],{"type":998,"value":1936},"user_settings ",{"type":993,"tag":1021,"props":1938,"children":1939},{"style":1042},[1940],{"type":998,"value":1045},{"type":993,"tag":1021,"props":1942,"children":1943},{"style":1036},[1944],{"type":998,"value":1050},{"type":993,"tag":1021,"props":1946,"children":1947},{"style":1053},[1948],{"type":998,"value":1949},"'theme'",{"type":993,"tag":1021,"props":1951,"children":1952},{"style":1036},[1953],{"type":998,"value":1061},{"type":993,"tag":1021,"props":1955,"children":1956},{"style":1053},[1957],{"type":998,"value":1958},"'dark'",{"type":993,"tag":1021,"props":1960,"children":1961},{"style":1036},[1962],{"type":998,"value":1072},{"type":993,"tag":1021,"props":1964,"children":1965},{"style":1053},[1966],{"type":998,"value":1967},"'font_size'",{"type":993,"tag":1021,"props":1969,"children":1970},{"style":1036},[1971],{"type":998,"value":1061},{"type":993,"tag":1021,"props":1973,"children":1974},{"style":1064},[1975],{"type":998,"value":1976},"14",{"type":993,"tag":1021,"props":1978,"children":1979},{"style":1036},[1980],{"type":998,"value":1072},{"type":993,"tag":1021,"props":1982,"children":1983},{"style":1053},[1984],{"type":998,"value":1985},"'notifications'",{"type":993,"tag":1021,"props":1987,"children":1988},{"style":1036},[1989],{"type":998,"value":1061},{"type":993,"tag":1021,"props":1991,"children":1992},{"style":1064},[1993],{"type":998,"value":1994},"True",{"type":993,"tag":1021,"props":1996,"children":1997},{"style":1036},[1998],{"type":998,"value":1109},{"type":993,"tag":1021,"props":2000,"children":2001},{"class":1023,"line":27},[2002],{"type":993,"tag":1021,"props":2003,"children":2004},{"emptyLinePlaceholder":13},[2005],{"type":998,"value":1117},{"type":993,"tag":1021,"props":2007,"children":2008},{"class":1023,"line":36},[2009],{"type":993,"tag":1021,"props":2010,"children":2011},{"style":1027},[2012],{"type":998,"value":2013},"# Process all settings\n",{"type":993,"tag":1021,"props":2015,"children":2016},{"class":1023,"line":45},[2017,2021,2026,2030],{"type":993,"tag":1021,"props":2018,"children":2019},{"style":1042},[2020],{"type":998,"value":1133},{"type":993,"tag":1021,"props":2022,"children":2023},{"style":1036},[2024],{"type":998,"value":2025}," setting, value ",{"type":993,"tag":1021,"props":2027,"children":2028},{"style":1042},[2029],{"type":998,"value":1143},{"type":993,"tag":1021,"props":2031,"children":2032},{"style":1036},[2033],{"type":998,"value":2034}," user_settings.items():\n",{"type":993,"tag":1021,"props":2036,"children":2037},{"class":1023,"line":54},[2038,2042,2046,2050,2055,2059,2064,2068,2073,2077,2082,2086,2090],{"type":993,"tag":1021,"props":2039,"children":2040},{"style":1064},[2041],{"type":998,"value":1156},{"type":993,"tag":1021,"props":2043,"children":2044},{"style":1036},[2045],{"type":998,"value":1161},{"type":993,"tag":1021,"props":2047,"children":2048},{"style":1042},[2049],{"type":998,"value":1166},{"type":993,"tag":1021,"props":2051,"children":2052},{"style":1053},[2053],{"type":998,"value":2054},"\"Setting ",{"type":993,"tag":1021,"props":2056,"children":2057},{"style":1064},[2058],{"type":998,"value":1176},{"type":993,"tag":1021,"props":2060,"children":2061},{"style":1036},[2062],{"type":998,"value":2063},"setting",{"type":993,"tag":1021,"props":2065,"children":2066},{"style":1064},[2067],{"type":998,"value":1186},{"type":993,"tag":1021,"props":2069,"children":2070},{"style":1053},[2071],{"type":998,"value":2072}," is set to ",{"type":993,"tag":1021,"props":2074,"children":2075},{"style":1064},[2076],{"type":998,"value":1176},{"type":993,"tag":1021,"props":2078,"children":2079},{"style":1036},[2080],{"type":998,"value":2081},"value",{"type":993,"tag":1021,"props":2083,"children":2084},{"style":1064},[2085],{"type":998,"value":1186},{"type":993,"tag":1021,"props":2087,"children":2088},{"style":1053},[2089],{"type":998,"value":1171},{"type":993,"tag":1021,"props":2091,"children":2092},{"style":1036},[2093],{"type":998,"value":1212},{"type":993,"tag":1021,"props":2095,"children":2096},{"class":1023,"line":63},[2097],{"type":993,"tag":1021,"props":2098,"children":2099},{"emptyLinePlaceholder":13},[2100],{"type":998,"value":1117},{"type":993,"tag":1021,"props":2102,"children":2103},{"class":1023,"line":72},[2104],{"type":993,"tag":1021,"props":2105,"children":2106},{"style":1027},[2107],{"type":998,"value":2108},"# Conditional processing\n",{"type":993,"tag":1021,"props":2110,"children":2111},{"class":1023,"line":81},[2112,2116,2120,2124],{"type":993,"tag":1021,"props":2113,"children":2114},{"style":1042},[2115],{"type":998,"value":1133},{"type":993,"tag":1021,"props":2117,"children":2118},{"style":1036},[2119],{"type":998,"value":2025},{"type":993,"tag":1021,"props":2121,"children":2122},{"style":1042},[2123],{"type":998,"value":1143},{"type":993,"tag":1021,"props":2125,"children":2126},{"style":1036},[2127],{"type":998,"value":2034},{"type":993,"tag":1021,"props":2129,"children":2130},{"class":1023,"line":91},[2131,2136,2141,2146,2151],{"type":993,"tag":1021,"props":2132,"children":2133},{"style":1042},[2134],{"type":998,"value":2135},"    if",{"type":993,"tag":1021,"props":2137,"children":2138},{"style":1064},[2139],{"type":998,"value":2140}," isinstance",{"type":993,"tag":1021,"props":2142,"children":2143},{"style":1036},[2144],{"type":998,"value":2145},"(value, ",{"type":993,"tag":1021,"props":2147,"children":2148},{"style":1064},[2149],{"type":998,"value":2150},"bool",{"type":993,"tag":1021,"props":2152,"children":2153},{"style":1036},[2154],{"type":998,"value":2155},"):\n",{"type":993,"tag":1021,"props":2157,"children":2158},{"class":1023,"line":100},[2159,2164,2168,2172,2176,2180,2184,2188,2192,2196,2201,2206,2211,2216,2221,2225,2229],{"type":993,"tag":1021,"props":2160,"children":2161},{"style":1064},[2162],{"type":998,"value":2163},"        print",{"type":993,"tag":1021,"props":2165,"children":2166},{"style":1036},[2167],{"type":998,"value":1161},{"type":993,"tag":1021,"props":2169,"children":2170},{"style":1042},[2171],{"type":998,"value":1166},{"type":993,"tag":1021,"props":2173,"children":2174},{"style":1053},[2175],{"type":998,"value":1171},{"type":993,"tag":1021,"props":2177,"children":2178},{"style":1064},[2179],{"type":998,"value":1176},{"type":993,"tag":1021,"props":2181,"children":2182},{"style":1036},[2183],{"type":998,"value":2063},{"type":993,"tag":1021,"props":2185,"children":2186},{"style":1064},[2187],{"type":998,"value":1186},{"type":993,"tag":1021,"props":2189,"children":2190},{"style":1053},[2191],{"type":998,"value":1061},{"type":993,"tag":1021,"props":2193,"children":2194},{"style":1064},[2195],{"type":998,"value":1176},{"type":993,"tag":1021,"props":2197,"children":2198},{"style":1053},[2199],{"type":998,"value":2200},"'enabled'",{"type":993,"tag":1021,"props":2202,"children":2203},{"style":1042},[2204],{"type":998,"value":2205}," if",{"type":993,"tag":1021,"props":2207,"children":2208},{"style":1036},[2209],{"type":998,"value":2210}," value ",{"type":993,"tag":1021,"props":2212,"children":2213},{"style":1042},[2214],{"type":998,"value":2215},"else",{"type":993,"tag":1021,"props":2217,"children":2218},{"style":1053},[2219],{"type":998,"value":2220}," 'disabled'",{"type":993,"tag":1021,"props":2222,"children":2223},{"style":1064},[2224],{"type":998,"value":1186},{"type":993,"tag":1021,"props":2226,"children":2227},{"style":1053},[2228],{"type":998,"value":1171},{"type":993,"tag":1021,"props":2230,"children":2231},{"style":1036},[2232],{"type":998,"value":1212},{"type":993,"tag":1307,"props":2234,"children":2236},{"id":2235},"dictionary-iteration-methods-comparison",[2237],{"type":998,"value":2238},"📊 Dictionary Iteration Methods Comparison",{"type":993,"tag":2240,"props":2241,"children":2242},"table",{},[2243,2272],{"type":993,"tag":2244,"props":2245,"children":2246},"thead",{},[2247],{"type":993,"tag":2248,"props":2249,"children":2250},"tr",{},[2251,2257,2262,2267],{"type":993,"tag":2252,"props":2253,"children":2254},"th",{},[2255],{"type":998,"value":2256},"Method",{"type":993,"tag":2252,"props":2258,"children":2259},{},[2260],{"type":998,"value":2261},"Returns",{"type":993,"tag":2252,"props":2263,"children":2264},{},[2265],{"type":998,"value":2266},"Memory Usage",{"type":993,"tag":2252,"props":2268,"children":2269},{},[2270],{"type":998,"value":2271},"Use Case",{"type":993,"tag":2273,"props":2274,"children":2275},"tbody",{},[2276,2303,2329,2355],{"type":993,"tag":2248,"props":2277,"children":2278},{},[2279,2288,2293,2298],{"type":993,"tag":2280,"props":2281,"children":2282},"td",{},[2283],{"type":993,"tag":1017,"props":2284,"children":2286},{"className":2285},[],[2287],{"type":998,"value":1611},{"type":993,"tag":2280,"props":2289,"children":2290},{},[2291],{"type":998,"value":2292},"Keys only",{"type":993,"tag":2280,"props":2294,"children":2295},{},[2296],{"type":998,"value":2297},"Low",{"type":993,"tag":2280,"props":2299,"children":2300},{},[2301],{"type":998,"value":2302},"Key-based processing",{"type":993,"tag":2248,"props":2304,"children":2305},{},[2306,2315,2320,2324],{"type":993,"tag":2280,"props":2307,"children":2308},{},[2309],{"type":993,"tag":1017,"props":2310,"children":2312},{"className":2311},[],[2313],{"type":998,"value":2314},"dict.keys()",{"type":993,"tag":2280,"props":2316,"children":2317},{},[2318],{"type":998,"value":2319},"Keys view",{"type":993,"tag":2280,"props":2321,"children":2322},{},[2323],{"type":998,"value":2297},{"type":993,"tag":2280,"props":2325,"children":2326},{},[2327],{"type":998,"value":2328},"Explicit key iteration",{"type":993,"tag":2248,"props":2330,"children":2331},{},[2332,2341,2346,2350],{"type":993,"tag":2280,"props":2333,"children":2334},{},[2335],{"type":993,"tag":1017,"props":2336,"children":2338},{"className":2337},[],[2339],{"type":998,"value":2340},"dict.values()",{"type":993,"tag":2280,"props":2342,"children":2343},{},[2344],{"type":998,"value":2345},"Values only",{"type":993,"tag":2280,"props":2347,"children":2348},{},[2349],{"type":998,"value":2297},{"type":993,"tag":2280,"props":2351,"children":2352},{},[2353],{"type":998,"value":2354},"Data analysis",{"type":993,"tag":2248,"props":2356,"children":2357},{},[2358,2367,2372,2377],{"type":993,"tag":2280,"props":2359,"children":2360},{},[2361],{"type":993,"tag":1017,"props":2362,"children":2364},{"className":2363},[],[2365],{"type":998,"value":2366},"dict.items()",{"type":993,"tag":2280,"props":2368,"children":2369},{},[2370],{"type":998,"value":2371},"Key-value pairs",{"type":993,"tag":2280,"props":2373,"children":2374},{},[2375],{"type":998,"value":2376},"Medium",{"type":993,"tag":2280,"props":2378,"children":2379},{},[2380],{"type":998,"value":2381},"Complete processing",{"type":993,"tag":1307,"props":2383,"children":2385},{"id":2384},"filtering-during-iteration",[2386],{"type":998,"value":2387},"🔄 Filtering During Iteration",{"type":993,"tag":1001,"props":2389,"children":2390},{},[2391],{"type":998,"value":2392},"Combining iteration with conditional logic enables selective processing and data transformation. The code demonstrates filtering students based on grade thresholds during iteration.",{"type":993,"tag":1007,"props":2394,"children":2395},{},[2396],{"type":993,"tag":1011,"props":2397,"children":2399},{"className":1013,"code":2398,"language":6,"meta":8,"style":8},"grades = {'Alice': 95, 'Bob': 67, 'Charlie': 89, 'Diana': 72}\n\n# Find students above threshold\npassing_students = []\nfor student, grade in grades.items():\n    if grade >= 70:\n        passing_students.append(student)\n\nprint(\"Passing students:\", passing_students)\n\n# Process only high performers\nfor student, grade in grades.items():\n    if grade >= 90:\n        print(f\"⭐ {student}: {grade} (Excellent!)\")\n",[2400],{"type":993,"tag":1017,"props":2401,"children":2402},{"__ignoreMap":8},[2403,2488,2495,2503,2520,2540,2567,2575,2582,2603,2610,2618,2637,2661],{"type":993,"tag":1021,"props":2404,"children":2405},{"class":1023,"line":12},[2406,2411,2415,2419,2423,2427,2432,2436,2440,2444,2449,2453,2457,2461,2466,2470,2475,2479,2484],{"type":993,"tag":1021,"props":2407,"children":2408},{"style":1036},[2409],{"type":998,"value":2410},"grades ",{"type":993,"tag":1021,"props":2412,"children":2413},{"style":1042},[2414],{"type":998,"value":1045},{"type":993,"tag":1021,"props":2416,"children":2417},{"style":1036},[2418],{"type":998,"value":1050},{"type":993,"tag":1021,"props":2420,"children":2421},{"style":1053},[2422],{"type":998,"value":1056},{"type":993,"tag":1021,"props":2424,"children":2425},{"style":1036},[2426],{"type":998,"value":1061},{"type":993,"tag":1021,"props":2428,"children":2429},{"style":1064},[2430],{"type":998,"value":2431},"95",{"type":993,"tag":1021,"props":2433,"children":2434},{"style":1036},[2435],{"type":998,"value":1072},{"type":993,"tag":1021,"props":2437,"children":2438},{"style":1053},[2439],{"type":998,"value":1077},{"type":993,"tag":1021,"props":2441,"children":2442},{"style":1036},[2443],{"type":998,"value":1061},{"type":993,"tag":1021,"props":2445,"children":2446},{"style":1064},[2447],{"type":998,"value":2448},"67",{"type":993,"tag":1021,"props":2450,"children":2451},{"style":1036},[2452],{"type":998,"value":1072},{"type":993,"tag":1021,"props":2454,"children":2455},{"style":1053},[2456],{"type":998,"value":1095},{"type":993,"tag":1021,"props":2458,"children":2459},{"style":1036},[2460],{"type":998,"value":1061},{"type":993,"tag":1021,"props":2462,"children":2463},{"style":1064},[2464],{"type":998,"value":2465},"89",{"type":993,"tag":1021,"props":2467,"children":2468},{"style":1036},[2469],{"type":998,"value":1072},{"type":993,"tag":1021,"props":2471,"children":2472},{"style":1053},[2473],{"type":998,"value":2474},"'Diana'",{"type":993,"tag":1021,"props":2476,"children":2477},{"style":1036},[2478],{"type":998,"value":1061},{"type":993,"tag":1021,"props":2480,"children":2481},{"style":1064},[2482],{"type":998,"value":2483},"72",{"type":993,"tag":1021,"props":2485,"children":2486},{"style":1036},[2487],{"type":998,"value":1109},{"type":993,"tag":1021,"props":2489,"children":2490},{"class":1023,"line":27},[2491],{"type":993,"tag":1021,"props":2492,"children":2493},{"emptyLinePlaceholder":13},[2494],{"type":998,"value":1117},{"type":993,"tag":1021,"props":2496,"children":2497},{"class":1023,"line":36},[2498],{"type":993,"tag":1021,"props":2499,"children":2500},{"style":1027},[2501],{"type":998,"value":2502},"# Find students above threshold\n",{"type":993,"tag":1021,"props":2504,"children":2505},{"class":1023,"line":45},[2506,2511,2515],{"type":993,"tag":1021,"props":2507,"children":2508},{"style":1036},[2509],{"type":998,"value":2510},"passing_students ",{"type":993,"tag":1021,"props":2512,"children":2513},{"style":1042},[2514],{"type":998,"value":1045},{"type":993,"tag":1021,"props":2516,"children":2517},{"style":1036},[2518],{"type":998,"value":2519}," []\n",{"type":993,"tag":1021,"props":2521,"children":2522},{"class":1023,"line":54},[2523,2527,2531,2535],{"type":993,"tag":1021,"props":2524,"children":2525},{"style":1042},[2526],{"type":998,"value":1133},{"type":993,"tag":1021,"props":2528,"children":2529},{"style":1036},[2530],{"type":998,"value":1239},{"type":993,"tag":1021,"props":2532,"children":2533},{"style":1042},[2534],{"type":998,"value":1143},{"type":993,"tag":1021,"props":2536,"children":2537},{"style":1036},[2538],{"type":998,"value":2539}," grades.items():\n",{"type":993,"tag":1021,"props":2541,"children":2542},{"class":1023,"line":63},[2543,2547,2552,2557,2562],{"type":993,"tag":1021,"props":2544,"children":2545},{"style":1042},[2546],{"type":998,"value":2135},{"type":993,"tag":1021,"props":2548,"children":2549},{"style":1036},[2550],{"type":998,"value":2551}," grade ",{"type":993,"tag":1021,"props":2553,"children":2554},{"style":1042},[2555],{"type":998,"value":2556},">=",{"type":993,"tag":1021,"props":2558,"children":2559},{"style":1064},[2560],{"type":998,"value":2561}," 70",{"type":993,"tag":1021,"props":2563,"children":2564},{"style":1036},[2565],{"type":998,"value":2566},":\n",{"type":993,"tag":1021,"props":2568,"children":2569},{"class":1023,"line":72},[2570],{"type":993,"tag":1021,"props":2571,"children":2572},{"style":1036},[2573],{"type":998,"value":2574},"        passing_students.append(student)\n",{"type":993,"tag":1021,"props":2576,"children":2577},{"class":1023,"line":81},[2578],{"type":993,"tag":1021,"props":2579,"children":2580},{"emptyLinePlaceholder":13},[2581],{"type":998,"value":1117},{"type":993,"tag":1021,"props":2583,"children":2584},{"class":1023,"line":91},[2585,2589,2593,2598],{"type":993,"tag":1021,"props":2586,"children":2587},{"style":1064},[2588],{"type":998,"value":1788},{"type":993,"tag":1021,"props":2590,"children":2591},{"style":1036},[2592],{"type":998,"value":1161},{"type":993,"tag":1021,"props":2594,"children":2595},{"style":1053},[2596],{"type":998,"value":2597},"\"Passing students:\"",{"type":993,"tag":1021,"props":2599,"children":2600},{"style":1036},[2601],{"type":998,"value":2602},", passing_students)\n",{"type":993,"tag":1021,"props":2604,"children":2605},{"class":1023,"line":100},[2606],{"type":993,"tag":1021,"props":2607,"children":2608},{"emptyLinePlaceholder":13},[2609],{"type":998,"value":1117},{"type":993,"tag":1021,"props":2611,"children":2612},{"class":1023,"line":109},[2613],{"type":993,"tag":1021,"props":2614,"children":2615},{"style":1027},[2616],{"type":998,"value":2617},"# Process only high performers\n",{"type":993,"tag":1021,"props":2619,"children":2620},{"class":1023,"line":118},[2621,2625,2629,2633],{"type":993,"tag":1021,"props":2622,"children":2623},{"style":1042},[2624],{"type":998,"value":1133},{"type":993,"tag":1021,"props":2626,"children":2627},{"style":1036},[2628],{"type":998,"value":1239},{"type":993,"tag":1021,"props":2630,"children":2631},{"style":1042},[2632],{"type":998,"value":1143},{"type":993,"tag":1021,"props":2634,"children":2635},{"style":1036},[2636],{"type":998,"value":2539},{"type":993,"tag":1021,"props":2638,"children":2639},{"class":1023,"line":127},[2640,2644,2648,2652,2657],{"type":993,"tag":1021,"props":2641,"children":2642},{"style":1042},[2643],{"type":998,"value":2135},{"type":993,"tag":1021,"props":2645,"children":2646},{"style":1036},[2647],{"type":998,"value":2551},{"type":993,"tag":1021,"props":2649,"children":2650},{"style":1042},[2651],{"type":998,"value":2556},{"type":993,"tag":1021,"props":2653,"children":2654},{"style":1064},[2655],{"type":998,"value":2656}," 90",{"type":993,"tag":1021,"props":2658,"children":2659},{"style":1036},[2660],{"type":998,"value":2566},{"type":993,"tag":1021,"props":2662,"children":2663},{"class":1023,"line":136},[2664,2668,2672,2676,2681,2685,2689,2693,2697,2701,2705,2709,2714],{"type":993,"tag":1021,"props":2665,"children":2666},{"style":1064},[2667],{"type":998,"value":2163},{"type":993,"tag":1021,"props":2669,"children":2670},{"style":1036},[2671],{"type":998,"value":1161},{"type":993,"tag":1021,"props":2673,"children":2674},{"style":1042},[2675],{"type":998,"value":1166},{"type":993,"tag":1021,"props":2677,"children":2678},{"style":1053},[2679],{"type":998,"value":2680},"\"⭐ ",{"type":993,"tag":1021,"props":2682,"children":2683},{"style":1064},[2684],{"type":998,"value":1176},{"type":993,"tag":1021,"props":2686,"children":2687},{"style":1036},[2688],{"type":998,"value":1181},{"type":993,"tag":1021,"props":2690,"children":2691},{"style":1064},[2692],{"type":998,"value":1186},{"type":993,"tag":1021,"props":2694,"children":2695},{"style":1053},[2696],{"type":998,"value":1061},{"type":993,"tag":1021,"props":2698,"children":2699},{"style":1064},[2700],{"type":998,"value":1176},{"type":993,"tag":1021,"props":2702,"children":2703},{"style":1036},[2704],{"type":998,"value":1293},{"type":993,"tag":1021,"props":2706,"children":2707},{"style":1064},[2708],{"type":998,"value":1186},{"type":993,"tag":1021,"props":2710,"children":2711},{"style":1053},[2712],{"type":998,"value":2713}," (Excellent!)\"",{"type":993,"tag":1021,"props":2715,"children":2716},{"style":1036},[2717],{"type":998,"value":1212},{"type":993,"tag":1307,"props":2719,"children":2721},{"id":2720},"dictionary-comprehensions-with-iteration",[2722],{"type":998,"value":2723},"📚 Dictionary Comprehensions with Iteration",{"type":993,"tag":1001,"props":2725,"children":2726},{},[2727],{"type":998,"value":2728},"Dictionary comprehensions combine iteration with transformation in concise expressions. Notice how we create new dictionaries by processing existing data during iteration.",{"type":993,"tag":1007,"props":2730,"children":2731},{},[2732],{"type":993,"tag":1011,"props":2733,"children":2735},{"className":1013,"code":2734,"language":6,"meta":8,"style":8},"prices = {'apple': 1.20, 'banana': 0.80, 'orange': 1.50}\n\n# Apply discount\ndiscounted = {item: price * 0.9 for item, price in prices.items()}\nprint(\"Discounted prices:\", discounted)\n\n# Filter and transform\nexpensive = {item: price for item, price in prices.items() if price > 1.0}\nprint(\"Expensive items:\", expensive)\n",[2736],{"type":993,"tag":1017,"props":2737,"children":2738},{"__ignoreMap":8},[2739,2809,2816,2824,2870,2891,2898,2906,2963],{"type":993,"tag":1021,"props":2740,"children":2741},{"class":1023,"line":12},[2742,2747,2751,2755,2760,2764,2769,2773,2778,2782,2787,2791,2796,2800,2805],{"type":993,"tag":1021,"props":2743,"children":2744},{"style":1036},[2745],{"type":998,"value":2746},"prices ",{"type":993,"tag":1021,"props":2748,"children":2749},{"style":1042},[2750],{"type":998,"value":1045},{"type":993,"tag":1021,"props":2752,"children":2753},{"style":1036},[2754],{"type":998,"value":1050},{"type":993,"tag":1021,"props":2756,"children":2757},{"style":1053},[2758],{"type":998,"value":2759},"'apple'",{"type":993,"tag":1021,"props":2761,"children":2762},{"style":1036},[2763],{"type":998,"value":1061},{"type":993,"tag":1021,"props":2765,"children":2766},{"style":1064},[2767],{"type":998,"value":2768},"1.20",{"type":993,"tag":1021,"props":2770,"children":2771},{"style":1036},[2772],{"type":998,"value":1072},{"type":993,"tag":1021,"props":2774,"children":2775},{"style":1053},[2776],{"type":998,"value":2777},"'banana'",{"type":993,"tag":1021,"props":2779,"children":2780},{"style":1036},[2781],{"type":998,"value":1061},{"type":993,"tag":1021,"props":2783,"children":2784},{"style":1064},[2785],{"type":998,"value":2786},"0.80",{"type":993,"tag":1021,"props":2788,"children":2789},{"style":1036},[2790],{"type":998,"value":1072},{"type":993,"tag":1021,"props":2792,"children":2793},{"style":1053},[2794],{"type":998,"value":2795},"'orange'",{"type":993,"tag":1021,"props":2797,"children":2798},{"style":1036},[2799],{"type":998,"value":1061},{"type":993,"tag":1021,"props":2801,"children":2802},{"style":1064},[2803],{"type":998,"value":2804},"1.50",{"type":993,"tag":1021,"props":2806,"children":2807},{"style":1036},[2808],{"type":998,"value":1109},{"type":993,"tag":1021,"props":2810,"children":2811},{"class":1023,"line":27},[2812],{"type":993,"tag":1021,"props":2813,"children":2814},{"emptyLinePlaceholder":13},[2815],{"type":998,"value":1117},{"type":993,"tag":1021,"props":2817,"children":2818},{"class":1023,"line":36},[2819],{"type":993,"tag":1021,"props":2820,"children":2821},{"style":1027},[2822],{"type":998,"value":2823},"# Apply discount\n",{"type":993,"tag":1021,"props":2825,"children":2826},{"class":1023,"line":45},[2827,2832,2836,2841,2846,2851,2856,2861,2865],{"type":993,"tag":1021,"props":2828,"children":2829},{"style":1036},[2830],{"type":998,"value":2831},"discounted ",{"type":993,"tag":1021,"props":2833,"children":2834},{"style":1042},[2835],{"type":998,"value":1045},{"type":993,"tag":1021,"props":2837,"children":2838},{"style":1036},[2839],{"type":998,"value":2840}," {item: price ",{"type":993,"tag":1021,"props":2842,"children":2843},{"style":1042},[2844],{"type":998,"value":2845},"*",{"type":993,"tag":1021,"props":2847,"children":2848},{"style":1064},[2849],{"type":998,"value":2850}," 0.9",{"type":993,"tag":1021,"props":2852,"children":2853},{"style":1042},[2854],{"type":998,"value":2855}," for",{"type":993,"tag":1021,"props":2857,"children":2858},{"style":1036},[2859],{"type":998,"value":2860}," item, price ",{"type":993,"tag":1021,"props":2862,"children":2863},{"style":1042},[2864],{"type":998,"value":1143},{"type":993,"tag":1021,"props":2866,"children":2867},{"style":1036},[2868],{"type":998,"value":2869}," prices.items()}\n",{"type":993,"tag":1021,"props":2871,"children":2872},{"class":1023,"line":54},[2873,2877,2881,2886],{"type":993,"tag":1021,"props":2874,"children":2875},{"style":1064},[2876],{"type":998,"value":1788},{"type":993,"tag":1021,"props":2878,"children":2879},{"style":1036},[2880],{"type":998,"value":1161},{"type":993,"tag":1021,"props":2882,"children":2883},{"style":1053},[2884],{"type":998,"value":2885},"\"Discounted prices:\"",{"type":993,"tag":1021,"props":2887,"children":2888},{"style":1036},[2889],{"type":998,"value":2890},", discounted)\n",{"type":993,"tag":1021,"props":2892,"children":2893},{"class":1023,"line":63},[2894],{"type":993,"tag":1021,"props":2895,"children":2896},{"emptyLinePlaceholder":13},[2897],{"type":998,"value":1117},{"type":993,"tag":1021,"props":2899,"children":2900},{"class":1023,"line":72},[2901],{"type":993,"tag":1021,"props":2902,"children":2903},{"style":1027},[2904],{"type":998,"value":2905},"# Filter and transform\n",{"type":993,"tag":1021,"props":2907,"children":2908},{"class":1023,"line":81},[2909,2914,2918,2922,2926,2930,2934,2939,2944,2949,2954,2959],{"type":993,"tag":1021,"props":2910,"children":2911},{"style":1036},[2912],{"type":998,"value":2913},"expensive ",{"type":993,"tag":1021,"props":2915,"children":2916},{"style":1042},[2917],{"type":998,"value":1045},{"type":993,"tag":1021,"props":2919,"children":2920},{"style":1036},[2921],{"type":998,"value":2840},{"type":993,"tag":1021,"props":2923,"children":2924},{"style":1042},[2925],{"type":998,"value":1133},{"type":993,"tag":1021,"props":2927,"children":2928},{"style":1036},[2929],{"type":998,"value":2860},{"type":993,"tag":1021,"props":2931,"children":2932},{"style":1042},[2933],{"type":998,"value":1143},{"type":993,"tag":1021,"props":2935,"children":2936},{"style":1036},[2937],{"type":998,"value":2938}," prices.items() ",{"type":993,"tag":1021,"props":2940,"children":2941},{"style":1042},[2942],{"type":998,"value":2943},"if",{"type":993,"tag":1021,"props":2945,"children":2946},{"style":1036},[2947],{"type":998,"value":2948}," price ",{"type":993,"tag":1021,"props":2950,"children":2951},{"style":1042},[2952],{"type":998,"value":2953},">",{"type":993,"tag":1021,"props":2955,"children":2956},{"style":1064},[2957],{"type":998,"value":2958}," 1.0",{"type":993,"tag":1021,"props":2960,"children":2961},{"style":1036},[2962],{"type":998,"value":1109},{"type":993,"tag":1021,"props":2964,"children":2965},{"class":1023,"line":91},[2966,2970,2974,2979],{"type":993,"tag":1021,"props":2967,"children":2968},{"style":1064},[2969],{"type":998,"value":1788},{"type":993,"tag":1021,"props":2971,"children":2972},{"style":1036},[2973],{"type":998,"value":1161},{"type":993,"tag":1021,"props":2975,"children":2976},{"style":1053},[2977],{"type":998,"value":2978},"\"Expensive items:\"",{"type":993,"tag":1021,"props":2980,"children":2981},{"style":1036},[2982],{"type":998,"value":2983},", expensive)\n",{"type":993,"tag":1307,"props":2985,"children":2987},{"id":2986},"nested-dictionary-iteration",[2988],{"type":998,"value":2989},"🌟 Nested Dictionary Iteration",{"type":993,"tag":1001,"props":2991,"children":2992},{},[2993],{"type":998,"value":2994},"Working with nested dictionaries requires systematic approaches to access multi-level data structures. The implementation shows iterating through hierarchical data safely.",{"type":993,"tag":1007,"props":2996,"children":2997},{},[2998],{"type":993,"tag":1011,"props":2999,"children":3001},{"className":1013,"code":3000,"language":6,"meta":8,"style":8},"company = {\n    'engineering': {'employees': 15, 'budget': 120000},\n    'marketing': {'employees': 8, 'budget': 80000},\n    'sales': {'employees': 12, 'budget': 60000}\n}\n\n# Iterate through departments\nfor dept, info in company.items():\n    print(f\"{dept}: {info['employees']} employees\")\n    \n# Calculate totals\ntotal_employees = sum(info['employees'] for info in company.values())\nprint(f\"Total employees: {total_employees}\")\n",[3002],{"type":993,"tag":1017,"props":3003,"children":3004},{"__ignoreMap":8},[3005,3022,3072,3118,3164,3171,3178,3186,3207,3274,3282,3290,3338],{"type":993,"tag":1021,"props":3006,"children":3007},{"class":1023,"line":12},[3008,3013,3017],{"type":993,"tag":1021,"props":3009,"children":3010},{"style":1036},[3011],{"type":998,"value":3012},"company ",{"type":993,"tag":1021,"props":3014,"children":3015},{"style":1042},[3016],{"type":998,"value":1045},{"type":993,"tag":1021,"props":3018,"children":3019},{"style":1036},[3020],{"type":998,"value":3021}," {\n",{"type":993,"tag":1021,"props":3023,"children":3024},{"class":1023,"line":27},[3025,3030,3035,3040,3044,3049,3053,3058,3062,3067],{"type":993,"tag":1021,"props":3026,"children":3027},{"style":1053},[3028],{"type":998,"value":3029},"    'engineering'",{"type":993,"tag":1021,"props":3031,"children":3032},{"style":1036},[3033],{"type":998,"value":3034},": {",{"type":993,"tag":1021,"props":3036,"children":3037},{"style":1053},[3038],{"type":998,"value":3039},"'employees'",{"type":993,"tag":1021,"props":3041,"children":3042},{"style":1036},[3043],{"type":998,"value":1061},{"type":993,"tag":1021,"props":3045,"children":3046},{"style":1064},[3047],{"type":998,"value":3048},"15",{"type":993,"tag":1021,"props":3050,"children":3051},{"style":1036},[3052],{"type":998,"value":1072},{"type":993,"tag":1021,"props":3054,"children":3055},{"style":1053},[3056],{"type":998,"value":3057},"'budget'",{"type":993,"tag":1021,"props":3059,"children":3060},{"style":1036},[3061],{"type":998,"value":1061},{"type":993,"tag":1021,"props":3063,"children":3064},{"style":1064},[3065],{"type":998,"value":3066},"120000",{"type":993,"tag":1021,"props":3068,"children":3069},{"style":1036},[3070],{"type":998,"value":3071},"},\n",{"type":993,"tag":1021,"props":3073,"children":3074},{"class":1023,"line":36},[3075,3080,3084,3088,3092,3097,3101,3105,3109,3114],{"type":993,"tag":1021,"props":3076,"children":3077},{"style":1053},[3078],{"type":998,"value":3079},"    'marketing'",{"type":993,"tag":1021,"props":3081,"children":3082},{"style":1036},[3083],{"type":998,"value":3034},{"type":993,"tag":1021,"props":3085,"children":3086},{"style":1053},[3087],{"type":998,"value":3039},{"type":993,"tag":1021,"props":3089,"children":3090},{"style":1036},[3091],{"type":998,"value":1061},{"type":993,"tag":1021,"props":3093,"children":3094},{"style":1064},[3095],{"type":998,"value":3096},"8",{"type":993,"tag":1021,"props":3098,"children":3099},{"style":1036},[3100],{"type":998,"value":1072},{"type":993,"tag":1021,"props":3102,"children":3103},{"style":1053},[3104],{"type":998,"value":3057},{"type":993,"tag":1021,"props":3106,"children":3107},{"style":1036},[3108],{"type":998,"value":1061},{"type":993,"tag":1021,"props":3110,"children":3111},{"style":1064},[3112],{"type":998,"value":3113},"80000",{"type":993,"tag":1021,"props":3115,"children":3116},{"style":1036},[3117],{"type":998,"value":3071},{"type":993,"tag":1021,"props":3119,"children":3120},{"class":1023,"line":45},[3121,3126,3130,3134,3138,3143,3147,3151,3155,3160],{"type":993,"tag":1021,"props":3122,"children":3123},{"style":1053},[3124],{"type":998,"value":3125},"    'sales'",{"type":993,"tag":1021,"props":3127,"children":3128},{"style":1036},[3129],{"type":998,"value":3034},{"type":993,"tag":1021,"props":3131,"children":3132},{"style":1053},[3133],{"type":998,"value":3039},{"type":993,"tag":1021,"props":3135,"children":3136},{"style":1036},[3137],{"type":998,"value":1061},{"type":993,"tag":1021,"props":3139,"children":3140},{"style":1064},[3141],{"type":998,"value":3142},"12",{"type":993,"tag":1021,"props":3144,"children":3145},{"style":1036},[3146],{"type":998,"value":1072},{"type":993,"tag":1021,"props":3148,"children":3149},{"style":1053},[3150],{"type":998,"value":3057},{"type":993,"tag":1021,"props":3152,"children":3153},{"style":1036},[3154],{"type":998,"value":1061},{"type":993,"tag":1021,"props":3156,"children":3157},{"style":1064},[3158],{"type":998,"value":3159},"60000",{"type":993,"tag":1021,"props":3161,"children":3162},{"style":1036},[3163],{"type":998,"value":1109},{"type":993,"tag":1021,"props":3165,"children":3166},{"class":1023,"line":54},[3167],{"type":993,"tag":1021,"props":3168,"children":3169},{"style":1036},[3170],{"type":998,"value":1109},{"type":993,"tag":1021,"props":3172,"children":3173},{"class":1023,"line":63},[3174],{"type":993,"tag":1021,"props":3175,"children":3176},{"emptyLinePlaceholder":13},[3177],{"type":998,"value":1117},{"type":993,"tag":1021,"props":3179,"children":3180},{"class":1023,"line":72},[3181],{"type":993,"tag":1021,"props":3182,"children":3183},{"style":1027},[3184],{"type":998,"value":3185},"# Iterate through departments\n",{"type":993,"tag":1021,"props":3187,"children":3188},{"class":1023,"line":81},[3189,3193,3198,3202],{"type":993,"tag":1021,"props":3190,"children":3191},{"style":1042},[3192],{"type":998,"value":1133},{"type":993,"tag":1021,"props":3194,"children":3195},{"style":1036},[3196],{"type":998,"value":3197}," dept, info ",{"type":993,"tag":1021,"props":3199,"children":3200},{"style":1042},[3201],{"type":998,"value":1143},{"type":993,"tag":1021,"props":3203,"children":3204},{"style":1036},[3205],{"type":998,"value":3206}," company.items():\n",{"type":993,"tag":1021,"props":3208,"children":3209},{"class":1023,"line":91},[3210,3214,3218,3222,3226,3230,3235,3239,3243,3247,3252,3256,3261,3265,3270],{"type":993,"tag":1021,"props":3211,"children":3212},{"style":1064},[3213],{"type":998,"value":1156},{"type":993,"tag":1021,"props":3215,"children":3216},{"style":1036},[3217],{"type":998,"value":1161},{"type":993,"tag":1021,"props":3219,"children":3220},{"style":1042},[3221],{"type":998,"value":1166},{"type":993,"tag":1021,"props":3223,"children":3224},{"style":1053},[3225],{"type":998,"value":1171},{"type":993,"tag":1021,"props":3227,"children":3228},{"style":1064},[3229],{"type":998,"value":1176},{"type":993,"tag":1021,"props":3231,"children":3232},{"style":1036},[3233],{"type":998,"value":3234},"dept",{"type":993,"tag":1021,"props":3236,"children":3237},{"style":1064},[3238],{"type":998,"value":1186},{"type":993,"tag":1021,"props":3240,"children":3241},{"style":1053},[3242],{"type":998,"value":1061},{"type":993,"tag":1021,"props":3244,"children":3245},{"style":1064},[3246],{"type":998,"value":1176},{"type":993,"tag":1021,"props":3248,"children":3249},{"style":1036},[3250],{"type":998,"value":3251},"info[",{"type":993,"tag":1021,"props":3253,"children":3254},{"style":1053},[3255],{"type":998,"value":3039},{"type":993,"tag":1021,"props":3257,"children":3258},{"style":1036},[3259],{"type":998,"value":3260},"]",{"type":993,"tag":1021,"props":3262,"children":3263},{"style":1064},[3264],{"type":998,"value":1186},{"type":993,"tag":1021,"props":3266,"children":3267},{"style":1053},[3268],{"type":998,"value":3269}," employees\"",{"type":993,"tag":1021,"props":3271,"children":3272},{"style":1036},[3273],{"type":998,"value":1212},{"type":993,"tag":1021,"props":3275,"children":3276},{"class":1023,"line":100},[3277],{"type":993,"tag":1021,"props":3278,"children":3279},{"style":1036},[3280],{"type":998,"value":3281},"    \n",{"type":993,"tag":1021,"props":3283,"children":3284},{"class":1023,"line":109},[3285],{"type":993,"tag":1021,"props":3286,"children":3287},{"style":1027},[3288],{"type":998,"value":3289},"# Calculate totals\n",{"type":993,"tag":1021,"props":3291,"children":3292},{"class":1023,"line":118},[3293,3298,3302,3306,3311,3315,3320,3324,3329,3333],{"type":993,"tag":1021,"props":3294,"children":3295},{"style":1036},[3296],{"type":998,"value":3297},"total_employees ",{"type":993,"tag":1021,"props":3299,"children":3300},{"style":1042},[3301],{"type":998,"value":1045},{"type":993,"tag":1021,"props":3303,"children":3304},{"style":1064},[3305],{"type":998,"value":1743},{"type":993,"tag":1021,"props":3307,"children":3308},{"style":1036},[3309],{"type":998,"value":3310},"(info[",{"type":993,"tag":1021,"props":3312,"children":3313},{"style":1053},[3314],{"type":998,"value":3039},{"type":993,"tag":1021,"props":3316,"children":3317},{"style":1036},[3318],{"type":998,"value":3319},"] ",{"type":993,"tag":1021,"props":3321,"children":3322},{"style":1042},[3323],{"type":998,"value":1133},{"type":993,"tag":1021,"props":3325,"children":3326},{"style":1036},[3327],{"type":998,"value":3328}," info ",{"type":993,"tag":1021,"props":3330,"children":3331},{"style":1042},[3332],{"type":998,"value":1143},{"type":993,"tag":1021,"props":3334,"children":3335},{"style":1036},[3336],{"type":998,"value":3337}," company.values())\n",{"type":993,"tag":1021,"props":3339,"children":3340},{"class":1023,"line":127},[3341,3345,3349,3353,3358,3362,3367,3371,3375],{"type":993,"tag":1021,"props":3342,"children":3343},{"style":1064},[3344],{"type":998,"value":1788},{"type":993,"tag":1021,"props":3346,"children":3347},{"style":1036},[3348],{"type":998,"value":1161},{"type":993,"tag":1021,"props":3350,"children":3351},{"style":1042},[3352],{"type":998,"value":1166},{"type":993,"tag":1021,"props":3354,"children":3355},{"style":1053},[3356],{"type":998,"value":3357},"\"Total employees: ",{"type":993,"tag":1021,"props":3359,"children":3360},{"style":1064},[3361],{"type":998,"value":1176},{"type":993,"tag":1021,"props":3363,"children":3364},{"style":1036},[3365],{"type":998,"value":3366},"total_employees",{"type":993,"tag":1021,"props":3368,"children":3369},{"style":1064},[3370],{"type":998,"value":1186},{"type":993,"tag":1021,"props":3372,"children":3373},{"style":1053},[3374],{"type":998,"value":1171},{"type":993,"tag":1021,"props":3376,"children":3377},{"style":1036},[3378],{"type":998,"value":1212},{"type":993,"tag":1307,"props":3380,"children":3382},{"id":3381},"practical-applications",[3383],{"type":998,"value":3384},"💡 Practical Applications",{"type":993,"tag":3386,"props":3387,"children":3389},"h3",{"id":3388},"data-analysis",[3390],{"type":998,"value":3391},"Data Analysis",{"type":993,"tag":1001,"props":3393,"children":3394},{},[3395],{"type":998,"value":3396},"Dictionary iteration enables quick data analysis and reporting for business intelligence tasks.",{"type":993,"tag":1007,"props":3398,"children":3399},{},[3400],{"type":993,"tag":1011,"props":3401,"children":3403},{"className":1013,"code":3402,"language":6,"meta":8,"style":8},"sales_data = {'Q1': 45000, 'Q2': 52000, 'Q3': 48000, 'Q4': 61000}\n\n# Generate sales report\nfor quarter, sales in sales_data.items():\n    percentage = (sales / sum(sales_data.values())) * 100\n    print(f\"{quarter}: ${sales:,} ({percentage:.1f}%)\")\n",[3404],{"type":993,"tag":1017,"props":3405,"children":3406},{"__ignoreMap":8},[3407,3495,3502,3510,3531,3570],{"type":993,"tag":1021,"props":3408,"children":3409},{"class":1023,"line":12},[3410,3415,3419,3423,3428,3432,3437,3441,3446,3450,3455,3459,3464,3468,3473,3477,3482,3486,3491],{"type":993,"tag":1021,"props":3411,"children":3412},{"style":1036},[3413],{"type":998,"value":3414},"sales_data ",{"type":993,"tag":1021,"props":3416,"children":3417},{"style":1042},[3418],{"type":998,"value":1045},{"type":993,"tag":1021,"props":3420,"children":3421},{"style":1036},[3422],{"type":998,"value":1050},{"type":993,"tag":1021,"props":3424,"children":3425},{"style":1053},[3426],{"type":998,"value":3427},"'Q1'",{"type":993,"tag":1021,"props":3429,"children":3430},{"style":1036},[3431],{"type":998,"value":1061},{"type":993,"tag":1021,"props":3433,"children":3434},{"style":1064},[3435],{"type":998,"value":3436},"45000",{"type":993,"tag":1021,"props":3438,"children":3439},{"style":1036},[3440],{"type":998,"value":1072},{"type":993,"tag":1021,"props":3442,"children":3443},{"style":1053},[3444],{"type":998,"value":3445},"'Q2'",{"type":993,"tag":1021,"props":3447,"children":3448},{"style":1036},[3449],{"type":998,"value":1061},{"type":993,"tag":1021,"props":3451,"children":3452},{"style":1064},[3453],{"type":998,"value":3454},"52000",{"type":993,"tag":1021,"props":3456,"children":3457},{"style":1036},[3458],{"type":998,"value":1072},{"type":993,"tag":1021,"props":3460,"children":3461},{"style":1053},[3462],{"type":998,"value":3463},"'Q3'",{"type":993,"tag":1021,"props":3465,"children":3466},{"style":1036},[3467],{"type":998,"value":1061},{"type":993,"tag":1021,"props":3469,"children":3470},{"style":1064},[3471],{"type":998,"value":3472},"48000",{"type":993,"tag":1021,"props":3474,"children":3475},{"style":1036},[3476],{"type":998,"value":1072},{"type":993,"tag":1021,"props":3478,"children":3479},{"style":1053},[3480],{"type":998,"value":3481},"'Q4'",{"type":993,"tag":1021,"props":3483,"children":3484},{"style":1036},[3485],{"type":998,"value":1061},{"type":993,"tag":1021,"props":3487,"children":3488},{"style":1064},[3489],{"type":998,"value":3490},"61000",{"type":993,"tag":1021,"props":3492,"children":3493},{"style":1036},[3494],{"type":998,"value":1109},{"type":993,"tag":1021,"props":3496,"children":3497},{"class":1023,"line":27},[3498],{"type":993,"tag":1021,"props":3499,"children":3500},{"emptyLinePlaceholder":13},[3501],{"type":998,"value":1117},{"type":993,"tag":1021,"props":3503,"children":3504},{"class":1023,"line":36},[3505],{"type":993,"tag":1021,"props":3506,"children":3507},{"style":1027},[3508],{"type":998,"value":3509},"# Generate sales report\n",{"type":993,"tag":1021,"props":3511,"children":3512},{"class":1023,"line":45},[3513,3517,3522,3526],{"type":993,"tag":1021,"props":3514,"children":3515},{"style":1042},[3516],{"type":998,"value":1133},{"type":993,"tag":1021,"props":3518,"children":3519},{"style":1036},[3520],{"type":998,"value":3521}," quarter, sales ",{"type":993,"tag":1021,"props":3523,"children":3524},{"style":1042},[3525],{"type":998,"value":1143},{"type":993,"tag":1021,"props":3527,"children":3528},{"style":1036},[3529],{"type":998,"value":3530}," sales_data.items():\n",{"type":993,"tag":1021,"props":3532,"children":3533},{"class":1023,"line":54},[3534,3539,3543,3548,3552,3556,3561,3565],{"type":993,"tag":1021,"props":3535,"children":3536},{"style":1036},[3537],{"type":998,"value":3538},"    percentage ",{"type":993,"tag":1021,"props":3540,"children":3541},{"style":1042},[3542],{"type":998,"value":1045},{"type":993,"tag":1021,"props":3544,"children":3545},{"style":1036},[3546],{"type":998,"value":3547}," (sales ",{"type":993,"tag":1021,"props":3549,"children":3550},{"style":1042},[3551],{"type":998,"value":1770},{"type":993,"tag":1021,"props":3553,"children":3554},{"style":1064},[3555],{"type":998,"value":1743},{"type":993,"tag":1021,"props":3557,"children":3558},{"style":1036},[3559],{"type":998,"value":3560},"(sales_data.values())) ",{"type":993,"tag":1021,"props":3562,"children":3563},{"style":1042},[3564],{"type":998,"value":2845},{"type":993,"tag":1021,"props":3566,"children":3567},{"style":1064},[3568],{"type":998,"value":3569}," 100\n",{"type":993,"tag":1021,"props":3571,"children":3572},{"class":1023,"line":63},[3573,3577,3581,3585,3589,3593,3598,3602,3607,3611,3616,3621,3625,3630,3634,3639,3644,3648,3653],{"type":993,"tag":1021,"props":3574,"children":3575},{"style":1064},[3576],{"type":998,"value":1156},{"type":993,"tag":1021,"props":3578,"children":3579},{"style":1036},[3580],{"type":998,"value":1161},{"type":993,"tag":1021,"props":3582,"children":3583},{"style":1042},[3584],{"type":998,"value":1166},{"type":993,"tag":1021,"props":3586,"children":3587},{"style":1053},[3588],{"type":998,"value":1171},{"type":993,"tag":1021,"props":3590,"children":3591},{"style":1064},[3592],{"type":998,"value":1176},{"type":993,"tag":1021,"props":3594,"children":3595},{"style":1036},[3596],{"type":998,"value":3597},"quarter",{"type":993,"tag":1021,"props":3599,"children":3600},{"style":1064},[3601],{"type":998,"value":1186},{"type":993,"tag":1021,"props":3603,"children":3604},{"style":1053},[3605],{"type":998,"value":3606},": $",{"type":993,"tag":1021,"props":3608,"children":3609},{"style":1064},[3610],{"type":998,"value":1176},{"type":993,"tag":1021,"props":3612,"children":3613},{"style":1036},[3614],{"type":998,"value":3615},"sales",{"type":993,"tag":1021,"props":3617,"children":3618},{"style":1042},[3619],{"type":998,"value":3620},":,",{"type":993,"tag":1021,"props":3622,"children":3623},{"style":1064},[3624],{"type":998,"value":1186},{"type":993,"tag":1021,"props":3626,"children":3627},{"style":1053},[3628],{"type":998,"value":3629}," (",{"type":993,"tag":1021,"props":3631,"children":3632},{"style":1064},[3633],{"type":998,"value":1176},{"type":993,"tag":1021,"props":3635,"children":3636},{"style":1036},[3637],{"type":998,"value":3638},"percentage",{"type":993,"tag":1021,"props":3640,"children":3641},{"style":1042},[3642],{"type":998,"value":3643},":.1f",{"type":993,"tag":1021,"props":3645,"children":3646},{"style":1064},[3647],{"type":998,"value":1186},{"type":993,"tag":1021,"props":3649,"children":3650},{"style":1053},[3651],{"type":998,"value":3652},"%)\"",{"type":993,"tag":1021,"props":3654,"children":3655},{"style":1036},[3656],{"type":998,"value":1212},{"type":993,"tag":3386,"props":3658,"children":3660},{"id":3659},"configuration-processing",[3661],{"type":998,"value":3662},"Configuration Processing",{"type":993,"tag":1001,"props":3664,"children":3665},{},[3666],{"type":998,"value":3667},"Settings validation and processing benefit from systematic iteration through configuration dictionaries.",{"type":993,"tag":1007,"props":3669,"children":3670},{},[3671],{"type":993,"tag":1011,"props":3672,"children":3674},{"className":1013,"code":3673,"language":6,"meta":8,"style":8},"config = {'debug': True, 'port': 8080, 'host': 'localhost'}\n\n# Validate configuration\nrequired = ['host', 'port']\nfor setting in required:\n    if setting not in config:\n        print(f\"Missing required setting: {setting}\")\n",[3675],{"type":993,"tag":1017,"props":3676,"children":3677},{"__ignoreMap":8},[3678,3747,3754,3762,3796,3817,3843],{"type":993,"tag":1021,"props":3679,"children":3680},{"class":1023,"line":12},[3681,3686,3690,3694,3699,3703,3707,3711,3716,3720,3725,3729,3734,3738,3743],{"type":993,"tag":1021,"props":3682,"children":3683},{"style":1036},[3684],{"type":998,"value":3685},"config ",{"type":993,"tag":1021,"props":3687,"children":3688},{"style":1042},[3689],{"type":998,"value":1045},{"type":993,"tag":1021,"props":3691,"children":3692},{"style":1036},[3693],{"type":998,"value":1050},{"type":993,"tag":1021,"props":3695,"children":3696},{"style":1053},[3697],{"type":998,"value":3698},"'debug'",{"type":993,"tag":1021,"props":3700,"children":3701},{"style":1036},[3702],{"type":998,"value":1061},{"type":993,"tag":1021,"props":3704,"children":3705},{"style":1064},[3706],{"type":998,"value":1994},{"type":993,"tag":1021,"props":3708,"children":3709},{"style":1036},[3710],{"type":998,"value":1072},{"type":993,"tag":1021,"props":3712,"children":3713},{"style":1053},[3714],{"type":998,"value":3715},"'port'",{"type":993,"tag":1021,"props":3717,"children":3718},{"style":1036},[3719],{"type":998,"value":1061},{"type":993,"tag":1021,"props":3721,"children":3722},{"style":1064},[3723],{"type":998,"value":3724},"8080",{"type":993,"tag":1021,"props":3726,"children":3727},{"style":1036},[3728],{"type":998,"value":1072},{"type":993,"tag":1021,"props":3730,"children":3731},{"style":1053},[3732],{"type":998,"value":3733},"'host'",{"type":993,"tag":1021,"props":3735,"children":3736},{"style":1036},[3737],{"type":998,"value":1061},{"type":993,"tag":1021,"props":3739,"children":3740},{"style":1053},[3741],{"type":998,"value":3742},"'localhost'",{"type":993,"tag":1021,"props":3744,"children":3745},{"style":1036},[3746],{"type":998,"value":1109},{"type":993,"tag":1021,"props":3748,"children":3749},{"class":1023,"line":27},[3750],{"type":993,"tag":1021,"props":3751,"children":3752},{"emptyLinePlaceholder":13},[3753],{"type":998,"value":1117},{"type":993,"tag":1021,"props":3755,"children":3756},{"class":1023,"line":36},[3757],{"type":993,"tag":1021,"props":3758,"children":3759},{"style":1027},[3760],{"type":998,"value":3761},"# Validate configuration\n",{"type":993,"tag":1021,"props":3763,"children":3764},{"class":1023,"line":45},[3765,3770,3774,3779,3783,3787,3791],{"type":993,"tag":1021,"props":3766,"children":3767},{"style":1036},[3768],{"type":998,"value":3769},"required ",{"type":993,"tag":1021,"props":3771,"children":3772},{"style":1042},[3773],{"type":998,"value":1045},{"type":993,"tag":1021,"props":3775,"children":3776},{"style":1036},[3777],{"type":998,"value":3778}," [",{"type":993,"tag":1021,"props":3780,"children":3781},{"style":1053},[3782],{"type":998,"value":3733},{"type":993,"tag":1021,"props":3784,"children":3785},{"style":1036},[3786],{"type":998,"value":1072},{"type":993,"tag":1021,"props":3788,"children":3789},{"style":1053},[3790],{"type":998,"value":3715},{"type":993,"tag":1021,"props":3792,"children":3793},{"style":1036},[3794],{"type":998,"value":3795},"]\n",{"type":993,"tag":1021,"props":3797,"children":3798},{"class":1023,"line":54},[3799,3803,3808,3812],{"type":993,"tag":1021,"props":3800,"children":3801},{"style":1042},[3802],{"type":998,"value":1133},{"type":993,"tag":1021,"props":3804,"children":3805},{"style":1036},[3806],{"type":998,"value":3807}," setting ",{"type":993,"tag":1021,"props":3809,"children":3810},{"style":1042},[3811],{"type":998,"value":1143},{"type":993,"tag":1021,"props":3813,"children":3814},{"style":1036},[3815],{"type":998,"value":3816}," required:\n",{"type":993,"tag":1021,"props":3818,"children":3819},{"class":1023,"line":63},[3820,3824,3828,3833,3838],{"type":993,"tag":1021,"props":3821,"children":3822},{"style":1042},[3823],{"type":998,"value":2135},{"type":993,"tag":1021,"props":3825,"children":3826},{"style":1036},[3827],{"type":998,"value":3807},{"type":993,"tag":1021,"props":3829,"children":3830},{"style":1042},[3831],{"type":998,"value":3832},"not",{"type":993,"tag":1021,"props":3834,"children":3835},{"style":1042},[3836],{"type":998,"value":3837}," in",{"type":993,"tag":1021,"props":3839,"children":3840},{"style":1036},[3841],{"type":998,"value":3842}," config:\n",{"type":993,"tag":1021,"props":3844,"children":3845},{"class":1023,"line":72},[3846,3850,3854,3858,3863,3867,3871,3875,3879],{"type":993,"tag":1021,"props":3847,"children":3848},{"style":1064},[3849],{"type":998,"value":2163},{"type":993,"tag":1021,"props":3851,"children":3852},{"style":1036},[3853],{"type":998,"value":1161},{"type":993,"tag":1021,"props":3855,"children":3856},{"style":1042},[3857],{"type":998,"value":1166},{"type":993,"tag":1021,"props":3859,"children":3860},{"style":1053},[3861],{"type":998,"value":3862},"\"Missing required setting: ",{"type":993,"tag":1021,"props":3864,"children":3865},{"style":1064},[3866],{"type":998,"value":1176},{"type":993,"tag":1021,"props":3868,"children":3869},{"style":1036},[3870],{"type":998,"value":2063},{"type":993,"tag":1021,"props":3872,"children":3873},{"style":1064},[3874],{"type":998,"value":1186},{"type":993,"tag":1021,"props":3876,"children":3877},{"style":1053},[3878],{"type":998,"value":1171},{"type":993,"tag":1021,"props":3880,"children":3881},{"style":1036},[3882],{"type":998,"value":1212},{"type":993,"tag":3386,"props":3884,"children":3886},{"id":3885},"data-transformation",[3887],{"type":998,"value":3888},"Data Transformation",{"type":993,"tag":1001,"props":3890,"children":3891},{},[3892],{"type":998,"value":3893},"Converting between data formats requires iteration to restructure dictionary content appropriately.",{"type":993,"tag":1007,"props":3895,"children":3896},{},[3897],{"type":993,"tag":1011,"props":3898,"children":3900},{"className":1013,"code":3899,"language":6,"meta":8,"style":8},"# Convert to list format\nuser_data = {'name': 'John', 'age': 30, 'city': 'Boston'}\nformatted = [f\"{key}: {value}\" for key, value in user_data.items()]\nprint(\"Formatted data:\", formatted)\n",[3901],{"type":993,"tag":1017,"props":3902,"children":3903},{"__ignoreMap":8},[3904,3912,3981,4056],{"type":993,"tag":1021,"props":3905,"children":3906},{"class":1023,"line":12},[3907],{"type":993,"tag":1021,"props":3908,"children":3909},{"style":1027},[3910],{"type":998,"value":3911},"# Convert to list format\n",{"type":993,"tag":1021,"props":3913,"children":3914},{"class":1023,"line":27},[3915,3920,3924,3928,3933,3937,3942,3946,3951,3955,3959,3963,3968,3972,3977],{"type":993,"tag":1021,"props":3916,"children":3917},{"style":1036},[3918],{"type":998,"value":3919},"user_data ",{"type":993,"tag":1021,"props":3921,"children":3922},{"style":1042},[3923],{"type":998,"value":1045},{"type":993,"tag":1021,"props":3925,"children":3926},{"style":1036},[3927],{"type":998,"value":1050},{"type":993,"tag":1021,"props":3929,"children":3930},{"style":1053},[3931],{"type":998,"value":3932},"'name'",{"type":993,"tag":1021,"props":3934,"children":3935},{"style":1036},[3936],{"type":998,"value":1061},{"type":993,"tag":1021,"props":3938,"children":3939},{"style":1053},[3940],{"type":998,"value":3941},"'John'",{"type":993,"tag":1021,"props":3943,"children":3944},{"style":1036},[3945],{"type":998,"value":1072},{"type":993,"tag":1021,"props":3947,"children":3948},{"style":1053},[3949],{"type":998,"value":3950},"'age'",{"type":993,"tag":1021,"props":3952,"children":3953},{"style":1036},[3954],{"type":998,"value":1061},{"type":993,"tag":1021,"props":3956,"children":3957},{"style":1064},[3958],{"type":998,"value":1375},{"type":993,"tag":1021,"props":3960,"children":3961},{"style":1036},[3962],{"type":998,"value":1072},{"type":993,"tag":1021,"props":3964,"children":3965},{"style":1053},[3966],{"type":998,"value":3967},"'city'",{"type":993,"tag":1021,"props":3969,"children":3970},{"style":1036},[3971],{"type":998,"value":1061},{"type":993,"tag":1021,"props":3973,"children":3974},{"style":1053},[3975],{"type":998,"value":3976},"'Boston'",{"type":993,"tag":1021,"props":3978,"children":3979},{"style":1036},[3980],{"type":998,"value":1109},{"type":993,"tag":1021,"props":3982,"children":3983},{"class":1023,"line":36},[3984,3989,3993,3997,4001,4005,4009,4014,4018,4022,4026,4030,4034,4038,4042,4047,4051],{"type":993,"tag":1021,"props":3985,"children":3986},{"style":1036},[3987],{"type":998,"value":3988},"formatted ",{"type":993,"tag":1021,"props":3990,"children":3991},{"style":1042},[3992],{"type":998,"value":1045},{"type":993,"tag":1021,"props":3994,"children":3995},{"style":1036},[3996],{"type":998,"value":3778},{"type":993,"tag":1021,"props":3998,"children":3999},{"style":1042},[4000],{"type":998,"value":1166},{"type":993,"tag":1021,"props":4002,"children":4003},{"style":1053},[4004],{"type":998,"value":1171},{"type":993,"tag":1021,"props":4006,"children":4007},{"style":1064},[4008],{"type":998,"value":1176},{"type":993,"tag":1021,"props":4010,"children":4011},{"style":1036},[4012],{"type":998,"value":4013},"key",{"type":993,"tag":1021,"props":4015,"children":4016},{"style":1064},[4017],{"type":998,"value":1186},{"type":993,"tag":1021,"props":4019,"children":4020},{"style":1053},[4021],{"type":998,"value":1061},{"type":993,"tag":1021,"props":4023,"children":4024},{"style":1064},[4025],{"type":998,"value":1176},{"type":993,"tag":1021,"props":4027,"children":4028},{"style":1036},[4029],{"type":998,"value":2081},{"type":993,"tag":1021,"props":4031,"children":4032},{"style":1064},[4033],{"type":998,"value":1186},{"type":993,"tag":1021,"props":4035,"children":4036},{"style":1053},[4037],{"type":998,"value":1171},{"type":993,"tag":1021,"props":4039,"children":4040},{"style":1042},[4041],{"type":998,"value":2855},{"type":993,"tag":1021,"props":4043,"children":4044},{"style":1036},[4045],{"type":998,"value":4046}," key, value ",{"type":993,"tag":1021,"props":4048,"children":4049},{"style":1042},[4050],{"type":998,"value":1143},{"type":993,"tag":1021,"props":4052,"children":4053},{"style":1036},[4054],{"type":998,"value":4055}," user_data.items()]\n",{"type":993,"tag":1021,"props":4057,"children":4058},{"class":1023,"line":45},[4059,4063,4067,4072],{"type":993,"tag":1021,"props":4060,"children":4061},{"style":1064},[4062],{"type":998,"value":1788},{"type":993,"tag":1021,"props":4064,"children":4065},{"style":1036},[4066],{"type":998,"value":1161},{"type":993,"tag":1021,"props":4068,"children":4069},{"style":1053},[4070],{"type":998,"value":4071},"\"Formatted data:\"",{"type":993,"tag":1021,"props":4073,"children":4074},{"style":1036},[4075],{"type":998,"value":4076},", formatted)\n",{"type":993,"tag":1307,"props":4078,"children":4080},{"id":4079},"️-iteration-best-practices",[4081],{"type":998,"value":4082},"⚠️ Iteration Best Practices",{"type":993,"tag":3386,"props":4084,"children":4086},{"id":4085},"safe-modification-during-iteration",[4087],{"type":998,"value":4088},"Safe Modification During Iteration",{"type":993,"tag":1001,"props":4090,"children":4091},{},[4092],{"type":998,"value":4093},"Modifying dictionaries during iteration requires careful approaches to avoid runtime errors. We collect keys first to ensure safe modification.",{"type":993,"tag":1007,"props":4095,"children":4096},{},[4097],{"type":993,"tag":1011,"props":4098,"children":4100},{"className":1013,"code":4099,"language":6,"meta":8,"style":8},"scores = {'Alice': 85, 'Bob': 65, 'Charlie': 92}\n\n# Safe way to modify during iteration\nto_update = []\nfor student, score in scores.items():\n    if score \u003C 70:\n        to_update.append(student)\n\nfor student in to_update:\n    scores[student] += 10  # Grade curve\n\nprint(\"Updated scores:\", scores)\n",[4101],{"type":993,"tag":1017,"props":4102,"children":4103},{"__ignoreMap":8},[4104,4169,4176,4184,4200,4221,4246,4254,4261,4281,4304,4311],{"type":993,"tag":1021,"props":4105,"children":4106},{"class":1023,"line":12},[4107,4112,4116,4120,4124,4128,4132,4136,4140,4144,4149,4153,4157,4161,4165],{"type":993,"tag":1021,"props":4108,"children":4109},{"style":1036},[4110],{"type":998,"value":4111},"scores ",{"type":993,"tag":1021,"props":4113,"children":4114},{"style":1042},[4115],{"type":998,"value":1045},{"type":993,"tag":1021,"props":4117,"children":4118},{"style":1036},[4119],{"type":998,"value":1050},{"type":993,"tag":1021,"props":4121,"children":4122},{"style":1053},[4123],{"type":998,"value":1056},{"type":993,"tag":1021,"props":4125,"children":4126},{"style":1036},[4127],{"type":998,"value":1061},{"type":993,"tag":1021,"props":4129,"children":4130},{"style":1064},[4131],{"type":998,"value":1067},{"type":993,"tag":1021,"props":4133,"children":4134},{"style":1036},[4135],{"type":998,"value":1072},{"type":993,"tag":1021,"props":4137,"children":4138},{"style":1053},[4139],{"type":998,"value":1077},{"type":993,"tag":1021,"props":4141,"children":4142},{"style":1036},[4143],{"type":998,"value":1061},{"type":993,"tag":1021,"props":4145,"children":4146},{"style":1064},[4147],{"type":998,"value":4148},"65",{"type":993,"tag":1021,"props":4150,"children":4151},{"style":1036},[4152],{"type":998,"value":1072},{"type":993,"tag":1021,"props":4154,"children":4155},{"style":1053},[4156],{"type":998,"value":1095},{"type":993,"tag":1021,"props":4158,"children":4159},{"style":1036},[4160],{"type":998,"value":1061},{"type":993,"tag":1021,"props":4162,"children":4163},{"style":1064},[4164],{"type":998,"value":1086},{"type":993,"tag":1021,"props":4166,"children":4167},{"style":1036},[4168],{"type":998,"value":1109},{"type":993,"tag":1021,"props":4170,"children":4171},{"class":1023,"line":27},[4172],{"type":993,"tag":1021,"props":4173,"children":4174},{"emptyLinePlaceholder":13},[4175],{"type":998,"value":1117},{"type":993,"tag":1021,"props":4177,"children":4178},{"class":1023,"line":36},[4179],{"type":993,"tag":1021,"props":4180,"children":4181},{"style":1027},[4182],{"type":998,"value":4183},"# Safe way to modify during iteration\n",{"type":993,"tag":1021,"props":4185,"children":4186},{"class":1023,"line":45},[4187,4192,4196],{"type":993,"tag":1021,"props":4188,"children":4189},{"style":1036},[4190],{"type":998,"value":4191},"to_update ",{"type":993,"tag":1021,"props":4193,"children":4194},{"style":1042},[4195],{"type":998,"value":1045},{"type":993,"tag":1021,"props":4197,"children":4198},{"style":1036},[4199],{"type":998,"value":2519},{"type":993,"tag":1021,"props":4201,"children":4202},{"class":1023,"line":54},[4203,4207,4212,4216],{"type":993,"tag":1021,"props":4204,"children":4205},{"style":1042},[4206],{"type":998,"value":1133},{"type":993,"tag":1021,"props":4208,"children":4209},{"style":1036},[4210],{"type":998,"value":4211}," student, score ",{"type":993,"tag":1021,"props":4213,"children":4214},{"style":1042},[4215],{"type":998,"value":1143},{"type":993,"tag":1021,"props":4217,"children":4218},{"style":1036},[4219],{"type":998,"value":4220}," scores.items():\n",{"type":993,"tag":1021,"props":4222,"children":4223},{"class":1023,"line":63},[4224,4228,4233,4238,4242],{"type":993,"tag":1021,"props":4225,"children":4226},{"style":1042},[4227],{"type":998,"value":2135},{"type":993,"tag":1021,"props":4229,"children":4230},{"style":1036},[4231],{"type":998,"value":4232}," score ",{"type":993,"tag":1021,"props":4234,"children":4235},{"style":1042},[4236],{"type":998,"value":4237},"\u003C",{"type":993,"tag":1021,"props":4239,"children":4240},{"style":1064},[4241],{"type":998,"value":2561},{"type":993,"tag":1021,"props":4243,"children":4244},{"style":1036},[4245],{"type":998,"value":2566},{"type":993,"tag":1021,"props":4247,"children":4248},{"class":1023,"line":72},[4249],{"type":993,"tag":1021,"props":4250,"children":4251},{"style":1036},[4252],{"type":998,"value":4253},"        to_update.append(student)\n",{"type":993,"tag":1021,"props":4255,"children":4256},{"class":1023,"line":81},[4257],{"type":993,"tag":1021,"props":4258,"children":4259},{"emptyLinePlaceholder":13},[4260],{"type":998,"value":1117},{"type":993,"tag":1021,"props":4262,"children":4263},{"class":1023,"line":91},[4264,4268,4272,4276],{"type":993,"tag":1021,"props":4265,"children":4266},{"style":1042},[4267],{"type":998,"value":1133},{"type":993,"tag":1021,"props":4269,"children":4270},{"style":1036},[4271],{"type":998,"value":1138},{"type":993,"tag":1021,"props":4273,"children":4274},{"style":1042},[4275],{"type":998,"value":1143},{"type":993,"tag":1021,"props":4277,"children":4278},{"style":1036},[4279],{"type":998,"value":4280}," to_update:\n",{"type":993,"tag":1021,"props":4282,"children":4283},{"class":1023,"line":100},[4284,4289,4294,4299],{"type":993,"tag":1021,"props":4285,"children":4286},{"style":1036},[4287],{"type":998,"value":4288},"    scores[student] ",{"type":993,"tag":1021,"props":4290,"children":4291},{"style":1042},[4292],{"type":998,"value":4293},"+=",{"type":993,"tag":1021,"props":4295,"children":4296},{"style":1064},[4297],{"type":998,"value":4298}," 10",{"type":993,"tag":1021,"props":4300,"children":4301},{"style":1027},[4302],{"type":998,"value":4303},"  # Grade curve\n",{"type":993,"tag":1021,"props":4305,"children":4306},{"class":1023,"line":109},[4307],{"type":993,"tag":1021,"props":4308,"children":4309},{"emptyLinePlaceholder":13},[4310],{"type":998,"value":1117},{"type":993,"tag":1021,"props":4312,"children":4313},{"class":1023,"line":118},[4314,4318,4322,4327],{"type":993,"tag":1021,"props":4315,"children":4316},{"style":1064},[4317],{"type":998,"value":1788},{"type":993,"tag":1021,"props":4319,"children":4320},{"style":1036},[4321],{"type":998,"value":1161},{"type":993,"tag":1021,"props":4323,"children":4324},{"style":1053},[4325],{"type":998,"value":4326},"\"Updated scores:\"",{"type":993,"tag":1021,"props":4328,"children":4329},{"style":1036},[4330],{"type":998,"value":4331},", scores)\n",{"type":993,"tag":3386,"props":4333,"children":4335},{"id":4334},"performance-considerations",[4336],{"type":998,"value":4337},"Performance Considerations",{"type":993,"tag":1001,"props":4339,"children":4340},{},[4341],{"type":998,"value":4342},"Different iteration methods have varying performance characteristics depending on dictionary size and operation type.",{"type":993,"tag":1007,"props":4344,"children":4345},{},[4346],{"type":993,"tag":1011,"props":4347,"children":4349},{"className":1013,"code":4348,"language":6,"meta":8,"style":8},"large_dict = {f\"key_{i}\": i for i in range(1000)}\n\n# Efficient value processing\ntotal = sum(large_dict.values())  # Fast for large dictionaries\n\n# Memory-efficient key checking\nfound_keys = [key for key in large_dict if key.endswith('_100')]\nprint(\"Found keys:\", len(found_keys))\n",[4350],{"type":993,"tag":1017,"props":4351,"children":4352},{"__ignoreMap":8},[4353,4432,4439,4447,4472,4479,4487,4541],{"type":993,"tag":1021,"props":4354,"children":4355},{"class":1023,"line":12},[4356,4361,4365,4369,4373,4378,4382,4387,4391,4395,4400,4404,4409,4413,4418,4422,4427],{"type":993,"tag":1021,"props":4357,"children":4358},{"style":1036},[4359],{"type":998,"value":4360},"large_dict ",{"type":993,"tag":1021,"props":4362,"children":4363},{"style":1042},[4364],{"type":998,"value":1045},{"type":993,"tag":1021,"props":4366,"children":4367},{"style":1036},[4368],{"type":998,"value":1050},{"type":993,"tag":1021,"props":4370,"children":4371},{"style":1042},[4372],{"type":998,"value":1166},{"type":993,"tag":1021,"props":4374,"children":4375},{"style":1053},[4376],{"type":998,"value":4377},"\"key_",{"type":993,"tag":1021,"props":4379,"children":4380},{"style":1064},[4381],{"type":998,"value":1176},{"type":993,"tag":1021,"props":4383,"children":4384},{"style":1036},[4385],{"type":998,"value":4386},"i",{"type":993,"tag":1021,"props":4388,"children":4389},{"style":1064},[4390],{"type":998,"value":1186},{"type":993,"tag":1021,"props":4392,"children":4393},{"style":1053},[4394],{"type":998,"value":1171},{"type":993,"tag":1021,"props":4396,"children":4397},{"style":1036},[4398],{"type":998,"value":4399},": i ",{"type":993,"tag":1021,"props":4401,"children":4402},{"style":1042},[4403],{"type":998,"value":1133},{"type":993,"tag":1021,"props":4405,"children":4406},{"style":1036},[4407],{"type":998,"value":4408}," i ",{"type":993,"tag":1021,"props":4410,"children":4411},{"style":1042},[4412],{"type":998,"value":1143},{"type":993,"tag":1021,"props":4414,"children":4415},{"style":1064},[4416],{"type":998,"value":4417}," range",{"type":993,"tag":1021,"props":4419,"children":4420},{"style":1036},[4421],{"type":998,"value":1161},{"type":993,"tag":1021,"props":4423,"children":4424},{"style":1064},[4425],{"type":998,"value":4426},"1000",{"type":993,"tag":1021,"props":4428,"children":4429},{"style":1036},[4430],{"type":998,"value":4431},")}\n",{"type":993,"tag":1021,"props":4433,"children":4434},{"class":1023,"line":27},[4435],{"type":993,"tag":1021,"props":4436,"children":4437},{"emptyLinePlaceholder":13},[4438],{"type":998,"value":1117},{"type":993,"tag":1021,"props":4440,"children":4441},{"class":1023,"line":36},[4442],{"type":993,"tag":1021,"props":4443,"children":4444},{"style":1027},[4445],{"type":998,"value":4446},"# Efficient value processing\n",{"type":993,"tag":1021,"props":4448,"children":4449},{"class":1023,"line":45},[4450,4454,4458,4462,4467],{"type":993,"tag":1021,"props":4451,"children":4452},{"style":1036},[4453],{"type":998,"value":1734},{"type":993,"tag":1021,"props":4455,"children":4456},{"style":1042},[4457],{"type":998,"value":1045},{"type":993,"tag":1021,"props":4459,"children":4460},{"style":1064},[4461],{"type":998,"value":1743},{"type":993,"tag":1021,"props":4463,"children":4464},{"style":1036},[4465],{"type":998,"value":4466},"(large_dict.values())  ",{"type":993,"tag":1021,"props":4468,"children":4469},{"style":1027},[4470],{"type":998,"value":4471},"# Fast for large dictionaries\n",{"type":993,"tag":1021,"props":4473,"children":4474},{"class":1023,"line":54},[4475],{"type":993,"tag":1021,"props":4476,"children":4477},{"emptyLinePlaceholder":13},[4478],{"type":998,"value":1117},{"type":993,"tag":1021,"props":4480,"children":4481},{"class":1023,"line":63},[4482],{"type":993,"tag":1021,"props":4483,"children":4484},{"style":1027},[4485],{"type":998,"value":4486},"# Memory-efficient key checking\n",{"type":993,"tag":1021,"props":4488,"children":4489},{"class":1023,"line":72},[4490,4495,4499,4504,4508,4513,4517,4522,4526,4531,4536],{"type":993,"tag":1021,"props":4491,"children":4492},{"style":1036},[4493],{"type":998,"value":4494},"found_keys ",{"type":993,"tag":1021,"props":4496,"children":4497},{"style":1042},[4498],{"type":998,"value":1045},{"type":993,"tag":1021,"props":4500,"children":4501},{"style":1036},[4502],{"type":998,"value":4503}," [key ",{"type":993,"tag":1021,"props":4505,"children":4506},{"style":1042},[4507],{"type":998,"value":1133},{"type":993,"tag":1021,"props":4509,"children":4510},{"style":1036},[4511],{"type":998,"value":4512}," key ",{"type":993,"tag":1021,"props":4514,"children":4515},{"style":1042},[4516],{"type":998,"value":1143},{"type":993,"tag":1021,"props":4518,"children":4519},{"style":1036},[4520],{"type":998,"value":4521}," large_dict ",{"type":993,"tag":1021,"props":4523,"children":4524},{"style":1042},[4525],{"type":998,"value":2943},{"type":993,"tag":1021,"props":4527,"children":4528},{"style":1036},[4529],{"type":998,"value":4530}," key.endswith(",{"type":993,"tag":1021,"props":4532,"children":4533},{"style":1053},[4534],{"type":998,"value":4535},"'_100'",{"type":993,"tag":1021,"props":4537,"children":4538},{"style":1036},[4539],{"type":998,"value":4540},")]\n",{"type":993,"tag":1021,"props":4542,"children":4543},{"class":1023,"line":81},[4544,4548,4552,4557,4561,4566],{"type":993,"tag":1021,"props":4545,"children":4546},{"style":1064},[4547],{"type":998,"value":1788},{"type":993,"tag":1021,"props":4549,"children":4550},{"style":1036},[4551],{"type":998,"value":1161},{"type":993,"tag":1021,"props":4553,"children":4554},{"style":1053},[4555],{"type":998,"value":4556},"\"Found keys:\"",{"type":993,"tag":1021,"props":4558,"children":4559},{"style":1036},[4560],{"type":998,"value":1072},{"type":993,"tag":1021,"props":4562,"children":4563},{"style":1064},[4564],{"type":998,"value":4565},"len",{"type":993,"tag":1021,"props":4567,"children":4568},{"style":1036},[4569],{"type":998,"value":4570},"(found_keys))\n",{"type":993,"tag":1569,"props":4572,"children":4576},{"emoji":4573,"title":4574,"type":4575},"✅","Best Practices","success",[4577,4587,4597,4607],{"type":993,"tag":1001,"props":4578,"children":4579},{},[4580,4585],{"type":993,"tag":1579,"props":4581,"children":4582},{},[4583],{"type":998,"value":4584},"Choose Right Method:",{"type":998,"value":4586}," Use keys() for key-based logic, values() for data analysis, items() for complete processing.",{"type":993,"tag":1001,"props":4588,"children":4589},{},[4590,4595],{"type":993,"tag":1579,"props":4591,"children":4592},{},[4593],{"type":998,"value":4594},"Avoid Modification:",{"type":998,"value":4596}," Don't modify dictionaries during iteration; collect keys first if needed.",{"type":993,"tag":1001,"props":4598,"children":4599},{},[4600,4605],{"type":993,"tag":1579,"props":4601,"children":4602},{},[4603],{"type":998,"value":4604},"Use Comprehensions:",{"type":998,"value":4606}," Dictionary comprehensions offer cleaner syntax for transformations.",{"type":993,"tag":1001,"props":4608,"children":4609},{},[4610,4615],{"type":993,"tag":1579,"props":4611,"children":4612},{},[4613],{"type":998,"value":4614},"Consider Memory:",{"type":998,"value":4616}," Large dictionaries benefit from efficient iteration patterns.",{"type":993,"tag":4618,"props":4619,"children":4621},"content-exercise",{":widget-view":4620,"category":6,"id":574},"true",[],{"type":993,"tag":4623,"props":4624,"children":4627},"exercise",{"hint":4625,"prompt":4626},"Use items() to get both student names and their grades, then compare grades for the subject","Create a function that finds the student with the highest grade in a given subject. Loop through the student grades and return the name of the top student.",[4628],{"type":993,"tag":1011,"props":4629,"children":4631},{"className":1013,"code":4630,"language":6,"meta":8,"style":8},"def find_top_student(students, subject):\n    # TODO: Find the student with the highest grade in the given subject\n    # TODO: Return the student's name\n    pass\n\n# Test data\nstudents = {\n    'Alice': {'math': 85, 'science': 92},\n    'Bob': {'math': 78, 'science': 88},\n    'Charlie': {'math': 91, 'science': 85}\n}\n\ntop_math = find_top_student(students, 'math')\ntop_science = find_top_student(students, 'science')\n\nprint(f\"Best in math: {top_math}\")\nprint(f\"Best in science: {top_science}\")\n",[4632],{"type":993,"tag":1017,"props":4633,"children":4634},{"__ignoreMap":8},[4635,4654,4672,4688,4696,4703,4711,4727,4771,4816,4861,4868,4875,4900,4924,4931,4972],{"type":993,"tag":1021,"props":4636,"children":4637},{"class":1023,"line":12},[4638,4643,4649],{"type":993,"tag":1021,"props":4639,"children":4640},{"style":1042},[4641],{"type":998,"value":4642},"def",{"type":993,"tag":1021,"props":4644,"children":4646},{"style":4645},"--shiki-default:#6F42C1;--shiki-app-dark-mode:#B392F0",[4647],{"type":998,"value":4648}," find_top_student",{"type":993,"tag":1021,"props":4650,"children":4651},{"style":1036},[4652],{"type":998,"value":4653},"(students, subject):\n",{"type":993,"tag":1021,"props":4655,"children":4656},{"class":1023,"line":27},[4657,4662,4667],{"type":993,"tag":1021,"props":4658,"children":4659},{"style":1027},[4660],{"type":998,"value":4661},"    # ",{"type":993,"tag":1021,"props":4663,"children":4664},{"style":1042},[4665],{"type":998,"value":4666},"TODO",{"type":993,"tag":1021,"props":4668,"children":4669},{"style":1027},[4670],{"type":998,"value":4671},": Find the student with the highest grade in the given subject\n",{"type":993,"tag":1021,"props":4673,"children":4674},{"class":1023,"line":36},[4675,4679,4683],{"type":993,"tag":1021,"props":4676,"children":4677},{"style":1027},[4678],{"type":998,"value":4661},{"type":993,"tag":1021,"props":4680,"children":4681},{"style":1042},[4682],{"type":998,"value":4666},{"type":993,"tag":1021,"props":4684,"children":4685},{"style":1027},[4686],{"type":998,"value":4687},": Return the student's name\n",{"type":993,"tag":1021,"props":4689,"children":4690},{"class":1023,"line":45},[4691],{"type":993,"tag":1021,"props":4692,"children":4693},{"style":1042},[4694],{"type":998,"value":4695},"    pass\n",{"type":993,"tag":1021,"props":4697,"children":4698},{"class":1023,"line":54},[4699],{"type":993,"tag":1021,"props":4700,"children":4701},{"emptyLinePlaceholder":13},[4702],{"type":998,"value":1117},{"type":993,"tag":1021,"props":4704,"children":4705},{"class":1023,"line":63},[4706],{"type":993,"tag":1021,"props":4707,"children":4708},{"style":1027},[4709],{"type":998,"value":4710},"# Test data\n",{"type":993,"tag":1021,"props":4712,"children":4713},{"class":1023,"line":72},[4714,4719,4723],{"type":993,"tag":1021,"props":4715,"children":4716},{"style":1036},[4717],{"type":998,"value":4718},"students ",{"type":993,"tag":1021,"props":4720,"children":4721},{"style":1042},[4722],{"type":998,"value":1045},{"type":993,"tag":1021,"props":4724,"children":4725},{"style":1036},[4726],{"type":998,"value":3021},{"type":993,"tag":1021,"props":4728,"children":4729},{"class":1023,"line":81},[4730,4735,4739,4743,4747,4751,4755,4759,4763,4767],{"type":993,"tag":1021,"props":4731,"children":4732},{"style":1053},[4733],{"type":998,"value":4734},"    'Alice'",{"type":993,"tag":1021,"props":4736,"children":4737},{"style":1036},[4738],{"type":998,"value":3034},{"type":993,"tag":1021,"props":4740,"children":4741},{"style":1053},[4742],{"type":998,"value":1665},{"type":993,"tag":1021,"props":4744,"children":4745},{"style":1036},[4746],{"type":998,"value":1061},{"type":993,"tag":1021,"props":4748,"children":4749},{"style":1064},[4750],{"type":998,"value":1067},{"type":993,"tag":1021,"props":4752,"children":4753},{"style":1036},[4754],{"type":998,"value":1072},{"type":993,"tag":1021,"props":4756,"children":4757},{"style":1053},[4758],{"type":998,"value":1682},{"type":993,"tag":1021,"props":4760,"children":4761},{"style":1036},[4762],{"type":998,"value":1061},{"type":993,"tag":1021,"props":4764,"children":4765},{"style":1064},[4766],{"type":998,"value":1086},{"type":993,"tag":1021,"props":4768,"children":4769},{"style":1036},[4770],{"type":998,"value":3071},{"type":993,"tag":1021,"props":4772,"children":4773},{"class":1023,"line":91},[4774,4779,4783,4787,4791,4795,4799,4803,4807,4812],{"type":993,"tag":1021,"props":4775,"children":4776},{"style":1053},[4777],{"type":998,"value":4778},"    'Bob'",{"type":993,"tag":1021,"props":4780,"children":4781},{"style":1036},[4782],{"type":998,"value":3034},{"type":993,"tag":1021,"props":4784,"children":4785},{"style":1053},[4786],{"type":998,"value":1665},{"type":993,"tag":1021,"props":4788,"children":4789},{"style":1036},[4790],{"type":998,"value":1061},{"type":993,"tag":1021,"props":4792,"children":4793},{"style":1064},[4794],{"type":998,"value":1104},{"type":993,"tag":1021,"props":4796,"children":4797},{"style":1036},[4798],{"type":998,"value":1072},{"type":993,"tag":1021,"props":4800,"children":4801},{"style":1053},[4802],{"type":998,"value":1682},{"type":993,"tag":1021,"props":4804,"children":4805},{"style":1036},[4806],{"type":998,"value":1061},{"type":993,"tag":1021,"props":4808,"children":4809},{"style":1064},[4810],{"type":998,"value":4811},"88",{"type":993,"tag":1021,"props":4813,"children":4814},{"style":1036},[4815],{"type":998,"value":3071},{"type":993,"tag":1021,"props":4817,"children":4818},{"class":1023,"line":100},[4819,4824,4828,4832,4836,4841,4845,4849,4853,4857],{"type":993,"tag":1021,"props":4820,"children":4821},{"style":1053},[4822],{"type":998,"value":4823},"    'Charlie'",{"type":993,"tag":1021,"props":4825,"children":4826},{"style":1036},[4827],{"type":998,"value":3034},{"type":993,"tag":1021,"props":4829,"children":4830},{"style":1053},[4831],{"type":998,"value":1665},{"type":993,"tag":1021,"props":4833,"children":4834},{"style":1036},[4835],{"type":998,"value":1061},{"type":993,"tag":1021,"props":4837,"children":4838},{"style":1064},[4839],{"type":998,"value":4840},"91",{"type":993,"tag":1021,"props":4842,"children":4843},{"style":1036},[4844],{"type":998,"value":1072},{"type":993,"tag":1021,"props":4846,"children":4847},{"style":1053},[4848],{"type":998,"value":1682},{"type":993,"tag":1021,"props":4850,"children":4851},{"style":1036},[4852],{"type":998,"value":1061},{"type":993,"tag":1021,"props":4854,"children":4855},{"style":1064},[4856],{"type":998,"value":1067},{"type":993,"tag":1021,"props":4858,"children":4859},{"style":1036},[4860],{"type":998,"value":1109},{"type":993,"tag":1021,"props":4862,"children":4863},{"class":1023,"line":109},[4864],{"type":993,"tag":1021,"props":4865,"children":4866},{"style":1036},[4867],{"type":998,"value":1109},{"type":993,"tag":1021,"props":4869,"children":4870},{"class":1023,"line":118},[4871],{"type":993,"tag":1021,"props":4872,"children":4873},{"emptyLinePlaceholder":13},[4874],{"type":998,"value":1117},{"type":993,"tag":1021,"props":4876,"children":4877},{"class":1023,"line":127},[4878,4883,4887,4892,4896],{"type":993,"tag":1021,"props":4879,"children":4880},{"style":1036},[4881],{"type":998,"value":4882},"top_math ",{"type":993,"tag":1021,"props":4884,"children":4885},{"style":1042},[4886],{"type":998,"value":1045},{"type":993,"tag":1021,"props":4888,"children":4889},{"style":1036},[4890],{"type":998,"value":4891}," find_top_student(students, ",{"type":993,"tag":1021,"props":4893,"children":4894},{"style":1053},[4895],{"type":998,"value":1665},{"type":993,"tag":1021,"props":4897,"children":4898},{"style":1036},[4899],{"type":998,"value":1212},{"type":993,"tag":1021,"props":4901,"children":4902},{"class":1023,"line":136},[4903,4908,4912,4916,4920],{"type":993,"tag":1021,"props":4904,"children":4905},{"style":1036},[4906],{"type":998,"value":4907},"top_science ",{"type":993,"tag":1021,"props":4909,"children":4910},{"style":1042},[4911],{"type":998,"value":1045},{"type":993,"tag":1021,"props":4913,"children":4914},{"style":1036},[4915],{"type":998,"value":4891},{"type":993,"tag":1021,"props":4917,"children":4918},{"style":1053},[4919],{"type":998,"value":1682},{"type":993,"tag":1021,"props":4921,"children":4922},{"style":1036},[4923],{"type":998,"value":1212},{"type":993,"tag":1021,"props":4925,"children":4926},{"class":1023,"line":146},[4927],{"type":993,"tag":1021,"props":4928,"children":4929},{"emptyLinePlaceholder":13},[4930],{"type":998,"value":1117},{"type":993,"tag":1021,"props":4932,"children":4933},{"class":1023,"line":155},[4934,4938,4942,4946,4951,4955,4960,4964,4968],{"type":993,"tag":1021,"props":4935,"children":4936},{"style":1064},[4937],{"type":998,"value":1788},{"type":993,"tag":1021,"props":4939,"children":4940},{"style":1036},[4941],{"type":998,"value":1161},{"type":993,"tag":1021,"props":4943,"children":4944},{"style":1042},[4945],{"type":998,"value":1166},{"type":993,"tag":1021,"props":4947,"children":4948},{"style":1053},[4949],{"type":998,"value":4950},"\"Best in math: ",{"type":993,"tag":1021,"props":4952,"children":4953},{"style":1064},[4954],{"type":998,"value":1176},{"type":993,"tag":1021,"props":4956,"children":4957},{"style":1036},[4958],{"type":998,"value":4959},"top_math",{"type":993,"tag":1021,"props":4961,"children":4962},{"style":1064},[4963],{"type":998,"value":1186},{"type":993,"tag":1021,"props":4965,"children":4966},{"style":1053},[4967],{"type":998,"value":1171},{"type":993,"tag":1021,"props":4969,"children":4970},{"style":1036},[4971],{"type":998,"value":1212},{"type":993,"tag":1021,"props":4973,"children":4974},{"class":1023,"line":164},[4975,4979,4983,4987,4992,4996,5001,5005,5009],{"type":993,"tag":1021,"props":4976,"children":4977},{"style":1064},[4978],{"type":998,"value":1788},{"type":993,"tag":1021,"props":4980,"children":4981},{"style":1036},[4982],{"type":998,"value":1161},{"type":993,"tag":1021,"props":4984,"children":4985},{"style":1042},[4986],{"type":998,"value":1166},{"type":993,"tag":1021,"props":4988,"children":4989},{"style":1053},[4990],{"type":998,"value":4991},"\"Best in science: ",{"type":993,"tag":1021,"props":4993,"children":4994},{"style":1064},[4995],{"type":998,"value":1176},{"type":993,"tag":1021,"props":4997,"children":4998},{"style":1036},[4999],{"type":998,"value":5000},"top_science",{"type":993,"tag":1021,"props":5002,"children":5003},{"style":1064},[5004],{"type":998,"value":1186},{"type":993,"tag":1021,"props":5006,"children":5007},{"style":1053},[5008],{"type":998,"value":1171},{"type":993,"tag":1021,"props":5010,"children":5011},{"style":1036},[5012],{"type":998,"value":1212},{"type":993,"tag":3386,"props":5014,"children":5016},{"id":5015},"solution-and-explanation",[5017],{"type":998,"value":5018},"Solution and Explanation 💡",{"type":993,"tag":5020,"props":5021,"children":5022},"details",{},[5023,5031,5528,5536],{"type":993,"tag":5024,"props":5025,"children":5028},"summary",{"className":5026},[5027],"cursor-pointer",[5029],{"type":998,"value":5030},"Click to see the complete solution",{"type":993,"tag":1007,"props":5032,"children":5033},{},[5034],{"type":993,"tag":1011,"props":5035,"children":5037},{"className":1013,"code":5036,"language":6,"meta":8,"style":8},"def find_top_student(students, subject):\n    top_student = None\n    highest_grade = 0\n    \n    # Loop through all students and their grades\n    for student_name, grades in students.items():\n        if subject in grades:\n            if grades[subject] > highest_grade:\n                highest_grade = grades[subject]\n                top_student = student_name\n    \n    return top_student\n\n# Test data\nstudents = {\n    'Alice': {'math': 85, 'science': 92},\n    'Bob': {'math': 78, 'science': 88},\n    'Charlie': {'math': 91, 'science': 85}\n}\n\ntop_math = find_top_student(students, 'math')\ntop_science = find_top_student(students, 'science')\n\nprint(f\"Best in math: {top_math}\")\nprint(f\"Best in science: {top_science}\")\n",[5038],{"type":993,"tag":1017,"props":5039,"children":5040},{"__ignoreMap":8},[5041,5056,5073,5090,5097,5105,5127,5149,5171,5188,5205,5212,5225,5232,5239,5254,5297,5340,5383,5390,5397,5420,5443,5450,5489],{"type":993,"tag":1021,"props":5042,"children":5043},{"class":1023,"line":12},[5044,5048,5052],{"type":993,"tag":1021,"props":5045,"children":5046},{"style":1042},[5047],{"type":998,"value":4642},{"type":993,"tag":1021,"props":5049,"children":5050},{"style":4645},[5051],{"type":998,"value":4648},{"type":993,"tag":1021,"props":5053,"children":5054},{"style":1036},[5055],{"type":998,"value":4653},{"type":993,"tag":1021,"props":5057,"children":5058},{"class":1023,"line":27},[5059,5064,5068],{"type":993,"tag":1021,"props":5060,"children":5061},{"style":1036},[5062],{"type":998,"value":5063},"    top_student ",{"type":993,"tag":1021,"props":5065,"children":5066},{"style":1042},[5067],{"type":998,"value":1045},{"type":993,"tag":1021,"props":5069,"children":5070},{"style":1064},[5071],{"type":998,"value":5072}," None\n",{"type":993,"tag":1021,"props":5074,"children":5075},{"class":1023,"line":36},[5076,5081,5085],{"type":993,"tag":1021,"props":5077,"children":5078},{"style":1036},[5079],{"type":998,"value":5080},"    highest_grade ",{"type":993,"tag":1021,"props":5082,"children":5083},{"style":1042},[5084],{"type":998,"value":1045},{"type":993,"tag":1021,"props":5086,"children":5087},{"style":1064},[5088],{"type":998,"value":5089}," 0\n",{"type":993,"tag":1021,"props":5091,"children":5092},{"class":1023,"line":45},[5093],{"type":993,"tag":1021,"props":5094,"children":5095},{"style":1036},[5096],{"type":998,"value":3281},{"type":993,"tag":1021,"props":5098,"children":5099},{"class":1023,"line":54},[5100],{"type":993,"tag":1021,"props":5101,"children":5102},{"style":1027},[5103],{"type":998,"value":5104},"    # Loop through all students and their grades\n",{"type":993,"tag":1021,"props":5106,"children":5107},{"class":1023,"line":63},[5108,5113,5118,5122],{"type":993,"tag":1021,"props":5109,"children":5110},{"style":1042},[5111],{"type":998,"value":5112},"    for",{"type":993,"tag":1021,"props":5114,"children":5115},{"style":1036},[5116],{"type":998,"value":5117}," student_name, grades ",{"type":993,"tag":1021,"props":5119,"children":5120},{"style":1042},[5121],{"type":998,"value":1143},{"type":993,"tag":1021,"props":5123,"children":5124},{"style":1036},[5125],{"type":998,"value":5126}," students.items():\n",{"type":993,"tag":1021,"props":5128,"children":5129},{"class":1023,"line":72},[5130,5135,5140,5144],{"type":993,"tag":1021,"props":5131,"children":5132},{"style":1042},[5133],{"type":998,"value":5134},"        if",{"type":993,"tag":1021,"props":5136,"children":5137},{"style":1036},[5138],{"type":998,"value":5139}," subject ",{"type":993,"tag":1021,"props":5141,"children":5142},{"style":1042},[5143],{"type":998,"value":1143},{"type":993,"tag":1021,"props":5145,"children":5146},{"style":1036},[5147],{"type":998,"value":5148}," grades:\n",{"type":993,"tag":1021,"props":5150,"children":5151},{"class":1023,"line":81},[5152,5157,5162,5166],{"type":993,"tag":1021,"props":5153,"children":5154},{"style":1042},[5155],{"type":998,"value":5156},"            if",{"type":993,"tag":1021,"props":5158,"children":5159},{"style":1036},[5160],{"type":998,"value":5161}," grades[subject] ",{"type":993,"tag":1021,"props":5163,"children":5164},{"style":1042},[5165],{"type":998,"value":2953},{"type":993,"tag":1021,"props":5167,"children":5168},{"style":1036},[5169],{"type":998,"value":5170}," highest_grade:\n",{"type":993,"tag":1021,"props":5172,"children":5173},{"class":1023,"line":91},[5174,5179,5183],{"type":993,"tag":1021,"props":5175,"children":5176},{"style":1036},[5177],{"type":998,"value":5178},"                highest_grade ",{"type":993,"tag":1021,"props":5180,"children":5181},{"style":1042},[5182],{"type":998,"value":1045},{"type":993,"tag":1021,"props":5184,"children":5185},{"style":1036},[5186],{"type":998,"value":5187}," grades[subject]\n",{"type":993,"tag":1021,"props":5189,"children":5190},{"class":1023,"line":100},[5191,5196,5200],{"type":993,"tag":1021,"props":5192,"children":5193},{"style":1036},[5194],{"type":998,"value":5195},"                top_student ",{"type":993,"tag":1021,"props":5197,"children":5198},{"style":1042},[5199],{"type":998,"value":1045},{"type":993,"tag":1021,"props":5201,"children":5202},{"style":1036},[5203],{"type":998,"value":5204}," student_name\n",{"type":993,"tag":1021,"props":5206,"children":5207},{"class":1023,"line":109},[5208],{"type":993,"tag":1021,"props":5209,"children":5210},{"style":1036},[5211],{"type":998,"value":3281},{"type":993,"tag":1021,"props":5213,"children":5214},{"class":1023,"line":118},[5215,5220],{"type":993,"tag":1021,"props":5216,"children":5217},{"style":1042},[5218],{"type":998,"value":5219},"    return",{"type":993,"tag":1021,"props":5221,"children":5222},{"style":1036},[5223],{"type":998,"value":5224}," top_student\n",{"type":993,"tag":1021,"props":5226,"children":5227},{"class":1023,"line":127},[5228],{"type":993,"tag":1021,"props":5229,"children":5230},{"emptyLinePlaceholder":13},[5231],{"type":998,"value":1117},{"type":993,"tag":1021,"props":5233,"children":5234},{"class":1023,"line":136},[5235],{"type":993,"tag":1021,"props":5236,"children":5237},{"style":1027},[5238],{"type":998,"value":4710},{"type":993,"tag":1021,"props":5240,"children":5241},{"class":1023,"line":146},[5242,5246,5250],{"type":993,"tag":1021,"props":5243,"children":5244},{"style":1036},[5245],{"type":998,"value":4718},{"type":993,"tag":1021,"props":5247,"children":5248},{"style":1042},[5249],{"type":998,"value":1045},{"type":993,"tag":1021,"props":5251,"children":5252},{"style":1036},[5253],{"type":998,"value":3021},{"type":993,"tag":1021,"props":5255,"children":5256},{"class":1023,"line":155},[5257,5261,5265,5269,5273,5277,5281,5285,5289,5293],{"type":993,"tag":1021,"props":5258,"children":5259},{"style":1053},[5260],{"type":998,"value":4734},{"type":993,"tag":1021,"props":5262,"children":5263},{"style":1036},[5264],{"type":998,"value":3034},{"type":993,"tag":1021,"props":5266,"children":5267},{"style":1053},[5268],{"type":998,"value":1665},{"type":993,"tag":1021,"props":5270,"children":5271},{"style":1036},[5272],{"type":998,"value":1061},{"type":993,"tag":1021,"props":5274,"children":5275},{"style":1064},[5276],{"type":998,"value":1067},{"type":993,"tag":1021,"props":5278,"children":5279},{"style":1036},[5280],{"type":998,"value":1072},{"type":993,"tag":1021,"props":5282,"children":5283},{"style":1053},[5284],{"type":998,"value":1682},{"type":993,"tag":1021,"props":5286,"children":5287},{"style":1036},[5288],{"type":998,"value":1061},{"type":993,"tag":1021,"props":5290,"children":5291},{"style":1064},[5292],{"type":998,"value":1086},{"type":993,"tag":1021,"props":5294,"children":5295},{"style":1036},[5296],{"type":998,"value":3071},{"type":993,"tag":1021,"props":5298,"children":5299},{"class":1023,"line":164},[5300,5304,5308,5312,5316,5320,5324,5328,5332,5336],{"type":993,"tag":1021,"props":5301,"children":5302},{"style":1053},[5303],{"type":998,"value":4778},{"type":993,"tag":1021,"props":5305,"children":5306},{"style":1036},[5307],{"type":998,"value":3034},{"type":993,"tag":1021,"props":5309,"children":5310},{"style":1053},[5311],{"type":998,"value":1665},{"type":993,"tag":1021,"props":5313,"children":5314},{"style":1036},[5315],{"type":998,"value":1061},{"type":993,"tag":1021,"props":5317,"children":5318},{"style":1064},[5319],{"type":998,"value":1104},{"type":993,"tag":1021,"props":5321,"children":5322},{"style":1036},[5323],{"type":998,"value":1072},{"type":993,"tag":1021,"props":5325,"children":5326},{"style":1053},[5327],{"type":998,"value":1682},{"type":993,"tag":1021,"props":5329,"children":5330},{"style":1036},[5331],{"type":998,"value":1061},{"type":993,"tag":1021,"props":5333,"children":5334},{"style":1064},[5335],{"type":998,"value":4811},{"type":993,"tag":1021,"props":5337,"children":5338},{"style":1036},[5339],{"type":998,"value":3071},{"type":993,"tag":1021,"props":5341,"children":5342},{"class":1023,"line":173},[5343,5347,5351,5355,5359,5363,5367,5371,5375,5379],{"type":993,"tag":1021,"props":5344,"children":5345},{"style":1053},[5346],{"type":998,"value":4823},{"type":993,"tag":1021,"props":5348,"children":5349},{"style":1036},[5350],{"type":998,"value":3034},{"type":993,"tag":1021,"props":5352,"children":5353},{"style":1053},[5354],{"type":998,"value":1665},{"type":993,"tag":1021,"props":5356,"children":5357},{"style":1036},[5358],{"type":998,"value":1061},{"type":993,"tag":1021,"props":5360,"children":5361},{"style":1064},[5362],{"type":998,"value":4840},{"type":993,"tag":1021,"props":5364,"children":5365},{"style":1036},[5366],{"type":998,"value":1072},{"type":993,"tag":1021,"props":5368,"children":5369},{"style":1053},[5370],{"type":998,"value":1682},{"type":993,"tag":1021,"props":5372,"children":5373},{"style":1036},[5374],{"type":998,"value":1061},{"type":993,"tag":1021,"props":5376,"children":5377},{"style":1064},[5378],{"type":998,"value":1067},{"type":993,"tag":1021,"props":5380,"children":5381},{"style":1036},[5382],{"type":998,"value":1109},{"type":993,"tag":1021,"props":5384,"children":5385},{"class":1023,"line":182},[5386],{"type":993,"tag":1021,"props":5387,"children":5388},{"style":1036},[5389],{"type":998,"value":1109},{"type":993,"tag":1021,"props":5391,"children":5392},{"class":1023,"line":191},[5393],{"type":993,"tag":1021,"props":5394,"children":5395},{"emptyLinePlaceholder":13},[5396],{"type":998,"value":1117},{"type":993,"tag":1021,"props":5398,"children":5399},{"class":1023,"line":201},[5400,5404,5408,5412,5416],{"type":993,"tag":1021,"props":5401,"children":5402},{"style":1036},[5403],{"type":998,"value":4882},{"type":993,"tag":1021,"props":5405,"children":5406},{"style":1042},[5407],{"type":998,"value":1045},{"type":993,"tag":1021,"props":5409,"children":5410},{"style":1036},[5411],{"type":998,"value":4891},{"type":993,"tag":1021,"props":5413,"children":5414},{"style":1053},[5415],{"type":998,"value":1665},{"type":993,"tag":1021,"props":5417,"children":5418},{"style":1036},[5419],{"type":998,"value":1212},{"type":993,"tag":1021,"props":5421,"children":5422},{"class":1023,"line":210},[5423,5427,5431,5435,5439],{"type":993,"tag":1021,"props":5424,"children":5425},{"style":1036},[5426],{"type":998,"value":4907},{"type":993,"tag":1021,"props":5428,"children":5429},{"style":1042},[5430],{"type":998,"value":1045},{"type":993,"tag":1021,"props":5432,"children":5433},{"style":1036},[5434],{"type":998,"value":4891},{"type":993,"tag":1021,"props":5436,"children":5437},{"style":1053},[5438],{"type":998,"value":1682},{"type":993,"tag":1021,"props":5440,"children":5441},{"style":1036},[5442],{"type":998,"value":1212},{"type":993,"tag":1021,"props":5444,"children":5445},{"class":1023,"line":219},[5446],{"type":993,"tag":1021,"props":5447,"children":5448},{"emptyLinePlaceholder":13},[5449],{"type":998,"value":1117},{"type":993,"tag":1021,"props":5451,"children":5452},{"class":1023,"line":228},[5453,5457,5461,5465,5469,5473,5477,5481,5485],{"type":993,"tag":1021,"props":5454,"children":5455},{"style":1064},[5456],{"type":998,"value":1788},{"type":993,"tag":1021,"props":5458,"children":5459},{"style":1036},[5460],{"type":998,"value":1161},{"type":993,"tag":1021,"props":5462,"children":5463},{"style":1042},[5464],{"type":998,"value":1166},{"type":993,"tag":1021,"props":5466,"children":5467},{"style":1053},[5468],{"type":998,"value":4950},{"type":993,"tag":1021,"props":5470,"children":5471},{"style":1064},[5472],{"type":998,"value":1176},{"type":993,"tag":1021,"props":5474,"children":5475},{"style":1036},[5476],{"type":998,"value":4959},{"type":993,"tag":1021,"props":5478,"children":5479},{"style":1064},[5480],{"type":998,"value":1186},{"type":993,"tag":1021,"props":5482,"children":5483},{"style":1053},[5484],{"type":998,"value":1171},{"type":993,"tag":1021,"props":5486,"children":5487},{"style":1036},[5488],{"type":998,"value":1212},{"type":993,"tag":1021,"props":5490,"children":5491},{"class":1023,"line":238},[5492,5496,5500,5504,5508,5512,5516,5520,5524],{"type":993,"tag":1021,"props":5493,"children":5494},{"style":1064},[5495],{"type":998,"value":1788},{"type":993,"tag":1021,"props":5497,"children":5498},{"style":1036},[5499],{"type":998,"value":1161},{"type":993,"tag":1021,"props":5501,"children":5502},{"style":1042},[5503],{"type":998,"value":1166},{"type":993,"tag":1021,"props":5505,"children":5506},{"style":1053},[5507],{"type":998,"value":4991},{"type":993,"tag":1021,"props":5509,"children":5510},{"style":1064},[5511],{"type":998,"value":1176},{"type":993,"tag":1021,"props":5513,"children":5514},{"style":1036},[5515],{"type":998,"value":5000},{"type":993,"tag":1021,"props":5517,"children":5518},{"style":1064},[5519],{"type":998,"value":1186},{"type":993,"tag":1021,"props":5521,"children":5522},{"style":1053},[5523],{"type":998,"value":1171},{"type":993,"tag":1021,"props":5525,"children":5526},{"style":1036},[5527],{"type":998,"value":1212},{"type":993,"tag":1001,"props":5529,"children":5530},{},[5531],{"type":993,"tag":1579,"props":5532,"children":5533},{},[5534],{"type":998,"value":5535},"Key Learning Points:",{"type":993,"tag":5537,"props":5538,"children":5539},"ul",{},[5540,5560,5571,5582],{"type":993,"tag":5541,"props":5542,"children":5543},"li",{},[5544,5546,5551,5553,5558],{"type":998,"value":5545},"📌 ",{"type":993,"tag":1579,"props":5547,"children":5548},{},[5549],{"type":998,"value":5550},"items() method",{"type":998,"value":5552},": Use ",{"type":993,"tag":1017,"props":5554,"children":5556},{"className":5555},[],[5557],{"type":998,"value":2366},{"type":998,"value":5559}," to get both keys and values in a loop",{"type":993,"tag":5541,"props":5561,"children":5562},{},[5563,5564,5569],{"type":998,"value":5545},{"type":993,"tag":1579,"props":5565,"children":5566},{},[5567],{"type":998,"value":5568},"Variable tracking",{"type":998,"value":5570},": Keep track of the best result while iterating",{"type":993,"tag":5541,"props":5572,"children":5573},{},[5574,5575,5580],{"type":998,"value":5545},{"type":993,"tag":1579,"props":5576,"children":5577},{},[5578],{"type":998,"value":5579},"Nested access",{"type":998,"value":5581},": Access values within nested dictionaries using bracket notation",{"type":993,"tag":5541,"props":5583,"children":5584},{},[5585,5586,5591],{"type":998,"value":5545},{"type":993,"tag":1579,"props":5587,"children":5588},{},[5589],{"type":998,"value":5590},"Comparison logic",{"type":998,"value":5592},": Use if statements to find maximum values during iteration",{"type":993,"tag":1001,"props":5594,"children":5595},{},[5596,5598,5604],{"type":998,"value":5597},"Learn more about ",{"type":993,"tag":5599,"props":5600,"children":5601},"a",{"href":580},[5602],{"type":998,"value":5603},"dictionary copies",{"type":998,"value":5605}," to understand creating independent copies of dictionary data for safe manipulation.",{"type":993,"tag":1307,"props":5607,"children":5609},{"id":5608},"test-your-knowledge",[5610],{"type":998,"value":5611},"Test Your Knowledge",{"type":993,"tag":1001,"props":5613,"children":5614},{},[5615],{"type":998,"value":5616},"Test what you've learned about looping through dictionaries:",{"type":993,"tag":5618,"props":5619,"children":5623},"redirect-button",{"icon":5620,"label":5621,"url":5622},"pi pi-send","Take Quiz","/tutorial-quiz/python/looping-dictionaries",[],{"type":993,"tag":1307,"props":5625,"children":5627},{"id":5626},"whats-next",[5628],{"type":998,"value":5629},"What's Next?",{"type":993,"tag":1001,"props":5631,"children":5632},{},[5633],{"type":998,"value":5634},"Now that you can iterate through dictionaries effectively, you're ready to learn about creating dictionary copies. Understanding copying techniques is essential for safe data manipulation and avoiding unexpected changes.",{"type":993,"tag":1001,"props":5636,"children":5637},{},[5638,5640,5644],{"type":998,"value":5639},"Ready to continue? Check out our lesson on ",{"type":993,"tag":5599,"props":5641,"children":5642},{"href":580},[5643],{"type":998,"value":581},{"type":998,"value":1613},{"type":993,"tag":5646,"props":5647,"children":5648},"style",{},[5649],{"type":998,"value":5650},"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":5652},[5653,5654,5655,5656,5657,5658,5659,5660,5665,5670,5671],{"id":1309,"depth":27,"text":1312},{"id":1626,"depth":27,"text":1629},{"id":1902,"depth":27,"text":1905},{"id":2235,"depth":27,"text":2238},{"id":2384,"depth":27,"text":2387},{"id":2720,"depth":27,"text":2723},{"id":2986,"depth":27,"text":2989},{"id":3381,"depth":27,"text":3384,"children":5661},[5662,5663,5664],{"id":3388,"depth":36,"text":3391},{"id":3659,"depth":36,"text":3662},{"id":3885,"depth":36,"text":3888},{"id":4079,"depth":27,"text":4082,"children":5666},[5667,5668,5669],{"id":4085,"depth":36,"text":4088},{"id":4334,"depth":36,"text":4337},{"id":5015,"depth":36,"text":5018},{"id":5608,"depth":27,"text":5611},{"id":5626,"depth":27,"text":5629},1782373743434]