[{"data":1,"prerenderedAt":5504},["ShallowReactive",2],{"tutorials-python":3,"category-items-python":987,"content-/python/getting-dictionary-values":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",[534],{"_path":535,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":536,"description":537,"slug":538,"parentId":516,"order":539,"body":989,"_type":15,"_id":540,"_source":17,"_file":541,"_stem":542,"_extension":20},{"type":990,"children":991,"toc":5476},"root",[992,1000,1006,1186,1193,1198,1373,1411,1417,1430,1437,1442,1637,1643,1648,1897,1903,1908,2177,2183,2327,2333,2338,2344,2349,2599,2605,2610,2871,2877,2882,2888,2893,3188,3194,3199,3431,3437,3442,3448,3453,3703,3709,3714,3914,3920,3925,3931,3936,4125,4131,4136,4574,4620,4625,4638,4926,4932,5430,5436,5441,5448,5454,5459,5470],{"type":993,"tag":994,"props":995,"children":996},"element","h1",{"id":538},[997],{"type":998,"value":999},"text","🔍 Getting Dictionary Values",{"type":993,"tag":1001,"props":1002,"children":1003},"p",{},[1004],{"type":998,"value":1005},"Retrieving data from dictionaries efficiently and safely is fundamental to Python programming. Understanding different access methods helps you handle missing keys gracefully and build robust applications.",{"type":993,"tag":1007,"props":1008,"children":1009},"code-try",{},[1010],{"type":993,"tag":1011,"props":1012,"children":1015},"pre",{"className":1013,"code":1014,"language":6,"meta":8,"style":8},"language-python shiki shiki-themes github-light github-dark","# Basic dictionary access\nstudent = {'name': 'Alice', 'age': 20, 'grade': 'A'}\n\n# Direct access\nprint(\"Student name:\", student['name'])\nprint(\"Student age:\", student['age'])\n",[1016],{"type":993,"tag":1017,"props":1018,"children":1019},"code",{"__ignoreMap":8},[1020,1031,1110,1118,1126,1158],{"type":993,"tag":1021,"props":1022,"children":1024},"span",{"class":1023,"line":12},"line",[1025],{"type":993,"tag":1021,"props":1026,"children":1028},{"style":1027},"--shiki-default:#6A737D;--shiki-app-dark-mode:#6A737D",[1029],{"type":998,"value":1030},"# Basic dictionary access\n",{"type":993,"tag":1021,"props":1032,"children":1033},{"class":1023,"line":27},[1034,1040,1046,1051,1057,1062,1067,1072,1077,1081,1087,1091,1096,1100,1105],{"type":993,"tag":1021,"props":1035,"children":1037},{"style":1036},"--shiki-default:#24292E;--shiki-app-dark-mode:#E1E4E8",[1038],{"type":998,"value":1039},"student ",{"type":993,"tag":1021,"props":1041,"children":1043},{"style":1042},"--shiki-default:#D73A49;--shiki-app-dark-mode:#F97583",[1044],{"type":998,"value":1045},"=",{"type":993,"tag":1021,"props":1047,"children":1048},{"style":1036},[1049],{"type":998,"value":1050}," {",{"type":993,"tag":1021,"props":1052,"children":1054},{"style":1053},"--shiki-default:#032F62;--shiki-app-dark-mode:#9ECBFF",[1055],{"type":998,"value":1056},"'name'",{"type":993,"tag":1021,"props":1058,"children":1059},{"style":1036},[1060],{"type":998,"value":1061},": ",{"type":993,"tag":1021,"props":1063,"children":1064},{"style":1053},[1065],{"type":998,"value":1066},"'Alice'",{"type":993,"tag":1021,"props":1068,"children":1069},{"style":1036},[1070],{"type":998,"value":1071},", ",{"type":993,"tag":1021,"props":1073,"children":1074},{"style":1053},[1075],{"type":998,"value":1076},"'age'",{"type":993,"tag":1021,"props":1078,"children":1079},{"style":1036},[1080],{"type":998,"value":1061},{"type":993,"tag":1021,"props":1082,"children":1084},{"style":1083},"--shiki-default:#005CC5;--shiki-app-dark-mode:#79B8FF",[1085],{"type":998,"value":1086},"20",{"type":993,"tag":1021,"props":1088,"children":1089},{"style":1036},[1090],{"type":998,"value":1071},{"type":993,"tag":1021,"props":1092,"children":1093},{"style":1053},[1094],{"type":998,"value":1095},"'grade'",{"type":993,"tag":1021,"props":1097,"children":1098},{"style":1036},[1099],{"type":998,"value":1061},{"type":993,"tag":1021,"props":1101,"children":1102},{"style":1053},[1103],{"type":998,"value":1104},"'A'",{"type":993,"tag":1021,"props":1106,"children":1107},{"style":1036},[1108],{"type":998,"value":1109},"}\n",{"type":993,"tag":1021,"props":1111,"children":1112},{"class":1023,"line":36},[1113],{"type":993,"tag":1021,"props":1114,"children":1115},{"emptyLinePlaceholder":13},[1116],{"type":998,"value":1117},"\n",{"type":993,"tag":1021,"props":1119,"children":1120},{"class":1023,"line":45},[1121],{"type":993,"tag":1021,"props":1122,"children":1123},{"style":1027},[1124],{"type":998,"value":1125},"# Direct access\n",{"type":993,"tag":1021,"props":1127,"children":1128},{"class":1023,"line":54},[1129,1134,1139,1144,1149,1153],{"type":993,"tag":1021,"props":1130,"children":1131},{"style":1083},[1132],{"type":998,"value":1133},"print",{"type":993,"tag":1021,"props":1135,"children":1136},{"style":1036},[1137],{"type":998,"value":1138},"(",{"type":993,"tag":1021,"props":1140,"children":1141},{"style":1053},[1142],{"type":998,"value":1143},"\"Student name:\"",{"type":993,"tag":1021,"props":1145,"children":1146},{"style":1036},[1147],{"type":998,"value":1148},", student[",{"type":993,"tag":1021,"props":1150,"children":1151},{"style":1053},[1152],{"type":998,"value":1056},{"type":993,"tag":1021,"props":1154,"children":1155},{"style":1036},[1156],{"type":998,"value":1157},"])\n",{"type":993,"tag":1021,"props":1159,"children":1160},{"class":1023,"line":63},[1161,1165,1169,1174,1178,1182],{"type":993,"tag":1021,"props":1162,"children":1163},{"style":1083},[1164],{"type":998,"value":1133},{"type":993,"tag":1021,"props":1166,"children":1167},{"style":1036},[1168],{"type":998,"value":1138},{"type":993,"tag":1021,"props":1170,"children":1171},{"style":1053},[1172],{"type":998,"value":1173},"\"Student age:\"",{"type":993,"tag":1021,"props":1175,"children":1176},{"style":1036},[1177],{"type":998,"value":1148},{"type":993,"tag":1021,"props":1179,"children":1180},{"style":1053},[1181],{"type":998,"value":1076},{"type":993,"tag":1021,"props":1183,"children":1184},{"style":1036},[1185],{"type":998,"value":1157},{"type":993,"tag":1187,"props":1188,"children":1190},"h2",{"id":1189},"direct-key-access",[1191],{"type":998,"value":1192},"🎯 Direct Key Access",{"type":993,"tag":1001,"props":1194,"children":1195},{},[1196],{"type":998,"value":1197},"Square bracket notation provides direct access to dictionary values using keys. This method offers the fastest access but requires careful key management.",{"type":993,"tag":1007,"props":1199,"children":1200},{},[1201],{"type":993,"tag":1011,"props":1202,"children":1204},{"className":1013,"code":1203,"language":6,"meta":8,"style":8},"inventory = {'apples': 50, 'bananas': 30, 'oranges': 25}\n\n# Access existing keys\nprint(\"Apples:\", inventory['apples'])\nprint(\"Bananas:\", inventory['bananas'])\n\n# This would raise KeyError:\n# print(\"Grapes:\", inventory['grapes'])  # KeyError!\n",[1205],{"type":993,"tag":1017,"props":1206,"children":1207},{"__ignoreMap":8},[1208,1278,1285,1293,1322,1350,1357,1365],{"type":993,"tag":1021,"props":1209,"children":1210},{"class":1023,"line":12},[1211,1216,1220,1224,1229,1233,1238,1242,1247,1251,1256,1260,1265,1269,1274],{"type":993,"tag":1021,"props":1212,"children":1213},{"style":1036},[1214],{"type":998,"value":1215},"inventory ",{"type":993,"tag":1021,"props":1217,"children":1218},{"style":1042},[1219],{"type":998,"value":1045},{"type":993,"tag":1021,"props":1221,"children":1222},{"style":1036},[1223],{"type":998,"value":1050},{"type":993,"tag":1021,"props":1225,"children":1226},{"style":1053},[1227],{"type":998,"value":1228},"'apples'",{"type":993,"tag":1021,"props":1230,"children":1231},{"style":1036},[1232],{"type":998,"value":1061},{"type":993,"tag":1021,"props":1234,"children":1235},{"style":1083},[1236],{"type":998,"value":1237},"50",{"type":993,"tag":1021,"props":1239,"children":1240},{"style":1036},[1241],{"type":998,"value":1071},{"type":993,"tag":1021,"props":1243,"children":1244},{"style":1053},[1245],{"type":998,"value":1246},"'bananas'",{"type":993,"tag":1021,"props":1248,"children":1249},{"style":1036},[1250],{"type":998,"value":1061},{"type":993,"tag":1021,"props":1252,"children":1253},{"style":1083},[1254],{"type":998,"value":1255},"30",{"type":993,"tag":1021,"props":1257,"children":1258},{"style":1036},[1259],{"type":998,"value":1071},{"type":993,"tag":1021,"props":1261,"children":1262},{"style":1053},[1263],{"type":998,"value":1264},"'oranges'",{"type":993,"tag":1021,"props":1266,"children":1267},{"style":1036},[1268],{"type":998,"value":1061},{"type":993,"tag":1021,"props":1270,"children":1271},{"style":1083},[1272],{"type":998,"value":1273},"25",{"type":993,"tag":1021,"props":1275,"children":1276},{"style":1036},[1277],{"type":998,"value":1109},{"type":993,"tag":1021,"props":1279,"children":1280},{"class":1023,"line":27},[1281],{"type":993,"tag":1021,"props":1282,"children":1283},{"emptyLinePlaceholder":13},[1284],{"type":998,"value":1117},{"type":993,"tag":1021,"props":1286,"children":1287},{"class":1023,"line":36},[1288],{"type":993,"tag":1021,"props":1289,"children":1290},{"style":1027},[1291],{"type":998,"value":1292},"# Access existing keys\n",{"type":993,"tag":1021,"props":1294,"children":1295},{"class":1023,"line":45},[1296,1300,1304,1309,1314,1318],{"type":993,"tag":1021,"props":1297,"children":1298},{"style":1083},[1299],{"type":998,"value":1133},{"type":993,"tag":1021,"props":1301,"children":1302},{"style":1036},[1303],{"type":998,"value":1138},{"type":993,"tag":1021,"props":1305,"children":1306},{"style":1053},[1307],{"type":998,"value":1308},"\"Apples:\"",{"type":993,"tag":1021,"props":1310,"children":1311},{"style":1036},[1312],{"type":998,"value":1313},", inventory[",{"type":993,"tag":1021,"props":1315,"children":1316},{"style":1053},[1317],{"type":998,"value":1228},{"type":993,"tag":1021,"props":1319,"children":1320},{"style":1036},[1321],{"type":998,"value":1157},{"type":993,"tag":1021,"props":1323,"children":1324},{"class":1023,"line":54},[1325,1329,1333,1338,1342,1346],{"type":993,"tag":1021,"props":1326,"children":1327},{"style":1083},[1328],{"type":998,"value":1133},{"type":993,"tag":1021,"props":1330,"children":1331},{"style":1036},[1332],{"type":998,"value":1138},{"type":993,"tag":1021,"props":1334,"children":1335},{"style":1053},[1336],{"type":998,"value":1337},"\"Bananas:\"",{"type":993,"tag":1021,"props":1339,"children":1340},{"style":1036},[1341],{"type":998,"value":1313},{"type":993,"tag":1021,"props":1343,"children":1344},{"style":1053},[1345],{"type":998,"value":1246},{"type":993,"tag":1021,"props":1347,"children":1348},{"style":1036},[1349],{"type":998,"value":1157},{"type":993,"tag":1021,"props":1351,"children":1352},{"class":1023,"line":63},[1353],{"type":993,"tag":1021,"props":1354,"children":1355},{"emptyLinePlaceholder":13},[1356],{"type":998,"value":1117},{"type":993,"tag":1021,"props":1358,"children":1359},{"class":1023,"line":72},[1360],{"type":993,"tag":1021,"props":1361,"children":1362},{"style":1027},[1363],{"type":998,"value":1364},"# This would raise KeyError:\n",{"type":993,"tag":1021,"props":1366,"children":1367},{"class":1023,"line":81},[1368],{"type":993,"tag":1021,"props":1369,"children":1370},{"style":1027},[1371],{"type":998,"value":1372},"# print(\"Grapes:\", inventory['grapes'])  # KeyError!\n",{"type":993,"tag":1374,"props":1375,"children":1379},"info-box",{"emoji":1376,"title":1377,"type":1378},"⚠️","Direct Access Behavior","warning",[1380,1391,1401],{"type":993,"tag":1001,"props":1381,"children":1382},{},[1383,1389],{"type":993,"tag":1384,"props":1385,"children":1386},"strong",{},[1387],{"type":998,"value":1388},"Fast Performance:",{"type":998,"value":1390}," O(1) average time complexity for key lookup operations.",{"type":993,"tag":1001,"props":1392,"children":1393},{},[1394,1399],{"type":993,"tag":1384,"props":1395,"children":1396},{},[1397],{"type":998,"value":1398},"KeyError Risk:",{"type":998,"value":1400}," Raises KeyError exception if the key doesn't exist in the dictionary.",{"type":993,"tag":1001,"props":1402,"children":1403},{},[1404,1409],{"type":993,"tag":1384,"props":1405,"children":1406},{},[1407],{"type":998,"value":1408},"Best Practice:",{"type":998,"value":1410}," Use only when you're certain the key exists or within try-catch blocks.",{"type":993,"tag":1187,"props":1412,"children":1414},{"id":1413},"the-get-method",[1415],{"type":998,"value":1416},"⚡ The get() Method",{"type":993,"tag":1001,"props":1418,"children":1419},{},[1420,1422,1428],{"type":998,"value":1421},"The ",{"type":993,"tag":1017,"props":1423,"children":1425},{"className":1424},[],[1426],{"type":998,"value":1427},"get()",{"type":998,"value":1429}," method provides safe dictionary access with optional default values. This approach prevents errors and enables graceful handling of missing keys.",{"type":993,"tag":1431,"props":1432,"children":1434},"h3",{"id":1433},"basic-get-usage",[1435],{"type":998,"value":1436},"Basic get() Usage",{"type":993,"tag":1001,"props":1438,"children":1439},{},[1440],{"type":998,"value":1441},"Safe access with automatic None return for missing keys eliminates the need for extensive error handling in many scenarios.",{"type":993,"tag":1007,"props":1443,"children":1444},{},[1445],{"type":993,"tag":1011,"props":1446,"children":1448},{"className":1013,"code":1447,"language":6,"meta":8,"style":8},"user_data = {'username': 'john_doe', 'email': 'john@example.com'}\n\n# Safe access - returns None if key doesn't exist\nphone = user_data.get('phone')\nprint(\"Phone:\", phone)  # None\n\n# Existing key access\nemail = user_data.get('email')\nprint(\"Email:\", email)  # john@example.com\n",[1449],{"type":993,"tag":1017,"props":1450,"children":1451},{"__ignoreMap":8},[1452,1504,1511,1519,1546,1572,1579,1587,1611],{"type":993,"tag":1021,"props":1453,"children":1454},{"class":1023,"line":12},[1455,1460,1464,1468,1473,1477,1482,1486,1491,1495,1500],{"type":993,"tag":1021,"props":1456,"children":1457},{"style":1036},[1458],{"type":998,"value":1459},"user_data ",{"type":993,"tag":1021,"props":1461,"children":1462},{"style":1042},[1463],{"type":998,"value":1045},{"type":993,"tag":1021,"props":1465,"children":1466},{"style":1036},[1467],{"type":998,"value":1050},{"type":993,"tag":1021,"props":1469,"children":1470},{"style":1053},[1471],{"type":998,"value":1472},"'username'",{"type":993,"tag":1021,"props":1474,"children":1475},{"style":1036},[1476],{"type":998,"value":1061},{"type":993,"tag":1021,"props":1478,"children":1479},{"style":1053},[1480],{"type":998,"value":1481},"'john_doe'",{"type":993,"tag":1021,"props":1483,"children":1484},{"style":1036},[1485],{"type":998,"value":1071},{"type":993,"tag":1021,"props":1487,"children":1488},{"style":1053},[1489],{"type":998,"value":1490},"'email'",{"type":993,"tag":1021,"props":1492,"children":1493},{"style":1036},[1494],{"type":998,"value":1061},{"type":993,"tag":1021,"props":1496,"children":1497},{"style":1053},[1498],{"type":998,"value":1499},"'john@example.com'",{"type":993,"tag":1021,"props":1501,"children":1502},{"style":1036},[1503],{"type":998,"value":1109},{"type":993,"tag":1021,"props":1505,"children":1506},{"class":1023,"line":27},[1507],{"type":993,"tag":1021,"props":1508,"children":1509},{"emptyLinePlaceholder":13},[1510],{"type":998,"value":1117},{"type":993,"tag":1021,"props":1512,"children":1513},{"class":1023,"line":36},[1514],{"type":993,"tag":1021,"props":1515,"children":1516},{"style":1027},[1517],{"type":998,"value":1518},"# Safe access - returns None if key doesn't exist\n",{"type":993,"tag":1021,"props":1520,"children":1521},{"class":1023,"line":45},[1522,1527,1531,1536,1541],{"type":993,"tag":1021,"props":1523,"children":1524},{"style":1036},[1525],{"type":998,"value":1526},"phone ",{"type":993,"tag":1021,"props":1528,"children":1529},{"style":1042},[1530],{"type":998,"value":1045},{"type":993,"tag":1021,"props":1532,"children":1533},{"style":1036},[1534],{"type":998,"value":1535}," user_data.get(",{"type":993,"tag":1021,"props":1537,"children":1538},{"style":1053},[1539],{"type":998,"value":1540},"'phone'",{"type":993,"tag":1021,"props":1542,"children":1543},{"style":1036},[1544],{"type":998,"value":1545},")\n",{"type":993,"tag":1021,"props":1547,"children":1548},{"class":1023,"line":54},[1549,1553,1557,1562,1567],{"type":993,"tag":1021,"props":1550,"children":1551},{"style":1083},[1552],{"type":998,"value":1133},{"type":993,"tag":1021,"props":1554,"children":1555},{"style":1036},[1556],{"type":998,"value":1138},{"type":993,"tag":1021,"props":1558,"children":1559},{"style":1053},[1560],{"type":998,"value":1561},"\"Phone:\"",{"type":993,"tag":1021,"props":1563,"children":1564},{"style":1036},[1565],{"type":998,"value":1566},", phone)  ",{"type":993,"tag":1021,"props":1568,"children":1569},{"style":1027},[1570],{"type":998,"value":1571},"# None\n",{"type":993,"tag":1021,"props":1573,"children":1574},{"class":1023,"line":63},[1575],{"type":993,"tag":1021,"props":1576,"children":1577},{"emptyLinePlaceholder":13},[1578],{"type":998,"value":1117},{"type":993,"tag":1021,"props":1580,"children":1581},{"class":1023,"line":72},[1582],{"type":993,"tag":1021,"props":1583,"children":1584},{"style":1027},[1585],{"type":998,"value":1586},"# Existing key access\n",{"type":993,"tag":1021,"props":1588,"children":1589},{"class":1023,"line":81},[1590,1595,1599,1603,1607],{"type":993,"tag":1021,"props":1591,"children":1592},{"style":1036},[1593],{"type":998,"value":1594},"email ",{"type":993,"tag":1021,"props":1596,"children":1597},{"style":1042},[1598],{"type":998,"value":1045},{"type":993,"tag":1021,"props":1600,"children":1601},{"style":1036},[1602],{"type":998,"value":1535},{"type":993,"tag":1021,"props":1604,"children":1605},{"style":1053},[1606],{"type":998,"value":1490},{"type":993,"tag":1021,"props":1608,"children":1609},{"style":1036},[1610],{"type":998,"value":1545},{"type":993,"tag":1021,"props":1612,"children":1613},{"class":1023,"line":91},[1614,1618,1622,1627,1632],{"type":993,"tag":1021,"props":1615,"children":1616},{"style":1083},[1617],{"type":998,"value":1133},{"type":993,"tag":1021,"props":1619,"children":1620},{"style":1036},[1621],{"type":998,"value":1138},{"type":993,"tag":1021,"props":1623,"children":1624},{"style":1053},[1625],{"type":998,"value":1626},"\"Email:\"",{"type":993,"tag":1021,"props":1628,"children":1629},{"style":1036},[1630],{"type":998,"value":1631},", email)  ",{"type":993,"tag":1021,"props":1633,"children":1634},{"style":1027},[1635],{"type":998,"value":1636},"# john@example.com\n",{"type":993,"tag":1431,"props":1638,"children":1640},{"id":1639},"default-values-with-get",[1641],{"type":998,"value":1642},"Default Values with get()",{"type":993,"tag":1001,"props":1644,"children":1645},{},[1646],{"type":998,"value":1647},"Custom default values provide meaningful fallbacks and enable seamless application flow when keys are missing.",{"type":993,"tag":1007,"props":1649,"children":1650},{},[1651],{"type":993,"tag":1011,"props":1652,"children":1654},{"className":1013,"code":1653,"language":6,"meta":8,"style":8},"settings = {'theme': 'dark', 'font_size': 14}\n\n# Using default values\nlanguage = settings.get('language', 'English')\ntimeout = settings.get('timeout', 30)\nauto_save = settings.get('auto_save', True)\n\nprint(\"Language:\", language)\nprint(\"Timeout:\", timeout)\nprint(\"Auto-save:\", auto_save)\n",[1655],{"type":993,"tag":1017,"props":1656,"children":1657},{"__ignoreMap":8},[1658,1710,1717,1725,1760,1793,1827,1834,1855,1876],{"type":993,"tag":1021,"props":1659,"children":1660},{"class":1023,"line":12},[1661,1666,1670,1674,1679,1683,1688,1692,1697,1701,1706],{"type":993,"tag":1021,"props":1662,"children":1663},{"style":1036},[1664],{"type":998,"value":1665},"settings ",{"type":993,"tag":1021,"props":1667,"children":1668},{"style":1042},[1669],{"type":998,"value":1045},{"type":993,"tag":1021,"props":1671,"children":1672},{"style":1036},[1673],{"type":998,"value":1050},{"type":993,"tag":1021,"props":1675,"children":1676},{"style":1053},[1677],{"type":998,"value":1678},"'theme'",{"type":993,"tag":1021,"props":1680,"children":1681},{"style":1036},[1682],{"type":998,"value":1061},{"type":993,"tag":1021,"props":1684,"children":1685},{"style":1053},[1686],{"type":998,"value":1687},"'dark'",{"type":993,"tag":1021,"props":1689,"children":1690},{"style":1036},[1691],{"type":998,"value":1071},{"type":993,"tag":1021,"props":1693,"children":1694},{"style":1053},[1695],{"type":998,"value":1696},"'font_size'",{"type":993,"tag":1021,"props":1698,"children":1699},{"style":1036},[1700],{"type":998,"value":1061},{"type":993,"tag":1021,"props":1702,"children":1703},{"style":1083},[1704],{"type":998,"value":1705},"14",{"type":993,"tag":1021,"props":1707,"children":1708},{"style":1036},[1709],{"type":998,"value":1109},{"type":993,"tag":1021,"props":1711,"children":1712},{"class":1023,"line":27},[1713],{"type":993,"tag":1021,"props":1714,"children":1715},{"emptyLinePlaceholder":13},[1716],{"type":998,"value":1117},{"type":993,"tag":1021,"props":1718,"children":1719},{"class":1023,"line":36},[1720],{"type":993,"tag":1021,"props":1721,"children":1722},{"style":1027},[1723],{"type":998,"value":1724},"# Using default values\n",{"type":993,"tag":1021,"props":1726,"children":1727},{"class":1023,"line":45},[1728,1733,1737,1742,1747,1751,1756],{"type":993,"tag":1021,"props":1729,"children":1730},{"style":1036},[1731],{"type":998,"value":1732},"language ",{"type":993,"tag":1021,"props":1734,"children":1735},{"style":1042},[1736],{"type":998,"value":1045},{"type":993,"tag":1021,"props":1738,"children":1739},{"style":1036},[1740],{"type":998,"value":1741}," settings.get(",{"type":993,"tag":1021,"props":1743,"children":1744},{"style":1053},[1745],{"type":998,"value":1746},"'language'",{"type":993,"tag":1021,"props":1748,"children":1749},{"style":1036},[1750],{"type":998,"value":1071},{"type":993,"tag":1021,"props":1752,"children":1753},{"style":1053},[1754],{"type":998,"value":1755},"'English'",{"type":993,"tag":1021,"props":1757,"children":1758},{"style":1036},[1759],{"type":998,"value":1545},{"type":993,"tag":1021,"props":1761,"children":1762},{"class":1023,"line":54},[1763,1768,1772,1776,1781,1785,1789],{"type":993,"tag":1021,"props":1764,"children":1765},{"style":1036},[1766],{"type":998,"value":1767},"timeout ",{"type":993,"tag":1021,"props":1769,"children":1770},{"style":1042},[1771],{"type":998,"value":1045},{"type":993,"tag":1021,"props":1773,"children":1774},{"style":1036},[1775],{"type":998,"value":1741},{"type":993,"tag":1021,"props":1777,"children":1778},{"style":1053},[1779],{"type":998,"value":1780},"'timeout'",{"type":993,"tag":1021,"props":1782,"children":1783},{"style":1036},[1784],{"type":998,"value":1071},{"type":993,"tag":1021,"props":1786,"children":1787},{"style":1083},[1788],{"type":998,"value":1255},{"type":993,"tag":1021,"props":1790,"children":1791},{"style":1036},[1792],{"type":998,"value":1545},{"type":993,"tag":1021,"props":1794,"children":1795},{"class":1023,"line":63},[1796,1801,1805,1809,1814,1818,1823],{"type":993,"tag":1021,"props":1797,"children":1798},{"style":1036},[1799],{"type":998,"value":1800},"auto_save ",{"type":993,"tag":1021,"props":1802,"children":1803},{"style":1042},[1804],{"type":998,"value":1045},{"type":993,"tag":1021,"props":1806,"children":1807},{"style":1036},[1808],{"type":998,"value":1741},{"type":993,"tag":1021,"props":1810,"children":1811},{"style":1053},[1812],{"type":998,"value":1813},"'auto_save'",{"type":993,"tag":1021,"props":1815,"children":1816},{"style":1036},[1817],{"type":998,"value":1071},{"type":993,"tag":1021,"props":1819,"children":1820},{"style":1083},[1821],{"type":998,"value":1822},"True",{"type":993,"tag":1021,"props":1824,"children":1825},{"style":1036},[1826],{"type":998,"value":1545},{"type":993,"tag":1021,"props":1828,"children":1829},{"class":1023,"line":72},[1830],{"type":993,"tag":1021,"props":1831,"children":1832},{"emptyLinePlaceholder":13},[1833],{"type":998,"value":1117},{"type":993,"tag":1021,"props":1835,"children":1836},{"class":1023,"line":81},[1837,1841,1845,1850],{"type":993,"tag":1021,"props":1838,"children":1839},{"style":1083},[1840],{"type":998,"value":1133},{"type":993,"tag":1021,"props":1842,"children":1843},{"style":1036},[1844],{"type":998,"value":1138},{"type":993,"tag":1021,"props":1846,"children":1847},{"style":1053},[1848],{"type":998,"value":1849},"\"Language:\"",{"type":993,"tag":1021,"props":1851,"children":1852},{"style":1036},[1853],{"type":998,"value":1854},", language)\n",{"type":993,"tag":1021,"props":1856,"children":1857},{"class":1023,"line":91},[1858,1862,1866,1871],{"type":993,"tag":1021,"props":1859,"children":1860},{"style":1083},[1861],{"type":998,"value":1133},{"type":993,"tag":1021,"props":1863,"children":1864},{"style":1036},[1865],{"type":998,"value":1138},{"type":993,"tag":1021,"props":1867,"children":1868},{"style":1053},[1869],{"type":998,"value":1870},"\"Timeout:\"",{"type":993,"tag":1021,"props":1872,"children":1873},{"style":1036},[1874],{"type":998,"value":1875},", timeout)\n",{"type":993,"tag":1021,"props":1877,"children":1878},{"class":1023,"line":100},[1879,1883,1887,1892],{"type":993,"tag":1021,"props":1880,"children":1881},{"style":1083},[1882],{"type":998,"value":1133},{"type":993,"tag":1021,"props":1884,"children":1885},{"style":1036},[1886],{"type":998,"value":1138},{"type":993,"tag":1021,"props":1888,"children":1889},{"style":1053},[1890],{"type":998,"value":1891},"\"Auto-save:\"",{"type":993,"tag":1021,"props":1893,"children":1894},{"style":1036},[1895],{"type":998,"value":1896},", auto_save)\n",{"type":993,"tag":1187,"props":1898,"children":1900},{"id":1899},"key-existence-checking",[1901],{"type":998,"value":1902},"🚀 Key Existence Checking",{"type":993,"tag":1001,"props":1904,"children":1905},{},[1906],{"type":998,"value":1907},"Verifying key existence before access prevents errors and enables conditional processing based on data availability.",{"type":993,"tag":1007,"props":1909,"children":1910},{},[1911],{"type":993,"tag":1011,"props":1912,"children":1914},{"className":1013,"code":1913,"language":6,"meta":8,"style":8},"product = {'name': 'Laptop', 'price': 999, 'category': 'Electronics'}\n\n# Check before accessing\nif 'discount' in product:\n    print(\"Discount:\", product['discount'])\nelse:\n    print(\"No discount available\")\n\n# Alternative approach\ndiscount = product['discount'] if 'discount' in product else 0\nprint(\"Applied discount:\", discount)\n",[1915],{"type":993,"tag":1017,"props":1916,"children":1917},{"__ignoreMap":8},[1918,1987,1994,2002,2025,2056,2069,2089,2096,2104,2156],{"type":993,"tag":1021,"props":1919,"children":1920},{"class":1023,"line":12},[1921,1926,1930,1934,1938,1942,1947,1951,1956,1960,1965,1969,1974,1978,1983],{"type":993,"tag":1021,"props":1922,"children":1923},{"style":1036},[1924],{"type":998,"value":1925},"product ",{"type":993,"tag":1021,"props":1927,"children":1928},{"style":1042},[1929],{"type":998,"value":1045},{"type":993,"tag":1021,"props":1931,"children":1932},{"style":1036},[1933],{"type":998,"value":1050},{"type":993,"tag":1021,"props":1935,"children":1936},{"style":1053},[1937],{"type":998,"value":1056},{"type":993,"tag":1021,"props":1939,"children":1940},{"style":1036},[1941],{"type":998,"value":1061},{"type":993,"tag":1021,"props":1943,"children":1944},{"style":1053},[1945],{"type":998,"value":1946},"'Laptop'",{"type":993,"tag":1021,"props":1948,"children":1949},{"style":1036},[1950],{"type":998,"value":1071},{"type":993,"tag":1021,"props":1952,"children":1953},{"style":1053},[1954],{"type":998,"value":1955},"'price'",{"type":993,"tag":1021,"props":1957,"children":1958},{"style":1036},[1959],{"type":998,"value":1061},{"type":993,"tag":1021,"props":1961,"children":1962},{"style":1083},[1963],{"type":998,"value":1964},"999",{"type":993,"tag":1021,"props":1966,"children":1967},{"style":1036},[1968],{"type":998,"value":1071},{"type":993,"tag":1021,"props":1970,"children":1971},{"style":1053},[1972],{"type":998,"value":1973},"'category'",{"type":993,"tag":1021,"props":1975,"children":1976},{"style":1036},[1977],{"type":998,"value":1061},{"type":993,"tag":1021,"props":1979,"children":1980},{"style":1053},[1981],{"type":998,"value":1982},"'Electronics'",{"type":993,"tag":1021,"props":1984,"children":1985},{"style":1036},[1986],{"type":998,"value":1109},{"type":993,"tag":1021,"props":1988,"children":1989},{"class":1023,"line":27},[1990],{"type":993,"tag":1021,"props":1991,"children":1992},{"emptyLinePlaceholder":13},[1993],{"type":998,"value":1117},{"type":993,"tag":1021,"props":1995,"children":1996},{"class":1023,"line":36},[1997],{"type":993,"tag":1021,"props":1998,"children":1999},{"style":1027},[2000],{"type":998,"value":2001},"# Check before accessing\n",{"type":993,"tag":1021,"props":2003,"children":2004},{"class":1023,"line":45},[2005,2010,2015,2020],{"type":993,"tag":1021,"props":2006,"children":2007},{"style":1042},[2008],{"type":998,"value":2009},"if",{"type":993,"tag":1021,"props":2011,"children":2012},{"style":1053},[2013],{"type":998,"value":2014}," 'discount'",{"type":993,"tag":1021,"props":2016,"children":2017},{"style":1042},[2018],{"type":998,"value":2019}," in",{"type":993,"tag":1021,"props":2021,"children":2022},{"style":1036},[2023],{"type":998,"value":2024}," product:\n",{"type":993,"tag":1021,"props":2026,"children":2027},{"class":1023,"line":54},[2028,2033,2037,2042,2047,2052],{"type":993,"tag":1021,"props":2029,"children":2030},{"style":1083},[2031],{"type":998,"value":2032},"    print",{"type":993,"tag":1021,"props":2034,"children":2035},{"style":1036},[2036],{"type":998,"value":1138},{"type":993,"tag":1021,"props":2038,"children":2039},{"style":1053},[2040],{"type":998,"value":2041},"\"Discount:\"",{"type":993,"tag":1021,"props":2043,"children":2044},{"style":1036},[2045],{"type":998,"value":2046},", product[",{"type":993,"tag":1021,"props":2048,"children":2049},{"style":1053},[2050],{"type":998,"value":2051},"'discount'",{"type":993,"tag":1021,"props":2053,"children":2054},{"style":1036},[2055],{"type":998,"value":1157},{"type":993,"tag":1021,"props":2057,"children":2058},{"class":1023,"line":63},[2059,2064],{"type":993,"tag":1021,"props":2060,"children":2061},{"style":1042},[2062],{"type":998,"value":2063},"else",{"type":993,"tag":1021,"props":2065,"children":2066},{"style":1036},[2067],{"type":998,"value":2068},":\n",{"type":993,"tag":1021,"props":2070,"children":2071},{"class":1023,"line":72},[2072,2076,2080,2085],{"type":993,"tag":1021,"props":2073,"children":2074},{"style":1083},[2075],{"type":998,"value":2032},{"type":993,"tag":1021,"props":2077,"children":2078},{"style":1036},[2079],{"type":998,"value":1138},{"type":993,"tag":1021,"props":2081,"children":2082},{"style":1053},[2083],{"type":998,"value":2084},"\"No discount available\"",{"type":993,"tag":1021,"props":2086,"children":2087},{"style":1036},[2088],{"type":998,"value":1545},{"type":993,"tag":1021,"props":2090,"children":2091},{"class":1023,"line":81},[2092],{"type":993,"tag":1021,"props":2093,"children":2094},{"emptyLinePlaceholder":13},[2095],{"type":998,"value":1117},{"type":993,"tag":1021,"props":2097,"children":2098},{"class":1023,"line":91},[2099],{"type":993,"tag":1021,"props":2100,"children":2101},{"style":1027},[2102],{"type":998,"value":2103},"# Alternative approach\n",{"type":993,"tag":1021,"props":2105,"children":2106},{"class":1023,"line":100},[2107,2112,2116,2121,2125,2130,2134,2138,2142,2147,2151],{"type":993,"tag":1021,"props":2108,"children":2109},{"style":1036},[2110],{"type":998,"value":2111},"discount ",{"type":993,"tag":1021,"props":2113,"children":2114},{"style":1042},[2115],{"type":998,"value":1045},{"type":993,"tag":1021,"props":2117,"children":2118},{"style":1036},[2119],{"type":998,"value":2120}," product[",{"type":993,"tag":1021,"props":2122,"children":2123},{"style":1053},[2124],{"type":998,"value":2051},{"type":993,"tag":1021,"props":2126,"children":2127},{"style":1036},[2128],{"type":998,"value":2129},"] ",{"type":993,"tag":1021,"props":2131,"children":2132},{"style":1042},[2133],{"type":998,"value":2009},{"type":993,"tag":1021,"props":2135,"children":2136},{"style":1053},[2137],{"type":998,"value":2014},{"type":993,"tag":1021,"props":2139,"children":2140},{"style":1042},[2141],{"type":998,"value":2019},{"type":993,"tag":1021,"props":2143,"children":2144},{"style":1036},[2145],{"type":998,"value":2146}," product ",{"type":993,"tag":1021,"props":2148,"children":2149},{"style":1042},[2150],{"type":998,"value":2063},{"type":993,"tag":1021,"props":2152,"children":2153},{"style":1083},[2154],{"type":998,"value":2155}," 0\n",{"type":993,"tag":1021,"props":2157,"children":2158},{"class":1023,"line":109},[2159,2163,2167,2172],{"type":993,"tag":1021,"props":2160,"children":2161},{"style":1083},[2162],{"type":998,"value":1133},{"type":993,"tag":1021,"props":2164,"children":2165},{"style":1036},[2166],{"type":998,"value":1138},{"type":993,"tag":1021,"props":2168,"children":2169},{"style":1053},[2170],{"type":998,"value":2171},"\"Applied discount:\"",{"type":993,"tag":1021,"props":2173,"children":2174},{"style":1036},[2175],{"type":998,"value":2176},", discount)\n",{"type":993,"tag":1187,"props":2178,"children":2180},{"id":2179},"access-methods-comparison",[2181],{"type":998,"value":2182},"📚 Access Methods Comparison",{"type":993,"tag":2184,"props":2185,"children":2186},"table",{},[2187,2216],{"type":993,"tag":2188,"props":2189,"children":2190},"thead",{},[2191],{"type":993,"tag":2192,"props":2193,"children":2194},"tr",{},[2195,2201,2206,2211],{"type":993,"tag":2196,"props":2197,"children":2198},"th",{},[2199],{"type":998,"value":2200},"Method",{"type":993,"tag":2196,"props":2202,"children":2203},{},[2204],{"type":998,"value":2205},"Missing Key Behavior",{"type":993,"tag":2196,"props":2207,"children":2208},{},[2209],{"type":998,"value":2210},"Performance",{"type":993,"tag":2196,"props":2212,"children":2213},{},[2214],{"type":998,"value":2215},"Use Case",{"type":993,"tag":2217,"props":2218,"children":2219},"tbody",{},[2220,2248,2275,2301],{"type":993,"tag":2192,"props":2221,"children":2222},{},[2223,2233,2238,2243],{"type":993,"tag":2224,"props":2225,"children":2226},"td",{},[2227],{"type":993,"tag":1017,"props":2228,"children":2230},{"className":2229},[],[2231],{"type":998,"value":2232},"dict[key]",{"type":993,"tag":2224,"props":2234,"children":2235},{},[2236],{"type":998,"value":2237},"Raises KeyError",{"type":993,"tag":2224,"props":2239,"children":2240},{},[2241],{"type":998,"value":2242},"Fastest",{"type":993,"tag":2224,"props":2244,"children":2245},{},[2246],{"type":998,"value":2247},"Known existing keys",{"type":993,"tag":2192,"props":2249,"children":2250},{},[2251,2260,2265,2270],{"type":993,"tag":2224,"props":2252,"children":2253},{},[2254],{"type":993,"tag":1017,"props":2255,"children":2257},{"className":2256},[],[2258],{"type":998,"value":2259},"dict.get(key)",{"type":993,"tag":2224,"props":2261,"children":2262},{},[2263],{"type":998,"value":2264},"Returns None",{"type":993,"tag":2224,"props":2266,"children":2267},{},[2268],{"type":998,"value":2269},"Fast",{"type":993,"tag":2224,"props":2271,"children":2272},{},[2273],{"type":998,"value":2274},"Safe access, optional keys",{"type":993,"tag":2192,"props":2276,"children":2277},{},[2278,2287,2292,2296],{"type":993,"tag":2224,"props":2279,"children":2280},{},[2281],{"type":993,"tag":1017,"props":2282,"children":2284},{"className":2283},[],[2285],{"type":998,"value":2286},"dict.get(key, default)",{"type":993,"tag":2224,"props":2288,"children":2289},{},[2290],{"type":998,"value":2291},"Returns default",{"type":993,"tag":2224,"props":2293,"children":2294},{},[2295],{"type":998,"value":2269},{"type":993,"tag":2224,"props":2297,"children":2298},{},[2299],{"type":998,"value":2300},"Safe access with fallback",{"type":993,"tag":2192,"props":2302,"children":2303},{},[2304,2313,2318,2322],{"type":993,"tag":2224,"props":2305,"children":2306},{},[2307],{"type":993,"tag":1017,"props":2308,"children":2310},{"className":2309},[],[2311],{"type":998,"value":2312},"key in dict",{"type":993,"tag":2224,"props":2314,"children":2315},{},[2316],{"type":998,"value":2317},"Returns boolean",{"type":993,"tag":2224,"props":2319,"children":2320},{},[2321],{"type":998,"value":2269},{"type":993,"tag":2224,"props":2323,"children":2324},{},[2325],{"type":998,"value":2326},"Existence checking",{"type":993,"tag":1187,"props":2328,"children":2330},{"id":2329},"multiple-value-access",[2331],{"type":998,"value":2332},"🌟 Multiple Value Access",{"type":993,"tag":1001,"props":2334,"children":2335},{},[2336],{"type":998,"value":2337},"Accessing multiple dictionary values efficiently reduces code repetition and improves readability.",{"type":993,"tag":1431,"props":2339,"children":2341},{"id":2340},"sequential-access",[2342],{"type":998,"value":2343},"Sequential Access",{"type":993,"tag":1001,"props":2345,"children":2346},{},[2347],{"type":998,"value":2348},"Direct access patterns work well for small numbers of known keys with predictable structure.",{"type":993,"tag":1007,"props":2350,"children":2351},{},[2352],{"type":993,"tag":1011,"props":2353,"children":2355},{"className":1013,"code":2354,"language":6,"meta":8,"style":8},"person = {'first_name': 'John', 'last_name': 'Smith', 'age': 30}\n\n# Multiple direct access\nfirst_name = person['first_name']\nlast_name = person['last_name']\nage = person['age']\n\nprint(f\"Full name: {first_name} {last_name}, Age: {age}\")\n",[2356],{"type":993,"tag":1017,"props":2357,"children":2358},{"__ignoreMap":8},[2359,2427,2434,2442,2468,2492,2516,2523],{"type":993,"tag":1021,"props":2360,"children":2361},{"class":1023,"line":12},[2362,2367,2371,2375,2380,2384,2389,2393,2398,2402,2407,2411,2415,2419,2423],{"type":993,"tag":1021,"props":2363,"children":2364},{"style":1036},[2365],{"type":998,"value":2366},"person ",{"type":993,"tag":1021,"props":2368,"children":2369},{"style":1042},[2370],{"type":998,"value":1045},{"type":993,"tag":1021,"props":2372,"children":2373},{"style":1036},[2374],{"type":998,"value":1050},{"type":993,"tag":1021,"props":2376,"children":2377},{"style":1053},[2378],{"type":998,"value":2379},"'first_name'",{"type":993,"tag":1021,"props":2381,"children":2382},{"style":1036},[2383],{"type":998,"value":1061},{"type":993,"tag":1021,"props":2385,"children":2386},{"style":1053},[2387],{"type":998,"value":2388},"'John'",{"type":993,"tag":1021,"props":2390,"children":2391},{"style":1036},[2392],{"type":998,"value":1071},{"type":993,"tag":1021,"props":2394,"children":2395},{"style":1053},[2396],{"type":998,"value":2397},"'last_name'",{"type":993,"tag":1021,"props":2399,"children":2400},{"style":1036},[2401],{"type":998,"value":1061},{"type":993,"tag":1021,"props":2403,"children":2404},{"style":1053},[2405],{"type":998,"value":2406},"'Smith'",{"type":993,"tag":1021,"props":2408,"children":2409},{"style":1036},[2410],{"type":998,"value":1071},{"type":993,"tag":1021,"props":2412,"children":2413},{"style":1053},[2414],{"type":998,"value":1076},{"type":993,"tag":1021,"props":2416,"children":2417},{"style":1036},[2418],{"type":998,"value":1061},{"type":993,"tag":1021,"props":2420,"children":2421},{"style":1083},[2422],{"type":998,"value":1255},{"type":993,"tag":1021,"props":2424,"children":2425},{"style":1036},[2426],{"type":998,"value":1109},{"type":993,"tag":1021,"props":2428,"children":2429},{"class":1023,"line":27},[2430],{"type":993,"tag":1021,"props":2431,"children":2432},{"emptyLinePlaceholder":13},[2433],{"type":998,"value":1117},{"type":993,"tag":1021,"props":2435,"children":2436},{"class":1023,"line":36},[2437],{"type":993,"tag":1021,"props":2438,"children":2439},{"style":1027},[2440],{"type":998,"value":2441},"# Multiple direct access\n",{"type":993,"tag":1021,"props":2443,"children":2444},{"class":1023,"line":45},[2445,2450,2454,2459,2463],{"type":993,"tag":1021,"props":2446,"children":2447},{"style":1036},[2448],{"type":998,"value":2449},"first_name ",{"type":993,"tag":1021,"props":2451,"children":2452},{"style":1042},[2453],{"type":998,"value":1045},{"type":993,"tag":1021,"props":2455,"children":2456},{"style":1036},[2457],{"type":998,"value":2458}," person[",{"type":993,"tag":1021,"props":2460,"children":2461},{"style":1053},[2462],{"type":998,"value":2379},{"type":993,"tag":1021,"props":2464,"children":2465},{"style":1036},[2466],{"type":998,"value":2467},"]\n",{"type":993,"tag":1021,"props":2469,"children":2470},{"class":1023,"line":54},[2471,2476,2480,2484,2488],{"type":993,"tag":1021,"props":2472,"children":2473},{"style":1036},[2474],{"type":998,"value":2475},"last_name ",{"type":993,"tag":1021,"props":2477,"children":2478},{"style":1042},[2479],{"type":998,"value":1045},{"type":993,"tag":1021,"props":2481,"children":2482},{"style":1036},[2483],{"type":998,"value":2458},{"type":993,"tag":1021,"props":2485,"children":2486},{"style":1053},[2487],{"type":998,"value":2397},{"type":993,"tag":1021,"props":2489,"children":2490},{"style":1036},[2491],{"type":998,"value":2467},{"type":993,"tag":1021,"props":2493,"children":2494},{"class":1023,"line":63},[2495,2500,2504,2508,2512],{"type":993,"tag":1021,"props":2496,"children":2497},{"style":1036},[2498],{"type":998,"value":2499},"age ",{"type":993,"tag":1021,"props":2501,"children":2502},{"style":1042},[2503],{"type":998,"value":1045},{"type":993,"tag":1021,"props":2505,"children":2506},{"style":1036},[2507],{"type":998,"value":2458},{"type":993,"tag":1021,"props":2509,"children":2510},{"style":1053},[2511],{"type":998,"value":1076},{"type":993,"tag":1021,"props":2513,"children":2514},{"style":1036},[2515],{"type":998,"value":2467},{"type":993,"tag":1021,"props":2517,"children":2518},{"class":1023,"line":72},[2519],{"type":993,"tag":1021,"props":2520,"children":2521},{"emptyLinePlaceholder":13},[2522],{"type":998,"value":1117},{"type":993,"tag":1021,"props":2524,"children":2525},{"class":1023,"line":81},[2526,2530,2534,2539,2544,2549,2554,2559,2563,2568,2572,2577,2581,2586,2590,2595],{"type":993,"tag":1021,"props":2527,"children":2528},{"style":1083},[2529],{"type":998,"value":1133},{"type":993,"tag":1021,"props":2531,"children":2532},{"style":1036},[2533],{"type":998,"value":1138},{"type":993,"tag":1021,"props":2535,"children":2536},{"style":1042},[2537],{"type":998,"value":2538},"f",{"type":993,"tag":1021,"props":2540,"children":2541},{"style":1053},[2542],{"type":998,"value":2543},"\"Full name: ",{"type":993,"tag":1021,"props":2545,"children":2546},{"style":1083},[2547],{"type":998,"value":2548},"{",{"type":993,"tag":1021,"props":2550,"children":2551},{"style":1036},[2552],{"type":998,"value":2553},"first_name",{"type":993,"tag":1021,"props":2555,"children":2556},{"style":1083},[2557],{"type":998,"value":2558},"}",{"type":993,"tag":1021,"props":2560,"children":2561},{"style":1083},[2562],{"type":998,"value":1050},{"type":993,"tag":1021,"props":2564,"children":2565},{"style":1036},[2566],{"type":998,"value":2567},"last_name",{"type":993,"tag":1021,"props":2569,"children":2570},{"style":1083},[2571],{"type":998,"value":2558},{"type":993,"tag":1021,"props":2573,"children":2574},{"style":1053},[2575],{"type":998,"value":2576},", Age: ",{"type":993,"tag":1021,"props":2578,"children":2579},{"style":1083},[2580],{"type":998,"value":2548},{"type":993,"tag":1021,"props":2582,"children":2583},{"style":1036},[2584],{"type":998,"value":2585},"age",{"type":993,"tag":1021,"props":2587,"children":2588},{"style":1083},[2589],{"type":998,"value":2558},{"type":993,"tag":1021,"props":2591,"children":2592},{"style":1053},[2593],{"type":998,"value":2594},"\"",{"type":993,"tag":1021,"props":2596,"children":2597},{"style":1036},[2598],{"type":998,"value":1545},{"type":993,"tag":1431,"props":2600,"children":2602},{"id":2601},"safe-multiple-access",[2603],{"type":998,"value":2604},"Safe Multiple Access",{"type":993,"tag":1001,"props":2606,"children":2607},{},[2608],{"type":998,"value":2609},"Safe unpacking patterns handle missing keys gracefully while maintaining clean, readable code structure.",{"type":993,"tag":1007,"props":2611,"children":2612},{},[2613],{"type":993,"tag":1011,"props":2614,"children":2616},{"className":1013,"code":2615,"language":6,"meta":8,"style":8},"config = {'host': 'localhost', 'port': 8080}\n\n# Safe multiple access\nhost = config.get('host', 'localhost')\nport = config.get('port', 80)\ndebug = config.get('debug', False)\n\nprint(f\"Server: {host}:{port}, Debug: {debug}\")\n",[2617],{"type":993,"tag":1017,"props":2618,"children":2619},{"__ignoreMap":8},[2620,2672,2679,2687,2720,2753,2787,2794],{"type":993,"tag":1021,"props":2621,"children":2622},{"class":1023,"line":12},[2623,2628,2632,2636,2641,2645,2650,2654,2659,2663,2668],{"type":993,"tag":1021,"props":2624,"children":2625},{"style":1036},[2626],{"type":998,"value":2627},"config ",{"type":993,"tag":1021,"props":2629,"children":2630},{"style":1042},[2631],{"type":998,"value":1045},{"type":993,"tag":1021,"props":2633,"children":2634},{"style":1036},[2635],{"type":998,"value":1050},{"type":993,"tag":1021,"props":2637,"children":2638},{"style":1053},[2639],{"type":998,"value":2640},"'host'",{"type":993,"tag":1021,"props":2642,"children":2643},{"style":1036},[2644],{"type":998,"value":1061},{"type":993,"tag":1021,"props":2646,"children":2647},{"style":1053},[2648],{"type":998,"value":2649},"'localhost'",{"type":993,"tag":1021,"props":2651,"children":2652},{"style":1036},[2653],{"type":998,"value":1071},{"type":993,"tag":1021,"props":2655,"children":2656},{"style":1053},[2657],{"type":998,"value":2658},"'port'",{"type":993,"tag":1021,"props":2660,"children":2661},{"style":1036},[2662],{"type":998,"value":1061},{"type":993,"tag":1021,"props":2664,"children":2665},{"style":1083},[2666],{"type":998,"value":2667},"8080",{"type":993,"tag":1021,"props":2669,"children":2670},{"style":1036},[2671],{"type":998,"value":1109},{"type":993,"tag":1021,"props":2673,"children":2674},{"class":1023,"line":27},[2675],{"type":993,"tag":1021,"props":2676,"children":2677},{"emptyLinePlaceholder":13},[2678],{"type":998,"value":1117},{"type":993,"tag":1021,"props":2680,"children":2681},{"class":1023,"line":36},[2682],{"type":993,"tag":1021,"props":2683,"children":2684},{"style":1027},[2685],{"type":998,"value":2686},"# Safe multiple access\n",{"type":993,"tag":1021,"props":2688,"children":2689},{"class":1023,"line":45},[2690,2695,2699,2704,2708,2712,2716],{"type":993,"tag":1021,"props":2691,"children":2692},{"style":1036},[2693],{"type":998,"value":2694},"host ",{"type":993,"tag":1021,"props":2696,"children":2697},{"style":1042},[2698],{"type":998,"value":1045},{"type":993,"tag":1021,"props":2700,"children":2701},{"style":1036},[2702],{"type":998,"value":2703}," config.get(",{"type":993,"tag":1021,"props":2705,"children":2706},{"style":1053},[2707],{"type":998,"value":2640},{"type":993,"tag":1021,"props":2709,"children":2710},{"style":1036},[2711],{"type":998,"value":1071},{"type":993,"tag":1021,"props":2713,"children":2714},{"style":1053},[2715],{"type":998,"value":2649},{"type":993,"tag":1021,"props":2717,"children":2718},{"style":1036},[2719],{"type":998,"value":1545},{"type":993,"tag":1021,"props":2721,"children":2722},{"class":1023,"line":54},[2723,2728,2732,2736,2740,2744,2749],{"type":993,"tag":1021,"props":2724,"children":2725},{"style":1036},[2726],{"type":998,"value":2727},"port ",{"type":993,"tag":1021,"props":2729,"children":2730},{"style":1042},[2731],{"type":998,"value":1045},{"type":993,"tag":1021,"props":2733,"children":2734},{"style":1036},[2735],{"type":998,"value":2703},{"type":993,"tag":1021,"props":2737,"children":2738},{"style":1053},[2739],{"type":998,"value":2658},{"type":993,"tag":1021,"props":2741,"children":2742},{"style":1036},[2743],{"type":998,"value":1071},{"type":993,"tag":1021,"props":2745,"children":2746},{"style":1083},[2747],{"type":998,"value":2748},"80",{"type":993,"tag":1021,"props":2750,"children":2751},{"style":1036},[2752],{"type":998,"value":1545},{"type":993,"tag":1021,"props":2754,"children":2755},{"class":1023,"line":63},[2756,2761,2765,2769,2774,2778,2783],{"type":993,"tag":1021,"props":2757,"children":2758},{"style":1036},[2759],{"type":998,"value":2760},"debug ",{"type":993,"tag":1021,"props":2762,"children":2763},{"style":1042},[2764],{"type":998,"value":1045},{"type":993,"tag":1021,"props":2766,"children":2767},{"style":1036},[2768],{"type":998,"value":2703},{"type":993,"tag":1021,"props":2770,"children":2771},{"style":1053},[2772],{"type":998,"value":2773},"'debug'",{"type":993,"tag":1021,"props":2775,"children":2776},{"style":1036},[2777],{"type":998,"value":1071},{"type":993,"tag":1021,"props":2779,"children":2780},{"style":1083},[2781],{"type":998,"value":2782},"False",{"type":993,"tag":1021,"props":2784,"children":2785},{"style":1036},[2786],{"type":998,"value":1545},{"type":993,"tag":1021,"props":2788,"children":2789},{"class":1023,"line":72},[2790],{"type":993,"tag":1021,"props":2791,"children":2792},{"emptyLinePlaceholder":13},[2793],{"type":998,"value":1117},{"type":993,"tag":1021,"props":2795,"children":2796},{"class":1023,"line":81},[2797,2801,2805,2809,2814,2818,2823,2827,2832,2836,2841,2845,2850,2854,2859,2863,2867],{"type":993,"tag":1021,"props":2798,"children":2799},{"style":1083},[2800],{"type":998,"value":1133},{"type":993,"tag":1021,"props":2802,"children":2803},{"style":1036},[2804],{"type":998,"value":1138},{"type":993,"tag":1021,"props":2806,"children":2807},{"style":1042},[2808],{"type":998,"value":2538},{"type":993,"tag":1021,"props":2810,"children":2811},{"style":1053},[2812],{"type":998,"value":2813},"\"Server: ",{"type":993,"tag":1021,"props":2815,"children":2816},{"style":1083},[2817],{"type":998,"value":2548},{"type":993,"tag":1021,"props":2819,"children":2820},{"style":1036},[2821],{"type":998,"value":2822},"host",{"type":993,"tag":1021,"props":2824,"children":2825},{"style":1083},[2826],{"type":998,"value":2558},{"type":993,"tag":1021,"props":2828,"children":2829},{"style":1053},[2830],{"type":998,"value":2831},":",{"type":993,"tag":1021,"props":2833,"children":2834},{"style":1083},[2835],{"type":998,"value":2548},{"type":993,"tag":1021,"props":2837,"children":2838},{"style":1036},[2839],{"type":998,"value":2840},"port",{"type":993,"tag":1021,"props":2842,"children":2843},{"style":1083},[2844],{"type":998,"value":2558},{"type":993,"tag":1021,"props":2846,"children":2847},{"style":1053},[2848],{"type":998,"value":2849},", Debug: ",{"type":993,"tag":1021,"props":2851,"children":2852},{"style":1083},[2853],{"type":998,"value":2548},{"type":993,"tag":1021,"props":2855,"children":2856},{"style":1036},[2857],{"type":998,"value":2858},"debug",{"type":993,"tag":1021,"props":2860,"children":2861},{"style":1083},[2862],{"type":998,"value":2558},{"type":993,"tag":1021,"props":2864,"children":2865},{"style":1053},[2866],{"type":998,"value":2594},{"type":993,"tag":1021,"props":2868,"children":2869},{"style":1036},[2870],{"type":998,"value":1545},{"type":993,"tag":1187,"props":2872,"children":2874},{"id":2873},"nested-dictionary-access",[2875],{"type":998,"value":2876},"💡 Nested Dictionary Access",{"type":993,"tag":1001,"props":2878,"children":2879},{},[2880],{"type":998,"value":2881},"Complex data structures require careful navigation through multiple dictionary levels with appropriate error handling.",{"type":993,"tag":1431,"props":2883,"children":2885},{"id":2884},"safe-nested-access",[2886],{"type":998,"value":2887},"Safe Nested Access",{"type":993,"tag":1001,"props":2889,"children":2890},{},[2891],{"type":998,"value":2892},"Multi-level access with get() methods provides robust navigation through uncertain data structures.",{"type":993,"tag":1007,"props":2894,"children":2895},{},[2896],{"type":993,"tag":1011,"props":2897,"children":2899},{"className":1013,"code":2898,"language":6,"meta":8,"style":8},"user = {\n    'profile': {\n        'personal': {'name': 'Alice', 'age': 25},\n        'contact': {'email': 'alice@example.com'}\n    }\n}\n\n# Safe nested access\nname = user.get('profile', {}).get('personal', {}).get('name', 'Unknown')\nphone = user.get('profile', {}).get('contact', {}).get('phone', 'Not provided')\n\nprint(\"Name:\", name)\nprint(\"Phone:\", phone)\n",[2900],{"type":993,"tag":1017,"props":2901,"children":2902},{"__ignoreMap":8},[2903,2920,2933,2979,3008,3016,3023,3030,3038,3091,3140,3147,3168],{"type":993,"tag":1021,"props":2904,"children":2905},{"class":1023,"line":12},[2906,2911,2915],{"type":993,"tag":1021,"props":2907,"children":2908},{"style":1036},[2909],{"type":998,"value":2910},"user ",{"type":993,"tag":1021,"props":2912,"children":2913},{"style":1042},[2914],{"type":998,"value":1045},{"type":993,"tag":1021,"props":2916,"children":2917},{"style":1036},[2918],{"type":998,"value":2919}," {\n",{"type":993,"tag":1021,"props":2921,"children":2922},{"class":1023,"line":27},[2923,2928],{"type":993,"tag":1021,"props":2924,"children":2925},{"style":1053},[2926],{"type":998,"value":2927},"    'profile'",{"type":993,"tag":1021,"props":2929,"children":2930},{"style":1036},[2931],{"type":998,"value":2932},": {\n",{"type":993,"tag":1021,"props":2934,"children":2935},{"class":1023,"line":36},[2936,2941,2946,2950,2954,2958,2962,2966,2970,2974],{"type":993,"tag":1021,"props":2937,"children":2938},{"style":1053},[2939],{"type":998,"value":2940},"        'personal'",{"type":993,"tag":1021,"props":2942,"children":2943},{"style":1036},[2944],{"type":998,"value":2945},": {",{"type":993,"tag":1021,"props":2947,"children":2948},{"style":1053},[2949],{"type":998,"value":1056},{"type":993,"tag":1021,"props":2951,"children":2952},{"style":1036},[2953],{"type":998,"value":1061},{"type":993,"tag":1021,"props":2955,"children":2956},{"style":1053},[2957],{"type":998,"value":1066},{"type":993,"tag":1021,"props":2959,"children":2960},{"style":1036},[2961],{"type":998,"value":1071},{"type":993,"tag":1021,"props":2963,"children":2964},{"style":1053},[2965],{"type":998,"value":1076},{"type":993,"tag":1021,"props":2967,"children":2968},{"style":1036},[2969],{"type":998,"value":1061},{"type":993,"tag":1021,"props":2971,"children":2972},{"style":1083},[2973],{"type":998,"value":1273},{"type":993,"tag":1021,"props":2975,"children":2976},{"style":1036},[2977],{"type":998,"value":2978},"},\n",{"type":993,"tag":1021,"props":2980,"children":2981},{"class":1023,"line":45},[2982,2987,2991,2995,2999,3004],{"type":993,"tag":1021,"props":2983,"children":2984},{"style":1053},[2985],{"type":998,"value":2986},"        'contact'",{"type":993,"tag":1021,"props":2988,"children":2989},{"style":1036},[2990],{"type":998,"value":2945},{"type":993,"tag":1021,"props":2992,"children":2993},{"style":1053},[2994],{"type":998,"value":1490},{"type":993,"tag":1021,"props":2996,"children":2997},{"style":1036},[2998],{"type":998,"value":1061},{"type":993,"tag":1021,"props":3000,"children":3001},{"style":1053},[3002],{"type":998,"value":3003},"'alice@example.com'",{"type":993,"tag":1021,"props":3005,"children":3006},{"style":1036},[3007],{"type":998,"value":1109},{"type":993,"tag":1021,"props":3009,"children":3010},{"class":1023,"line":54},[3011],{"type":993,"tag":1021,"props":3012,"children":3013},{"style":1036},[3014],{"type":998,"value":3015},"    }\n",{"type":993,"tag":1021,"props":3017,"children":3018},{"class":1023,"line":63},[3019],{"type":993,"tag":1021,"props":3020,"children":3021},{"style":1036},[3022],{"type":998,"value":1109},{"type":993,"tag":1021,"props":3024,"children":3025},{"class":1023,"line":72},[3026],{"type":993,"tag":1021,"props":3027,"children":3028},{"emptyLinePlaceholder":13},[3029],{"type":998,"value":1117},{"type":993,"tag":1021,"props":3031,"children":3032},{"class":1023,"line":81},[3033],{"type":993,"tag":1021,"props":3034,"children":3035},{"style":1027},[3036],{"type":998,"value":3037},"# Safe nested access\n",{"type":993,"tag":1021,"props":3039,"children":3040},{"class":1023,"line":91},[3041,3046,3050,3055,3060,3065,3070,3074,3078,3082,3087],{"type":993,"tag":1021,"props":3042,"children":3043},{"style":1036},[3044],{"type":998,"value":3045},"name ",{"type":993,"tag":1021,"props":3047,"children":3048},{"style":1042},[3049],{"type":998,"value":1045},{"type":993,"tag":1021,"props":3051,"children":3052},{"style":1036},[3053],{"type":998,"value":3054}," user.get(",{"type":993,"tag":1021,"props":3056,"children":3057},{"style":1053},[3058],{"type":998,"value":3059},"'profile'",{"type":993,"tag":1021,"props":3061,"children":3062},{"style":1036},[3063],{"type":998,"value":3064},", {}).get(",{"type":993,"tag":1021,"props":3066,"children":3067},{"style":1053},[3068],{"type":998,"value":3069},"'personal'",{"type":993,"tag":1021,"props":3071,"children":3072},{"style":1036},[3073],{"type":998,"value":3064},{"type":993,"tag":1021,"props":3075,"children":3076},{"style":1053},[3077],{"type":998,"value":1056},{"type":993,"tag":1021,"props":3079,"children":3080},{"style":1036},[3081],{"type":998,"value":1071},{"type":993,"tag":1021,"props":3083,"children":3084},{"style":1053},[3085],{"type":998,"value":3086},"'Unknown'",{"type":993,"tag":1021,"props":3088,"children":3089},{"style":1036},[3090],{"type":998,"value":1545},{"type":993,"tag":1021,"props":3092,"children":3093},{"class":1023,"line":100},[3094,3098,3102,3106,3110,3114,3119,3123,3127,3131,3136],{"type":993,"tag":1021,"props":3095,"children":3096},{"style":1036},[3097],{"type":998,"value":1526},{"type":993,"tag":1021,"props":3099,"children":3100},{"style":1042},[3101],{"type":998,"value":1045},{"type":993,"tag":1021,"props":3103,"children":3104},{"style":1036},[3105],{"type":998,"value":3054},{"type":993,"tag":1021,"props":3107,"children":3108},{"style":1053},[3109],{"type":998,"value":3059},{"type":993,"tag":1021,"props":3111,"children":3112},{"style":1036},[3113],{"type":998,"value":3064},{"type":993,"tag":1021,"props":3115,"children":3116},{"style":1053},[3117],{"type":998,"value":3118},"'contact'",{"type":993,"tag":1021,"props":3120,"children":3121},{"style":1036},[3122],{"type":998,"value":3064},{"type":993,"tag":1021,"props":3124,"children":3125},{"style":1053},[3126],{"type":998,"value":1540},{"type":993,"tag":1021,"props":3128,"children":3129},{"style":1036},[3130],{"type":998,"value":1071},{"type":993,"tag":1021,"props":3132,"children":3133},{"style":1053},[3134],{"type":998,"value":3135},"'Not provided'",{"type":993,"tag":1021,"props":3137,"children":3138},{"style":1036},[3139],{"type":998,"value":1545},{"type":993,"tag":1021,"props":3141,"children":3142},{"class":1023,"line":109},[3143],{"type":993,"tag":1021,"props":3144,"children":3145},{"emptyLinePlaceholder":13},[3146],{"type":998,"value":1117},{"type":993,"tag":1021,"props":3148,"children":3149},{"class":1023,"line":118},[3150,3154,3158,3163],{"type":993,"tag":1021,"props":3151,"children":3152},{"style":1083},[3153],{"type":998,"value":1133},{"type":993,"tag":1021,"props":3155,"children":3156},{"style":1036},[3157],{"type":998,"value":1138},{"type":993,"tag":1021,"props":3159,"children":3160},{"style":1053},[3161],{"type":998,"value":3162},"\"Name:\"",{"type":993,"tag":1021,"props":3164,"children":3165},{"style":1036},[3166],{"type":998,"value":3167},", name)\n",{"type":993,"tag":1021,"props":3169,"children":3170},{"class":1023,"line":127},[3171,3175,3179,3183],{"type":993,"tag":1021,"props":3172,"children":3173},{"style":1083},[3174],{"type":998,"value":1133},{"type":993,"tag":1021,"props":3176,"children":3177},{"style":1036},[3178],{"type":998,"value":1138},{"type":993,"tag":1021,"props":3180,"children":3181},{"style":1053},[3182],{"type":998,"value":1561},{"type":993,"tag":1021,"props":3184,"children":3185},{"style":1036},[3186],{"type":998,"value":3187},", phone)\n",{"type":993,"tag":1431,"props":3189,"children":3191},{"id":3190},"nested-existence-checking",[3192],{"type":998,"value":3193},"Nested Existence Checking",{"type":993,"tag":1001,"props":3195,"children":3196},{},[3197],{"type":998,"value":3198},"Complex existence validation ensures data integrity before attempting multi-level dictionary navigation.",{"type":993,"tag":1007,"props":3200,"children":3201},{},[3202],{"type":993,"tag":1011,"props":3203,"children":3205},{"className":1013,"code":3204,"language":6,"meta":8,"style":8},"data = {'users': {'admin': {'permissions': ['read', 'write']}}}\n\n# Check nested existence\nif 'users' in data and 'admin' in data['users']:\n    admin_perms = data['users']['admin'].get('permissions', [])\n    print(\"Admin permissions:\", admin_perms)\nelse:\n    print(\"Admin user not found\")\n",[3206],{"type":993,"tag":1017,"props":3207,"children":3208},{"__ignoreMap":8},[3209,3272,3279,3287,3336,3379,3400,3411],{"type":993,"tag":1021,"props":3210,"children":3211},{"class":1023,"line":12},[3212,3217,3221,3225,3230,3234,3239,3243,3248,3253,3258,3262,3267],{"type":993,"tag":1021,"props":3213,"children":3214},{"style":1036},[3215],{"type":998,"value":3216},"data ",{"type":993,"tag":1021,"props":3218,"children":3219},{"style":1042},[3220],{"type":998,"value":1045},{"type":993,"tag":1021,"props":3222,"children":3223},{"style":1036},[3224],{"type":998,"value":1050},{"type":993,"tag":1021,"props":3226,"children":3227},{"style":1053},[3228],{"type":998,"value":3229},"'users'",{"type":993,"tag":1021,"props":3231,"children":3232},{"style":1036},[3233],{"type":998,"value":2945},{"type":993,"tag":1021,"props":3235,"children":3236},{"style":1053},[3237],{"type":998,"value":3238},"'admin'",{"type":993,"tag":1021,"props":3240,"children":3241},{"style":1036},[3242],{"type":998,"value":2945},{"type":993,"tag":1021,"props":3244,"children":3245},{"style":1053},[3246],{"type":998,"value":3247},"'permissions'",{"type":993,"tag":1021,"props":3249,"children":3250},{"style":1036},[3251],{"type":998,"value":3252},": [",{"type":993,"tag":1021,"props":3254,"children":3255},{"style":1053},[3256],{"type":998,"value":3257},"'read'",{"type":993,"tag":1021,"props":3259,"children":3260},{"style":1036},[3261],{"type":998,"value":1071},{"type":993,"tag":1021,"props":3263,"children":3264},{"style":1053},[3265],{"type":998,"value":3266},"'write'",{"type":993,"tag":1021,"props":3268,"children":3269},{"style":1036},[3270],{"type":998,"value":3271},"]}}}\n",{"type":993,"tag":1021,"props":3273,"children":3274},{"class":1023,"line":27},[3275],{"type":993,"tag":1021,"props":3276,"children":3277},{"emptyLinePlaceholder":13},[3278],{"type":998,"value":1117},{"type":993,"tag":1021,"props":3280,"children":3281},{"class":1023,"line":36},[3282],{"type":993,"tag":1021,"props":3283,"children":3284},{"style":1027},[3285],{"type":998,"value":3286},"# Check nested existence\n",{"type":993,"tag":1021,"props":3288,"children":3289},{"class":1023,"line":45},[3290,3294,3299,3303,3308,3313,3318,3322,3327,3331],{"type":993,"tag":1021,"props":3291,"children":3292},{"style":1042},[3293],{"type":998,"value":2009},{"type":993,"tag":1021,"props":3295,"children":3296},{"style":1053},[3297],{"type":998,"value":3298}," 'users'",{"type":993,"tag":1021,"props":3300,"children":3301},{"style":1042},[3302],{"type":998,"value":2019},{"type":993,"tag":1021,"props":3304,"children":3305},{"style":1036},[3306],{"type":998,"value":3307}," data ",{"type":993,"tag":1021,"props":3309,"children":3310},{"style":1042},[3311],{"type":998,"value":3312},"and",{"type":993,"tag":1021,"props":3314,"children":3315},{"style":1053},[3316],{"type":998,"value":3317}," 'admin'",{"type":993,"tag":1021,"props":3319,"children":3320},{"style":1042},[3321],{"type":998,"value":2019},{"type":993,"tag":1021,"props":3323,"children":3324},{"style":1036},[3325],{"type":998,"value":3326}," data[",{"type":993,"tag":1021,"props":3328,"children":3329},{"style":1053},[3330],{"type":998,"value":3229},{"type":993,"tag":1021,"props":3332,"children":3333},{"style":1036},[3334],{"type":998,"value":3335},"]:\n",{"type":993,"tag":1021,"props":3337,"children":3338},{"class":1023,"line":54},[3339,3344,3348,3352,3356,3361,3365,3370,3374],{"type":993,"tag":1021,"props":3340,"children":3341},{"style":1036},[3342],{"type":998,"value":3343},"    admin_perms ",{"type":993,"tag":1021,"props":3345,"children":3346},{"style":1042},[3347],{"type":998,"value":1045},{"type":993,"tag":1021,"props":3349,"children":3350},{"style":1036},[3351],{"type":998,"value":3326},{"type":993,"tag":1021,"props":3353,"children":3354},{"style":1053},[3355],{"type":998,"value":3229},{"type":993,"tag":1021,"props":3357,"children":3358},{"style":1036},[3359],{"type":998,"value":3360},"][",{"type":993,"tag":1021,"props":3362,"children":3363},{"style":1053},[3364],{"type":998,"value":3238},{"type":993,"tag":1021,"props":3366,"children":3367},{"style":1036},[3368],{"type":998,"value":3369},"].get(",{"type":993,"tag":1021,"props":3371,"children":3372},{"style":1053},[3373],{"type":998,"value":3247},{"type":993,"tag":1021,"props":3375,"children":3376},{"style":1036},[3377],{"type":998,"value":3378},", [])\n",{"type":993,"tag":1021,"props":3380,"children":3381},{"class":1023,"line":63},[3382,3386,3390,3395],{"type":993,"tag":1021,"props":3383,"children":3384},{"style":1083},[3385],{"type":998,"value":2032},{"type":993,"tag":1021,"props":3387,"children":3388},{"style":1036},[3389],{"type":998,"value":1138},{"type":993,"tag":1021,"props":3391,"children":3392},{"style":1053},[3393],{"type":998,"value":3394},"\"Admin permissions:\"",{"type":993,"tag":1021,"props":3396,"children":3397},{"style":1036},[3398],{"type":998,"value":3399},", admin_perms)\n",{"type":993,"tag":1021,"props":3401,"children":3402},{"class":1023,"line":72},[3403,3407],{"type":993,"tag":1021,"props":3404,"children":3405},{"style":1042},[3406],{"type":998,"value":2063},{"type":993,"tag":1021,"props":3408,"children":3409},{"style":1036},[3410],{"type":998,"value":2068},{"type":993,"tag":1021,"props":3412,"children":3413},{"class":1023,"line":81},[3414,3418,3422,3427],{"type":993,"tag":1021,"props":3415,"children":3416},{"style":1083},[3417],{"type":998,"value":2032},{"type":993,"tag":1021,"props":3419,"children":3420},{"style":1036},[3421],{"type":998,"value":1138},{"type":993,"tag":1021,"props":3423,"children":3424},{"style":1053},[3425],{"type":998,"value":3426},"\"Admin user not found\"",{"type":993,"tag":1021,"props":3428,"children":3429},{"style":1036},[3430],{"type":998,"value":1545},{"type":993,"tag":1187,"props":3432,"children":3434},{"id":3433},"dictionary-value-iteration",[3435],{"type":998,"value":3436},"🔄 Dictionary Value Iteration",{"type":993,"tag":1001,"props":3438,"children":3439},{},[3440],{"type":998,"value":3441},"Iterating through dictionary values enables bulk processing and analysis operations on stored data.",{"type":993,"tag":1431,"props":3443,"children":3445},{"id":3444},"values-only",[3446],{"type":998,"value":3447},"Values Only",{"type":993,"tag":1001,"props":3449,"children":3450},{},[3451],{"type":998,"value":3452},"Direct value iteration focuses on data content without concern for key information.",{"type":993,"tag":1007,"props":3454,"children":3455},{},[3456],{"type":993,"tag":1011,"props":3457,"children":3459},{"className":1013,"code":3458,"language":6,"meta":8,"style":8},"scores = {'math': 85, 'science': 92, 'english': 78, 'history': 89}\n\n# Iterate through values\ntotal_score = 0\nfor score in scores.values():\n    total_score += score\n\naverage = total_score / len(scores)\nprint(f\"Average score: {average}\")\n",[3460],{"type":993,"tag":1017,"props":3461,"children":3462},{"__ignoreMap":8},[3463,3551,3558,3566,3582,3605,3623,3630,3662],{"type":993,"tag":1021,"props":3464,"children":3465},{"class":1023,"line":12},[3466,3471,3475,3479,3484,3488,3493,3497,3502,3506,3511,3515,3520,3524,3529,3533,3538,3542,3547],{"type":993,"tag":1021,"props":3467,"children":3468},{"style":1036},[3469],{"type":998,"value":3470},"scores ",{"type":993,"tag":1021,"props":3472,"children":3473},{"style":1042},[3474],{"type":998,"value":1045},{"type":993,"tag":1021,"props":3476,"children":3477},{"style":1036},[3478],{"type":998,"value":1050},{"type":993,"tag":1021,"props":3480,"children":3481},{"style":1053},[3482],{"type":998,"value":3483},"'math'",{"type":993,"tag":1021,"props":3485,"children":3486},{"style":1036},[3487],{"type":998,"value":1061},{"type":993,"tag":1021,"props":3489,"children":3490},{"style":1083},[3491],{"type":998,"value":3492},"85",{"type":993,"tag":1021,"props":3494,"children":3495},{"style":1036},[3496],{"type":998,"value":1071},{"type":993,"tag":1021,"props":3498,"children":3499},{"style":1053},[3500],{"type":998,"value":3501},"'science'",{"type":993,"tag":1021,"props":3503,"children":3504},{"style":1036},[3505],{"type":998,"value":1061},{"type":993,"tag":1021,"props":3507,"children":3508},{"style":1083},[3509],{"type":998,"value":3510},"92",{"type":993,"tag":1021,"props":3512,"children":3513},{"style":1036},[3514],{"type":998,"value":1071},{"type":993,"tag":1021,"props":3516,"children":3517},{"style":1053},[3518],{"type":998,"value":3519},"'english'",{"type":993,"tag":1021,"props":3521,"children":3522},{"style":1036},[3523],{"type":998,"value":1061},{"type":993,"tag":1021,"props":3525,"children":3526},{"style":1083},[3527],{"type":998,"value":3528},"78",{"type":993,"tag":1021,"props":3530,"children":3531},{"style":1036},[3532],{"type":998,"value":1071},{"type":993,"tag":1021,"props":3534,"children":3535},{"style":1053},[3536],{"type":998,"value":3537},"'history'",{"type":993,"tag":1021,"props":3539,"children":3540},{"style":1036},[3541],{"type":998,"value":1061},{"type":993,"tag":1021,"props":3543,"children":3544},{"style":1083},[3545],{"type":998,"value":3546},"89",{"type":993,"tag":1021,"props":3548,"children":3549},{"style":1036},[3550],{"type":998,"value":1109},{"type":993,"tag":1021,"props":3552,"children":3553},{"class":1023,"line":27},[3554],{"type":993,"tag":1021,"props":3555,"children":3556},{"emptyLinePlaceholder":13},[3557],{"type":998,"value":1117},{"type":993,"tag":1021,"props":3559,"children":3560},{"class":1023,"line":36},[3561],{"type":993,"tag":1021,"props":3562,"children":3563},{"style":1027},[3564],{"type":998,"value":3565},"# Iterate through values\n",{"type":993,"tag":1021,"props":3567,"children":3568},{"class":1023,"line":45},[3569,3574,3578],{"type":993,"tag":1021,"props":3570,"children":3571},{"style":1036},[3572],{"type":998,"value":3573},"total_score ",{"type":993,"tag":1021,"props":3575,"children":3576},{"style":1042},[3577],{"type":998,"value":1045},{"type":993,"tag":1021,"props":3579,"children":3580},{"style":1083},[3581],{"type":998,"value":2155},{"type":993,"tag":1021,"props":3583,"children":3584},{"class":1023,"line":54},[3585,3590,3595,3600],{"type":993,"tag":1021,"props":3586,"children":3587},{"style":1042},[3588],{"type":998,"value":3589},"for",{"type":993,"tag":1021,"props":3591,"children":3592},{"style":1036},[3593],{"type":998,"value":3594}," score ",{"type":993,"tag":1021,"props":3596,"children":3597},{"style":1042},[3598],{"type":998,"value":3599},"in",{"type":993,"tag":1021,"props":3601,"children":3602},{"style":1036},[3603],{"type":998,"value":3604}," scores.values():\n",{"type":993,"tag":1021,"props":3606,"children":3607},{"class":1023,"line":63},[3608,3613,3618],{"type":993,"tag":1021,"props":3609,"children":3610},{"style":1036},[3611],{"type":998,"value":3612},"    total_score ",{"type":993,"tag":1021,"props":3614,"children":3615},{"style":1042},[3616],{"type":998,"value":3617},"+=",{"type":993,"tag":1021,"props":3619,"children":3620},{"style":1036},[3621],{"type":998,"value":3622}," score\n",{"type":993,"tag":1021,"props":3624,"children":3625},{"class":1023,"line":72},[3626],{"type":993,"tag":1021,"props":3627,"children":3628},{"emptyLinePlaceholder":13},[3629],{"type":998,"value":1117},{"type":993,"tag":1021,"props":3631,"children":3632},{"class":1023,"line":81},[3633,3638,3642,3647,3652,3657],{"type":993,"tag":1021,"props":3634,"children":3635},{"style":1036},[3636],{"type":998,"value":3637},"average ",{"type":993,"tag":1021,"props":3639,"children":3640},{"style":1042},[3641],{"type":998,"value":1045},{"type":993,"tag":1021,"props":3643,"children":3644},{"style":1036},[3645],{"type":998,"value":3646}," total_score ",{"type":993,"tag":1021,"props":3648,"children":3649},{"style":1042},[3650],{"type":998,"value":3651},"/",{"type":993,"tag":1021,"props":3653,"children":3654},{"style":1083},[3655],{"type":998,"value":3656}," len",{"type":993,"tag":1021,"props":3658,"children":3659},{"style":1036},[3660],{"type":998,"value":3661},"(scores)\n",{"type":993,"tag":1021,"props":3663,"children":3664},{"class":1023,"line":91},[3665,3669,3673,3677,3682,3686,3691,3695,3699],{"type":993,"tag":1021,"props":3666,"children":3667},{"style":1083},[3668],{"type":998,"value":1133},{"type":993,"tag":1021,"props":3670,"children":3671},{"style":1036},[3672],{"type":998,"value":1138},{"type":993,"tag":1021,"props":3674,"children":3675},{"style":1042},[3676],{"type":998,"value":2538},{"type":993,"tag":1021,"props":3678,"children":3679},{"style":1053},[3680],{"type":998,"value":3681},"\"Average score: ",{"type":993,"tag":1021,"props":3683,"children":3684},{"style":1083},[3685],{"type":998,"value":2548},{"type":993,"tag":1021,"props":3687,"children":3688},{"style":1036},[3689],{"type":998,"value":3690},"average",{"type":993,"tag":1021,"props":3692,"children":3693},{"style":1083},[3694],{"type":998,"value":2558},{"type":993,"tag":1021,"props":3696,"children":3697},{"style":1053},[3698],{"type":998,"value":2594},{"type":993,"tag":1021,"props":3700,"children":3701},{"style":1036},[3702],{"type":998,"value":1545},{"type":993,"tag":1431,"props":3704,"children":3706},{"id":3705},"key-value-pairs",[3707],{"type":998,"value":3708},"Key-Value Pairs",{"type":993,"tag":1001,"props":3710,"children":3711},{},[3712],{"type":998,"value":3713},"Combined iteration provides access to both keys and values for comprehensive data processing.",{"type":993,"tag":1007,"props":3715,"children":3716},{},[3717],{"type":993,"tag":1011,"props":3718,"children":3720},{"className":1013,"code":3719,"language":6,"meta":8,"style":8},"grades = {'Alice': 'A', 'Bob': 'B', 'Charlie': 'A', 'Diana': 'C'}\n\n# Process key-value pairs\nfor student, grade in grades.items():\n    if grade == 'A':\n        print(f\"{student} earned an A!\")\n",[3721],{"type":993,"tag":1017,"props":3722,"children":3723},{"__ignoreMap":8},[3724,3809,3816,3824,3845,3872],{"type":993,"tag":1021,"props":3725,"children":3726},{"class":1023,"line":12},[3727,3732,3736,3740,3744,3748,3752,3756,3761,3765,3770,3774,3779,3783,3787,3791,3796,3800,3805],{"type":993,"tag":1021,"props":3728,"children":3729},{"style":1036},[3730],{"type":998,"value":3731},"grades ",{"type":993,"tag":1021,"props":3733,"children":3734},{"style":1042},[3735],{"type":998,"value":1045},{"type":993,"tag":1021,"props":3737,"children":3738},{"style":1036},[3739],{"type":998,"value":1050},{"type":993,"tag":1021,"props":3741,"children":3742},{"style":1053},[3743],{"type":998,"value":1066},{"type":993,"tag":1021,"props":3745,"children":3746},{"style":1036},[3747],{"type":998,"value":1061},{"type":993,"tag":1021,"props":3749,"children":3750},{"style":1053},[3751],{"type":998,"value":1104},{"type":993,"tag":1021,"props":3753,"children":3754},{"style":1036},[3755],{"type":998,"value":1071},{"type":993,"tag":1021,"props":3757,"children":3758},{"style":1053},[3759],{"type":998,"value":3760},"'Bob'",{"type":993,"tag":1021,"props":3762,"children":3763},{"style":1036},[3764],{"type":998,"value":1061},{"type":993,"tag":1021,"props":3766,"children":3767},{"style":1053},[3768],{"type":998,"value":3769},"'B'",{"type":993,"tag":1021,"props":3771,"children":3772},{"style":1036},[3773],{"type":998,"value":1071},{"type":993,"tag":1021,"props":3775,"children":3776},{"style":1053},[3777],{"type":998,"value":3778},"'Charlie'",{"type":993,"tag":1021,"props":3780,"children":3781},{"style":1036},[3782],{"type":998,"value":1061},{"type":993,"tag":1021,"props":3784,"children":3785},{"style":1053},[3786],{"type":998,"value":1104},{"type":993,"tag":1021,"props":3788,"children":3789},{"style":1036},[3790],{"type":998,"value":1071},{"type":993,"tag":1021,"props":3792,"children":3793},{"style":1053},[3794],{"type":998,"value":3795},"'Diana'",{"type":993,"tag":1021,"props":3797,"children":3798},{"style":1036},[3799],{"type":998,"value":1061},{"type":993,"tag":1021,"props":3801,"children":3802},{"style":1053},[3803],{"type":998,"value":3804},"'C'",{"type":993,"tag":1021,"props":3806,"children":3807},{"style":1036},[3808],{"type":998,"value":1109},{"type":993,"tag":1021,"props":3810,"children":3811},{"class":1023,"line":27},[3812],{"type":993,"tag":1021,"props":3813,"children":3814},{"emptyLinePlaceholder":13},[3815],{"type":998,"value":1117},{"type":993,"tag":1021,"props":3817,"children":3818},{"class":1023,"line":36},[3819],{"type":993,"tag":1021,"props":3820,"children":3821},{"style":1027},[3822],{"type":998,"value":3823},"# Process key-value pairs\n",{"type":993,"tag":1021,"props":3825,"children":3826},{"class":1023,"line":45},[3827,3831,3836,3840],{"type":993,"tag":1021,"props":3828,"children":3829},{"style":1042},[3830],{"type":998,"value":3589},{"type":993,"tag":1021,"props":3832,"children":3833},{"style":1036},[3834],{"type":998,"value":3835}," student, grade ",{"type":993,"tag":1021,"props":3837,"children":3838},{"style":1042},[3839],{"type":998,"value":3599},{"type":993,"tag":1021,"props":3841,"children":3842},{"style":1036},[3843],{"type":998,"value":3844}," grades.items():\n",{"type":993,"tag":1021,"props":3846,"children":3847},{"class":1023,"line":54},[3848,3853,3858,3863,3868],{"type":993,"tag":1021,"props":3849,"children":3850},{"style":1042},[3851],{"type":998,"value":3852},"    if",{"type":993,"tag":1021,"props":3854,"children":3855},{"style":1036},[3856],{"type":998,"value":3857}," grade ",{"type":993,"tag":1021,"props":3859,"children":3860},{"style":1042},[3861],{"type":998,"value":3862},"==",{"type":993,"tag":1021,"props":3864,"children":3865},{"style":1053},[3866],{"type":998,"value":3867}," 'A'",{"type":993,"tag":1021,"props":3869,"children":3870},{"style":1036},[3871],{"type":998,"value":2068},{"type":993,"tag":1021,"props":3873,"children":3874},{"class":1023,"line":63},[3875,3880,3884,3888,3892,3896,3901,3905,3910],{"type":993,"tag":1021,"props":3876,"children":3877},{"style":1083},[3878],{"type":998,"value":3879},"        print",{"type":993,"tag":1021,"props":3881,"children":3882},{"style":1036},[3883],{"type":998,"value":1138},{"type":993,"tag":1021,"props":3885,"children":3886},{"style":1042},[3887],{"type":998,"value":2538},{"type":993,"tag":1021,"props":3889,"children":3890},{"style":1053},[3891],{"type":998,"value":2594},{"type":993,"tag":1021,"props":3893,"children":3894},{"style":1083},[3895],{"type":998,"value":2548},{"type":993,"tag":1021,"props":3897,"children":3898},{"style":1036},[3899],{"type":998,"value":3900},"student",{"type":993,"tag":1021,"props":3902,"children":3903},{"style":1083},[3904],{"type":998,"value":2558},{"type":993,"tag":1021,"props":3906,"children":3907},{"style":1053},[3908],{"type":998,"value":3909}," earned an A!\"",{"type":993,"tag":1021,"props":3911,"children":3912},{"style":1036},[3913],{"type":998,"value":1545},{"type":993,"tag":1187,"props":3915,"children":3917},{"id":3916},"️-error-handling-strategies",[3918],{"type":998,"value":3919},"🛡️ Error Handling Strategies",{"type":993,"tag":1001,"props":3921,"children":3922},{},[3923],{"type":998,"value":3924},"Robust error handling ensures application stability when working with uncertain dictionary structures.",{"type":993,"tag":1431,"props":3926,"children":3928},{"id":3927},"try-catch-approach",[3929],{"type":998,"value":3930},"Try-Catch Approach",{"type":993,"tag":1001,"props":3932,"children":3933},{},[3934],{"type":998,"value":3935},"Exception handling provides explicit control over error scenarios and enables custom error responses.",{"type":993,"tag":1007,"props":3937,"children":3938},{},[3939],{"type":993,"tag":1011,"props":3940,"children":3942},{"className":1013,"code":3941,"language":6,"meta":8,"style":8},"config = {'database_url': 'localhost:5432'}\n\ntry:\n    api_key = config['api_key']\n    print(\"API Key found:\", api_key)\nexcept KeyError:\n    print(\"API Key not configured, using default\")\n    api_key = 'default_key'\n\nprint(\"Using API Key:\", api_key)\n",[3943],{"type":993,"tag":1017,"props":3944,"children":3945},{"__ignoreMap":8},[3946,3979,3986,3998,4024,4045,4062,4082,4098,4105],{"type":993,"tag":1021,"props":3947,"children":3948},{"class":1023,"line":12},[3949,3953,3957,3961,3966,3970,3975],{"type":993,"tag":1021,"props":3950,"children":3951},{"style":1036},[3952],{"type":998,"value":2627},{"type":993,"tag":1021,"props":3954,"children":3955},{"style":1042},[3956],{"type":998,"value":1045},{"type":993,"tag":1021,"props":3958,"children":3959},{"style":1036},[3960],{"type":998,"value":1050},{"type":993,"tag":1021,"props":3962,"children":3963},{"style":1053},[3964],{"type":998,"value":3965},"'database_url'",{"type":993,"tag":1021,"props":3967,"children":3968},{"style":1036},[3969],{"type":998,"value":1061},{"type":993,"tag":1021,"props":3971,"children":3972},{"style":1053},[3973],{"type":998,"value":3974},"'localhost:5432'",{"type":993,"tag":1021,"props":3976,"children":3977},{"style":1036},[3978],{"type":998,"value":1109},{"type":993,"tag":1021,"props":3980,"children":3981},{"class":1023,"line":27},[3982],{"type":993,"tag":1021,"props":3983,"children":3984},{"emptyLinePlaceholder":13},[3985],{"type":998,"value":1117},{"type":993,"tag":1021,"props":3987,"children":3988},{"class":1023,"line":36},[3989,3994],{"type":993,"tag":1021,"props":3990,"children":3991},{"style":1042},[3992],{"type":998,"value":3993},"try",{"type":993,"tag":1021,"props":3995,"children":3996},{"style":1036},[3997],{"type":998,"value":2068},{"type":993,"tag":1021,"props":3999,"children":4000},{"class":1023,"line":45},[4001,4006,4010,4015,4020],{"type":993,"tag":1021,"props":4002,"children":4003},{"style":1036},[4004],{"type":998,"value":4005},"    api_key ",{"type":993,"tag":1021,"props":4007,"children":4008},{"style":1042},[4009],{"type":998,"value":1045},{"type":993,"tag":1021,"props":4011,"children":4012},{"style":1036},[4013],{"type":998,"value":4014}," config[",{"type":993,"tag":1021,"props":4016,"children":4017},{"style":1053},[4018],{"type":998,"value":4019},"'api_key'",{"type":993,"tag":1021,"props":4021,"children":4022},{"style":1036},[4023],{"type":998,"value":2467},{"type":993,"tag":1021,"props":4025,"children":4026},{"class":1023,"line":54},[4027,4031,4035,4040],{"type":993,"tag":1021,"props":4028,"children":4029},{"style":1083},[4030],{"type":998,"value":2032},{"type":993,"tag":1021,"props":4032,"children":4033},{"style":1036},[4034],{"type":998,"value":1138},{"type":993,"tag":1021,"props":4036,"children":4037},{"style":1053},[4038],{"type":998,"value":4039},"\"API Key found:\"",{"type":993,"tag":1021,"props":4041,"children":4042},{"style":1036},[4043],{"type":998,"value":4044},", api_key)\n",{"type":993,"tag":1021,"props":4046,"children":4047},{"class":1023,"line":63},[4048,4053,4058],{"type":993,"tag":1021,"props":4049,"children":4050},{"style":1042},[4051],{"type":998,"value":4052},"except",{"type":993,"tag":1021,"props":4054,"children":4055},{"style":1083},[4056],{"type":998,"value":4057}," KeyError",{"type":993,"tag":1021,"props":4059,"children":4060},{"style":1036},[4061],{"type":998,"value":2068},{"type":993,"tag":1021,"props":4063,"children":4064},{"class":1023,"line":72},[4065,4069,4073,4078],{"type":993,"tag":1021,"props":4066,"children":4067},{"style":1083},[4068],{"type":998,"value":2032},{"type":993,"tag":1021,"props":4070,"children":4071},{"style":1036},[4072],{"type":998,"value":1138},{"type":993,"tag":1021,"props":4074,"children":4075},{"style":1053},[4076],{"type":998,"value":4077},"\"API Key not configured, using default\"",{"type":993,"tag":1021,"props":4079,"children":4080},{"style":1036},[4081],{"type":998,"value":1545},{"type":993,"tag":1021,"props":4083,"children":4084},{"class":1023,"line":81},[4085,4089,4093],{"type":993,"tag":1021,"props":4086,"children":4087},{"style":1036},[4088],{"type":998,"value":4005},{"type":993,"tag":1021,"props":4090,"children":4091},{"style":1042},[4092],{"type":998,"value":1045},{"type":993,"tag":1021,"props":4094,"children":4095},{"style":1053},[4096],{"type":998,"value":4097}," 'default_key'\n",{"type":993,"tag":1021,"props":4099,"children":4100},{"class":1023,"line":91},[4101],{"type":993,"tag":1021,"props":4102,"children":4103},{"emptyLinePlaceholder":13},[4104],{"type":998,"value":1117},{"type":993,"tag":1021,"props":4106,"children":4107},{"class":1023,"line":100},[4108,4112,4116,4121],{"type":993,"tag":1021,"props":4109,"children":4110},{"style":1083},[4111],{"type":998,"value":1133},{"type":993,"tag":1021,"props":4113,"children":4114},{"style":1036},[4115],{"type":998,"value":1138},{"type":993,"tag":1021,"props":4117,"children":4118},{"style":1053},[4119],{"type":998,"value":4120},"\"Using API Key:\"",{"type":993,"tag":1021,"props":4122,"children":4123},{"style":1036},[4124],{"type":998,"value":4044},{"type":993,"tag":1431,"props":4126,"children":4128},{"id":4127},"defensive-programming",[4129],{"type":998,"value":4130},"Defensive Programming",{"type":993,"tag":1001,"props":4132,"children":4133},{},[4134],{"type":998,"value":4135},"Combining multiple safety techniques creates robust data access patterns.",{"type":993,"tag":1007,"props":4137,"children":4138},{},[4139],{"type":993,"tag":1011,"props":4140,"children":4142},{"className":1013,"code":4141,"language":6,"meta":8,"style":8},"def safe_get_nested(data, *keys, default=None):\n    \"\"\"Safely get nested dictionary value\"\"\"\n    current = data\n    for key in keys:\n        if isinstance(current, dict) and key in current:\n            current = current[key]\n        else:\n            return default\n    return current\n\n# Usage example\nuser_data = {'profile': {'settings': {'theme': 'dark'}}}\n\ntheme = safe_get_nested(user_data, 'profile', 'settings', 'theme', default='light')\nfont = safe_get_nested(user_data, 'profile', 'settings', 'font', default='Arial')\n\nprint(\"Theme:\", theme)\nprint(\"Font:\", font)\n",[4143],{"type":993,"tag":1017,"props":4144,"children":4145},{"__ignoreMap":8},[4146,4189,4197,4214,4236,4281,4298,4310,4323,4336,4343,4351,4400,4407,4467,4525,4532,4553],{"type":993,"tag":1021,"props":4147,"children":4148},{"class":1023,"line":12},[4149,4154,4160,4165,4170,4175,4179,4184],{"type":993,"tag":1021,"props":4150,"children":4151},{"style":1042},[4152],{"type":998,"value":4153},"def",{"type":993,"tag":1021,"props":4155,"children":4157},{"style":4156},"--shiki-default:#6F42C1;--shiki-app-dark-mode:#B392F0",[4158],{"type":998,"value":4159}," safe_get_nested",{"type":993,"tag":1021,"props":4161,"children":4162},{"style":1036},[4163],{"type":998,"value":4164},"(data, ",{"type":993,"tag":1021,"props":4166,"children":4167},{"style":1042},[4168],{"type":998,"value":4169},"*",{"type":993,"tag":1021,"props":4171,"children":4172},{"style":1036},[4173],{"type":998,"value":4174},"keys, default",{"type":993,"tag":1021,"props":4176,"children":4177},{"style":1042},[4178],{"type":998,"value":1045},{"type":993,"tag":1021,"props":4180,"children":4181},{"style":1083},[4182],{"type":998,"value":4183},"None",{"type":993,"tag":1021,"props":4185,"children":4186},{"style":1036},[4187],{"type":998,"value":4188},"):\n",{"type":993,"tag":1021,"props":4190,"children":4191},{"class":1023,"line":27},[4192],{"type":993,"tag":1021,"props":4193,"children":4194},{"style":1053},[4195],{"type":998,"value":4196},"    \"\"\"Safely get nested dictionary value\"\"\"\n",{"type":993,"tag":1021,"props":4198,"children":4199},{"class":1023,"line":36},[4200,4205,4209],{"type":993,"tag":1021,"props":4201,"children":4202},{"style":1036},[4203],{"type":998,"value":4204},"    current ",{"type":993,"tag":1021,"props":4206,"children":4207},{"style":1042},[4208],{"type":998,"value":1045},{"type":993,"tag":1021,"props":4210,"children":4211},{"style":1036},[4212],{"type":998,"value":4213}," data\n",{"type":993,"tag":1021,"props":4215,"children":4216},{"class":1023,"line":45},[4217,4222,4227,4231],{"type":993,"tag":1021,"props":4218,"children":4219},{"style":1042},[4220],{"type":998,"value":4221},"    for",{"type":993,"tag":1021,"props":4223,"children":4224},{"style":1036},[4225],{"type":998,"value":4226}," key ",{"type":993,"tag":1021,"props":4228,"children":4229},{"style":1042},[4230],{"type":998,"value":3599},{"type":993,"tag":1021,"props":4232,"children":4233},{"style":1036},[4234],{"type":998,"value":4235}," keys:\n",{"type":993,"tag":1021,"props":4237,"children":4238},{"class":1023,"line":54},[4239,4244,4249,4254,4259,4264,4268,4272,4276],{"type":993,"tag":1021,"props":4240,"children":4241},{"style":1042},[4242],{"type":998,"value":4243},"        if",{"type":993,"tag":1021,"props":4245,"children":4246},{"style":1083},[4247],{"type":998,"value":4248}," isinstance",{"type":993,"tag":1021,"props":4250,"children":4251},{"style":1036},[4252],{"type":998,"value":4253},"(current, ",{"type":993,"tag":1021,"props":4255,"children":4256},{"style":1083},[4257],{"type":998,"value":4258},"dict",{"type":993,"tag":1021,"props":4260,"children":4261},{"style":1036},[4262],{"type":998,"value":4263},") ",{"type":993,"tag":1021,"props":4265,"children":4266},{"style":1042},[4267],{"type":998,"value":3312},{"type":993,"tag":1021,"props":4269,"children":4270},{"style":1036},[4271],{"type":998,"value":4226},{"type":993,"tag":1021,"props":4273,"children":4274},{"style":1042},[4275],{"type":998,"value":3599},{"type":993,"tag":1021,"props":4277,"children":4278},{"style":1036},[4279],{"type":998,"value":4280}," current:\n",{"type":993,"tag":1021,"props":4282,"children":4283},{"class":1023,"line":63},[4284,4289,4293],{"type":993,"tag":1021,"props":4285,"children":4286},{"style":1036},[4287],{"type":998,"value":4288},"            current ",{"type":993,"tag":1021,"props":4290,"children":4291},{"style":1042},[4292],{"type":998,"value":1045},{"type":993,"tag":1021,"props":4294,"children":4295},{"style":1036},[4296],{"type":998,"value":4297}," current[key]\n",{"type":993,"tag":1021,"props":4299,"children":4300},{"class":1023,"line":72},[4301,4306],{"type":993,"tag":1021,"props":4302,"children":4303},{"style":1042},[4304],{"type":998,"value":4305},"        else",{"type":993,"tag":1021,"props":4307,"children":4308},{"style":1036},[4309],{"type":998,"value":2068},{"type":993,"tag":1021,"props":4311,"children":4312},{"class":1023,"line":81},[4313,4318],{"type":993,"tag":1021,"props":4314,"children":4315},{"style":1042},[4316],{"type":998,"value":4317},"            return",{"type":993,"tag":1021,"props":4319,"children":4320},{"style":1036},[4321],{"type":998,"value":4322}," default\n",{"type":993,"tag":1021,"props":4324,"children":4325},{"class":1023,"line":91},[4326,4331],{"type":993,"tag":1021,"props":4327,"children":4328},{"style":1042},[4329],{"type":998,"value":4330},"    return",{"type":993,"tag":1021,"props":4332,"children":4333},{"style":1036},[4334],{"type":998,"value":4335}," current\n",{"type":993,"tag":1021,"props":4337,"children":4338},{"class":1023,"line":100},[4339],{"type":993,"tag":1021,"props":4340,"children":4341},{"emptyLinePlaceholder":13},[4342],{"type":998,"value":1117},{"type":993,"tag":1021,"props":4344,"children":4345},{"class":1023,"line":109},[4346],{"type":993,"tag":1021,"props":4347,"children":4348},{"style":1027},[4349],{"type":998,"value":4350},"# Usage example\n",{"type":993,"tag":1021,"props":4352,"children":4353},{"class":1023,"line":118},[4354,4358,4362,4366,4370,4374,4379,4383,4387,4391,4395],{"type":993,"tag":1021,"props":4355,"children":4356},{"style":1036},[4357],{"type":998,"value":1459},{"type":993,"tag":1021,"props":4359,"children":4360},{"style":1042},[4361],{"type":998,"value":1045},{"type":993,"tag":1021,"props":4363,"children":4364},{"style":1036},[4365],{"type":998,"value":1050},{"type":993,"tag":1021,"props":4367,"children":4368},{"style":1053},[4369],{"type":998,"value":3059},{"type":993,"tag":1021,"props":4371,"children":4372},{"style":1036},[4373],{"type":998,"value":2945},{"type":993,"tag":1021,"props":4375,"children":4376},{"style":1053},[4377],{"type":998,"value":4378},"'settings'",{"type":993,"tag":1021,"props":4380,"children":4381},{"style":1036},[4382],{"type":998,"value":2945},{"type":993,"tag":1021,"props":4384,"children":4385},{"style":1053},[4386],{"type":998,"value":1678},{"type":993,"tag":1021,"props":4388,"children":4389},{"style":1036},[4390],{"type":998,"value":1061},{"type":993,"tag":1021,"props":4392,"children":4393},{"style":1053},[4394],{"type":998,"value":1687},{"type":993,"tag":1021,"props":4396,"children":4397},{"style":1036},[4398],{"type":998,"value":4399},"}}}\n",{"type":993,"tag":1021,"props":4401,"children":4402},{"class":1023,"line":127},[4403],{"type":993,"tag":1021,"props":4404,"children":4405},{"emptyLinePlaceholder":13},[4406],{"type":998,"value":1117},{"type":993,"tag":1021,"props":4408,"children":4409},{"class":1023,"line":136},[4410,4415,4419,4424,4428,4432,4436,4440,4444,4448,4454,4458,4463],{"type":993,"tag":1021,"props":4411,"children":4412},{"style":1036},[4413],{"type":998,"value":4414},"theme ",{"type":993,"tag":1021,"props":4416,"children":4417},{"style":1042},[4418],{"type":998,"value":1045},{"type":993,"tag":1021,"props":4420,"children":4421},{"style":1036},[4422],{"type":998,"value":4423}," safe_get_nested(user_data, ",{"type":993,"tag":1021,"props":4425,"children":4426},{"style":1053},[4427],{"type":998,"value":3059},{"type":993,"tag":1021,"props":4429,"children":4430},{"style":1036},[4431],{"type":998,"value":1071},{"type":993,"tag":1021,"props":4433,"children":4434},{"style":1053},[4435],{"type":998,"value":4378},{"type":993,"tag":1021,"props":4437,"children":4438},{"style":1036},[4439],{"type":998,"value":1071},{"type":993,"tag":1021,"props":4441,"children":4442},{"style":1053},[4443],{"type":998,"value":1678},{"type":993,"tag":1021,"props":4445,"children":4446},{"style":1036},[4447],{"type":998,"value":1071},{"type":993,"tag":1021,"props":4449,"children":4451},{"style":4450},"--shiki-default:#E36209;--shiki-app-dark-mode:#FFAB70",[4452],{"type":998,"value":4453},"default",{"type":993,"tag":1021,"props":4455,"children":4456},{"style":1042},[4457],{"type":998,"value":1045},{"type":993,"tag":1021,"props":4459,"children":4460},{"style":1053},[4461],{"type":998,"value":4462},"'light'",{"type":993,"tag":1021,"props":4464,"children":4465},{"style":1036},[4466],{"type":998,"value":1545},{"type":993,"tag":1021,"props":4468,"children":4469},{"class":1023,"line":146},[4470,4475,4479,4483,4487,4491,4495,4499,4504,4508,4512,4516,4521],{"type":993,"tag":1021,"props":4471,"children":4472},{"style":1036},[4473],{"type":998,"value":4474},"font ",{"type":993,"tag":1021,"props":4476,"children":4477},{"style":1042},[4478],{"type":998,"value":1045},{"type":993,"tag":1021,"props":4480,"children":4481},{"style":1036},[4482],{"type":998,"value":4423},{"type":993,"tag":1021,"props":4484,"children":4485},{"style":1053},[4486],{"type":998,"value":3059},{"type":993,"tag":1021,"props":4488,"children":4489},{"style":1036},[4490],{"type":998,"value":1071},{"type":993,"tag":1021,"props":4492,"children":4493},{"style":1053},[4494],{"type":998,"value":4378},{"type":993,"tag":1021,"props":4496,"children":4497},{"style":1036},[4498],{"type":998,"value":1071},{"type":993,"tag":1021,"props":4500,"children":4501},{"style":1053},[4502],{"type":998,"value":4503},"'font'",{"type":993,"tag":1021,"props":4505,"children":4506},{"style":1036},[4507],{"type":998,"value":1071},{"type":993,"tag":1021,"props":4509,"children":4510},{"style":4450},[4511],{"type":998,"value":4453},{"type":993,"tag":1021,"props":4513,"children":4514},{"style":1042},[4515],{"type":998,"value":1045},{"type":993,"tag":1021,"props":4517,"children":4518},{"style":1053},[4519],{"type":998,"value":4520},"'Arial'",{"type":993,"tag":1021,"props":4522,"children":4523},{"style":1036},[4524],{"type":998,"value":1545},{"type":993,"tag":1021,"props":4526,"children":4527},{"class":1023,"line":155},[4528],{"type":993,"tag":1021,"props":4529,"children":4530},{"emptyLinePlaceholder":13},[4531],{"type":998,"value":1117},{"type":993,"tag":1021,"props":4533,"children":4534},{"class":1023,"line":164},[4535,4539,4543,4548],{"type":993,"tag":1021,"props":4536,"children":4537},{"style":1083},[4538],{"type":998,"value":1133},{"type":993,"tag":1021,"props":4540,"children":4541},{"style":1036},[4542],{"type":998,"value":1138},{"type":993,"tag":1021,"props":4544,"children":4545},{"style":1053},[4546],{"type":998,"value":4547},"\"Theme:\"",{"type":993,"tag":1021,"props":4549,"children":4550},{"style":1036},[4551],{"type":998,"value":4552},", theme)\n",{"type":993,"tag":1021,"props":4554,"children":4555},{"class":1023,"line":173},[4556,4560,4564,4569],{"type":993,"tag":1021,"props":4557,"children":4558},{"style":1083},[4559],{"type":998,"value":1133},{"type":993,"tag":1021,"props":4561,"children":4562},{"style":1036},[4563],{"type":998,"value":1138},{"type":993,"tag":1021,"props":4565,"children":4566},{"style":1053},[4567],{"type":998,"value":4568},"\"Font:\"",{"type":993,"tag":1021,"props":4570,"children":4571},{"style":1036},[4572],{"type":998,"value":4573},", font)\n",{"type":993,"tag":1374,"props":4575,"children":4579},{"emoji":4576,"title":4577,"type":4578},"✅","Best Practices","success",[4580,4590,4600,4610],{"type":993,"tag":1001,"props":4581,"children":4582},{},[4583,4588],{"type":993,"tag":1384,"props":4584,"children":4585},{},[4586],{"type":998,"value":4587},"Use get() for Optional Keys:",{"type":998,"value":4589}," Safer than direct access for uncertain key existence.",{"type":993,"tag":1001,"props":4591,"children":4592},{},[4593,4598],{"type":993,"tag":1384,"props":4594,"children":4595},{},[4596],{"type":998,"value":4597},"Provide Meaningful Defaults:",{"type":998,"value":4599}," Choose defaults that make sense for your application context.",{"type":993,"tag":1001,"props":4601,"children":4602},{},[4603,4608],{"type":993,"tag":1384,"props":4604,"children":4605},{},[4606],{"type":998,"value":4607},"Check Nested Structures:",{"type":998,"value":4609}," Always validate intermediate levels in nested access.",{"type":993,"tag":1001,"props":4611,"children":4612},{},[4613,4618],{"type":993,"tag":1384,"props":4614,"children":4615},{},[4616],{"type":998,"value":4617},"Handle Errors Gracefully:",{"type":998,"value":4619}," Use try-catch for critical paths, get() for optional data.",{"type":993,"tag":4621,"props":4622,"children":4624},"content-exercise",{":widget-view":4623,"category":6,"id":538},"true",[],{"type":993,"tag":1001,"props":4626,"children":4627},{},[4628,4630,4636],{"type":998,"value":4629},"Learn more about ",{"type":993,"tag":4631,"props":4632,"children":4633},"a",{"href":544},[4634],{"type":998,"value":4635},"updating dictionaries",{"type":998,"value":4637}," to master modifying existing dictionary values and structures.",{"type":993,"tag":4639,"props":4640,"children":4643},"exercise",{"hint":4641,"prompt":4642},"Use the get() method with default values for safe dictionary access","Create a function that safely gets student information from a dictionary. Use the get() method to provide default values when information is missing: 'Unknown' for name, 0 for age, and 'Not set' for grade.",[4644],{"type":993,"tag":1011,"props":4645,"children":4647},{"className":1013,"code":4646,"language":6,"meta":8,"style":8},"def get_student_info(student):\n    # TODO: Use get() to safely extract student information\n    # TODO: Provide defaults for missing information\n    pass\n\n# Test data\nstudent1 = {'name': 'Alice', 'age': 16, 'grade': 'A'}\nstudent2 = {'name': 'Bob', 'age': 17}  # Missing grade\nstudent3 = {'age': 15}  # Missing name and grade\n\nprint(get_student_info(student1))\nprint(get_student_info(student2))\nprint(get_student_info(student3))\n",[4648],{"type":993,"tag":1017,"props":4649,"children":4650},{"__ignoreMap":8},[4651,4668,4686,4702,4710,4717,4725,4790,4845,4883,4890,4902,4914],{"type":993,"tag":1021,"props":4652,"children":4653},{"class":1023,"line":12},[4654,4658,4663],{"type":993,"tag":1021,"props":4655,"children":4656},{"style":1042},[4657],{"type":998,"value":4153},{"type":993,"tag":1021,"props":4659,"children":4660},{"style":4156},[4661],{"type":998,"value":4662}," get_student_info",{"type":993,"tag":1021,"props":4664,"children":4665},{"style":1036},[4666],{"type":998,"value":4667},"(student):\n",{"type":993,"tag":1021,"props":4669,"children":4670},{"class":1023,"line":27},[4671,4676,4681],{"type":993,"tag":1021,"props":4672,"children":4673},{"style":1027},[4674],{"type":998,"value":4675},"    # ",{"type":993,"tag":1021,"props":4677,"children":4678},{"style":1042},[4679],{"type":998,"value":4680},"TODO",{"type":993,"tag":1021,"props":4682,"children":4683},{"style":1027},[4684],{"type":998,"value":4685},": Use get() to safely extract student information\n",{"type":993,"tag":1021,"props":4687,"children":4688},{"class":1023,"line":36},[4689,4693,4697],{"type":993,"tag":1021,"props":4690,"children":4691},{"style":1027},[4692],{"type":998,"value":4675},{"type":993,"tag":1021,"props":4694,"children":4695},{"style":1042},[4696],{"type":998,"value":4680},{"type":993,"tag":1021,"props":4698,"children":4699},{"style":1027},[4700],{"type":998,"value":4701},": Provide defaults for missing information\n",{"type":993,"tag":1021,"props":4703,"children":4704},{"class":1023,"line":45},[4705],{"type":993,"tag":1021,"props":4706,"children":4707},{"style":1042},[4708],{"type":998,"value":4709},"    pass\n",{"type":993,"tag":1021,"props":4711,"children":4712},{"class":1023,"line":54},[4713],{"type":993,"tag":1021,"props":4714,"children":4715},{"emptyLinePlaceholder":13},[4716],{"type":998,"value":1117},{"type":993,"tag":1021,"props":4718,"children":4719},{"class":1023,"line":63},[4720],{"type":993,"tag":1021,"props":4721,"children":4722},{"style":1027},[4723],{"type":998,"value":4724},"# Test data\n",{"type":993,"tag":1021,"props":4726,"children":4727},{"class":1023,"line":72},[4728,4733,4737,4741,4745,4749,4753,4757,4761,4765,4770,4774,4778,4782,4786],{"type":993,"tag":1021,"props":4729,"children":4730},{"style":1036},[4731],{"type":998,"value":4732},"student1 ",{"type":993,"tag":1021,"props":4734,"children":4735},{"style":1042},[4736],{"type":998,"value":1045},{"type":993,"tag":1021,"props":4738,"children":4739},{"style":1036},[4740],{"type":998,"value":1050},{"type":993,"tag":1021,"props":4742,"children":4743},{"style":1053},[4744],{"type":998,"value":1056},{"type":993,"tag":1021,"props":4746,"children":4747},{"style":1036},[4748],{"type":998,"value":1061},{"type":993,"tag":1021,"props":4750,"children":4751},{"style":1053},[4752],{"type":998,"value":1066},{"type":993,"tag":1021,"props":4754,"children":4755},{"style":1036},[4756],{"type":998,"value":1071},{"type":993,"tag":1021,"props":4758,"children":4759},{"style":1053},[4760],{"type":998,"value":1076},{"type":993,"tag":1021,"props":4762,"children":4763},{"style":1036},[4764],{"type":998,"value":1061},{"type":993,"tag":1021,"props":4766,"children":4767},{"style":1083},[4768],{"type":998,"value":4769},"16",{"type":993,"tag":1021,"props":4771,"children":4772},{"style":1036},[4773],{"type":998,"value":1071},{"type":993,"tag":1021,"props":4775,"children":4776},{"style":1053},[4777],{"type":998,"value":1095},{"type":993,"tag":1021,"props":4779,"children":4780},{"style":1036},[4781],{"type":998,"value":1061},{"type":993,"tag":1021,"props":4783,"children":4784},{"style":1053},[4785],{"type":998,"value":1104},{"type":993,"tag":1021,"props":4787,"children":4788},{"style":1036},[4789],{"type":998,"value":1109},{"type":993,"tag":1021,"props":4791,"children":4792},{"class":1023,"line":81},[4793,4798,4802,4806,4810,4814,4818,4822,4826,4830,4835,4840],{"type":993,"tag":1021,"props":4794,"children":4795},{"style":1036},[4796],{"type":998,"value":4797},"student2 ",{"type":993,"tag":1021,"props":4799,"children":4800},{"style":1042},[4801],{"type":998,"value":1045},{"type":993,"tag":1021,"props":4803,"children":4804},{"style":1036},[4805],{"type":998,"value":1050},{"type":993,"tag":1021,"props":4807,"children":4808},{"style":1053},[4809],{"type":998,"value":1056},{"type":993,"tag":1021,"props":4811,"children":4812},{"style":1036},[4813],{"type":998,"value":1061},{"type":993,"tag":1021,"props":4815,"children":4816},{"style":1053},[4817],{"type":998,"value":3760},{"type":993,"tag":1021,"props":4819,"children":4820},{"style":1036},[4821],{"type":998,"value":1071},{"type":993,"tag":1021,"props":4823,"children":4824},{"style":1053},[4825],{"type":998,"value":1076},{"type":993,"tag":1021,"props":4827,"children":4828},{"style":1036},[4829],{"type":998,"value":1061},{"type":993,"tag":1021,"props":4831,"children":4832},{"style":1083},[4833],{"type":998,"value":4834},"17",{"type":993,"tag":1021,"props":4836,"children":4837},{"style":1036},[4838],{"type":998,"value":4839},"}  ",{"type":993,"tag":1021,"props":4841,"children":4842},{"style":1027},[4843],{"type":998,"value":4844},"# Missing grade\n",{"type":993,"tag":1021,"props":4846,"children":4847},{"class":1023,"line":91},[4848,4853,4857,4861,4865,4869,4874,4878],{"type":993,"tag":1021,"props":4849,"children":4850},{"style":1036},[4851],{"type":998,"value":4852},"student3 ",{"type":993,"tag":1021,"props":4854,"children":4855},{"style":1042},[4856],{"type":998,"value":1045},{"type":993,"tag":1021,"props":4858,"children":4859},{"style":1036},[4860],{"type":998,"value":1050},{"type":993,"tag":1021,"props":4862,"children":4863},{"style":1053},[4864],{"type":998,"value":1076},{"type":993,"tag":1021,"props":4866,"children":4867},{"style":1036},[4868],{"type":998,"value":1061},{"type":993,"tag":1021,"props":4870,"children":4871},{"style":1083},[4872],{"type":998,"value":4873},"15",{"type":993,"tag":1021,"props":4875,"children":4876},{"style":1036},[4877],{"type":998,"value":4839},{"type":993,"tag":1021,"props":4879,"children":4880},{"style":1027},[4881],{"type":998,"value":4882},"# Missing name and grade\n",{"type":993,"tag":1021,"props":4884,"children":4885},{"class":1023,"line":100},[4886],{"type":993,"tag":1021,"props":4887,"children":4888},{"emptyLinePlaceholder":13},[4889],{"type":998,"value":1117},{"type":993,"tag":1021,"props":4891,"children":4892},{"class":1023,"line":109},[4893,4897],{"type":993,"tag":1021,"props":4894,"children":4895},{"style":1083},[4896],{"type":998,"value":1133},{"type":993,"tag":1021,"props":4898,"children":4899},{"style":1036},[4900],{"type":998,"value":4901},"(get_student_info(student1))\n",{"type":993,"tag":1021,"props":4903,"children":4904},{"class":1023,"line":118},[4905,4909],{"type":993,"tag":1021,"props":4906,"children":4907},{"style":1083},[4908],{"type":998,"value":1133},{"type":993,"tag":1021,"props":4910,"children":4911},{"style":1036},[4912],{"type":998,"value":4913},"(get_student_info(student2))\n",{"type":993,"tag":1021,"props":4915,"children":4916},{"class":1023,"line":127},[4917,4921],{"type":993,"tag":1021,"props":4918,"children":4919},{"style":1083},[4920],{"type":998,"value":1133},{"type":993,"tag":1021,"props":4922,"children":4923},{"style":1036},[4924],{"type":998,"value":4925},"(get_student_info(student3))\n",{"type":993,"tag":1431,"props":4927,"children":4929},{"id":4928},"solution-and-explanation",[4930],{"type":998,"value":4931},"Solution and Explanation 💡",{"type":993,"tag":4933,"props":4934,"children":4935},"details",{},[4936,4944,5364,5372],{"type":993,"tag":4937,"props":4938,"children":4941},"summary",{"className":4939},[4940],"cursor-pointer",[4942],{"type":998,"value":4943},"Click to see the complete solution",{"type":993,"tag":1007,"props":4945,"children":4946},{},[4947],{"type":993,"tag":1011,"props":4948,"children":4950},{"className":1013,"code":4949,"language":6,"meta":8,"style":8},"def get_student_info(student):\n    # Use get() method to safely access dictionary values\n    name = student.get('name', 'Unknown')\n    age = student.get('age', 0)\n    grade = student.get('grade', 'Not set')\n    \n    # Return formatted information\n    return f\"Name: {name}, Age: {age}, Grade: {grade}\"\n\n# Test data\nstudent1 = {'name': 'Alice', 'age': 16, 'grade': 'A'}\nstudent2 = {'name': 'Bob', 'age': 17}  # Missing grade\nstudent3 = {'age': 15}  # Missing name and grade\n\nprint(get_student_info(student1))\nprint(get_student_info(student2))\nprint(get_student_info(student3))\n",[4951],{"type":993,"tag":1017,"props":4952,"children":4953},{"__ignoreMap":8},[4954,4969,4977,5010,5043,5076,5084,5092,5161,5168,5175,5238,5289,5324,5331,5342,5353],{"type":993,"tag":1021,"props":4955,"children":4956},{"class":1023,"line":12},[4957,4961,4965],{"type":993,"tag":1021,"props":4958,"children":4959},{"style":1042},[4960],{"type":998,"value":4153},{"type":993,"tag":1021,"props":4962,"children":4963},{"style":4156},[4964],{"type":998,"value":4662},{"type":993,"tag":1021,"props":4966,"children":4967},{"style":1036},[4968],{"type":998,"value":4667},{"type":993,"tag":1021,"props":4970,"children":4971},{"class":1023,"line":27},[4972],{"type":993,"tag":1021,"props":4973,"children":4974},{"style":1027},[4975],{"type":998,"value":4976},"    # Use get() method to safely access dictionary values\n",{"type":993,"tag":1021,"props":4978,"children":4979},{"class":1023,"line":36},[4980,4985,4989,4994,4998,5002,5006],{"type":993,"tag":1021,"props":4981,"children":4982},{"style":1036},[4983],{"type":998,"value":4984},"    name ",{"type":993,"tag":1021,"props":4986,"children":4987},{"style":1042},[4988],{"type":998,"value":1045},{"type":993,"tag":1021,"props":4990,"children":4991},{"style":1036},[4992],{"type":998,"value":4993}," student.get(",{"type":993,"tag":1021,"props":4995,"children":4996},{"style":1053},[4997],{"type":998,"value":1056},{"type":993,"tag":1021,"props":4999,"children":5000},{"style":1036},[5001],{"type":998,"value":1071},{"type":993,"tag":1021,"props":5003,"children":5004},{"style":1053},[5005],{"type":998,"value":3086},{"type":993,"tag":1021,"props":5007,"children":5008},{"style":1036},[5009],{"type":998,"value":1545},{"type":993,"tag":1021,"props":5011,"children":5012},{"class":1023,"line":45},[5013,5018,5022,5026,5030,5034,5039],{"type":993,"tag":1021,"props":5014,"children":5015},{"style":1036},[5016],{"type":998,"value":5017},"    age ",{"type":993,"tag":1021,"props":5019,"children":5020},{"style":1042},[5021],{"type":998,"value":1045},{"type":993,"tag":1021,"props":5023,"children":5024},{"style":1036},[5025],{"type":998,"value":4993},{"type":993,"tag":1021,"props":5027,"children":5028},{"style":1053},[5029],{"type":998,"value":1076},{"type":993,"tag":1021,"props":5031,"children":5032},{"style":1036},[5033],{"type":998,"value":1071},{"type":993,"tag":1021,"props":5035,"children":5036},{"style":1083},[5037],{"type":998,"value":5038},"0",{"type":993,"tag":1021,"props":5040,"children":5041},{"style":1036},[5042],{"type":998,"value":1545},{"type":993,"tag":1021,"props":5044,"children":5045},{"class":1023,"line":54},[5046,5051,5055,5059,5063,5067,5072],{"type":993,"tag":1021,"props":5047,"children":5048},{"style":1036},[5049],{"type":998,"value":5050},"    grade ",{"type":993,"tag":1021,"props":5052,"children":5053},{"style":1042},[5054],{"type":998,"value":1045},{"type":993,"tag":1021,"props":5056,"children":5057},{"style":1036},[5058],{"type":998,"value":4993},{"type":993,"tag":1021,"props":5060,"children":5061},{"style":1053},[5062],{"type":998,"value":1095},{"type":993,"tag":1021,"props":5064,"children":5065},{"style":1036},[5066],{"type":998,"value":1071},{"type":993,"tag":1021,"props":5068,"children":5069},{"style":1053},[5070],{"type":998,"value":5071},"'Not set'",{"type":993,"tag":1021,"props":5073,"children":5074},{"style":1036},[5075],{"type":998,"value":1545},{"type":993,"tag":1021,"props":5077,"children":5078},{"class":1023,"line":63},[5079],{"type":993,"tag":1021,"props":5080,"children":5081},{"style":1036},[5082],{"type":998,"value":5083},"    \n",{"type":993,"tag":1021,"props":5085,"children":5086},{"class":1023,"line":72},[5087],{"type":993,"tag":1021,"props":5088,"children":5089},{"style":1027},[5090],{"type":998,"value":5091},"    # Return formatted information\n",{"type":993,"tag":1021,"props":5093,"children":5094},{"class":1023,"line":81},[5095,5099,5104,5109,5113,5118,5122,5126,5130,5134,5138,5143,5147,5152,5156],{"type":993,"tag":1021,"props":5096,"children":5097},{"style":1042},[5098],{"type":998,"value":4330},{"type":993,"tag":1021,"props":5100,"children":5101},{"style":1042},[5102],{"type":998,"value":5103}," f",{"type":993,"tag":1021,"props":5105,"children":5106},{"style":1053},[5107],{"type":998,"value":5108},"\"Name: ",{"type":993,"tag":1021,"props":5110,"children":5111},{"style":1083},[5112],{"type":998,"value":2548},{"type":993,"tag":1021,"props":5114,"children":5115},{"style":1036},[5116],{"type":998,"value":5117},"name",{"type":993,"tag":1021,"props":5119,"children":5120},{"style":1083},[5121],{"type":998,"value":2558},{"type":993,"tag":1021,"props":5123,"children":5124},{"style":1053},[5125],{"type":998,"value":2576},{"type":993,"tag":1021,"props":5127,"children":5128},{"style":1083},[5129],{"type":998,"value":2548},{"type":993,"tag":1021,"props":5131,"children":5132},{"style":1036},[5133],{"type":998,"value":2585},{"type":993,"tag":1021,"props":5135,"children":5136},{"style":1083},[5137],{"type":998,"value":2558},{"type":993,"tag":1021,"props":5139,"children":5140},{"style":1053},[5141],{"type":998,"value":5142},", Grade: ",{"type":993,"tag":1021,"props":5144,"children":5145},{"style":1083},[5146],{"type":998,"value":2548},{"type":993,"tag":1021,"props":5148,"children":5149},{"style":1036},[5150],{"type":998,"value":5151},"grade",{"type":993,"tag":1021,"props":5153,"children":5154},{"style":1083},[5155],{"type":998,"value":2558},{"type":993,"tag":1021,"props":5157,"children":5158},{"style":1053},[5159],{"type":998,"value":5160},"\"\n",{"type":993,"tag":1021,"props":5162,"children":5163},{"class":1023,"line":91},[5164],{"type":993,"tag":1021,"props":5165,"children":5166},{"emptyLinePlaceholder":13},[5167],{"type":998,"value":1117},{"type":993,"tag":1021,"props":5169,"children":5170},{"class":1023,"line":100},[5171],{"type":993,"tag":1021,"props":5172,"children":5173},{"style":1027},[5174],{"type":998,"value":4724},{"type":993,"tag":1021,"props":5176,"children":5177},{"class":1023,"line":109},[5178,5182,5186,5190,5194,5198,5202,5206,5210,5214,5218,5222,5226,5230,5234],{"type":993,"tag":1021,"props":5179,"children":5180},{"style":1036},[5181],{"type":998,"value":4732},{"type":993,"tag":1021,"props":5183,"children":5184},{"style":1042},[5185],{"type":998,"value":1045},{"type":993,"tag":1021,"props":5187,"children":5188},{"style":1036},[5189],{"type":998,"value":1050},{"type":993,"tag":1021,"props":5191,"children":5192},{"style":1053},[5193],{"type":998,"value":1056},{"type":993,"tag":1021,"props":5195,"children":5196},{"style":1036},[5197],{"type":998,"value":1061},{"type":993,"tag":1021,"props":5199,"children":5200},{"style":1053},[5201],{"type":998,"value":1066},{"type":993,"tag":1021,"props":5203,"children":5204},{"style":1036},[5205],{"type":998,"value":1071},{"type":993,"tag":1021,"props":5207,"children":5208},{"style":1053},[5209],{"type":998,"value":1076},{"type":993,"tag":1021,"props":5211,"children":5212},{"style":1036},[5213],{"type":998,"value":1061},{"type":993,"tag":1021,"props":5215,"children":5216},{"style":1083},[5217],{"type":998,"value":4769},{"type":993,"tag":1021,"props":5219,"children":5220},{"style":1036},[5221],{"type":998,"value":1071},{"type":993,"tag":1021,"props":5223,"children":5224},{"style":1053},[5225],{"type":998,"value":1095},{"type":993,"tag":1021,"props":5227,"children":5228},{"style":1036},[5229],{"type":998,"value":1061},{"type":993,"tag":1021,"props":5231,"children":5232},{"style":1053},[5233],{"type":998,"value":1104},{"type":993,"tag":1021,"props":5235,"children":5236},{"style":1036},[5237],{"type":998,"value":1109},{"type":993,"tag":1021,"props":5239,"children":5240},{"class":1023,"line":118},[5241,5245,5249,5253,5257,5261,5265,5269,5273,5277,5281,5285],{"type":993,"tag":1021,"props":5242,"children":5243},{"style":1036},[5244],{"type":998,"value":4797},{"type":993,"tag":1021,"props":5246,"children":5247},{"style":1042},[5248],{"type":998,"value":1045},{"type":993,"tag":1021,"props":5250,"children":5251},{"style":1036},[5252],{"type":998,"value":1050},{"type":993,"tag":1021,"props":5254,"children":5255},{"style":1053},[5256],{"type":998,"value":1056},{"type":993,"tag":1021,"props":5258,"children":5259},{"style":1036},[5260],{"type":998,"value":1061},{"type":993,"tag":1021,"props":5262,"children":5263},{"style":1053},[5264],{"type":998,"value":3760},{"type":993,"tag":1021,"props":5266,"children":5267},{"style":1036},[5268],{"type":998,"value":1071},{"type":993,"tag":1021,"props":5270,"children":5271},{"style":1053},[5272],{"type":998,"value":1076},{"type":993,"tag":1021,"props":5274,"children":5275},{"style":1036},[5276],{"type":998,"value":1061},{"type":993,"tag":1021,"props":5278,"children":5279},{"style":1083},[5280],{"type":998,"value":4834},{"type":993,"tag":1021,"props":5282,"children":5283},{"style":1036},[5284],{"type":998,"value":4839},{"type":993,"tag":1021,"props":5286,"children":5287},{"style":1027},[5288],{"type":998,"value":4844},{"type":993,"tag":1021,"props":5290,"children":5291},{"class":1023,"line":127},[5292,5296,5300,5304,5308,5312,5316,5320],{"type":993,"tag":1021,"props":5293,"children":5294},{"style":1036},[5295],{"type":998,"value":4852},{"type":993,"tag":1021,"props":5297,"children":5298},{"style":1042},[5299],{"type":998,"value":1045},{"type":993,"tag":1021,"props":5301,"children":5302},{"style":1036},[5303],{"type":998,"value":1050},{"type":993,"tag":1021,"props":5305,"children":5306},{"style":1053},[5307],{"type":998,"value":1076},{"type":993,"tag":1021,"props":5309,"children":5310},{"style":1036},[5311],{"type":998,"value":1061},{"type":993,"tag":1021,"props":5313,"children":5314},{"style":1083},[5315],{"type":998,"value":4873},{"type":993,"tag":1021,"props":5317,"children":5318},{"style":1036},[5319],{"type":998,"value":4839},{"type":993,"tag":1021,"props":5321,"children":5322},{"style":1027},[5323],{"type":998,"value":4882},{"type":993,"tag":1021,"props":5325,"children":5326},{"class":1023,"line":136},[5327],{"type":993,"tag":1021,"props":5328,"children":5329},{"emptyLinePlaceholder":13},[5330],{"type":998,"value":1117},{"type":993,"tag":1021,"props":5332,"children":5333},{"class":1023,"line":146},[5334,5338],{"type":993,"tag":1021,"props":5335,"children":5336},{"style":1083},[5337],{"type":998,"value":1133},{"type":993,"tag":1021,"props":5339,"children":5340},{"style":1036},[5341],{"type":998,"value":4901},{"type":993,"tag":1021,"props":5343,"children":5344},{"class":1023,"line":155},[5345,5349],{"type":993,"tag":1021,"props":5346,"children":5347},{"style":1083},[5348],{"type":998,"value":1133},{"type":993,"tag":1021,"props":5350,"children":5351},{"style":1036},[5352],{"type":998,"value":4913},{"type":993,"tag":1021,"props":5354,"children":5355},{"class":1023,"line":164},[5356,5360],{"type":993,"tag":1021,"props":5357,"children":5358},{"style":1083},[5359],{"type":998,"value":1133},{"type":993,"tag":1021,"props":5361,"children":5362},{"style":1036},[5363],{"type":998,"value":4925},{"type":993,"tag":1001,"props":5365,"children":5366},{},[5367],{"type":993,"tag":1384,"props":5368,"children":5369},{},[5370],{"type":998,"value":5371},"Key Learning Points:",{"type":993,"tag":5373,"props":5374,"children":5375},"ul",{},[5376,5397,5408,5419],{"type":993,"tag":5377,"props":5378,"children":5379},"li",{},[5380,5382,5387,5389,5395],{"type":998,"value":5381},"📌 ",{"type":993,"tag":1384,"props":5383,"children":5384},{},[5385],{"type":998,"value":5386},"get() method",{"type":998,"value":5388},": Use ",{"type":993,"tag":1017,"props":5390,"children":5392},{"className":5391},[],[5393],{"type":998,"value":5394},"get(key, default)",{"type":998,"value":5396}," to safely access dictionary values",{"type":993,"tag":5377,"props":5398,"children":5399},{},[5400,5401,5406],{"type":998,"value":5381},{"type":993,"tag":1384,"props":5402,"children":5403},{},[5404],{"type":998,"value":5405},"Default values",{"type":998,"value":5407},": Provide meaningful defaults when keys are missing",{"type":993,"tag":5377,"props":5409,"children":5410},{},[5411,5412,5417],{"type":998,"value":5381},{"type":993,"tag":1384,"props":5413,"children":5414},{},[5415],{"type":998,"value":5416},"Safe access",{"type":998,"value":5418},": Avoid KeyError exceptions by using get() instead of direct access",{"type":993,"tag":5377,"props":5420,"children":5421},{},[5422,5423,5428],{"type":998,"value":5381},{"type":993,"tag":1384,"props":5424,"children":5425},{},[5426],{"type":998,"value":5427},"String formatting",{"type":998,"value":5429},": Use f-strings to create readable output from dictionary data",{"type":993,"tag":1187,"props":5431,"children":5433},{"id":5432},"test-your-knowledge",[5434],{"type":998,"value":5435},"Test Your Knowledge",{"type":993,"tag":1001,"props":5437,"children":5438},{},[5439],{"type":998,"value":5440},"Test what you've learned about getting dictionary values:",{"type":993,"tag":5442,"props":5443,"children":5447},"redirect-button",{"icon":5444,"label":5445,"url":5446},"pi pi-send","Take Quiz","/tutorial-quiz/python/getting-dictionary-values",[],{"type":993,"tag":1187,"props":5449,"children":5451},{"id":5450},"whats-next",[5452],{"type":998,"value":5453},"What's Next?",{"type":993,"tag":1001,"props":5455,"children":5456},{},[5457],{"type":998,"value":5458},"Now that you can safely retrieve data from dictionaries, you're ready to learn how to modify existing values. Understanding update operations is essential for maintaining dynamic data structures.",{"type":993,"tag":1001,"props":5460,"children":5461},{},[5462,5464,5468],{"type":998,"value":5463},"Ready to continue? Check out our lesson on ",{"type":993,"tag":4631,"props":5465,"children":5466},{"href":544},[5467],{"type":998,"value":545},{"type":998,"value":5469},".",{"type":993,"tag":5471,"props":5472,"children":5473},"style",{},[5474],{"type":998,"value":5475},"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":5477},[5478,5479,5483,5484,5485,5489,5493,5497,5502,5503],{"id":1189,"depth":27,"text":1192},{"id":1413,"depth":27,"text":1416,"children":5480},[5481,5482],{"id":1433,"depth":36,"text":1436},{"id":1639,"depth":36,"text":1642},{"id":1899,"depth":27,"text":1902},{"id":2179,"depth":27,"text":2182},{"id":2329,"depth":27,"text":2332,"children":5486},[5487,5488],{"id":2340,"depth":36,"text":2343},{"id":2601,"depth":36,"text":2604},{"id":2873,"depth":27,"text":2876,"children":5490},[5491,5492],{"id":2884,"depth":36,"text":2887},{"id":3190,"depth":36,"text":3193},{"id":3433,"depth":27,"text":3436,"children":5494},[5495,5496],{"id":3444,"depth":36,"text":3447},{"id":3705,"depth":36,"text":3708},{"id":3916,"depth":27,"text":3919,"children":5498},[5499,5500,5501],{"id":3927,"depth":36,"text":3930},{"id":4127,"depth":36,"text":4130},{"id":4928,"depth":36,"text":4931},{"id":5432,"depth":27,"text":5435},{"id":5450,"depth":27,"text":5453},1782373742358]