[{"data":1,"prerenderedAt":7042},["ShallowReactive",2],{"tutorials-python":3,"category-items-python":987,"content-/python/multi-level-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",[588],{"_path":589,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":590,"description":591,"slug":592,"parentId":516,"order":593,"body":989,"_type":15,"_id":594,"_source":17,"_file":595,"_stem":596,"_extension":20},{"type":990,"children":991,"toc":7025},"root",[992,1001,1007,1422,1429,1434,1937,1943,1948,2342,2390,2396,2401,2714,2720,2725,3163,3169,3315,3321,3326,3813,3819,3824,4425,4431,4436,4908,4914,4921,4926,5471,5477,5482,5990,6036,6041,6397,6403,6966,6979,6985,6990,6997,7003,7008,7019],{"type":993,"tag":994,"props":995,"children":997},"element","h1",{"id":996},"️-multi-level-dictionaries",[998],{"type":999,"value":1000},"text","🏗️ Multi-level Dictionaries",{"type":993,"tag":1002,"props":1003,"children":1004},"p",{},[1005],{"type":999,"value":1006},"Multi-level dictionaries enable sophisticated data organization by nesting dictionaries within dictionaries. This structure is perfect for representing complex relationships like user profiles with settings, organizational hierarchies, or configuration systems with multiple categories.",{"type":993,"tag":1008,"props":1009,"children":1010},"code-try",{},[1011],{"type":993,"tag":1012,"props":1013,"children":1016},"pre",{"className":1014,"code":1015,"language":6,"meta":8,"style":8},"language-python shiki shiki-themes github-light github-dark","# Complex user profile with nested structure\nuser_profile = {\n    'personal': {\n        'name': 'Alice Johnson',\n        'age': 28,\n        'location': 'Boston'\n    },\n    'account': {\n        'username': 'alice_j',\n        'email': 'alice@example.com',\n        'verified': True\n    },\n    'preferences': {\n        'theme': 'dark',\n        'notifications': True,\n        'privacy': {'profile_public': False, 'show_email': False}\n    }\n}\n\nprint(\"User name:\", user_profile['personal']['name'])\nprint(\"Email verified:\", user_profile['account']['verified'])\n",[1017],{"type":993,"tag":1018,"props":1019,"children":1020},"code",{"__ignoreMap":8},[1021,1032,1052,1066,1089,1111,1128,1136,1148,1169,1190,1207,1214,1226,1247,1268,1318,1326,1333,1341,1384],{"type":993,"tag":1022,"props":1023,"children":1025},"span",{"class":1024,"line":12},"line",[1026],{"type":993,"tag":1022,"props":1027,"children":1029},{"style":1028},"--shiki-default:#6A737D;--shiki-app-dark-mode:#6A737D",[1030],{"type":999,"value":1031},"# Complex user profile with nested structure\n",{"type":993,"tag":1022,"props":1033,"children":1034},{"class":1024,"line":27},[1035,1041,1047],{"type":993,"tag":1022,"props":1036,"children":1038},{"style":1037},"--shiki-default:#24292E;--shiki-app-dark-mode:#E1E4E8",[1039],{"type":999,"value":1040},"user_profile ",{"type":993,"tag":1022,"props":1042,"children":1044},{"style":1043},"--shiki-default:#D73A49;--shiki-app-dark-mode:#F97583",[1045],{"type":999,"value":1046},"=",{"type":993,"tag":1022,"props":1048,"children":1049},{"style":1037},[1050],{"type":999,"value":1051}," {\n",{"type":993,"tag":1022,"props":1053,"children":1054},{"class":1024,"line":36},[1055,1061],{"type":993,"tag":1022,"props":1056,"children":1058},{"style":1057},"--shiki-default:#032F62;--shiki-app-dark-mode:#9ECBFF",[1059],{"type":999,"value":1060},"    'personal'",{"type":993,"tag":1022,"props":1062,"children":1063},{"style":1037},[1064],{"type":999,"value":1065},": {\n",{"type":993,"tag":1022,"props":1067,"children":1068},{"class":1024,"line":45},[1069,1074,1079,1084],{"type":993,"tag":1022,"props":1070,"children":1071},{"style":1057},[1072],{"type":999,"value":1073},"        'name'",{"type":993,"tag":1022,"props":1075,"children":1076},{"style":1037},[1077],{"type":999,"value":1078},": ",{"type":993,"tag":1022,"props":1080,"children":1081},{"style":1057},[1082],{"type":999,"value":1083},"'Alice Johnson'",{"type":993,"tag":1022,"props":1085,"children":1086},{"style":1037},[1087],{"type":999,"value":1088},",\n",{"type":993,"tag":1022,"props":1090,"children":1091},{"class":1024,"line":54},[1092,1097,1101,1107],{"type":993,"tag":1022,"props":1093,"children":1094},{"style":1057},[1095],{"type":999,"value":1096},"        'age'",{"type":993,"tag":1022,"props":1098,"children":1099},{"style":1037},[1100],{"type":999,"value":1078},{"type":993,"tag":1022,"props":1102,"children":1104},{"style":1103},"--shiki-default:#005CC5;--shiki-app-dark-mode:#79B8FF",[1105],{"type":999,"value":1106},"28",{"type":993,"tag":1022,"props":1108,"children":1109},{"style":1037},[1110],{"type":999,"value":1088},{"type":993,"tag":1022,"props":1112,"children":1113},{"class":1024,"line":63},[1114,1119,1123],{"type":993,"tag":1022,"props":1115,"children":1116},{"style":1057},[1117],{"type":999,"value":1118},"        'location'",{"type":993,"tag":1022,"props":1120,"children":1121},{"style":1037},[1122],{"type":999,"value":1078},{"type":993,"tag":1022,"props":1124,"children":1125},{"style":1057},[1126],{"type":999,"value":1127},"'Boston'\n",{"type":993,"tag":1022,"props":1129,"children":1130},{"class":1024,"line":72},[1131],{"type":993,"tag":1022,"props":1132,"children":1133},{"style":1037},[1134],{"type":999,"value":1135},"    },\n",{"type":993,"tag":1022,"props":1137,"children":1138},{"class":1024,"line":81},[1139,1144],{"type":993,"tag":1022,"props":1140,"children":1141},{"style":1057},[1142],{"type":999,"value":1143},"    'account'",{"type":993,"tag":1022,"props":1145,"children":1146},{"style":1037},[1147],{"type":999,"value":1065},{"type":993,"tag":1022,"props":1149,"children":1150},{"class":1024,"line":91},[1151,1156,1160,1165],{"type":993,"tag":1022,"props":1152,"children":1153},{"style":1057},[1154],{"type":999,"value":1155},"        'username'",{"type":993,"tag":1022,"props":1157,"children":1158},{"style":1037},[1159],{"type":999,"value":1078},{"type":993,"tag":1022,"props":1161,"children":1162},{"style":1057},[1163],{"type":999,"value":1164},"'alice_j'",{"type":993,"tag":1022,"props":1166,"children":1167},{"style":1037},[1168],{"type":999,"value":1088},{"type":993,"tag":1022,"props":1170,"children":1171},{"class":1024,"line":100},[1172,1177,1181,1186],{"type":993,"tag":1022,"props":1173,"children":1174},{"style":1057},[1175],{"type":999,"value":1176},"        'email'",{"type":993,"tag":1022,"props":1178,"children":1179},{"style":1037},[1180],{"type":999,"value":1078},{"type":993,"tag":1022,"props":1182,"children":1183},{"style":1057},[1184],{"type":999,"value":1185},"'alice@example.com'",{"type":993,"tag":1022,"props":1187,"children":1188},{"style":1037},[1189],{"type":999,"value":1088},{"type":993,"tag":1022,"props":1191,"children":1192},{"class":1024,"line":109},[1193,1198,1202],{"type":993,"tag":1022,"props":1194,"children":1195},{"style":1057},[1196],{"type":999,"value":1197},"        'verified'",{"type":993,"tag":1022,"props":1199,"children":1200},{"style":1037},[1201],{"type":999,"value":1078},{"type":993,"tag":1022,"props":1203,"children":1204},{"style":1103},[1205],{"type":999,"value":1206},"True\n",{"type":993,"tag":1022,"props":1208,"children":1209},{"class":1024,"line":118},[1210],{"type":993,"tag":1022,"props":1211,"children":1212},{"style":1037},[1213],{"type":999,"value":1135},{"type":993,"tag":1022,"props":1215,"children":1216},{"class":1024,"line":127},[1217,1222],{"type":993,"tag":1022,"props":1218,"children":1219},{"style":1057},[1220],{"type":999,"value":1221},"    'preferences'",{"type":993,"tag":1022,"props":1223,"children":1224},{"style":1037},[1225],{"type":999,"value":1065},{"type":993,"tag":1022,"props":1227,"children":1228},{"class":1024,"line":136},[1229,1234,1238,1243],{"type":993,"tag":1022,"props":1230,"children":1231},{"style":1057},[1232],{"type":999,"value":1233},"        'theme'",{"type":993,"tag":1022,"props":1235,"children":1236},{"style":1037},[1237],{"type":999,"value":1078},{"type":993,"tag":1022,"props":1239,"children":1240},{"style":1057},[1241],{"type":999,"value":1242},"'dark'",{"type":993,"tag":1022,"props":1244,"children":1245},{"style":1037},[1246],{"type":999,"value":1088},{"type":993,"tag":1022,"props":1248,"children":1249},{"class":1024,"line":146},[1250,1255,1259,1264],{"type":993,"tag":1022,"props":1251,"children":1252},{"style":1057},[1253],{"type":999,"value":1254},"        'notifications'",{"type":993,"tag":1022,"props":1256,"children":1257},{"style":1037},[1258],{"type":999,"value":1078},{"type":993,"tag":1022,"props":1260,"children":1261},{"style":1103},[1262],{"type":999,"value":1263},"True",{"type":993,"tag":1022,"props":1265,"children":1266},{"style":1037},[1267],{"type":999,"value":1088},{"type":993,"tag":1022,"props":1269,"children":1270},{"class":1024,"line":155},[1271,1276,1281,1286,1290,1295,1300,1305,1309,1313],{"type":993,"tag":1022,"props":1272,"children":1273},{"style":1057},[1274],{"type":999,"value":1275},"        'privacy'",{"type":993,"tag":1022,"props":1277,"children":1278},{"style":1037},[1279],{"type":999,"value":1280},": {",{"type":993,"tag":1022,"props":1282,"children":1283},{"style":1057},[1284],{"type":999,"value":1285},"'profile_public'",{"type":993,"tag":1022,"props":1287,"children":1288},{"style":1037},[1289],{"type":999,"value":1078},{"type":993,"tag":1022,"props":1291,"children":1292},{"style":1103},[1293],{"type":999,"value":1294},"False",{"type":993,"tag":1022,"props":1296,"children":1297},{"style":1037},[1298],{"type":999,"value":1299},", ",{"type":993,"tag":1022,"props":1301,"children":1302},{"style":1057},[1303],{"type":999,"value":1304},"'show_email'",{"type":993,"tag":1022,"props":1306,"children":1307},{"style":1037},[1308],{"type":999,"value":1078},{"type":993,"tag":1022,"props":1310,"children":1311},{"style":1103},[1312],{"type":999,"value":1294},{"type":993,"tag":1022,"props":1314,"children":1315},{"style":1037},[1316],{"type":999,"value":1317},"}\n",{"type":993,"tag":1022,"props":1319,"children":1320},{"class":1024,"line":164},[1321],{"type":993,"tag":1022,"props":1322,"children":1323},{"style":1037},[1324],{"type":999,"value":1325},"    }\n",{"type":993,"tag":1022,"props":1327,"children":1328},{"class":1024,"line":173},[1329],{"type":993,"tag":1022,"props":1330,"children":1331},{"style":1037},[1332],{"type":999,"value":1317},{"type":993,"tag":1022,"props":1334,"children":1335},{"class":1024,"line":182},[1336],{"type":993,"tag":1022,"props":1337,"children":1338},{"emptyLinePlaceholder":13},[1339],{"type":999,"value":1340},"\n",{"type":993,"tag":1022,"props":1342,"children":1343},{"class":1024,"line":191},[1344,1349,1354,1359,1364,1369,1374,1379],{"type":993,"tag":1022,"props":1345,"children":1346},{"style":1103},[1347],{"type":999,"value":1348},"print",{"type":993,"tag":1022,"props":1350,"children":1351},{"style":1037},[1352],{"type":999,"value":1353},"(",{"type":993,"tag":1022,"props":1355,"children":1356},{"style":1057},[1357],{"type":999,"value":1358},"\"User name:\"",{"type":993,"tag":1022,"props":1360,"children":1361},{"style":1037},[1362],{"type":999,"value":1363},", user_profile[",{"type":993,"tag":1022,"props":1365,"children":1366},{"style":1057},[1367],{"type":999,"value":1368},"'personal'",{"type":993,"tag":1022,"props":1370,"children":1371},{"style":1037},[1372],{"type":999,"value":1373},"][",{"type":993,"tag":1022,"props":1375,"children":1376},{"style":1057},[1377],{"type":999,"value":1378},"'name'",{"type":993,"tag":1022,"props":1380,"children":1381},{"style":1037},[1382],{"type":999,"value":1383},"])\n",{"type":993,"tag":1022,"props":1385,"children":1386},{"class":1024,"line":201},[1387,1391,1395,1400,1404,1409,1413,1418],{"type":993,"tag":1022,"props":1388,"children":1389},{"style":1103},[1390],{"type":999,"value":1348},{"type":993,"tag":1022,"props":1392,"children":1393},{"style":1037},[1394],{"type":999,"value":1353},{"type":993,"tag":1022,"props":1396,"children":1397},{"style":1057},[1398],{"type":999,"value":1399},"\"Email verified:\"",{"type":993,"tag":1022,"props":1401,"children":1402},{"style":1037},[1403],{"type":999,"value":1363},{"type":993,"tag":1022,"props":1405,"children":1406},{"style":1057},[1407],{"type":999,"value":1408},"'account'",{"type":993,"tag":1022,"props":1410,"children":1411},{"style":1037},[1412],{"type":999,"value":1373},{"type":993,"tag":1022,"props":1414,"children":1415},{"style":1057},[1416],{"type":999,"value":1417},"'verified'",{"type":993,"tag":1022,"props":1419,"children":1420},{"style":1037},[1421],{"type":999,"value":1383},{"type":993,"tag":1423,"props":1424,"children":1426},"h2",{"id":1425},"accessing-nested-data",[1427],{"type":999,"value":1428},"🎯 Accessing Nested Data",{"type":993,"tag":1002,"props":1430,"children":1431},{},[1432],{"type":999,"value":1433},"Working with nested dictionaries requires understanding how to navigate through multiple levels safely. Python provides straightforward syntax for accessing deeply nested values.",{"type":993,"tag":1008,"props":1435,"children":1436},{},[1437],{"type":993,"tag":1012,"props":1438,"children":1440},{"className":1014,"code":1439,"language":6,"meta":8,"style":8},"company = {\n    'departments': {\n        'engineering': {\n            'manager': 'Sarah Chen',\n            'employees': 15,\n            'budget': 500000\n        },\n        'marketing': {\n            'manager': 'John Davis',\n            'employees': 8,\n            'budget': 200000\n        }\n    },\n    'company_info': {\n        'name': 'TechCorp',\n        'founded': 2010\n    }\n}\n\n# Access nested values\neng_manager = company['departments']['engineering']['manager']\ntotal_employees = (company['departments']['engineering']['employees'] + \n                  company['departments']['marketing']['employees'])\n\nprint(f\"Engineering manager: {eng_manager}\")\nprint(f\"Total employees: {total_employees}\")\n",[1441],{"type":993,"tag":1018,"props":1442,"children":1443},{"__ignoreMap":8},[1444,1460,1472,1484,1505,1526,1543,1551,1563,1583,1603,1619,1627,1634,1646,1666,1683,1690,1697,1704,1712,1757,1810,1843,1850,1896],{"type":993,"tag":1022,"props":1445,"children":1446},{"class":1024,"line":12},[1447,1452,1456],{"type":993,"tag":1022,"props":1448,"children":1449},{"style":1037},[1450],{"type":999,"value":1451},"company ",{"type":993,"tag":1022,"props":1453,"children":1454},{"style":1043},[1455],{"type":999,"value":1046},{"type":993,"tag":1022,"props":1457,"children":1458},{"style":1037},[1459],{"type":999,"value":1051},{"type":993,"tag":1022,"props":1461,"children":1462},{"class":1024,"line":27},[1463,1468],{"type":993,"tag":1022,"props":1464,"children":1465},{"style":1057},[1466],{"type":999,"value":1467},"    'departments'",{"type":993,"tag":1022,"props":1469,"children":1470},{"style":1037},[1471],{"type":999,"value":1065},{"type":993,"tag":1022,"props":1473,"children":1474},{"class":1024,"line":36},[1475,1480],{"type":993,"tag":1022,"props":1476,"children":1477},{"style":1057},[1478],{"type":999,"value":1479},"        'engineering'",{"type":993,"tag":1022,"props":1481,"children":1482},{"style":1037},[1483],{"type":999,"value":1065},{"type":993,"tag":1022,"props":1485,"children":1486},{"class":1024,"line":45},[1487,1492,1496,1501],{"type":993,"tag":1022,"props":1488,"children":1489},{"style":1057},[1490],{"type":999,"value":1491},"            'manager'",{"type":993,"tag":1022,"props":1493,"children":1494},{"style":1037},[1495],{"type":999,"value":1078},{"type":993,"tag":1022,"props":1497,"children":1498},{"style":1057},[1499],{"type":999,"value":1500},"'Sarah Chen'",{"type":993,"tag":1022,"props":1502,"children":1503},{"style":1037},[1504],{"type":999,"value":1088},{"type":993,"tag":1022,"props":1506,"children":1507},{"class":1024,"line":54},[1508,1513,1517,1522],{"type":993,"tag":1022,"props":1509,"children":1510},{"style":1057},[1511],{"type":999,"value":1512},"            'employees'",{"type":993,"tag":1022,"props":1514,"children":1515},{"style":1037},[1516],{"type":999,"value":1078},{"type":993,"tag":1022,"props":1518,"children":1519},{"style":1103},[1520],{"type":999,"value":1521},"15",{"type":993,"tag":1022,"props":1523,"children":1524},{"style":1037},[1525],{"type":999,"value":1088},{"type":993,"tag":1022,"props":1527,"children":1528},{"class":1024,"line":63},[1529,1534,1538],{"type":993,"tag":1022,"props":1530,"children":1531},{"style":1057},[1532],{"type":999,"value":1533},"            'budget'",{"type":993,"tag":1022,"props":1535,"children":1536},{"style":1037},[1537],{"type":999,"value":1078},{"type":993,"tag":1022,"props":1539,"children":1540},{"style":1103},[1541],{"type":999,"value":1542},"500000\n",{"type":993,"tag":1022,"props":1544,"children":1545},{"class":1024,"line":72},[1546],{"type":993,"tag":1022,"props":1547,"children":1548},{"style":1037},[1549],{"type":999,"value":1550},"        },\n",{"type":993,"tag":1022,"props":1552,"children":1553},{"class":1024,"line":81},[1554,1559],{"type":993,"tag":1022,"props":1555,"children":1556},{"style":1057},[1557],{"type":999,"value":1558},"        'marketing'",{"type":993,"tag":1022,"props":1560,"children":1561},{"style":1037},[1562],{"type":999,"value":1065},{"type":993,"tag":1022,"props":1564,"children":1565},{"class":1024,"line":91},[1566,1570,1574,1579],{"type":993,"tag":1022,"props":1567,"children":1568},{"style":1057},[1569],{"type":999,"value":1491},{"type":993,"tag":1022,"props":1571,"children":1572},{"style":1037},[1573],{"type":999,"value":1078},{"type":993,"tag":1022,"props":1575,"children":1576},{"style":1057},[1577],{"type":999,"value":1578},"'John Davis'",{"type":993,"tag":1022,"props":1580,"children":1581},{"style":1037},[1582],{"type":999,"value":1088},{"type":993,"tag":1022,"props":1584,"children":1585},{"class":1024,"line":100},[1586,1590,1594,1599],{"type":993,"tag":1022,"props":1587,"children":1588},{"style":1057},[1589],{"type":999,"value":1512},{"type":993,"tag":1022,"props":1591,"children":1592},{"style":1037},[1593],{"type":999,"value":1078},{"type":993,"tag":1022,"props":1595,"children":1596},{"style":1103},[1597],{"type":999,"value":1598},"8",{"type":993,"tag":1022,"props":1600,"children":1601},{"style":1037},[1602],{"type":999,"value":1088},{"type":993,"tag":1022,"props":1604,"children":1605},{"class":1024,"line":109},[1606,1610,1614],{"type":993,"tag":1022,"props":1607,"children":1608},{"style":1057},[1609],{"type":999,"value":1533},{"type":993,"tag":1022,"props":1611,"children":1612},{"style":1037},[1613],{"type":999,"value":1078},{"type":993,"tag":1022,"props":1615,"children":1616},{"style":1103},[1617],{"type":999,"value":1618},"200000\n",{"type":993,"tag":1022,"props":1620,"children":1621},{"class":1024,"line":118},[1622],{"type":993,"tag":1022,"props":1623,"children":1624},{"style":1037},[1625],{"type":999,"value":1626},"        }\n",{"type":993,"tag":1022,"props":1628,"children":1629},{"class":1024,"line":127},[1630],{"type":993,"tag":1022,"props":1631,"children":1632},{"style":1037},[1633],{"type":999,"value":1135},{"type":993,"tag":1022,"props":1635,"children":1636},{"class":1024,"line":136},[1637,1642],{"type":993,"tag":1022,"props":1638,"children":1639},{"style":1057},[1640],{"type":999,"value":1641},"    'company_info'",{"type":993,"tag":1022,"props":1643,"children":1644},{"style":1037},[1645],{"type":999,"value":1065},{"type":993,"tag":1022,"props":1647,"children":1648},{"class":1024,"line":146},[1649,1653,1657,1662],{"type":993,"tag":1022,"props":1650,"children":1651},{"style":1057},[1652],{"type":999,"value":1073},{"type":993,"tag":1022,"props":1654,"children":1655},{"style":1037},[1656],{"type":999,"value":1078},{"type":993,"tag":1022,"props":1658,"children":1659},{"style":1057},[1660],{"type":999,"value":1661},"'TechCorp'",{"type":993,"tag":1022,"props":1663,"children":1664},{"style":1037},[1665],{"type":999,"value":1088},{"type":993,"tag":1022,"props":1667,"children":1668},{"class":1024,"line":155},[1669,1674,1678],{"type":993,"tag":1022,"props":1670,"children":1671},{"style":1057},[1672],{"type":999,"value":1673},"        'founded'",{"type":993,"tag":1022,"props":1675,"children":1676},{"style":1037},[1677],{"type":999,"value":1078},{"type":993,"tag":1022,"props":1679,"children":1680},{"style":1103},[1681],{"type":999,"value":1682},"2010\n",{"type":993,"tag":1022,"props":1684,"children":1685},{"class":1024,"line":164},[1686],{"type":993,"tag":1022,"props":1687,"children":1688},{"style":1037},[1689],{"type":999,"value":1325},{"type":993,"tag":1022,"props":1691,"children":1692},{"class":1024,"line":173},[1693],{"type":993,"tag":1022,"props":1694,"children":1695},{"style":1037},[1696],{"type":999,"value":1317},{"type":993,"tag":1022,"props":1698,"children":1699},{"class":1024,"line":182},[1700],{"type":993,"tag":1022,"props":1701,"children":1702},{"emptyLinePlaceholder":13},[1703],{"type":999,"value":1340},{"type":993,"tag":1022,"props":1705,"children":1706},{"class":1024,"line":191},[1707],{"type":993,"tag":1022,"props":1708,"children":1709},{"style":1028},[1710],{"type":999,"value":1711},"# Access nested values\n",{"type":993,"tag":1022,"props":1713,"children":1714},{"class":1024,"line":201},[1715,1720,1724,1729,1734,1738,1743,1747,1752],{"type":993,"tag":1022,"props":1716,"children":1717},{"style":1037},[1718],{"type":999,"value":1719},"eng_manager ",{"type":993,"tag":1022,"props":1721,"children":1722},{"style":1043},[1723],{"type":999,"value":1046},{"type":993,"tag":1022,"props":1725,"children":1726},{"style":1037},[1727],{"type":999,"value":1728}," company[",{"type":993,"tag":1022,"props":1730,"children":1731},{"style":1057},[1732],{"type":999,"value":1733},"'departments'",{"type":993,"tag":1022,"props":1735,"children":1736},{"style":1037},[1737],{"type":999,"value":1373},{"type":993,"tag":1022,"props":1739,"children":1740},{"style":1057},[1741],{"type":999,"value":1742},"'engineering'",{"type":993,"tag":1022,"props":1744,"children":1745},{"style":1037},[1746],{"type":999,"value":1373},{"type":993,"tag":1022,"props":1748,"children":1749},{"style":1057},[1750],{"type":999,"value":1751},"'manager'",{"type":993,"tag":1022,"props":1753,"children":1754},{"style":1037},[1755],{"type":999,"value":1756},"]\n",{"type":993,"tag":1022,"props":1758,"children":1759},{"class":1024,"line":210},[1760,1765,1769,1774,1778,1782,1786,1790,1795,1800,1805],{"type":993,"tag":1022,"props":1761,"children":1762},{"style":1037},[1763],{"type":999,"value":1764},"total_employees ",{"type":993,"tag":1022,"props":1766,"children":1767},{"style":1043},[1768],{"type":999,"value":1046},{"type":993,"tag":1022,"props":1770,"children":1771},{"style":1037},[1772],{"type":999,"value":1773}," (company[",{"type":993,"tag":1022,"props":1775,"children":1776},{"style":1057},[1777],{"type":999,"value":1733},{"type":993,"tag":1022,"props":1779,"children":1780},{"style":1037},[1781],{"type":999,"value":1373},{"type":993,"tag":1022,"props":1783,"children":1784},{"style":1057},[1785],{"type":999,"value":1742},{"type":993,"tag":1022,"props":1787,"children":1788},{"style":1037},[1789],{"type":999,"value":1373},{"type":993,"tag":1022,"props":1791,"children":1792},{"style":1057},[1793],{"type":999,"value":1794},"'employees'",{"type":993,"tag":1022,"props":1796,"children":1797},{"style":1037},[1798],{"type":999,"value":1799},"] ",{"type":993,"tag":1022,"props":1801,"children":1802},{"style":1043},[1803],{"type":999,"value":1804},"+",{"type":993,"tag":1022,"props":1806,"children":1807},{"style":1037},[1808],{"type":999,"value":1809}," \n",{"type":993,"tag":1022,"props":1811,"children":1812},{"class":1024,"line":219},[1813,1818,1822,1826,1831,1835,1839],{"type":993,"tag":1022,"props":1814,"children":1815},{"style":1037},[1816],{"type":999,"value":1817},"                  company[",{"type":993,"tag":1022,"props":1819,"children":1820},{"style":1057},[1821],{"type":999,"value":1733},{"type":993,"tag":1022,"props":1823,"children":1824},{"style":1037},[1825],{"type":999,"value":1373},{"type":993,"tag":1022,"props":1827,"children":1828},{"style":1057},[1829],{"type":999,"value":1830},"'marketing'",{"type":993,"tag":1022,"props":1832,"children":1833},{"style":1037},[1834],{"type":999,"value":1373},{"type":993,"tag":1022,"props":1836,"children":1837},{"style":1057},[1838],{"type":999,"value":1794},{"type":993,"tag":1022,"props":1840,"children":1841},{"style":1037},[1842],{"type":999,"value":1383},{"type":993,"tag":1022,"props":1844,"children":1845},{"class":1024,"line":228},[1846],{"type":993,"tag":1022,"props":1847,"children":1848},{"emptyLinePlaceholder":13},[1849],{"type":999,"value":1340},{"type":993,"tag":1022,"props":1851,"children":1852},{"class":1024,"line":238},[1853,1857,1861,1866,1871,1876,1881,1886,1891],{"type":993,"tag":1022,"props":1854,"children":1855},{"style":1103},[1856],{"type":999,"value":1348},{"type":993,"tag":1022,"props":1858,"children":1859},{"style":1037},[1860],{"type":999,"value":1353},{"type":993,"tag":1022,"props":1862,"children":1863},{"style":1043},[1864],{"type":999,"value":1865},"f",{"type":993,"tag":1022,"props":1867,"children":1868},{"style":1057},[1869],{"type":999,"value":1870},"\"Engineering manager: ",{"type":993,"tag":1022,"props":1872,"children":1873},{"style":1103},[1874],{"type":999,"value":1875},"{",{"type":993,"tag":1022,"props":1877,"children":1878},{"style":1037},[1879],{"type":999,"value":1880},"eng_manager",{"type":993,"tag":1022,"props":1882,"children":1883},{"style":1103},[1884],{"type":999,"value":1885},"}",{"type":993,"tag":1022,"props":1887,"children":1888},{"style":1057},[1889],{"type":999,"value":1890},"\"",{"type":993,"tag":1022,"props":1892,"children":1893},{"style":1037},[1894],{"type":999,"value":1895},")\n",{"type":993,"tag":1022,"props":1897,"children":1898},{"class":1024,"line":247},[1899,1903,1907,1911,1916,1920,1925,1929,1933],{"type":993,"tag":1022,"props":1900,"children":1901},{"style":1103},[1902],{"type":999,"value":1348},{"type":993,"tag":1022,"props":1904,"children":1905},{"style":1037},[1906],{"type":999,"value":1353},{"type":993,"tag":1022,"props":1908,"children":1909},{"style":1043},[1910],{"type":999,"value":1865},{"type":993,"tag":1022,"props":1912,"children":1913},{"style":1057},[1914],{"type":999,"value":1915},"\"Total employees: ",{"type":993,"tag":1022,"props":1917,"children":1918},{"style":1103},[1919],{"type":999,"value":1875},{"type":993,"tag":1022,"props":1921,"children":1922},{"style":1037},[1923],{"type":999,"value":1924},"total_employees",{"type":993,"tag":1022,"props":1926,"children":1927},{"style":1103},[1928],{"type":999,"value":1885},{"type":993,"tag":1022,"props":1930,"children":1931},{"style":1057},[1932],{"type":999,"value":1890},{"type":993,"tag":1022,"props":1934,"children":1935},{"style":1037},[1936],{"type":999,"value":1895},{"type":993,"tag":1423,"props":1938,"children":1940},{"id":1939},"safe-nested-access-with-get",[1941],{"type":999,"value":1942},"⚡ Safe Nested Access with get()",{"type":993,"tag":1002,"props":1944,"children":1945},{},[1946],{"type":999,"value":1947},"The get() method provides safe access to nested dictionary values, preventing KeyError exceptions when keys might not exist. This approach enables robust data processing with unpredictable data structures.",{"type":993,"tag":1008,"props":1949,"children":1950},{},[1951],{"type":993,"tag":1012,"props":1952,"children":1954},{"className":1014,"code":1953,"language":6,"meta":8,"style":8},"data = {\n    'user1': {\n        'profile': {'name': 'Alice', 'age': 25},\n        'settings': {'theme': 'dark'}\n    },\n    'user2': {\n        'profile': {'name': 'Bob'}\n        # Missing 'settings' section\n    }\n}\n\n# Safe access with defaults\ndef get_user_theme(user_id):\n    user = data.get(user_id, {})\n    settings = user.get('settings', {})\n    return settings.get('theme', 'light')  # Default theme\n\nprint(\"User1 theme:\", get_user_theme('user1'))\nprint(\"User2 theme:\", get_user_theme('user2'))\nprint(\"User3 theme:\", get_user_theme('user3'))\n",[1955],{"type":993,"tag":1018,"props":1956,"children":1957},{"__ignoreMap":8},[1958,1974,1986,2034,2063,2070,2082,2110,2118,2125,2132,2139,2147,2166,2183,2210,2246,2253,2284,2313],{"type":993,"tag":1022,"props":1959,"children":1960},{"class":1024,"line":12},[1961,1966,1970],{"type":993,"tag":1022,"props":1962,"children":1963},{"style":1037},[1964],{"type":999,"value":1965},"data ",{"type":993,"tag":1022,"props":1967,"children":1968},{"style":1043},[1969],{"type":999,"value":1046},{"type":993,"tag":1022,"props":1971,"children":1972},{"style":1037},[1973],{"type":999,"value":1051},{"type":993,"tag":1022,"props":1975,"children":1976},{"class":1024,"line":27},[1977,1982],{"type":993,"tag":1022,"props":1978,"children":1979},{"style":1057},[1980],{"type":999,"value":1981},"    'user1'",{"type":993,"tag":1022,"props":1983,"children":1984},{"style":1037},[1985],{"type":999,"value":1065},{"type":993,"tag":1022,"props":1987,"children":1988},{"class":1024,"line":36},[1989,1994,1998,2002,2006,2011,2015,2020,2024,2029],{"type":993,"tag":1022,"props":1990,"children":1991},{"style":1057},[1992],{"type":999,"value":1993},"        'profile'",{"type":993,"tag":1022,"props":1995,"children":1996},{"style":1037},[1997],{"type":999,"value":1280},{"type":993,"tag":1022,"props":1999,"children":2000},{"style":1057},[2001],{"type":999,"value":1378},{"type":993,"tag":1022,"props":2003,"children":2004},{"style":1037},[2005],{"type":999,"value":1078},{"type":993,"tag":1022,"props":2007,"children":2008},{"style":1057},[2009],{"type":999,"value":2010},"'Alice'",{"type":993,"tag":1022,"props":2012,"children":2013},{"style":1037},[2014],{"type":999,"value":1299},{"type":993,"tag":1022,"props":2016,"children":2017},{"style":1057},[2018],{"type":999,"value":2019},"'age'",{"type":993,"tag":1022,"props":2021,"children":2022},{"style":1037},[2023],{"type":999,"value":1078},{"type":993,"tag":1022,"props":2025,"children":2026},{"style":1103},[2027],{"type":999,"value":2028},"25",{"type":993,"tag":1022,"props":2030,"children":2031},{"style":1037},[2032],{"type":999,"value":2033},"},\n",{"type":993,"tag":1022,"props":2035,"children":2036},{"class":1024,"line":45},[2037,2042,2046,2051,2055,2059],{"type":993,"tag":1022,"props":2038,"children":2039},{"style":1057},[2040],{"type":999,"value":2041},"        'settings'",{"type":993,"tag":1022,"props":2043,"children":2044},{"style":1037},[2045],{"type":999,"value":1280},{"type":993,"tag":1022,"props":2047,"children":2048},{"style":1057},[2049],{"type":999,"value":2050},"'theme'",{"type":993,"tag":1022,"props":2052,"children":2053},{"style":1037},[2054],{"type":999,"value":1078},{"type":993,"tag":1022,"props":2056,"children":2057},{"style":1057},[2058],{"type":999,"value":1242},{"type":993,"tag":1022,"props":2060,"children":2061},{"style":1037},[2062],{"type":999,"value":1317},{"type":993,"tag":1022,"props":2064,"children":2065},{"class":1024,"line":54},[2066],{"type":993,"tag":1022,"props":2067,"children":2068},{"style":1037},[2069],{"type":999,"value":1135},{"type":993,"tag":1022,"props":2071,"children":2072},{"class":1024,"line":63},[2073,2078],{"type":993,"tag":1022,"props":2074,"children":2075},{"style":1057},[2076],{"type":999,"value":2077},"    'user2'",{"type":993,"tag":1022,"props":2079,"children":2080},{"style":1037},[2081],{"type":999,"value":1065},{"type":993,"tag":1022,"props":2083,"children":2084},{"class":1024,"line":72},[2085,2089,2093,2097,2101,2106],{"type":993,"tag":1022,"props":2086,"children":2087},{"style":1057},[2088],{"type":999,"value":1993},{"type":993,"tag":1022,"props":2090,"children":2091},{"style":1037},[2092],{"type":999,"value":1280},{"type":993,"tag":1022,"props":2094,"children":2095},{"style":1057},[2096],{"type":999,"value":1378},{"type":993,"tag":1022,"props":2098,"children":2099},{"style":1037},[2100],{"type":999,"value":1078},{"type":993,"tag":1022,"props":2102,"children":2103},{"style":1057},[2104],{"type":999,"value":2105},"'Bob'",{"type":993,"tag":1022,"props":2107,"children":2108},{"style":1037},[2109],{"type":999,"value":1317},{"type":993,"tag":1022,"props":2111,"children":2112},{"class":1024,"line":81},[2113],{"type":993,"tag":1022,"props":2114,"children":2115},{"style":1028},[2116],{"type":999,"value":2117},"        # Missing 'settings' section\n",{"type":993,"tag":1022,"props":2119,"children":2120},{"class":1024,"line":91},[2121],{"type":993,"tag":1022,"props":2122,"children":2123},{"style":1037},[2124],{"type":999,"value":1325},{"type":993,"tag":1022,"props":2126,"children":2127},{"class":1024,"line":100},[2128],{"type":993,"tag":1022,"props":2129,"children":2130},{"style":1037},[2131],{"type":999,"value":1317},{"type":993,"tag":1022,"props":2133,"children":2134},{"class":1024,"line":109},[2135],{"type":993,"tag":1022,"props":2136,"children":2137},{"emptyLinePlaceholder":13},[2138],{"type":999,"value":1340},{"type":993,"tag":1022,"props":2140,"children":2141},{"class":1024,"line":118},[2142],{"type":993,"tag":1022,"props":2143,"children":2144},{"style":1028},[2145],{"type":999,"value":2146},"# Safe access with defaults\n",{"type":993,"tag":1022,"props":2148,"children":2149},{"class":1024,"line":127},[2150,2155,2161],{"type":993,"tag":1022,"props":2151,"children":2152},{"style":1043},[2153],{"type":999,"value":2154},"def",{"type":993,"tag":1022,"props":2156,"children":2158},{"style":2157},"--shiki-default:#6F42C1;--shiki-app-dark-mode:#B392F0",[2159],{"type":999,"value":2160}," get_user_theme",{"type":993,"tag":1022,"props":2162,"children":2163},{"style":1037},[2164],{"type":999,"value":2165},"(user_id):\n",{"type":993,"tag":1022,"props":2167,"children":2168},{"class":1024,"line":136},[2169,2174,2178],{"type":993,"tag":1022,"props":2170,"children":2171},{"style":1037},[2172],{"type":999,"value":2173},"    user ",{"type":993,"tag":1022,"props":2175,"children":2176},{"style":1043},[2177],{"type":999,"value":1046},{"type":993,"tag":1022,"props":2179,"children":2180},{"style":1037},[2181],{"type":999,"value":2182}," data.get(user_id, {})\n",{"type":993,"tag":1022,"props":2184,"children":2185},{"class":1024,"line":146},[2186,2191,2195,2200,2205],{"type":993,"tag":1022,"props":2187,"children":2188},{"style":1037},[2189],{"type":999,"value":2190},"    settings ",{"type":993,"tag":1022,"props":2192,"children":2193},{"style":1043},[2194],{"type":999,"value":1046},{"type":993,"tag":1022,"props":2196,"children":2197},{"style":1037},[2198],{"type":999,"value":2199}," user.get(",{"type":993,"tag":1022,"props":2201,"children":2202},{"style":1057},[2203],{"type":999,"value":2204},"'settings'",{"type":993,"tag":1022,"props":2206,"children":2207},{"style":1037},[2208],{"type":999,"value":2209},", {})\n",{"type":993,"tag":1022,"props":2211,"children":2212},{"class":1024,"line":155},[2213,2218,2223,2227,2231,2236,2241],{"type":993,"tag":1022,"props":2214,"children":2215},{"style":1043},[2216],{"type":999,"value":2217},"    return",{"type":993,"tag":1022,"props":2219,"children":2220},{"style":1037},[2221],{"type":999,"value":2222}," settings.get(",{"type":993,"tag":1022,"props":2224,"children":2225},{"style":1057},[2226],{"type":999,"value":2050},{"type":993,"tag":1022,"props":2228,"children":2229},{"style":1037},[2230],{"type":999,"value":1299},{"type":993,"tag":1022,"props":2232,"children":2233},{"style":1057},[2234],{"type":999,"value":2235},"'light'",{"type":993,"tag":1022,"props":2237,"children":2238},{"style":1037},[2239],{"type":999,"value":2240},")  ",{"type":993,"tag":1022,"props":2242,"children":2243},{"style":1028},[2244],{"type":999,"value":2245},"# Default theme\n",{"type":993,"tag":1022,"props":2247,"children":2248},{"class":1024,"line":164},[2249],{"type":993,"tag":1022,"props":2250,"children":2251},{"emptyLinePlaceholder":13},[2252],{"type":999,"value":1340},{"type":993,"tag":1022,"props":2254,"children":2255},{"class":1024,"line":173},[2256,2260,2264,2269,2274,2279],{"type":993,"tag":1022,"props":2257,"children":2258},{"style":1103},[2259],{"type":999,"value":1348},{"type":993,"tag":1022,"props":2261,"children":2262},{"style":1037},[2263],{"type":999,"value":1353},{"type":993,"tag":1022,"props":2265,"children":2266},{"style":1057},[2267],{"type":999,"value":2268},"\"User1 theme:\"",{"type":993,"tag":1022,"props":2270,"children":2271},{"style":1037},[2272],{"type":999,"value":2273},", get_user_theme(",{"type":993,"tag":1022,"props":2275,"children":2276},{"style":1057},[2277],{"type":999,"value":2278},"'user1'",{"type":993,"tag":1022,"props":2280,"children":2281},{"style":1037},[2282],{"type":999,"value":2283},"))\n",{"type":993,"tag":1022,"props":2285,"children":2286},{"class":1024,"line":182},[2287,2291,2295,2300,2304,2309],{"type":993,"tag":1022,"props":2288,"children":2289},{"style":1103},[2290],{"type":999,"value":1348},{"type":993,"tag":1022,"props":2292,"children":2293},{"style":1037},[2294],{"type":999,"value":1353},{"type":993,"tag":1022,"props":2296,"children":2297},{"style":1057},[2298],{"type":999,"value":2299},"\"User2 theme:\"",{"type":993,"tag":1022,"props":2301,"children":2302},{"style":1037},[2303],{"type":999,"value":2273},{"type":993,"tag":1022,"props":2305,"children":2306},{"style":1057},[2307],{"type":999,"value":2308},"'user2'",{"type":993,"tag":1022,"props":2310,"children":2311},{"style":1037},[2312],{"type":999,"value":2283},{"type":993,"tag":1022,"props":2314,"children":2315},{"class":1024,"line":191},[2316,2320,2324,2329,2333,2338],{"type":993,"tag":1022,"props":2317,"children":2318},{"style":1103},[2319],{"type":999,"value":1348},{"type":993,"tag":1022,"props":2321,"children":2322},{"style":1037},[2323],{"type":999,"value":1353},{"type":993,"tag":1022,"props":2325,"children":2326},{"style":1057},[2327],{"type":999,"value":2328},"\"User3 theme:\"",{"type":993,"tag":1022,"props":2330,"children":2331},{"style":1037},[2332],{"type":999,"value":2273},{"type":993,"tag":1022,"props":2334,"children":2335},{"style":1057},[2336],{"type":999,"value":2337},"'user3'",{"type":993,"tag":1022,"props":2339,"children":2340},{"style":1037},[2341],{"type":999,"value":2283},{"type":993,"tag":2343,"props":2344,"children":2348},"info-box",{"emoji":2345,"title":2346,"type":2347},"🛡️","Safe Access Patterns","info",[2349,2360,2370,2380],{"type":993,"tag":1002,"props":2350,"children":2351},{},[2352,2358],{"type":993,"tag":2353,"props":2354,"children":2355},"strong",{},[2356],{"type":999,"value":2357},"Chain get() Methods:",{"type":999,"value":2359}," Use get() at each level to avoid KeyError exceptions.",{"type":993,"tag":1002,"props":2361,"children":2362},{},[2363,2368],{"type":993,"tag":2353,"props":2364,"children":2365},{},[2366],{"type":999,"value":2367},"Provide Defaults:",{"type":999,"value":2369}," Always specify sensible default values for missing data.",{"type":993,"tag":1002,"props":2371,"children":2372},{},[2373,2378],{"type":993,"tag":2353,"props":2374,"children":2375},{},[2376],{"type":999,"value":2377},"Handle Missing Structures:",{"type":999,"value":2379}," Account for partially missing nested structures.",{"type":993,"tag":1002,"props":2381,"children":2382},{},[2383,2388],{"type":993,"tag":2353,"props":2384,"children":2385},{},[2386],{"type":999,"value":2387},"Validate Before Access:",{"type":999,"value":2389}," Check if nested paths exist before complex operations.",{"type":993,"tag":1423,"props":2391,"children":2393},{"id":2392},"building-nested-dictionaries",[2394],{"type":999,"value":2395},"🚀 Building Nested Dictionaries",{"type":993,"tag":1002,"props":2397,"children":2398},{},[2399],{"type":999,"value":2400},"Creating multi-level dictionaries requires systematic approaches to ensure proper structure initialization. Using setdefault() helps build nested structures safely.",{"type":993,"tag":1008,"props":2402,"children":2403},{},[2404],{"type":993,"tag":1012,"props":2405,"children":2407},{"className":1014,"code":2406,"language":6,"meta":8,"style":8},"# Build nested structure dynamically\ninventory = {}\n\ndef add_product(category, subcategory, product, quantity):\n    \"\"\"Add product to nested inventory structure\"\"\"\n    inventory.setdefault(category, {})\n    inventory[category].setdefault(subcategory, {})\n    inventory[category][subcategory][product] = quantity\n\n# Add various products\nadd_product('electronics', 'computers', 'laptop', 25)\nadd_product('electronics', 'phones', 'smartphone', 50)\nadd_product('clothing', 'men', 'shirt', 100)\nadd_product('clothing', 'women', 'dress', 75)\n\nprint(\"Inventory structure:\", inventory)\n",[2408],{"type":993,"tag":1018,"props":2409,"children":2410},{"__ignoreMap":8},[2411,2419,2436,2443,2460,2468,2476,2484,2501,2508,2516,2559,2601,2644,2686,2693],{"type":993,"tag":1022,"props":2412,"children":2413},{"class":1024,"line":12},[2414],{"type":993,"tag":1022,"props":2415,"children":2416},{"style":1028},[2417],{"type":999,"value":2418},"# Build nested structure dynamically\n",{"type":993,"tag":1022,"props":2420,"children":2421},{"class":1024,"line":27},[2422,2427,2431],{"type":993,"tag":1022,"props":2423,"children":2424},{"style":1037},[2425],{"type":999,"value":2426},"inventory ",{"type":993,"tag":1022,"props":2428,"children":2429},{"style":1043},[2430],{"type":999,"value":1046},{"type":993,"tag":1022,"props":2432,"children":2433},{"style":1037},[2434],{"type":999,"value":2435}," {}\n",{"type":993,"tag":1022,"props":2437,"children":2438},{"class":1024,"line":36},[2439],{"type":993,"tag":1022,"props":2440,"children":2441},{"emptyLinePlaceholder":13},[2442],{"type":999,"value":1340},{"type":993,"tag":1022,"props":2444,"children":2445},{"class":1024,"line":45},[2446,2450,2455],{"type":993,"tag":1022,"props":2447,"children":2448},{"style":1043},[2449],{"type":999,"value":2154},{"type":993,"tag":1022,"props":2451,"children":2452},{"style":2157},[2453],{"type":999,"value":2454}," add_product",{"type":993,"tag":1022,"props":2456,"children":2457},{"style":1037},[2458],{"type":999,"value":2459},"(category, subcategory, product, quantity):\n",{"type":993,"tag":1022,"props":2461,"children":2462},{"class":1024,"line":54},[2463],{"type":993,"tag":1022,"props":2464,"children":2465},{"style":1057},[2466],{"type":999,"value":2467},"    \"\"\"Add product to nested inventory structure\"\"\"\n",{"type":993,"tag":1022,"props":2469,"children":2470},{"class":1024,"line":63},[2471],{"type":993,"tag":1022,"props":2472,"children":2473},{"style":1037},[2474],{"type":999,"value":2475},"    inventory.setdefault(category, {})\n",{"type":993,"tag":1022,"props":2477,"children":2478},{"class":1024,"line":72},[2479],{"type":993,"tag":1022,"props":2480,"children":2481},{"style":1037},[2482],{"type":999,"value":2483},"    inventory[category].setdefault(subcategory, {})\n",{"type":993,"tag":1022,"props":2485,"children":2486},{"class":1024,"line":81},[2487,2492,2496],{"type":993,"tag":1022,"props":2488,"children":2489},{"style":1037},[2490],{"type":999,"value":2491},"    inventory[category][subcategory][product] ",{"type":993,"tag":1022,"props":2493,"children":2494},{"style":1043},[2495],{"type":999,"value":1046},{"type":993,"tag":1022,"props":2497,"children":2498},{"style":1037},[2499],{"type":999,"value":2500}," quantity\n",{"type":993,"tag":1022,"props":2502,"children":2503},{"class":1024,"line":91},[2504],{"type":993,"tag":1022,"props":2505,"children":2506},{"emptyLinePlaceholder":13},[2507],{"type":999,"value":1340},{"type":993,"tag":1022,"props":2509,"children":2510},{"class":1024,"line":100},[2511],{"type":993,"tag":1022,"props":2512,"children":2513},{"style":1028},[2514],{"type":999,"value":2515},"# Add various products\n",{"type":993,"tag":1022,"props":2517,"children":2518},{"class":1024,"line":109},[2519,2524,2529,2533,2538,2542,2547,2551,2555],{"type":993,"tag":1022,"props":2520,"children":2521},{"style":1037},[2522],{"type":999,"value":2523},"add_product(",{"type":993,"tag":1022,"props":2525,"children":2526},{"style":1057},[2527],{"type":999,"value":2528},"'electronics'",{"type":993,"tag":1022,"props":2530,"children":2531},{"style":1037},[2532],{"type":999,"value":1299},{"type":993,"tag":1022,"props":2534,"children":2535},{"style":1057},[2536],{"type":999,"value":2537},"'computers'",{"type":993,"tag":1022,"props":2539,"children":2540},{"style":1037},[2541],{"type":999,"value":1299},{"type":993,"tag":1022,"props":2543,"children":2544},{"style":1057},[2545],{"type":999,"value":2546},"'laptop'",{"type":993,"tag":1022,"props":2548,"children":2549},{"style":1037},[2550],{"type":999,"value":1299},{"type":993,"tag":1022,"props":2552,"children":2553},{"style":1103},[2554],{"type":999,"value":2028},{"type":993,"tag":1022,"props":2556,"children":2557},{"style":1037},[2558],{"type":999,"value":1895},{"type":993,"tag":1022,"props":2560,"children":2561},{"class":1024,"line":118},[2562,2566,2570,2574,2579,2583,2588,2592,2597],{"type":993,"tag":1022,"props":2563,"children":2564},{"style":1037},[2565],{"type":999,"value":2523},{"type":993,"tag":1022,"props":2567,"children":2568},{"style":1057},[2569],{"type":999,"value":2528},{"type":993,"tag":1022,"props":2571,"children":2572},{"style":1037},[2573],{"type":999,"value":1299},{"type":993,"tag":1022,"props":2575,"children":2576},{"style":1057},[2577],{"type":999,"value":2578},"'phones'",{"type":993,"tag":1022,"props":2580,"children":2581},{"style":1037},[2582],{"type":999,"value":1299},{"type":993,"tag":1022,"props":2584,"children":2585},{"style":1057},[2586],{"type":999,"value":2587},"'smartphone'",{"type":993,"tag":1022,"props":2589,"children":2590},{"style":1037},[2591],{"type":999,"value":1299},{"type":993,"tag":1022,"props":2593,"children":2594},{"style":1103},[2595],{"type":999,"value":2596},"50",{"type":993,"tag":1022,"props":2598,"children":2599},{"style":1037},[2600],{"type":999,"value":1895},{"type":993,"tag":1022,"props":2602,"children":2603},{"class":1024,"line":127},[2604,2608,2613,2617,2622,2626,2631,2635,2640],{"type":993,"tag":1022,"props":2605,"children":2606},{"style":1037},[2607],{"type":999,"value":2523},{"type":993,"tag":1022,"props":2609,"children":2610},{"style":1057},[2611],{"type":999,"value":2612},"'clothing'",{"type":993,"tag":1022,"props":2614,"children":2615},{"style":1037},[2616],{"type":999,"value":1299},{"type":993,"tag":1022,"props":2618,"children":2619},{"style":1057},[2620],{"type":999,"value":2621},"'men'",{"type":993,"tag":1022,"props":2623,"children":2624},{"style":1037},[2625],{"type":999,"value":1299},{"type":993,"tag":1022,"props":2627,"children":2628},{"style":1057},[2629],{"type":999,"value":2630},"'shirt'",{"type":993,"tag":1022,"props":2632,"children":2633},{"style":1037},[2634],{"type":999,"value":1299},{"type":993,"tag":1022,"props":2636,"children":2637},{"style":1103},[2638],{"type":999,"value":2639},"100",{"type":993,"tag":1022,"props":2641,"children":2642},{"style":1037},[2643],{"type":999,"value":1895},{"type":993,"tag":1022,"props":2645,"children":2646},{"class":1024,"line":136},[2647,2651,2655,2659,2664,2668,2673,2677,2682],{"type":993,"tag":1022,"props":2648,"children":2649},{"style":1037},[2650],{"type":999,"value":2523},{"type":993,"tag":1022,"props":2652,"children":2653},{"style":1057},[2654],{"type":999,"value":2612},{"type":993,"tag":1022,"props":2656,"children":2657},{"style":1037},[2658],{"type":999,"value":1299},{"type":993,"tag":1022,"props":2660,"children":2661},{"style":1057},[2662],{"type":999,"value":2663},"'women'",{"type":993,"tag":1022,"props":2665,"children":2666},{"style":1037},[2667],{"type":999,"value":1299},{"type":993,"tag":1022,"props":2669,"children":2670},{"style":1057},[2671],{"type":999,"value":2672},"'dress'",{"type":993,"tag":1022,"props":2674,"children":2675},{"style":1037},[2676],{"type":999,"value":1299},{"type":993,"tag":1022,"props":2678,"children":2679},{"style":1103},[2680],{"type":999,"value":2681},"75",{"type":993,"tag":1022,"props":2683,"children":2684},{"style":1037},[2685],{"type":999,"value":1895},{"type":993,"tag":1022,"props":2687,"children":2688},{"class":1024,"line":146},[2689],{"type":993,"tag":1022,"props":2690,"children":2691},{"emptyLinePlaceholder":13},[2692],{"type":999,"value":1340},{"type":993,"tag":1022,"props":2694,"children":2695},{"class":1024,"line":155},[2696,2700,2704,2709],{"type":993,"tag":1022,"props":2697,"children":2698},{"style":1103},[2699],{"type":999,"value":1348},{"type":993,"tag":1022,"props":2701,"children":2702},{"style":1037},[2703],{"type":999,"value":1353},{"type":993,"tag":1022,"props":2705,"children":2706},{"style":1057},[2707],{"type":999,"value":2708},"\"Inventory structure:\"",{"type":993,"tag":1022,"props":2710,"children":2711},{"style":1037},[2712],{"type":999,"value":2713},", inventory)\n",{"type":993,"tag":1423,"props":2715,"children":2717},{"id":2716},"modifying-nested-values",[2718],{"type":999,"value":2719},"🌟 Modifying Nested Values",{"type":993,"tag":1002,"props":2721,"children":2722},{},[2723],{"type":999,"value":2724},"Updating nested dictionary values requires careful navigation to the target location. The code demonstrates various modification patterns for different scenarios.",{"type":993,"tag":1008,"props":2726,"children":2727},{},[2728],{"type":993,"tag":1012,"props":2729,"children":2731},{"className":1014,"code":2730,"language":6,"meta":8,"style":8},"config = {\n    'database': {\n        'primary': {'host': 'localhost', 'port': 5432},\n        'backup': {'host': 'backup.db.com', 'port': 5433}\n    },\n    'cache': {\n        'redis': {'enabled': True, 'ttl': 3600}\n    }\n}\n\n# Direct modification\nconfig['database']['primary']['port'] = 5434\nconfig['cache']['redis']['ttl'] = 7200\n\n# Add new nested sections\nconfig.setdefault('logging', {})\nconfig['logging']['level'] = 'INFO'\nconfig['logging']['file'] = '/var/log/app.log'\n\nprint(\"Updated config:\", config)\n",[2732],{"type":993,"tag":1018,"props":2733,"children":2734},{"__ignoreMap":8},[2735,2751,2763,2811,2857,2864,2876,2923,2930,2937,2944,2952,2995,3037,3044,3052,3069,3102,3135,3142],{"type":993,"tag":1022,"props":2736,"children":2737},{"class":1024,"line":12},[2738,2743,2747],{"type":993,"tag":1022,"props":2739,"children":2740},{"style":1037},[2741],{"type":999,"value":2742},"config ",{"type":993,"tag":1022,"props":2744,"children":2745},{"style":1043},[2746],{"type":999,"value":1046},{"type":993,"tag":1022,"props":2748,"children":2749},{"style":1037},[2750],{"type":999,"value":1051},{"type":993,"tag":1022,"props":2752,"children":2753},{"class":1024,"line":27},[2754,2759],{"type":993,"tag":1022,"props":2755,"children":2756},{"style":1057},[2757],{"type":999,"value":2758},"    'database'",{"type":993,"tag":1022,"props":2760,"children":2761},{"style":1037},[2762],{"type":999,"value":1065},{"type":993,"tag":1022,"props":2764,"children":2765},{"class":1024,"line":36},[2766,2771,2775,2780,2784,2789,2793,2798,2802,2807],{"type":993,"tag":1022,"props":2767,"children":2768},{"style":1057},[2769],{"type":999,"value":2770},"        'primary'",{"type":993,"tag":1022,"props":2772,"children":2773},{"style":1037},[2774],{"type":999,"value":1280},{"type":993,"tag":1022,"props":2776,"children":2777},{"style":1057},[2778],{"type":999,"value":2779},"'host'",{"type":993,"tag":1022,"props":2781,"children":2782},{"style":1037},[2783],{"type":999,"value":1078},{"type":993,"tag":1022,"props":2785,"children":2786},{"style":1057},[2787],{"type":999,"value":2788},"'localhost'",{"type":993,"tag":1022,"props":2790,"children":2791},{"style":1037},[2792],{"type":999,"value":1299},{"type":993,"tag":1022,"props":2794,"children":2795},{"style":1057},[2796],{"type":999,"value":2797},"'port'",{"type":993,"tag":1022,"props":2799,"children":2800},{"style":1037},[2801],{"type":999,"value":1078},{"type":993,"tag":1022,"props":2803,"children":2804},{"style":1103},[2805],{"type":999,"value":2806},"5432",{"type":993,"tag":1022,"props":2808,"children":2809},{"style":1037},[2810],{"type":999,"value":2033},{"type":993,"tag":1022,"props":2812,"children":2813},{"class":1024,"line":45},[2814,2819,2823,2827,2831,2836,2840,2844,2848,2853],{"type":993,"tag":1022,"props":2815,"children":2816},{"style":1057},[2817],{"type":999,"value":2818},"        'backup'",{"type":993,"tag":1022,"props":2820,"children":2821},{"style":1037},[2822],{"type":999,"value":1280},{"type":993,"tag":1022,"props":2824,"children":2825},{"style":1057},[2826],{"type":999,"value":2779},{"type":993,"tag":1022,"props":2828,"children":2829},{"style":1037},[2830],{"type":999,"value":1078},{"type":993,"tag":1022,"props":2832,"children":2833},{"style":1057},[2834],{"type":999,"value":2835},"'backup.db.com'",{"type":993,"tag":1022,"props":2837,"children":2838},{"style":1037},[2839],{"type":999,"value":1299},{"type":993,"tag":1022,"props":2841,"children":2842},{"style":1057},[2843],{"type":999,"value":2797},{"type":993,"tag":1022,"props":2845,"children":2846},{"style":1037},[2847],{"type":999,"value":1078},{"type":993,"tag":1022,"props":2849,"children":2850},{"style":1103},[2851],{"type":999,"value":2852},"5433",{"type":993,"tag":1022,"props":2854,"children":2855},{"style":1037},[2856],{"type":999,"value":1317},{"type":993,"tag":1022,"props":2858,"children":2859},{"class":1024,"line":54},[2860],{"type":993,"tag":1022,"props":2861,"children":2862},{"style":1037},[2863],{"type":999,"value":1135},{"type":993,"tag":1022,"props":2865,"children":2866},{"class":1024,"line":63},[2867,2872],{"type":993,"tag":1022,"props":2868,"children":2869},{"style":1057},[2870],{"type":999,"value":2871},"    'cache'",{"type":993,"tag":1022,"props":2873,"children":2874},{"style":1037},[2875],{"type":999,"value":1065},{"type":993,"tag":1022,"props":2877,"children":2878},{"class":1024,"line":72},[2879,2884,2888,2893,2897,2901,2905,2910,2914,2919],{"type":993,"tag":1022,"props":2880,"children":2881},{"style":1057},[2882],{"type":999,"value":2883},"        'redis'",{"type":993,"tag":1022,"props":2885,"children":2886},{"style":1037},[2887],{"type":999,"value":1280},{"type":993,"tag":1022,"props":2889,"children":2890},{"style":1057},[2891],{"type":999,"value":2892},"'enabled'",{"type":993,"tag":1022,"props":2894,"children":2895},{"style":1037},[2896],{"type":999,"value":1078},{"type":993,"tag":1022,"props":2898,"children":2899},{"style":1103},[2900],{"type":999,"value":1263},{"type":993,"tag":1022,"props":2902,"children":2903},{"style":1037},[2904],{"type":999,"value":1299},{"type":993,"tag":1022,"props":2906,"children":2907},{"style":1057},[2908],{"type":999,"value":2909},"'ttl'",{"type":993,"tag":1022,"props":2911,"children":2912},{"style":1037},[2913],{"type":999,"value":1078},{"type":993,"tag":1022,"props":2915,"children":2916},{"style":1103},[2917],{"type":999,"value":2918},"3600",{"type":993,"tag":1022,"props":2920,"children":2921},{"style":1037},[2922],{"type":999,"value":1317},{"type":993,"tag":1022,"props":2924,"children":2925},{"class":1024,"line":81},[2926],{"type":993,"tag":1022,"props":2927,"children":2928},{"style":1037},[2929],{"type":999,"value":1325},{"type":993,"tag":1022,"props":2931,"children":2932},{"class":1024,"line":91},[2933],{"type":993,"tag":1022,"props":2934,"children":2935},{"style":1037},[2936],{"type":999,"value":1317},{"type":993,"tag":1022,"props":2938,"children":2939},{"class":1024,"line":100},[2940],{"type":993,"tag":1022,"props":2941,"children":2942},{"emptyLinePlaceholder":13},[2943],{"type":999,"value":1340},{"type":993,"tag":1022,"props":2945,"children":2946},{"class":1024,"line":109},[2947],{"type":993,"tag":1022,"props":2948,"children":2949},{"style":1028},[2950],{"type":999,"value":2951},"# Direct modification\n",{"type":993,"tag":1022,"props":2953,"children":2954},{"class":1024,"line":118},[2955,2960,2965,2969,2974,2978,2982,2986,2990],{"type":993,"tag":1022,"props":2956,"children":2957},{"style":1037},[2958],{"type":999,"value":2959},"config[",{"type":993,"tag":1022,"props":2961,"children":2962},{"style":1057},[2963],{"type":999,"value":2964},"'database'",{"type":993,"tag":1022,"props":2966,"children":2967},{"style":1037},[2968],{"type":999,"value":1373},{"type":993,"tag":1022,"props":2970,"children":2971},{"style":1057},[2972],{"type":999,"value":2973},"'primary'",{"type":993,"tag":1022,"props":2975,"children":2976},{"style":1037},[2977],{"type":999,"value":1373},{"type":993,"tag":1022,"props":2979,"children":2980},{"style":1057},[2981],{"type":999,"value":2797},{"type":993,"tag":1022,"props":2983,"children":2984},{"style":1037},[2985],{"type":999,"value":1799},{"type":993,"tag":1022,"props":2987,"children":2988},{"style":1043},[2989],{"type":999,"value":1046},{"type":993,"tag":1022,"props":2991,"children":2992},{"style":1103},[2993],{"type":999,"value":2994}," 5434\n",{"type":993,"tag":1022,"props":2996,"children":2997},{"class":1024,"line":127},[2998,3002,3007,3011,3016,3020,3024,3028,3032],{"type":993,"tag":1022,"props":2999,"children":3000},{"style":1037},[3001],{"type":999,"value":2959},{"type":993,"tag":1022,"props":3003,"children":3004},{"style":1057},[3005],{"type":999,"value":3006},"'cache'",{"type":993,"tag":1022,"props":3008,"children":3009},{"style":1037},[3010],{"type":999,"value":1373},{"type":993,"tag":1022,"props":3012,"children":3013},{"style":1057},[3014],{"type":999,"value":3015},"'redis'",{"type":993,"tag":1022,"props":3017,"children":3018},{"style":1037},[3019],{"type":999,"value":1373},{"type":993,"tag":1022,"props":3021,"children":3022},{"style":1057},[3023],{"type":999,"value":2909},{"type":993,"tag":1022,"props":3025,"children":3026},{"style":1037},[3027],{"type":999,"value":1799},{"type":993,"tag":1022,"props":3029,"children":3030},{"style":1043},[3031],{"type":999,"value":1046},{"type":993,"tag":1022,"props":3033,"children":3034},{"style":1103},[3035],{"type":999,"value":3036}," 7200\n",{"type":993,"tag":1022,"props":3038,"children":3039},{"class":1024,"line":136},[3040],{"type":993,"tag":1022,"props":3041,"children":3042},{"emptyLinePlaceholder":13},[3043],{"type":999,"value":1340},{"type":993,"tag":1022,"props":3045,"children":3046},{"class":1024,"line":146},[3047],{"type":993,"tag":1022,"props":3048,"children":3049},{"style":1028},[3050],{"type":999,"value":3051},"# Add new nested sections\n",{"type":993,"tag":1022,"props":3053,"children":3054},{"class":1024,"line":155},[3055,3060,3065],{"type":993,"tag":1022,"props":3056,"children":3057},{"style":1037},[3058],{"type":999,"value":3059},"config.setdefault(",{"type":993,"tag":1022,"props":3061,"children":3062},{"style":1057},[3063],{"type":999,"value":3064},"'logging'",{"type":993,"tag":1022,"props":3066,"children":3067},{"style":1037},[3068],{"type":999,"value":2209},{"type":993,"tag":1022,"props":3070,"children":3071},{"class":1024,"line":164},[3072,3076,3080,3084,3089,3093,3097],{"type":993,"tag":1022,"props":3073,"children":3074},{"style":1037},[3075],{"type":999,"value":2959},{"type":993,"tag":1022,"props":3077,"children":3078},{"style":1057},[3079],{"type":999,"value":3064},{"type":993,"tag":1022,"props":3081,"children":3082},{"style":1037},[3083],{"type":999,"value":1373},{"type":993,"tag":1022,"props":3085,"children":3086},{"style":1057},[3087],{"type":999,"value":3088},"'level'",{"type":993,"tag":1022,"props":3090,"children":3091},{"style":1037},[3092],{"type":999,"value":1799},{"type":993,"tag":1022,"props":3094,"children":3095},{"style":1043},[3096],{"type":999,"value":1046},{"type":993,"tag":1022,"props":3098,"children":3099},{"style":1057},[3100],{"type":999,"value":3101}," 'INFO'\n",{"type":993,"tag":1022,"props":3103,"children":3104},{"class":1024,"line":173},[3105,3109,3113,3117,3122,3126,3130],{"type":993,"tag":1022,"props":3106,"children":3107},{"style":1037},[3108],{"type":999,"value":2959},{"type":993,"tag":1022,"props":3110,"children":3111},{"style":1057},[3112],{"type":999,"value":3064},{"type":993,"tag":1022,"props":3114,"children":3115},{"style":1037},[3116],{"type":999,"value":1373},{"type":993,"tag":1022,"props":3118,"children":3119},{"style":1057},[3120],{"type":999,"value":3121},"'file'",{"type":993,"tag":1022,"props":3123,"children":3124},{"style":1037},[3125],{"type":999,"value":1799},{"type":993,"tag":1022,"props":3127,"children":3128},{"style":1043},[3129],{"type":999,"value":1046},{"type":993,"tag":1022,"props":3131,"children":3132},{"style":1057},[3133],{"type":999,"value":3134}," '/var/log/app.log'\n",{"type":993,"tag":1022,"props":3136,"children":3137},{"class":1024,"line":182},[3138],{"type":993,"tag":1022,"props":3139,"children":3140},{"emptyLinePlaceholder":13},[3141],{"type":999,"value":1340},{"type":993,"tag":1022,"props":3143,"children":3144},{"class":1024,"line":191},[3145,3149,3153,3158],{"type":993,"tag":1022,"props":3146,"children":3147},{"style":1103},[3148],{"type":999,"value":1348},{"type":993,"tag":1022,"props":3150,"children":3151},{"style":1037},[3152],{"type":999,"value":1353},{"type":993,"tag":1022,"props":3154,"children":3155},{"style":1057},[3156],{"type":999,"value":3157},"\"Updated config:\"",{"type":993,"tag":1022,"props":3159,"children":3160},{"style":1037},[3161],{"type":999,"value":3162},", config)\n",{"type":993,"tag":1423,"props":3164,"children":3166},{"id":3165},"nested-dictionary-operations-table",[3167],{"type":999,"value":3168},"📚 Nested Dictionary Operations Table",{"type":993,"tag":3170,"props":3171,"children":3172},"table",{},[3173,3202],{"type":993,"tag":3174,"props":3175,"children":3176},"thead",{},[3177],{"type":993,"tag":3178,"props":3179,"children":3180},"tr",{},[3181,3187,3192,3197],{"type":993,"tag":3182,"props":3183,"children":3184},"th",{},[3185],{"type":999,"value":3186},"Operation",{"type":993,"tag":3182,"props":3188,"children":3189},{},[3190],{"type":999,"value":3191},"Syntax",{"type":993,"tag":3182,"props":3193,"children":3194},{},[3195],{"type":999,"value":3196},"Purpose",{"type":993,"tag":3182,"props":3198,"children":3199},{},[3200],{"type":999,"value":3201},"Safety Level",{"type":993,"tag":3203,"props":3204,"children":3205},"tbody",{},[3206,3234,3261,3288],{"type":993,"tag":3178,"props":3207,"children":3208},{},[3209,3215,3224,3229],{"type":993,"tag":3210,"props":3211,"children":3212},"td",{},[3213],{"type":999,"value":3214},"Direct access",{"type":993,"tag":3210,"props":3216,"children":3217},{},[3218],{"type":993,"tag":1018,"props":3219,"children":3221},{"className":3220},[],[3222],{"type":999,"value":3223},"dict[key1][key2]",{"type":993,"tag":3210,"props":3225,"children":3226},{},[3227],{"type":999,"value":3228},"Fast access to known paths",{"type":993,"tag":3210,"props":3230,"children":3231},{},[3232],{"type":999,"value":3233},"Low - raises KeyError",{"type":993,"tag":3178,"props":3235,"children":3236},{},[3237,3242,3251,3256],{"type":993,"tag":3210,"props":3238,"children":3239},{},[3240],{"type":999,"value":3241},"Safe access",{"type":993,"tag":3210,"props":3243,"children":3244},{},[3245],{"type":993,"tag":1018,"props":3246,"children":3248},{"className":3247},[],[3249],{"type":999,"value":3250},"dict.get(key1, {}).get(key2)",{"type":993,"tag":3210,"props":3252,"children":3253},{},[3254],{"type":999,"value":3255},"Safe access with defaults",{"type":993,"tag":3210,"props":3257,"children":3258},{},[3259],{"type":999,"value":3260},"High - returns None/default",{"type":993,"tag":3178,"props":3262,"children":3263},{},[3264,3269,3278,3283],{"type":993,"tag":3210,"props":3265,"children":3266},{},[3267],{"type":999,"value":3268},"Building structure",{"type":993,"tag":3210,"props":3270,"children":3271},{},[3272],{"type":993,"tag":1018,"props":3273,"children":3275},{"className":3274},[],[3276],{"type":999,"value":3277},"dict.setdefault(key1, {})",{"type":993,"tag":3210,"props":3279,"children":3280},{},[3281],{"type":999,"value":3282},"Initialize nested levels",{"type":993,"tag":3210,"props":3284,"children":3285},{},[3286],{"type":999,"value":3287},"High - creates if missing",{"type":993,"tag":3178,"props":3289,"children":3290},{},[3291,3296,3305,3310],{"type":993,"tag":3210,"props":3292,"children":3293},{},[3294],{"type":999,"value":3295},"Deep update",{"type":993,"tag":3210,"props":3297,"children":3298},{},[3299],{"type":993,"tag":1018,"props":3300,"children":3302},{"className":3301},[],[3303],{"type":999,"value":3304},"dict[key1].update(new_data)",{"type":993,"tag":3210,"props":3306,"children":3307},{},[3308],{"type":999,"value":3309},"Merge into nested dict",{"type":993,"tag":3210,"props":3311,"children":3312},{},[3313],{"type":999,"value":3314},"Medium - requires existing path",{"type":993,"tag":1423,"props":3316,"children":3318},{"id":3317},"iterating-through-nested-dictionaries",[3319],{"type":999,"value":3320},"🔄 Iterating Through Nested Dictionaries",{"type":993,"tag":1002,"props":3322,"children":3323},{},[3324],{"type":999,"value":3325},"Processing multi-level dictionaries requires recursive or systematic approaches to traverse all levels effectively. Here we explore different iteration strategies.",{"type":993,"tag":1008,"props":3327,"children":3328},{},[3329],{"type":993,"tag":1012,"props":3330,"children":3332},{"className":1014,"code":3331,"language":6,"meta":8,"style":8},"school_data = {\n    'grade_1': {\n        'class_a': {'students': 25, 'teacher': 'Ms. Smith'},\n        'class_b': {'students': 23, 'teacher': 'Mr. Jones'}\n    },\n    'grade_2': {\n        'class_a': {'students': 27, 'teacher': 'Ms. Wilson'},\n        'class_b': {'students': 24, 'teacher': 'Mr. Brown'}\n    }\n}\n\n# Calculate total students\ntotal_students = 0\nfor grade, classes in school_data.items():\n    for class_name, info in classes.items():\n        total_students += info['students']\n        print(f\"{grade} {class_name}: {info['students']} students\")\n\nprint(f\"Total students: {total_students}\")\n",[3333],{"type":993,"tag":1018,"props":3334,"children":3335},{"__ignoreMap":8},[3336,3352,3364,3411,3457,3464,3476,3521,3566,3573,3580,3587,3595,3612,3635,3657,3683,3765,3772],{"type":993,"tag":1022,"props":3337,"children":3338},{"class":1024,"line":12},[3339,3344,3348],{"type":993,"tag":1022,"props":3340,"children":3341},{"style":1037},[3342],{"type":999,"value":3343},"school_data ",{"type":993,"tag":1022,"props":3345,"children":3346},{"style":1043},[3347],{"type":999,"value":1046},{"type":993,"tag":1022,"props":3349,"children":3350},{"style":1037},[3351],{"type":999,"value":1051},{"type":993,"tag":1022,"props":3353,"children":3354},{"class":1024,"line":27},[3355,3360],{"type":993,"tag":1022,"props":3356,"children":3357},{"style":1057},[3358],{"type":999,"value":3359},"    'grade_1'",{"type":993,"tag":1022,"props":3361,"children":3362},{"style":1037},[3363],{"type":999,"value":1065},{"type":993,"tag":1022,"props":3365,"children":3366},{"class":1024,"line":36},[3367,3372,3376,3381,3385,3389,3393,3398,3402,3407],{"type":993,"tag":1022,"props":3368,"children":3369},{"style":1057},[3370],{"type":999,"value":3371},"        'class_a'",{"type":993,"tag":1022,"props":3373,"children":3374},{"style":1037},[3375],{"type":999,"value":1280},{"type":993,"tag":1022,"props":3377,"children":3378},{"style":1057},[3379],{"type":999,"value":3380},"'students'",{"type":993,"tag":1022,"props":3382,"children":3383},{"style":1037},[3384],{"type":999,"value":1078},{"type":993,"tag":1022,"props":3386,"children":3387},{"style":1103},[3388],{"type":999,"value":2028},{"type":993,"tag":1022,"props":3390,"children":3391},{"style":1037},[3392],{"type":999,"value":1299},{"type":993,"tag":1022,"props":3394,"children":3395},{"style":1057},[3396],{"type":999,"value":3397},"'teacher'",{"type":993,"tag":1022,"props":3399,"children":3400},{"style":1037},[3401],{"type":999,"value":1078},{"type":993,"tag":1022,"props":3403,"children":3404},{"style":1057},[3405],{"type":999,"value":3406},"'Ms. Smith'",{"type":993,"tag":1022,"props":3408,"children":3409},{"style":1037},[3410],{"type":999,"value":2033},{"type":993,"tag":1022,"props":3412,"children":3413},{"class":1024,"line":45},[3414,3419,3423,3427,3431,3436,3440,3444,3448,3453],{"type":993,"tag":1022,"props":3415,"children":3416},{"style":1057},[3417],{"type":999,"value":3418},"        'class_b'",{"type":993,"tag":1022,"props":3420,"children":3421},{"style":1037},[3422],{"type":999,"value":1280},{"type":993,"tag":1022,"props":3424,"children":3425},{"style":1057},[3426],{"type":999,"value":3380},{"type":993,"tag":1022,"props":3428,"children":3429},{"style":1037},[3430],{"type":999,"value":1078},{"type":993,"tag":1022,"props":3432,"children":3433},{"style":1103},[3434],{"type":999,"value":3435},"23",{"type":993,"tag":1022,"props":3437,"children":3438},{"style":1037},[3439],{"type":999,"value":1299},{"type":993,"tag":1022,"props":3441,"children":3442},{"style":1057},[3443],{"type":999,"value":3397},{"type":993,"tag":1022,"props":3445,"children":3446},{"style":1037},[3447],{"type":999,"value":1078},{"type":993,"tag":1022,"props":3449,"children":3450},{"style":1057},[3451],{"type":999,"value":3452},"'Mr. Jones'",{"type":993,"tag":1022,"props":3454,"children":3455},{"style":1037},[3456],{"type":999,"value":1317},{"type":993,"tag":1022,"props":3458,"children":3459},{"class":1024,"line":54},[3460],{"type":993,"tag":1022,"props":3461,"children":3462},{"style":1037},[3463],{"type":999,"value":1135},{"type":993,"tag":1022,"props":3465,"children":3466},{"class":1024,"line":63},[3467,3472],{"type":993,"tag":1022,"props":3468,"children":3469},{"style":1057},[3470],{"type":999,"value":3471},"    'grade_2'",{"type":993,"tag":1022,"props":3473,"children":3474},{"style":1037},[3475],{"type":999,"value":1065},{"type":993,"tag":1022,"props":3477,"children":3478},{"class":1024,"line":72},[3479,3483,3487,3491,3495,3500,3504,3508,3512,3517],{"type":993,"tag":1022,"props":3480,"children":3481},{"style":1057},[3482],{"type":999,"value":3371},{"type":993,"tag":1022,"props":3484,"children":3485},{"style":1037},[3486],{"type":999,"value":1280},{"type":993,"tag":1022,"props":3488,"children":3489},{"style":1057},[3490],{"type":999,"value":3380},{"type":993,"tag":1022,"props":3492,"children":3493},{"style":1037},[3494],{"type":999,"value":1078},{"type":993,"tag":1022,"props":3496,"children":3497},{"style":1103},[3498],{"type":999,"value":3499},"27",{"type":993,"tag":1022,"props":3501,"children":3502},{"style":1037},[3503],{"type":999,"value":1299},{"type":993,"tag":1022,"props":3505,"children":3506},{"style":1057},[3507],{"type":999,"value":3397},{"type":993,"tag":1022,"props":3509,"children":3510},{"style":1037},[3511],{"type":999,"value":1078},{"type":993,"tag":1022,"props":3513,"children":3514},{"style":1057},[3515],{"type":999,"value":3516},"'Ms. Wilson'",{"type":993,"tag":1022,"props":3518,"children":3519},{"style":1037},[3520],{"type":999,"value":2033},{"type":993,"tag":1022,"props":3522,"children":3523},{"class":1024,"line":81},[3524,3528,3532,3536,3540,3545,3549,3553,3557,3562],{"type":993,"tag":1022,"props":3525,"children":3526},{"style":1057},[3527],{"type":999,"value":3418},{"type":993,"tag":1022,"props":3529,"children":3530},{"style":1037},[3531],{"type":999,"value":1280},{"type":993,"tag":1022,"props":3533,"children":3534},{"style":1057},[3535],{"type":999,"value":3380},{"type":993,"tag":1022,"props":3537,"children":3538},{"style":1037},[3539],{"type":999,"value":1078},{"type":993,"tag":1022,"props":3541,"children":3542},{"style":1103},[3543],{"type":999,"value":3544},"24",{"type":993,"tag":1022,"props":3546,"children":3547},{"style":1037},[3548],{"type":999,"value":1299},{"type":993,"tag":1022,"props":3550,"children":3551},{"style":1057},[3552],{"type":999,"value":3397},{"type":993,"tag":1022,"props":3554,"children":3555},{"style":1037},[3556],{"type":999,"value":1078},{"type":993,"tag":1022,"props":3558,"children":3559},{"style":1057},[3560],{"type":999,"value":3561},"'Mr. Brown'",{"type":993,"tag":1022,"props":3563,"children":3564},{"style":1037},[3565],{"type":999,"value":1317},{"type":993,"tag":1022,"props":3567,"children":3568},{"class":1024,"line":91},[3569],{"type":993,"tag":1022,"props":3570,"children":3571},{"style":1037},[3572],{"type":999,"value":1325},{"type":993,"tag":1022,"props":3574,"children":3575},{"class":1024,"line":100},[3576],{"type":993,"tag":1022,"props":3577,"children":3578},{"style":1037},[3579],{"type":999,"value":1317},{"type":993,"tag":1022,"props":3581,"children":3582},{"class":1024,"line":109},[3583],{"type":993,"tag":1022,"props":3584,"children":3585},{"emptyLinePlaceholder":13},[3586],{"type":999,"value":1340},{"type":993,"tag":1022,"props":3588,"children":3589},{"class":1024,"line":118},[3590],{"type":993,"tag":1022,"props":3591,"children":3592},{"style":1028},[3593],{"type":999,"value":3594},"# Calculate total students\n",{"type":993,"tag":1022,"props":3596,"children":3597},{"class":1024,"line":127},[3598,3603,3607],{"type":993,"tag":1022,"props":3599,"children":3600},{"style":1037},[3601],{"type":999,"value":3602},"total_students ",{"type":993,"tag":1022,"props":3604,"children":3605},{"style":1043},[3606],{"type":999,"value":1046},{"type":993,"tag":1022,"props":3608,"children":3609},{"style":1103},[3610],{"type":999,"value":3611}," 0\n",{"type":993,"tag":1022,"props":3613,"children":3614},{"class":1024,"line":136},[3615,3620,3625,3630],{"type":993,"tag":1022,"props":3616,"children":3617},{"style":1043},[3618],{"type":999,"value":3619},"for",{"type":993,"tag":1022,"props":3621,"children":3622},{"style":1037},[3623],{"type":999,"value":3624}," grade, classes ",{"type":993,"tag":1022,"props":3626,"children":3627},{"style":1043},[3628],{"type":999,"value":3629},"in",{"type":993,"tag":1022,"props":3631,"children":3632},{"style":1037},[3633],{"type":999,"value":3634}," school_data.items():\n",{"type":993,"tag":1022,"props":3636,"children":3637},{"class":1024,"line":146},[3638,3643,3648,3652],{"type":993,"tag":1022,"props":3639,"children":3640},{"style":1043},[3641],{"type":999,"value":3642},"    for",{"type":993,"tag":1022,"props":3644,"children":3645},{"style":1037},[3646],{"type":999,"value":3647}," class_name, info ",{"type":993,"tag":1022,"props":3649,"children":3650},{"style":1043},[3651],{"type":999,"value":3629},{"type":993,"tag":1022,"props":3653,"children":3654},{"style":1037},[3655],{"type":999,"value":3656}," classes.items():\n",{"type":993,"tag":1022,"props":3658,"children":3659},{"class":1024,"line":155},[3660,3665,3670,3675,3679],{"type":993,"tag":1022,"props":3661,"children":3662},{"style":1037},[3663],{"type":999,"value":3664},"        total_students ",{"type":993,"tag":1022,"props":3666,"children":3667},{"style":1043},[3668],{"type":999,"value":3669},"+=",{"type":993,"tag":1022,"props":3671,"children":3672},{"style":1037},[3673],{"type":999,"value":3674}," info[",{"type":993,"tag":1022,"props":3676,"children":3677},{"style":1057},[3678],{"type":999,"value":3380},{"type":993,"tag":1022,"props":3680,"children":3681},{"style":1037},[3682],{"type":999,"value":1756},{"type":993,"tag":1022,"props":3684,"children":3685},{"class":1024,"line":164},[3686,3691,3695,3699,3703,3707,3712,3716,3721,3726,3730,3734,3738,3743,3747,3752,3756,3761],{"type":993,"tag":1022,"props":3687,"children":3688},{"style":1103},[3689],{"type":999,"value":3690},"        print",{"type":993,"tag":1022,"props":3692,"children":3693},{"style":1037},[3694],{"type":999,"value":1353},{"type":993,"tag":1022,"props":3696,"children":3697},{"style":1043},[3698],{"type":999,"value":1865},{"type":993,"tag":1022,"props":3700,"children":3701},{"style":1057},[3702],{"type":999,"value":1890},{"type":993,"tag":1022,"props":3704,"children":3705},{"style":1103},[3706],{"type":999,"value":1875},{"type":993,"tag":1022,"props":3708,"children":3709},{"style":1037},[3710],{"type":999,"value":3711},"grade",{"type":993,"tag":1022,"props":3713,"children":3714},{"style":1103},[3715],{"type":999,"value":1885},{"type":993,"tag":1022,"props":3717,"children":3718},{"style":1103},[3719],{"type":999,"value":3720}," {",{"type":993,"tag":1022,"props":3722,"children":3723},{"style":1037},[3724],{"type":999,"value":3725},"class_name",{"type":993,"tag":1022,"props":3727,"children":3728},{"style":1103},[3729],{"type":999,"value":1885},{"type":993,"tag":1022,"props":3731,"children":3732},{"style":1057},[3733],{"type":999,"value":1078},{"type":993,"tag":1022,"props":3735,"children":3736},{"style":1103},[3737],{"type":999,"value":1875},{"type":993,"tag":1022,"props":3739,"children":3740},{"style":1037},[3741],{"type":999,"value":3742},"info[",{"type":993,"tag":1022,"props":3744,"children":3745},{"style":1057},[3746],{"type":999,"value":3380},{"type":993,"tag":1022,"props":3748,"children":3749},{"style":1037},[3750],{"type":999,"value":3751},"]",{"type":993,"tag":1022,"props":3753,"children":3754},{"style":1103},[3755],{"type":999,"value":1885},{"type":993,"tag":1022,"props":3757,"children":3758},{"style":1057},[3759],{"type":999,"value":3760}," students\"",{"type":993,"tag":1022,"props":3762,"children":3763},{"style":1037},[3764],{"type":999,"value":1895},{"type":993,"tag":1022,"props":3766,"children":3767},{"class":1024,"line":173},[3768],{"type":993,"tag":1022,"props":3769,"children":3770},{"emptyLinePlaceholder":13},[3771],{"type":999,"value":1340},{"type":993,"tag":1022,"props":3773,"children":3774},{"class":1024,"line":182},[3775,3779,3783,3787,3792,3796,3801,3805,3809],{"type":993,"tag":1022,"props":3776,"children":3777},{"style":1103},[3778],{"type":999,"value":1348},{"type":993,"tag":1022,"props":3780,"children":3781},{"style":1037},[3782],{"type":999,"value":1353},{"type":993,"tag":1022,"props":3784,"children":3785},{"style":1043},[3786],{"type":999,"value":1865},{"type":993,"tag":1022,"props":3788,"children":3789},{"style":1057},[3790],{"type":999,"value":3791},"\"Total students: ",{"type":993,"tag":1022,"props":3793,"children":3794},{"style":1103},[3795],{"type":999,"value":1875},{"type":993,"tag":1022,"props":3797,"children":3798},{"style":1037},[3799],{"type":999,"value":3800},"total_students",{"type":993,"tag":1022,"props":3802,"children":3803},{"style":1103},[3804],{"type":999,"value":1885},{"type":993,"tag":1022,"props":3806,"children":3807},{"style":1057},[3808],{"type":999,"value":1890},{"type":993,"tag":1022,"props":3810,"children":3811},{"style":1037},[3812],{"type":999,"value":1895},{"type":993,"tag":1423,"props":3814,"children":3816},{"id":3815},"recursive-operations",[3817],{"type":999,"value":3818},"💡 Recursive Operations",{"type":993,"tag":1002,"props":3820,"children":3821},{},[3822],{"type":999,"value":3823},"Recursive functions handle arbitrary nesting levels, making them perfect for processing complex hierarchical data structures.",{"type":993,"tag":1008,"props":3825,"children":3826},{},[3827],{"type":993,"tag":1012,"props":3828,"children":3830},{"className":1014,"code":3829,"language":6,"meta":8,"style":8},"def count_nested_items(nested_dict):\n    \"\"\"Count total items at all nesting levels\"\"\"\n    count = 0\n    for key, value in nested_dict.items():\n        count += 1\n        if isinstance(value, dict):\n            count += count_nested_items(value)\n    return count\n\ndef find_all_values(nested_dict, target_key):\n    \"\"\"Find all values for a specific key at any nesting level\"\"\"\n    results = []\n    for key, value in nested_dict.items():\n        if key == target_key:\n            results.append(value)\n        elif isinstance(value, dict):\n            results.extend(find_all_values(value, target_key))\n    return results\n\n# Test recursive operations\ntest_data = {\n    'section1': {\n        'name': 'First Section',\n        'subsection': {\n            'name': 'Sub Section',\n            'data': {'name': 'Deep Data'}\n        }\n    },\n    'section2': {'name': 'Second Section'}\n}\n\ntotal_items = count_nested_items(test_data)\nall_names = find_all_values(test_data, 'name')\n\nprint(f\"Total nested items: {total_items}\")\nprint(f\"All names found: {all_names}\")\n",[3831],{"type":993,"tag":1018,"props":3832,"children":3833},{"__ignoreMap":8},[3834,3851,3859,3875,3896,3913,3941,3958,3970,3977,3994,4002,4019,4038,4060,4068,4092,4100,4112,4119,4127,4143,4155,4175,4187,4208,4237,4244,4251,4280,4287,4294,4311,4336,4343,4384],{"type":993,"tag":1022,"props":3835,"children":3836},{"class":1024,"line":12},[3837,3841,3846],{"type":993,"tag":1022,"props":3838,"children":3839},{"style":1043},[3840],{"type":999,"value":2154},{"type":993,"tag":1022,"props":3842,"children":3843},{"style":2157},[3844],{"type":999,"value":3845}," count_nested_items",{"type":993,"tag":1022,"props":3847,"children":3848},{"style":1037},[3849],{"type":999,"value":3850},"(nested_dict):\n",{"type":993,"tag":1022,"props":3852,"children":3853},{"class":1024,"line":27},[3854],{"type":993,"tag":1022,"props":3855,"children":3856},{"style":1057},[3857],{"type":999,"value":3858},"    \"\"\"Count total items at all nesting levels\"\"\"\n",{"type":993,"tag":1022,"props":3860,"children":3861},{"class":1024,"line":36},[3862,3867,3871],{"type":993,"tag":1022,"props":3863,"children":3864},{"style":1037},[3865],{"type":999,"value":3866},"    count ",{"type":993,"tag":1022,"props":3868,"children":3869},{"style":1043},[3870],{"type":999,"value":1046},{"type":993,"tag":1022,"props":3872,"children":3873},{"style":1103},[3874],{"type":999,"value":3611},{"type":993,"tag":1022,"props":3876,"children":3877},{"class":1024,"line":45},[3878,3882,3887,3891],{"type":993,"tag":1022,"props":3879,"children":3880},{"style":1043},[3881],{"type":999,"value":3642},{"type":993,"tag":1022,"props":3883,"children":3884},{"style":1037},[3885],{"type":999,"value":3886}," key, value ",{"type":993,"tag":1022,"props":3888,"children":3889},{"style":1043},[3890],{"type":999,"value":3629},{"type":993,"tag":1022,"props":3892,"children":3893},{"style":1037},[3894],{"type":999,"value":3895}," nested_dict.items():\n",{"type":993,"tag":1022,"props":3897,"children":3898},{"class":1024,"line":54},[3899,3904,3908],{"type":993,"tag":1022,"props":3900,"children":3901},{"style":1037},[3902],{"type":999,"value":3903},"        count ",{"type":993,"tag":1022,"props":3905,"children":3906},{"style":1043},[3907],{"type":999,"value":3669},{"type":993,"tag":1022,"props":3909,"children":3910},{"style":1103},[3911],{"type":999,"value":3912}," 1\n",{"type":993,"tag":1022,"props":3914,"children":3915},{"class":1024,"line":63},[3916,3921,3926,3931,3936],{"type":993,"tag":1022,"props":3917,"children":3918},{"style":1043},[3919],{"type":999,"value":3920},"        if",{"type":993,"tag":1022,"props":3922,"children":3923},{"style":1103},[3924],{"type":999,"value":3925}," isinstance",{"type":993,"tag":1022,"props":3927,"children":3928},{"style":1037},[3929],{"type":999,"value":3930},"(value, ",{"type":993,"tag":1022,"props":3932,"children":3933},{"style":1103},[3934],{"type":999,"value":3935},"dict",{"type":993,"tag":1022,"props":3937,"children":3938},{"style":1037},[3939],{"type":999,"value":3940},"):\n",{"type":993,"tag":1022,"props":3942,"children":3943},{"class":1024,"line":72},[3944,3949,3953],{"type":993,"tag":1022,"props":3945,"children":3946},{"style":1037},[3947],{"type":999,"value":3948},"            count ",{"type":993,"tag":1022,"props":3950,"children":3951},{"style":1043},[3952],{"type":999,"value":3669},{"type":993,"tag":1022,"props":3954,"children":3955},{"style":1037},[3956],{"type":999,"value":3957}," count_nested_items(value)\n",{"type":993,"tag":1022,"props":3959,"children":3960},{"class":1024,"line":81},[3961,3965],{"type":993,"tag":1022,"props":3962,"children":3963},{"style":1043},[3964],{"type":999,"value":2217},{"type":993,"tag":1022,"props":3966,"children":3967},{"style":1037},[3968],{"type":999,"value":3969}," count\n",{"type":993,"tag":1022,"props":3971,"children":3972},{"class":1024,"line":91},[3973],{"type":993,"tag":1022,"props":3974,"children":3975},{"emptyLinePlaceholder":13},[3976],{"type":999,"value":1340},{"type":993,"tag":1022,"props":3978,"children":3979},{"class":1024,"line":100},[3980,3984,3989],{"type":993,"tag":1022,"props":3981,"children":3982},{"style":1043},[3983],{"type":999,"value":2154},{"type":993,"tag":1022,"props":3985,"children":3986},{"style":2157},[3987],{"type":999,"value":3988}," find_all_values",{"type":993,"tag":1022,"props":3990,"children":3991},{"style":1037},[3992],{"type":999,"value":3993},"(nested_dict, target_key):\n",{"type":993,"tag":1022,"props":3995,"children":3996},{"class":1024,"line":109},[3997],{"type":993,"tag":1022,"props":3998,"children":3999},{"style":1057},[4000],{"type":999,"value":4001},"    \"\"\"Find all values for a specific key at any nesting level\"\"\"\n",{"type":993,"tag":1022,"props":4003,"children":4004},{"class":1024,"line":118},[4005,4010,4014],{"type":993,"tag":1022,"props":4006,"children":4007},{"style":1037},[4008],{"type":999,"value":4009},"    results ",{"type":993,"tag":1022,"props":4011,"children":4012},{"style":1043},[4013],{"type":999,"value":1046},{"type":993,"tag":1022,"props":4015,"children":4016},{"style":1037},[4017],{"type":999,"value":4018}," []\n",{"type":993,"tag":1022,"props":4020,"children":4021},{"class":1024,"line":127},[4022,4026,4030,4034],{"type":993,"tag":1022,"props":4023,"children":4024},{"style":1043},[4025],{"type":999,"value":3642},{"type":993,"tag":1022,"props":4027,"children":4028},{"style":1037},[4029],{"type":999,"value":3886},{"type":993,"tag":1022,"props":4031,"children":4032},{"style":1043},[4033],{"type":999,"value":3629},{"type":993,"tag":1022,"props":4035,"children":4036},{"style":1037},[4037],{"type":999,"value":3895},{"type":993,"tag":1022,"props":4039,"children":4040},{"class":1024,"line":136},[4041,4045,4050,4055],{"type":993,"tag":1022,"props":4042,"children":4043},{"style":1043},[4044],{"type":999,"value":3920},{"type":993,"tag":1022,"props":4046,"children":4047},{"style":1037},[4048],{"type":999,"value":4049}," key ",{"type":993,"tag":1022,"props":4051,"children":4052},{"style":1043},[4053],{"type":999,"value":4054},"==",{"type":993,"tag":1022,"props":4056,"children":4057},{"style":1037},[4058],{"type":999,"value":4059}," target_key:\n",{"type":993,"tag":1022,"props":4061,"children":4062},{"class":1024,"line":146},[4063],{"type":993,"tag":1022,"props":4064,"children":4065},{"style":1037},[4066],{"type":999,"value":4067},"            results.append(value)\n",{"type":993,"tag":1022,"props":4069,"children":4070},{"class":1024,"line":155},[4071,4076,4080,4084,4088],{"type":993,"tag":1022,"props":4072,"children":4073},{"style":1043},[4074],{"type":999,"value":4075},"        elif",{"type":993,"tag":1022,"props":4077,"children":4078},{"style":1103},[4079],{"type":999,"value":3925},{"type":993,"tag":1022,"props":4081,"children":4082},{"style":1037},[4083],{"type":999,"value":3930},{"type":993,"tag":1022,"props":4085,"children":4086},{"style":1103},[4087],{"type":999,"value":3935},{"type":993,"tag":1022,"props":4089,"children":4090},{"style":1037},[4091],{"type":999,"value":3940},{"type":993,"tag":1022,"props":4093,"children":4094},{"class":1024,"line":164},[4095],{"type":993,"tag":1022,"props":4096,"children":4097},{"style":1037},[4098],{"type":999,"value":4099},"            results.extend(find_all_values(value, target_key))\n",{"type":993,"tag":1022,"props":4101,"children":4102},{"class":1024,"line":173},[4103,4107],{"type":993,"tag":1022,"props":4104,"children":4105},{"style":1043},[4106],{"type":999,"value":2217},{"type":993,"tag":1022,"props":4108,"children":4109},{"style":1037},[4110],{"type":999,"value":4111}," results\n",{"type":993,"tag":1022,"props":4113,"children":4114},{"class":1024,"line":182},[4115],{"type":993,"tag":1022,"props":4116,"children":4117},{"emptyLinePlaceholder":13},[4118],{"type":999,"value":1340},{"type":993,"tag":1022,"props":4120,"children":4121},{"class":1024,"line":191},[4122],{"type":993,"tag":1022,"props":4123,"children":4124},{"style":1028},[4125],{"type":999,"value":4126},"# Test recursive operations\n",{"type":993,"tag":1022,"props":4128,"children":4129},{"class":1024,"line":201},[4130,4135,4139],{"type":993,"tag":1022,"props":4131,"children":4132},{"style":1037},[4133],{"type":999,"value":4134},"test_data ",{"type":993,"tag":1022,"props":4136,"children":4137},{"style":1043},[4138],{"type":999,"value":1046},{"type":993,"tag":1022,"props":4140,"children":4141},{"style":1037},[4142],{"type":999,"value":1051},{"type":993,"tag":1022,"props":4144,"children":4145},{"class":1024,"line":210},[4146,4151],{"type":993,"tag":1022,"props":4147,"children":4148},{"style":1057},[4149],{"type":999,"value":4150},"    'section1'",{"type":993,"tag":1022,"props":4152,"children":4153},{"style":1037},[4154],{"type":999,"value":1065},{"type":993,"tag":1022,"props":4156,"children":4157},{"class":1024,"line":219},[4158,4162,4166,4171],{"type":993,"tag":1022,"props":4159,"children":4160},{"style":1057},[4161],{"type":999,"value":1073},{"type":993,"tag":1022,"props":4163,"children":4164},{"style":1037},[4165],{"type":999,"value":1078},{"type":993,"tag":1022,"props":4167,"children":4168},{"style":1057},[4169],{"type":999,"value":4170},"'First Section'",{"type":993,"tag":1022,"props":4172,"children":4173},{"style":1037},[4174],{"type":999,"value":1088},{"type":993,"tag":1022,"props":4176,"children":4177},{"class":1024,"line":228},[4178,4183],{"type":993,"tag":1022,"props":4179,"children":4180},{"style":1057},[4181],{"type":999,"value":4182},"        'subsection'",{"type":993,"tag":1022,"props":4184,"children":4185},{"style":1037},[4186],{"type":999,"value":1065},{"type":993,"tag":1022,"props":4188,"children":4189},{"class":1024,"line":238},[4190,4195,4199,4204],{"type":993,"tag":1022,"props":4191,"children":4192},{"style":1057},[4193],{"type":999,"value":4194},"            'name'",{"type":993,"tag":1022,"props":4196,"children":4197},{"style":1037},[4198],{"type":999,"value":1078},{"type":993,"tag":1022,"props":4200,"children":4201},{"style":1057},[4202],{"type":999,"value":4203},"'Sub Section'",{"type":993,"tag":1022,"props":4205,"children":4206},{"style":1037},[4207],{"type":999,"value":1088},{"type":993,"tag":1022,"props":4209,"children":4210},{"class":1024,"line":247},[4211,4216,4220,4224,4228,4233],{"type":993,"tag":1022,"props":4212,"children":4213},{"style":1057},[4214],{"type":999,"value":4215},"            'data'",{"type":993,"tag":1022,"props":4217,"children":4218},{"style":1037},[4219],{"type":999,"value":1280},{"type":993,"tag":1022,"props":4221,"children":4222},{"style":1057},[4223],{"type":999,"value":1378},{"type":993,"tag":1022,"props":4225,"children":4226},{"style":1037},[4227],{"type":999,"value":1078},{"type":993,"tag":1022,"props":4229,"children":4230},{"style":1057},[4231],{"type":999,"value":4232},"'Deep Data'",{"type":993,"tag":1022,"props":4234,"children":4235},{"style":1037},[4236],{"type":999,"value":1317},{"type":993,"tag":1022,"props":4238,"children":4239},{"class":1024,"line":256},[4240],{"type":993,"tag":1022,"props":4241,"children":4242},{"style":1037},[4243],{"type":999,"value":1626},{"type":993,"tag":1022,"props":4245,"children":4246},{"class":1024,"line":265},[4247],{"type":993,"tag":1022,"props":4248,"children":4249},{"style":1037},[4250],{"type":999,"value":1135},{"type":993,"tag":1022,"props":4252,"children":4253},{"class":1024,"line":274},[4254,4259,4263,4267,4271,4276],{"type":993,"tag":1022,"props":4255,"children":4256},{"style":1057},[4257],{"type":999,"value":4258},"    'section2'",{"type":993,"tag":1022,"props":4260,"children":4261},{"style":1037},[4262],{"type":999,"value":1280},{"type":993,"tag":1022,"props":4264,"children":4265},{"style":1057},[4266],{"type":999,"value":1378},{"type":993,"tag":1022,"props":4268,"children":4269},{"style":1037},[4270],{"type":999,"value":1078},{"type":993,"tag":1022,"props":4272,"children":4273},{"style":1057},[4274],{"type":999,"value":4275},"'Second Section'",{"type":993,"tag":1022,"props":4277,"children":4278},{"style":1037},[4279],{"type":999,"value":1317},{"type":993,"tag":1022,"props":4281,"children":4282},{"class":1024,"line":284},[4283],{"type":993,"tag":1022,"props":4284,"children":4285},{"style":1037},[4286],{"type":999,"value":1317},{"type":993,"tag":1022,"props":4288,"children":4289},{"class":1024,"line":293},[4290],{"type":993,"tag":1022,"props":4291,"children":4292},{"emptyLinePlaceholder":13},[4293],{"type":999,"value":1340},{"type":993,"tag":1022,"props":4295,"children":4296},{"class":1024,"line":302},[4297,4302,4306],{"type":993,"tag":1022,"props":4298,"children":4299},{"style":1037},[4300],{"type":999,"value":4301},"total_items ",{"type":993,"tag":1022,"props":4303,"children":4304},{"style":1043},[4305],{"type":999,"value":1046},{"type":993,"tag":1022,"props":4307,"children":4308},{"style":1037},[4309],{"type":999,"value":4310}," count_nested_items(test_data)\n",{"type":993,"tag":1022,"props":4312,"children":4313},{"class":1024,"line":311},[4314,4319,4323,4328,4332],{"type":993,"tag":1022,"props":4315,"children":4316},{"style":1037},[4317],{"type":999,"value":4318},"all_names ",{"type":993,"tag":1022,"props":4320,"children":4321},{"style":1043},[4322],{"type":999,"value":1046},{"type":993,"tag":1022,"props":4324,"children":4325},{"style":1037},[4326],{"type":999,"value":4327}," find_all_values(test_data, ",{"type":993,"tag":1022,"props":4329,"children":4330},{"style":1057},[4331],{"type":999,"value":1378},{"type":993,"tag":1022,"props":4333,"children":4334},{"style":1037},[4335],{"type":999,"value":1895},{"type":993,"tag":1022,"props":4337,"children":4338},{"class":1024,"line":320},[4339],{"type":993,"tag":1022,"props":4340,"children":4341},{"emptyLinePlaceholder":13},[4342],{"type":999,"value":1340},{"type":993,"tag":1022,"props":4344,"children":4345},{"class":1024,"line":329},[4346,4350,4354,4358,4363,4367,4372,4376,4380],{"type":993,"tag":1022,"props":4347,"children":4348},{"style":1103},[4349],{"type":999,"value":1348},{"type":993,"tag":1022,"props":4351,"children":4352},{"style":1037},[4353],{"type":999,"value":1353},{"type":993,"tag":1022,"props":4355,"children":4356},{"style":1043},[4357],{"type":999,"value":1865},{"type":993,"tag":1022,"props":4359,"children":4360},{"style":1057},[4361],{"type":999,"value":4362},"\"Total nested items: ",{"type":993,"tag":1022,"props":4364,"children":4365},{"style":1103},[4366],{"type":999,"value":1875},{"type":993,"tag":1022,"props":4368,"children":4369},{"style":1037},[4370],{"type":999,"value":4371},"total_items",{"type":993,"tag":1022,"props":4373,"children":4374},{"style":1103},[4375],{"type":999,"value":1885},{"type":993,"tag":1022,"props":4377,"children":4378},{"style":1057},[4379],{"type":999,"value":1890},{"type":993,"tag":1022,"props":4381,"children":4382},{"style":1037},[4383],{"type":999,"value":1895},{"type":993,"tag":1022,"props":4385,"children":4386},{"class":1024,"line":338},[4387,4391,4395,4399,4404,4408,4413,4417,4421],{"type":993,"tag":1022,"props":4388,"children":4389},{"style":1103},[4390],{"type":999,"value":1348},{"type":993,"tag":1022,"props":4392,"children":4393},{"style":1037},[4394],{"type":999,"value":1353},{"type":993,"tag":1022,"props":4396,"children":4397},{"style":1043},[4398],{"type":999,"value":1865},{"type":993,"tag":1022,"props":4400,"children":4401},{"style":1057},[4402],{"type":999,"value":4403},"\"All names found: ",{"type":993,"tag":1022,"props":4405,"children":4406},{"style":1103},[4407],{"type":999,"value":1875},{"type":993,"tag":1022,"props":4409,"children":4410},{"style":1037},[4411],{"type":999,"value":4412},"all_names",{"type":993,"tag":1022,"props":4414,"children":4415},{"style":1103},[4416],{"type":999,"value":1885},{"type":993,"tag":1022,"props":4418,"children":4419},{"style":1057},[4420],{"type":999,"value":1890},{"type":993,"tag":1022,"props":4422,"children":4423},{"style":1037},[4424],{"type":999,"value":1895},{"type":993,"tag":1423,"props":4426,"children":4428},{"id":4427},"flattening-nested-dictionaries",[4429],{"type":999,"value":4430},"📊 Flattening Nested Dictionaries",{"type":993,"tag":1002,"props":4432,"children":4433},{},[4434],{"type":999,"value":4435},"Converting nested structures to flat dictionaries simplifies data processing for analysis and reporting applications.",{"type":993,"tag":1008,"props":4437,"children":4438},{},[4439],{"type":993,"tag":1012,"props":4440,"children":4442},{"className":1014,"code":4441,"language":6,"meta":8,"style":8},"def flatten_dict(nested_dict, parent_key='', separator='_'):\n    \"\"\"Flatten nested dictionary into single-level structure\"\"\"\n    items = []\n    for key, value in nested_dict.items():\n        new_key = f\"{parent_key}{separator}{key}\" if parent_key else key\n        \n        if isinstance(value, dict):\n            items.extend(flatten_dict(value, new_key, separator).items())\n        else:\n            items.append((new_key, value))\n    \n    return dict(items)\n\n# Flatten complex structure\nnested_config = {\n    'database': {\n        'host': 'localhost',\n        'credentials': {'username': 'admin', 'password': 'secret'}\n    },\n    'cache': {'enabled': True, 'ttl': 300}\n}\n\nflat_config = flatten_dict(nested_config)\nprint(\"Flattened config:\", flat_config)\n",[4443],{"type":993,"tag":1018,"props":4444,"children":4445},{"__ignoreMap":8},[4446,4490,4498,4514,4533,4610,4618,4641,4649,4662,4670,4678,4695,4702,4710,4726,4737,4757,4805,4812,4856,4863,4870,4887],{"type":993,"tag":1022,"props":4447,"children":4448},{"class":1024,"line":12},[4449,4453,4458,4463,4467,4472,4477,4481,4486],{"type":993,"tag":1022,"props":4450,"children":4451},{"style":1043},[4452],{"type":999,"value":2154},{"type":993,"tag":1022,"props":4454,"children":4455},{"style":2157},[4456],{"type":999,"value":4457}," flatten_dict",{"type":993,"tag":1022,"props":4459,"children":4460},{"style":1037},[4461],{"type":999,"value":4462},"(nested_dict, parent_key",{"type":993,"tag":1022,"props":4464,"children":4465},{"style":1043},[4466],{"type":999,"value":1046},{"type":993,"tag":1022,"props":4468,"children":4469},{"style":1057},[4470],{"type":999,"value":4471},"''",{"type":993,"tag":1022,"props":4473,"children":4474},{"style":1037},[4475],{"type":999,"value":4476},", separator",{"type":993,"tag":1022,"props":4478,"children":4479},{"style":1043},[4480],{"type":999,"value":1046},{"type":993,"tag":1022,"props":4482,"children":4483},{"style":1057},[4484],{"type":999,"value":4485},"'_'",{"type":993,"tag":1022,"props":4487,"children":4488},{"style":1037},[4489],{"type":999,"value":3940},{"type":993,"tag":1022,"props":4491,"children":4492},{"class":1024,"line":27},[4493],{"type":993,"tag":1022,"props":4494,"children":4495},{"style":1057},[4496],{"type":999,"value":4497},"    \"\"\"Flatten nested dictionary into single-level structure\"\"\"\n",{"type":993,"tag":1022,"props":4499,"children":4500},{"class":1024,"line":36},[4501,4506,4510],{"type":993,"tag":1022,"props":4502,"children":4503},{"style":1037},[4504],{"type":999,"value":4505},"    items ",{"type":993,"tag":1022,"props":4507,"children":4508},{"style":1043},[4509],{"type":999,"value":1046},{"type":993,"tag":1022,"props":4511,"children":4512},{"style":1037},[4513],{"type":999,"value":4018},{"type":993,"tag":1022,"props":4515,"children":4516},{"class":1024,"line":45},[4517,4521,4525,4529],{"type":993,"tag":1022,"props":4518,"children":4519},{"style":1043},[4520],{"type":999,"value":3642},{"type":993,"tag":1022,"props":4522,"children":4523},{"style":1037},[4524],{"type":999,"value":3886},{"type":993,"tag":1022,"props":4526,"children":4527},{"style":1043},[4528],{"type":999,"value":3629},{"type":993,"tag":1022,"props":4530,"children":4531},{"style":1037},[4532],{"type":999,"value":3895},{"type":993,"tag":1022,"props":4534,"children":4535},{"class":1024,"line":54},[4536,4541,4545,4550,4554,4558,4563,4568,4573,4577,4582,4586,4590,4595,4600,4605],{"type":993,"tag":1022,"props":4537,"children":4538},{"style":1037},[4539],{"type":999,"value":4540},"        new_key ",{"type":993,"tag":1022,"props":4542,"children":4543},{"style":1043},[4544],{"type":999,"value":1046},{"type":993,"tag":1022,"props":4546,"children":4547},{"style":1043},[4548],{"type":999,"value":4549}," f",{"type":993,"tag":1022,"props":4551,"children":4552},{"style":1057},[4553],{"type":999,"value":1890},{"type":993,"tag":1022,"props":4555,"children":4556},{"style":1103},[4557],{"type":999,"value":1875},{"type":993,"tag":1022,"props":4559,"children":4560},{"style":1037},[4561],{"type":999,"value":4562},"parent_key",{"type":993,"tag":1022,"props":4564,"children":4565},{"style":1103},[4566],{"type":999,"value":4567},"}{",{"type":993,"tag":1022,"props":4569,"children":4570},{"style":1037},[4571],{"type":999,"value":4572},"separator",{"type":993,"tag":1022,"props":4574,"children":4575},{"style":1103},[4576],{"type":999,"value":4567},{"type":993,"tag":1022,"props":4578,"children":4579},{"style":1037},[4580],{"type":999,"value":4581},"key",{"type":993,"tag":1022,"props":4583,"children":4584},{"style":1103},[4585],{"type":999,"value":1885},{"type":993,"tag":1022,"props":4587,"children":4588},{"style":1057},[4589],{"type":999,"value":1890},{"type":993,"tag":1022,"props":4591,"children":4592},{"style":1043},[4593],{"type":999,"value":4594}," if",{"type":993,"tag":1022,"props":4596,"children":4597},{"style":1037},[4598],{"type":999,"value":4599}," parent_key ",{"type":993,"tag":1022,"props":4601,"children":4602},{"style":1043},[4603],{"type":999,"value":4604},"else",{"type":993,"tag":1022,"props":4606,"children":4607},{"style":1037},[4608],{"type":999,"value":4609}," key\n",{"type":993,"tag":1022,"props":4611,"children":4612},{"class":1024,"line":63},[4613],{"type":993,"tag":1022,"props":4614,"children":4615},{"style":1037},[4616],{"type":999,"value":4617},"        \n",{"type":993,"tag":1022,"props":4619,"children":4620},{"class":1024,"line":72},[4621,4625,4629,4633,4637],{"type":993,"tag":1022,"props":4622,"children":4623},{"style":1043},[4624],{"type":999,"value":3920},{"type":993,"tag":1022,"props":4626,"children":4627},{"style":1103},[4628],{"type":999,"value":3925},{"type":993,"tag":1022,"props":4630,"children":4631},{"style":1037},[4632],{"type":999,"value":3930},{"type":993,"tag":1022,"props":4634,"children":4635},{"style":1103},[4636],{"type":999,"value":3935},{"type":993,"tag":1022,"props":4638,"children":4639},{"style":1037},[4640],{"type":999,"value":3940},{"type":993,"tag":1022,"props":4642,"children":4643},{"class":1024,"line":81},[4644],{"type":993,"tag":1022,"props":4645,"children":4646},{"style":1037},[4647],{"type":999,"value":4648},"            items.extend(flatten_dict(value, new_key, separator).items())\n",{"type":993,"tag":1022,"props":4650,"children":4651},{"class":1024,"line":91},[4652,4657],{"type":993,"tag":1022,"props":4653,"children":4654},{"style":1043},[4655],{"type":999,"value":4656},"        else",{"type":993,"tag":1022,"props":4658,"children":4659},{"style":1037},[4660],{"type":999,"value":4661},":\n",{"type":993,"tag":1022,"props":4663,"children":4664},{"class":1024,"line":100},[4665],{"type":993,"tag":1022,"props":4666,"children":4667},{"style":1037},[4668],{"type":999,"value":4669},"            items.append((new_key, value))\n",{"type":993,"tag":1022,"props":4671,"children":4672},{"class":1024,"line":109},[4673],{"type":993,"tag":1022,"props":4674,"children":4675},{"style":1037},[4676],{"type":999,"value":4677},"    \n",{"type":993,"tag":1022,"props":4679,"children":4680},{"class":1024,"line":118},[4681,4685,4690],{"type":993,"tag":1022,"props":4682,"children":4683},{"style":1043},[4684],{"type":999,"value":2217},{"type":993,"tag":1022,"props":4686,"children":4687},{"style":1103},[4688],{"type":999,"value":4689}," dict",{"type":993,"tag":1022,"props":4691,"children":4692},{"style":1037},[4693],{"type":999,"value":4694},"(items)\n",{"type":993,"tag":1022,"props":4696,"children":4697},{"class":1024,"line":127},[4698],{"type":993,"tag":1022,"props":4699,"children":4700},{"emptyLinePlaceholder":13},[4701],{"type":999,"value":1340},{"type":993,"tag":1022,"props":4703,"children":4704},{"class":1024,"line":136},[4705],{"type":993,"tag":1022,"props":4706,"children":4707},{"style":1028},[4708],{"type":999,"value":4709},"# Flatten complex structure\n",{"type":993,"tag":1022,"props":4711,"children":4712},{"class":1024,"line":146},[4713,4718,4722],{"type":993,"tag":1022,"props":4714,"children":4715},{"style":1037},[4716],{"type":999,"value":4717},"nested_config ",{"type":993,"tag":1022,"props":4719,"children":4720},{"style":1043},[4721],{"type":999,"value":1046},{"type":993,"tag":1022,"props":4723,"children":4724},{"style":1037},[4725],{"type":999,"value":1051},{"type":993,"tag":1022,"props":4727,"children":4728},{"class":1024,"line":155},[4729,4733],{"type":993,"tag":1022,"props":4730,"children":4731},{"style":1057},[4732],{"type":999,"value":2758},{"type":993,"tag":1022,"props":4734,"children":4735},{"style":1037},[4736],{"type":999,"value":1065},{"type":993,"tag":1022,"props":4738,"children":4739},{"class":1024,"line":164},[4740,4745,4749,4753],{"type":993,"tag":1022,"props":4741,"children":4742},{"style":1057},[4743],{"type":999,"value":4744},"        'host'",{"type":993,"tag":1022,"props":4746,"children":4747},{"style":1037},[4748],{"type":999,"value":1078},{"type":993,"tag":1022,"props":4750,"children":4751},{"style":1057},[4752],{"type":999,"value":2788},{"type":993,"tag":1022,"props":4754,"children":4755},{"style":1037},[4756],{"type":999,"value":1088},{"type":993,"tag":1022,"props":4758,"children":4759},{"class":1024,"line":173},[4760,4765,4769,4774,4778,4783,4787,4792,4796,4801],{"type":993,"tag":1022,"props":4761,"children":4762},{"style":1057},[4763],{"type":999,"value":4764},"        'credentials'",{"type":993,"tag":1022,"props":4766,"children":4767},{"style":1037},[4768],{"type":999,"value":1280},{"type":993,"tag":1022,"props":4770,"children":4771},{"style":1057},[4772],{"type":999,"value":4773},"'username'",{"type":993,"tag":1022,"props":4775,"children":4776},{"style":1037},[4777],{"type":999,"value":1078},{"type":993,"tag":1022,"props":4779,"children":4780},{"style":1057},[4781],{"type":999,"value":4782},"'admin'",{"type":993,"tag":1022,"props":4784,"children":4785},{"style":1037},[4786],{"type":999,"value":1299},{"type":993,"tag":1022,"props":4788,"children":4789},{"style":1057},[4790],{"type":999,"value":4791},"'password'",{"type":993,"tag":1022,"props":4793,"children":4794},{"style":1037},[4795],{"type":999,"value":1078},{"type":993,"tag":1022,"props":4797,"children":4798},{"style":1057},[4799],{"type":999,"value":4800},"'secret'",{"type":993,"tag":1022,"props":4802,"children":4803},{"style":1037},[4804],{"type":999,"value":1317},{"type":993,"tag":1022,"props":4806,"children":4807},{"class":1024,"line":182},[4808],{"type":993,"tag":1022,"props":4809,"children":4810},{"style":1037},[4811],{"type":999,"value":1135},{"type":993,"tag":1022,"props":4813,"children":4814},{"class":1024,"line":191},[4815,4819,4823,4827,4831,4835,4839,4843,4847,4852],{"type":993,"tag":1022,"props":4816,"children":4817},{"style":1057},[4818],{"type":999,"value":2871},{"type":993,"tag":1022,"props":4820,"children":4821},{"style":1037},[4822],{"type":999,"value":1280},{"type":993,"tag":1022,"props":4824,"children":4825},{"style":1057},[4826],{"type":999,"value":2892},{"type":993,"tag":1022,"props":4828,"children":4829},{"style":1037},[4830],{"type":999,"value":1078},{"type":993,"tag":1022,"props":4832,"children":4833},{"style":1103},[4834],{"type":999,"value":1263},{"type":993,"tag":1022,"props":4836,"children":4837},{"style":1037},[4838],{"type":999,"value":1299},{"type":993,"tag":1022,"props":4840,"children":4841},{"style":1057},[4842],{"type":999,"value":2909},{"type":993,"tag":1022,"props":4844,"children":4845},{"style":1037},[4846],{"type":999,"value":1078},{"type":993,"tag":1022,"props":4848,"children":4849},{"style":1103},[4850],{"type":999,"value":4851},"300",{"type":993,"tag":1022,"props":4853,"children":4854},{"style":1037},[4855],{"type":999,"value":1317},{"type":993,"tag":1022,"props":4857,"children":4858},{"class":1024,"line":201},[4859],{"type":993,"tag":1022,"props":4860,"children":4861},{"style":1037},[4862],{"type":999,"value":1317},{"type":993,"tag":1022,"props":4864,"children":4865},{"class":1024,"line":210},[4866],{"type":993,"tag":1022,"props":4867,"children":4868},{"emptyLinePlaceholder":13},[4869],{"type":999,"value":1340},{"type":993,"tag":1022,"props":4871,"children":4872},{"class":1024,"line":219},[4873,4878,4882],{"type":993,"tag":1022,"props":4874,"children":4875},{"style":1037},[4876],{"type":999,"value":4877},"flat_config ",{"type":993,"tag":1022,"props":4879,"children":4880},{"style":1043},[4881],{"type":999,"value":1046},{"type":993,"tag":1022,"props":4883,"children":4884},{"style":1037},[4885],{"type":999,"value":4886}," flatten_dict(nested_config)\n",{"type":993,"tag":1022,"props":4888,"children":4889},{"class":1024,"line":228},[4890,4894,4898,4903],{"type":993,"tag":1022,"props":4891,"children":4892},{"style":1103},[4893],{"type":999,"value":1348},{"type":993,"tag":1022,"props":4895,"children":4896},{"style":1037},[4897],{"type":999,"value":1353},{"type":993,"tag":1022,"props":4899,"children":4900},{"style":1057},[4901],{"type":999,"value":4902},"\"Flattened config:\"",{"type":993,"tag":1022,"props":4904,"children":4905},{"style":1037},[4906],{"type":999,"value":4907},", flat_config)\n",{"type":993,"tag":1423,"props":4909,"children":4911},{"id":4910},"️-practical-applications",[4912],{"type":999,"value":4913},"🛠️ Practical Applications",{"type":993,"tag":4915,"props":4916,"children":4918},"h3",{"id":4917},"configuration-systems",[4919],{"type":999,"value":4920},"Configuration Systems",{"type":993,"tag":1002,"props":4922,"children":4923},{},[4924],{"type":999,"value":4925},"Multi-level dictionaries excel at organizing complex application settings with hierarchical relationships.",{"type":993,"tag":1008,"props":4927,"children":4928},{},[4929],{"type":993,"tag":1012,"props":4930,"children":4932},{"className":1014,"code":4931,"language":6,"meta":8,"style":8},"app_config = {\n    'server': {\n        'host': '0.0.0.0',\n        'port': 8080,\n        'ssl': {'enabled': True, 'cert_path': '/path/to/cert'}\n    },\n    'database': {\n        'primary': {'host': 'db1.example.com', 'port': 5432},\n        'replica': {'host': 'db2.example.com', 'port': 5432}\n    },\n    'features': {\n        'authentication': {'enabled': True, 'method': 'oauth'},\n        'caching': {'enabled': True, 'backend': 'redis'}\n    }\n}\n\n# Access specific configuration values\nssl_enabled = app_config['server']['ssl']['enabled']\nauth_method = app_config['features']['authentication']['method']\n\nprint(f\"SSL enabled: {ssl_enabled}\")\nprint(f\"Auth method: {auth_method}\")\n",[4933],{"type":993,"tag":1018,"props":4934,"children":4935},{"__ignoreMap":8},[4936,4952,4964,4984,5005,5051,5058,5069,5113,5158,5165,5177,5223,5268,5275,5282,5289,5297,5340,5382,5389,5430],{"type":993,"tag":1022,"props":4937,"children":4938},{"class":1024,"line":12},[4939,4944,4948],{"type":993,"tag":1022,"props":4940,"children":4941},{"style":1037},[4942],{"type":999,"value":4943},"app_config ",{"type":993,"tag":1022,"props":4945,"children":4946},{"style":1043},[4947],{"type":999,"value":1046},{"type":993,"tag":1022,"props":4949,"children":4950},{"style":1037},[4951],{"type":999,"value":1051},{"type":993,"tag":1022,"props":4953,"children":4954},{"class":1024,"line":27},[4955,4960],{"type":993,"tag":1022,"props":4956,"children":4957},{"style":1057},[4958],{"type":999,"value":4959},"    'server'",{"type":993,"tag":1022,"props":4961,"children":4962},{"style":1037},[4963],{"type":999,"value":1065},{"type":993,"tag":1022,"props":4965,"children":4966},{"class":1024,"line":36},[4967,4971,4975,4980],{"type":993,"tag":1022,"props":4968,"children":4969},{"style":1057},[4970],{"type":999,"value":4744},{"type":993,"tag":1022,"props":4972,"children":4973},{"style":1037},[4974],{"type":999,"value":1078},{"type":993,"tag":1022,"props":4976,"children":4977},{"style":1057},[4978],{"type":999,"value":4979},"'0.0.0.0'",{"type":993,"tag":1022,"props":4981,"children":4982},{"style":1037},[4983],{"type":999,"value":1088},{"type":993,"tag":1022,"props":4985,"children":4986},{"class":1024,"line":45},[4987,4992,4996,5001],{"type":993,"tag":1022,"props":4988,"children":4989},{"style":1057},[4990],{"type":999,"value":4991},"        'port'",{"type":993,"tag":1022,"props":4993,"children":4994},{"style":1037},[4995],{"type":999,"value":1078},{"type":993,"tag":1022,"props":4997,"children":4998},{"style":1103},[4999],{"type":999,"value":5000},"8080",{"type":993,"tag":1022,"props":5002,"children":5003},{"style":1037},[5004],{"type":999,"value":1088},{"type":993,"tag":1022,"props":5006,"children":5007},{"class":1024,"line":54},[5008,5013,5017,5021,5025,5029,5033,5038,5042,5047],{"type":993,"tag":1022,"props":5009,"children":5010},{"style":1057},[5011],{"type":999,"value":5012},"        'ssl'",{"type":993,"tag":1022,"props":5014,"children":5015},{"style":1037},[5016],{"type":999,"value":1280},{"type":993,"tag":1022,"props":5018,"children":5019},{"style":1057},[5020],{"type":999,"value":2892},{"type":993,"tag":1022,"props":5022,"children":5023},{"style":1037},[5024],{"type":999,"value":1078},{"type":993,"tag":1022,"props":5026,"children":5027},{"style":1103},[5028],{"type":999,"value":1263},{"type":993,"tag":1022,"props":5030,"children":5031},{"style":1037},[5032],{"type":999,"value":1299},{"type":993,"tag":1022,"props":5034,"children":5035},{"style":1057},[5036],{"type":999,"value":5037},"'cert_path'",{"type":993,"tag":1022,"props":5039,"children":5040},{"style":1037},[5041],{"type":999,"value":1078},{"type":993,"tag":1022,"props":5043,"children":5044},{"style":1057},[5045],{"type":999,"value":5046},"'/path/to/cert'",{"type":993,"tag":1022,"props":5048,"children":5049},{"style":1037},[5050],{"type":999,"value":1317},{"type":993,"tag":1022,"props":5052,"children":5053},{"class":1024,"line":63},[5054],{"type":993,"tag":1022,"props":5055,"children":5056},{"style":1037},[5057],{"type":999,"value":1135},{"type":993,"tag":1022,"props":5059,"children":5060},{"class":1024,"line":72},[5061,5065],{"type":993,"tag":1022,"props":5062,"children":5063},{"style":1057},[5064],{"type":999,"value":2758},{"type":993,"tag":1022,"props":5066,"children":5067},{"style":1037},[5068],{"type":999,"value":1065},{"type":993,"tag":1022,"props":5070,"children":5071},{"class":1024,"line":81},[5072,5076,5080,5084,5088,5093,5097,5101,5105,5109],{"type":993,"tag":1022,"props":5073,"children":5074},{"style":1057},[5075],{"type":999,"value":2770},{"type":993,"tag":1022,"props":5077,"children":5078},{"style":1037},[5079],{"type":999,"value":1280},{"type":993,"tag":1022,"props":5081,"children":5082},{"style":1057},[5083],{"type":999,"value":2779},{"type":993,"tag":1022,"props":5085,"children":5086},{"style":1037},[5087],{"type":999,"value":1078},{"type":993,"tag":1022,"props":5089,"children":5090},{"style":1057},[5091],{"type":999,"value":5092},"'db1.example.com'",{"type":993,"tag":1022,"props":5094,"children":5095},{"style":1037},[5096],{"type":999,"value":1299},{"type":993,"tag":1022,"props":5098,"children":5099},{"style":1057},[5100],{"type":999,"value":2797},{"type":993,"tag":1022,"props":5102,"children":5103},{"style":1037},[5104],{"type":999,"value":1078},{"type":993,"tag":1022,"props":5106,"children":5107},{"style":1103},[5108],{"type":999,"value":2806},{"type":993,"tag":1022,"props":5110,"children":5111},{"style":1037},[5112],{"type":999,"value":2033},{"type":993,"tag":1022,"props":5114,"children":5115},{"class":1024,"line":91},[5116,5121,5125,5129,5133,5138,5142,5146,5150,5154],{"type":993,"tag":1022,"props":5117,"children":5118},{"style":1057},[5119],{"type":999,"value":5120},"        'replica'",{"type":993,"tag":1022,"props":5122,"children":5123},{"style":1037},[5124],{"type":999,"value":1280},{"type":993,"tag":1022,"props":5126,"children":5127},{"style":1057},[5128],{"type":999,"value":2779},{"type":993,"tag":1022,"props":5130,"children":5131},{"style":1037},[5132],{"type":999,"value":1078},{"type":993,"tag":1022,"props":5134,"children":5135},{"style":1057},[5136],{"type":999,"value":5137},"'db2.example.com'",{"type":993,"tag":1022,"props":5139,"children":5140},{"style":1037},[5141],{"type":999,"value":1299},{"type":993,"tag":1022,"props":5143,"children":5144},{"style":1057},[5145],{"type":999,"value":2797},{"type":993,"tag":1022,"props":5147,"children":5148},{"style":1037},[5149],{"type":999,"value":1078},{"type":993,"tag":1022,"props":5151,"children":5152},{"style":1103},[5153],{"type":999,"value":2806},{"type":993,"tag":1022,"props":5155,"children":5156},{"style":1037},[5157],{"type":999,"value":1317},{"type":993,"tag":1022,"props":5159,"children":5160},{"class":1024,"line":100},[5161],{"type":993,"tag":1022,"props":5162,"children":5163},{"style":1037},[5164],{"type":999,"value":1135},{"type":993,"tag":1022,"props":5166,"children":5167},{"class":1024,"line":109},[5168,5173],{"type":993,"tag":1022,"props":5169,"children":5170},{"style":1057},[5171],{"type":999,"value":5172},"    'features'",{"type":993,"tag":1022,"props":5174,"children":5175},{"style":1037},[5176],{"type":999,"value":1065},{"type":993,"tag":1022,"props":5178,"children":5179},{"class":1024,"line":118},[5180,5185,5189,5193,5197,5201,5205,5210,5214,5219],{"type":993,"tag":1022,"props":5181,"children":5182},{"style":1057},[5183],{"type":999,"value":5184},"        'authentication'",{"type":993,"tag":1022,"props":5186,"children":5187},{"style":1037},[5188],{"type":999,"value":1280},{"type":993,"tag":1022,"props":5190,"children":5191},{"style":1057},[5192],{"type":999,"value":2892},{"type":993,"tag":1022,"props":5194,"children":5195},{"style":1037},[5196],{"type":999,"value":1078},{"type":993,"tag":1022,"props":5198,"children":5199},{"style":1103},[5200],{"type":999,"value":1263},{"type":993,"tag":1022,"props":5202,"children":5203},{"style":1037},[5204],{"type":999,"value":1299},{"type":993,"tag":1022,"props":5206,"children":5207},{"style":1057},[5208],{"type":999,"value":5209},"'method'",{"type":993,"tag":1022,"props":5211,"children":5212},{"style":1037},[5213],{"type":999,"value":1078},{"type":993,"tag":1022,"props":5215,"children":5216},{"style":1057},[5217],{"type":999,"value":5218},"'oauth'",{"type":993,"tag":1022,"props":5220,"children":5221},{"style":1037},[5222],{"type":999,"value":2033},{"type":993,"tag":1022,"props":5224,"children":5225},{"class":1024,"line":127},[5226,5231,5235,5239,5243,5247,5251,5256,5260,5264],{"type":993,"tag":1022,"props":5227,"children":5228},{"style":1057},[5229],{"type":999,"value":5230},"        'caching'",{"type":993,"tag":1022,"props":5232,"children":5233},{"style":1037},[5234],{"type":999,"value":1280},{"type":993,"tag":1022,"props":5236,"children":5237},{"style":1057},[5238],{"type":999,"value":2892},{"type":993,"tag":1022,"props":5240,"children":5241},{"style":1037},[5242],{"type":999,"value":1078},{"type":993,"tag":1022,"props":5244,"children":5245},{"style":1103},[5246],{"type":999,"value":1263},{"type":993,"tag":1022,"props":5248,"children":5249},{"style":1037},[5250],{"type":999,"value":1299},{"type":993,"tag":1022,"props":5252,"children":5253},{"style":1057},[5254],{"type":999,"value":5255},"'backend'",{"type":993,"tag":1022,"props":5257,"children":5258},{"style":1037},[5259],{"type":999,"value":1078},{"type":993,"tag":1022,"props":5261,"children":5262},{"style":1057},[5263],{"type":999,"value":3015},{"type":993,"tag":1022,"props":5265,"children":5266},{"style":1037},[5267],{"type":999,"value":1317},{"type":993,"tag":1022,"props":5269,"children":5270},{"class":1024,"line":136},[5271],{"type":993,"tag":1022,"props":5272,"children":5273},{"style":1037},[5274],{"type":999,"value":1325},{"type":993,"tag":1022,"props":5276,"children":5277},{"class":1024,"line":146},[5278],{"type":993,"tag":1022,"props":5279,"children":5280},{"style":1037},[5281],{"type":999,"value":1317},{"type":993,"tag":1022,"props":5283,"children":5284},{"class":1024,"line":155},[5285],{"type":993,"tag":1022,"props":5286,"children":5287},{"emptyLinePlaceholder":13},[5288],{"type":999,"value":1340},{"type":993,"tag":1022,"props":5290,"children":5291},{"class":1024,"line":164},[5292],{"type":993,"tag":1022,"props":5293,"children":5294},{"style":1028},[5295],{"type":999,"value":5296},"# Access specific configuration values\n",{"type":993,"tag":1022,"props":5298,"children":5299},{"class":1024,"line":173},[5300,5305,5309,5314,5319,5323,5328,5332,5336],{"type":993,"tag":1022,"props":5301,"children":5302},{"style":1037},[5303],{"type":999,"value":5304},"ssl_enabled ",{"type":993,"tag":1022,"props":5306,"children":5307},{"style":1043},[5308],{"type":999,"value":1046},{"type":993,"tag":1022,"props":5310,"children":5311},{"style":1037},[5312],{"type":999,"value":5313}," app_config[",{"type":993,"tag":1022,"props":5315,"children":5316},{"style":1057},[5317],{"type":999,"value":5318},"'server'",{"type":993,"tag":1022,"props":5320,"children":5321},{"style":1037},[5322],{"type":999,"value":1373},{"type":993,"tag":1022,"props":5324,"children":5325},{"style":1057},[5326],{"type":999,"value":5327},"'ssl'",{"type":993,"tag":1022,"props":5329,"children":5330},{"style":1037},[5331],{"type":999,"value":1373},{"type":993,"tag":1022,"props":5333,"children":5334},{"style":1057},[5335],{"type":999,"value":2892},{"type":993,"tag":1022,"props":5337,"children":5338},{"style":1037},[5339],{"type":999,"value":1756},{"type":993,"tag":1022,"props":5341,"children":5342},{"class":1024,"line":182},[5343,5348,5352,5356,5361,5365,5370,5374,5378],{"type":993,"tag":1022,"props":5344,"children":5345},{"style":1037},[5346],{"type":999,"value":5347},"auth_method ",{"type":993,"tag":1022,"props":5349,"children":5350},{"style":1043},[5351],{"type":999,"value":1046},{"type":993,"tag":1022,"props":5353,"children":5354},{"style":1037},[5355],{"type":999,"value":5313},{"type":993,"tag":1022,"props":5357,"children":5358},{"style":1057},[5359],{"type":999,"value":5360},"'features'",{"type":993,"tag":1022,"props":5362,"children":5363},{"style":1037},[5364],{"type":999,"value":1373},{"type":993,"tag":1022,"props":5366,"children":5367},{"style":1057},[5368],{"type":999,"value":5369},"'authentication'",{"type":993,"tag":1022,"props":5371,"children":5372},{"style":1037},[5373],{"type":999,"value":1373},{"type":993,"tag":1022,"props":5375,"children":5376},{"style":1057},[5377],{"type":999,"value":5209},{"type":993,"tag":1022,"props":5379,"children":5380},{"style":1037},[5381],{"type":999,"value":1756},{"type":993,"tag":1022,"props":5383,"children":5384},{"class":1024,"line":191},[5385],{"type":993,"tag":1022,"props":5386,"children":5387},{"emptyLinePlaceholder":13},[5388],{"type":999,"value":1340},{"type":993,"tag":1022,"props":5390,"children":5391},{"class":1024,"line":201},[5392,5396,5400,5404,5409,5413,5418,5422,5426],{"type":993,"tag":1022,"props":5393,"children":5394},{"style":1103},[5395],{"type":999,"value":1348},{"type":993,"tag":1022,"props":5397,"children":5398},{"style":1037},[5399],{"type":999,"value":1353},{"type":993,"tag":1022,"props":5401,"children":5402},{"style":1043},[5403],{"type":999,"value":1865},{"type":993,"tag":1022,"props":5405,"children":5406},{"style":1057},[5407],{"type":999,"value":5408},"\"SSL enabled: ",{"type":993,"tag":1022,"props":5410,"children":5411},{"style":1103},[5412],{"type":999,"value":1875},{"type":993,"tag":1022,"props":5414,"children":5415},{"style":1037},[5416],{"type":999,"value":5417},"ssl_enabled",{"type":993,"tag":1022,"props":5419,"children":5420},{"style":1103},[5421],{"type":999,"value":1885},{"type":993,"tag":1022,"props":5423,"children":5424},{"style":1057},[5425],{"type":999,"value":1890},{"type":993,"tag":1022,"props":5427,"children":5428},{"style":1037},[5429],{"type":999,"value":1895},{"type":993,"tag":1022,"props":5431,"children":5432},{"class":1024,"line":210},[5433,5437,5441,5445,5450,5454,5459,5463,5467],{"type":993,"tag":1022,"props":5434,"children":5435},{"style":1103},[5436],{"type":999,"value":1348},{"type":993,"tag":1022,"props":5438,"children":5439},{"style":1037},[5440],{"type":999,"value":1353},{"type":993,"tag":1022,"props":5442,"children":5443},{"style":1043},[5444],{"type":999,"value":1865},{"type":993,"tag":1022,"props":5446,"children":5447},{"style":1057},[5448],{"type":999,"value":5449},"\"Auth method: ",{"type":993,"tag":1022,"props":5451,"children":5452},{"style":1103},[5453],{"type":999,"value":1875},{"type":993,"tag":1022,"props":5455,"children":5456},{"style":1037},[5457],{"type":999,"value":5458},"auth_method",{"type":993,"tag":1022,"props":5460,"children":5461},{"style":1103},[5462],{"type":999,"value":1885},{"type":993,"tag":1022,"props":5464,"children":5465},{"style":1057},[5466],{"type":999,"value":1890},{"type":993,"tag":1022,"props":5468,"children":5469},{"style":1037},[5470],{"type":999,"value":1895},{"type":993,"tag":4915,"props":5472,"children":5474},{"id":5473},"data-analysis-hierarchies",[5475],{"type":999,"value":5476},"Data Analysis Hierarchies",{"type":993,"tag":1002,"props":5478,"children":5479},{},[5480],{"type":999,"value":5481},"Nested dictionaries organize analytical data with natural hierarchical relationships.",{"type":993,"tag":1008,"props":5483,"children":5484},{},[5485],{"type":993,"tag":1012,"props":5486,"children":5488},{"className":1014,"code":5487,"language":6,"meta":8,"style":8},"sales_data = {\n    '2024': {\n        'Q1': {'January': 45000, 'February': 52000, 'March': 48000},\n        'Q2': {'April': 55000, 'May': 61000, 'June': 58000}\n    },\n    '2023': {\n        'Q4': {'October': 42000, 'November': 47000, 'December': 65000}\n    }\n}\n\n# Calculate quarterly totals\ndef calculate_quarterly_total(year, quarter):\n    quarter_data = sales_data.get(year, {}).get(quarter, {})\n    return sum(quarter_data.values())\n\nq1_2024 = calculate_quarterly_total('2024', 'Q1')\nq2_2024 = calculate_quarterly_total('2024', 'Q2')\n\nprint(f\"2024 Q1 total: ${q1_2024:,}\")\nprint(f\"2024 Q2 total: ${q2_2024:,}\")\n",[5489],{"type":993,"tag":1018,"props":5490,"children":5491},{"__ignoreMap":8},[5492,5508,5520,5586,5652,5659,5671,5737,5744,5751,5758,5766,5783,5800,5817,5824,5859,5892,5899,5945],{"type":993,"tag":1022,"props":5493,"children":5494},{"class":1024,"line":12},[5495,5500,5504],{"type":993,"tag":1022,"props":5496,"children":5497},{"style":1037},[5498],{"type":999,"value":5499},"sales_data ",{"type":993,"tag":1022,"props":5501,"children":5502},{"style":1043},[5503],{"type":999,"value":1046},{"type":993,"tag":1022,"props":5505,"children":5506},{"style":1037},[5507],{"type":999,"value":1051},{"type":993,"tag":1022,"props":5509,"children":5510},{"class":1024,"line":27},[5511,5516],{"type":993,"tag":1022,"props":5512,"children":5513},{"style":1057},[5514],{"type":999,"value":5515},"    '2024'",{"type":993,"tag":1022,"props":5517,"children":5518},{"style":1037},[5519],{"type":999,"value":1065},{"type":993,"tag":1022,"props":5521,"children":5522},{"class":1024,"line":36},[5523,5528,5532,5537,5541,5546,5550,5555,5559,5564,5568,5573,5577,5582],{"type":993,"tag":1022,"props":5524,"children":5525},{"style":1057},[5526],{"type":999,"value":5527},"        'Q1'",{"type":993,"tag":1022,"props":5529,"children":5530},{"style":1037},[5531],{"type":999,"value":1280},{"type":993,"tag":1022,"props":5533,"children":5534},{"style":1057},[5535],{"type":999,"value":5536},"'January'",{"type":993,"tag":1022,"props":5538,"children":5539},{"style":1037},[5540],{"type":999,"value":1078},{"type":993,"tag":1022,"props":5542,"children":5543},{"style":1103},[5544],{"type":999,"value":5545},"45000",{"type":993,"tag":1022,"props":5547,"children":5548},{"style":1037},[5549],{"type":999,"value":1299},{"type":993,"tag":1022,"props":5551,"children":5552},{"style":1057},[5553],{"type":999,"value":5554},"'February'",{"type":993,"tag":1022,"props":5556,"children":5557},{"style":1037},[5558],{"type":999,"value":1078},{"type":993,"tag":1022,"props":5560,"children":5561},{"style":1103},[5562],{"type":999,"value":5563},"52000",{"type":993,"tag":1022,"props":5565,"children":5566},{"style":1037},[5567],{"type":999,"value":1299},{"type":993,"tag":1022,"props":5569,"children":5570},{"style":1057},[5571],{"type":999,"value":5572},"'March'",{"type":993,"tag":1022,"props":5574,"children":5575},{"style":1037},[5576],{"type":999,"value":1078},{"type":993,"tag":1022,"props":5578,"children":5579},{"style":1103},[5580],{"type":999,"value":5581},"48000",{"type":993,"tag":1022,"props":5583,"children":5584},{"style":1037},[5585],{"type":999,"value":2033},{"type":993,"tag":1022,"props":5587,"children":5588},{"class":1024,"line":45},[5589,5594,5598,5603,5607,5612,5616,5621,5625,5630,5634,5639,5643,5648],{"type":993,"tag":1022,"props":5590,"children":5591},{"style":1057},[5592],{"type":999,"value":5593},"        'Q2'",{"type":993,"tag":1022,"props":5595,"children":5596},{"style":1037},[5597],{"type":999,"value":1280},{"type":993,"tag":1022,"props":5599,"children":5600},{"style":1057},[5601],{"type":999,"value":5602},"'April'",{"type":993,"tag":1022,"props":5604,"children":5605},{"style":1037},[5606],{"type":999,"value":1078},{"type":993,"tag":1022,"props":5608,"children":5609},{"style":1103},[5610],{"type":999,"value":5611},"55000",{"type":993,"tag":1022,"props":5613,"children":5614},{"style":1037},[5615],{"type":999,"value":1299},{"type":993,"tag":1022,"props":5617,"children":5618},{"style":1057},[5619],{"type":999,"value":5620},"'May'",{"type":993,"tag":1022,"props":5622,"children":5623},{"style":1037},[5624],{"type":999,"value":1078},{"type":993,"tag":1022,"props":5626,"children":5627},{"style":1103},[5628],{"type":999,"value":5629},"61000",{"type":993,"tag":1022,"props":5631,"children":5632},{"style":1037},[5633],{"type":999,"value":1299},{"type":993,"tag":1022,"props":5635,"children":5636},{"style":1057},[5637],{"type":999,"value":5638},"'June'",{"type":993,"tag":1022,"props":5640,"children":5641},{"style":1037},[5642],{"type":999,"value":1078},{"type":993,"tag":1022,"props":5644,"children":5645},{"style":1103},[5646],{"type":999,"value":5647},"58000",{"type":993,"tag":1022,"props":5649,"children":5650},{"style":1037},[5651],{"type":999,"value":1317},{"type":993,"tag":1022,"props":5653,"children":5654},{"class":1024,"line":54},[5655],{"type":993,"tag":1022,"props":5656,"children":5657},{"style":1037},[5658],{"type":999,"value":1135},{"type":993,"tag":1022,"props":5660,"children":5661},{"class":1024,"line":63},[5662,5667],{"type":993,"tag":1022,"props":5663,"children":5664},{"style":1057},[5665],{"type":999,"value":5666},"    '2023'",{"type":993,"tag":1022,"props":5668,"children":5669},{"style":1037},[5670],{"type":999,"value":1065},{"type":993,"tag":1022,"props":5672,"children":5673},{"class":1024,"line":72},[5674,5679,5683,5688,5692,5697,5701,5706,5710,5715,5719,5724,5728,5733],{"type":993,"tag":1022,"props":5675,"children":5676},{"style":1057},[5677],{"type":999,"value":5678},"        'Q4'",{"type":993,"tag":1022,"props":5680,"children":5681},{"style":1037},[5682],{"type":999,"value":1280},{"type":993,"tag":1022,"props":5684,"children":5685},{"style":1057},[5686],{"type":999,"value":5687},"'October'",{"type":993,"tag":1022,"props":5689,"children":5690},{"style":1037},[5691],{"type":999,"value":1078},{"type":993,"tag":1022,"props":5693,"children":5694},{"style":1103},[5695],{"type":999,"value":5696},"42000",{"type":993,"tag":1022,"props":5698,"children":5699},{"style":1037},[5700],{"type":999,"value":1299},{"type":993,"tag":1022,"props":5702,"children":5703},{"style":1057},[5704],{"type":999,"value":5705},"'November'",{"type":993,"tag":1022,"props":5707,"children":5708},{"style":1037},[5709],{"type":999,"value":1078},{"type":993,"tag":1022,"props":5711,"children":5712},{"style":1103},[5713],{"type":999,"value":5714},"47000",{"type":993,"tag":1022,"props":5716,"children":5717},{"style":1037},[5718],{"type":999,"value":1299},{"type":993,"tag":1022,"props":5720,"children":5721},{"style":1057},[5722],{"type":999,"value":5723},"'December'",{"type":993,"tag":1022,"props":5725,"children":5726},{"style":1037},[5727],{"type":999,"value":1078},{"type":993,"tag":1022,"props":5729,"children":5730},{"style":1103},[5731],{"type":999,"value":5732},"65000",{"type":993,"tag":1022,"props":5734,"children":5735},{"style":1037},[5736],{"type":999,"value":1317},{"type":993,"tag":1022,"props":5738,"children":5739},{"class":1024,"line":81},[5740],{"type":993,"tag":1022,"props":5741,"children":5742},{"style":1037},[5743],{"type":999,"value":1325},{"type":993,"tag":1022,"props":5745,"children":5746},{"class":1024,"line":91},[5747],{"type":993,"tag":1022,"props":5748,"children":5749},{"style":1037},[5750],{"type":999,"value":1317},{"type":993,"tag":1022,"props":5752,"children":5753},{"class":1024,"line":100},[5754],{"type":993,"tag":1022,"props":5755,"children":5756},{"emptyLinePlaceholder":13},[5757],{"type":999,"value":1340},{"type":993,"tag":1022,"props":5759,"children":5760},{"class":1024,"line":109},[5761],{"type":993,"tag":1022,"props":5762,"children":5763},{"style":1028},[5764],{"type":999,"value":5765},"# Calculate quarterly totals\n",{"type":993,"tag":1022,"props":5767,"children":5768},{"class":1024,"line":118},[5769,5773,5778],{"type":993,"tag":1022,"props":5770,"children":5771},{"style":1043},[5772],{"type":999,"value":2154},{"type":993,"tag":1022,"props":5774,"children":5775},{"style":2157},[5776],{"type":999,"value":5777}," calculate_quarterly_total",{"type":993,"tag":1022,"props":5779,"children":5780},{"style":1037},[5781],{"type":999,"value":5782},"(year, quarter):\n",{"type":993,"tag":1022,"props":5784,"children":5785},{"class":1024,"line":127},[5786,5791,5795],{"type":993,"tag":1022,"props":5787,"children":5788},{"style":1037},[5789],{"type":999,"value":5790},"    quarter_data ",{"type":993,"tag":1022,"props":5792,"children":5793},{"style":1043},[5794],{"type":999,"value":1046},{"type":993,"tag":1022,"props":5796,"children":5797},{"style":1037},[5798],{"type":999,"value":5799}," sales_data.get(year, {}).get(quarter, {})\n",{"type":993,"tag":1022,"props":5801,"children":5802},{"class":1024,"line":136},[5803,5807,5812],{"type":993,"tag":1022,"props":5804,"children":5805},{"style":1043},[5806],{"type":999,"value":2217},{"type":993,"tag":1022,"props":5808,"children":5809},{"style":1103},[5810],{"type":999,"value":5811}," sum",{"type":993,"tag":1022,"props":5813,"children":5814},{"style":1037},[5815],{"type":999,"value":5816},"(quarter_data.values())\n",{"type":993,"tag":1022,"props":5818,"children":5819},{"class":1024,"line":146},[5820],{"type":993,"tag":1022,"props":5821,"children":5822},{"emptyLinePlaceholder":13},[5823],{"type":999,"value":1340},{"type":993,"tag":1022,"props":5825,"children":5826},{"class":1024,"line":155},[5827,5832,5836,5841,5846,5850,5855],{"type":993,"tag":1022,"props":5828,"children":5829},{"style":1037},[5830],{"type":999,"value":5831},"q1_2024 ",{"type":993,"tag":1022,"props":5833,"children":5834},{"style":1043},[5835],{"type":999,"value":1046},{"type":993,"tag":1022,"props":5837,"children":5838},{"style":1037},[5839],{"type":999,"value":5840}," calculate_quarterly_total(",{"type":993,"tag":1022,"props":5842,"children":5843},{"style":1057},[5844],{"type":999,"value":5845},"'2024'",{"type":993,"tag":1022,"props":5847,"children":5848},{"style":1037},[5849],{"type":999,"value":1299},{"type":993,"tag":1022,"props":5851,"children":5852},{"style":1057},[5853],{"type":999,"value":5854},"'Q1'",{"type":993,"tag":1022,"props":5856,"children":5857},{"style":1037},[5858],{"type":999,"value":1895},{"type":993,"tag":1022,"props":5860,"children":5861},{"class":1024,"line":164},[5862,5867,5871,5875,5879,5883,5888],{"type":993,"tag":1022,"props":5863,"children":5864},{"style":1037},[5865],{"type":999,"value":5866},"q2_2024 ",{"type":993,"tag":1022,"props":5868,"children":5869},{"style":1043},[5870],{"type":999,"value":1046},{"type":993,"tag":1022,"props":5872,"children":5873},{"style":1037},[5874],{"type":999,"value":5840},{"type":993,"tag":1022,"props":5876,"children":5877},{"style":1057},[5878],{"type":999,"value":5845},{"type":993,"tag":1022,"props":5880,"children":5881},{"style":1037},[5882],{"type":999,"value":1299},{"type":993,"tag":1022,"props":5884,"children":5885},{"style":1057},[5886],{"type":999,"value":5887},"'Q2'",{"type":993,"tag":1022,"props":5889,"children":5890},{"style":1037},[5891],{"type":999,"value":1895},{"type":993,"tag":1022,"props":5893,"children":5894},{"class":1024,"line":173},[5895],{"type":993,"tag":1022,"props":5896,"children":5897},{"emptyLinePlaceholder":13},[5898],{"type":999,"value":1340},{"type":993,"tag":1022,"props":5900,"children":5901},{"class":1024,"line":182},[5902,5906,5910,5914,5919,5923,5928,5933,5937,5941],{"type":993,"tag":1022,"props":5903,"children":5904},{"style":1103},[5905],{"type":999,"value":1348},{"type":993,"tag":1022,"props":5907,"children":5908},{"style":1037},[5909],{"type":999,"value":1353},{"type":993,"tag":1022,"props":5911,"children":5912},{"style":1043},[5913],{"type":999,"value":1865},{"type":993,"tag":1022,"props":5915,"children":5916},{"style":1057},[5917],{"type":999,"value":5918},"\"2024 Q1 total: $",{"type":993,"tag":1022,"props":5920,"children":5921},{"style":1103},[5922],{"type":999,"value":1875},{"type":993,"tag":1022,"props":5924,"children":5925},{"style":1037},[5926],{"type":999,"value":5927},"q1_2024",{"type":993,"tag":1022,"props":5929,"children":5930},{"style":1043},[5931],{"type":999,"value":5932},":,",{"type":993,"tag":1022,"props":5934,"children":5935},{"style":1103},[5936],{"type":999,"value":1885},{"type":993,"tag":1022,"props":5938,"children":5939},{"style":1057},[5940],{"type":999,"value":1890},{"type":993,"tag":1022,"props":5942,"children":5943},{"style":1037},[5944],{"type":999,"value":1895},{"type":993,"tag":1022,"props":5946,"children":5947},{"class":1024,"line":191},[5948,5952,5956,5960,5965,5969,5974,5978,5982,5986],{"type":993,"tag":1022,"props":5949,"children":5950},{"style":1103},[5951],{"type":999,"value":1348},{"type":993,"tag":1022,"props":5953,"children":5954},{"style":1037},[5955],{"type":999,"value":1353},{"type":993,"tag":1022,"props":5957,"children":5958},{"style":1043},[5959],{"type":999,"value":1865},{"type":993,"tag":1022,"props":5961,"children":5962},{"style":1057},[5963],{"type":999,"value":5964},"\"2024 Q2 total: $",{"type":993,"tag":1022,"props":5966,"children":5967},{"style":1103},[5968],{"type":999,"value":1875},{"type":993,"tag":1022,"props":5970,"children":5971},{"style":1037},[5972],{"type":999,"value":5973},"q2_2024",{"type":993,"tag":1022,"props":5975,"children":5976},{"style":1043},[5977],{"type":999,"value":5932},{"type":993,"tag":1022,"props":5979,"children":5980},{"style":1103},[5981],{"type":999,"value":1885},{"type":993,"tag":1022,"props":5983,"children":5984},{"style":1057},[5985],{"type":999,"value":1890},{"type":993,"tag":1022,"props":5987,"children":5988},{"style":1037},[5989],{"type":999,"value":1895},{"type":993,"tag":2343,"props":5991,"children":5995},{"emoji":5992,"title":5993,"type":5994},"✅","Best Practices","success",[5996,6006,6016,6026],{"type":993,"tag":1002,"props":5997,"children":5998},{},[5999,6004],{"type":993,"tag":2353,"props":6000,"children":6001},{},[6002],{"type":999,"value":6003},"Use Safe Access:",{"type":999,"value":6005}," Always use get() methods with defaults for unpredictable data.",{"type":993,"tag":1002,"props":6007,"children":6008},{},[6009,6014],{"type":993,"tag":2353,"props":6010,"children":6011},{},[6012],{"type":999,"value":6013},"Initialize Properly:",{"type":999,"value":6015}," Use setdefault() to build nested structures safely.",{"type":993,"tag":1002,"props":6017,"children":6018},{},[6019,6024],{"type":993,"tag":2353,"props":6020,"children":6021},{},[6022],{"type":999,"value":6023},"Plan Structure:",{"type":999,"value":6025}," Design your nesting levels logically for easy access patterns.",{"type":993,"tag":1002,"props":6027,"children":6028},{},[6029,6034],{"type":993,"tag":2353,"props":6030,"children":6031},{},[6032],{"type":999,"value":6033},"Handle Depth:",{"type":999,"value":6035}," Consider maximum nesting depth to avoid overly complex structures.",{"type":993,"tag":6037,"props":6038,"children":6040},"content-exercise",{":widget-view":6039,"category":6,"id":592},"true",[],{"type":993,"tag":6042,"props":6043,"children":6046},"exercise",{"hint":6044,"prompt":6045},"Use get() at each level to safely navigate the nested structure","Create a function that safely gets information from a nested dictionary representing a student's data. The structure is: student['info']['name'] and student['grades']['math']. Use get() methods to avoid errors.",[6047],{"type":993,"tag":1012,"props":6048,"children":6050},{"className":1014,"code":6049,"language":6,"meta":8,"style":8},"def get_student_summary(student_data):\n    # TODO: Safely get the student's name and math grade\n    # TODO: Return a formatted string with the information\n    # TODO: Use 'Unknown' and 'No grade' as defaults\n    pass\n\n# Test data\nstudent1 = {\n    'info': {'name': 'Alice', 'age': 16},\n    'grades': {'math': 85, 'science': 90}\n}\n\nstudent2 = {\n    'info': {'name': 'Bob'},\n    # Missing grades section\n}\n\nstudent3 = {}  # Empty data\n\nprint(get_student_summary(student1))\nprint(get_student_summary(student2))\nprint(get_student_summary(student3))\n",[6051],{"type":993,"tag":1018,"props":6052,"children":6053},{"__ignoreMap":8},[6054,6071,6089,6105,6121,6129,6136,6144,6160,6205,6253,6260,6267,6283,6310,6318,6325,6332,6354,6361,6373,6385],{"type":993,"tag":1022,"props":6055,"children":6056},{"class":1024,"line":12},[6057,6061,6066],{"type":993,"tag":1022,"props":6058,"children":6059},{"style":1043},[6060],{"type":999,"value":2154},{"type":993,"tag":1022,"props":6062,"children":6063},{"style":2157},[6064],{"type":999,"value":6065}," get_student_summary",{"type":993,"tag":1022,"props":6067,"children":6068},{"style":1037},[6069],{"type":999,"value":6070},"(student_data):\n",{"type":993,"tag":1022,"props":6072,"children":6073},{"class":1024,"line":27},[6074,6079,6084],{"type":993,"tag":1022,"props":6075,"children":6076},{"style":1028},[6077],{"type":999,"value":6078},"    # ",{"type":993,"tag":1022,"props":6080,"children":6081},{"style":1043},[6082],{"type":999,"value":6083},"TODO",{"type":993,"tag":1022,"props":6085,"children":6086},{"style":1028},[6087],{"type":999,"value":6088},": Safely get the student's name and math grade\n",{"type":993,"tag":1022,"props":6090,"children":6091},{"class":1024,"line":36},[6092,6096,6100],{"type":993,"tag":1022,"props":6093,"children":6094},{"style":1028},[6095],{"type":999,"value":6078},{"type":993,"tag":1022,"props":6097,"children":6098},{"style":1043},[6099],{"type":999,"value":6083},{"type":993,"tag":1022,"props":6101,"children":6102},{"style":1028},[6103],{"type":999,"value":6104},": Return a formatted string with the information\n",{"type":993,"tag":1022,"props":6106,"children":6107},{"class":1024,"line":45},[6108,6112,6116],{"type":993,"tag":1022,"props":6109,"children":6110},{"style":1028},[6111],{"type":999,"value":6078},{"type":993,"tag":1022,"props":6113,"children":6114},{"style":1043},[6115],{"type":999,"value":6083},{"type":993,"tag":1022,"props":6117,"children":6118},{"style":1028},[6119],{"type":999,"value":6120},": Use 'Unknown' and 'No grade' as defaults\n",{"type":993,"tag":1022,"props":6122,"children":6123},{"class":1024,"line":54},[6124],{"type":993,"tag":1022,"props":6125,"children":6126},{"style":1043},[6127],{"type":999,"value":6128},"    pass\n",{"type":993,"tag":1022,"props":6130,"children":6131},{"class":1024,"line":63},[6132],{"type":993,"tag":1022,"props":6133,"children":6134},{"emptyLinePlaceholder":13},[6135],{"type":999,"value":1340},{"type":993,"tag":1022,"props":6137,"children":6138},{"class":1024,"line":72},[6139],{"type":993,"tag":1022,"props":6140,"children":6141},{"style":1028},[6142],{"type":999,"value":6143},"# Test data\n",{"type":993,"tag":1022,"props":6145,"children":6146},{"class":1024,"line":81},[6147,6152,6156],{"type":993,"tag":1022,"props":6148,"children":6149},{"style":1037},[6150],{"type":999,"value":6151},"student1 ",{"type":993,"tag":1022,"props":6153,"children":6154},{"style":1043},[6155],{"type":999,"value":1046},{"type":993,"tag":1022,"props":6157,"children":6158},{"style":1037},[6159],{"type":999,"value":1051},{"type":993,"tag":1022,"props":6161,"children":6162},{"class":1024,"line":91},[6163,6168,6172,6176,6180,6184,6188,6192,6196,6201],{"type":993,"tag":1022,"props":6164,"children":6165},{"style":1057},[6166],{"type":999,"value":6167},"    'info'",{"type":993,"tag":1022,"props":6169,"children":6170},{"style":1037},[6171],{"type":999,"value":1280},{"type":993,"tag":1022,"props":6173,"children":6174},{"style":1057},[6175],{"type":999,"value":1378},{"type":993,"tag":1022,"props":6177,"children":6178},{"style":1037},[6179],{"type":999,"value":1078},{"type":993,"tag":1022,"props":6181,"children":6182},{"style":1057},[6183],{"type":999,"value":2010},{"type":993,"tag":1022,"props":6185,"children":6186},{"style":1037},[6187],{"type":999,"value":1299},{"type":993,"tag":1022,"props":6189,"children":6190},{"style":1057},[6191],{"type":999,"value":2019},{"type":993,"tag":1022,"props":6193,"children":6194},{"style":1037},[6195],{"type":999,"value":1078},{"type":993,"tag":1022,"props":6197,"children":6198},{"style":1103},[6199],{"type":999,"value":6200},"16",{"type":993,"tag":1022,"props":6202,"children":6203},{"style":1037},[6204],{"type":999,"value":2033},{"type":993,"tag":1022,"props":6206,"children":6207},{"class":1024,"line":100},[6208,6213,6217,6222,6226,6231,6235,6240,6244,6249],{"type":993,"tag":1022,"props":6209,"children":6210},{"style":1057},[6211],{"type":999,"value":6212},"    'grades'",{"type":993,"tag":1022,"props":6214,"children":6215},{"style":1037},[6216],{"type":999,"value":1280},{"type":993,"tag":1022,"props":6218,"children":6219},{"style":1057},[6220],{"type":999,"value":6221},"'math'",{"type":993,"tag":1022,"props":6223,"children":6224},{"style":1037},[6225],{"type":999,"value":1078},{"type":993,"tag":1022,"props":6227,"children":6228},{"style":1103},[6229],{"type":999,"value":6230},"85",{"type":993,"tag":1022,"props":6232,"children":6233},{"style":1037},[6234],{"type":999,"value":1299},{"type":993,"tag":1022,"props":6236,"children":6237},{"style":1057},[6238],{"type":999,"value":6239},"'science'",{"type":993,"tag":1022,"props":6241,"children":6242},{"style":1037},[6243],{"type":999,"value":1078},{"type":993,"tag":1022,"props":6245,"children":6246},{"style":1103},[6247],{"type":999,"value":6248},"90",{"type":993,"tag":1022,"props":6250,"children":6251},{"style":1037},[6252],{"type":999,"value":1317},{"type":993,"tag":1022,"props":6254,"children":6255},{"class":1024,"line":109},[6256],{"type":993,"tag":1022,"props":6257,"children":6258},{"style":1037},[6259],{"type":999,"value":1317},{"type":993,"tag":1022,"props":6261,"children":6262},{"class":1024,"line":118},[6263],{"type":993,"tag":1022,"props":6264,"children":6265},{"emptyLinePlaceholder":13},[6266],{"type":999,"value":1340},{"type":993,"tag":1022,"props":6268,"children":6269},{"class":1024,"line":127},[6270,6275,6279],{"type":993,"tag":1022,"props":6271,"children":6272},{"style":1037},[6273],{"type":999,"value":6274},"student2 ",{"type":993,"tag":1022,"props":6276,"children":6277},{"style":1043},[6278],{"type":999,"value":1046},{"type":993,"tag":1022,"props":6280,"children":6281},{"style":1037},[6282],{"type":999,"value":1051},{"type":993,"tag":1022,"props":6284,"children":6285},{"class":1024,"line":136},[6286,6290,6294,6298,6302,6306],{"type":993,"tag":1022,"props":6287,"children":6288},{"style":1057},[6289],{"type":999,"value":6167},{"type":993,"tag":1022,"props":6291,"children":6292},{"style":1037},[6293],{"type":999,"value":1280},{"type":993,"tag":1022,"props":6295,"children":6296},{"style":1057},[6297],{"type":999,"value":1378},{"type":993,"tag":1022,"props":6299,"children":6300},{"style":1037},[6301],{"type":999,"value":1078},{"type":993,"tag":1022,"props":6303,"children":6304},{"style":1057},[6305],{"type":999,"value":2105},{"type":993,"tag":1022,"props":6307,"children":6308},{"style":1037},[6309],{"type":999,"value":2033},{"type":993,"tag":1022,"props":6311,"children":6312},{"class":1024,"line":146},[6313],{"type":993,"tag":1022,"props":6314,"children":6315},{"style":1028},[6316],{"type":999,"value":6317},"    # Missing grades section\n",{"type":993,"tag":1022,"props":6319,"children":6320},{"class":1024,"line":155},[6321],{"type":993,"tag":1022,"props":6322,"children":6323},{"style":1037},[6324],{"type":999,"value":1317},{"type":993,"tag":1022,"props":6326,"children":6327},{"class":1024,"line":164},[6328],{"type":993,"tag":1022,"props":6329,"children":6330},{"emptyLinePlaceholder":13},[6331],{"type":999,"value":1340},{"type":993,"tag":1022,"props":6333,"children":6334},{"class":1024,"line":173},[6335,6340,6344,6349],{"type":993,"tag":1022,"props":6336,"children":6337},{"style":1037},[6338],{"type":999,"value":6339},"student3 ",{"type":993,"tag":1022,"props":6341,"children":6342},{"style":1043},[6343],{"type":999,"value":1046},{"type":993,"tag":1022,"props":6345,"children":6346},{"style":1037},[6347],{"type":999,"value":6348}," {}  ",{"type":993,"tag":1022,"props":6350,"children":6351},{"style":1028},[6352],{"type":999,"value":6353},"# Empty data\n",{"type":993,"tag":1022,"props":6355,"children":6356},{"class":1024,"line":182},[6357],{"type":993,"tag":1022,"props":6358,"children":6359},{"emptyLinePlaceholder":13},[6360],{"type":999,"value":1340},{"type":993,"tag":1022,"props":6362,"children":6363},{"class":1024,"line":191},[6364,6368],{"type":993,"tag":1022,"props":6365,"children":6366},{"style":1103},[6367],{"type":999,"value":1348},{"type":993,"tag":1022,"props":6369,"children":6370},{"style":1037},[6371],{"type":999,"value":6372},"(get_student_summary(student1))\n",{"type":993,"tag":1022,"props":6374,"children":6375},{"class":1024,"line":201},[6376,6380],{"type":993,"tag":1022,"props":6377,"children":6378},{"style":1103},[6379],{"type":999,"value":1348},{"type":993,"tag":1022,"props":6381,"children":6382},{"style":1037},[6383],{"type":999,"value":6384},"(get_student_summary(student2))\n",{"type":993,"tag":1022,"props":6386,"children":6387},{"class":1024,"line":210},[6388,6392],{"type":993,"tag":1022,"props":6389,"children":6390},{"style":1103},[6391],{"type":999,"value":1348},{"type":993,"tag":1022,"props":6393,"children":6394},{"style":1037},[6395],{"type":999,"value":6396},"(get_student_summary(student3))\n",{"type":993,"tag":4915,"props":6398,"children":6400},{"id":6399},"solution-and-explanation",[6401],{"type":999,"value":6402},"Solution and Explanation 💡",{"type":993,"tag":6404,"props":6405,"children":6406},"details",{},[6407,6415,6900,6908],{"type":993,"tag":6408,"props":6409,"children":6412},"summary",{"className":6410},[6411],"cursor-pointer",[6413],{"type":999,"value":6414},"Click to see the complete solution",{"type":993,"tag":1008,"props":6416,"children":6417},{},[6418],{"type":993,"tag":1012,"props":6419,"children":6421},{"className":1014,"code":6420,"language":6,"meta":8,"style":8},"def get_student_summary(student_data):\n    # Safely navigate nested structure with get()\n    info = student_data.get('info', {})\n    grades = student_data.get('grades', {})\n    \n    # Get name and math grade with defaults\n    name = info.get('name', 'Unknown')\n    math_grade = grades.get('math', 'No grade')\n    \n    # Return formatted summary\n    return f\"Student: {name}, Math grade: {math_grade}\"\n\n# Test data\nstudent1 = {\n    'info': {'name': 'Alice', 'age': 16},\n    'grades': {'math': 85, 'science': 90}\n}\n\nstudent2 = {\n    'info': {'name': 'Bob'},\n    # Missing grades section\n}\n\nstudent3 = {}  # Empty data\n\nprint(get_student_summary(student1))\nprint(get_student_summary(student2))\nprint(get_student_summary(student3))\n",[6422],{"type":993,"tag":1018,"props":6423,"children":6424},{"__ignoreMap":8},[6425,6440,6448,6474,6499,6506,6514,6548,6582,6589,6597,6649,6656,6663,6678,6721,6764,6771,6778,6793,6820,6827,6834,6841,6860,6867,6878,6889],{"type":993,"tag":1022,"props":6426,"children":6427},{"class":1024,"line":12},[6428,6432,6436],{"type":993,"tag":1022,"props":6429,"children":6430},{"style":1043},[6431],{"type":999,"value":2154},{"type":993,"tag":1022,"props":6433,"children":6434},{"style":2157},[6435],{"type":999,"value":6065},{"type":993,"tag":1022,"props":6437,"children":6438},{"style":1037},[6439],{"type":999,"value":6070},{"type":993,"tag":1022,"props":6441,"children":6442},{"class":1024,"line":27},[6443],{"type":993,"tag":1022,"props":6444,"children":6445},{"style":1028},[6446],{"type":999,"value":6447},"    # Safely navigate nested structure with get()\n",{"type":993,"tag":1022,"props":6449,"children":6450},{"class":1024,"line":36},[6451,6456,6460,6465,6470],{"type":993,"tag":1022,"props":6452,"children":6453},{"style":1037},[6454],{"type":999,"value":6455},"    info ",{"type":993,"tag":1022,"props":6457,"children":6458},{"style":1043},[6459],{"type":999,"value":1046},{"type":993,"tag":1022,"props":6461,"children":6462},{"style":1037},[6463],{"type":999,"value":6464}," student_data.get(",{"type":993,"tag":1022,"props":6466,"children":6467},{"style":1057},[6468],{"type":999,"value":6469},"'info'",{"type":993,"tag":1022,"props":6471,"children":6472},{"style":1037},[6473],{"type":999,"value":2209},{"type":993,"tag":1022,"props":6475,"children":6476},{"class":1024,"line":45},[6477,6482,6486,6490,6495],{"type":993,"tag":1022,"props":6478,"children":6479},{"style":1037},[6480],{"type":999,"value":6481},"    grades ",{"type":993,"tag":1022,"props":6483,"children":6484},{"style":1043},[6485],{"type":999,"value":1046},{"type":993,"tag":1022,"props":6487,"children":6488},{"style":1037},[6489],{"type":999,"value":6464},{"type":993,"tag":1022,"props":6491,"children":6492},{"style":1057},[6493],{"type":999,"value":6494},"'grades'",{"type":993,"tag":1022,"props":6496,"children":6497},{"style":1037},[6498],{"type":999,"value":2209},{"type":993,"tag":1022,"props":6500,"children":6501},{"class":1024,"line":54},[6502],{"type":993,"tag":1022,"props":6503,"children":6504},{"style":1037},[6505],{"type":999,"value":4677},{"type":993,"tag":1022,"props":6507,"children":6508},{"class":1024,"line":63},[6509],{"type":993,"tag":1022,"props":6510,"children":6511},{"style":1028},[6512],{"type":999,"value":6513},"    # Get name and math grade with defaults\n",{"type":993,"tag":1022,"props":6515,"children":6516},{"class":1024,"line":72},[6517,6522,6526,6531,6535,6539,6544],{"type":993,"tag":1022,"props":6518,"children":6519},{"style":1037},[6520],{"type":999,"value":6521},"    name ",{"type":993,"tag":1022,"props":6523,"children":6524},{"style":1043},[6525],{"type":999,"value":1046},{"type":993,"tag":1022,"props":6527,"children":6528},{"style":1037},[6529],{"type":999,"value":6530}," info.get(",{"type":993,"tag":1022,"props":6532,"children":6533},{"style":1057},[6534],{"type":999,"value":1378},{"type":993,"tag":1022,"props":6536,"children":6537},{"style":1037},[6538],{"type":999,"value":1299},{"type":993,"tag":1022,"props":6540,"children":6541},{"style":1057},[6542],{"type":999,"value":6543},"'Unknown'",{"type":993,"tag":1022,"props":6545,"children":6546},{"style":1037},[6547],{"type":999,"value":1895},{"type":993,"tag":1022,"props":6549,"children":6550},{"class":1024,"line":81},[6551,6556,6560,6565,6569,6573,6578],{"type":993,"tag":1022,"props":6552,"children":6553},{"style":1037},[6554],{"type":999,"value":6555},"    math_grade ",{"type":993,"tag":1022,"props":6557,"children":6558},{"style":1043},[6559],{"type":999,"value":1046},{"type":993,"tag":1022,"props":6561,"children":6562},{"style":1037},[6563],{"type":999,"value":6564}," grades.get(",{"type":993,"tag":1022,"props":6566,"children":6567},{"style":1057},[6568],{"type":999,"value":6221},{"type":993,"tag":1022,"props":6570,"children":6571},{"style":1037},[6572],{"type":999,"value":1299},{"type":993,"tag":1022,"props":6574,"children":6575},{"style":1057},[6576],{"type":999,"value":6577},"'No grade'",{"type":993,"tag":1022,"props":6579,"children":6580},{"style":1037},[6581],{"type":999,"value":1895},{"type":993,"tag":1022,"props":6583,"children":6584},{"class":1024,"line":91},[6585],{"type":993,"tag":1022,"props":6586,"children":6587},{"style":1037},[6588],{"type":999,"value":4677},{"type":993,"tag":1022,"props":6590,"children":6591},{"class":1024,"line":100},[6592],{"type":993,"tag":1022,"props":6593,"children":6594},{"style":1028},[6595],{"type":999,"value":6596},"    # Return formatted summary\n",{"type":993,"tag":1022,"props":6598,"children":6599},{"class":1024,"line":109},[6600,6604,6608,6613,6617,6622,6626,6631,6635,6640,6644],{"type":993,"tag":1022,"props":6601,"children":6602},{"style":1043},[6603],{"type":999,"value":2217},{"type":993,"tag":1022,"props":6605,"children":6606},{"style":1043},[6607],{"type":999,"value":4549},{"type":993,"tag":1022,"props":6609,"children":6610},{"style":1057},[6611],{"type":999,"value":6612},"\"Student: ",{"type":993,"tag":1022,"props":6614,"children":6615},{"style":1103},[6616],{"type":999,"value":1875},{"type":993,"tag":1022,"props":6618,"children":6619},{"style":1037},[6620],{"type":999,"value":6621},"name",{"type":993,"tag":1022,"props":6623,"children":6624},{"style":1103},[6625],{"type":999,"value":1885},{"type":993,"tag":1022,"props":6627,"children":6628},{"style":1057},[6629],{"type":999,"value":6630},", Math grade: ",{"type":993,"tag":1022,"props":6632,"children":6633},{"style":1103},[6634],{"type":999,"value":1875},{"type":993,"tag":1022,"props":6636,"children":6637},{"style":1037},[6638],{"type":999,"value":6639},"math_grade",{"type":993,"tag":1022,"props":6641,"children":6642},{"style":1103},[6643],{"type":999,"value":1885},{"type":993,"tag":1022,"props":6645,"children":6646},{"style":1057},[6647],{"type":999,"value":6648},"\"\n",{"type":993,"tag":1022,"props":6650,"children":6651},{"class":1024,"line":118},[6652],{"type":993,"tag":1022,"props":6653,"children":6654},{"emptyLinePlaceholder":13},[6655],{"type":999,"value":1340},{"type":993,"tag":1022,"props":6657,"children":6658},{"class":1024,"line":127},[6659],{"type":993,"tag":1022,"props":6660,"children":6661},{"style":1028},[6662],{"type":999,"value":6143},{"type":993,"tag":1022,"props":6664,"children":6665},{"class":1024,"line":136},[6666,6670,6674],{"type":993,"tag":1022,"props":6667,"children":6668},{"style":1037},[6669],{"type":999,"value":6151},{"type":993,"tag":1022,"props":6671,"children":6672},{"style":1043},[6673],{"type":999,"value":1046},{"type":993,"tag":1022,"props":6675,"children":6676},{"style":1037},[6677],{"type":999,"value":1051},{"type":993,"tag":1022,"props":6679,"children":6680},{"class":1024,"line":146},[6681,6685,6689,6693,6697,6701,6705,6709,6713,6717],{"type":993,"tag":1022,"props":6682,"children":6683},{"style":1057},[6684],{"type":999,"value":6167},{"type":993,"tag":1022,"props":6686,"children":6687},{"style":1037},[6688],{"type":999,"value":1280},{"type":993,"tag":1022,"props":6690,"children":6691},{"style":1057},[6692],{"type":999,"value":1378},{"type":993,"tag":1022,"props":6694,"children":6695},{"style":1037},[6696],{"type":999,"value":1078},{"type":993,"tag":1022,"props":6698,"children":6699},{"style":1057},[6700],{"type":999,"value":2010},{"type":993,"tag":1022,"props":6702,"children":6703},{"style":1037},[6704],{"type":999,"value":1299},{"type":993,"tag":1022,"props":6706,"children":6707},{"style":1057},[6708],{"type":999,"value":2019},{"type":993,"tag":1022,"props":6710,"children":6711},{"style":1037},[6712],{"type":999,"value":1078},{"type":993,"tag":1022,"props":6714,"children":6715},{"style":1103},[6716],{"type":999,"value":6200},{"type":993,"tag":1022,"props":6718,"children":6719},{"style":1037},[6720],{"type":999,"value":2033},{"type":993,"tag":1022,"props":6722,"children":6723},{"class":1024,"line":155},[6724,6728,6732,6736,6740,6744,6748,6752,6756,6760],{"type":993,"tag":1022,"props":6725,"children":6726},{"style":1057},[6727],{"type":999,"value":6212},{"type":993,"tag":1022,"props":6729,"children":6730},{"style":1037},[6731],{"type":999,"value":1280},{"type":993,"tag":1022,"props":6733,"children":6734},{"style":1057},[6735],{"type":999,"value":6221},{"type":993,"tag":1022,"props":6737,"children":6738},{"style":1037},[6739],{"type":999,"value":1078},{"type":993,"tag":1022,"props":6741,"children":6742},{"style":1103},[6743],{"type":999,"value":6230},{"type":993,"tag":1022,"props":6745,"children":6746},{"style":1037},[6747],{"type":999,"value":1299},{"type":993,"tag":1022,"props":6749,"children":6750},{"style":1057},[6751],{"type":999,"value":6239},{"type":993,"tag":1022,"props":6753,"children":6754},{"style":1037},[6755],{"type":999,"value":1078},{"type":993,"tag":1022,"props":6757,"children":6758},{"style":1103},[6759],{"type":999,"value":6248},{"type":993,"tag":1022,"props":6761,"children":6762},{"style":1037},[6763],{"type":999,"value":1317},{"type":993,"tag":1022,"props":6765,"children":6766},{"class":1024,"line":164},[6767],{"type":993,"tag":1022,"props":6768,"children":6769},{"style":1037},[6770],{"type":999,"value":1317},{"type":993,"tag":1022,"props":6772,"children":6773},{"class":1024,"line":173},[6774],{"type":993,"tag":1022,"props":6775,"children":6776},{"emptyLinePlaceholder":13},[6777],{"type":999,"value":1340},{"type":993,"tag":1022,"props":6779,"children":6780},{"class":1024,"line":182},[6781,6785,6789],{"type":993,"tag":1022,"props":6782,"children":6783},{"style":1037},[6784],{"type":999,"value":6274},{"type":993,"tag":1022,"props":6786,"children":6787},{"style":1043},[6788],{"type":999,"value":1046},{"type":993,"tag":1022,"props":6790,"children":6791},{"style":1037},[6792],{"type":999,"value":1051},{"type":993,"tag":1022,"props":6794,"children":6795},{"class":1024,"line":191},[6796,6800,6804,6808,6812,6816],{"type":993,"tag":1022,"props":6797,"children":6798},{"style":1057},[6799],{"type":999,"value":6167},{"type":993,"tag":1022,"props":6801,"children":6802},{"style":1037},[6803],{"type":999,"value":1280},{"type":993,"tag":1022,"props":6805,"children":6806},{"style":1057},[6807],{"type":999,"value":1378},{"type":993,"tag":1022,"props":6809,"children":6810},{"style":1037},[6811],{"type":999,"value":1078},{"type":993,"tag":1022,"props":6813,"children":6814},{"style":1057},[6815],{"type":999,"value":2105},{"type":993,"tag":1022,"props":6817,"children":6818},{"style":1037},[6819],{"type":999,"value":2033},{"type":993,"tag":1022,"props":6821,"children":6822},{"class":1024,"line":201},[6823],{"type":993,"tag":1022,"props":6824,"children":6825},{"style":1028},[6826],{"type":999,"value":6317},{"type":993,"tag":1022,"props":6828,"children":6829},{"class":1024,"line":210},[6830],{"type":993,"tag":1022,"props":6831,"children":6832},{"style":1037},[6833],{"type":999,"value":1317},{"type":993,"tag":1022,"props":6835,"children":6836},{"class":1024,"line":219},[6837],{"type":993,"tag":1022,"props":6838,"children":6839},{"emptyLinePlaceholder":13},[6840],{"type":999,"value":1340},{"type":993,"tag":1022,"props":6842,"children":6843},{"class":1024,"line":228},[6844,6848,6852,6856],{"type":993,"tag":1022,"props":6845,"children":6846},{"style":1037},[6847],{"type":999,"value":6339},{"type":993,"tag":1022,"props":6849,"children":6850},{"style":1043},[6851],{"type":999,"value":1046},{"type":993,"tag":1022,"props":6853,"children":6854},{"style":1037},[6855],{"type":999,"value":6348},{"type":993,"tag":1022,"props":6857,"children":6858},{"style":1028},[6859],{"type":999,"value":6353},{"type":993,"tag":1022,"props":6861,"children":6862},{"class":1024,"line":238},[6863],{"type":993,"tag":1022,"props":6864,"children":6865},{"emptyLinePlaceholder":13},[6866],{"type":999,"value":1340},{"type":993,"tag":1022,"props":6868,"children":6869},{"class":1024,"line":247},[6870,6874],{"type":993,"tag":1022,"props":6871,"children":6872},{"style":1103},[6873],{"type":999,"value":1348},{"type":993,"tag":1022,"props":6875,"children":6876},{"style":1037},[6877],{"type":999,"value":6372},{"type":993,"tag":1022,"props":6879,"children":6880},{"class":1024,"line":256},[6881,6885],{"type":993,"tag":1022,"props":6882,"children":6883},{"style":1103},[6884],{"type":999,"value":1348},{"type":993,"tag":1022,"props":6886,"children":6887},{"style":1037},[6888],{"type":999,"value":6384},{"type":993,"tag":1022,"props":6890,"children":6891},{"class":1024,"line":265},[6892,6896],{"type":993,"tag":1022,"props":6893,"children":6894},{"style":1103},[6895],{"type":999,"value":1348},{"type":993,"tag":1022,"props":6897,"children":6898},{"style":1037},[6899],{"type":999,"value":6396},{"type":993,"tag":1002,"props":6901,"children":6902},{},[6903],{"type":993,"tag":2353,"props":6904,"children":6905},{},[6906],{"type":999,"value":6907},"Key Learning Points:",{"type":993,"tag":6909,"props":6910,"children":6911},"ul",{},[6912,6933,6944,6955],{"type":993,"tag":6913,"props":6914,"children":6915},"li",{},[6916,6918,6923,6925,6931],{"type":999,"value":6917},"📌 ",{"type":993,"tag":2353,"props":6919,"children":6920},{},[6921],{"type":999,"value":6922},"Nested get() usage",{"type":999,"value":6924},": Use ",{"type":993,"tag":1018,"props":6926,"children":6928},{"className":6927},[],[6929],{"type":999,"value":6930},"get()",{"type":999,"value":6932}," at each level to safely navigate nested dictionaries",{"type":993,"tag":6913,"props":6934,"children":6935},{},[6936,6937,6942],{"type":999,"value":6917},{"type":993,"tag":2353,"props":6938,"children":6939},{},[6940],{"type":999,"value":6941},"Default values",{"type":999,"value":6943},": Provide meaningful defaults for missing data at any level",{"type":993,"tag":6913,"props":6945,"children":6946},{},[6947,6948,6953],{"type":999,"value":6917},{"type":993,"tag":2353,"props":6949,"children":6950},{},[6951],{"type":999,"value":6952},"Intermediate variables",{"type":999,"value":6954},": Store intermediate dictionary levels for cleaner access",{"type":993,"tag":6913,"props":6956,"children":6957},{},[6958,6959,6964],{"type":999,"value":6917},{"type":993,"tag":2353,"props":6960,"children":6961},{},[6962],{"type":999,"value":6963},"Safe navigation",{"type":999,"value":6965},": Handle missing or incomplete nested structures gracefully",{"type":993,"tag":1002,"props":6967,"children":6968},{},[6969,6971,6977],{"type":999,"value":6970},"Learn more about ",{"type":993,"tag":6972,"props":6973,"children":6974},"a",{"href":598},[6975],{"type":999,"value":6976},"dictionary tools",{"type":999,"value":6978}," to discover powerful built-in functions for advanced dictionary manipulation.",{"type":993,"tag":1423,"props":6980,"children":6982},{"id":6981},"test-your-knowledge",[6983],{"type":999,"value":6984},"Test Your Knowledge",{"type":993,"tag":1002,"props":6986,"children":6987},{},[6988],{"type":999,"value":6989},"Test what you've learned about multi-level dictionaries:",{"type":993,"tag":6991,"props":6992,"children":6996},"redirect-button",{"icon":6993,"label":6994,"url":6995},"pi pi-send","Take Quiz","/tutorial-quiz/python/multi-level-dictionaries",[],{"type":993,"tag":1423,"props":6998,"children":7000},{"id":6999},"whats-next",[7001],{"type":999,"value":7002},"What's Next?",{"type":993,"tag":1002,"props":7004,"children":7005},{},[7006],{"type":999,"value":7007},"Now that you can work with complex nested structures, you're ready to learn about powerful dictionary tools. Understanding built-in functions will make your dictionary operations more efficient and elegant.",{"type":993,"tag":1002,"props":7009,"children":7010},{},[7011,7013,7017],{"type":999,"value":7012},"Ready to continue? Check out our lesson on ",{"type":993,"tag":6972,"props":7014,"children":7015},{"href":598},[7016],{"type":999,"value":599},{"type":999,"value":7018},".",{"type":993,"tag":7020,"props":7021,"children":7022},"style",{},[7023],{"type":999,"value":7024},"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":7026},[7027,7028,7029,7030,7031,7032,7033,7034,7035,7040,7041],{"id":1425,"depth":27,"text":1428},{"id":1939,"depth":27,"text":1942},{"id":2392,"depth":27,"text":2395},{"id":2716,"depth":27,"text":2719},{"id":3165,"depth":27,"text":3168},{"id":3317,"depth":27,"text":3320},{"id":3815,"depth":27,"text":3818},{"id":4427,"depth":27,"text":4430},{"id":4910,"depth":27,"text":4913,"children":7036},[7037,7038,7039],{"id":4917,"depth":36,"text":4920},{"id":5473,"depth":36,"text":5476},{"id":6399,"depth":36,"text":6402},{"id":6981,"depth":27,"text":6984},{"id":6999,"depth":27,"text":7002},1782373744748]