[{"data":1,"prerenderedAt":2329},["ShallowReactive",2],{"tutorials-python-how-to":3,"category-items-python-how-to":600,"content-/python-how-to/enumerate-zip":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",[139],{"_path":140,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":141,"description":142,"slug":143,"parentId":77,"order":144,"body":602,"_type":15,"_id":145,"_source":17,"_file":146,"_stem":147,"_extension":20},{"type":603,"children":604,"toc":2322},"root",[605,614,637,964,971,981,1055,1062,1583,1589,1599,2201,2207,2316],{"type":606,"tag":607,"props":608,"children":610},"element","h1",{"id":609},"using-enumerate-and-zip",[611],{"type":612,"value":613},"text","🔄 Using enumerate() and zip()",{"type":606,"tag":615,"props":616,"children":617},"p",{},[618,620,627,629,635],{"type":612,"value":619},"Python's ",{"type":606,"tag":621,"props":622,"children":624},"code",{"className":623},[],[625],{"type":612,"value":626},"enumerate()",{"type":612,"value":628}," and ",{"type":606,"tag":621,"props":630,"children":632},{"className":631},[],[633],{"type":612,"value":634},"zip()",{"type":612,"value":636}," functions are powerful tools for iteration, allowing you to work with indices and combine multiple sequences efficiently.",{"type":606,"tag":638,"props":639,"children":640},"code-try",{},[641],{"type":606,"tag":642,"props":643,"children":647},"pre",{"className":644,"code":645,"language":646,"meta":8,"style":8},"language-python shiki shiki-themes github-light github-dark","# Basic enumerate and zip usage\nfruits = ['apple', 'banana', 'cherry']\n\n# Using enumerate\nfor index, fruit in enumerate(fruits):\n    print(f\"{index}: {fruit}\")\n\n# Using zip\nprices = [1.0, 2.0, 3.0]\nfor fruit, price in zip(fruits, prices):\n    print(f\"{fruit}: ${price}\")\n","python",[648],{"type":606,"tag":621,"props":649,"children":650},{"__ignoreMap":8},[651,662,712,720,728,757,822,829,837,881,907],{"type":606,"tag":652,"props":653,"children":655},"span",{"class":654,"line":12},"line",[656],{"type":606,"tag":652,"props":657,"children":659},{"style":658},"--shiki-default:#6A737D;--shiki-app-dark-mode:#6A737D",[660],{"type":612,"value":661},"# Basic enumerate and zip usage\n",{"type":606,"tag":652,"props":663,"children":664},{"class":654,"line":27},[665,671,677,682,688,693,698,702,707],{"type":606,"tag":652,"props":666,"children":668},{"style":667},"--shiki-default:#24292E;--shiki-app-dark-mode:#E1E4E8",[669],{"type":612,"value":670},"fruits ",{"type":606,"tag":652,"props":672,"children":674},{"style":673},"--shiki-default:#D73A49;--shiki-app-dark-mode:#F97583",[675],{"type":612,"value":676},"=",{"type":606,"tag":652,"props":678,"children":679},{"style":667},[680],{"type":612,"value":681}," [",{"type":606,"tag":652,"props":683,"children":685},{"style":684},"--shiki-default:#032F62;--shiki-app-dark-mode:#9ECBFF",[686],{"type":612,"value":687},"'apple'",{"type":606,"tag":652,"props":689,"children":690},{"style":667},[691],{"type":612,"value":692},", ",{"type":606,"tag":652,"props":694,"children":695},{"style":684},[696],{"type":612,"value":697},"'banana'",{"type":606,"tag":652,"props":699,"children":700},{"style":667},[701],{"type":612,"value":692},{"type":606,"tag":652,"props":703,"children":704},{"style":684},[705],{"type":612,"value":706},"'cherry'",{"type":606,"tag":652,"props":708,"children":709},{"style":667},[710],{"type":612,"value":711},"]\n",{"type":606,"tag":652,"props":713,"children":714},{"class":654,"line":36},[715],{"type":606,"tag":652,"props":716,"children":717},{"emptyLinePlaceholder":13},[718],{"type":612,"value":719},"\n",{"type":606,"tag":652,"props":721,"children":722},{"class":654,"line":45},[723],{"type":606,"tag":652,"props":724,"children":725},{"style":658},[726],{"type":612,"value":727},"# Using enumerate\n",{"type":606,"tag":652,"props":729,"children":730},{"class":654,"line":54},[731,736,741,746,752],{"type":606,"tag":652,"props":732,"children":733},{"style":673},[734],{"type":612,"value":735},"for",{"type":606,"tag":652,"props":737,"children":738},{"style":667},[739],{"type":612,"value":740}," index, fruit ",{"type":606,"tag":652,"props":742,"children":743},{"style":673},[744],{"type":612,"value":745},"in",{"type":606,"tag":652,"props":747,"children":749},{"style":748},"--shiki-default:#005CC5;--shiki-app-dark-mode:#79B8FF",[750],{"type":612,"value":751}," enumerate",{"type":606,"tag":652,"props":753,"children":754},{"style":667},[755],{"type":612,"value":756},"(fruits):\n",{"type":606,"tag":652,"props":758,"children":759},{"class":654,"line":63},[760,765,770,775,780,785,790,795,800,804,809,813,817],{"type":606,"tag":652,"props":761,"children":762},{"style":748},[763],{"type":612,"value":764},"    print",{"type":606,"tag":652,"props":766,"children":767},{"style":667},[768],{"type":612,"value":769},"(",{"type":606,"tag":652,"props":771,"children":772},{"style":673},[773],{"type":612,"value":774},"f",{"type":606,"tag":652,"props":776,"children":777},{"style":684},[778],{"type":612,"value":779},"\"",{"type":606,"tag":652,"props":781,"children":782},{"style":748},[783],{"type":612,"value":784},"{",{"type":606,"tag":652,"props":786,"children":787},{"style":667},[788],{"type":612,"value":789},"index",{"type":606,"tag":652,"props":791,"children":792},{"style":748},[793],{"type":612,"value":794},"}",{"type":606,"tag":652,"props":796,"children":797},{"style":684},[798],{"type":612,"value":799},": ",{"type":606,"tag":652,"props":801,"children":802},{"style":748},[803],{"type":612,"value":784},{"type":606,"tag":652,"props":805,"children":806},{"style":667},[807],{"type":612,"value":808},"fruit",{"type":606,"tag":652,"props":810,"children":811},{"style":748},[812],{"type":612,"value":794},{"type":606,"tag":652,"props":814,"children":815},{"style":684},[816],{"type":612,"value":779},{"type":606,"tag":652,"props":818,"children":819},{"style":667},[820],{"type":612,"value":821},")\n",{"type":606,"tag":652,"props":823,"children":824},{"class":654,"line":72},[825],{"type":606,"tag":652,"props":826,"children":827},{"emptyLinePlaceholder":13},[828],{"type":612,"value":719},{"type":606,"tag":652,"props":830,"children":831},{"class":654,"line":81},[832],{"type":606,"tag":652,"props":833,"children":834},{"style":658},[835],{"type":612,"value":836},"# Using zip\n",{"type":606,"tag":652,"props":838,"children":840},{"class":654,"line":839},9,[841,846,850,854,859,863,868,872,877],{"type":606,"tag":652,"props":842,"children":843},{"style":667},[844],{"type":612,"value":845},"prices ",{"type":606,"tag":652,"props":847,"children":848},{"style":673},[849],{"type":612,"value":676},{"type":606,"tag":652,"props":851,"children":852},{"style":667},[853],{"type":612,"value":681},{"type":606,"tag":652,"props":855,"children":856},{"style":748},[857],{"type":612,"value":858},"1.0",{"type":606,"tag":652,"props":860,"children":861},{"style":667},[862],{"type":612,"value":692},{"type":606,"tag":652,"props":864,"children":865},{"style":748},[866],{"type":612,"value":867},"2.0",{"type":606,"tag":652,"props":869,"children":870},{"style":667},[871],{"type":612,"value":692},{"type":606,"tag":652,"props":873,"children":874},{"style":748},[875],{"type":612,"value":876},"3.0",{"type":606,"tag":652,"props":878,"children":879},{"style":667},[880],{"type":612,"value":711},{"type":606,"tag":652,"props":882,"children":883},{"class":654,"line":99},[884,888,893,897,902],{"type":606,"tag":652,"props":885,"children":886},{"style":673},[887],{"type":612,"value":735},{"type":606,"tag":652,"props":889,"children":890},{"style":667},[891],{"type":612,"value":892}," fruit, price ",{"type":606,"tag":652,"props":894,"children":895},{"style":673},[896],{"type":612,"value":745},{"type":606,"tag":652,"props":898,"children":899},{"style":748},[900],{"type":612,"value":901}," zip",{"type":606,"tag":652,"props":903,"children":904},{"style":667},[905],{"type":612,"value":906},"(fruits, prices):\n",{"type":606,"tag":652,"props":908,"children":909},{"class":654,"line":108},[910,914,918,922,926,930,934,938,943,947,952,956,960],{"type":606,"tag":652,"props":911,"children":912},{"style":748},[913],{"type":612,"value":764},{"type":606,"tag":652,"props":915,"children":916},{"style":667},[917],{"type":612,"value":769},{"type":606,"tag":652,"props":919,"children":920},{"style":673},[921],{"type":612,"value":774},{"type":606,"tag":652,"props":923,"children":924},{"style":684},[925],{"type":612,"value":779},{"type":606,"tag":652,"props":927,"children":928},{"style":748},[929],{"type":612,"value":784},{"type":606,"tag":652,"props":931,"children":932},{"style":667},[933],{"type":612,"value":808},{"type":606,"tag":652,"props":935,"children":936},{"style":748},[937],{"type":612,"value":794},{"type":606,"tag":652,"props":939,"children":940},{"style":684},[941],{"type":612,"value":942},": $",{"type":606,"tag":652,"props":944,"children":945},{"style":748},[946],{"type":612,"value":784},{"type":606,"tag":652,"props":948,"children":949},{"style":667},[950],{"type":612,"value":951},"price",{"type":606,"tag":652,"props":953,"children":954},{"style":748},[955],{"type":612,"value":794},{"type":606,"tag":652,"props":957,"children":958},{"style":684},[959],{"type":612,"value":779},{"type":606,"tag":652,"props":961,"children":962},{"style":667},[963],{"type":612,"value":821},{"type":606,"tag":965,"props":966,"children":968},"h2",{"id":967},"the-enumerate-function",[969],{"type":612,"value":970},"🎯 The enumerate() Function",{"type":606,"tag":615,"props":972,"children":973},{},[974,979],{"type":606,"tag":621,"props":975,"children":977},{"className":976},[],[978],{"type":612,"value":626},{"type":612,"value":980}," adds a counter to an iterable, making it easy to track positions while iterating.",{"type":606,"tag":982,"props":983,"children":987},"info-box",{"emoji":984,"title":985,"type":986},"📝","enumerate() Features","info",[988,997,1029,1037],{"type":606,"tag":615,"props":989,"children":990},{},[991],{"type":606,"tag":992,"props":993,"children":994},"strong",{},[995],{"type":612,"value":996},"Basic Usage:",{"type":606,"tag":998,"props":999,"children":1000},"ul",{},[1001,1013,1024],{"type":606,"tag":1002,"props":1003,"children":1004},"li",{},[1005,1011],{"type":606,"tag":621,"props":1006,"children":1008},{"className":1007},[],[1009],{"type":612,"value":1010},"enumerate(iterable)",{"type":612,"value":1012},": Start from 0",{"type":606,"tag":1002,"props":1014,"children":1015},{},[1016,1022],{"type":606,"tag":621,"props":1017,"children":1019},{"className":1018},[],[1020],{"type":612,"value":1021},"enumerate(iterable, start)",{"type":612,"value":1023},": Custom start value",{"type":606,"tag":1002,"props":1025,"children":1026},{},[1027],{"type":612,"value":1028},"Returns (index, value) pairs",{"type":606,"tag":615,"props":1030,"children":1031},{},[1032],{"type":606,"tag":992,"props":1033,"children":1034},{},[1035],{"type":612,"value":1036},"Common Use Cases:",{"type":606,"tag":998,"props":1038,"children":1039},{},[1040,1045,1050],{"type":606,"tag":1002,"props":1041,"children":1042},{},[1043],{"type":612,"value":1044},"Tracking positions",{"type":606,"tag":1002,"props":1046,"children":1047},{},[1048],{"type":612,"value":1049},"Creating numbered lists",{"type":606,"tag":1002,"props":1051,"children":1052},{},[1053],{"type":612,"value":1054},"Debugging iterations",{"type":606,"tag":1056,"props":1057,"children":1059},"h3",{"id":1058},"basic-examples",[1060],{"type":612,"value":1061},"Basic Examples",{"type":606,"tag":638,"props":1063,"children":1064},{},[1065],{"type":606,"tag":642,"props":1066,"children":1068},{"className":644,"code":1067,"language":646,"meta":8,"style":8},"# Different ways to use enumerate\nfruits = ['apple', 'banana', 'cherry']\n\n# Basic enumeration\nfor index, fruit in enumerate(fruits):\n    print(f\"{index}: {fruit}\")\n\n# Custom start value\nfor index, fruit in enumerate(fruits, start=1):\n    print(f\"Item {index}: {fruit}\")\n\n# Creating numbered list\nnumbered_fruits = [f\"{i+1}. {fruit}\" for i, fruit in enumerate(fruits)]\nprint(f\"Numbered list: {numbered_fruits}\")\n\n# Debugging with enumerate\nfor i, fruit in enumerate(fruits):\n    if len(fruit) \u003C 5:\n        print(f\"Warning: Short fruit name at index {i}\")\n",[1069],{"type":606,"tag":621,"props":1070,"children":1071},{"__ignoreMap":8},[1072,1080,1119,1126,1134,1157,1212,1219,1227,1271,1327,1334,1342,1429,1471,1478,1486,1509,1542],{"type":606,"tag":652,"props":1073,"children":1074},{"class":654,"line":12},[1075],{"type":606,"tag":652,"props":1076,"children":1077},{"style":658},[1078],{"type":612,"value":1079},"# Different ways to use enumerate\n",{"type":606,"tag":652,"props":1081,"children":1082},{"class":654,"line":27},[1083,1087,1091,1095,1099,1103,1107,1111,1115],{"type":606,"tag":652,"props":1084,"children":1085},{"style":667},[1086],{"type":612,"value":670},{"type":606,"tag":652,"props":1088,"children":1089},{"style":673},[1090],{"type":612,"value":676},{"type":606,"tag":652,"props":1092,"children":1093},{"style":667},[1094],{"type":612,"value":681},{"type":606,"tag":652,"props":1096,"children":1097},{"style":684},[1098],{"type":612,"value":687},{"type":606,"tag":652,"props":1100,"children":1101},{"style":667},[1102],{"type":612,"value":692},{"type":606,"tag":652,"props":1104,"children":1105},{"style":684},[1106],{"type":612,"value":697},{"type":606,"tag":652,"props":1108,"children":1109},{"style":667},[1110],{"type":612,"value":692},{"type":606,"tag":652,"props":1112,"children":1113},{"style":684},[1114],{"type":612,"value":706},{"type":606,"tag":652,"props":1116,"children":1117},{"style":667},[1118],{"type":612,"value":711},{"type":606,"tag":652,"props":1120,"children":1121},{"class":654,"line":36},[1122],{"type":606,"tag":652,"props":1123,"children":1124},{"emptyLinePlaceholder":13},[1125],{"type":612,"value":719},{"type":606,"tag":652,"props":1127,"children":1128},{"class":654,"line":45},[1129],{"type":606,"tag":652,"props":1130,"children":1131},{"style":658},[1132],{"type":612,"value":1133},"# Basic enumeration\n",{"type":606,"tag":652,"props":1135,"children":1136},{"class":654,"line":54},[1137,1141,1145,1149,1153],{"type":606,"tag":652,"props":1138,"children":1139},{"style":673},[1140],{"type":612,"value":735},{"type":606,"tag":652,"props":1142,"children":1143},{"style":667},[1144],{"type":612,"value":740},{"type":606,"tag":652,"props":1146,"children":1147},{"style":673},[1148],{"type":612,"value":745},{"type":606,"tag":652,"props":1150,"children":1151},{"style":748},[1152],{"type":612,"value":751},{"type":606,"tag":652,"props":1154,"children":1155},{"style":667},[1156],{"type":612,"value":756},{"type":606,"tag":652,"props":1158,"children":1159},{"class":654,"line":63},[1160,1164,1168,1172,1176,1180,1184,1188,1192,1196,1200,1204,1208],{"type":606,"tag":652,"props":1161,"children":1162},{"style":748},[1163],{"type":612,"value":764},{"type":606,"tag":652,"props":1165,"children":1166},{"style":667},[1167],{"type":612,"value":769},{"type":606,"tag":652,"props":1169,"children":1170},{"style":673},[1171],{"type":612,"value":774},{"type":606,"tag":652,"props":1173,"children":1174},{"style":684},[1175],{"type":612,"value":779},{"type":606,"tag":652,"props":1177,"children":1178},{"style":748},[1179],{"type":612,"value":784},{"type":606,"tag":652,"props":1181,"children":1182},{"style":667},[1183],{"type":612,"value":789},{"type":606,"tag":652,"props":1185,"children":1186},{"style":748},[1187],{"type":612,"value":794},{"type":606,"tag":652,"props":1189,"children":1190},{"style":684},[1191],{"type":612,"value":799},{"type":606,"tag":652,"props":1193,"children":1194},{"style":748},[1195],{"type":612,"value":784},{"type":606,"tag":652,"props":1197,"children":1198},{"style":667},[1199],{"type":612,"value":808},{"type":606,"tag":652,"props":1201,"children":1202},{"style":748},[1203],{"type":612,"value":794},{"type":606,"tag":652,"props":1205,"children":1206},{"style":684},[1207],{"type":612,"value":779},{"type":606,"tag":652,"props":1209,"children":1210},{"style":667},[1211],{"type":612,"value":821},{"type":606,"tag":652,"props":1213,"children":1214},{"class":654,"line":72},[1215],{"type":606,"tag":652,"props":1216,"children":1217},{"emptyLinePlaceholder":13},[1218],{"type":612,"value":719},{"type":606,"tag":652,"props":1220,"children":1221},{"class":654,"line":81},[1222],{"type":606,"tag":652,"props":1223,"children":1224},{"style":658},[1225],{"type":612,"value":1226},"# Custom start value\n",{"type":606,"tag":652,"props":1228,"children":1229},{"class":654,"line":839},[1230,1234,1238,1242,1246,1251,1257,1261,1266],{"type":606,"tag":652,"props":1231,"children":1232},{"style":673},[1233],{"type":612,"value":735},{"type":606,"tag":652,"props":1235,"children":1236},{"style":667},[1237],{"type":612,"value":740},{"type":606,"tag":652,"props":1239,"children":1240},{"style":673},[1241],{"type":612,"value":745},{"type":606,"tag":652,"props":1243,"children":1244},{"style":748},[1245],{"type":612,"value":751},{"type":606,"tag":652,"props":1247,"children":1248},{"style":667},[1249],{"type":612,"value":1250},"(fruits, ",{"type":606,"tag":652,"props":1252,"children":1254},{"style":1253},"--shiki-default:#E36209;--shiki-app-dark-mode:#FFAB70",[1255],{"type":612,"value":1256},"start",{"type":606,"tag":652,"props":1258,"children":1259},{"style":673},[1260],{"type":612,"value":676},{"type":606,"tag":652,"props":1262,"children":1263},{"style":748},[1264],{"type":612,"value":1265},"1",{"type":606,"tag":652,"props":1267,"children":1268},{"style":667},[1269],{"type":612,"value":1270},"):\n",{"type":606,"tag":652,"props":1272,"children":1273},{"class":654,"line":99},[1274,1278,1282,1286,1291,1295,1299,1303,1307,1311,1315,1319,1323],{"type":606,"tag":652,"props":1275,"children":1276},{"style":748},[1277],{"type":612,"value":764},{"type":606,"tag":652,"props":1279,"children":1280},{"style":667},[1281],{"type":612,"value":769},{"type":606,"tag":652,"props":1283,"children":1284},{"style":673},[1285],{"type":612,"value":774},{"type":606,"tag":652,"props":1287,"children":1288},{"style":684},[1289],{"type":612,"value":1290},"\"Item ",{"type":606,"tag":652,"props":1292,"children":1293},{"style":748},[1294],{"type":612,"value":784},{"type":606,"tag":652,"props":1296,"children":1297},{"style":667},[1298],{"type":612,"value":789},{"type":606,"tag":652,"props":1300,"children":1301},{"style":748},[1302],{"type":612,"value":794},{"type":606,"tag":652,"props":1304,"children":1305},{"style":684},[1306],{"type":612,"value":799},{"type":606,"tag":652,"props":1308,"children":1309},{"style":748},[1310],{"type":612,"value":784},{"type":606,"tag":652,"props":1312,"children":1313},{"style":667},[1314],{"type":612,"value":808},{"type":606,"tag":652,"props":1316,"children":1317},{"style":748},[1318],{"type":612,"value":794},{"type":606,"tag":652,"props":1320,"children":1321},{"style":684},[1322],{"type":612,"value":779},{"type":606,"tag":652,"props":1324,"children":1325},{"style":667},[1326],{"type":612,"value":821},{"type":606,"tag":652,"props":1328,"children":1329},{"class":654,"line":108},[1330],{"type":606,"tag":652,"props":1331,"children":1332},{"emptyLinePlaceholder":13},[1333],{"type":612,"value":719},{"type":606,"tag":652,"props":1335,"children":1336},{"class":654,"line":117},[1337],{"type":606,"tag":652,"props":1338,"children":1339},{"style":658},[1340],{"type":612,"value":1341},"# Creating numbered list\n",{"type":606,"tag":652,"props":1343,"children":1344},{"class":654,"line":126},[1345,1350,1354,1358,1362,1366,1370,1375,1380,1385,1390,1394,1398,1402,1406,1411,1416,1420,1424],{"type":606,"tag":652,"props":1346,"children":1347},{"style":667},[1348],{"type":612,"value":1349},"numbered_fruits ",{"type":606,"tag":652,"props":1351,"children":1352},{"style":673},[1353],{"type":612,"value":676},{"type":606,"tag":652,"props":1355,"children":1356},{"style":667},[1357],{"type":612,"value":681},{"type":606,"tag":652,"props":1359,"children":1360},{"style":673},[1361],{"type":612,"value":774},{"type":606,"tag":652,"props":1363,"children":1364},{"style":684},[1365],{"type":612,"value":779},{"type":606,"tag":652,"props":1367,"children":1368},{"style":748},[1369],{"type":612,"value":784},{"type":606,"tag":652,"props":1371,"children":1372},{"style":667},[1373],{"type":612,"value":1374},"i",{"type":606,"tag":652,"props":1376,"children":1377},{"style":673},[1378],{"type":612,"value":1379},"+",{"type":606,"tag":652,"props":1381,"children":1382},{"style":748},[1383],{"type":612,"value":1384},"1}",{"type":606,"tag":652,"props":1386,"children":1387},{"style":684},[1388],{"type":612,"value":1389},". ",{"type":606,"tag":652,"props":1391,"children":1392},{"style":748},[1393],{"type":612,"value":784},{"type":606,"tag":652,"props":1395,"children":1396},{"style":667},[1397],{"type":612,"value":808},{"type":606,"tag":652,"props":1399,"children":1400},{"style":748},[1401],{"type":612,"value":794},{"type":606,"tag":652,"props":1403,"children":1404},{"style":684},[1405],{"type":612,"value":779},{"type":606,"tag":652,"props":1407,"children":1408},{"style":673},[1409],{"type":612,"value":1410}," for",{"type":606,"tag":652,"props":1412,"children":1413},{"style":667},[1414],{"type":612,"value":1415}," i, fruit ",{"type":606,"tag":652,"props":1417,"children":1418},{"style":673},[1419],{"type":612,"value":745},{"type":606,"tag":652,"props":1421,"children":1422},{"style":748},[1423],{"type":612,"value":751},{"type":606,"tag":652,"props":1425,"children":1426},{"style":667},[1427],{"type":612,"value":1428},"(fruits)]\n",{"type":606,"tag":652,"props":1430,"children":1431},{"class":654,"line":135},[1432,1437,1441,1445,1450,1454,1459,1463,1467],{"type":606,"tag":652,"props":1433,"children":1434},{"style":748},[1435],{"type":612,"value":1436},"print",{"type":606,"tag":652,"props":1438,"children":1439},{"style":667},[1440],{"type":612,"value":769},{"type":606,"tag":652,"props":1442,"children":1443},{"style":673},[1444],{"type":612,"value":774},{"type":606,"tag":652,"props":1446,"children":1447},{"style":684},[1448],{"type":612,"value":1449},"\"Numbered list: ",{"type":606,"tag":652,"props":1451,"children":1452},{"style":748},[1453],{"type":612,"value":784},{"type":606,"tag":652,"props":1455,"children":1456},{"style":667},[1457],{"type":612,"value":1458},"numbered_fruits",{"type":606,"tag":652,"props":1460,"children":1461},{"style":748},[1462],{"type":612,"value":794},{"type":606,"tag":652,"props":1464,"children":1465},{"style":684},[1466],{"type":612,"value":779},{"type":606,"tag":652,"props":1468,"children":1469},{"style":667},[1470],{"type":612,"value":821},{"type":606,"tag":652,"props":1472,"children":1473},{"class":654,"line":144},[1474],{"type":606,"tag":652,"props":1475,"children":1476},{"emptyLinePlaceholder":13},[1477],{"type":612,"value":719},{"type":606,"tag":652,"props":1479,"children":1480},{"class":654,"line":153},[1481],{"type":606,"tag":652,"props":1482,"children":1483},{"style":658},[1484],{"type":612,"value":1485},"# Debugging with enumerate\n",{"type":606,"tag":652,"props":1487,"children":1488},{"class":654,"line":163},[1489,1493,1497,1501,1505],{"type":606,"tag":652,"props":1490,"children":1491},{"style":673},[1492],{"type":612,"value":735},{"type":606,"tag":652,"props":1494,"children":1495},{"style":667},[1496],{"type":612,"value":1415},{"type":606,"tag":652,"props":1498,"children":1499},{"style":673},[1500],{"type":612,"value":745},{"type":606,"tag":652,"props":1502,"children":1503},{"style":748},[1504],{"type":612,"value":751},{"type":606,"tag":652,"props":1506,"children":1507},{"style":667},[1508],{"type":612,"value":756},{"type":606,"tag":652,"props":1510,"children":1511},{"class":654,"line":172},[1512,1517,1522,1527,1532,1537],{"type":606,"tag":652,"props":1513,"children":1514},{"style":673},[1515],{"type":612,"value":1516},"    if",{"type":606,"tag":652,"props":1518,"children":1519},{"style":748},[1520],{"type":612,"value":1521}," len",{"type":606,"tag":652,"props":1523,"children":1524},{"style":667},[1525],{"type":612,"value":1526},"(fruit) ",{"type":606,"tag":652,"props":1528,"children":1529},{"style":673},[1530],{"type":612,"value":1531},"\u003C",{"type":606,"tag":652,"props":1533,"children":1534},{"style":748},[1535],{"type":612,"value":1536}," 5",{"type":606,"tag":652,"props":1538,"children":1539},{"style":667},[1540],{"type":612,"value":1541},":\n",{"type":606,"tag":652,"props":1543,"children":1544},{"class":654,"line":181},[1545,1550,1554,1558,1563,1567,1571,1575,1579],{"type":606,"tag":652,"props":1546,"children":1547},{"style":748},[1548],{"type":612,"value":1549},"        print",{"type":606,"tag":652,"props":1551,"children":1552},{"style":667},[1553],{"type":612,"value":769},{"type":606,"tag":652,"props":1555,"children":1556},{"style":673},[1557],{"type":612,"value":774},{"type":606,"tag":652,"props":1559,"children":1560},{"style":684},[1561],{"type":612,"value":1562},"\"Warning: Short fruit name at index ",{"type":606,"tag":652,"props":1564,"children":1565},{"style":748},[1566],{"type":612,"value":784},{"type":606,"tag":652,"props":1568,"children":1569},{"style":667},[1570],{"type":612,"value":1374},{"type":606,"tag":652,"props":1572,"children":1573},{"style":748},[1574],{"type":612,"value":794},{"type":606,"tag":652,"props":1576,"children":1577},{"style":684},[1578],{"type":612,"value":779},{"type":606,"tag":652,"props":1580,"children":1581},{"style":667},[1582],{"type":612,"value":821},{"type":606,"tag":965,"props":1584,"children":1586},{"id":1585},"the-zip-function",[1587],{"type":612,"value":1588},"🔍 The zip() Function",{"type":606,"tag":615,"props":1590,"children":1591},{},[1592,1597],{"type":606,"tag":621,"props":1593,"children":1595},{"className":1594},[],[1596],{"type":612,"value":634},{"type":612,"value":1598}," combines multiple iterables into a single iterator of tuples, making it perfect for parallel iteration.",{"type":606,"tag":638,"props":1600,"children":1601},{},[1602],{"type":606,"tag":642,"props":1603,"children":1605},{"className":644,"code":1604,"language":646,"meta":8,"style":8},"# Different ways to use zip\nnames = ['Alice', 'Bob', 'Charlie']\nages = [25, 30, 35]\ncities = ['New York', 'London', 'Paris']\n\n# Basic zipping\nfor name, age in zip(names, ages):\n    print(f\"{name} is {age} years old\")\n\n# Zipping multiple lists\nfor name, age, city in zip(names, ages, cities):\n    print(f\"{name} is {age} and lives in {city}\")\n\n# Creating dictionaries\nperson_dict = dict(zip(names, ages))\nprint(f\"Dictionary: {person_dict}\")\n\n# Unzipping\nzipped = list(zip(names, ages))\nunzipped_names, unzipped_ages = zip(*zipped)\nprint(f\"Unzipped names: {unzipped_names}\")\nprint(f\"Unzipped ages: {unzipped_ages}\")\n",[1606],{"type":606,"tag":621,"props":1607,"children":1608},{"__ignoreMap":8},[1609,1617,1660,1703,1746,1753,1761,1786,1845,1852,1860,1885,1958,1965,1973,2004,2045,2052,2060,2089,2119,2160],{"type":606,"tag":652,"props":1610,"children":1611},{"class":654,"line":12},[1612],{"type":606,"tag":652,"props":1613,"children":1614},{"style":658},[1615],{"type":612,"value":1616},"# Different ways to use zip\n",{"type":606,"tag":652,"props":1618,"children":1619},{"class":654,"line":27},[1620,1625,1629,1633,1638,1642,1647,1651,1656],{"type":606,"tag":652,"props":1621,"children":1622},{"style":667},[1623],{"type":612,"value":1624},"names ",{"type":606,"tag":652,"props":1626,"children":1627},{"style":673},[1628],{"type":612,"value":676},{"type":606,"tag":652,"props":1630,"children":1631},{"style":667},[1632],{"type":612,"value":681},{"type":606,"tag":652,"props":1634,"children":1635},{"style":684},[1636],{"type":612,"value":1637},"'Alice'",{"type":606,"tag":652,"props":1639,"children":1640},{"style":667},[1641],{"type":612,"value":692},{"type":606,"tag":652,"props":1643,"children":1644},{"style":684},[1645],{"type":612,"value":1646},"'Bob'",{"type":606,"tag":652,"props":1648,"children":1649},{"style":667},[1650],{"type":612,"value":692},{"type":606,"tag":652,"props":1652,"children":1653},{"style":684},[1654],{"type":612,"value":1655},"'Charlie'",{"type":606,"tag":652,"props":1657,"children":1658},{"style":667},[1659],{"type":612,"value":711},{"type":606,"tag":652,"props":1661,"children":1662},{"class":654,"line":36},[1663,1668,1672,1676,1681,1685,1690,1694,1699],{"type":606,"tag":652,"props":1664,"children":1665},{"style":667},[1666],{"type":612,"value":1667},"ages ",{"type":606,"tag":652,"props":1669,"children":1670},{"style":673},[1671],{"type":612,"value":676},{"type":606,"tag":652,"props":1673,"children":1674},{"style":667},[1675],{"type":612,"value":681},{"type":606,"tag":652,"props":1677,"children":1678},{"style":748},[1679],{"type":612,"value":1680},"25",{"type":606,"tag":652,"props":1682,"children":1683},{"style":667},[1684],{"type":612,"value":692},{"type":606,"tag":652,"props":1686,"children":1687},{"style":748},[1688],{"type":612,"value":1689},"30",{"type":606,"tag":652,"props":1691,"children":1692},{"style":667},[1693],{"type":612,"value":692},{"type":606,"tag":652,"props":1695,"children":1696},{"style":748},[1697],{"type":612,"value":1698},"35",{"type":606,"tag":652,"props":1700,"children":1701},{"style":667},[1702],{"type":612,"value":711},{"type":606,"tag":652,"props":1704,"children":1705},{"class":654,"line":45},[1706,1711,1715,1719,1724,1728,1733,1737,1742],{"type":606,"tag":652,"props":1707,"children":1708},{"style":667},[1709],{"type":612,"value":1710},"cities ",{"type":606,"tag":652,"props":1712,"children":1713},{"style":673},[1714],{"type":612,"value":676},{"type":606,"tag":652,"props":1716,"children":1717},{"style":667},[1718],{"type":612,"value":681},{"type":606,"tag":652,"props":1720,"children":1721},{"style":684},[1722],{"type":612,"value":1723},"'New York'",{"type":606,"tag":652,"props":1725,"children":1726},{"style":667},[1727],{"type":612,"value":692},{"type":606,"tag":652,"props":1729,"children":1730},{"style":684},[1731],{"type":612,"value":1732},"'London'",{"type":606,"tag":652,"props":1734,"children":1735},{"style":667},[1736],{"type":612,"value":692},{"type":606,"tag":652,"props":1738,"children":1739},{"style":684},[1740],{"type":612,"value":1741},"'Paris'",{"type":606,"tag":652,"props":1743,"children":1744},{"style":667},[1745],{"type":612,"value":711},{"type":606,"tag":652,"props":1747,"children":1748},{"class":654,"line":54},[1749],{"type":606,"tag":652,"props":1750,"children":1751},{"emptyLinePlaceholder":13},[1752],{"type":612,"value":719},{"type":606,"tag":652,"props":1754,"children":1755},{"class":654,"line":63},[1756],{"type":606,"tag":652,"props":1757,"children":1758},{"style":658},[1759],{"type":612,"value":1760},"# Basic zipping\n",{"type":606,"tag":652,"props":1762,"children":1763},{"class":654,"line":72},[1764,1768,1773,1777,1781],{"type":606,"tag":652,"props":1765,"children":1766},{"style":673},[1767],{"type":612,"value":735},{"type":606,"tag":652,"props":1769,"children":1770},{"style":667},[1771],{"type":612,"value":1772}," name, age ",{"type":606,"tag":652,"props":1774,"children":1775},{"style":673},[1776],{"type":612,"value":745},{"type":606,"tag":652,"props":1778,"children":1779},{"style":748},[1780],{"type":612,"value":901},{"type":606,"tag":652,"props":1782,"children":1783},{"style":667},[1784],{"type":612,"value":1785},"(names, ages):\n",{"type":606,"tag":652,"props":1787,"children":1788},{"class":654,"line":81},[1789,1793,1797,1801,1805,1809,1814,1818,1823,1827,1832,1836,1841],{"type":606,"tag":652,"props":1790,"children":1791},{"style":748},[1792],{"type":612,"value":764},{"type":606,"tag":652,"props":1794,"children":1795},{"style":667},[1796],{"type":612,"value":769},{"type":606,"tag":652,"props":1798,"children":1799},{"style":673},[1800],{"type":612,"value":774},{"type":606,"tag":652,"props":1802,"children":1803},{"style":684},[1804],{"type":612,"value":779},{"type":606,"tag":652,"props":1806,"children":1807},{"style":748},[1808],{"type":612,"value":784},{"type":606,"tag":652,"props":1810,"children":1811},{"style":667},[1812],{"type":612,"value":1813},"name",{"type":606,"tag":652,"props":1815,"children":1816},{"style":748},[1817],{"type":612,"value":794},{"type":606,"tag":652,"props":1819,"children":1820},{"style":684},[1821],{"type":612,"value":1822}," is ",{"type":606,"tag":652,"props":1824,"children":1825},{"style":748},[1826],{"type":612,"value":784},{"type":606,"tag":652,"props":1828,"children":1829},{"style":667},[1830],{"type":612,"value":1831},"age",{"type":606,"tag":652,"props":1833,"children":1834},{"style":748},[1835],{"type":612,"value":794},{"type":606,"tag":652,"props":1837,"children":1838},{"style":684},[1839],{"type":612,"value":1840}," years old\"",{"type":606,"tag":652,"props":1842,"children":1843},{"style":667},[1844],{"type":612,"value":821},{"type":606,"tag":652,"props":1846,"children":1847},{"class":654,"line":839},[1848],{"type":606,"tag":652,"props":1849,"children":1850},{"emptyLinePlaceholder":13},[1851],{"type":612,"value":719},{"type":606,"tag":652,"props":1853,"children":1854},{"class":654,"line":99},[1855],{"type":606,"tag":652,"props":1856,"children":1857},{"style":658},[1858],{"type":612,"value":1859},"# Zipping multiple lists\n",{"type":606,"tag":652,"props":1861,"children":1862},{"class":654,"line":108},[1863,1867,1872,1876,1880],{"type":606,"tag":652,"props":1864,"children":1865},{"style":673},[1866],{"type":612,"value":735},{"type":606,"tag":652,"props":1868,"children":1869},{"style":667},[1870],{"type":612,"value":1871}," name, age, city ",{"type":606,"tag":652,"props":1873,"children":1874},{"style":673},[1875],{"type":612,"value":745},{"type":606,"tag":652,"props":1877,"children":1878},{"style":748},[1879],{"type":612,"value":901},{"type":606,"tag":652,"props":1881,"children":1882},{"style":667},[1883],{"type":612,"value":1884},"(names, ages, cities):\n",{"type":606,"tag":652,"props":1886,"children":1887},{"class":654,"line":117},[1888,1892,1896,1900,1904,1908,1912,1916,1920,1924,1928,1932,1937,1941,1946,1950,1954],{"type":606,"tag":652,"props":1889,"children":1890},{"style":748},[1891],{"type":612,"value":764},{"type":606,"tag":652,"props":1893,"children":1894},{"style":667},[1895],{"type":612,"value":769},{"type":606,"tag":652,"props":1897,"children":1898},{"style":673},[1899],{"type":612,"value":774},{"type":606,"tag":652,"props":1901,"children":1902},{"style":684},[1903],{"type":612,"value":779},{"type":606,"tag":652,"props":1905,"children":1906},{"style":748},[1907],{"type":612,"value":784},{"type":606,"tag":652,"props":1909,"children":1910},{"style":667},[1911],{"type":612,"value":1813},{"type":606,"tag":652,"props":1913,"children":1914},{"style":748},[1915],{"type":612,"value":794},{"type":606,"tag":652,"props":1917,"children":1918},{"style":684},[1919],{"type":612,"value":1822},{"type":606,"tag":652,"props":1921,"children":1922},{"style":748},[1923],{"type":612,"value":784},{"type":606,"tag":652,"props":1925,"children":1926},{"style":667},[1927],{"type":612,"value":1831},{"type":606,"tag":652,"props":1929,"children":1930},{"style":748},[1931],{"type":612,"value":794},{"type":606,"tag":652,"props":1933,"children":1934},{"style":684},[1935],{"type":612,"value":1936}," and lives in ",{"type":606,"tag":652,"props":1938,"children":1939},{"style":748},[1940],{"type":612,"value":784},{"type":606,"tag":652,"props":1942,"children":1943},{"style":667},[1944],{"type":612,"value":1945},"city",{"type":606,"tag":652,"props":1947,"children":1948},{"style":748},[1949],{"type":612,"value":794},{"type":606,"tag":652,"props":1951,"children":1952},{"style":684},[1953],{"type":612,"value":779},{"type":606,"tag":652,"props":1955,"children":1956},{"style":667},[1957],{"type":612,"value":821},{"type":606,"tag":652,"props":1959,"children":1960},{"class":654,"line":126},[1961],{"type":606,"tag":652,"props":1962,"children":1963},{"emptyLinePlaceholder":13},[1964],{"type":612,"value":719},{"type":606,"tag":652,"props":1966,"children":1967},{"class":654,"line":135},[1968],{"type":606,"tag":652,"props":1969,"children":1970},{"style":658},[1971],{"type":612,"value":1972},"# Creating dictionaries\n",{"type":606,"tag":652,"props":1974,"children":1975},{"class":654,"line":144},[1976,1981,1985,1990,1994,1999],{"type":606,"tag":652,"props":1977,"children":1978},{"style":667},[1979],{"type":612,"value":1980},"person_dict ",{"type":606,"tag":652,"props":1982,"children":1983},{"style":673},[1984],{"type":612,"value":676},{"type":606,"tag":652,"props":1986,"children":1987},{"style":748},[1988],{"type":612,"value":1989}," dict",{"type":606,"tag":652,"props":1991,"children":1992},{"style":667},[1993],{"type":612,"value":769},{"type":606,"tag":652,"props":1995,"children":1996},{"style":748},[1997],{"type":612,"value":1998},"zip",{"type":606,"tag":652,"props":2000,"children":2001},{"style":667},[2002],{"type":612,"value":2003},"(names, ages))\n",{"type":606,"tag":652,"props":2005,"children":2006},{"class":654,"line":153},[2007,2011,2015,2019,2024,2028,2033,2037,2041],{"type":606,"tag":652,"props":2008,"children":2009},{"style":748},[2010],{"type":612,"value":1436},{"type":606,"tag":652,"props":2012,"children":2013},{"style":667},[2014],{"type":612,"value":769},{"type":606,"tag":652,"props":2016,"children":2017},{"style":673},[2018],{"type":612,"value":774},{"type":606,"tag":652,"props":2020,"children":2021},{"style":684},[2022],{"type":612,"value":2023},"\"Dictionary: ",{"type":606,"tag":652,"props":2025,"children":2026},{"style":748},[2027],{"type":612,"value":784},{"type":606,"tag":652,"props":2029,"children":2030},{"style":667},[2031],{"type":612,"value":2032},"person_dict",{"type":606,"tag":652,"props":2034,"children":2035},{"style":748},[2036],{"type":612,"value":794},{"type":606,"tag":652,"props":2038,"children":2039},{"style":684},[2040],{"type":612,"value":779},{"type":606,"tag":652,"props":2042,"children":2043},{"style":667},[2044],{"type":612,"value":821},{"type":606,"tag":652,"props":2046,"children":2047},{"class":654,"line":163},[2048],{"type":606,"tag":652,"props":2049,"children":2050},{"emptyLinePlaceholder":13},[2051],{"type":612,"value":719},{"type":606,"tag":652,"props":2053,"children":2054},{"class":654,"line":172},[2055],{"type":606,"tag":652,"props":2056,"children":2057},{"style":658},[2058],{"type":612,"value":2059},"# Unzipping\n",{"type":606,"tag":652,"props":2061,"children":2062},{"class":654,"line":181},[2063,2068,2072,2077,2081,2085],{"type":606,"tag":652,"props":2064,"children":2065},{"style":667},[2066],{"type":612,"value":2067},"zipped ",{"type":606,"tag":652,"props":2069,"children":2070},{"style":673},[2071],{"type":612,"value":676},{"type":606,"tag":652,"props":2073,"children":2074},{"style":748},[2075],{"type":612,"value":2076}," list",{"type":606,"tag":652,"props":2078,"children":2079},{"style":667},[2080],{"type":612,"value":769},{"type":606,"tag":652,"props":2082,"children":2083},{"style":748},[2084],{"type":612,"value":1998},{"type":606,"tag":652,"props":2086,"children":2087},{"style":667},[2088],{"type":612,"value":2003},{"type":606,"tag":652,"props":2090,"children":2091},{"class":654,"line":190},[2092,2097,2101,2105,2109,2114],{"type":606,"tag":652,"props":2093,"children":2094},{"style":667},[2095],{"type":612,"value":2096},"unzipped_names, unzipped_ages ",{"type":606,"tag":652,"props":2098,"children":2099},{"style":673},[2100],{"type":612,"value":676},{"type":606,"tag":652,"props":2102,"children":2103},{"style":748},[2104],{"type":612,"value":901},{"type":606,"tag":652,"props":2106,"children":2107},{"style":667},[2108],{"type":612,"value":769},{"type":606,"tag":652,"props":2110,"children":2111},{"style":673},[2112],{"type":612,"value":2113},"*",{"type":606,"tag":652,"props":2115,"children":2116},{"style":667},[2117],{"type":612,"value":2118},"zipped)\n",{"type":606,"tag":652,"props":2120,"children":2121},{"class":654,"line":199},[2122,2126,2130,2134,2139,2143,2148,2152,2156],{"type":606,"tag":652,"props":2123,"children":2124},{"style":748},[2125],{"type":612,"value":1436},{"type":606,"tag":652,"props":2127,"children":2128},{"style":667},[2129],{"type":612,"value":769},{"type":606,"tag":652,"props":2131,"children":2132},{"style":673},[2133],{"type":612,"value":774},{"type":606,"tag":652,"props":2135,"children":2136},{"style":684},[2137],{"type":612,"value":2138},"\"Unzipped names: ",{"type":606,"tag":652,"props":2140,"children":2141},{"style":748},[2142],{"type":612,"value":784},{"type":606,"tag":652,"props":2144,"children":2145},{"style":667},[2146],{"type":612,"value":2147},"unzipped_names",{"type":606,"tag":652,"props":2149,"children":2150},{"style":748},[2151],{"type":612,"value":794},{"type":606,"tag":652,"props":2153,"children":2154},{"style":684},[2155],{"type":612,"value":779},{"type":606,"tag":652,"props":2157,"children":2158},{"style":667},[2159],{"type":612,"value":821},{"type":606,"tag":652,"props":2161,"children":2162},{"class":654,"line":208},[2163,2167,2171,2175,2180,2184,2189,2193,2197],{"type":606,"tag":652,"props":2164,"children":2165},{"style":748},[2166],{"type":612,"value":1436},{"type":606,"tag":652,"props":2168,"children":2169},{"style":667},[2170],{"type":612,"value":769},{"type":606,"tag":652,"props":2172,"children":2173},{"style":673},[2174],{"type":612,"value":774},{"type":606,"tag":652,"props":2176,"children":2177},{"style":684},[2178],{"type":612,"value":2179},"\"Unzipped ages: ",{"type":606,"tag":652,"props":2181,"children":2182},{"style":748},[2183],{"type":612,"value":784},{"type":606,"tag":652,"props":2185,"children":2186},{"style":667},[2187],{"type":612,"value":2188},"unzipped_ages",{"type":606,"tag":652,"props":2190,"children":2191},{"style":748},[2192],{"type":612,"value":794},{"type":606,"tag":652,"props":2194,"children":2195},{"style":684},[2196],{"type":612,"value":779},{"type":606,"tag":652,"props":2198,"children":2199},{"style":667},[2200],{"type":612,"value":821},{"type":606,"tag":965,"props":2202,"children":2204},{"id":2203},"key-takeaways",[2205],{"type":612,"value":2206},"🎯 Key Takeaways",{"type":606,"tag":982,"props":2208,"children":2212},{"emoji":2209,"title":2210,"type":2211},"📚","Iteration Essentials","success",[2213,2221,2244,2252,2275,2283,2306],{"type":606,"tag":615,"props":2214,"children":2215},{},[2216],{"type":606,"tag":992,"props":2217,"children":2218},{},[2219],{"type":612,"value":2220},"enumerate() Features:",{"type":606,"tag":998,"props":2222,"children":2223},{},[2224,2229,2234,2239],{"type":606,"tag":1002,"props":2225,"children":2226},{},[2227],{"type":612,"value":2228},"Add counters to iterations",{"type":606,"tag":1002,"props":2230,"children":2231},{},[2232],{"type":612,"value":2233},"Custom start values",{"type":606,"tag":1002,"props":2235,"children":2236},{},[2237],{"type":612,"value":2238},"Useful for debugging",{"type":606,"tag":1002,"props":2240,"children":2241},{},[2242],{"type":612,"value":2243},"List comprehension support",{"type":606,"tag":615,"props":2245,"children":2246},{},[2247],{"type":606,"tag":992,"props":2248,"children":2249},{},[2250],{"type":612,"value":2251},"zip() Features:",{"type":606,"tag":998,"props":2253,"children":2254},{},[2255,2260,2265,2270],{"type":606,"tag":1002,"props":2256,"children":2257},{},[2258],{"type":612,"value":2259},"Combine multiple sequences",{"type":606,"tag":1002,"props":2261,"children":2262},{},[2263],{"type":612,"value":2264},"Parallel iteration",{"type":606,"tag":1002,"props":2266,"children":2267},{},[2268],{"type":612,"value":2269},"Dictionary creation",{"type":606,"tag":1002,"props":2271,"children":2272},{},[2273],{"type":612,"value":2274},"Unzipping capability",{"type":606,"tag":615,"props":2276,"children":2277},{},[2278],{"type":606,"tag":992,"props":2279,"children":2280},{},[2281],{"type":612,"value":2282},"Best Practices:",{"type":606,"tag":998,"props":2284,"children":2285},{},[2286,2291,2296,2301],{"type":606,"tag":1002,"props":2287,"children":2288},{},[2289],{"type":612,"value":2290},"Use enumerate() for position tracking",{"type":606,"tag":1002,"props":2292,"children":2293},{},[2294],{"type":612,"value":2295},"Use zip() for parallel processing",{"type":606,"tag":1002,"props":2297,"children":2298},{},[2299],{"type":612,"value":2300},"Consider itertools.zip_longest() for uneven sequences",{"type":606,"tag":1002,"props":2302,"children":2303},{},[2304],{"type":612,"value":2305},"Use list() to convert iterators to lists",{"type":606,"tag":615,"props":2307,"children":2308},{},[2309,2314],{"type":606,"tag":992,"props":2310,"children":2311},{},[2312],{"type":612,"value":2313},"Remember:",{"type":612,"value":2315}," Both functions return iterators - convert to list if you need to reuse the results!",{"type":606,"tag":2317,"props":2318,"children":2319},"style",{},[2320],{"type":612,"value":2321},"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":2323},[2324,2327,2328],{"id":967,"depth":27,"text":970,"children":2325},[2326],{"id":1058,"depth":36,"text":1061},{"id":1585,"depth":27,"text":1588},{"id":2203,"depth":27,"text":2206},1782373754683]