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