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