[{"data":1,"prerenderedAt":2054},["ShallowReactive",2],{"tutorials-python-how-to":3,"category-items-python-how-to":600,"content-/python-how-to/remove-duplicates":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},"/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",[94],{"_path":95,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":96,"description":97,"slug":98,"parentId":77,"order":99,"body":602,"_type":15,"_id":100,"_source":17,"_file":101,"_stem":102,"_extension":20},{"type":603,"children":604,"toc":2047},"root",[605,614,620,796,803,808,897,904,1312,1318,1323,1914,1920,2041],{"type":606,"tag":607,"props":608,"children":610},"element","h1",{"id":609},"removing-duplicates",[611],{"type":612,"value":613},"text","🧹 Removing Duplicates",{"type":606,"tag":615,"props":616,"children":617},"p",{},[618],{"type":612,"value":619},"Python provides several methods to remove duplicate elements from lists while preserving order. Understanding these methods is essential for data cleaning and processing.",{"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 duplicate removal\nnumbers = [1, 2, 2, 3, 3, 3, 4, 5, 5]\nunique_numbers = list(dict.fromkeys(numbers))\nprint(unique_numbers)  # [1, 2, 3, 4, 5]\n","python",[631],{"type":606,"tag":632,"props":633,"children":634},"code",{"__ignoreMap":8},[635,646,746,778],{"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 duplicate removal\n",{"type":606,"tag":636,"props":647,"children":648},{"class":638,"line":27},[649,655,661,666,672,677,682,686,690,694,699,703,707,711,715,719,724,728,733,737,741],{"type":606,"tag":636,"props":650,"children":652},{"style":651},"--shiki-default:#24292E;--shiki-app-dark-mode:#E1E4E8",[653],{"type":612,"value":654},"numbers ",{"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:#005CC5;--shiki-app-dark-mode:#79B8FF",[670],{"type":612,"value":671},"1",{"type":606,"tag":636,"props":673,"children":674},{"style":651},[675],{"type":612,"value":676},", ",{"type":606,"tag":636,"props":678,"children":679},{"style":668},[680],{"type":612,"value":681},"2",{"type":606,"tag":636,"props":683,"children":684},{"style":651},[685],{"type":612,"value":676},{"type":606,"tag":636,"props":687,"children":688},{"style":668},[689],{"type":612,"value":681},{"type":606,"tag":636,"props":691,"children":692},{"style":651},[693],{"type":612,"value":676},{"type":606,"tag":636,"props":695,"children":696},{"style":668},[697],{"type":612,"value":698},"3",{"type":606,"tag":636,"props":700,"children":701},{"style":651},[702],{"type":612,"value":676},{"type":606,"tag":636,"props":704,"children":705},{"style":668},[706],{"type":612,"value":698},{"type":606,"tag":636,"props":708,"children":709},{"style":651},[710],{"type":612,"value":676},{"type":606,"tag":636,"props":712,"children":713},{"style":668},[714],{"type":612,"value":698},{"type":606,"tag":636,"props":716,"children":717},{"style":651},[718],{"type":612,"value":676},{"type":606,"tag":636,"props":720,"children":721},{"style":668},[722],{"type":612,"value":723},"4",{"type":606,"tag":636,"props":725,"children":726},{"style":651},[727],{"type":612,"value":676},{"type":606,"tag":636,"props":729,"children":730},{"style":668},[731],{"type":612,"value":732},"5",{"type":606,"tag":636,"props":734,"children":735},{"style":651},[736],{"type":612,"value":676},{"type":606,"tag":636,"props":738,"children":739},{"style":668},[740],{"type":612,"value":732},{"type":606,"tag":636,"props":742,"children":743},{"style":651},[744],{"type":612,"value":745},"]\n",{"type":606,"tag":636,"props":747,"children":748},{"class":638,"line":36},[749,754,758,763,768,773],{"type":606,"tag":636,"props":750,"children":751},{"style":651},[752],{"type":612,"value":753},"unique_numbers ",{"type":606,"tag":636,"props":755,"children":756},{"style":657},[757],{"type":612,"value":660},{"type":606,"tag":636,"props":759,"children":760},{"style":668},[761],{"type":612,"value":762}," list",{"type":606,"tag":636,"props":764,"children":765},{"style":651},[766],{"type":612,"value":767},"(",{"type":606,"tag":636,"props":769,"children":770},{"style":668},[771],{"type":612,"value":772},"dict",{"type":606,"tag":636,"props":774,"children":775},{"style":651},[776],{"type":612,"value":777},".fromkeys(numbers))\n",{"type":606,"tag":636,"props":779,"children":780},{"class":638,"line":45},[781,786,791],{"type":606,"tag":636,"props":782,"children":783},{"style":668},[784],{"type":612,"value":785},"print",{"type":606,"tag":636,"props":787,"children":788},{"style":651},[789],{"type":612,"value":790},"(unique_numbers)  ",{"type":606,"tag":636,"props":792,"children":793},{"style":642},[794],{"type":612,"value":795},"# [1, 2, 3, 4, 5]\n",{"type":606,"tag":797,"props":798,"children":800},"h2",{"id":799},"duplicate-removal-methods",[801],{"type":612,"value":802},"🎯 Duplicate Removal Methods",{"type":606,"tag":615,"props":804,"children":805},{},[806],{"type":612,"value":807},"Python offers multiple approaches to remove duplicates.",{"type":606,"tag":809,"props":810,"children":814},"info-box",{"emoji":811,"title":812,"type":813},"📝","Duplicate Removal Methods","info",[815,824,864,872],{"type":606,"tag":615,"props":816,"children":817},{},[818],{"type":606,"tag":819,"props":820,"children":821},"strong",{},[822],{"type":612,"value":823},"Order-Preserving Methods:",{"type":606,"tag":825,"props":826,"children":827},"ul",{},[828,840,853],{"type":606,"tag":829,"props":830,"children":831},"li",{},[832,838],{"type":606,"tag":632,"props":833,"children":835},{"className":834},[],[836],{"type":612,"value":837},"dict.fromkeys()",{"type":612,"value":839},": Fast and preserves order",{"type":606,"tag":829,"props":841,"children":842},{},[843,845,851],{"type":612,"value":844},"List comprehension with ",{"type":606,"tag":632,"props":846,"children":848},{"className":847},[],[849],{"type":612,"value":850},"not in",{"type":612,"value":852},": Simple but slower",{"type":606,"tag":829,"props":854,"children":855},{},[856,862],{"type":606,"tag":632,"props":857,"children":859},{"className":858},[],[860],{"type":612,"value":861},"collections.OrderedDict",{"type":612,"value":863},": Explicit order preservation",{"type":606,"tag":615,"props":865,"children":866},{},[867],{"type":606,"tag":819,"props":868,"children":869},{},[870],{"type":612,"value":871},"Order-Ignoring Methods:",{"type":606,"tag":825,"props":873,"children":874},{},[875,886],{"type":606,"tag":829,"props":876,"children":877},{},[878,884],{"type":606,"tag":632,"props":879,"children":881},{"className":880},[],[882],{"type":612,"value":883},"set()",{"type":612,"value":885},": Fastest but doesn't preserve order",{"type":606,"tag":829,"props":887,"children":888},{},[889,895],{"type":606,"tag":632,"props":890,"children":892},{"className":891},[],[893],{"type":612,"value":894},"sorted(set())",{"type":612,"value":896},": Sorted unique elements",{"type":606,"tag":898,"props":899,"children":901},"h3",{"id":900},"basic-examples",[902],{"type":612,"value":903},"Basic Examples",{"type":606,"tag":621,"props":905,"children":906},{},[907],{"type":606,"tag":625,"props":908,"children":910},{"className":627,"code":909,"language":629,"meta":8,"style":8},"# Different ways to remove duplicates\nnumbers = [1, 2, 2, 3, 3, 3, 4, 5, 5]\n\n# Using dict.fromkeys (preserves order)\nunique1 = list(dict.fromkeys(numbers))\nprint(f\"Using dict.fromkeys: {unique1}\")\n\n# Using set (doesn't preserve order)\nunique2 = list(set(numbers))\nprint(f\"Using set: {unique2}\")\n\n# Using list comprehension\nunique3 = []\n[unique3.append(x) for x in numbers if x not in unique3]\nprint(f\"Using list comprehension: {unique3}\")\n",[911],{"type":606,"tag":632,"props":912,"children":913},{"__ignoreMap":8},[914,922,1009,1017,1025,1053,1100,1107,1115,1146,1187,1194,1202,1219,1271],{"type":606,"tag":636,"props":915,"children":916},{"class":638,"line":12},[917],{"type":606,"tag":636,"props":918,"children":919},{"style":642},[920],{"type":612,"value":921},"# Different ways to remove duplicates\n",{"type":606,"tag":636,"props":923,"children":924},{"class":638,"line":27},[925,929,933,937,941,945,949,953,957,961,965,969,973,977,981,985,989,993,997,1001,1005],{"type":606,"tag":636,"props":926,"children":927},{"style":651},[928],{"type":612,"value":654},{"type":606,"tag":636,"props":930,"children":931},{"style":657},[932],{"type":612,"value":660},{"type":606,"tag":636,"props":934,"children":935},{"style":651},[936],{"type":612,"value":665},{"type":606,"tag":636,"props":938,"children":939},{"style":668},[940],{"type":612,"value":671},{"type":606,"tag":636,"props":942,"children":943},{"style":651},[944],{"type":612,"value":676},{"type":606,"tag":636,"props":946,"children":947},{"style":668},[948],{"type":612,"value":681},{"type":606,"tag":636,"props":950,"children":951},{"style":651},[952],{"type":612,"value":676},{"type":606,"tag":636,"props":954,"children":955},{"style":668},[956],{"type":612,"value":681},{"type":606,"tag":636,"props":958,"children":959},{"style":651},[960],{"type":612,"value":676},{"type":606,"tag":636,"props":962,"children":963},{"style":668},[964],{"type":612,"value":698},{"type":606,"tag":636,"props":966,"children":967},{"style":651},[968],{"type":612,"value":676},{"type":606,"tag":636,"props":970,"children":971},{"style":668},[972],{"type":612,"value":698},{"type":606,"tag":636,"props":974,"children":975},{"style":651},[976],{"type":612,"value":676},{"type":606,"tag":636,"props":978,"children":979},{"style":668},[980],{"type":612,"value":698},{"type":606,"tag":636,"props":982,"children":983},{"style":651},[984],{"type":612,"value":676},{"type":606,"tag":636,"props":986,"children":987},{"style":668},[988],{"type":612,"value":723},{"type":606,"tag":636,"props":990,"children":991},{"style":651},[992],{"type":612,"value":676},{"type":606,"tag":636,"props":994,"children":995},{"style":668},[996],{"type":612,"value":732},{"type":606,"tag":636,"props":998,"children":999},{"style":651},[1000],{"type":612,"value":676},{"type":606,"tag":636,"props":1002,"children":1003},{"style":668},[1004],{"type":612,"value":732},{"type":606,"tag":636,"props":1006,"children":1007},{"style":651},[1008],{"type":612,"value":745},{"type":606,"tag":636,"props":1010,"children":1011},{"class":638,"line":36},[1012],{"type":606,"tag":636,"props":1013,"children":1014},{"emptyLinePlaceholder":13},[1015],{"type":612,"value":1016},"\n",{"type":606,"tag":636,"props":1018,"children":1019},{"class":638,"line":45},[1020],{"type":606,"tag":636,"props":1021,"children":1022},{"style":642},[1023],{"type":612,"value":1024},"# Using dict.fromkeys (preserves order)\n",{"type":606,"tag":636,"props":1026,"children":1027},{"class":638,"line":54},[1028,1033,1037,1041,1045,1049],{"type":606,"tag":636,"props":1029,"children":1030},{"style":651},[1031],{"type":612,"value":1032},"unique1 ",{"type":606,"tag":636,"props":1034,"children":1035},{"style":657},[1036],{"type":612,"value":660},{"type":606,"tag":636,"props":1038,"children":1039},{"style":668},[1040],{"type":612,"value":762},{"type":606,"tag":636,"props":1042,"children":1043},{"style":651},[1044],{"type":612,"value":767},{"type":606,"tag":636,"props":1046,"children":1047},{"style":668},[1048],{"type":612,"value":772},{"type":606,"tag":636,"props":1050,"children":1051},{"style":651},[1052],{"type":612,"value":777},{"type":606,"tag":636,"props":1054,"children":1055},{"class":638,"line":63},[1056,1060,1064,1069,1075,1080,1085,1090,1095],{"type":606,"tag":636,"props":1057,"children":1058},{"style":668},[1059],{"type":612,"value":785},{"type":606,"tag":636,"props":1061,"children":1062},{"style":651},[1063],{"type":612,"value":767},{"type":606,"tag":636,"props":1065,"children":1066},{"style":657},[1067],{"type":612,"value":1068},"f",{"type":606,"tag":636,"props":1070,"children":1072},{"style":1071},"--shiki-default:#032F62;--shiki-app-dark-mode:#9ECBFF",[1073],{"type":612,"value":1074},"\"Using dict.fromkeys: ",{"type":606,"tag":636,"props":1076,"children":1077},{"style":668},[1078],{"type":612,"value":1079},"{",{"type":606,"tag":636,"props":1081,"children":1082},{"style":651},[1083],{"type":612,"value":1084},"unique1",{"type":606,"tag":636,"props":1086,"children":1087},{"style":668},[1088],{"type":612,"value":1089},"}",{"type":606,"tag":636,"props":1091,"children":1092},{"style":1071},[1093],{"type":612,"value":1094},"\"",{"type":606,"tag":636,"props":1096,"children":1097},{"style":651},[1098],{"type":612,"value":1099},")\n",{"type":606,"tag":636,"props":1101,"children":1102},{"class":638,"line":72},[1103],{"type":606,"tag":636,"props":1104,"children":1105},{"emptyLinePlaceholder":13},[1106],{"type":612,"value":1016},{"type":606,"tag":636,"props":1108,"children":1109},{"class":638,"line":81},[1110],{"type":606,"tag":636,"props":1111,"children":1112},{"style":642},[1113],{"type":612,"value":1114},"# Using set (doesn't preserve order)\n",{"type":606,"tag":636,"props":1116,"children":1118},{"class":638,"line":1117},9,[1119,1124,1128,1132,1136,1141],{"type":606,"tag":636,"props":1120,"children":1121},{"style":651},[1122],{"type":612,"value":1123},"unique2 ",{"type":606,"tag":636,"props":1125,"children":1126},{"style":657},[1127],{"type":612,"value":660},{"type":606,"tag":636,"props":1129,"children":1130},{"style":668},[1131],{"type":612,"value":762},{"type":606,"tag":636,"props":1133,"children":1134},{"style":651},[1135],{"type":612,"value":767},{"type":606,"tag":636,"props":1137,"children":1138},{"style":668},[1139],{"type":612,"value":1140},"set",{"type":606,"tag":636,"props":1142,"children":1143},{"style":651},[1144],{"type":612,"value":1145},"(numbers))\n",{"type":606,"tag":636,"props":1147,"children":1148},{"class":638,"line":99},[1149,1153,1157,1161,1166,1170,1175,1179,1183],{"type":606,"tag":636,"props":1150,"children":1151},{"style":668},[1152],{"type":612,"value":785},{"type":606,"tag":636,"props":1154,"children":1155},{"style":651},[1156],{"type":612,"value":767},{"type":606,"tag":636,"props":1158,"children":1159},{"style":657},[1160],{"type":612,"value":1068},{"type":606,"tag":636,"props":1162,"children":1163},{"style":1071},[1164],{"type":612,"value":1165},"\"Using set: ",{"type":606,"tag":636,"props":1167,"children":1168},{"style":668},[1169],{"type":612,"value":1079},{"type":606,"tag":636,"props":1171,"children":1172},{"style":651},[1173],{"type":612,"value":1174},"unique2",{"type":606,"tag":636,"props":1176,"children":1177},{"style":668},[1178],{"type":612,"value":1089},{"type":606,"tag":636,"props":1180,"children":1181},{"style":1071},[1182],{"type":612,"value":1094},{"type":606,"tag":636,"props":1184,"children":1185},{"style":651},[1186],{"type":612,"value":1099},{"type":606,"tag":636,"props":1188,"children":1189},{"class":638,"line":108},[1190],{"type":606,"tag":636,"props":1191,"children":1192},{"emptyLinePlaceholder":13},[1193],{"type":612,"value":1016},{"type":606,"tag":636,"props":1195,"children":1196},{"class":638,"line":117},[1197],{"type":606,"tag":636,"props":1198,"children":1199},{"style":642},[1200],{"type":612,"value":1201},"# Using list comprehension\n",{"type":606,"tag":636,"props":1203,"children":1204},{"class":638,"line":126},[1205,1210,1214],{"type":606,"tag":636,"props":1206,"children":1207},{"style":651},[1208],{"type":612,"value":1209},"unique3 ",{"type":606,"tag":636,"props":1211,"children":1212},{"style":657},[1213],{"type":612,"value":660},{"type":606,"tag":636,"props":1215,"children":1216},{"style":651},[1217],{"type":612,"value":1218}," []\n",{"type":606,"tag":636,"props":1220,"children":1221},{"class":638,"line":135},[1222,1227,1232,1237,1242,1247,1252,1256,1261,1266],{"type":606,"tag":636,"props":1223,"children":1224},{"style":651},[1225],{"type":612,"value":1226},"[unique3.append(x) ",{"type":606,"tag":636,"props":1228,"children":1229},{"style":657},[1230],{"type":612,"value":1231},"for",{"type":606,"tag":636,"props":1233,"children":1234},{"style":651},[1235],{"type":612,"value":1236}," x ",{"type":606,"tag":636,"props":1238,"children":1239},{"style":657},[1240],{"type":612,"value":1241},"in",{"type":606,"tag":636,"props":1243,"children":1244},{"style":651},[1245],{"type":612,"value":1246}," numbers ",{"type":606,"tag":636,"props":1248,"children":1249},{"style":657},[1250],{"type":612,"value":1251},"if",{"type":606,"tag":636,"props":1253,"children":1254},{"style":651},[1255],{"type":612,"value":1236},{"type":606,"tag":636,"props":1257,"children":1258},{"style":657},[1259],{"type":612,"value":1260},"not",{"type":606,"tag":636,"props":1262,"children":1263},{"style":657},[1264],{"type":612,"value":1265}," in",{"type":606,"tag":636,"props":1267,"children":1268},{"style":651},[1269],{"type":612,"value":1270}," unique3]\n",{"type":606,"tag":636,"props":1272,"children":1273},{"class":638,"line":144},[1274,1278,1282,1286,1291,1295,1300,1304,1308],{"type":606,"tag":636,"props":1275,"children":1276},{"style":668},[1277],{"type":612,"value":785},{"type":606,"tag":636,"props":1279,"children":1280},{"style":651},[1281],{"type":612,"value":767},{"type":606,"tag":636,"props":1283,"children":1284},{"style":657},[1285],{"type":612,"value":1068},{"type":606,"tag":636,"props":1287,"children":1288},{"style":1071},[1289],{"type":612,"value":1290},"\"Using list comprehension: ",{"type":606,"tag":636,"props":1292,"children":1293},{"style":668},[1294],{"type":612,"value":1079},{"type":606,"tag":636,"props":1296,"children":1297},{"style":651},[1298],{"type":612,"value":1299},"unique3",{"type":606,"tag":636,"props":1301,"children":1302},{"style":668},[1303],{"type":612,"value":1089},{"type":606,"tag":636,"props":1305,"children":1306},{"style":1071},[1307],{"type":612,"value":1094},{"type":606,"tag":636,"props":1309,"children":1310},{"style":651},[1311],{"type":612,"value":1099},{"type":606,"tag":797,"props":1313,"children":1315},{"id":1314},"advanced-duplicate-removal",[1316],{"type":612,"value":1317},"🔍 Advanced Duplicate Removal",{"type":606,"tag":615,"props":1319,"children":1320},{},[1321],{"type":612,"value":1322},"Python allows custom duplicate removal based on specific criteria.",{"type":606,"tag":621,"props":1324,"children":1325},{},[1326],{"type":606,"tag":625,"props":1327,"children":1329},{"className":627,"code":1328,"language":629,"meta":8,"style":8},"# Advanced duplicate removal examples\n# Remove duplicates based on a key\nitems = [{\"id\": 1, \"name\": \"A\"}, {\"id\": 1, \"name\": \"B\"}, {\"id\": 2, \"name\": \"C\"}]\nunique_by_id = list({item[\"id\"]: item for item in items}.values())\nprint(f\"Unique by ID: {unique_by_id}\")\n\n# Remove duplicates while preserving order of first occurrence\nfrom collections import OrderedDict\nnumbers = [1, 2, 2, 3, 3, 3, 4, 5, 5]\nunique_ordered = list(OrderedDict.fromkeys(numbers))\nprint(f\"Ordered unique: {unique_ordered}\")\n\n# Remove duplicates from list of tuples\npairs = [(1, 2), (2, 1), (1, 2), (3, 4)]\nunique_pairs = list(dict.fromkeys(pairs))\nprint(f\"Unique pairs: {unique_pairs}\")\n",[1330],{"type":606,"tag":632,"props":1331,"children":1332},{"__ignoreMap":8},[1333,1341,1349,1470,1518,1559,1566,1574,1597,1684,1705,1746,1753,1761,1844,1873],{"type":606,"tag":636,"props":1334,"children":1335},{"class":638,"line":12},[1336],{"type":606,"tag":636,"props":1337,"children":1338},{"style":642},[1339],{"type":612,"value":1340},"# Advanced duplicate removal examples\n",{"type":606,"tag":636,"props":1342,"children":1343},{"class":638,"line":27},[1344],{"type":606,"tag":636,"props":1345,"children":1346},{"style":642},[1347],{"type":612,"value":1348},"# Remove duplicates based on a key\n",{"type":606,"tag":636,"props":1350,"children":1351},{"class":638,"line":36},[1352,1357,1361,1366,1371,1376,1380,1384,1389,1393,1398,1403,1407,1411,1415,1419,1423,1427,1432,1436,1440,1444,1448,1452,1456,1460,1465],{"type":606,"tag":636,"props":1353,"children":1354},{"style":651},[1355],{"type":612,"value":1356},"items ",{"type":606,"tag":636,"props":1358,"children":1359},{"style":657},[1360],{"type":612,"value":660},{"type":606,"tag":636,"props":1362,"children":1363},{"style":651},[1364],{"type":612,"value":1365}," [{",{"type":606,"tag":636,"props":1367,"children":1368},{"style":1071},[1369],{"type":612,"value":1370},"\"id\"",{"type":606,"tag":636,"props":1372,"children":1373},{"style":651},[1374],{"type":612,"value":1375},": ",{"type":606,"tag":636,"props":1377,"children":1378},{"style":668},[1379],{"type":612,"value":671},{"type":606,"tag":636,"props":1381,"children":1382},{"style":651},[1383],{"type":612,"value":676},{"type":606,"tag":636,"props":1385,"children":1386},{"style":1071},[1387],{"type":612,"value":1388},"\"name\"",{"type":606,"tag":636,"props":1390,"children":1391},{"style":651},[1392],{"type":612,"value":1375},{"type":606,"tag":636,"props":1394,"children":1395},{"style":1071},[1396],{"type":612,"value":1397},"\"A\"",{"type":606,"tag":636,"props":1399,"children":1400},{"style":651},[1401],{"type":612,"value":1402},"}, {",{"type":606,"tag":636,"props":1404,"children":1405},{"style":1071},[1406],{"type":612,"value":1370},{"type":606,"tag":636,"props":1408,"children":1409},{"style":651},[1410],{"type":612,"value":1375},{"type":606,"tag":636,"props":1412,"children":1413},{"style":668},[1414],{"type":612,"value":671},{"type":606,"tag":636,"props":1416,"children":1417},{"style":651},[1418],{"type":612,"value":676},{"type":606,"tag":636,"props":1420,"children":1421},{"style":1071},[1422],{"type":612,"value":1388},{"type":606,"tag":636,"props":1424,"children":1425},{"style":651},[1426],{"type":612,"value":1375},{"type":606,"tag":636,"props":1428,"children":1429},{"style":1071},[1430],{"type":612,"value":1431},"\"B\"",{"type":606,"tag":636,"props":1433,"children":1434},{"style":651},[1435],{"type":612,"value":1402},{"type":606,"tag":636,"props":1437,"children":1438},{"style":1071},[1439],{"type":612,"value":1370},{"type":606,"tag":636,"props":1441,"children":1442},{"style":651},[1443],{"type":612,"value":1375},{"type":606,"tag":636,"props":1445,"children":1446},{"style":668},[1447],{"type":612,"value":681},{"type":606,"tag":636,"props":1449,"children":1450},{"style":651},[1451],{"type":612,"value":676},{"type":606,"tag":636,"props":1453,"children":1454},{"style":1071},[1455],{"type":612,"value":1388},{"type":606,"tag":636,"props":1457,"children":1458},{"style":651},[1459],{"type":612,"value":1375},{"type":606,"tag":636,"props":1461,"children":1462},{"style":1071},[1463],{"type":612,"value":1464},"\"C\"",{"type":606,"tag":636,"props":1466,"children":1467},{"style":651},[1468],{"type":612,"value":1469},"}]\n",{"type":606,"tag":636,"props":1471,"children":1472},{"class":638,"line":45},[1473,1478,1482,1486,1491,1495,1500,1504,1509,1513],{"type":606,"tag":636,"props":1474,"children":1475},{"style":651},[1476],{"type":612,"value":1477},"unique_by_id ",{"type":606,"tag":636,"props":1479,"children":1480},{"style":657},[1481],{"type":612,"value":660},{"type":606,"tag":636,"props":1483,"children":1484},{"style":668},[1485],{"type":612,"value":762},{"type":606,"tag":636,"props":1487,"children":1488},{"style":651},[1489],{"type":612,"value":1490},"({item[",{"type":606,"tag":636,"props":1492,"children":1493},{"style":1071},[1494],{"type":612,"value":1370},{"type":606,"tag":636,"props":1496,"children":1497},{"style":651},[1498],{"type":612,"value":1499},"]: item ",{"type":606,"tag":636,"props":1501,"children":1502},{"style":657},[1503],{"type":612,"value":1231},{"type":606,"tag":636,"props":1505,"children":1506},{"style":651},[1507],{"type":612,"value":1508}," item ",{"type":606,"tag":636,"props":1510,"children":1511},{"style":657},[1512],{"type":612,"value":1241},{"type":606,"tag":636,"props":1514,"children":1515},{"style":651},[1516],{"type":612,"value":1517}," items}.values())\n",{"type":606,"tag":636,"props":1519,"children":1520},{"class":638,"line":54},[1521,1525,1529,1533,1538,1542,1547,1551,1555],{"type":606,"tag":636,"props":1522,"children":1523},{"style":668},[1524],{"type":612,"value":785},{"type":606,"tag":636,"props":1526,"children":1527},{"style":651},[1528],{"type":612,"value":767},{"type":606,"tag":636,"props":1530,"children":1531},{"style":657},[1532],{"type":612,"value":1068},{"type":606,"tag":636,"props":1534,"children":1535},{"style":1071},[1536],{"type":612,"value":1537},"\"Unique by ID: ",{"type":606,"tag":636,"props":1539,"children":1540},{"style":668},[1541],{"type":612,"value":1079},{"type":606,"tag":636,"props":1543,"children":1544},{"style":651},[1545],{"type":612,"value":1546},"unique_by_id",{"type":606,"tag":636,"props":1548,"children":1549},{"style":668},[1550],{"type":612,"value":1089},{"type":606,"tag":636,"props":1552,"children":1553},{"style":1071},[1554],{"type":612,"value":1094},{"type":606,"tag":636,"props":1556,"children":1557},{"style":651},[1558],{"type":612,"value":1099},{"type":606,"tag":636,"props":1560,"children":1561},{"class":638,"line":63},[1562],{"type":606,"tag":636,"props":1563,"children":1564},{"emptyLinePlaceholder":13},[1565],{"type":612,"value":1016},{"type":606,"tag":636,"props":1567,"children":1568},{"class":638,"line":72},[1569],{"type":606,"tag":636,"props":1570,"children":1571},{"style":642},[1572],{"type":612,"value":1573},"# Remove duplicates while preserving order of first occurrence\n",{"type":606,"tag":636,"props":1575,"children":1576},{"class":638,"line":81},[1577,1582,1587,1592],{"type":606,"tag":636,"props":1578,"children":1579},{"style":657},[1580],{"type":612,"value":1581},"from",{"type":606,"tag":636,"props":1583,"children":1584},{"style":651},[1585],{"type":612,"value":1586}," collections ",{"type":606,"tag":636,"props":1588,"children":1589},{"style":657},[1590],{"type":612,"value":1591},"import",{"type":606,"tag":636,"props":1593,"children":1594},{"style":651},[1595],{"type":612,"value":1596}," OrderedDict\n",{"type":606,"tag":636,"props":1598,"children":1599},{"class":638,"line":1117},[1600,1604,1608,1612,1616,1620,1624,1628,1632,1636,1640,1644,1648,1652,1656,1660,1664,1668,1672,1676,1680],{"type":606,"tag":636,"props":1601,"children":1602},{"style":651},[1603],{"type":612,"value":654},{"type":606,"tag":636,"props":1605,"children":1606},{"style":657},[1607],{"type":612,"value":660},{"type":606,"tag":636,"props":1609,"children":1610},{"style":651},[1611],{"type":612,"value":665},{"type":606,"tag":636,"props":1613,"children":1614},{"style":668},[1615],{"type":612,"value":671},{"type":606,"tag":636,"props":1617,"children":1618},{"style":651},[1619],{"type":612,"value":676},{"type":606,"tag":636,"props":1621,"children":1622},{"style":668},[1623],{"type":612,"value":681},{"type":606,"tag":636,"props":1625,"children":1626},{"style":651},[1627],{"type":612,"value":676},{"type":606,"tag":636,"props":1629,"children":1630},{"style":668},[1631],{"type":612,"value":681},{"type":606,"tag":636,"props":1633,"children":1634},{"style":651},[1635],{"type":612,"value":676},{"type":606,"tag":636,"props":1637,"children":1638},{"style":668},[1639],{"type":612,"value":698},{"type":606,"tag":636,"props":1641,"children":1642},{"style":651},[1643],{"type":612,"value":676},{"type":606,"tag":636,"props":1645,"children":1646},{"style":668},[1647],{"type":612,"value":698},{"type":606,"tag":636,"props":1649,"children":1650},{"style":651},[1651],{"type":612,"value":676},{"type":606,"tag":636,"props":1653,"children":1654},{"style":668},[1655],{"type":612,"value":698},{"type":606,"tag":636,"props":1657,"children":1658},{"style":651},[1659],{"type":612,"value":676},{"type":606,"tag":636,"props":1661,"children":1662},{"style":668},[1663],{"type":612,"value":723},{"type":606,"tag":636,"props":1665,"children":1666},{"style":651},[1667],{"type":612,"value":676},{"type":606,"tag":636,"props":1669,"children":1670},{"style":668},[1671],{"type":612,"value":732},{"type":606,"tag":636,"props":1673,"children":1674},{"style":651},[1675],{"type":612,"value":676},{"type":606,"tag":636,"props":1677,"children":1678},{"style":668},[1679],{"type":612,"value":732},{"type":606,"tag":636,"props":1681,"children":1682},{"style":651},[1683],{"type":612,"value":745},{"type":606,"tag":636,"props":1685,"children":1686},{"class":638,"line":99},[1687,1692,1696,1700],{"type":606,"tag":636,"props":1688,"children":1689},{"style":651},[1690],{"type":612,"value":1691},"unique_ordered ",{"type":606,"tag":636,"props":1693,"children":1694},{"style":657},[1695],{"type":612,"value":660},{"type":606,"tag":636,"props":1697,"children":1698},{"style":668},[1699],{"type":612,"value":762},{"type":606,"tag":636,"props":1701,"children":1702},{"style":651},[1703],{"type":612,"value":1704},"(OrderedDict.fromkeys(numbers))\n",{"type":606,"tag":636,"props":1706,"children":1707},{"class":638,"line":108},[1708,1712,1716,1720,1725,1729,1734,1738,1742],{"type":606,"tag":636,"props":1709,"children":1710},{"style":668},[1711],{"type":612,"value":785},{"type":606,"tag":636,"props":1713,"children":1714},{"style":651},[1715],{"type":612,"value":767},{"type":606,"tag":636,"props":1717,"children":1718},{"style":657},[1719],{"type":612,"value":1068},{"type":606,"tag":636,"props":1721,"children":1722},{"style":1071},[1723],{"type":612,"value":1724},"\"Ordered unique: ",{"type":606,"tag":636,"props":1726,"children":1727},{"style":668},[1728],{"type":612,"value":1079},{"type":606,"tag":636,"props":1730,"children":1731},{"style":651},[1732],{"type":612,"value":1733},"unique_ordered",{"type":606,"tag":636,"props":1735,"children":1736},{"style":668},[1737],{"type":612,"value":1089},{"type":606,"tag":636,"props":1739,"children":1740},{"style":1071},[1741],{"type":612,"value":1094},{"type":606,"tag":636,"props":1743,"children":1744},{"style":651},[1745],{"type":612,"value":1099},{"type":606,"tag":636,"props":1747,"children":1748},{"class":638,"line":117},[1749],{"type":606,"tag":636,"props":1750,"children":1751},{"emptyLinePlaceholder":13},[1752],{"type":612,"value":1016},{"type":606,"tag":636,"props":1754,"children":1755},{"class":638,"line":126},[1756],{"type":606,"tag":636,"props":1757,"children":1758},{"style":642},[1759],{"type":612,"value":1760},"# Remove duplicates from list of tuples\n",{"type":606,"tag":636,"props":1762,"children":1763},{"class":638,"line":135},[1764,1769,1773,1778,1782,1786,1790,1795,1799,1803,1807,1811,1815,1819,1823,1827,1831,1835,1839],{"type":606,"tag":636,"props":1765,"children":1766},{"style":651},[1767],{"type":612,"value":1768},"pairs ",{"type":606,"tag":636,"props":1770,"children":1771},{"style":657},[1772],{"type":612,"value":660},{"type":606,"tag":636,"props":1774,"children":1775},{"style":651},[1776],{"type":612,"value":1777}," [(",{"type":606,"tag":636,"props":1779,"children":1780},{"style":668},[1781],{"type":612,"value":671},{"type":606,"tag":636,"props":1783,"children":1784},{"style":651},[1785],{"type":612,"value":676},{"type":606,"tag":636,"props":1787,"children":1788},{"style":668},[1789],{"type":612,"value":681},{"type":606,"tag":636,"props":1791,"children":1792},{"style":651},[1793],{"type":612,"value":1794},"), (",{"type":606,"tag":636,"props":1796,"children":1797},{"style":668},[1798],{"type":612,"value":681},{"type":606,"tag":636,"props":1800,"children":1801},{"style":651},[1802],{"type":612,"value":676},{"type":606,"tag":636,"props":1804,"children":1805},{"style":668},[1806],{"type":612,"value":671},{"type":606,"tag":636,"props":1808,"children":1809},{"style":651},[1810],{"type":612,"value":1794},{"type":606,"tag":636,"props":1812,"children":1813},{"style":668},[1814],{"type":612,"value":671},{"type":606,"tag":636,"props":1816,"children":1817},{"style":651},[1818],{"type":612,"value":676},{"type":606,"tag":636,"props":1820,"children":1821},{"style":668},[1822],{"type":612,"value":681},{"type":606,"tag":636,"props":1824,"children":1825},{"style":651},[1826],{"type":612,"value":1794},{"type":606,"tag":636,"props":1828,"children":1829},{"style":668},[1830],{"type":612,"value":698},{"type":606,"tag":636,"props":1832,"children":1833},{"style":651},[1834],{"type":612,"value":676},{"type":606,"tag":636,"props":1836,"children":1837},{"style":668},[1838],{"type":612,"value":723},{"type":606,"tag":636,"props":1840,"children":1841},{"style":651},[1842],{"type":612,"value":1843},")]\n",{"type":606,"tag":636,"props":1845,"children":1846},{"class":638,"line":144},[1847,1852,1856,1860,1864,1868],{"type":606,"tag":636,"props":1848,"children":1849},{"style":651},[1850],{"type":612,"value":1851},"unique_pairs ",{"type":606,"tag":636,"props":1853,"children":1854},{"style":657},[1855],{"type":612,"value":660},{"type":606,"tag":636,"props":1857,"children":1858},{"style":668},[1859],{"type":612,"value":762},{"type":606,"tag":636,"props":1861,"children":1862},{"style":651},[1863],{"type":612,"value":767},{"type":606,"tag":636,"props":1865,"children":1866},{"style":668},[1867],{"type":612,"value":772},{"type":606,"tag":636,"props":1869,"children":1870},{"style":651},[1871],{"type":612,"value":1872},".fromkeys(pairs))\n",{"type":606,"tag":636,"props":1874,"children":1875},{"class":638,"line":153},[1876,1880,1884,1888,1893,1897,1902,1906,1910],{"type":606,"tag":636,"props":1877,"children":1878},{"style":668},[1879],{"type":612,"value":785},{"type":606,"tag":636,"props":1881,"children":1882},{"style":651},[1883],{"type":612,"value":767},{"type":606,"tag":636,"props":1885,"children":1886},{"style":657},[1887],{"type":612,"value":1068},{"type":606,"tag":636,"props":1889,"children":1890},{"style":1071},[1891],{"type":612,"value":1892},"\"Unique pairs: ",{"type":606,"tag":636,"props":1894,"children":1895},{"style":668},[1896],{"type":612,"value":1079},{"type":606,"tag":636,"props":1898,"children":1899},{"style":651},[1900],{"type":612,"value":1901},"unique_pairs",{"type":606,"tag":636,"props":1903,"children":1904},{"style":668},[1905],{"type":612,"value":1089},{"type":606,"tag":636,"props":1907,"children":1908},{"style":1071},[1909],{"type":612,"value":1094},{"type":606,"tag":636,"props":1911,"children":1912},{"style":651},[1913],{"type":612,"value":1099},{"type":606,"tag":797,"props":1915,"children":1917},{"id":1916},"key-takeaways",[1918],{"type":612,"value":1919},"🎯 Key Takeaways",{"type":606,"tag":809,"props":1921,"children":1925},{"emoji":1922,"title":1923,"type":1924},"📚","Duplicate Removal Essentials","success",[1926,1934,1962,1970,1993,2001,2024],{"type":606,"tag":615,"props":1927,"children":1928},{},[1929],{"type":606,"tag":819,"props":1930,"children":1931},{},[1932],{"type":612,"value":1933},"Basic Methods:",{"type":606,"tag":825,"props":1935,"children":1936},{},[1937,1947,1957],{"type":606,"tag":829,"props":1938,"children":1939},{},[1940,1945],{"type":606,"tag":632,"props":1941,"children":1943},{"className":1942},[],[1944],{"type":612,"value":837},{"type":612,"value":1946}," for order preservation",{"type":606,"tag":829,"props":1948,"children":1949},{},[1950,1955],{"type":606,"tag":632,"props":1951,"children":1953},{"className":1952},[],[1954],{"type":612,"value":883},{"type":612,"value":1956}," for fastest removal",{"type":606,"tag":829,"props":1958,"children":1959},{},[1960],{"type":612,"value":1961},"List comprehension for custom logic",{"type":606,"tag":615,"props":1963,"children":1964},{},[1965],{"type":606,"tag":819,"props":1966,"children":1967},{},[1968],{"type":612,"value":1969},"Advanced Features:",{"type":606,"tag":825,"props":1971,"children":1972},{},[1973,1978,1983,1988],{"type":606,"tag":829,"props":1974,"children":1975},{},[1976],{"type":612,"value":1977},"Custom key-based removal",{"type":606,"tag":829,"props":1979,"children":1980},{},[1981],{"type":612,"value":1982},"Order preservation options",{"type":606,"tag":829,"props":1984,"children":1985},{},[1986],{"type":612,"value":1987},"Handling complex data types",{"type":606,"tag":829,"props":1989,"children":1990},{},[1991],{"type":612,"value":1992},"Memory efficiency",{"type":606,"tag":615,"props":1994,"children":1995},{},[1996],{"type":606,"tag":819,"props":1997,"children":1998},{},[1999],{"type":612,"value":2000},"Best Practices:",{"type":606,"tag":825,"props":2002,"children":2003},{},[2004,2009,2014,2019],{"type":606,"tag":829,"props":2005,"children":2006},{},[2007],{"type":612,"value":2008},"Choose method based on order requirements",{"type":606,"tag":829,"props":2010,"children":2011},{},[2012],{"type":612,"value":2013},"Consider memory usage",{"type":606,"tag":829,"props":2015,"children":2016},{},[2017],{"type":612,"value":2018},"Handle edge cases",{"type":606,"tag":829,"props":2020,"children":2021},{},[2022],{"type":612,"value":2023},"Test with different data types",{"type":606,"tag":615,"props":2025,"children":2026},{},[2027,2032,2034,2039],{"type":606,"tag":819,"props":2028,"children":2029},{},[2030],{"type":612,"value":2031},"Remember:",{"type":612,"value":2033}," ",{"type":606,"tag":632,"props":2035,"children":2037},{"className":2036},[],[2038],{"type":612,"value":837},{"type":612,"value":2040}," is usually the best balance of speed and order preservation!",{"type":606,"tag":2042,"props":2043,"children":2044},"style",{},[2045],{"type":612,"value":2046},"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":2048},[2049,2052,2053],{"id":799,"depth":27,"text":802,"children":2050},[2051],{"id":900,"depth":36,"text":903},{"id":1314,"depth":27,"text":1317},{"id":1916,"depth":27,"text":1919},1782373753818]