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