[{"data":1,"prerenderedAt":2224},["ShallowReactive",2],{"tutorials-python-how-to":3,"category-items-python-how-to":600,"content-/python-how-to/merge-dictionaries":601},[4,22,31,40,49,58,67,76,86,94,103,112,121,130,139,148,158,167,176,185,194,203,212,222,231,240,249,258,267,276,285,297,306,315,324,333,342,351,362,371,380,389,398,407,418,427,436,445,454,463,472,483,492,501,510,519,528,539,548,557,566,575,584,593],{"_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},"/python-how-to/string-manipulation","python-how-to",false,"","String Manipulation","Learn essential string manipulation techniques in Python","string-manipulation",1,true,"pi pi-folder","markdown","content:python-how-to:1.string-manipulation.md","content","python-how-to/1.string-manipulation.md","python-how-to/1.string-manipulation","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-how-to/split-join-strings","Split and Join Strings","Learn how to split strings into lists and join lists back into strings in Python","split-join-strings",2,"content:python-how-to:2.split-join-strings.md","python-how-to/2.split-join-strings.md","python-how-to/2.split-join-strings",{"_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-how-to/remove-whitespace","Remove Whitespace","Learn how to clean up and remove unwanted whitespace from strings in Python","remove-whitespace",3,"content:python-how-to:3.remove-whitespace.md","python-how-to/3.remove-whitespace.md","python-how-to/3.remove-whitespace",{"_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-how-to/find-replace-text","Find and Replace Text","Learn how to search for and replace text within strings in Python","find-replace-text",4,"content:python-how-to:4.find-replace-text.md","python-how-to/4.find-replace-text.md","python-how-to/4.find-replace-text",{"_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-how-to/check-string-content","Check String Content","Learn how to validate and check the content of strings in Python","check-string-content",5,"content:python-how-to:5.check-string-content.md","python-how-to/5.check-string-content.md","python-how-to/5.check-string-content",{"_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-how-to/format-strings","Format Strings","Learn how to format strings in Python using f-strings and format() method","format-strings",6,"content:python-how-to:6.format-strings.md","python-how-to/6.format-strings.md","python-how-to/6.format-strings",{"_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-how-to/unicode-special-chars","Handle Unicode and Special Characters","Learn how to work with Unicode and special characters in Python strings","unicode-special-chars",7,"content:python-how-to:7.unicode-special-chars.md","python-how-to/7.unicode-special-chars.md","python-how-to/7.unicode-special-chars",{"_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-how-to/list-operations","List Operations","Learn essential operations for working with lists in Python","list-operations",8,"content:python-how-to:8.list-operations.md","python-how-to/8.list-operations.md","python-how-to/8.list-operations",[86,94,103,112,121,130,139],{"_path":87,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":88,"description":89,"slug":90,"parentId":77,"order":81,"_type":15,"_id":91,"_source":17,"_file":92,"_stem":93,"_extension":20},"/python-how-to/sort-lists","Sort Lists","Learn how to sort lists in Python using different methods and custom sorting","sort-lists","content:python-how-to:9.sort-lists.md","python-how-to/9.sort-lists.md","python-how-to/9.sort-lists",{"_path":95,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":96,"description":97,"slug":98,"parentId":77,"order":99,"_type":15,"_id":100,"_source":17,"_file":101,"_stem":102,"_extension":20},"/python-how-to/remove-duplicates","Remove Duplicates","Learn how to remove duplicate elements from lists in Python","remove-duplicates",10,"content:python-how-to:10.remove-duplicates.md","python-how-to/10.remove-duplicates.md","python-how-to/10.remove-duplicates",{"_path":104,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":105,"description":106,"slug":107,"parentId":77,"order":108,"_type":15,"_id":109,"_source":17,"_file":110,"_stem":111,"_extension":20},"/python-how-to/filter-lists","Filter Lists","Learn how to filter lists in Python using different methods","filter-lists",11,"content:python-how-to:11.filter-lists.md","python-how-to/11.filter-lists.md","python-how-to/11.filter-lists",{"_path":113,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":114,"description":115,"slug":116,"parentId":77,"order":117,"_type":15,"_id":118,"_source":17,"_file":119,"_stem":120,"_extension":20},"/python-how-to/combine-lists","Combine Lists","Learn different methods to combine lists in Python","combine-lists",12,"content:python-how-to:12.combine-lists.md","python-how-to/12.combine-lists.md","python-how-to/12.combine-lists",{"_path":122,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":123,"description":124,"slug":125,"parentId":77,"order":126,"_type":15,"_id":127,"_source":17,"_file":128,"_stem":129,"_extension":20},"/python-how-to/list-comprehensions","Use List Comprehensions","Learn how to create and transform lists efficiently using Python's list comprehension syntax","list-comprehensions",13,"content:python-how-to:13.list-comprehensions.md","python-how-to/13.list-comprehensions.md","python-how-to/13.list-comprehensions",{"_path":131,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":132,"description":133,"slug":134,"parentId":77,"order":135,"_type":15,"_id":136,"_source":17,"_file":137,"_stem":138,"_extension":20},"/python-how-to/nested-lists","Work with Nested Lists","Learn how to work with nested lists (2D arrays) in Python","nested-lists",14,"content:python-how-to:14.nested-lists.md","python-how-to/14.nested-lists.md","python-how-to/14.nested-lists",{"_path":140,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":141,"description":142,"slug":143,"parentId":77,"order":144,"_type":15,"_id":145,"_source":17,"_file":146,"_stem":147,"_extension":20},"/python-how-to/enumerate-zip","Use enumerate() and zip()","Learn how to use enumerate() and zip() for efficient iteration in Python","enumerate-zip",15,"content:python-how-to:15.enumerate-zip.md","python-how-to/15.enumerate-zip.md","python-how-to/15.enumerate-zip",{"_path":149,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":150,"description":151,"slug":152,"order":153,"isParent":13,"icon":14,"_type":15,"_id":154,"_source":17,"_file":155,"_stem":156,"_extension":20,"children":157,"expanded":13},"/python-how-to/dictionary-operations","Dictionary Operations","Learn essential operations for working with dictionaries in Python","dictionary-operations",16,"content:python-how-to:16.dictionary-operations.md","python-how-to/16.dictionary-operations.md","python-how-to/16.dictionary-operations",[158,167,176,185,194,203],{"_path":159,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":160,"description":161,"slug":162,"parentId":149,"order":163,"_type":15,"_id":164,"_source":17,"_file":165,"_stem":166,"_extension":20},"/python-how-to/merge-dictionaries","Merge Dictionaries","Learn different methods to merge dictionaries in Python","merge-dictionaries",17,"content:python-how-to:17.merge-dictionaries.md","python-how-to/17.merge-dictionaries.md","python-how-to/17.merge-dictionaries",{"_path":168,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":169,"description":170,"slug":171,"parentId":149,"order":172,"_type":15,"_id":173,"_source":17,"_file":174,"_stem":175,"_extension":20},"/python-how-to/sort-dictionaries","Sort Dictionaries","Learn how to sort dictionaries by keys or values in Python","sort-dictionaries",18,"content:python-how-to:18.sort-dictionaries.md","python-how-to/18.sort-dictionaries.md","python-how-to/18.sort-dictionaries",{"_path":177,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":178,"description":179,"slug":180,"parentId":149,"order":181,"_type":15,"_id":182,"_source":17,"_file":183,"_stem":184,"_extension":20},"/python-how-to/filter-dictionaries","Filter Dictionaries","Learn how to filter dictionaries based on keys or values in Python","filter-dictionaries",19,"content:python-how-to:19.filter-dictionaries.md","python-how-to/19.filter-dictionaries.md","python-how-to/19.filter-dictionaries",{"_path":186,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":187,"description":188,"slug":189,"parentId":149,"order":190,"_type":15,"_id":191,"_source":17,"_file":192,"_stem":193,"_extension":20},"/python-how-to/handle-missing-keys","Handle Missing Keys","Learn safe ways to access dictionary keys and handle missing values","handle-missing-keys",20,"content:python-how-to:20.handle-missing-keys.md","python-how-to/20.handle-missing-keys.md","python-how-to/20.handle-missing-keys",{"_path":195,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":196,"description":197,"slug":198,"parentId":149,"order":199,"_type":15,"_id":200,"_source":17,"_file":201,"_stem":202,"_extension":20},"/python-how-to/dictionary-comprehensions","Use Dictionary Comprehensions","Learn how to create dictionaries efficiently using comprehensions","dictionary-comprehensions",21,"content:python-how-to:21.dictionary-comprehensions.md","python-how-to/21.dictionary-comprehensions.md","python-how-to/21.dictionary-comprehensions",{"_path":204,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":205,"description":206,"slug":207,"parentId":149,"order":208,"_type":15,"_id":209,"_source":17,"_file":210,"_stem":211,"_extension":20},"/python-how-to/convert-lists-dictionaries","Convert Between Lists and Dictionaries","Learn how to transform data between lists and dictionaries in Python","convert-lists-dictionaries",22,"content:python-how-to:22.convert-lists-dictionaries.md","python-how-to/22.convert-lists-dictionaries.md","python-how-to/22.convert-lists-dictionaries",{"_path":213,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":214,"description":215,"slug":216,"order":217,"isParent":13,"icon":14,"_type":15,"_id":218,"_source":17,"_file":219,"_stem":220,"_extension":20,"children":221},"/python-how-to/file-operations","File Operations","Learn essential file operations in Python for reading, writing, and managing files","file-operations",23,"content:python-how-to:23.file-operations.md","python-how-to/23.file-operations.md","python-how-to/23.file-operations",[222,231,240,249,258,267,276],{"_path":223,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":224,"description":225,"slug":226,"parentId":213,"order":227,"_type":15,"_id":228,"_source":17,"_file":229,"_stem":230,"_extension":20},"/python-how-to/read-text-files","Read Text Files","Learn how to read text files in Python using different methods","read-text-files",24,"content:python-how-to:24.read-text-files.md","python-how-to/24.read-text-files.md","python-how-to/24.read-text-files",{"_path":232,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":233,"description":234,"slug":235,"parentId":213,"order":236,"_type":15,"_id":237,"_source":17,"_file":238,"_stem":239,"_extension":20},"/python-how-to/write-to-files","Write to Files","Learn how to write and create files in Python using different methods","write-to-files",25,"content:python-how-to:25.write-to-files.md","python-how-to/25.write-to-files.md","python-how-to/25.write-to-files",{"_path":241,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":242,"description":243,"slug":244,"parentId":213,"order":245,"_type":15,"_id":246,"_source":17,"_file":247,"_stem":248,"_extension":20},"/python-how-to/work-csv-files","Work with CSV Files","Learn how to read and write CSV files in Python using the csv module","work-csv-files",26,"content:python-how-to:26.work-csv-files.md","python-how-to/26.work-csv-files.md","python-how-to/26.work-csv-files",{"_path":250,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":251,"description":252,"slug":253,"parentId":213,"order":254,"_type":15,"_id":255,"_source":17,"_file":256,"_stem":257,"_extension":20},"/python-how-to/handle-file-paths","Handle File Paths","Learn how to work with file and directory paths in Python using pathlib and os modules","handle-file-paths",27,"content:python-how-to:27.handle-file-paths.md","python-how-to/27.handle-file-paths.md","python-how-to/27.handle-file-paths",{"_path":259,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":260,"description":261,"slug":262,"parentId":213,"order":263,"_type":15,"_id":264,"_source":17,"_file":265,"_stem":266,"_extension":20},"/python-how-to/work-json-files","Work with JSON Files","Learn how to read and write JSON files in Python using the json module","work-json-files",28,"content:python-how-to:28.work-json-files.md","python-how-to/28.work-json-files.md","python-how-to/28.work-json-files",{"_path":268,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":269,"description":270,"slug":271,"parentId":213,"order":272,"_type":15,"_id":273,"_source":17,"_file":274,"_stem":275,"_extension":20},"/python-how-to/handle-binary-files","Handle Binary Files","Learn how to work with binary files in Python for images, data, and other non-text content","handle-binary-files",29,"content:python-how-to:29.handle-binary-files.md","python-how-to/29.handle-binary-files.md","python-how-to/29.handle-binary-files",{"_path":277,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":278,"description":279,"slug":280,"parentId":213,"order":281,"_type":15,"_id":282,"_source":17,"_file":283,"_stem":284,"_extension":20},"/python-how-to/use-context-managers","Use Context Managers","Learn how to use context managers for safe resource handling in Python","use-context-managers",30,"content:python-how-to:30.use-context-managers.md","python-how-to/30.use-context-managers.md","python-how-to/30.use-context-managers",{"_path":286,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":287,"description":288,"slug":289,"parentId":290,"order":291,"isParent":13,"icon":292,"_type":15,"_id":293,"_source":17,"_file":294,"_stem":295,"_extension":20,"children":296},"/python-how-to/date-and-time","Date and Time","Master Python's date and time handling with datetime, time zones, formatting, and calculations","date-and-time","/python-how-to",31,"pi pi-calendar","content:python-how-to:31.date-and-time.md","python-how-to/31.date-and-time.md","python-how-to/31.date-and-time",[297,306,315,324,333,342],{"_path":298,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":299,"description":300,"slug":301,"parentId":286,"order":302,"_type":15,"_id":303,"_source":17,"_file":304,"_stem":305,"_extension":20},"/python-how-to/get-current-datetime","Get Current Date/Time","Learn how to get current date, time, and timestamps using Python's datetime module","get-current-datetime",32,"content:python-how-to:32.get-current-datetime.md","python-how-to/32.get-current-datetime.md","python-how-to/32.get-current-datetime",{"_path":307,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":308,"description":309,"slug":310,"parentId":286,"order":311,"_type":15,"_id":312,"_source":17,"_file":313,"_stem":314,"_extension":20},"/python-how-to/format-dates","Format Dates","Master date formatting with strftime, custom formats, and locale-aware formatting for user-friendly displays","format-dates",33,"content:python-how-to:33.format-dates.md","python-how-to/33.format-dates.md","python-how-to/33.format-dates",{"_path":316,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":317,"description":318,"slug":319,"parentId":286,"order":320,"_type":15,"_id":321,"_source":17,"_file":322,"_stem":323,"_extension":20},"/python-how-to/calculate-date-differences","Calculate Date Differences","Learn to calculate time differences, durations, and intervals using Python's timedelta for scheduling and analytics","calculate-date-differences",34,"content:python-how-to:34.calculate-date-differences.md","python-how-to/34.calculate-date-differences.md","python-how-to/34.calculate-date-differences",{"_path":325,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":326,"description":327,"slug":328,"parentId":286,"order":329,"_type":15,"_id":330,"_source":17,"_file":331,"_stem":332,"_extension":20},"/python-how-to/parse-date-strings","Parse Date Strings","Convert text dates into Python datetime objects using strptime, handle multiple formats, and validate date input","parse-date-strings",35,"content:python-how-to:35.parse-date-strings.md","python-how-to/35.parse-date-strings.md","python-how-to/35.parse-date-strings",{"_path":334,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":335,"description":336,"slug":337,"parentId":286,"order":338,"_type":15,"_id":339,"_source":17,"_file":340,"_stem":341,"_extension":20},"/python-how-to/handle-timezones","Handle Timezones","Master timezone handling with zoneinfo, UTC conversions, and timezone-aware datetime objects for global applications","handle-timezones",36,"content:python-how-to:36.handle-timezones.md","python-how-to/36.handle-timezones.md","python-how-to/36.handle-timezones",{"_path":343,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":344,"description":345,"slug":346,"parentId":286,"order":347,"_type":15,"_id":348,"_source":17,"_file":349,"_stem":350,"_extension":20},"/python-how-to/work-with-timestamps","Work with Timestamps","Master Unix timestamps in Python - convert between datetime objects and timestamps for APIs, databases, and system integration","work-with-timestamps",37,"content:python-how-to:37.work-with-timestamps.md","python-how-to/37.work-with-timestamps.md","python-how-to/37.work-with-timestamps",{"_path":352,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":353,"description":354,"slug":355,"parentId":290,"order":356,"isParent":13,"icon":357,"_type":15,"_id":358,"_source":17,"_file":359,"_stem":360,"_extension":20,"children":361},"/python-how-to/error-handling","Error Handling","Learn Python's error handling with try/except, custom exceptions, debugging, logging, and retry logic for robust applications","error-handling",38,"pi pi-exclamation-triangle","content:python-how-to:38.error-handling.md","python-how-to/38.error-handling.md","python-how-to/38.error-handling",[362,371,380,389,398],{"_path":363,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":364,"description":365,"slug":366,"parentId":352,"order":367,"_type":15,"_id":368,"_source":17,"_file":369,"_stem":370,"_extension":20},"/python-how-to/handle-exceptions","Handle Exceptions","Master try/except blocks, multiple exception handling, and finally clauses for robust error handling in Python","handle-exceptions",39,"content:python-how-to:39.handle-exceptions.md","python-how-to/39.handle-exceptions.md","python-how-to/39.handle-exceptions",{"_path":372,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":373,"description":374,"slug":375,"parentId":352,"order":376,"_type":15,"_id":377,"_source":17,"_file":378,"_stem":379,"_extension":20},"/python-how-to/create-custom-exceptions","Create Custom Exceptions","Learn to create custom exception classes in Python for specific error handling and better code organization","create-custom-exceptions",40,"content:python-how-to:40.create-custom-exceptions.md","python-how-to/40.create-custom-exceptions.md","python-how-to/40.create-custom-exceptions",{"_path":381,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":382,"description":383,"slug":384,"parentId":352,"order":385,"_type":15,"_id":386,"_source":17,"_file":387,"_stem":388,"_extension":20},"/python-how-to/debug-code","Debug Code","Learn Python debugging techniques using print statements, the debugger, and tools to find and fix code issues","debug-code",41,"content:python-how-to:41.debug-code.md","python-how-to/41.debug-code.md","python-how-to/41.debug-code",{"_path":390,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":391,"description":392,"slug":393,"parentId":352,"order":394,"_type":15,"_id":395,"_source":17,"_file":396,"_stem":397,"_extension":20},"/python-how-to/use-logging","Use Logging","Learn Python's logging module for tracking application behavior, errors, and debugging information","use-logging",42,"content:python-how-to:42.use-logging.md","python-how-to/42.use-logging.md","python-how-to/42.use-logging",{"_path":399,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":400,"description":401,"slug":402,"parentId":352,"order":403,"_type":15,"_id":404,"_source":17,"_file":405,"_stem":406,"_extension":20},"/python-how-to/implement-retry-logic","Implement Retry Logic","Learn to implement retry mechanisms in Python for handling temporary failures and building resilient applications","implement-retry-logic",43,"content:python-how-to:43.implement-retry-logic.md","python-how-to/43.implement-retry-logic.md","python-how-to/43.implement-retry-logic",{"_path":408,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":409,"description":410,"slug":411,"parentId":290,"order":412,"isParent":13,"icon":413,"_type":15,"_id":414,"_source":17,"_file":415,"_stem":416,"_extension":20,"children":417},"/python-how-to/functions-and-modules","Functions and Modules","Learn Python functions, modules, and code organization for building reusable, maintainable applications","functions-and-modules",44,"pi pi-box","content:python-how-to:44.functions-and-modules.md","python-how-to/44.functions-and-modules.md","python-how-to/44.functions-and-modules",[418,427,436,445,454,463],{"_path":419,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":420,"description":421,"slug":422,"parentId":408,"order":423,"_type":15,"_id":424,"_source":17,"_file":425,"_stem":426,"_extension":20},"/python-how-to/write-functions","Write Functions","Learn to create Python functions with parameters, return values, and documentation for reusable code","write-functions",45,"content:python-how-to:45.write-functions.md","python-how-to/45.write-functions.md","python-how-to/45.write-functions",{"_path":428,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":429,"description":430,"slug":431,"parentId":408,"order":432,"_type":15,"_id":433,"_source":17,"_file":434,"_stem":435,"_extension":20},"/python-how-to/use-args-kwargs","Use *args and **kwargs","Learn to use *args and **kwargs for flexible function arguments in Python","use-args-kwargs",46,"content:python-how-to:46.use-args-kwargs.md","python-how-to/46.use-args-kwargs.md","python-how-to/46.use-args-kwargs",{"_path":437,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":438,"description":439,"slug":440,"parentId":408,"order":441,"_type":15,"_id":442,"_source":17,"_file":443,"_stem":444,"_extension":20},"/python-how-to/create-decorators","Create Decorators","Learn to create and use Python decorators to enhance function behavior and add functionality","create-decorators",47,"content:python-how-to:47.create-decorators.md","python-how-to/47.create-decorators.md","python-how-to/47.create-decorators",{"_path":446,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":447,"description":448,"slug":449,"parentId":408,"order":450,"_type":15,"_id":451,"_source":17,"_file":452,"_stem":453,"_extension":20},"/python-how-to/use-generators","Use Generators","Learn to create memory-efficient generators with yield for processing large datasets and sequences","use-generators",48,"content:python-how-to:48.use-generators.md","python-how-to/48.use-generators.md","python-how-to/48.use-generators",{"_path":455,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":456,"description":457,"slug":458,"parentId":408,"order":459,"_type":15,"_id":460,"_source":17,"_file":461,"_stem":462,"_extension":20},"/python-how-to/work-modules-packages","Work with Modules and Packages","Learn to organize Python code with modules and packages, and use imports effectively","work-modules-packages",49,"content:python-how-to:49.work-modules-packages.md","python-how-to/49.work-modules-packages.md","python-how-to/49.work-modules-packages",{"_path":464,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":465,"description":466,"slug":467,"parentId":408,"order":468,"_type":15,"_id":469,"_source":17,"_file":470,"_stem":471,"_extension":20},"/python-how-to/create-virtual-environments","Create Virtual Environments","Learn to create and manage Python virtual environments for project dependency isolation","create-virtual-environments",50,"content:python-how-to:50.create-virtual-environments.md","python-how-to/50.create-virtual-environments.md","python-how-to/50.create-virtual-environments",{"_path":473,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":474,"description":475,"slug":476,"parentId":290,"order":477,"isParent":13,"icon":478,"_type":15,"_id":479,"_source":17,"_file":480,"_stem":481,"_extension":20,"children":482},"/python-how-to/data-processing","Data Processing","Learn Python data processing techniques including regex, APIs, databases, and large file handling","data-processing",51,"pi pi-database","content:python-how-to:51.data-processing.md","python-how-to/51.data-processing.md","python-how-to/51.data-processing",[483,492,501,510,519],{"_path":484,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":485,"description":486,"slug":487,"parentId":473,"order":488,"_type":15,"_id":489,"_source":17,"_file":490,"_stem":491,"_extension":20},"/python-how-to/work-regular-expressions","Work with Regular Expressions","Learn to use Python's re module for pattern matching, text extraction, and data validation","work-regular-expressions",52,"content:python-how-to:52.work-regular-expressions.md","python-how-to/52.work-regular-expressions.md","python-how-to/52.work-regular-expressions",{"_path":493,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":494,"description":495,"slug":496,"parentId":473,"order":497,"_type":15,"_id":498,"_source":17,"_file":499,"_stem":500,"_extension":20},"/python-how-to/parse-xml-html","Parse XML and HTML","Learn to extract data from XML and HTML documents using Python's built-in parsing tools","parse-xml-html",53,"content:python-how-to:53.parse-xml-html.md","python-how-to/53.parse-xml-html.md","python-how-to/53.parse-xml-html",{"_path":502,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":503,"description":504,"slug":505,"parentId":473,"order":506,"_type":15,"_id":507,"_source":17,"_file":508,"_stem":509,"_extension":20},"/python-how-to/handle-api-requests","Handle API Requests","Learn to fetch and process data from web APIs using Python's urllib and external requests library","handle-api-requests",54,"content:python-how-to:54.handle-api-requests.md","python-how-to/54.handle-api-requests.md","python-how-to/54.handle-api-requests",{"_path":511,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":512,"description":513,"slug":514,"parentId":473,"order":515,"_type":15,"_id":516,"_source":17,"_file":517,"_stem":518,"_extension":20},"/python-how-to/work-databases","Work with Databases","Learn to connect to and query SQL databases using Python's sqlite3 and database techniques","work-databases",55,"content:python-how-to:55.work-databases.md","python-how-to/55.work-databases.md","python-how-to/55.work-databases",{"_path":520,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":521,"description":522,"slug":523,"parentId":473,"order":524,"_type":15,"_id":525,"_source":17,"_file":526,"_stem":527,"_extension":20},"/python-how-to/process-large-files","Process Large Files","Learn memory-efficient techniques for handling large files and datasets in Python","process-large-files",56,"content:python-how-to:56.process-large-files.md","python-how-to/56.process-large-files.md","python-how-to/56.process-large-files",{"_path":529,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":530,"description":531,"slug":532,"parentId":290,"order":533,"isParent":13,"icon":534,"_type":15,"_id":535,"_source":17,"_file":536,"_stem":537,"_extension":20,"children":538},"/python-how-to/best-practices","Best Practices","Learn Python best practices for writing clean, maintainable, and efficient code","best-practices",57,"pi pi-star","content:python-how-to:57.best-practices.md","python-how-to/57.best-practices.md","python-how-to/57.best-practices",[539,548,557,566,575,584],{"_path":540,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":541,"description":542,"slug":543,"parentId":529,"order":544,"_type":15,"_id":545,"_source":17,"_file":546,"_stem":547,"_extension":20},"/python-how-to/structure-code","Structure Your Code","Learn to organize Python code with proper module structure, functions, and classes","structure-code",58,"content:python-how-to:58.structure-code.md","python-how-to/58.structure-code.md","python-how-to/58.structure-code",{"_path":549,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":550,"description":551,"slug":552,"parentId":529,"order":553,"_type":15,"_id":554,"_source":17,"_file":555,"_stem":556,"_extension":20},"/python-how-to/write-clean-code","Write Clean Code","Learn to write readable, maintainable Python code with proper naming, comments, and clear logic","write-clean-code",59,"content:python-how-to:59.write-clean-code.md","python-how-to/59.write-clean-code.md","python-how-to/59.write-clean-code",{"_path":558,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":559,"description":560,"slug":561,"parentId":529,"order":562,"_type":15,"_id":563,"_source":17,"_file":564,"_stem":565,"_extension":20},"/python-how-to/optimize-performance","Optimize Performance","Learn to identify and fix performance bottlenecks in Python code for faster execution","optimize-performance",60,"content:python-how-to:60.optimize-performance.md","python-how-to/60.optimize-performance.md","python-how-to/60.optimize-performance",{"_path":567,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":568,"description":569,"slug":570,"parentId":529,"order":571,"_type":15,"_id":572,"_source":17,"_file":573,"_stem":574,"_extension":20},"/python-how-to/write-unit-tests","Write Unit Tests","Learn to create reliable unit tests to verify your Python code works correctly and catch bugs early","write-unit-tests",61,"content:python-how-to:61.write-unit-tests.md","python-how-to/61.write-unit-tests.md","python-how-to/61.write-unit-tests",{"_path":576,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":577,"description":578,"slug":579,"parentId":529,"order":580,"_type":15,"_id":581,"_source":17,"_file":582,"_stem":583,"_extension":20},"/python-how-to/document-code","Document Your Code","Learn to write clear documentation and helpful comments for your Python code","document-code",62,"content:python-how-to:62.document-code.md","python-how-to/62.document-code.md","python-how-to/62.document-code",{"_path":585,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":586,"description":587,"slug":588,"parentId":529,"order":589,"_type":15,"_id":590,"_source":17,"_file":591,"_stem":592,"_extension":20},"/python-how-to/use-type-hints","Use Type Hints","Learn to add type annotations to Python code for better clarity, tooling support, and error detection","use-type-hints",63,"content:python-how-to:63.use-type-hints.md","python-how-to/63.use-type-hints.md","python-how-to/63.use-type-hints",{"_path":290,"_dir":8,"_draft":7,"_partial":7,"_locale":8,"title":594,"description":595,"slug":6,"order":596,"icon":14,"_type":15,"_id":597,"_source":17,"_file":598,"_stem":599,"_extension":20},"Python How-To Guide","Practical Python tutorials for common programming tasks. Learn step-by-step solutions for string manipulation, file operations, data processing, and more with real-world examples.",0,"content:python-how-to:index.md","python-how-to/index.md","python-how-to/index",[158],{"_path":159,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":160,"description":161,"slug":162,"parentId":149,"order":163,"body":602,"_type":15,"_id":164,"_source":17,"_file":165,"_stem":166,"_extension":20},{"type":603,"children":604,"toc":2217},"root",[605,614,620,812,819,824,910,917,1272,1278,1283,2102,2108,2211],{"type":606,"tag":607,"props":608,"children":610},"element","h1",{"id":609},"merging-dictionaries",[611],{"type":612,"value":613},"text","🔄 Merging Dictionaries",{"type":606,"tag":615,"props":616,"children":617},"p",{},[618],{"type":612,"value":619},"Python provides multiple ways to merge dictionaries, from simple updates to complex combinations. Understanding these methods is essential for data manipulation and configuration management.",{"type":606,"tag":621,"props":622,"children":623},"code-try",{},[624],{"type":606,"tag":625,"props":626,"children":630},"pre",{"className":627,"code":628,"language":629,"meta":8,"style":8},"language-python shiki shiki-themes github-light github-dark","# Basic dictionary merging\ndict1 = {'a': 1, 'b': 2}\ndict2 = {'c': 3, 'd': 4}\nmerged = {**dict1, **dict2}\nprint(merged)  # {'a': 1, 'b': 2, 'c': 3, 'd': 4}\n","python",[631],{"type":606,"tag":632,"props":633,"children":634},"code",{"__ignoreMap":8},[635,646,707,759,794],{"type":606,"tag":636,"props":637,"children":639},"span",{"class":638,"line":12},"line",[640],{"type":606,"tag":636,"props":641,"children":643},{"style":642},"--shiki-default:#6A737D;--shiki-app-dark-mode:#6A737D",[644],{"type":612,"value":645},"# Basic dictionary merging\n",{"type":606,"tag":636,"props":647,"children":648},{"class":638,"line":27},[649,655,661,666,672,677,683,688,693,697,702],{"type":606,"tag":636,"props":650,"children":652},{"style":651},"--shiki-default:#24292E;--shiki-app-dark-mode:#E1E4E8",[653],{"type":612,"value":654},"dict1 ",{"type":606,"tag":636,"props":656,"children":658},{"style":657},"--shiki-default:#D73A49;--shiki-app-dark-mode:#F97583",[659],{"type":612,"value":660},"=",{"type":606,"tag":636,"props":662,"children":663},{"style":651},[664],{"type":612,"value":665}," {",{"type":606,"tag":636,"props":667,"children":669},{"style":668},"--shiki-default:#032F62;--shiki-app-dark-mode:#9ECBFF",[670],{"type":612,"value":671},"'a'",{"type":606,"tag":636,"props":673,"children":674},{"style":651},[675],{"type":612,"value":676},": ",{"type":606,"tag":636,"props":678,"children":680},{"style":679},"--shiki-default:#005CC5;--shiki-app-dark-mode:#79B8FF",[681],{"type":612,"value":682},"1",{"type":606,"tag":636,"props":684,"children":685},{"style":651},[686],{"type":612,"value":687},", ",{"type":606,"tag":636,"props":689,"children":690},{"style":668},[691],{"type":612,"value":692},"'b'",{"type":606,"tag":636,"props":694,"children":695},{"style":651},[696],{"type":612,"value":676},{"type":606,"tag":636,"props":698,"children":699},{"style":679},[700],{"type":612,"value":701},"2",{"type":606,"tag":636,"props":703,"children":704},{"style":651},[705],{"type":612,"value":706},"}\n",{"type":606,"tag":636,"props":708,"children":709},{"class":638,"line":36},[710,715,719,723,728,732,737,741,746,750,755],{"type":606,"tag":636,"props":711,"children":712},{"style":651},[713],{"type":612,"value":714},"dict2 ",{"type":606,"tag":636,"props":716,"children":717},{"style":657},[718],{"type":612,"value":660},{"type":606,"tag":636,"props":720,"children":721},{"style":651},[722],{"type":612,"value":665},{"type":606,"tag":636,"props":724,"children":725},{"style":668},[726],{"type":612,"value":727},"'c'",{"type":606,"tag":636,"props":729,"children":730},{"style":651},[731],{"type":612,"value":676},{"type":606,"tag":636,"props":733,"children":734},{"style":679},[735],{"type":612,"value":736},"3",{"type":606,"tag":636,"props":738,"children":739},{"style":651},[740],{"type":612,"value":687},{"type":606,"tag":636,"props":742,"children":743},{"style":668},[744],{"type":612,"value":745},"'d'",{"type":606,"tag":636,"props":747,"children":748},{"style":651},[749],{"type":612,"value":676},{"type":606,"tag":636,"props":751,"children":752},{"style":679},[753],{"type":612,"value":754},"4",{"type":606,"tag":636,"props":756,"children":757},{"style":651},[758],{"type":612,"value":706},{"type":606,"tag":636,"props":760,"children":761},{"class":638,"line":45},[762,767,771,775,780,785,789],{"type":606,"tag":636,"props":763,"children":764},{"style":651},[765],{"type":612,"value":766},"merged ",{"type":606,"tag":636,"props":768,"children":769},{"style":657},[770],{"type":612,"value":660},{"type":606,"tag":636,"props":772,"children":773},{"style":651},[774],{"type":612,"value":665},{"type":606,"tag":636,"props":776,"children":777},{"style":657},[778],{"type":612,"value":779},"**",{"type":606,"tag":636,"props":781,"children":782},{"style":651},[783],{"type":612,"value":784},"dict1, ",{"type":606,"tag":636,"props":786,"children":787},{"style":657},[788],{"type":612,"value":779},{"type":606,"tag":636,"props":790,"children":791},{"style":651},[792],{"type":612,"value":793},"dict2}\n",{"type":606,"tag":636,"props":795,"children":796},{"class":638,"line":54},[797,802,807],{"type":606,"tag":636,"props":798,"children":799},{"style":679},[800],{"type":612,"value":801},"print",{"type":606,"tag":636,"props":803,"children":804},{"style":651},[805],{"type":612,"value":806},"(merged)  ",{"type":606,"tag":636,"props":808,"children":809},{"style":642},[810],{"type":612,"value":811},"# {'a': 1, 'b': 2, 'c': 3, 'd': 4}\n",{"type":606,"tag":813,"props":814,"children":816},"h2",{"id":815},"merging-methods",[817],{"type":612,"value":818},"🎯 Merging Methods",{"type":606,"tag":615,"props":820,"children":821},{},[822],{"type":612,"value":823},"Python offers several approaches to merge dictionaries.",{"type":606,"tag":825,"props":826,"children":830},"info-box",{"emoji":827,"title":828,"type":829},"📝","Merging Methods","info",[831,840,878,886],{"type":606,"tag":615,"props":832,"children":833},{},[834],{"type":606,"tag":835,"props":836,"children":837},"strong",{},[838],{"type":612,"value":839},"Basic Methods:",{"type":606,"tag":841,"props":842,"children":843},"ul",{},[844,856,867],{"type":606,"tag":845,"props":846,"children":847},"li",{},[848,854],{"type":606,"tag":632,"props":849,"children":851},{"className":850},[],[852],{"type":612,"value":853},"{**dict1, **dict2}",{"type":612,"value":855},": Unpacking operator",{"type":606,"tag":845,"props":857,"children":858},{},[859,865],{"type":606,"tag":632,"props":860,"children":862},{"className":861},[],[863],{"type":612,"value":864},".update()",{"type":612,"value":866},": In-place update",{"type":606,"tag":845,"props":868,"children":869},{},[870,876],{"type":606,"tag":632,"props":871,"children":873},{"className":872},[],[874],{"type":612,"value":875},"dict1 | dict2",{"type":612,"value":877},": Union operator (Python 3.9+)",{"type":606,"tag":615,"props":879,"children":880},{},[881],{"type":606,"tag":835,"props":882,"children":883},{},[884],{"type":612,"value":885},"Advanced Methods:",{"type":606,"tag":841,"props":887,"children":888},{},[889,900,905],{"type":606,"tag":845,"props":890,"children":891},{},[892,898],{"type":606,"tag":632,"props":893,"children":895},{"className":894},[],[896],{"type":612,"value":897},"collections.ChainMap",{"type":612,"value":899},": View of multiple dicts",{"type":606,"tag":845,"props":901,"children":902},{},[903],{"type":612,"value":904},"Custom merge functions",{"type":606,"tag":845,"props":906,"children":907},{},[908],{"type":612,"value":909},"Deep merging",{"type":606,"tag":911,"props":912,"children":914},"h3",{"id":913},"basic-examples",[915],{"type":612,"value":916},"Basic Examples",{"type":606,"tag":621,"props":918,"children":919},{},[920],{"type":606,"tag":625,"props":921,"children":923},{"className":627,"code":922,"language":629,"meta":8,"style":8},"# Different ways to merge dictionaries\ndict1 = {'a': 1, 'b': 2}\ndict2 = {'c': 3, 'd': 4}\n\n# Using unpacking\nmerged1 = {**dict1, **dict2}\nprint(f\"Using unpacking: {merged1}\")\n\n# Using update()\ndict1.update(dict2)\nprint(f\"Using update(): {dict1}\")\n\n# Using union operator (Python 3.9+)\nmerged2 = dict1 | dict2\nprint(f\"Using union: {merged2}\")\n",[924],{"type":606,"tag":632,"props":925,"children":926},{"__ignoreMap":8},[927,935,982,1029,1037,1045,1077,1124,1131,1140,1148,1189,1196,1204,1231],{"type":606,"tag":636,"props":928,"children":929},{"class":638,"line":12},[930],{"type":606,"tag":636,"props":931,"children":932},{"style":642},[933],{"type":612,"value":934},"# Different ways to merge dictionaries\n",{"type":606,"tag":636,"props":936,"children":937},{"class":638,"line":27},[938,942,946,950,954,958,962,966,970,974,978],{"type":606,"tag":636,"props":939,"children":940},{"style":651},[941],{"type":612,"value":654},{"type":606,"tag":636,"props":943,"children":944},{"style":657},[945],{"type":612,"value":660},{"type":606,"tag":636,"props":947,"children":948},{"style":651},[949],{"type":612,"value":665},{"type":606,"tag":636,"props":951,"children":952},{"style":668},[953],{"type":612,"value":671},{"type":606,"tag":636,"props":955,"children":956},{"style":651},[957],{"type":612,"value":676},{"type":606,"tag":636,"props":959,"children":960},{"style":679},[961],{"type":612,"value":682},{"type":606,"tag":636,"props":963,"children":964},{"style":651},[965],{"type":612,"value":687},{"type":606,"tag":636,"props":967,"children":968},{"style":668},[969],{"type":612,"value":692},{"type":606,"tag":636,"props":971,"children":972},{"style":651},[973],{"type":612,"value":676},{"type":606,"tag":636,"props":975,"children":976},{"style":679},[977],{"type":612,"value":701},{"type":606,"tag":636,"props":979,"children":980},{"style":651},[981],{"type":612,"value":706},{"type":606,"tag":636,"props":983,"children":984},{"class":638,"line":36},[985,989,993,997,1001,1005,1009,1013,1017,1021,1025],{"type":606,"tag":636,"props":986,"children":987},{"style":651},[988],{"type":612,"value":714},{"type":606,"tag":636,"props":990,"children":991},{"style":657},[992],{"type":612,"value":660},{"type":606,"tag":636,"props":994,"children":995},{"style":651},[996],{"type":612,"value":665},{"type":606,"tag":636,"props":998,"children":999},{"style":668},[1000],{"type":612,"value":727},{"type":606,"tag":636,"props":1002,"children":1003},{"style":651},[1004],{"type":612,"value":676},{"type":606,"tag":636,"props":1006,"children":1007},{"style":679},[1008],{"type":612,"value":736},{"type":606,"tag":636,"props":1010,"children":1011},{"style":651},[1012],{"type":612,"value":687},{"type":606,"tag":636,"props":1014,"children":1015},{"style":668},[1016],{"type":612,"value":745},{"type":606,"tag":636,"props":1018,"children":1019},{"style":651},[1020],{"type":612,"value":676},{"type":606,"tag":636,"props":1022,"children":1023},{"style":679},[1024],{"type":612,"value":754},{"type":606,"tag":636,"props":1026,"children":1027},{"style":651},[1028],{"type":612,"value":706},{"type":606,"tag":636,"props":1030,"children":1031},{"class":638,"line":45},[1032],{"type":606,"tag":636,"props":1033,"children":1034},{"emptyLinePlaceholder":13},[1035],{"type":612,"value":1036},"\n",{"type":606,"tag":636,"props":1038,"children":1039},{"class":638,"line":54},[1040],{"type":606,"tag":636,"props":1041,"children":1042},{"style":642},[1043],{"type":612,"value":1044},"# Using unpacking\n",{"type":606,"tag":636,"props":1046,"children":1047},{"class":638,"line":63},[1048,1053,1057,1061,1065,1069,1073],{"type":606,"tag":636,"props":1049,"children":1050},{"style":651},[1051],{"type":612,"value":1052},"merged1 ",{"type":606,"tag":636,"props":1054,"children":1055},{"style":657},[1056],{"type":612,"value":660},{"type":606,"tag":636,"props":1058,"children":1059},{"style":651},[1060],{"type":612,"value":665},{"type":606,"tag":636,"props":1062,"children":1063},{"style":657},[1064],{"type":612,"value":779},{"type":606,"tag":636,"props":1066,"children":1067},{"style":651},[1068],{"type":612,"value":784},{"type":606,"tag":636,"props":1070,"children":1071},{"style":657},[1072],{"type":612,"value":779},{"type":606,"tag":636,"props":1074,"children":1075},{"style":651},[1076],{"type":612,"value":793},{"type":606,"tag":636,"props":1078,"children":1079},{"class":638,"line":72},[1080,1084,1089,1094,1099,1104,1109,1114,1119],{"type":606,"tag":636,"props":1081,"children":1082},{"style":679},[1083],{"type":612,"value":801},{"type":606,"tag":636,"props":1085,"children":1086},{"style":651},[1087],{"type":612,"value":1088},"(",{"type":606,"tag":636,"props":1090,"children":1091},{"style":657},[1092],{"type":612,"value":1093},"f",{"type":606,"tag":636,"props":1095,"children":1096},{"style":668},[1097],{"type":612,"value":1098},"\"Using unpacking: ",{"type":606,"tag":636,"props":1100,"children":1101},{"style":679},[1102],{"type":612,"value":1103},"{",{"type":606,"tag":636,"props":1105,"children":1106},{"style":651},[1107],{"type":612,"value":1108},"merged1",{"type":606,"tag":636,"props":1110,"children":1111},{"style":679},[1112],{"type":612,"value":1113},"}",{"type":606,"tag":636,"props":1115,"children":1116},{"style":668},[1117],{"type":612,"value":1118},"\"",{"type":606,"tag":636,"props":1120,"children":1121},{"style":651},[1122],{"type":612,"value":1123},")\n",{"type":606,"tag":636,"props":1125,"children":1126},{"class":638,"line":81},[1127],{"type":606,"tag":636,"props":1128,"children":1129},{"emptyLinePlaceholder":13},[1130],{"type":612,"value":1036},{"type":606,"tag":636,"props":1132,"children":1134},{"class":638,"line":1133},9,[1135],{"type":606,"tag":636,"props":1136,"children":1137},{"style":642},[1138],{"type":612,"value":1139},"# Using update()\n",{"type":606,"tag":636,"props":1141,"children":1142},{"class":638,"line":99},[1143],{"type":606,"tag":636,"props":1144,"children":1145},{"style":651},[1146],{"type":612,"value":1147},"dict1.update(dict2)\n",{"type":606,"tag":636,"props":1149,"children":1150},{"class":638,"line":108},[1151,1155,1159,1163,1168,1172,1177,1181,1185],{"type":606,"tag":636,"props":1152,"children":1153},{"style":679},[1154],{"type":612,"value":801},{"type":606,"tag":636,"props":1156,"children":1157},{"style":651},[1158],{"type":612,"value":1088},{"type":606,"tag":636,"props":1160,"children":1161},{"style":657},[1162],{"type":612,"value":1093},{"type":606,"tag":636,"props":1164,"children":1165},{"style":668},[1166],{"type":612,"value":1167},"\"Using update(): ",{"type":606,"tag":636,"props":1169,"children":1170},{"style":679},[1171],{"type":612,"value":1103},{"type":606,"tag":636,"props":1173,"children":1174},{"style":651},[1175],{"type":612,"value":1176},"dict1",{"type":606,"tag":636,"props":1178,"children":1179},{"style":679},[1180],{"type":612,"value":1113},{"type":606,"tag":636,"props":1182,"children":1183},{"style":668},[1184],{"type":612,"value":1118},{"type":606,"tag":636,"props":1186,"children":1187},{"style":651},[1188],{"type":612,"value":1123},{"type":606,"tag":636,"props":1190,"children":1191},{"class":638,"line":117},[1192],{"type":606,"tag":636,"props":1193,"children":1194},{"emptyLinePlaceholder":13},[1195],{"type":612,"value":1036},{"type":606,"tag":636,"props":1197,"children":1198},{"class":638,"line":126},[1199],{"type":606,"tag":636,"props":1200,"children":1201},{"style":642},[1202],{"type":612,"value":1203},"# Using union operator (Python 3.9+)\n",{"type":606,"tag":636,"props":1205,"children":1206},{"class":638,"line":135},[1207,1212,1216,1221,1226],{"type":606,"tag":636,"props":1208,"children":1209},{"style":651},[1210],{"type":612,"value":1211},"merged2 ",{"type":606,"tag":636,"props":1213,"children":1214},{"style":657},[1215],{"type":612,"value":660},{"type":606,"tag":636,"props":1217,"children":1218},{"style":651},[1219],{"type":612,"value":1220}," dict1 ",{"type":606,"tag":636,"props":1222,"children":1223},{"style":657},[1224],{"type":612,"value":1225},"|",{"type":606,"tag":636,"props":1227,"children":1228},{"style":651},[1229],{"type":612,"value":1230}," dict2\n",{"type":606,"tag":636,"props":1232,"children":1233},{"class":638,"line":144},[1234,1238,1242,1246,1251,1255,1260,1264,1268],{"type":606,"tag":636,"props":1235,"children":1236},{"style":679},[1237],{"type":612,"value":801},{"type":606,"tag":636,"props":1239,"children":1240},{"style":651},[1241],{"type":612,"value":1088},{"type":606,"tag":636,"props":1243,"children":1244},{"style":657},[1245],{"type":612,"value":1093},{"type":606,"tag":636,"props":1247,"children":1248},{"style":668},[1249],{"type":612,"value":1250},"\"Using union: ",{"type":606,"tag":636,"props":1252,"children":1253},{"style":679},[1254],{"type":612,"value":1103},{"type":606,"tag":636,"props":1256,"children":1257},{"style":651},[1258],{"type":612,"value":1259},"merged2",{"type":606,"tag":636,"props":1261,"children":1262},{"style":679},[1263],{"type":612,"value":1113},{"type":606,"tag":636,"props":1265,"children":1266},{"style":668},[1267],{"type":612,"value":1118},{"type":606,"tag":636,"props":1269,"children":1270},{"style":651},[1271],{"type":612,"value":1123},{"type":606,"tag":813,"props":1273,"children":1275},{"id":1274},"advanced-merging",[1276],{"type":612,"value":1277},"🔍 Advanced Merging",{"type":606,"tag":615,"props":1279,"children":1280},{},[1281],{"type":612,"value":1282},"Python allows more sophisticated dictionary merging operations.",{"type":606,"tag":621,"props":1284,"children":1285},{},[1286],{"type":606,"tag":625,"props":1287,"children":1289},{"className":627,"code":1288,"language":629,"meta":8,"style":8},"# Advanced merging examples\nfrom collections import ChainMap\n\n# Using ChainMap\ndict1 = {'a': 1, 'b': 2}\ndict2 = {'b': 3, 'c': 4}\nchain = ChainMap(dict1, dict2)\nprint(f\"ChainMap: {dict(chain)}\")\n\n# Deep merging\ndef deep_merge(dict1, dict2):\n    result = dict1.copy()\n    for key, value in dict2.items():\n        if key in result and isinstance(result[key], dict) and isinstance(value, dict):\n            result[key] = deep_merge(result[key], value)\n        else:\n            result[key] = value\n    return result\n\n# Example of deep merging\ndict1 = {'a': 1, 'b': {'x': 1, 'y': 2}}\ndict2 = {'b': {'y': 3, 'z': 4}, 'c': 3}\nmerged = deep_merge(dict1, dict2)\nprint(f\"Deep merged: {merged}\")\n\n# Handling conflicts\ndict1 = {'a': 1, 'b': 2}\ndict2 = {'b': 3, 'c': 4}\n# Keep values from dict2\nmerged = {**dict1, **dict2}\nprint(f\"Conflict resolution: {merged}\")\n",[1290],{"type":606,"tag":632,"props":1291,"children":1292},{"__ignoreMap":8},[1293,1301,1324,1331,1339,1386,1433,1450,1492,1499,1507,1526,1543,1566,1635,1652,1665,1681,1694,1701,1709,1784,1857,1873,1914,1921,1929,1976,2023,2031,2062],{"type":606,"tag":636,"props":1294,"children":1295},{"class":638,"line":12},[1296],{"type":606,"tag":636,"props":1297,"children":1298},{"style":642},[1299],{"type":612,"value":1300},"# Advanced merging examples\n",{"type":606,"tag":636,"props":1302,"children":1303},{"class":638,"line":27},[1304,1309,1314,1319],{"type":606,"tag":636,"props":1305,"children":1306},{"style":657},[1307],{"type":612,"value":1308},"from",{"type":606,"tag":636,"props":1310,"children":1311},{"style":651},[1312],{"type":612,"value":1313}," collections ",{"type":606,"tag":636,"props":1315,"children":1316},{"style":657},[1317],{"type":612,"value":1318},"import",{"type":606,"tag":636,"props":1320,"children":1321},{"style":651},[1322],{"type":612,"value":1323}," ChainMap\n",{"type":606,"tag":636,"props":1325,"children":1326},{"class":638,"line":36},[1327],{"type":606,"tag":636,"props":1328,"children":1329},{"emptyLinePlaceholder":13},[1330],{"type":612,"value":1036},{"type":606,"tag":636,"props":1332,"children":1333},{"class":638,"line":45},[1334],{"type":606,"tag":636,"props":1335,"children":1336},{"style":642},[1337],{"type":612,"value":1338},"# Using ChainMap\n",{"type":606,"tag":636,"props":1340,"children":1341},{"class":638,"line":54},[1342,1346,1350,1354,1358,1362,1366,1370,1374,1378,1382],{"type":606,"tag":636,"props":1343,"children":1344},{"style":651},[1345],{"type":612,"value":654},{"type":606,"tag":636,"props":1347,"children":1348},{"style":657},[1349],{"type":612,"value":660},{"type":606,"tag":636,"props":1351,"children":1352},{"style":651},[1353],{"type":612,"value":665},{"type":606,"tag":636,"props":1355,"children":1356},{"style":668},[1357],{"type":612,"value":671},{"type":606,"tag":636,"props":1359,"children":1360},{"style":651},[1361],{"type":612,"value":676},{"type":606,"tag":636,"props":1363,"children":1364},{"style":679},[1365],{"type":612,"value":682},{"type":606,"tag":636,"props":1367,"children":1368},{"style":651},[1369],{"type":612,"value":687},{"type":606,"tag":636,"props":1371,"children":1372},{"style":668},[1373],{"type":612,"value":692},{"type":606,"tag":636,"props":1375,"children":1376},{"style":651},[1377],{"type":612,"value":676},{"type":606,"tag":636,"props":1379,"children":1380},{"style":679},[1381],{"type":612,"value":701},{"type":606,"tag":636,"props":1383,"children":1384},{"style":651},[1385],{"type":612,"value":706},{"type":606,"tag":636,"props":1387,"children":1388},{"class":638,"line":63},[1389,1393,1397,1401,1405,1409,1413,1417,1421,1425,1429],{"type":606,"tag":636,"props":1390,"children":1391},{"style":651},[1392],{"type":612,"value":714},{"type":606,"tag":636,"props":1394,"children":1395},{"style":657},[1396],{"type":612,"value":660},{"type":606,"tag":636,"props":1398,"children":1399},{"style":651},[1400],{"type":612,"value":665},{"type":606,"tag":636,"props":1402,"children":1403},{"style":668},[1404],{"type":612,"value":692},{"type":606,"tag":636,"props":1406,"children":1407},{"style":651},[1408],{"type":612,"value":676},{"type":606,"tag":636,"props":1410,"children":1411},{"style":679},[1412],{"type":612,"value":736},{"type":606,"tag":636,"props":1414,"children":1415},{"style":651},[1416],{"type":612,"value":687},{"type":606,"tag":636,"props":1418,"children":1419},{"style":668},[1420],{"type":612,"value":727},{"type":606,"tag":636,"props":1422,"children":1423},{"style":651},[1424],{"type":612,"value":676},{"type":606,"tag":636,"props":1426,"children":1427},{"style":679},[1428],{"type":612,"value":754},{"type":606,"tag":636,"props":1430,"children":1431},{"style":651},[1432],{"type":612,"value":706},{"type":606,"tag":636,"props":1434,"children":1435},{"class":638,"line":72},[1436,1441,1445],{"type":606,"tag":636,"props":1437,"children":1438},{"style":651},[1439],{"type":612,"value":1440},"chain ",{"type":606,"tag":636,"props":1442,"children":1443},{"style":657},[1444],{"type":612,"value":660},{"type":606,"tag":636,"props":1446,"children":1447},{"style":651},[1448],{"type":612,"value":1449}," ChainMap(dict1, dict2)\n",{"type":606,"tag":636,"props":1451,"children":1452},{"class":638,"line":81},[1453,1457,1461,1465,1470,1475,1480,1484,1488],{"type":606,"tag":636,"props":1454,"children":1455},{"style":679},[1456],{"type":612,"value":801},{"type":606,"tag":636,"props":1458,"children":1459},{"style":651},[1460],{"type":612,"value":1088},{"type":606,"tag":636,"props":1462,"children":1463},{"style":657},[1464],{"type":612,"value":1093},{"type":606,"tag":636,"props":1466,"children":1467},{"style":668},[1468],{"type":612,"value":1469},"\"ChainMap: ",{"type":606,"tag":636,"props":1471,"children":1472},{"style":679},[1473],{"type":612,"value":1474},"{dict",{"type":606,"tag":636,"props":1476,"children":1477},{"style":651},[1478],{"type":612,"value":1479},"(chain)",{"type":606,"tag":636,"props":1481,"children":1482},{"style":679},[1483],{"type":612,"value":1113},{"type":606,"tag":636,"props":1485,"children":1486},{"style":668},[1487],{"type":612,"value":1118},{"type":606,"tag":636,"props":1489,"children":1490},{"style":651},[1491],{"type":612,"value":1123},{"type":606,"tag":636,"props":1493,"children":1494},{"class":638,"line":1133},[1495],{"type":606,"tag":636,"props":1496,"children":1497},{"emptyLinePlaceholder":13},[1498],{"type":612,"value":1036},{"type":606,"tag":636,"props":1500,"children":1501},{"class":638,"line":99},[1502],{"type":606,"tag":636,"props":1503,"children":1504},{"style":642},[1505],{"type":612,"value":1506},"# Deep merging\n",{"type":606,"tag":636,"props":1508,"children":1509},{"class":638,"line":108},[1510,1515,1521],{"type":606,"tag":636,"props":1511,"children":1512},{"style":657},[1513],{"type":612,"value":1514},"def",{"type":606,"tag":636,"props":1516,"children":1518},{"style":1517},"--shiki-default:#6F42C1;--shiki-app-dark-mode:#B392F0",[1519],{"type":612,"value":1520}," deep_merge",{"type":606,"tag":636,"props":1522,"children":1523},{"style":651},[1524],{"type":612,"value":1525},"(dict1, dict2):\n",{"type":606,"tag":636,"props":1527,"children":1528},{"class":638,"line":117},[1529,1534,1538],{"type":606,"tag":636,"props":1530,"children":1531},{"style":651},[1532],{"type":612,"value":1533},"    result ",{"type":606,"tag":636,"props":1535,"children":1536},{"style":657},[1537],{"type":612,"value":660},{"type":606,"tag":636,"props":1539,"children":1540},{"style":651},[1541],{"type":612,"value":1542}," dict1.copy()\n",{"type":606,"tag":636,"props":1544,"children":1545},{"class":638,"line":126},[1546,1551,1556,1561],{"type":606,"tag":636,"props":1547,"children":1548},{"style":657},[1549],{"type":612,"value":1550},"    for",{"type":606,"tag":636,"props":1552,"children":1553},{"style":651},[1554],{"type":612,"value":1555}," key, value ",{"type":606,"tag":636,"props":1557,"children":1558},{"style":657},[1559],{"type":612,"value":1560},"in",{"type":606,"tag":636,"props":1562,"children":1563},{"style":651},[1564],{"type":612,"value":1565}," dict2.items():\n",{"type":606,"tag":636,"props":1567,"children":1568},{"class":638,"line":135},[1569,1574,1579,1583,1588,1593,1598,1603,1608,1613,1617,1621,1626,1630],{"type":606,"tag":636,"props":1570,"children":1571},{"style":657},[1572],{"type":612,"value":1573},"        if",{"type":606,"tag":636,"props":1575,"children":1576},{"style":651},[1577],{"type":612,"value":1578}," key ",{"type":606,"tag":636,"props":1580,"children":1581},{"style":657},[1582],{"type":612,"value":1560},{"type":606,"tag":636,"props":1584,"children":1585},{"style":651},[1586],{"type":612,"value":1587}," result ",{"type":606,"tag":636,"props":1589,"children":1590},{"style":657},[1591],{"type":612,"value":1592},"and",{"type":606,"tag":636,"props":1594,"children":1595},{"style":679},[1596],{"type":612,"value":1597}," isinstance",{"type":606,"tag":636,"props":1599,"children":1600},{"style":651},[1601],{"type":612,"value":1602},"(result[key], ",{"type":606,"tag":636,"props":1604,"children":1605},{"style":679},[1606],{"type":612,"value":1607},"dict",{"type":606,"tag":636,"props":1609,"children":1610},{"style":651},[1611],{"type":612,"value":1612},") ",{"type":606,"tag":636,"props":1614,"children":1615},{"style":657},[1616],{"type":612,"value":1592},{"type":606,"tag":636,"props":1618,"children":1619},{"style":679},[1620],{"type":612,"value":1597},{"type":606,"tag":636,"props":1622,"children":1623},{"style":651},[1624],{"type":612,"value":1625},"(value, ",{"type":606,"tag":636,"props":1627,"children":1628},{"style":679},[1629],{"type":612,"value":1607},{"type":606,"tag":636,"props":1631,"children":1632},{"style":651},[1633],{"type":612,"value":1634},"):\n",{"type":606,"tag":636,"props":1636,"children":1637},{"class":638,"line":144},[1638,1643,1647],{"type":606,"tag":636,"props":1639,"children":1640},{"style":651},[1641],{"type":612,"value":1642},"            result[key] ",{"type":606,"tag":636,"props":1644,"children":1645},{"style":657},[1646],{"type":612,"value":660},{"type":606,"tag":636,"props":1648,"children":1649},{"style":651},[1650],{"type":612,"value":1651}," deep_merge(result[key], value)\n",{"type":606,"tag":636,"props":1653,"children":1654},{"class":638,"line":153},[1655,1660],{"type":606,"tag":636,"props":1656,"children":1657},{"style":657},[1658],{"type":612,"value":1659},"        else",{"type":606,"tag":636,"props":1661,"children":1662},{"style":651},[1663],{"type":612,"value":1664},":\n",{"type":606,"tag":636,"props":1666,"children":1667},{"class":638,"line":163},[1668,1672,1676],{"type":606,"tag":636,"props":1669,"children":1670},{"style":651},[1671],{"type":612,"value":1642},{"type":606,"tag":636,"props":1673,"children":1674},{"style":657},[1675],{"type":612,"value":660},{"type":606,"tag":636,"props":1677,"children":1678},{"style":651},[1679],{"type":612,"value":1680}," value\n",{"type":606,"tag":636,"props":1682,"children":1683},{"class":638,"line":172},[1684,1689],{"type":606,"tag":636,"props":1685,"children":1686},{"style":657},[1687],{"type":612,"value":1688},"    return",{"type":606,"tag":636,"props":1690,"children":1691},{"style":651},[1692],{"type":612,"value":1693}," result\n",{"type":606,"tag":636,"props":1695,"children":1696},{"class":638,"line":181},[1697],{"type":606,"tag":636,"props":1698,"children":1699},{"emptyLinePlaceholder":13},[1700],{"type":612,"value":1036},{"type":606,"tag":636,"props":1702,"children":1703},{"class":638,"line":190},[1704],{"type":606,"tag":636,"props":1705,"children":1706},{"style":642},[1707],{"type":612,"value":1708},"# Example of deep merging\n",{"type":606,"tag":636,"props":1710,"children":1711},{"class":638,"line":199},[1712,1716,1720,1724,1728,1732,1736,1740,1744,1749,1754,1758,1762,1766,1771,1775,1779],{"type":606,"tag":636,"props":1713,"children":1714},{"style":651},[1715],{"type":612,"value":654},{"type":606,"tag":636,"props":1717,"children":1718},{"style":657},[1719],{"type":612,"value":660},{"type":606,"tag":636,"props":1721,"children":1722},{"style":651},[1723],{"type":612,"value":665},{"type":606,"tag":636,"props":1725,"children":1726},{"style":668},[1727],{"type":612,"value":671},{"type":606,"tag":636,"props":1729,"children":1730},{"style":651},[1731],{"type":612,"value":676},{"type":606,"tag":636,"props":1733,"children":1734},{"style":679},[1735],{"type":612,"value":682},{"type":606,"tag":636,"props":1737,"children":1738},{"style":651},[1739],{"type":612,"value":687},{"type":606,"tag":636,"props":1741,"children":1742},{"style":668},[1743],{"type":612,"value":692},{"type":606,"tag":636,"props":1745,"children":1746},{"style":651},[1747],{"type":612,"value":1748},": {",{"type":606,"tag":636,"props":1750,"children":1751},{"style":668},[1752],{"type":612,"value":1753},"'x'",{"type":606,"tag":636,"props":1755,"children":1756},{"style":651},[1757],{"type":612,"value":676},{"type":606,"tag":636,"props":1759,"children":1760},{"style":679},[1761],{"type":612,"value":682},{"type":606,"tag":636,"props":1763,"children":1764},{"style":651},[1765],{"type":612,"value":687},{"type":606,"tag":636,"props":1767,"children":1768},{"style":668},[1769],{"type":612,"value":1770},"'y'",{"type":606,"tag":636,"props":1772,"children":1773},{"style":651},[1774],{"type":612,"value":676},{"type":606,"tag":636,"props":1776,"children":1777},{"style":679},[1778],{"type":612,"value":701},{"type":606,"tag":636,"props":1780,"children":1781},{"style":651},[1782],{"type":612,"value":1783},"}}\n",{"type":606,"tag":636,"props":1785,"children":1786},{"class":638,"line":208},[1787,1791,1795,1799,1803,1807,1811,1815,1819,1823,1828,1832,1836,1841,1845,1849,1853],{"type":606,"tag":636,"props":1788,"children":1789},{"style":651},[1790],{"type":612,"value":714},{"type":606,"tag":636,"props":1792,"children":1793},{"style":657},[1794],{"type":612,"value":660},{"type":606,"tag":636,"props":1796,"children":1797},{"style":651},[1798],{"type":612,"value":665},{"type":606,"tag":636,"props":1800,"children":1801},{"style":668},[1802],{"type":612,"value":692},{"type":606,"tag":636,"props":1804,"children":1805},{"style":651},[1806],{"type":612,"value":1748},{"type":606,"tag":636,"props":1808,"children":1809},{"style":668},[1810],{"type":612,"value":1770},{"type":606,"tag":636,"props":1812,"children":1813},{"style":651},[1814],{"type":612,"value":676},{"type":606,"tag":636,"props":1816,"children":1817},{"style":679},[1818],{"type":612,"value":736},{"type":606,"tag":636,"props":1820,"children":1821},{"style":651},[1822],{"type":612,"value":687},{"type":606,"tag":636,"props":1824,"children":1825},{"style":668},[1826],{"type":612,"value":1827},"'z'",{"type":606,"tag":636,"props":1829,"children":1830},{"style":651},[1831],{"type":612,"value":676},{"type":606,"tag":636,"props":1833,"children":1834},{"style":679},[1835],{"type":612,"value":754},{"type":606,"tag":636,"props":1837,"children":1838},{"style":651},[1839],{"type":612,"value":1840},"}, ",{"type":606,"tag":636,"props":1842,"children":1843},{"style":668},[1844],{"type":612,"value":727},{"type":606,"tag":636,"props":1846,"children":1847},{"style":651},[1848],{"type":612,"value":676},{"type":606,"tag":636,"props":1850,"children":1851},{"style":679},[1852],{"type":612,"value":736},{"type":606,"tag":636,"props":1854,"children":1855},{"style":651},[1856],{"type":612,"value":706},{"type":606,"tag":636,"props":1858,"children":1859},{"class":638,"line":217},[1860,1864,1868],{"type":606,"tag":636,"props":1861,"children":1862},{"style":651},[1863],{"type":612,"value":766},{"type":606,"tag":636,"props":1865,"children":1866},{"style":657},[1867],{"type":612,"value":660},{"type":606,"tag":636,"props":1869,"children":1870},{"style":651},[1871],{"type":612,"value":1872}," deep_merge(dict1, dict2)\n",{"type":606,"tag":636,"props":1874,"children":1875},{"class":638,"line":227},[1876,1880,1884,1888,1893,1897,1902,1906,1910],{"type":606,"tag":636,"props":1877,"children":1878},{"style":679},[1879],{"type":612,"value":801},{"type":606,"tag":636,"props":1881,"children":1882},{"style":651},[1883],{"type":612,"value":1088},{"type":606,"tag":636,"props":1885,"children":1886},{"style":657},[1887],{"type":612,"value":1093},{"type":606,"tag":636,"props":1889,"children":1890},{"style":668},[1891],{"type":612,"value":1892},"\"Deep merged: ",{"type":606,"tag":636,"props":1894,"children":1895},{"style":679},[1896],{"type":612,"value":1103},{"type":606,"tag":636,"props":1898,"children":1899},{"style":651},[1900],{"type":612,"value":1901},"merged",{"type":606,"tag":636,"props":1903,"children":1904},{"style":679},[1905],{"type":612,"value":1113},{"type":606,"tag":636,"props":1907,"children":1908},{"style":668},[1909],{"type":612,"value":1118},{"type":606,"tag":636,"props":1911,"children":1912},{"style":651},[1913],{"type":612,"value":1123},{"type":606,"tag":636,"props":1915,"children":1916},{"class":638,"line":236},[1917],{"type":606,"tag":636,"props":1918,"children":1919},{"emptyLinePlaceholder":13},[1920],{"type":612,"value":1036},{"type":606,"tag":636,"props":1922,"children":1923},{"class":638,"line":245},[1924],{"type":606,"tag":636,"props":1925,"children":1926},{"style":642},[1927],{"type":612,"value":1928},"# Handling conflicts\n",{"type":606,"tag":636,"props":1930,"children":1931},{"class":638,"line":254},[1932,1936,1940,1944,1948,1952,1956,1960,1964,1968,1972],{"type":606,"tag":636,"props":1933,"children":1934},{"style":651},[1935],{"type":612,"value":654},{"type":606,"tag":636,"props":1937,"children":1938},{"style":657},[1939],{"type":612,"value":660},{"type":606,"tag":636,"props":1941,"children":1942},{"style":651},[1943],{"type":612,"value":665},{"type":606,"tag":636,"props":1945,"children":1946},{"style":668},[1947],{"type":612,"value":671},{"type":606,"tag":636,"props":1949,"children":1950},{"style":651},[1951],{"type":612,"value":676},{"type":606,"tag":636,"props":1953,"children":1954},{"style":679},[1955],{"type":612,"value":682},{"type":606,"tag":636,"props":1957,"children":1958},{"style":651},[1959],{"type":612,"value":687},{"type":606,"tag":636,"props":1961,"children":1962},{"style":668},[1963],{"type":612,"value":692},{"type":606,"tag":636,"props":1965,"children":1966},{"style":651},[1967],{"type":612,"value":676},{"type":606,"tag":636,"props":1969,"children":1970},{"style":679},[1971],{"type":612,"value":701},{"type":606,"tag":636,"props":1973,"children":1974},{"style":651},[1975],{"type":612,"value":706},{"type":606,"tag":636,"props":1977,"children":1978},{"class":638,"line":263},[1979,1983,1987,1991,1995,1999,2003,2007,2011,2015,2019],{"type":606,"tag":636,"props":1980,"children":1981},{"style":651},[1982],{"type":612,"value":714},{"type":606,"tag":636,"props":1984,"children":1985},{"style":657},[1986],{"type":612,"value":660},{"type":606,"tag":636,"props":1988,"children":1989},{"style":651},[1990],{"type":612,"value":665},{"type":606,"tag":636,"props":1992,"children":1993},{"style":668},[1994],{"type":612,"value":692},{"type":606,"tag":636,"props":1996,"children":1997},{"style":651},[1998],{"type":612,"value":676},{"type":606,"tag":636,"props":2000,"children":2001},{"style":679},[2002],{"type":612,"value":736},{"type":606,"tag":636,"props":2004,"children":2005},{"style":651},[2006],{"type":612,"value":687},{"type":606,"tag":636,"props":2008,"children":2009},{"style":668},[2010],{"type":612,"value":727},{"type":606,"tag":636,"props":2012,"children":2013},{"style":651},[2014],{"type":612,"value":676},{"type":606,"tag":636,"props":2016,"children":2017},{"style":679},[2018],{"type":612,"value":754},{"type":606,"tag":636,"props":2020,"children":2021},{"style":651},[2022],{"type":612,"value":706},{"type":606,"tag":636,"props":2024,"children":2025},{"class":638,"line":272},[2026],{"type":606,"tag":636,"props":2027,"children":2028},{"style":642},[2029],{"type":612,"value":2030},"# Keep values from dict2\n",{"type":606,"tag":636,"props":2032,"children":2033},{"class":638,"line":281},[2034,2038,2042,2046,2050,2054,2058],{"type":606,"tag":636,"props":2035,"children":2036},{"style":651},[2037],{"type":612,"value":766},{"type":606,"tag":636,"props":2039,"children":2040},{"style":657},[2041],{"type":612,"value":660},{"type":606,"tag":636,"props":2043,"children":2044},{"style":651},[2045],{"type":612,"value":665},{"type":606,"tag":636,"props":2047,"children":2048},{"style":657},[2049],{"type":612,"value":779},{"type":606,"tag":636,"props":2051,"children":2052},{"style":651},[2053],{"type":612,"value":784},{"type":606,"tag":636,"props":2055,"children":2056},{"style":657},[2057],{"type":612,"value":779},{"type":606,"tag":636,"props":2059,"children":2060},{"style":651},[2061],{"type":612,"value":793},{"type":606,"tag":636,"props":2063,"children":2064},{"class":638,"line":291},[2065,2069,2073,2077,2082,2086,2090,2094,2098],{"type":606,"tag":636,"props":2066,"children":2067},{"style":679},[2068],{"type":612,"value":801},{"type":606,"tag":636,"props":2070,"children":2071},{"style":651},[2072],{"type":612,"value":1088},{"type":606,"tag":636,"props":2074,"children":2075},{"style":657},[2076],{"type":612,"value":1093},{"type":606,"tag":636,"props":2078,"children":2079},{"style":668},[2080],{"type":612,"value":2081},"\"Conflict resolution: ",{"type":606,"tag":636,"props":2083,"children":2084},{"style":679},[2085],{"type":612,"value":1103},{"type":606,"tag":636,"props":2087,"children":2088},{"style":651},[2089],{"type":612,"value":1901},{"type":606,"tag":636,"props":2091,"children":2092},{"style":679},[2093],{"type":612,"value":1113},{"type":606,"tag":636,"props":2095,"children":2096},{"style":668},[2097],{"type":612,"value":1118},{"type":606,"tag":636,"props":2099,"children":2100},{"style":651},[2101],{"type":612,"value":1123},{"type":606,"tag":813,"props":2103,"children":2105},{"id":2104},"key-takeaways",[2106],{"type":612,"value":2107},"🎯 Key Takeaways",{"type":606,"tag":825,"props":2109,"children":2113},{"emoji":2110,"title":2111,"type":2112},"📚","Dictionary Merging Essentials","success",[2114,2121,2144,2152,2170,2178,2201],{"type":606,"tag":615,"props":2115,"children":2116},{},[2117],{"type":606,"tag":835,"props":2118,"children":2119},{},[2120],{"type":612,"value":839},{"type":606,"tag":841,"props":2122,"children":2123},{},[2124,2129,2139],{"type":606,"tag":845,"props":2125,"children":2126},{},[2127],{"type":612,"value":2128},"Unpacking operator for simple merges",{"type":606,"tag":845,"props":2130,"children":2131},{},[2132,2137],{"type":606,"tag":632,"props":2133,"children":2135},{"className":2134},[],[2136],{"type":612,"value":864},{"type":612,"value":2138}," for in-place updates",{"type":606,"tag":845,"props":2140,"children":2141},{},[2142],{"type":612,"value":2143},"Union operator for Python 3.9+",{"type":606,"tag":615,"props":2145,"children":2146},{},[2147],{"type":606,"tag":835,"props":2148,"children":2149},{},[2150],{"type":612,"value":2151},"Advanced Features:",{"type":606,"tag":841,"props":2153,"children":2154},{},[2155,2160,2165],{"type":606,"tag":845,"props":2156,"children":2157},{},[2158],{"type":612,"value":2159},"ChainMap for view-based merging",{"type":606,"tag":845,"props":2161,"children":2162},{},[2163],{"type":612,"value":2164},"Deep merging for nested dicts",{"type":606,"tag":845,"props":2166,"children":2167},{},[2168],{"type":612,"value":2169},"Conflict resolution strategies",{"type":606,"tag":615,"props":2171,"children":2172},{},[2173],{"type":606,"tag":835,"props":2174,"children":2175},{},[2176],{"type":612,"value":2177},"Best Practices:",{"type":606,"tag":841,"props":2179,"children":2180},{},[2181,2186,2191,2196],{"type":606,"tag":845,"props":2182,"children":2183},{},[2184],{"type":612,"value":2185},"Use unpacking for readability",{"type":606,"tag":845,"props":2187,"children":2188},{},[2189],{"type":612,"value":2190},"Use update() for memory efficiency",{"type":606,"tag":845,"props":2192,"children":2193},{},[2194],{"type":612,"value":2195},"Consider deep merging for nested data",{"type":606,"tag":845,"props":2197,"children":2198},{},[2199],{"type":612,"value":2200},"Handle key conflicts explicitly",{"type":606,"tag":615,"props":2202,"children":2203},{},[2204,2209],{"type":606,"tag":835,"props":2205,"children":2206},{},[2207],{"type":612,"value":2208},"Remember:",{"type":612,"value":2210}," Choose the method based on your specific needs and Python version!",{"type":606,"tag":2212,"props":2213,"children":2214},"style",{},[2215],{"type":612,"value":2216},"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":2218},[2219,2222,2223],{"id":815,"depth":27,"text":818,"children":2220},[2221],{"id":913,"depth":36,"text":916},{"id":1274,"depth":27,"text":1277},{"id":2104,"depth":27,"text":2107},1782373755087]