[{"data":1,"prerenderedAt":3240},["ShallowReactive",2],{"tutorials-python":3,"category-items-python":987,"content-/python/python-dictionaries":988},[4,22,31,40,49,58,67,76,86,95,104,113,122,131,141,150,159,168,177,186,196,205,214,223,233,242,251,260,269,279,288,297,306,315,324,333,342,351,360,369,379,388,397,406,415,424,433,442,452,461,470,479,488,497,506,515,525,534,543,552,561,570,579,588,597,606,616,625,634,643,652,661,670,680,689,698,707,716,725,734,744,753,762,771,780,789,798,807,817,826,835,844,853,863,872,881,890,900,909,918,927,936,945,953,961,970,979],{"_path":5,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":9,"description":10,"slug":11,"order":12,"isParent":13,"icon":14,"_type":15,"_id":16,"_source":17,"_file":18,"_stem":19,"_extension":20,"children":21,"expanded":13},"/python/getting-started","python",false,"","Getting Started","Begin your Python programming journey. Learn what Python is, how to set it up, and write your first programs. Perfect for complete beginners starting their coding adventure.","getting-started",1,true,"pi pi-folder","markdown","content:python:1.getting-started.md","content","python/1.getting-started.md","python/1.getting-started","md",[22,31,40,49,58,67],{"_path":23,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":24,"description":25,"slug":26,"parentId":5,"order":27,"_type":15,"_id":28,"_source":17,"_file":29,"_stem":30,"_extension":20},"/python/what-is-python","What is Python","Discover Python's fascinating history, design philosophy, and key features. Learn why Python has become one of the world's most popular programming languages and perfect for beginners.","what-is-python",2,"content:python:2.what-is-python.md","python/2.what-is-python.md","python/2.what-is-python",{"_path":32,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":33,"description":34,"slug":35,"parentId":5,"order":36,"_type":15,"_id":37,"_source":17,"_file":38,"_stem":39,"_extension":20},"/python/setup-python","Setup Python","Learn how to install Python on your computer and set up your development environment. Step-by-step guide for Windows, macOS, and Linux with beginner-friendly instructions.","setup-python",3,"content:python:3.setup-python.md","python/3.setup-python.md","python/3.setup-python",{"_path":41,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":42,"description":43,"slug":44,"parentId":5,"order":45,"_type":15,"_id":46,"_source":17,"_file":47,"_stem":48,"_extension":20},"/python/your-first-program","Your First Program","Write and run your first Python program! Learn the basics of Python programming with simple examples and step-by-step instructions for beginners.","your-first-program",4,"content:python:4.your-first-program.md","python/4.your-first-program.md","python/4.your-first-program",{"_path":50,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":51,"description":52,"slug":53,"parentId":5,"order":54,"_type":15,"_id":55,"_source":17,"_file":56,"_stem":57,"_extension":20},"/python/python-code-structure","Python Code Structure","Learn how Python code is organized and structured. Understand indentation, line breaks, and the basic rules that make Python programs work correctly.","python-code-structure",5,"content:python:5.python-code-structure.md","python/5.python-code-structure.md","python/5.python-code-structure",{"_path":59,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":60,"description":61,"slug":62,"parentId":5,"order":63,"_type":15,"_id":64,"_source":17,"_file":65,"_stem":66,"_extension":20},"/python/writing-comments","Writing Comments","Learn how to write effective comments in Python. Discover when and how to document your code to make it clear, maintainable, and easy to understand.","writing-comments",6,"content:python:6.writing-comments.md","python/6.writing-comments.md","python/6.writing-comments",{"_path":68,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":69,"description":70,"slug":71,"parentId":5,"order":72,"_type":15,"_id":73,"_source":17,"_file":74,"_stem":75,"_extension":20},"/python/working-with-variables","Working with Variables","Learn how to create, use, and manage variables in Python. Understand how to store data, change values, and follow naming conventions for clean, readable code.","working-with-variables",7,"content:python:7.working-with-variables.md","python/7.working-with-variables.md","python/7.working-with-variables",{"_path":77,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":78,"description":79,"slug":80,"order":81,"isParent":13,"icon":14,"_type":15,"_id":82,"_source":17,"_file":83,"_stem":84,"_extension":20,"children":85,"expanded":13},"/python/basic-data-types","Basic Data Types","Learn about Python's fundamental data types including numbers, text, and boolean values","basic-data-types",8,"content:python:8.basic-data-types.md","python/8.basic-data-types.md","python/8.basic-data-types",[86,95,104,113,122],{"_path":87,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":88,"description":89,"slug":90,"parentId":77,"order":91,"_type":15,"_id":92,"_source":17,"_file":93,"_stem":94,"_extension":20},"/python/understanding-data-types","Understanding Data Types","Learn how Python identifies different data types and why they're important for programming","understanding-data-types",9,"content:python:9.understanding-data-types.md","python/9.understanding-data-types.md","python/9.understanding-data-types",{"_path":96,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":97,"description":98,"slug":99,"parentId":77,"order":100,"_type":15,"_id":101,"_source":17,"_file":102,"_stem":103,"_extension":20},"/python/working-with-numbers","Working with Numbers","Learn about Python's numeric data types including integers and floats, and how to perform calculations","working-with-numbers",10,"content:python:10.working-with-numbers.md","python/10.working-with-numbers.md","python/10.working-with-numbers",{"_path":105,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":106,"description":107,"slug":108,"parentId":77,"order":109,"_type":15,"_id":110,"_source":17,"_file":111,"_stem":112,"_extension":20},"/python/text-and-strings","Text and Strings","Learn how to work with text data in Python using strings, including creation, manipulation, and formatting","text-and-strings",11,"content:python:11.text-and-strings.md","python/11.text-and-strings.md","python/11.text-and-strings",{"_path":114,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":115,"description":116,"slug":117,"parentId":77,"order":118,"_type":15,"_id":119,"_source":17,"_file":120,"_stem":121,"_extension":20},"/python/true-false-values","True/False Values","Learn about boolean values in Python, including True/False logic, comparison operations, and how to use booleans for decision-making in your programs","true-false-values",12,"content:python:12.true-false-values.md","python/12.true-false-values.md","python/12.true-false-values",{"_path":123,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":124,"description":125,"slug":126,"parentId":77,"order":127,"_type":15,"_id":128,"_source":17,"_file":129,"_stem":130,"_extension":20},"/python/converting-types","Converting Types","Learn how to convert between different Python data types including strings, numbers, and booleans","converting-types",13,"content:python:13.converting-types.md","python/13.converting-types.md","python/13.converting-types",{"_path":132,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":133,"description":134,"slug":135,"order":136,"isParent":13,"icon":14,"_type":15,"_id":137,"_source":17,"_file":138,"_stem":139,"_extension":20,"children":140,"expanded":13},"/python/python-operators","Python Operators","Learn about Python operators - the symbols and keywords that perform operations on data. Discover arithmetic, comparison, logical, and assignment operators with simple examples.","python-operators",14,"content:python:14.python-operators.md","python/14.python-operators.md","python/14.python-operators",[141,150,159,168,177],{"_path":142,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":143,"description":144,"slug":145,"parentId":132,"order":146,"_type":15,"_id":147,"_source":17,"_file":148,"_stem":149,"_extension":20},"/python/math-operations","Math Operations","Learn Python's arithmetic operators for mathematical calculations. Master addition, subtraction, multiplication, division, and more with practical examples.","math-operations",15,"content:python:15.math-operations.md","python/15.math-operations.md","python/15.math-operations",{"_path":151,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":152,"description":153,"slug":154,"parentId":132,"order":155,"_type":15,"_id":156,"_source":17,"_file":157,"_stem":158,"_extension":20},"/python/comparing-values","Comparing Values","Learn Python's comparison operators to compare values and make decisions. Master equality, inequality, and relational operators with practical examples.","comparing-values",16,"content:python:16.comparing-values.md","python/16.comparing-values.md","python/16.comparing-values",{"_path":160,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":161,"description":162,"slug":163,"parentId":132,"order":164,"_type":15,"_id":165,"_source":17,"_file":166,"_stem":167,"_extension":20},"/python/logic-operations","Logic Operations","Learn about Python's logical operators for combining conditions and creating complex boolean expressions","logic-operations",17,"content:python:17.logic-operations.md","python/17.logic-operations.md","python/17.logic-operations",{"_path":169,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":170,"description":171,"slug":172,"parentId":132,"order":173,"_type":15,"_id":174,"_source":17,"_file":175,"_stem":176,"_extension":20},"/python/value-assignment","Value Assignment","Learn about Python's assignment operators for efficiently updating variables and performing calculations","value-assignment",18,"content:python:18.value-assignment.md","python/18.value-assignment.md","python/18.value-assignment",{"_path":178,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":179,"description":180,"slug":181,"parentId":132,"order":182,"_type":15,"_id":183,"_source":17,"_file":184,"_stem":185,"_extension":20},"/python/operator-precedence","Operator Precedence","Learn how Python evaluates expressions with multiple operators and how to control evaluation order","operator-precedence",19,"content:python:19.operator-precedence.md","python/19.operator-precedence.md","python/19.operator-precedence",{"_path":187,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":188,"description":189,"slug":190,"order":191,"isParent":13,"icon":14,"_type":15,"_id":192,"_source":17,"_file":193,"_stem":194,"_extension":20,"children":195,"expanded":13},"/python/decision-making","Decision Making","Learn how to make decisions in your Python programs using conditional statements and control flow","decision-making",20,"content:python:20.decision-making.md","python/20.decision-making.md","python/20.decision-making",[196,205,214],{"_path":197,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":198,"description":199,"slug":200,"parentId":187,"order":201,"_type":15,"_id":202,"_source":17,"_file":203,"_stem":204,"_extension":20},"/python/if-statements","If Statements","Learn how to use if statements to make decisions and control program flow in Python","if-statements",21,"content:python:21.if-statements.md","python/21.if-statements.md","python/21.if-statements",{"_path":206,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":207,"description":208,"slug":209,"parentId":187,"order":210,"_type":15,"_id":211,"_source":17,"_file":212,"_stem":213,"_extension":20},"/python/multiple-conditions","Multiple Conditions","Learn how to handle multiple conditions using elif statements and complex conditional logic in Python","multiple-conditions",22,"content:python:22.multiple-conditions.md","python/22.multiple-conditions.md","python/22.multiple-conditions",{"_path":215,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":216,"description":217,"slug":218,"parentId":187,"order":219,"_type":15,"_id":220,"_source":17,"_file":221,"_stem":222,"_extension":20},"/python/pattern-matching","Pattern Matching","Learn how to use Python's match-case statements for powerful pattern matching and complex decision making","pattern-matching",23,"content:python:23.pattern-matching.md","python/23.pattern-matching.md","python/23.pattern-matching",{"_path":224,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":225,"description":226,"slug":227,"order":228,"isParent":13,"icon":14,"_type":15,"_id":229,"_source":17,"_file":230,"_stem":231,"_extension":20,"children":232,"expanded":13},"/python/repetition-and-loops","Python Loops","Learn how to use loops to repeat code efficiently and handle repetitive tasks in Python","repetition-and-loops",24,"content:python:24.repetition-and-loops.md","python/24.repetition-and-loops.md","python/24.repetition-and-loops",[233,242,251,260],{"_path":234,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":235,"description":236,"slug":237,"parentId":224,"order":238,"_type":15,"_id":239,"_source":17,"_file":240,"_stem":241,"_extension":20},"/python/while-loops","While Loops","Learn how to use while loops for condition-based repetition and create loops that run until specific conditions are met","while-loops",25,"content:python:25.while-loops.md","python/25.while-loops.md","python/25.while-loops",{"_path":243,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":244,"description":245,"slug":246,"parentId":224,"order":247,"_type":15,"_id":248,"_source":17,"_file":249,"_stem":250,"_extension":20},"/python/for-loops","For Loops","Learn how to use for loops to iterate through sequences, collections, and ranges efficiently in Python","for-loops",26,"content:python:26.for-loops.md","python/26.for-loops.md","python/26.for-loops",{"_path":252,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":253,"description":254,"slug":255,"parentId":224,"order":256,"_type":15,"_id":257,"_source":17,"_file":258,"_stem":259,"_extension":20},"/python/loop-control","Loop Control","Master advanced loop control techniques including break, continue, and else clauses for sophisticated iteration patterns","loop-control",27,"content:python:27.loop-control.md","python/27.loop-control.md","python/27.loop-control",{"_path":261,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":262,"description":263,"slug":264,"parentId":224,"order":265,"_type":15,"_id":266,"_source":17,"_file":267,"_stem":268,"_extension":20},"/python/nested-loops","Nested Loops","Learn how to use nested loops to process multi-dimensional data, create patterns, and handle complex iteration scenarios","nested-loops",28,"content:python:28.nested-loops.md","python/28.nested-loops.md","python/28.nested-loops",{"_path":270,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":271,"description":272,"slug":273,"order":274,"isParent":13,"icon":14,"_type":15,"_id":275,"_source":17,"_file":276,"_stem":277,"_extension":20,"children":278,"expanded":13},"/python/python-lists","Python Lists","Learn about Python lists, one of the most important and versatile data structures for storing and organizing collections of data","python-lists",29,"content:python:29.python-lists.md","python/29.python-lists.md","python/29.python-lists",[279,288,297,306,315,324,333,342,351,360],{"_path":280,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":281,"description":282,"slug":283,"parentId":270,"order":284,"_type":15,"_id":285,"_source":17,"_file":286,"_stem":287,"_extension":20},"/python/creating-lists","Creating Lists","Learn different methods to create and initialize Python lists, from simple literals to advanced techniques","creating-lists",30,"content:python:30.creating-lists.md","python/30.creating-lists.md","python/30.creating-lists",{"_path":289,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":290,"description":291,"slug":292,"parentId":270,"order":293,"_type":15,"_id":294,"_source":17,"_file":295,"_stem":296,"_extension":20},"/python/reading-list-data","Reading List Data","Master techniques for accessing and retrieving data from Python lists using indexing, slicing, and built-in methods","reading-list-data",31,"content:python:31.reading-list-data.md","python/31.reading-list-data.md","python/31.reading-list-data",{"_path":298,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":299,"description":300,"slug":301,"parentId":270,"order":302,"_type":15,"_id":303,"_source":17,"_file":304,"_stem":305,"_extension":20},"/python/modifying-lists","Modifying Lists","Learn how to change, update, and modify existing elements in Python lists using indexing and various methods","modifying-lists",32,"content:python:32.modifying-lists.md","python/32.modifying-lists.md","python/32.modifying-lists",{"_path":307,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":308,"description":309,"slug":310,"parentId":270,"order":311,"_type":15,"_id":312,"_source":17,"_file":313,"_stem":314,"_extension":20},"/python/adding-to-lists","Adding to Lists","Learn various methods to add elements to Python lists including append, insert, extend, and concatenation techniques","adding-to-lists",33,"content:python:33.adding-to-lists.md","python/33.adding-to-lists.md","python/33.adding-to-lists",{"_path":316,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":317,"description":318,"slug":319,"parentId":270,"order":320,"_type":15,"_id":321,"_source":17,"_file":322,"_stem":323,"_extension":20},"/python/removing-from-lists","Removing from Lists","Learn different methods to remove and delete elements from Python lists including remove, pop, del, and clear","removing-from-lists",34,"content:python:34.removing-from-lists.md","python/34.removing-from-lists.md","python/34.removing-from-lists",{"_path":325,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":326,"description":327,"slug":328,"parentId":270,"order":329,"_type":15,"_id":330,"_source":17,"_file":331,"_stem":332,"_extension":20},"/python/looping-through-lists","Looping Through Lists","Learn different ways to iterate through Python lists using for loops, while loops, enumerate, and other iteration techniques","looping-through-lists",35,"content:python:35.looping-through-lists.md","python/35.looping-through-lists.md","python/35.looping-through-lists",{"_path":334,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":335,"description":336,"slug":337,"parentId":270,"order":338,"_type":15,"_id":339,"_source":17,"_file":340,"_stem":341,"_extension":20},"/python/list-shortcuts","List Shortcuts","Learn powerful Python list shortcuts including list comprehensions, slicing tricks, and built-in functions for efficient list operations","list-shortcuts",36,"content:python:36.list-shortcuts.md","python/36.list-shortcuts.md","python/36.list-shortcuts",{"_path":343,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":344,"description":345,"slug":346,"parentId":270,"order":347,"_type":15,"_id":348,"_source":17,"_file":349,"_stem":350,"_extension":20},"/python/organizing-lists","Organizing Lists","Learn how to sort, reverse, and organize Python lists using built-in methods and custom sorting techniques","organizing-lists",37,"content:python:37.organizing-lists.md","python/37.organizing-lists.md","python/37.organizing-lists",{"_path":352,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":353,"description":354,"slug":355,"parentId":270,"order":356,"_type":15,"_id":357,"_source":17,"_file":358,"_stem":359,"_extension":20},"/python/combining-lists","Combining Lists","Learn various techniques to combine, merge, and join Python lists including concatenation, zipping, and advanced merging strategies","combining-lists",38,"content:python:38.combining-lists.md","python/38.combining-lists.md","python/38.combining-lists",{"_path":361,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":362,"description":363,"slug":364,"parentId":270,"order":365,"_type":15,"_id":366,"_source":17,"_file":367,"_stem":368,"_extension":20},"/python/essential-list-tools","Essential List Tools","Master powerful built-in functions and advanced techniques for efficient Python list manipulation and data processing","essential-list-tools",39,"content:python:39.essential-list-tools.md","python/39.essential-list-tools.md","python/39.essential-list-tools",{"_path":370,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":371,"description":372,"slug":373,"order":374,"isParent":13,"icon":14,"_type":15,"_id":375,"_source":17,"_file":376,"_stem":377,"_extension":20,"children":378,"expanded":13},"/python/python-tuples","Python Tuples","Master Python tuples - immutable sequences perfect for storing related data that shouldn't change. Learn creation, access, and manipulation techniques.","python-tuples",40,"content:python:40.python-tuples.md","python/40.python-tuples.md","python/40.python-tuples",[379,388,397,406,415,424,433],{"_path":380,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":381,"description":382,"slug":383,"parentId":370,"order":384,"_type":15,"_id":385,"_source":17,"_file":386,"_stem":387,"_extension":20},"/python/creating-tuples","Creating Tuples","Learn different ways to create Python tuples, from basic syntax to advanced techniques. Master tuple initialization and understand when to use tuples.","creating-tuples",41,"content:python:41.creating-tuples.md","python/41.creating-tuples.md","python/41.creating-tuples",{"_path":389,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":390,"description":391,"slug":392,"parentId":370,"order":393,"_type":15,"_id":394,"_source":17,"_file":395,"_stem":396,"_extension":20},"/python/reading-tuple-data","Reading Tuple Data","Master accessing tuple elements through indexing, slicing, and searching. Learn efficient patterns for reading and working with tuple data.","reading-tuple-data",42,"content:python:42.reading-tuple-data.md","python/42.reading-tuple-data.md","python/42.reading-tuple-data",{"_path":398,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":399,"description":400,"slug":401,"parentId":370,"order":402,"_type":15,"_id":403,"_source":17,"_file":404,"_stem":405,"_extension":20},"/python/changing-tuples","Changing Tuples","Understand tuple immutability and learn techniques for working with unchangeable data. Master creating modified tuple versions and handling immutable constraints.","changing-tuples",43,"content:python:43.changing-tuples.md","python/43.changing-tuples.md","python/43.changing-tuples",{"_path":407,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":408,"description":409,"slug":410,"parentId":370,"order":411,"_type":15,"_id":412,"_source":17,"_file":413,"_stem":414,"_extension":20},"/python/tuple-unpacking","Tuple Unpacking","Master tuple unpacking for elegant variable assignment, function returns, and data extraction. Learn Python's powerful unpacking syntax and patterns.","tuple-unpacking",44,"content:python:44.tuple-unpacking.md","python/44.tuple-unpacking.md","python/44.tuple-unpacking",{"_path":416,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":417,"description":418,"slug":419,"parentId":370,"order":420,"_type":15,"_id":421,"_source":17,"_file":422,"_stem":423,"_extension":20},"/python/iterating-tuples","Iterating Tuples","Master tuple iteration techniques for processing sequence data. Learn basic loops, enumerate, nested iteration, and advanced patterns for efficient data processing.","iterating-tuples",45,"content:python:45.iterating-tuples.md","python/45.iterating-tuples.md","python/45.iterating-tuples",{"_path":425,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":426,"description":427,"slug":428,"parentId":370,"order":429,"_type":15,"_id":430,"_source":17,"_file":431,"_stem":432,"_extension":20},"/python/merging-tuples","Merging Tuples","Learn techniques for combining and merging tuples to create larger data structures. Master concatenation, joining multiple tuples, and advanced merging patterns.","merging-tuples",46,"content:python:46.merging-tuples.md","python/46.merging-tuples.md","python/46.merging-tuples",{"_path":434,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":435,"description":436,"slug":437,"parentId":370,"order":438,"_type":15,"_id":439,"_source":17,"_file":440,"_stem":441,"_extension":20},"/python/tuple-operations","Tuple Operations","Master comprehensive tuple operations including built-in functions, mathematical operations, comparisons, and advanced techniques for efficient tuple manipulation.","tuple-operations",47,"content:python:47.tuple-operations.md","python/47.tuple-operations.md","python/47.tuple-operations",{"_path":443,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":444,"description":445,"slug":446,"order":447,"isParent":13,"icon":14,"_type":15,"_id":448,"_source":17,"_file":449,"_stem":450,"_extension":20,"children":451,"expanded":13},"/python/python-sets","Python Sets","Discover Python sets - unique collections that automatically eliminate duplicates and provide powerful mathematical operations for data filtering and analysis.","python-sets",48,"content:python:48.python-sets.md","python/48.python-sets.md","python/48.python-sets",[452,461,470,479,488,497,506],{"_path":453,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":454,"description":455,"slug":456,"parentId":443,"order":457,"_type":15,"_id":458,"_source":17,"_file":459,"_stem":460,"_extension":20},"/python/creating-sets","Creating Sets","Learn multiple ways to create sets in Python including literal syntax, set() function, and set comprehensions. Master set creation from different data sources.","creating-sets",49,"content:python:49.creating-sets.md","python/49.creating-sets.md","python/49.creating-sets",{"_path":462,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":463,"description":464,"slug":465,"parentId":443,"order":466,"_type":15,"_id":467,"_source":17,"_file":468,"_stem":469,"_extension":20},"/python/reading-set-data","Reading Set Data","Learn how to access and examine set data in Python including membership testing, iteration, size checking, and converting sets to other data types.","reading-set-data",50,"content:python:50.reading-set-data.md","python/50.reading-set-data.md","python/50.reading-set-data",{"_path":471,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":472,"description":473,"slug":474,"parentId":443,"order":475,"_type":15,"_id":476,"_source":17,"_file":477,"_stem":478,"_extension":20},"/python/adding-to-sets","Adding to Sets","Learn how to add elements to sets in Python using add(), update(), and union operations. Master growing sets dynamically with single items and multiple elements.","adding-to-sets",51,"content:python:51.adding-to-sets.md","python/51.adding-to-sets.md","python/51.adding-to-sets",{"_path":480,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":481,"description":482,"slug":483,"parentId":443,"order":484,"_type":15,"_id":485,"_source":17,"_file":486,"_stem":487,"_extension":20},"/python/removing-from-sets","Removing from Sets","Learn how to remove elements from Python sets using different methods like remove(), discard(), pop(), and clear()","removing-from-sets",52,"content:python:52.removing-from-sets.md","python/52.removing-from-sets.md","python/52.removing-from-sets",{"_path":489,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":490,"description":491,"slug":492,"parentId":443,"order":493,"_type":15,"_id":494,"_source":17,"_file":495,"_stem":496,"_extension":20},"/python/iterating-sets","Iterating Sets","Learn different ways to iterate through Python sets using for loops, comprehensions, and built-in functions","iterating-sets",53,"content:python:53.iterating-sets.md","python/53.iterating-sets.md","python/53.iterating-sets",{"_path":498,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":499,"description":500,"slug":501,"parentId":443,"order":502,"_type":15,"_id":503,"_source":17,"_file":504,"_stem":505,"_extension":20},"/python/combining-sets","Combining Sets","Learn how to combine Python sets using union, intersection, difference, and other set operations","combining-sets",54,"content:python:54.combining-sets.md","python/54.combining-sets.md","python/54.combining-sets",{"_path":507,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":508,"description":509,"slug":510,"parentId":443,"order":511,"_type":15,"_id":512,"_source":17,"_file":513,"_stem":514,"_extension":20},"/python/set-operations","Set Operations","Learn advanced Python set operations including comparisons, subsets, supersets, and mathematical set relationships","set-operations",55,"content:python:55.set-operations.md","python/55.set-operations.md","python/55.set-operations",{"_path":516,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":517,"description":518,"slug":519,"order":520,"isParent":13,"icon":14,"_type":15,"_id":521,"_source":17,"_file":522,"_stem":523,"_extension":20,"children":524},"/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",[515],{"_path":516,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":517,"description":518,"slug":519,"order":520,"isParent":13,"icon":14,"body":989,"_type":15,"_id":521,"_source":17,"_file":522,"_stem":523,"_extension":20},{"type":990,"children":991,"toc":3222},"root",[992,1000,1006,1221,1228,1233,1471,1529,1535,1540,1718,1724,1729,1736,1741,1920,1926,1931,2177,2183,2188,2364,2370,2375,2421,2427,2432,2665,2671,2676,2682,2737,2743,2785,2791,2796,2985,3041,3047,3052,3176,3188,3194,3205,3216],{"type":993,"tag":994,"props":995,"children":996},"element","h1",{"id":519},[997],{"type":998,"value":999},"text","📚 Python Dictionaries",{"type":993,"tag":1001,"props":1002,"children":1003},"p",{},[1004],{"type":998,"value":1005},"Dictionaries are Python's most versatile data structure for storing key-value pairs. They provide fast, efficient access to data through unique keys, making them essential for organizing related information and building complex applications.",{"type":993,"tag":1007,"props":1008,"children":1009},"code-try",{},[1010],{"type":993,"tag":1011,"props":1012,"children":1015},"pre",{"className":1013,"code":1014,"language":6,"meta":8,"style":8},"language-python shiki shiki-themes github-light github-dark","# Basic dictionary example\nstudent = {\n    'name': 'Alice',\n    'age': 20,\n    'grade': 'A',\n    'courses': ['Math', 'Science']\n}\n\nprint(\"Student info:\", student)\nprint(\"Student name:\", student['name'])\n",[1016],{"type":993,"tag":1017,"props":1018,"children":1019},"code",{"__ignoreMap":8},[1020,1031,1051,1075,1097,1118,1151,1159,1167,1190],{"type":993,"tag":1021,"props":1022,"children":1024},"span",{"class":1023,"line":12},"line",[1025],{"type":993,"tag":1021,"props":1026,"children":1028},{"style":1027},"--shiki-default:#6A737D;--shiki-app-dark-mode:#6A737D",[1029],{"type":998,"value":1030},"# Basic dictionary example\n",{"type":993,"tag":1021,"props":1032,"children":1033},{"class":1023,"line":27},[1034,1040,1046],{"type":993,"tag":1021,"props":1035,"children":1037},{"style":1036},"--shiki-default:#24292E;--shiki-app-dark-mode:#E1E4E8",[1038],{"type":998,"value":1039},"student ",{"type":993,"tag":1021,"props":1041,"children":1043},{"style":1042},"--shiki-default:#D73A49;--shiki-app-dark-mode:#F97583",[1044],{"type":998,"value":1045},"=",{"type":993,"tag":1021,"props":1047,"children":1048},{"style":1036},[1049],{"type":998,"value":1050}," {\n",{"type":993,"tag":1021,"props":1052,"children":1053},{"class":1023,"line":36},[1054,1060,1065,1070],{"type":993,"tag":1021,"props":1055,"children":1057},{"style":1056},"--shiki-default:#032F62;--shiki-app-dark-mode:#9ECBFF",[1058],{"type":998,"value":1059},"    'name'",{"type":993,"tag":1021,"props":1061,"children":1062},{"style":1036},[1063],{"type":998,"value":1064},": ",{"type":993,"tag":1021,"props":1066,"children":1067},{"style":1056},[1068],{"type":998,"value":1069},"'Alice'",{"type":993,"tag":1021,"props":1071,"children":1072},{"style":1036},[1073],{"type":998,"value":1074},",\n",{"type":993,"tag":1021,"props":1076,"children":1077},{"class":1023,"line":45},[1078,1083,1087,1093],{"type":993,"tag":1021,"props":1079,"children":1080},{"style":1056},[1081],{"type":998,"value":1082},"    'age'",{"type":993,"tag":1021,"props":1084,"children":1085},{"style":1036},[1086],{"type":998,"value":1064},{"type":993,"tag":1021,"props":1088,"children":1090},{"style":1089},"--shiki-default:#005CC5;--shiki-app-dark-mode:#79B8FF",[1091],{"type":998,"value":1092},"20",{"type":993,"tag":1021,"props":1094,"children":1095},{"style":1036},[1096],{"type":998,"value":1074},{"type":993,"tag":1021,"props":1098,"children":1099},{"class":1023,"line":54},[1100,1105,1109,1114],{"type":993,"tag":1021,"props":1101,"children":1102},{"style":1056},[1103],{"type":998,"value":1104},"    'grade'",{"type":993,"tag":1021,"props":1106,"children":1107},{"style":1036},[1108],{"type":998,"value":1064},{"type":993,"tag":1021,"props":1110,"children":1111},{"style":1056},[1112],{"type":998,"value":1113},"'A'",{"type":993,"tag":1021,"props":1115,"children":1116},{"style":1036},[1117],{"type":998,"value":1074},{"type":993,"tag":1021,"props":1119,"children":1120},{"class":1023,"line":63},[1121,1126,1131,1136,1141,1146],{"type":993,"tag":1021,"props":1122,"children":1123},{"style":1056},[1124],{"type":998,"value":1125},"    'courses'",{"type":993,"tag":1021,"props":1127,"children":1128},{"style":1036},[1129],{"type":998,"value":1130},": [",{"type":993,"tag":1021,"props":1132,"children":1133},{"style":1056},[1134],{"type":998,"value":1135},"'Math'",{"type":993,"tag":1021,"props":1137,"children":1138},{"style":1036},[1139],{"type":998,"value":1140},", ",{"type":993,"tag":1021,"props":1142,"children":1143},{"style":1056},[1144],{"type":998,"value":1145},"'Science'",{"type":993,"tag":1021,"props":1147,"children":1148},{"style":1036},[1149],{"type":998,"value":1150},"]\n",{"type":993,"tag":1021,"props":1152,"children":1153},{"class":1023,"line":72},[1154],{"type":993,"tag":1021,"props":1155,"children":1156},{"style":1036},[1157],{"type":998,"value":1158},"}\n",{"type":993,"tag":1021,"props":1160,"children":1161},{"class":1023,"line":81},[1162],{"type":993,"tag":1021,"props":1163,"children":1164},{"emptyLinePlaceholder":13},[1165],{"type":998,"value":1166},"\n",{"type":993,"tag":1021,"props":1168,"children":1169},{"class":1023,"line":91},[1170,1175,1180,1185],{"type":993,"tag":1021,"props":1171,"children":1172},{"style":1089},[1173],{"type":998,"value":1174},"print",{"type":993,"tag":1021,"props":1176,"children":1177},{"style":1036},[1178],{"type":998,"value":1179},"(",{"type":993,"tag":1021,"props":1181,"children":1182},{"style":1056},[1183],{"type":998,"value":1184},"\"Student info:\"",{"type":993,"tag":1021,"props":1186,"children":1187},{"style":1036},[1188],{"type":998,"value":1189},", student)\n",{"type":993,"tag":1021,"props":1191,"children":1192},{"class":1023,"line":100},[1193,1197,1201,1206,1211,1216],{"type":993,"tag":1021,"props":1194,"children":1195},{"style":1089},[1196],{"type":998,"value":1174},{"type":993,"tag":1021,"props":1198,"children":1199},{"style":1036},[1200],{"type":998,"value":1179},{"type":993,"tag":1021,"props":1202,"children":1203},{"style":1056},[1204],{"type":998,"value":1205},"\"Student name:\"",{"type":993,"tag":1021,"props":1207,"children":1208},{"style":1036},[1209],{"type":998,"value":1210},", student[",{"type":993,"tag":1021,"props":1212,"children":1213},{"style":1056},[1214],{"type":998,"value":1215},"'name'",{"type":993,"tag":1021,"props":1217,"children":1218},{"style":1036},[1219],{"type":998,"value":1220},"])\n",{"type":993,"tag":1222,"props":1223,"children":1225},"h2",{"id":1224},"what-are-dictionaries",[1226],{"type":998,"value":1227},"🎯 What Are Dictionaries?",{"type":993,"tag":1001,"props":1229,"children":1230},{},[1231],{"type":998,"value":1232},"Dictionaries store data as key-value pairs, where each key provides direct access to its corresponding value. This association makes dictionaries ideal for representing real-world relationships and structured data.",{"type":993,"tag":1007,"props":1234,"children":1235},{},[1236],{"type":993,"tag":1011,"props":1237,"children":1239},{"className":1013,"code":1238,"language":6,"meta":8,"style":8},"# Dictionary represents relationships\ninventory = {\n    'apples': 50,\n    'bananas': 30,\n    'oranges': 25\n}\n\n# Fast lookup by key\nprint(\"Apples in stock:\", inventory['apples'])\n\n# Check if key exists\nif 'grapes' in inventory:\n    print(\"Grapes available\")\nelse:\n    print(\"Grapes not in inventory\")\n",[1240],{"type":993,"tag":1017,"props":1241,"children":1242},{"__ignoreMap":8},[1243,1251,1267,1288,1309,1326,1333,1340,1348,1378,1385,1393,1416,1438,1451],{"type":993,"tag":1021,"props":1244,"children":1245},{"class":1023,"line":12},[1246],{"type":993,"tag":1021,"props":1247,"children":1248},{"style":1027},[1249],{"type":998,"value":1250},"# Dictionary represents relationships\n",{"type":993,"tag":1021,"props":1252,"children":1253},{"class":1023,"line":27},[1254,1259,1263],{"type":993,"tag":1021,"props":1255,"children":1256},{"style":1036},[1257],{"type":998,"value":1258},"inventory ",{"type":993,"tag":1021,"props":1260,"children":1261},{"style":1042},[1262],{"type":998,"value":1045},{"type":993,"tag":1021,"props":1264,"children":1265},{"style":1036},[1266],{"type":998,"value":1050},{"type":993,"tag":1021,"props":1268,"children":1269},{"class":1023,"line":36},[1270,1275,1279,1284],{"type":993,"tag":1021,"props":1271,"children":1272},{"style":1056},[1273],{"type":998,"value":1274},"    'apples'",{"type":993,"tag":1021,"props":1276,"children":1277},{"style":1036},[1278],{"type":998,"value":1064},{"type":993,"tag":1021,"props":1280,"children":1281},{"style":1089},[1282],{"type":998,"value":1283},"50",{"type":993,"tag":1021,"props":1285,"children":1286},{"style":1036},[1287],{"type":998,"value":1074},{"type":993,"tag":1021,"props":1289,"children":1290},{"class":1023,"line":45},[1291,1296,1300,1305],{"type":993,"tag":1021,"props":1292,"children":1293},{"style":1056},[1294],{"type":998,"value":1295},"    'bananas'",{"type":993,"tag":1021,"props":1297,"children":1298},{"style":1036},[1299],{"type":998,"value":1064},{"type":993,"tag":1021,"props":1301,"children":1302},{"style":1089},[1303],{"type":998,"value":1304},"30",{"type":993,"tag":1021,"props":1306,"children":1307},{"style":1036},[1308],{"type":998,"value":1074},{"type":993,"tag":1021,"props":1310,"children":1311},{"class":1023,"line":54},[1312,1317,1321],{"type":993,"tag":1021,"props":1313,"children":1314},{"style":1056},[1315],{"type":998,"value":1316},"    'oranges'",{"type":993,"tag":1021,"props":1318,"children":1319},{"style":1036},[1320],{"type":998,"value":1064},{"type":993,"tag":1021,"props":1322,"children":1323},{"style":1089},[1324],{"type":998,"value":1325},"25\n",{"type":993,"tag":1021,"props":1327,"children":1328},{"class":1023,"line":63},[1329],{"type":993,"tag":1021,"props":1330,"children":1331},{"style":1036},[1332],{"type":998,"value":1158},{"type":993,"tag":1021,"props":1334,"children":1335},{"class":1023,"line":72},[1336],{"type":993,"tag":1021,"props":1337,"children":1338},{"emptyLinePlaceholder":13},[1339],{"type":998,"value":1166},{"type":993,"tag":1021,"props":1341,"children":1342},{"class":1023,"line":81},[1343],{"type":993,"tag":1021,"props":1344,"children":1345},{"style":1027},[1346],{"type":998,"value":1347},"# Fast lookup by key\n",{"type":993,"tag":1021,"props":1349,"children":1350},{"class":1023,"line":91},[1351,1355,1359,1364,1369,1374],{"type":993,"tag":1021,"props":1352,"children":1353},{"style":1089},[1354],{"type":998,"value":1174},{"type":993,"tag":1021,"props":1356,"children":1357},{"style":1036},[1358],{"type":998,"value":1179},{"type":993,"tag":1021,"props":1360,"children":1361},{"style":1056},[1362],{"type":998,"value":1363},"\"Apples in stock:\"",{"type":993,"tag":1021,"props":1365,"children":1366},{"style":1036},[1367],{"type":998,"value":1368},", inventory[",{"type":993,"tag":1021,"props":1370,"children":1371},{"style":1056},[1372],{"type":998,"value":1373},"'apples'",{"type":993,"tag":1021,"props":1375,"children":1376},{"style":1036},[1377],{"type":998,"value":1220},{"type":993,"tag":1021,"props":1379,"children":1380},{"class":1023,"line":100},[1381],{"type":993,"tag":1021,"props":1382,"children":1383},{"emptyLinePlaceholder":13},[1384],{"type":998,"value":1166},{"type":993,"tag":1021,"props":1386,"children":1387},{"class":1023,"line":109},[1388],{"type":993,"tag":1021,"props":1389,"children":1390},{"style":1027},[1391],{"type":998,"value":1392},"# Check if key exists\n",{"type":993,"tag":1021,"props":1394,"children":1395},{"class":1023,"line":118},[1396,1401,1406,1411],{"type":993,"tag":1021,"props":1397,"children":1398},{"style":1042},[1399],{"type":998,"value":1400},"if",{"type":993,"tag":1021,"props":1402,"children":1403},{"style":1056},[1404],{"type":998,"value":1405}," 'grapes'",{"type":993,"tag":1021,"props":1407,"children":1408},{"style":1042},[1409],{"type":998,"value":1410}," in",{"type":993,"tag":1021,"props":1412,"children":1413},{"style":1036},[1414],{"type":998,"value":1415}," inventory:\n",{"type":993,"tag":1021,"props":1417,"children":1418},{"class":1023,"line":127},[1419,1424,1428,1433],{"type":993,"tag":1021,"props":1420,"children":1421},{"style":1089},[1422],{"type":998,"value":1423},"    print",{"type":993,"tag":1021,"props":1425,"children":1426},{"style":1036},[1427],{"type":998,"value":1179},{"type":993,"tag":1021,"props":1429,"children":1430},{"style":1056},[1431],{"type":998,"value":1432},"\"Grapes available\"",{"type":993,"tag":1021,"props":1434,"children":1435},{"style":1036},[1436],{"type":998,"value":1437},")\n",{"type":993,"tag":1021,"props":1439,"children":1440},{"class":1023,"line":136},[1441,1446],{"type":993,"tag":1021,"props":1442,"children":1443},{"style":1042},[1444],{"type":998,"value":1445},"else",{"type":993,"tag":1021,"props":1447,"children":1448},{"style":1036},[1449],{"type":998,"value":1450},":\n",{"type":993,"tag":1021,"props":1452,"children":1453},{"class":1023,"line":146},[1454,1458,1462,1467],{"type":993,"tag":1021,"props":1455,"children":1456},{"style":1089},[1457],{"type":998,"value":1423},{"type":993,"tag":1021,"props":1459,"children":1460},{"style":1036},[1461],{"type":998,"value":1179},{"type":993,"tag":1021,"props":1463,"children":1464},{"style":1056},[1465],{"type":998,"value":1466},"\"Grapes not in inventory\"",{"type":993,"tag":1021,"props":1468,"children":1469},{"style":1036},[1470],{"type":998,"value":1437},{"type":993,"tag":1472,"props":1473,"children":1477},"info-box",{"emoji":1474,"title":1475,"type":1476},"🔑","Dictionary Characteristics","info",[1478,1489,1499,1509,1519],{"type":993,"tag":1001,"props":1479,"children":1480},{},[1481,1487],{"type":993,"tag":1482,"props":1483,"children":1484},"strong",{},[1485],{"type":998,"value":1486},"Key-Value Structure:",{"type":998,"value":1488}," Each element consists of a key and its associated value.",{"type":993,"tag":1001,"props":1490,"children":1491},{},[1492,1497],{"type":993,"tag":1482,"props":1493,"children":1494},{},[1495],{"type":998,"value":1496},"Unique Keys:",{"type":998,"value":1498}," Keys must be unique within a dictionary, ensuring direct access.",{"type":993,"tag":1001,"props":1500,"children":1501},{},[1502,1507],{"type":993,"tag":1482,"props":1503,"children":1504},{},[1505],{"type":998,"value":1506},"Mutable:",{"type":998,"value":1508}," Dictionaries can be modified after creation - add, update, or remove items.",{"type":993,"tag":1001,"props":1510,"children":1511},{},[1512,1517],{"type":993,"tag":1482,"props":1513,"children":1514},{},[1515],{"type":998,"value":1516},"Ordered:",{"type":998,"value":1518}," As of Python 3.7+, dictionaries maintain insertion order.",{"type":993,"tag":1001,"props":1520,"children":1521},{},[1522,1527],{"type":993,"tag":1482,"props":1523,"children":1524},{},[1525],{"type":998,"value":1526},"Fast Access:",{"type":998,"value":1528}," O(1) average time complexity for key-based operations.",{"type":993,"tag":1222,"props":1530,"children":1532},{"id":1531},"dictionary-vs-other-data-types",[1533],{"type":998,"value":1534},"⚡ Dictionary vs Other Data Types",{"type":993,"tag":1001,"props":1536,"children":1537},{},[1538],{"type":998,"value":1539},"Understanding when to use dictionaries compared to other data structures helps choose the right tool for each scenario.",{"type":993,"tag":1541,"props":1542,"children":1543},"table",{},[1544,1578],{"type":993,"tag":1545,"props":1546,"children":1547},"thead",{},[1548],{"type":993,"tag":1549,"props":1550,"children":1551},"tr",{},[1552,1558,1563,1568,1573],{"type":993,"tag":1553,"props":1554,"children":1555},"th",{},[1556],{"type":998,"value":1557},"Feature",{"type":993,"tag":1553,"props":1559,"children":1560},{},[1561],{"type":998,"value":1562},"Dictionary",{"type":993,"tag":1553,"props":1564,"children":1565},{},[1566],{"type":998,"value":1567},"List",{"type":993,"tag":1553,"props":1569,"children":1570},{},[1571],{"type":998,"value":1572},"Set",{"type":993,"tag":1553,"props":1574,"children":1575},{},[1576],{"type":998,"value":1577},"Tuple",{"type":993,"tag":1579,"props":1580,"children":1581},"tbody",{},[1582,1610,1637,1663,1690],{"type":993,"tag":1549,"props":1583,"children":1584},{},[1585,1591,1596,1601,1606],{"type":993,"tag":1586,"props":1587,"children":1588},"td",{},[1589],{"type":998,"value":1590},"Structure",{"type":993,"tag":1586,"props":1592,"children":1593},{},[1594],{"type":998,"value":1595},"Key-Value pairs",{"type":993,"tag":1586,"props":1597,"children":1598},{},[1599],{"type":998,"value":1600},"Indexed elements",{"type":993,"tag":1586,"props":1602,"children":1603},{},[1604],{"type":998,"value":1605},"Unique elements",{"type":993,"tag":1586,"props":1607,"children":1608},{},[1609],{"type":998,"value":1600},{"type":993,"tag":1549,"props":1611,"children":1612},{},[1613,1618,1623,1628,1633],{"type":993,"tag":1586,"props":1614,"children":1615},{},[1616],{"type":998,"value":1617},"Access Method",{"type":993,"tag":1586,"props":1619,"children":1620},{},[1621],{"type":998,"value":1622},"By key",{"type":993,"tag":1586,"props":1624,"children":1625},{},[1626],{"type":998,"value":1627},"By index",{"type":993,"tag":1586,"props":1629,"children":1630},{},[1631],{"type":998,"value":1632},"Membership only",{"type":993,"tag":1586,"props":1634,"children":1635},{},[1636],{"type":998,"value":1627},{"type":993,"tag":1549,"props":1638,"children":1639},{},[1640,1645,1650,1654,1658],{"type":993,"tag":1586,"props":1641,"children":1642},{},[1643],{"type":998,"value":1644},"Mutability",{"type":993,"tag":1586,"props":1646,"children":1647},{},[1648],{"type":998,"value":1649},"Mutable",{"type":993,"tag":1586,"props":1651,"children":1652},{},[1653],{"type":998,"value":1649},{"type":993,"tag":1586,"props":1655,"children":1656},{},[1657],{"type":998,"value":1649},{"type":993,"tag":1586,"props":1659,"children":1660},{},[1661],{"type":998,"value":1662},"Immutable",{"type":993,"tag":1549,"props":1664,"children":1665},{},[1666,1671,1676,1681,1686],{"type":993,"tag":1586,"props":1667,"children":1668},{},[1669],{"type":998,"value":1670},"Ordering",{"type":993,"tag":1586,"props":1672,"children":1673},{},[1674],{"type":998,"value":1675},"Ordered (Python 3.7+)",{"type":993,"tag":1586,"props":1677,"children":1678},{},[1679],{"type":998,"value":1680},"Ordered",{"type":993,"tag":1586,"props":1682,"children":1683},{},[1684],{"type":998,"value":1685},"Unordered",{"type":993,"tag":1586,"props":1687,"children":1688},{},[1689],{"type":998,"value":1680},{"type":993,"tag":1549,"props":1691,"children":1692},{},[1693,1698,1703,1708,1713],{"type":993,"tag":1586,"props":1694,"children":1695},{},[1696],{"type":998,"value":1697},"Use Case",{"type":993,"tag":1586,"props":1699,"children":1700},{},[1701],{"type":998,"value":1702},"Labeled data",{"type":993,"tag":1586,"props":1704,"children":1705},{},[1706],{"type":998,"value":1707},"Sequential data",{"type":993,"tag":1586,"props":1709,"children":1710},{},[1711],{"type":998,"value":1712},"Unique collections",{"type":993,"tag":1586,"props":1714,"children":1715},{},[1716],{"type":998,"value":1717},"Fixed data",{"type":993,"tag":1222,"props":1719,"children":1721},{"id":1720},"common-dictionary-applications",[1722],{"type":998,"value":1723},"🚀 Common Dictionary Applications",{"type":993,"tag":1001,"props":1725,"children":1726},{},[1727],{"type":998,"value":1728},"Dictionaries excel in scenarios requiring fast lookups, data organization, and relationship mapping.",{"type":993,"tag":1730,"props":1731,"children":1733},"h3",{"id":1732},"configuration-settings",[1734],{"type":998,"value":1735},"Configuration Settings",{"type":993,"tag":1001,"props":1737,"children":1738},{},[1739],{"type":998,"value":1740},"Application settings benefit from dictionary structure for organized, accessible configuration management.",{"type":993,"tag":1007,"props":1742,"children":1743},{},[1744],{"type":993,"tag":1011,"props":1745,"children":1747},{"className":1013,"code":1746,"language":6,"meta":8,"style":8},"config = {\n    'database_url': 'localhost:5432',\n    'debug_mode': True,\n    'max_connections': 100,\n    'timeout': 30\n}\n\nprint(\"Debug mode:\", config['debug_mode'])\nprint(\"Max connections:\", config['max_connections'])\n",[1748],{"type":993,"tag":1017,"props":1749,"children":1750},{"__ignoreMap":8},[1751,1767,1788,1809,1830,1847,1854,1861,1891],{"type":993,"tag":1021,"props":1752,"children":1753},{"class":1023,"line":12},[1754,1759,1763],{"type":993,"tag":1021,"props":1755,"children":1756},{"style":1036},[1757],{"type":998,"value":1758},"config ",{"type":993,"tag":1021,"props":1760,"children":1761},{"style":1042},[1762],{"type":998,"value":1045},{"type":993,"tag":1021,"props":1764,"children":1765},{"style":1036},[1766],{"type":998,"value":1050},{"type":993,"tag":1021,"props":1768,"children":1769},{"class":1023,"line":27},[1770,1775,1779,1784],{"type":993,"tag":1021,"props":1771,"children":1772},{"style":1056},[1773],{"type":998,"value":1774},"    'database_url'",{"type":993,"tag":1021,"props":1776,"children":1777},{"style":1036},[1778],{"type":998,"value":1064},{"type":993,"tag":1021,"props":1780,"children":1781},{"style":1056},[1782],{"type":998,"value":1783},"'localhost:5432'",{"type":993,"tag":1021,"props":1785,"children":1786},{"style":1036},[1787],{"type":998,"value":1074},{"type":993,"tag":1021,"props":1789,"children":1790},{"class":1023,"line":36},[1791,1796,1800,1805],{"type":993,"tag":1021,"props":1792,"children":1793},{"style":1056},[1794],{"type":998,"value":1795},"    'debug_mode'",{"type":993,"tag":1021,"props":1797,"children":1798},{"style":1036},[1799],{"type":998,"value":1064},{"type":993,"tag":1021,"props":1801,"children":1802},{"style":1089},[1803],{"type":998,"value":1804},"True",{"type":993,"tag":1021,"props":1806,"children":1807},{"style":1036},[1808],{"type":998,"value":1074},{"type":993,"tag":1021,"props":1810,"children":1811},{"class":1023,"line":45},[1812,1817,1821,1826],{"type":993,"tag":1021,"props":1813,"children":1814},{"style":1056},[1815],{"type":998,"value":1816},"    'max_connections'",{"type":993,"tag":1021,"props":1818,"children":1819},{"style":1036},[1820],{"type":998,"value":1064},{"type":993,"tag":1021,"props":1822,"children":1823},{"style":1089},[1824],{"type":998,"value":1825},"100",{"type":993,"tag":1021,"props":1827,"children":1828},{"style":1036},[1829],{"type":998,"value":1074},{"type":993,"tag":1021,"props":1831,"children":1832},{"class":1023,"line":54},[1833,1838,1842],{"type":993,"tag":1021,"props":1834,"children":1835},{"style":1056},[1836],{"type":998,"value":1837},"    'timeout'",{"type":993,"tag":1021,"props":1839,"children":1840},{"style":1036},[1841],{"type":998,"value":1064},{"type":993,"tag":1021,"props":1843,"children":1844},{"style":1089},[1845],{"type":998,"value":1846},"30\n",{"type":993,"tag":1021,"props":1848,"children":1849},{"class":1023,"line":63},[1850],{"type":993,"tag":1021,"props":1851,"children":1852},{"style":1036},[1853],{"type":998,"value":1158},{"type":993,"tag":1021,"props":1855,"children":1856},{"class":1023,"line":72},[1857],{"type":993,"tag":1021,"props":1858,"children":1859},{"emptyLinePlaceholder":13},[1860],{"type":998,"value":1166},{"type":993,"tag":1021,"props":1862,"children":1863},{"class":1023,"line":81},[1864,1868,1872,1877,1882,1887],{"type":993,"tag":1021,"props":1865,"children":1866},{"style":1089},[1867],{"type":998,"value":1174},{"type":993,"tag":1021,"props":1869,"children":1870},{"style":1036},[1871],{"type":998,"value":1179},{"type":993,"tag":1021,"props":1873,"children":1874},{"style":1056},[1875],{"type":998,"value":1876},"\"Debug mode:\"",{"type":993,"tag":1021,"props":1878,"children":1879},{"style":1036},[1880],{"type":998,"value":1881},", config[",{"type":993,"tag":1021,"props":1883,"children":1884},{"style":1056},[1885],{"type":998,"value":1886},"'debug_mode'",{"type":993,"tag":1021,"props":1888,"children":1889},{"style":1036},[1890],{"type":998,"value":1220},{"type":993,"tag":1021,"props":1892,"children":1893},{"class":1023,"line":91},[1894,1898,1902,1907,1911,1916],{"type":993,"tag":1021,"props":1895,"children":1896},{"style":1089},[1897],{"type":998,"value":1174},{"type":993,"tag":1021,"props":1899,"children":1900},{"style":1036},[1901],{"type":998,"value":1179},{"type":993,"tag":1021,"props":1903,"children":1904},{"style":1056},[1905],{"type":998,"value":1906},"\"Max connections:\"",{"type":993,"tag":1021,"props":1908,"children":1909},{"style":1036},[1910],{"type":998,"value":1881},{"type":993,"tag":1021,"props":1912,"children":1913},{"style":1056},[1914],{"type":998,"value":1915},"'max_connections'",{"type":993,"tag":1021,"props":1917,"children":1918},{"style":1036},[1919],{"type":998,"value":1220},{"type":993,"tag":1730,"props":1921,"children":1923},{"id":1922},"data-mapping",[1924],{"type":998,"value":1925},"Data Mapping",{"type":993,"tag":1001,"props":1927,"children":1928},{},[1929],{"type":998,"value":1930},"Dictionaries naturally represent mappings between related concepts, enabling efficient data transformation and lookup operations.",{"type":993,"tag":1007,"props":1932,"children":1933},{},[1934],{"type":993,"tag":1011,"props":1935,"children":1937},{"className":1013,"code":1936,"language":6,"meta":8,"style":8},"# Grade mapping\ngrade_points = {\n    'A': 4.0,\n    'B': 3.0,\n    'C': 2.0,\n    'D': 1.0,\n    'F': 0.0\n}\n\nstudent_grade = 'B'\ngpa_value = grade_points[student_grade]\nprint(f\"Grade {student_grade} = {gpa_value} points\")\n",[1938],{"type":993,"tag":1017,"props":1939,"children":1940},{"__ignoreMap":8},[1941,1949,1965,1986,2007,2028,2049,2066,2073,2080,2097,2114],{"type":993,"tag":1021,"props":1942,"children":1943},{"class":1023,"line":12},[1944],{"type":993,"tag":1021,"props":1945,"children":1946},{"style":1027},[1947],{"type":998,"value":1948},"# Grade mapping\n",{"type":993,"tag":1021,"props":1950,"children":1951},{"class":1023,"line":27},[1952,1957,1961],{"type":993,"tag":1021,"props":1953,"children":1954},{"style":1036},[1955],{"type":998,"value":1956},"grade_points ",{"type":993,"tag":1021,"props":1958,"children":1959},{"style":1042},[1960],{"type":998,"value":1045},{"type":993,"tag":1021,"props":1962,"children":1963},{"style":1036},[1964],{"type":998,"value":1050},{"type":993,"tag":1021,"props":1966,"children":1967},{"class":1023,"line":36},[1968,1973,1977,1982],{"type":993,"tag":1021,"props":1969,"children":1970},{"style":1056},[1971],{"type":998,"value":1972},"    'A'",{"type":993,"tag":1021,"props":1974,"children":1975},{"style":1036},[1976],{"type":998,"value":1064},{"type":993,"tag":1021,"props":1978,"children":1979},{"style":1089},[1980],{"type":998,"value":1981},"4.0",{"type":993,"tag":1021,"props":1983,"children":1984},{"style":1036},[1985],{"type":998,"value":1074},{"type":993,"tag":1021,"props":1987,"children":1988},{"class":1023,"line":45},[1989,1994,1998,2003],{"type":993,"tag":1021,"props":1990,"children":1991},{"style":1056},[1992],{"type":998,"value":1993},"    'B'",{"type":993,"tag":1021,"props":1995,"children":1996},{"style":1036},[1997],{"type":998,"value":1064},{"type":993,"tag":1021,"props":1999,"children":2000},{"style":1089},[2001],{"type":998,"value":2002},"3.0",{"type":993,"tag":1021,"props":2004,"children":2005},{"style":1036},[2006],{"type":998,"value":1074},{"type":993,"tag":1021,"props":2008,"children":2009},{"class":1023,"line":54},[2010,2015,2019,2024],{"type":993,"tag":1021,"props":2011,"children":2012},{"style":1056},[2013],{"type":998,"value":2014},"    'C'",{"type":993,"tag":1021,"props":2016,"children":2017},{"style":1036},[2018],{"type":998,"value":1064},{"type":993,"tag":1021,"props":2020,"children":2021},{"style":1089},[2022],{"type":998,"value":2023},"2.0",{"type":993,"tag":1021,"props":2025,"children":2026},{"style":1036},[2027],{"type":998,"value":1074},{"type":993,"tag":1021,"props":2029,"children":2030},{"class":1023,"line":63},[2031,2036,2040,2045],{"type":993,"tag":1021,"props":2032,"children":2033},{"style":1056},[2034],{"type":998,"value":2035},"    'D'",{"type":993,"tag":1021,"props":2037,"children":2038},{"style":1036},[2039],{"type":998,"value":1064},{"type":993,"tag":1021,"props":2041,"children":2042},{"style":1089},[2043],{"type":998,"value":2044},"1.0",{"type":993,"tag":1021,"props":2046,"children":2047},{"style":1036},[2048],{"type":998,"value":1074},{"type":993,"tag":1021,"props":2050,"children":2051},{"class":1023,"line":72},[2052,2057,2061],{"type":993,"tag":1021,"props":2053,"children":2054},{"style":1056},[2055],{"type":998,"value":2056},"    'F'",{"type":993,"tag":1021,"props":2058,"children":2059},{"style":1036},[2060],{"type":998,"value":1064},{"type":993,"tag":1021,"props":2062,"children":2063},{"style":1089},[2064],{"type":998,"value":2065},"0.0\n",{"type":993,"tag":1021,"props":2067,"children":2068},{"class":1023,"line":81},[2069],{"type":993,"tag":1021,"props":2070,"children":2071},{"style":1036},[2072],{"type":998,"value":1158},{"type":993,"tag":1021,"props":2074,"children":2075},{"class":1023,"line":91},[2076],{"type":993,"tag":1021,"props":2077,"children":2078},{"emptyLinePlaceholder":13},[2079],{"type":998,"value":1166},{"type":993,"tag":1021,"props":2081,"children":2082},{"class":1023,"line":100},[2083,2088,2092],{"type":993,"tag":1021,"props":2084,"children":2085},{"style":1036},[2086],{"type":998,"value":2087},"student_grade ",{"type":993,"tag":1021,"props":2089,"children":2090},{"style":1042},[2091],{"type":998,"value":1045},{"type":993,"tag":1021,"props":2093,"children":2094},{"style":1056},[2095],{"type":998,"value":2096}," 'B'\n",{"type":993,"tag":1021,"props":2098,"children":2099},{"class":1023,"line":109},[2100,2105,2109],{"type":993,"tag":1021,"props":2101,"children":2102},{"style":1036},[2103],{"type":998,"value":2104},"gpa_value ",{"type":993,"tag":1021,"props":2106,"children":2107},{"style":1042},[2108],{"type":998,"value":1045},{"type":993,"tag":1021,"props":2110,"children":2111},{"style":1036},[2112],{"type":998,"value":2113}," grade_points[student_grade]\n",{"type":993,"tag":1021,"props":2115,"children":2116},{"class":1023,"line":118},[2117,2121,2125,2130,2135,2140,2145,2150,2155,2159,2164,2168,2173],{"type":993,"tag":1021,"props":2118,"children":2119},{"style":1089},[2120],{"type":998,"value":1174},{"type":993,"tag":1021,"props":2122,"children":2123},{"style":1036},[2124],{"type":998,"value":1179},{"type":993,"tag":1021,"props":2126,"children":2127},{"style":1042},[2128],{"type":998,"value":2129},"f",{"type":993,"tag":1021,"props":2131,"children":2132},{"style":1056},[2133],{"type":998,"value":2134},"\"Grade ",{"type":993,"tag":1021,"props":2136,"children":2137},{"style":1089},[2138],{"type":998,"value":2139},"{",{"type":993,"tag":1021,"props":2141,"children":2142},{"style":1036},[2143],{"type":998,"value":2144},"student_grade",{"type":993,"tag":1021,"props":2146,"children":2147},{"style":1089},[2148],{"type":998,"value":2149},"}",{"type":993,"tag":1021,"props":2151,"children":2152},{"style":1056},[2153],{"type":998,"value":2154}," = ",{"type":993,"tag":1021,"props":2156,"children":2157},{"style":1089},[2158],{"type":998,"value":2139},{"type":993,"tag":1021,"props":2160,"children":2161},{"style":1036},[2162],{"type":998,"value":2163},"gpa_value",{"type":993,"tag":1021,"props":2165,"children":2166},{"style":1089},[2167],{"type":998,"value":2149},{"type":993,"tag":1021,"props":2169,"children":2170},{"style":1056},[2171],{"type":998,"value":2172}," points\"",{"type":993,"tag":1021,"props":2174,"children":2175},{"style":1036},[2176],{"type":998,"value":1437},{"type":993,"tag":1730,"props":2178,"children":2180},{"id":2179},"counting-and-frequency",[2181],{"type":998,"value":2182},"Counting and Frequency",{"type":993,"tag":1001,"props":2184,"children":2185},{},[2186],{"type":998,"value":2187},"Dictionary-based counting provides efficient frequency analysis for data processing and statistical operations.",{"type":993,"tag":1007,"props":2189,"children":2190},{},[2191],{"type":993,"tag":1011,"props":2192,"children":2194},{"className":1013,"code":2193,"language":6,"meta":8,"style":8},"# Count word frequency\ntext = \"python is great python is powerful\"\nword_count = {}\n\nfor word in text.split():\n    if word in word_count:\n        word_count[word] += 1\n    else:\n        word_count[word] = 1\n\nprint(\"Word frequencies:\", word_count)\n",[2195],{"type":993,"tag":1017,"props":2196,"children":2197},{"__ignoreMap":8},[2198,2206,2223,2240,2247,2270,2291,2309,2321,2336,2343],{"type":993,"tag":1021,"props":2199,"children":2200},{"class":1023,"line":12},[2201],{"type":993,"tag":1021,"props":2202,"children":2203},{"style":1027},[2204],{"type":998,"value":2205},"# Count word frequency\n",{"type":993,"tag":1021,"props":2207,"children":2208},{"class":1023,"line":27},[2209,2214,2218],{"type":993,"tag":1021,"props":2210,"children":2211},{"style":1036},[2212],{"type":998,"value":2213},"text ",{"type":993,"tag":1021,"props":2215,"children":2216},{"style":1042},[2217],{"type":998,"value":1045},{"type":993,"tag":1021,"props":2219,"children":2220},{"style":1056},[2221],{"type":998,"value":2222}," \"python is great python is powerful\"\n",{"type":993,"tag":1021,"props":2224,"children":2225},{"class":1023,"line":36},[2226,2231,2235],{"type":993,"tag":1021,"props":2227,"children":2228},{"style":1036},[2229],{"type":998,"value":2230},"word_count ",{"type":993,"tag":1021,"props":2232,"children":2233},{"style":1042},[2234],{"type":998,"value":1045},{"type":993,"tag":1021,"props":2236,"children":2237},{"style":1036},[2238],{"type":998,"value":2239}," {}\n",{"type":993,"tag":1021,"props":2241,"children":2242},{"class":1023,"line":45},[2243],{"type":993,"tag":1021,"props":2244,"children":2245},{"emptyLinePlaceholder":13},[2246],{"type":998,"value":1166},{"type":993,"tag":1021,"props":2248,"children":2249},{"class":1023,"line":54},[2250,2255,2260,2265],{"type":993,"tag":1021,"props":2251,"children":2252},{"style":1042},[2253],{"type":998,"value":2254},"for",{"type":993,"tag":1021,"props":2256,"children":2257},{"style":1036},[2258],{"type":998,"value":2259}," word ",{"type":993,"tag":1021,"props":2261,"children":2262},{"style":1042},[2263],{"type":998,"value":2264},"in",{"type":993,"tag":1021,"props":2266,"children":2267},{"style":1036},[2268],{"type":998,"value":2269}," text.split():\n",{"type":993,"tag":1021,"props":2271,"children":2272},{"class":1023,"line":63},[2273,2278,2282,2286],{"type":993,"tag":1021,"props":2274,"children":2275},{"style":1042},[2276],{"type":998,"value":2277},"    if",{"type":993,"tag":1021,"props":2279,"children":2280},{"style":1036},[2281],{"type":998,"value":2259},{"type":993,"tag":1021,"props":2283,"children":2284},{"style":1042},[2285],{"type":998,"value":2264},{"type":993,"tag":1021,"props":2287,"children":2288},{"style":1036},[2289],{"type":998,"value":2290}," word_count:\n",{"type":993,"tag":1021,"props":2292,"children":2293},{"class":1023,"line":72},[2294,2299,2304],{"type":993,"tag":1021,"props":2295,"children":2296},{"style":1036},[2297],{"type":998,"value":2298},"        word_count[word] ",{"type":993,"tag":1021,"props":2300,"children":2301},{"style":1042},[2302],{"type":998,"value":2303},"+=",{"type":993,"tag":1021,"props":2305,"children":2306},{"style":1089},[2307],{"type":998,"value":2308}," 1\n",{"type":993,"tag":1021,"props":2310,"children":2311},{"class":1023,"line":81},[2312,2317],{"type":993,"tag":1021,"props":2313,"children":2314},{"style":1042},[2315],{"type":998,"value":2316},"    else",{"type":993,"tag":1021,"props":2318,"children":2319},{"style":1036},[2320],{"type":998,"value":1450},{"type":993,"tag":1021,"props":2322,"children":2323},{"class":1023,"line":91},[2324,2328,2332],{"type":993,"tag":1021,"props":2325,"children":2326},{"style":1036},[2327],{"type":998,"value":2298},{"type":993,"tag":1021,"props":2329,"children":2330},{"style":1042},[2331],{"type":998,"value":1045},{"type":993,"tag":1021,"props":2333,"children":2334},{"style":1089},[2335],{"type":998,"value":2308},{"type":993,"tag":1021,"props":2337,"children":2338},{"class":1023,"line":100},[2339],{"type":993,"tag":1021,"props":2340,"children":2341},{"emptyLinePlaceholder":13},[2342],{"type":998,"value":1166},{"type":993,"tag":1021,"props":2344,"children":2345},{"class":1023,"line":109},[2346,2350,2354,2359],{"type":993,"tag":1021,"props":2347,"children":2348},{"style":1089},[2349],{"type":998,"value":1174},{"type":993,"tag":1021,"props":2351,"children":2352},{"style":1036},[2353],{"type":998,"value":1179},{"type":993,"tag":1021,"props":2355,"children":2356},{"style":1056},[2357],{"type":998,"value":2358},"\"Word frequencies:\"",{"type":993,"tag":1021,"props":2360,"children":2361},{"style":1036},[2362],{"type":998,"value":2363},", word_count)\n",{"type":993,"tag":1222,"props":2365,"children":2367},{"id":2366},"dictionary-key-requirements",[2368],{"type":998,"value":2369},"🌟 Dictionary Key Requirements",{"type":993,"tag":1001,"props":2371,"children":2372},{},[2373],{"type":998,"value":2374},"Dictionary keys must meet specific requirements to ensure reliable hash table operation and data integrity.",{"type":993,"tag":1472,"props":2376,"children":2380},{"emoji":2377,"title":2378,"type":2379},"⚠️","Key Requirements","warning",[2381,2391,2401,2411],{"type":993,"tag":1001,"props":2382,"children":2383},{},[2384,2389],{"type":993,"tag":1482,"props":2385,"children":2386},{},[2387],{"type":998,"value":2388},"Immutable Types Only:",{"type":998,"value":2390}," Keys must be immutable (strings, numbers, tuples with immutable elements).",{"type":993,"tag":1001,"props":2392,"children":2393},{},[2394,2399],{"type":993,"tag":1482,"props":2395,"children":2396},{},[2397],{"type":998,"value":2398},"Hashable Objects:",{"type":998,"value":2400}," Keys must be hashable to enable fast lookup operations.",{"type":993,"tag":1001,"props":2402,"children":2403},{},[2404,2409],{"type":993,"tag":1482,"props":2405,"children":2406},{},[2407],{"type":998,"value":2408},"Unique Values:",{"type":998,"value":2410}," Each key can appear only once in a dictionary.",{"type":993,"tag":1001,"props":2412,"children":2413},{},[2414,2419],{"type":993,"tag":1482,"props":2415,"children":2416},{},[2417],{"type":998,"value":2418},"Invalid Key Types:",{"type":998,"value":2420}," Lists, sets, and dictionaries cannot be used as keys.",{"type":993,"tag":1222,"props":2422,"children":2424},{"id":2423},"performance-characteristics",[2425],{"type":998,"value":2426},"💡 Performance Characteristics",{"type":993,"tag":1001,"props":2428,"children":2429},{},[2430],{"type":998,"value":2431},"Dictionaries provide excellent performance for most operations through hash table implementation.",{"type":993,"tag":1007,"props":2433,"children":2434},{},[2435],{"type":993,"tag":1011,"props":2436,"children":2438},{"className":1013,"code":2437,"language":6,"meta":8,"style":8},"# Performance demonstration\nlarge_dict = {f\"key_{i}\": i for i in range(1000)}\n\n# Fast operations - O(1) average case\nprint(\"Fast lookup:\", large_dict.get('key_500', 'Not found'))\nprint(\"Fast membership test:\", 'key_750' in large_dict)\n\n# Dictionary size\nprint(\"Dictionary size:\", len(large_dict))\n",[2439],{"type":993,"tag":1017,"props":2440,"children":2441},{"__ignoreMap":8},[2442,2450,2531,2538,2546,2586,2620,2627,2635],{"type":993,"tag":1021,"props":2443,"children":2444},{"class":1023,"line":12},[2445],{"type":993,"tag":1021,"props":2446,"children":2447},{"style":1027},[2448],{"type":998,"value":2449},"# Performance demonstration\n",{"type":993,"tag":1021,"props":2451,"children":2452},{"class":1023,"line":27},[2453,2458,2462,2467,2471,2476,2480,2485,2489,2494,2499,2503,2508,2512,2517,2521,2526],{"type":993,"tag":1021,"props":2454,"children":2455},{"style":1036},[2456],{"type":998,"value":2457},"large_dict ",{"type":993,"tag":1021,"props":2459,"children":2460},{"style":1042},[2461],{"type":998,"value":1045},{"type":993,"tag":1021,"props":2463,"children":2464},{"style":1036},[2465],{"type":998,"value":2466}," {",{"type":993,"tag":1021,"props":2468,"children":2469},{"style":1042},[2470],{"type":998,"value":2129},{"type":993,"tag":1021,"props":2472,"children":2473},{"style":1056},[2474],{"type":998,"value":2475},"\"key_",{"type":993,"tag":1021,"props":2477,"children":2478},{"style":1089},[2479],{"type":998,"value":2139},{"type":993,"tag":1021,"props":2481,"children":2482},{"style":1036},[2483],{"type":998,"value":2484},"i",{"type":993,"tag":1021,"props":2486,"children":2487},{"style":1089},[2488],{"type":998,"value":2149},{"type":993,"tag":1021,"props":2490,"children":2491},{"style":1056},[2492],{"type":998,"value":2493},"\"",{"type":993,"tag":1021,"props":2495,"children":2496},{"style":1036},[2497],{"type":998,"value":2498},": i ",{"type":993,"tag":1021,"props":2500,"children":2501},{"style":1042},[2502],{"type":998,"value":2254},{"type":993,"tag":1021,"props":2504,"children":2505},{"style":1036},[2506],{"type":998,"value":2507}," i ",{"type":993,"tag":1021,"props":2509,"children":2510},{"style":1042},[2511],{"type":998,"value":2264},{"type":993,"tag":1021,"props":2513,"children":2514},{"style":1089},[2515],{"type":998,"value":2516}," range",{"type":993,"tag":1021,"props":2518,"children":2519},{"style":1036},[2520],{"type":998,"value":1179},{"type":993,"tag":1021,"props":2522,"children":2523},{"style":1089},[2524],{"type":998,"value":2525},"1000",{"type":993,"tag":1021,"props":2527,"children":2528},{"style":1036},[2529],{"type":998,"value":2530},")}\n",{"type":993,"tag":1021,"props":2532,"children":2533},{"class":1023,"line":36},[2534],{"type":993,"tag":1021,"props":2535,"children":2536},{"emptyLinePlaceholder":13},[2537],{"type":998,"value":1166},{"type":993,"tag":1021,"props":2539,"children":2540},{"class":1023,"line":45},[2541],{"type":993,"tag":1021,"props":2542,"children":2543},{"style":1027},[2544],{"type":998,"value":2545},"# Fast operations - O(1) average case\n",{"type":993,"tag":1021,"props":2547,"children":2548},{"class":1023,"line":54},[2549,2553,2557,2562,2567,2572,2576,2581],{"type":993,"tag":1021,"props":2550,"children":2551},{"style":1089},[2552],{"type":998,"value":1174},{"type":993,"tag":1021,"props":2554,"children":2555},{"style":1036},[2556],{"type":998,"value":1179},{"type":993,"tag":1021,"props":2558,"children":2559},{"style":1056},[2560],{"type":998,"value":2561},"\"Fast lookup:\"",{"type":993,"tag":1021,"props":2563,"children":2564},{"style":1036},[2565],{"type":998,"value":2566},", large_dict.get(",{"type":993,"tag":1021,"props":2568,"children":2569},{"style":1056},[2570],{"type":998,"value":2571},"'key_500'",{"type":993,"tag":1021,"props":2573,"children":2574},{"style":1036},[2575],{"type":998,"value":1140},{"type":993,"tag":1021,"props":2577,"children":2578},{"style":1056},[2579],{"type":998,"value":2580},"'Not found'",{"type":993,"tag":1021,"props":2582,"children":2583},{"style":1036},[2584],{"type":998,"value":2585},"))\n",{"type":993,"tag":1021,"props":2587,"children":2588},{"class":1023,"line":63},[2589,2593,2597,2602,2606,2611,2615],{"type":993,"tag":1021,"props":2590,"children":2591},{"style":1089},[2592],{"type":998,"value":1174},{"type":993,"tag":1021,"props":2594,"children":2595},{"style":1036},[2596],{"type":998,"value":1179},{"type":993,"tag":1021,"props":2598,"children":2599},{"style":1056},[2600],{"type":998,"value":2601},"\"Fast membership test:\"",{"type":993,"tag":1021,"props":2603,"children":2604},{"style":1036},[2605],{"type":998,"value":1140},{"type":993,"tag":1021,"props":2607,"children":2608},{"style":1056},[2609],{"type":998,"value":2610},"'key_750'",{"type":993,"tag":1021,"props":2612,"children":2613},{"style":1042},[2614],{"type":998,"value":1410},{"type":993,"tag":1021,"props":2616,"children":2617},{"style":1036},[2618],{"type":998,"value":2619}," large_dict)\n",{"type":993,"tag":1021,"props":2621,"children":2622},{"class":1023,"line":72},[2623],{"type":993,"tag":1021,"props":2624,"children":2625},{"emptyLinePlaceholder":13},[2626],{"type":998,"value":1166},{"type":993,"tag":1021,"props":2628,"children":2629},{"class":1023,"line":81},[2630],{"type":993,"tag":1021,"props":2631,"children":2632},{"style":1027},[2633],{"type":998,"value":2634},"# Dictionary size\n",{"type":993,"tag":1021,"props":2636,"children":2637},{"class":1023,"line":91},[2638,2642,2646,2651,2655,2660],{"type":993,"tag":1021,"props":2639,"children":2640},{"style":1089},[2641],{"type":998,"value":1174},{"type":993,"tag":1021,"props":2643,"children":2644},{"style":1036},[2645],{"type":998,"value":1179},{"type":993,"tag":1021,"props":2647,"children":2648},{"style":1056},[2649],{"type":998,"value":2650},"\"Dictionary size:\"",{"type":993,"tag":1021,"props":2652,"children":2653},{"style":1036},[2654],{"type":998,"value":1140},{"type":993,"tag":1021,"props":2656,"children":2657},{"style":1089},[2658],{"type":998,"value":2659},"len",{"type":993,"tag":1021,"props":2661,"children":2662},{"style":1036},[2663],{"type":998,"value":2664},"(large_dict))\n",{"type":993,"tag":1222,"props":2666,"children":2668},{"id":2667},"when-to-use-dictionaries",[2669],{"type":998,"value":2670},"🎯 When to Use Dictionaries",{"type":993,"tag":1001,"props":2672,"children":2673},{},[2674],{"type":998,"value":2675},"Choose dictionaries when your data has natural key-value relationships or requires fast lookup operations.",{"type":993,"tag":1730,"props":2677,"children":2679},{"id":2678},"ideal-use-cases",[2680],{"type":998,"value":2681},"Ideal Use Cases",{"type":993,"tag":2683,"props":2684,"children":2685},"ul",{},[2686,2697,2707,2717,2727],{"type":993,"tag":2687,"props":2688,"children":2689},"li",{},[2690,2695],{"type":993,"tag":1482,"props":2691,"children":2692},{},[2693],{"type":998,"value":2694},"User profiles",{"type":998,"value":2696},": Store user information with field names as keys",{"type":993,"tag":2687,"props":2698,"children":2699},{},[2700,2705],{"type":993,"tag":1482,"props":2701,"children":2702},{},[2703],{"type":998,"value":2704},"Caching",{"type":998,"value":2706},": Map function arguments to computed results",{"type":993,"tag":2687,"props":2708,"children":2709},{},[2710,2715],{"type":993,"tag":1482,"props":2711,"children":2712},{},[2713],{"type":998,"value":2714},"Database records",{"type":998,"value":2716},": Represent table rows with column names as keys",{"type":993,"tag":2687,"props":2718,"children":2719},{},[2720,2725],{"type":993,"tag":1482,"props":2721,"children":2722},{},[2723],{"type":998,"value":2724},"API responses",{"type":998,"value":2726},": Structure JSON-like data with named fields",{"type":993,"tag":2687,"props":2728,"children":2729},{},[2730,2735],{"type":993,"tag":1482,"props":2731,"children":2732},{},[2733],{"type":998,"value":2734},"Lookup tables",{"type":998,"value":2736},": Create fast reference systems for data transformation",{"type":993,"tag":1730,"props":2738,"children":2740},{"id":2739},"consider-alternatives-when",[2741],{"type":998,"value":2742},"Consider Alternatives When",{"type":993,"tag":2683,"props":2744,"children":2745},{},[2746,2756,2765,2775],{"type":993,"tag":2687,"props":2747,"children":2748},{},[2749,2754],{"type":993,"tag":1482,"props":2750,"children":2751},{},[2752],{"type":998,"value":2753},"Sequential access",{"type":998,"value":2755},": Lists are better for index-based operations",{"type":993,"tag":2687,"props":2757,"children":2758},{},[2759,2763],{"type":993,"tag":1482,"props":2760,"children":2761},{},[2762],{"type":998,"value":1712},{"type":998,"value":2764},": Sets are more appropriate for membership testing only",{"type":993,"tag":2687,"props":2766,"children":2767},{},[2768,2773],{"type":993,"tag":1482,"props":2769,"children":2770},{},[2771],{"type":998,"value":2772},"Immutable data",{"type":998,"value":2774},": Tuples or named tuples for fixed structures",{"type":993,"tag":2687,"props":2776,"children":2777},{},[2778,2783],{"type":993,"tag":1482,"props":2779,"children":2780},{},[2781],{"type":998,"value":2782},"Simple key-value stores",{"type":998,"value":2784},": Consider specialized data structures for specific use cases",{"type":993,"tag":1222,"props":2786,"children":2788},{"id":2787},"dictionary-methods-overview",[2789],{"type":998,"value":2790},"📚 Dictionary Methods Overview",{"type":993,"tag":1001,"props":2792,"children":2793},{},[2794],{"type":998,"value":2795},"Python provides comprehensive methods for dictionary manipulation and data access.",{"type":993,"tag":1541,"props":2797,"children":2798},{},[2799,2820],{"type":993,"tag":1545,"props":2800,"children":2801},{},[2802],{"type":993,"tag":1549,"props":2803,"children":2804},{},[2805,2810,2815],{"type":993,"tag":1553,"props":2806,"children":2807},{},[2808],{"type":998,"value":2809},"Category",{"type":993,"tag":1553,"props":2811,"children":2812},{},[2813],{"type":998,"value":2814},"Methods",{"type":993,"tag":1553,"props":2816,"children":2817},{},[2818],{"type":998,"value":2819},"Purpose",{"type":993,"tag":1579,"props":2821,"children":2822},{},[2823,2869,2915,2954],{"type":993,"tag":1549,"props":2824,"children":2825},{},[2826,2834,2864],{"type":993,"tag":1586,"props":2827,"children":2828},{},[2829],{"type":993,"tag":1482,"props":2830,"children":2831},{},[2832],{"type":998,"value":2833},"Access",{"type":993,"tag":1586,"props":2835,"children":2836},{},[2837,2843,2844,2850,2851,2857,2858],{"type":993,"tag":1017,"props":2838,"children":2840},{"className":2839},[],[2841],{"type":998,"value":2842},"get()",{"type":998,"value":1140},{"type":993,"tag":1017,"props":2845,"children":2847},{"className":2846},[],[2848],{"type":998,"value":2849},"keys()",{"type":998,"value":1140},{"type":993,"tag":1017,"props":2852,"children":2854},{"className":2853},[],[2855],{"type":998,"value":2856},"values()",{"type":998,"value":1140},{"type":993,"tag":1017,"props":2859,"children":2861},{"className":2860},[],[2862],{"type":998,"value":2863},"items()",{"type":993,"tag":1586,"props":2865,"children":2866},{},[2867],{"type":998,"value":2868},"Retrieve data and metadata",{"type":993,"tag":1549,"props":2870,"children":2871},{},[2872,2880,2910],{"type":993,"tag":1586,"props":2873,"children":2874},{},[2875],{"type":993,"tag":1482,"props":2876,"children":2877},{},[2878],{"type":998,"value":2879},"Modification",{"type":993,"tag":1586,"props":2881,"children":2882},{},[2883,2889,2890,2896,2897,2903,2904],{"type":993,"tag":1017,"props":2884,"children":2886},{"className":2885},[],[2887],{"type":998,"value":2888},"update()",{"type":998,"value":1140},{"type":993,"tag":1017,"props":2891,"children":2893},{"className":2892},[],[2894],{"type":998,"value":2895},"pop()",{"type":998,"value":1140},{"type":993,"tag":1017,"props":2898,"children":2900},{"className":2899},[],[2901],{"type":998,"value":2902},"popitem()",{"type":998,"value":1140},{"type":993,"tag":1017,"props":2905,"children":2907},{"className":2906},[],[2908],{"type":998,"value":2909},"clear()",{"type":993,"tag":1586,"props":2911,"children":2912},{},[2913],{"type":998,"value":2914},"Change dictionary content",{"type":993,"tag":1549,"props":2916,"children":2917},{},[2918,2926,2949],{"type":993,"tag":1586,"props":2919,"children":2920},{},[2921],{"type":993,"tag":1482,"props":2922,"children":2923},{},[2924],{"type":998,"value":2925},"Creation",{"type":993,"tag":1586,"props":2927,"children":2928},{},[2929,2935,2936,2942,2943],{"type":993,"tag":1017,"props":2930,"children":2932},{"className":2931},[],[2933],{"type":998,"value":2934},"dict()",{"type":998,"value":1140},{"type":993,"tag":1017,"props":2937,"children":2939},{"className":2938},[],[2940],{"type":998,"value":2941},"fromkeys()",{"type":998,"value":1140},{"type":993,"tag":1017,"props":2944,"children":2946},{"className":2945},[],[2947],{"type":998,"value":2948},"copy()",{"type":993,"tag":1586,"props":2950,"children":2951},{},[2952],{"type":998,"value":2953},"Create new dictionaries",{"type":993,"tag":1549,"props":2955,"children":2956},{},[2957,2965,2980],{"type":993,"tag":1586,"props":2958,"children":2959},{},[2960],{"type":993,"tag":1482,"props":2961,"children":2962},{},[2963],{"type":998,"value":2964},"Membership",{"type":993,"tag":1586,"props":2966,"children":2967},{},[2968,2973,2974],{"type":993,"tag":1017,"props":2969,"children":2971},{"className":2970},[],[2972],{"type":998,"value":2264},{"type":998,"value":1140},{"type":993,"tag":1017,"props":2975,"children":2977},{"className":2976},[],[2978],{"type":998,"value":2979},"not in",{"type":993,"tag":1586,"props":2981,"children":2982},{},[2983],{"type":998,"value":2984},"Test key existence",{"type":993,"tag":1472,"props":2986,"children":2990},{"emoji":2987,"title":2988,"type":2989},"✅","Dictionary Benefits","success",[2991,3001,3011,3021,3031],{"type":993,"tag":1001,"props":2992,"children":2993},{},[2994,2999],{"type":993,"tag":1482,"props":2995,"children":2996},{},[2997],{"type":998,"value":2998},"Readable Code:",{"type":998,"value":3000}," Key names make code self-documenting and easier to understand.",{"type":993,"tag":1001,"props":3002,"children":3003},{},[3004,3009],{"type":993,"tag":1482,"props":3005,"children":3006},{},[3007],{"type":998,"value":3008},"Flexible Structure:",{"type":998,"value":3010}," Add or remove fields without changing code structure.",{"type":993,"tag":1001,"props":3012,"children":3013},{},[3014,3019],{"type":993,"tag":1482,"props":3015,"children":3016},{},[3017],{"type":998,"value":3018},"Fast Performance:",{"type":998,"value":3020}," Hash table implementation provides excellent lookup speed.",{"type":993,"tag":1001,"props":3022,"children":3023},{},[3024,3029],{"type":993,"tag":1482,"props":3025,"children":3026},{},[3027],{"type":998,"value":3028},"Natural Representation:",{"type":998,"value":3030}," Maps closely to real-world data relationships.",{"type":993,"tag":1001,"props":3032,"children":3033},{},[3034,3039],{"type":993,"tag":1482,"props":3035,"children":3036},{},[3037],{"type":998,"value":3038},"Python Integration:",{"type":998,"value":3040}," Works seamlessly with JSON, APIs, and data processing libraries.",{"type":993,"tag":1222,"props":3042,"children":3044},{"id":3043},"what-youll-learn",[3045],{"type":998,"value":3046},"📖 What You'll Learn",{"type":993,"tag":1001,"props":3048,"children":3049},{},[3050],{"type":998,"value":3051},"This section covers everything you need to master Python dictionaries:",{"type":993,"tag":2683,"props":3053,"children":3054},{},[3055,3068,3080,3092,3104,3116,3128,3140,3152,3164],{"type":993,"tag":2687,"props":3056,"children":3057},{},[3058,3066],{"type":993,"tag":1482,"props":3059,"children":3060},{},[3061],{"type":993,"tag":3062,"props":3063,"children":3064},"a",{"href":526},[3065],{"type":998,"value":527},{"type":998,"value":3067}," - Learn different ways to create and initialize dictionaries",{"type":993,"tag":2687,"props":3069,"children":3070},{},[3071,3078],{"type":993,"tag":1482,"props":3072,"children":3073},{},[3074],{"type":993,"tag":3062,"props":3075,"children":3076},{"href":535},[3077],{"type":998,"value":536},{"type":998,"value":3079}," - Master safe and efficient data retrieval techniques",{"type":993,"tag":2687,"props":3081,"children":3082},{},[3083,3090],{"type":993,"tag":1482,"props":3084,"children":3085},{},[3086],{"type":993,"tag":3062,"props":3087,"children":3088},{"href":544},[3089],{"type":998,"value":545},{"type":998,"value":3091}," - Understand how to modify existing dictionary values",{"type":993,"tag":2687,"props":3093,"children":3094},{},[3095,3102],{"type":993,"tag":1482,"props":3096,"children":3097},{},[3098],{"type":993,"tag":3062,"props":3099,"children":3100},{"href":553},[3101],{"type":998,"value":554},{"type":998,"value":3103}," - Discover methods to insert new key-value pairs",{"type":993,"tag":2687,"props":3105,"children":3106},{},[3107,3114],{"type":993,"tag":1482,"props":3108,"children":3109},{},[3110],{"type":993,"tag":3062,"props":3111,"children":3112},{"href":562},[3113],{"type":998,"value":563},{"type":998,"value":3115}," - Learn techniques to remove items from dictionaries",{"type":993,"tag":2687,"props":3117,"children":3118},{},[3119,3126],{"type":993,"tag":1482,"props":3120,"children":3121},{},[3122],{"type":993,"tag":3062,"props":3123,"children":3124},{"href":571},[3125],{"type":998,"value":572},{"type":998,"value":3127}," - Master patterns for iterating through dictionary data",{"type":993,"tag":2687,"props":3129,"children":3130},{},[3131,3138],{"type":993,"tag":1482,"props":3132,"children":3133},{},[3134],{"type":993,"tag":3062,"props":3135,"children":3136},{"href":580},[3137],{"type":998,"value":581},{"type":998,"value":3139}," - Understand shallow vs deep copying techniques",{"type":993,"tag":2687,"props":3141,"children":3142},{},[3143,3150],{"type":993,"tag":1482,"props":3144,"children":3145},{},[3146],{"type":993,"tag":3062,"props":3147,"children":3148},{"href":589},[3149],{"type":998,"value":590},{"type":998,"value":3151}," - Work with nested dictionary structures",{"type":993,"tag":2687,"props":3153,"children":3154},{},[3155,3162],{"type":993,"tag":1482,"props":3156,"children":3157},{},[3158],{"type":993,"tag":3062,"props":3159,"children":3160},{"href":598},[3161],{"type":998,"value":599},{"type":998,"value":3163}," - Explore built-in functions and advanced methods",{"type":993,"tag":2687,"props":3165,"children":3166},{},[3167,3174],{"type":993,"tag":1482,"props":3168,"children":3169},{},[3170],{"type":993,"tag":3062,"props":3171,"children":3172},{"href":937},[3173],{"type":998,"value":938},{"type":998,"value":3175}," - Dictionary methods and operations reference",{"type":993,"tag":1001,"props":3177,"children":3178},{},[3179,3181,3186],{"type":998,"value":3180},"Ready to start working with dictionaries? Begin with ",{"type":993,"tag":3062,"props":3182,"children":3183},{"href":526},[3184],{"type":998,"value":3185},"creating dictionaries",{"type":998,"value":3187}," to learn various initialization methods and data sources.",{"type":993,"tag":1222,"props":3189,"children":3191},{"id":3190},"whats-next",[3192],{"type":998,"value":3193},"What's Next?",{"type":993,"tag":1001,"props":3195,"children":3196},{},[3197,3199,3203],{"type":998,"value":3198},"In the next lesson, we'll explore ",{"type":993,"tag":3062,"props":3200,"children":3201},{"href":526},[3202],{"type":998,"value":527},{"type":998,"value":3204},", where you'll learn different ways to build and initialize dictionary structures.",{"type":993,"tag":1001,"props":3206,"children":3207},{},[3208,3210,3214],{"type":998,"value":3209},"Ready to continue? Check out our lesson on ",{"type":993,"tag":3062,"props":3211,"children":3212},{"href":526},[3213],{"type":998,"value":527},{"type":998,"value":3215},".",{"type":993,"tag":3217,"props":3218,"children":3219},"style",{},[3220],{"type":998,"value":3221},"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":3223},[3224,3225,3226,3231,3232,3233,3237,3238,3239],{"id":1224,"depth":27,"text":1227},{"id":1531,"depth":27,"text":1534},{"id":1720,"depth":27,"text":1723,"children":3227},[3228,3229,3230],{"id":1732,"depth":36,"text":1735},{"id":1922,"depth":36,"text":1925},{"id":2179,"depth":36,"text":2182},{"id":2366,"depth":27,"text":2369},{"id":2423,"depth":27,"text":2426},{"id":2667,"depth":27,"text":2670,"children":3234},[3235,3236],{"id":2678,"depth":36,"text":2681},{"id":2739,"depth":36,"text":2742},{"id":2787,"depth":27,"text":2790},{"id":3043,"depth":27,"text":3046},{"id":3190,"depth":27,"text":3193},1782373742116]