[{"data":1,"prerenderedAt":2883},["ShallowReactive",2],{"tutorials-python-how-to":3,"category-items-python-how-to":600,"content-/python-how-to/split-join-strings":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,"expanded":13},"/python-how-to/string-manipulation","python-how-to",false,"","String Manipulation","Learn essential string manipulation techniques in Python","string-manipulation",1,true,"pi pi-folder","markdown","content:python-how-to:1.string-manipulation.md","content","python-how-to/1.string-manipulation.md","python-how-to/1.string-manipulation","md",[22,31,40,49,58,67],{"_path":23,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":24,"description":25,"slug":26,"parentId":5,"order":27,"_type":15,"_id":28,"_source":17,"_file":29,"_stem":30,"_extension":20},"/python-how-to/split-join-strings","Split and Join Strings","Learn how to split strings into lists and join lists back into strings in Python","split-join-strings",2,"content:python-how-to:2.split-join-strings.md","python-how-to/2.split-join-strings.md","python-how-to/2.split-join-strings",{"_path":32,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":33,"description":34,"slug":35,"parentId":5,"order":36,"_type":15,"_id":37,"_source":17,"_file":38,"_stem":39,"_extension":20},"/python-how-to/remove-whitespace","Remove Whitespace","Learn how to clean up and remove unwanted whitespace from strings in Python","remove-whitespace",3,"content:python-how-to:3.remove-whitespace.md","python-how-to/3.remove-whitespace.md","python-how-to/3.remove-whitespace",{"_path":41,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":42,"description":43,"slug":44,"parentId":5,"order":45,"_type":15,"_id":46,"_source":17,"_file":47,"_stem":48,"_extension":20},"/python-how-to/find-replace-text","Find and Replace Text","Learn how to search for and replace text within strings in Python","find-replace-text",4,"content:python-how-to:4.find-replace-text.md","python-how-to/4.find-replace-text.md","python-how-to/4.find-replace-text",{"_path":50,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":51,"description":52,"slug":53,"parentId":5,"order":54,"_type":15,"_id":55,"_source":17,"_file":56,"_stem":57,"_extension":20},"/python-how-to/check-string-content","Check String Content","Learn how to validate and check the content of strings in Python","check-string-content",5,"content:python-how-to:5.check-string-content.md","python-how-to/5.check-string-content.md","python-how-to/5.check-string-content",{"_path":59,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":60,"description":61,"slug":62,"parentId":5,"order":63,"_type":15,"_id":64,"_source":17,"_file":65,"_stem":66,"_extension":20},"/python-how-to/format-strings","Format Strings","Learn how to format strings in Python using f-strings and format() method","format-strings",6,"content:python-how-to:6.format-strings.md","python-how-to/6.format-strings.md","python-how-to/6.format-strings",{"_path":68,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":69,"description":70,"slug":71,"parentId":5,"order":72,"_type":15,"_id":73,"_source":17,"_file":74,"_stem":75,"_extension":20},"/python-how-to/unicode-special-chars","Handle Unicode and Special Characters","Learn how to work with Unicode and special characters in Python strings","unicode-special-chars",7,"content:python-how-to:7.unicode-special-chars.md","python-how-to/7.unicode-special-chars.md","python-how-to/7.unicode-special-chars",{"_path":77,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":78,"description":79,"slug":80,"order":81,"isParent":13,"icon":14,"_type":15,"_id":82,"_source":17,"_file":83,"_stem":84,"_extension":20,"children":85,"expanded":13},"/python-how-to/list-operations","List Operations","Learn essential operations for working with lists in Python","list-operations",8,"content:python-how-to:8.list-operations.md","python-how-to/8.list-operations.md","python-how-to/8.list-operations",[86,94,103,112,121,130,139],{"_path":87,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":88,"description":89,"slug":90,"parentId":77,"order":81,"_type":15,"_id":91,"_source":17,"_file":92,"_stem":93,"_extension":20},"/python-how-to/sort-lists","Sort Lists","Learn how to sort lists in Python using different methods and custom sorting","sort-lists","content:python-how-to:9.sort-lists.md","python-how-to/9.sort-lists.md","python-how-to/9.sort-lists",{"_path":95,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":96,"description":97,"slug":98,"parentId":77,"order":99,"_type":15,"_id":100,"_source":17,"_file":101,"_stem":102,"_extension":20},"/python-how-to/remove-duplicates","Remove Duplicates","Learn how to remove duplicate elements from lists in Python","remove-duplicates",10,"content:python-how-to:10.remove-duplicates.md","python-how-to/10.remove-duplicates.md","python-how-to/10.remove-duplicates",{"_path":104,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":105,"description":106,"slug":107,"parentId":77,"order":108,"_type":15,"_id":109,"_source":17,"_file":110,"_stem":111,"_extension":20},"/python-how-to/filter-lists","Filter Lists","Learn how to filter lists in Python using different methods","filter-lists",11,"content:python-how-to:11.filter-lists.md","python-how-to/11.filter-lists.md","python-how-to/11.filter-lists",{"_path":113,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":114,"description":115,"slug":116,"parentId":77,"order":117,"_type":15,"_id":118,"_source":17,"_file":119,"_stem":120,"_extension":20},"/python-how-to/combine-lists","Combine Lists","Learn different methods to combine lists in Python","combine-lists",12,"content:python-how-to:12.combine-lists.md","python-how-to/12.combine-lists.md","python-how-to/12.combine-lists",{"_path":122,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":123,"description":124,"slug":125,"parentId":77,"order":126,"_type":15,"_id":127,"_source":17,"_file":128,"_stem":129,"_extension":20},"/python-how-to/list-comprehensions","Use List Comprehensions","Learn how to create and transform lists efficiently using Python's list comprehension syntax","list-comprehensions",13,"content:python-how-to:13.list-comprehensions.md","python-how-to/13.list-comprehensions.md","python-how-to/13.list-comprehensions",{"_path":131,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":132,"description":133,"slug":134,"parentId":77,"order":135,"_type":15,"_id":136,"_source":17,"_file":137,"_stem":138,"_extension":20},"/python-how-to/nested-lists","Work with Nested Lists","Learn how to work with nested lists (2D arrays) in Python","nested-lists",14,"content:python-how-to:14.nested-lists.md","python-how-to/14.nested-lists.md","python-how-to/14.nested-lists",{"_path":140,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":141,"description":142,"slug":143,"parentId":77,"order":144,"_type":15,"_id":145,"_source":17,"_file":146,"_stem":147,"_extension":20},"/python-how-to/enumerate-zip","Use enumerate() and zip()","Learn how to use enumerate() and zip() for efficient iteration in Python","enumerate-zip",15,"content:python-how-to:15.enumerate-zip.md","python-how-to/15.enumerate-zip.md","python-how-to/15.enumerate-zip",{"_path":149,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":150,"description":151,"slug":152,"order":153,"isParent":13,"icon":14,"_type":15,"_id":154,"_source":17,"_file":155,"_stem":156,"_extension":20,"children":157,"expanded":13},"/python-how-to/dictionary-operations","Dictionary Operations","Learn essential operations for working with dictionaries in Python","dictionary-operations",16,"content:python-how-to:16.dictionary-operations.md","python-how-to/16.dictionary-operations.md","python-how-to/16.dictionary-operations",[158,167,176,185,194,203],{"_path":159,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":160,"description":161,"slug":162,"parentId":149,"order":163,"_type":15,"_id":164,"_source":17,"_file":165,"_stem":166,"_extension":20},"/python-how-to/merge-dictionaries","Merge Dictionaries","Learn different methods to merge dictionaries in Python","merge-dictionaries",17,"content:python-how-to:17.merge-dictionaries.md","python-how-to/17.merge-dictionaries.md","python-how-to/17.merge-dictionaries",{"_path":168,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":169,"description":170,"slug":171,"parentId":149,"order":172,"_type":15,"_id":173,"_source":17,"_file":174,"_stem":175,"_extension":20},"/python-how-to/sort-dictionaries","Sort Dictionaries","Learn how to sort dictionaries by keys or values in Python","sort-dictionaries",18,"content:python-how-to:18.sort-dictionaries.md","python-how-to/18.sort-dictionaries.md","python-how-to/18.sort-dictionaries",{"_path":177,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":178,"description":179,"slug":180,"parentId":149,"order":181,"_type":15,"_id":182,"_source":17,"_file":183,"_stem":184,"_extension":20},"/python-how-to/filter-dictionaries","Filter Dictionaries","Learn how to filter dictionaries based on keys or values in Python","filter-dictionaries",19,"content:python-how-to:19.filter-dictionaries.md","python-how-to/19.filter-dictionaries.md","python-how-to/19.filter-dictionaries",{"_path":186,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":187,"description":188,"slug":189,"parentId":149,"order":190,"_type":15,"_id":191,"_source":17,"_file":192,"_stem":193,"_extension":20},"/python-how-to/handle-missing-keys","Handle Missing Keys","Learn safe ways to access dictionary keys and handle missing values","handle-missing-keys",20,"content:python-how-to:20.handle-missing-keys.md","python-how-to/20.handle-missing-keys.md","python-how-to/20.handle-missing-keys",{"_path":195,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":196,"description":197,"slug":198,"parentId":149,"order":199,"_type":15,"_id":200,"_source":17,"_file":201,"_stem":202,"_extension":20},"/python-how-to/dictionary-comprehensions","Use Dictionary Comprehensions","Learn how to create dictionaries efficiently using comprehensions","dictionary-comprehensions",21,"content:python-how-to:21.dictionary-comprehensions.md","python-how-to/21.dictionary-comprehensions.md","python-how-to/21.dictionary-comprehensions",{"_path":204,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":205,"description":206,"slug":207,"parentId":149,"order":208,"_type":15,"_id":209,"_source":17,"_file":210,"_stem":211,"_extension":20},"/python-how-to/convert-lists-dictionaries","Convert Between Lists and Dictionaries","Learn how to transform data between lists and dictionaries in Python","convert-lists-dictionaries",22,"content:python-how-to:22.convert-lists-dictionaries.md","python-how-to/22.convert-lists-dictionaries.md","python-how-to/22.convert-lists-dictionaries",{"_path":213,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":214,"description":215,"slug":216,"order":217,"isParent":13,"icon":14,"_type":15,"_id":218,"_source":17,"_file":219,"_stem":220,"_extension":20,"children":221},"/python-how-to/file-operations","File Operations","Learn essential file operations in Python for reading, writing, and managing files","file-operations",23,"content:python-how-to:23.file-operations.md","python-how-to/23.file-operations.md","python-how-to/23.file-operations",[222,231,240,249,258,267,276],{"_path":223,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":224,"description":225,"slug":226,"parentId":213,"order":227,"_type":15,"_id":228,"_source":17,"_file":229,"_stem":230,"_extension":20},"/python-how-to/read-text-files","Read Text Files","Learn how to read text files in Python using different methods","read-text-files",24,"content:python-how-to:24.read-text-files.md","python-how-to/24.read-text-files.md","python-how-to/24.read-text-files",{"_path":232,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":233,"description":234,"slug":235,"parentId":213,"order":236,"_type":15,"_id":237,"_source":17,"_file":238,"_stem":239,"_extension":20},"/python-how-to/write-to-files","Write to Files","Learn how to write and create files in Python using different methods","write-to-files",25,"content:python-how-to:25.write-to-files.md","python-how-to/25.write-to-files.md","python-how-to/25.write-to-files",{"_path":241,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":242,"description":243,"slug":244,"parentId":213,"order":245,"_type":15,"_id":246,"_source":17,"_file":247,"_stem":248,"_extension":20},"/python-how-to/work-csv-files","Work with CSV Files","Learn how to read and write CSV files in Python using the csv module","work-csv-files",26,"content:python-how-to:26.work-csv-files.md","python-how-to/26.work-csv-files.md","python-how-to/26.work-csv-files",{"_path":250,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":251,"description":252,"slug":253,"parentId":213,"order":254,"_type":15,"_id":255,"_source":17,"_file":256,"_stem":257,"_extension":20},"/python-how-to/handle-file-paths","Handle File Paths","Learn how to work with file and directory paths in Python using pathlib and os modules","handle-file-paths",27,"content:python-how-to:27.handle-file-paths.md","python-how-to/27.handle-file-paths.md","python-how-to/27.handle-file-paths",{"_path":259,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":260,"description":261,"slug":262,"parentId":213,"order":263,"_type":15,"_id":264,"_source":17,"_file":265,"_stem":266,"_extension":20},"/python-how-to/work-json-files","Work with JSON Files","Learn how to read and write JSON files in Python using the json module","work-json-files",28,"content:python-how-to:28.work-json-files.md","python-how-to/28.work-json-files.md","python-how-to/28.work-json-files",{"_path":268,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":269,"description":270,"slug":271,"parentId":213,"order":272,"_type":15,"_id":273,"_source":17,"_file":274,"_stem":275,"_extension":20},"/python-how-to/handle-binary-files","Handle Binary Files","Learn how to work with binary files in Python for images, data, and other non-text content","handle-binary-files",29,"content:python-how-to:29.handle-binary-files.md","python-how-to/29.handle-binary-files.md","python-how-to/29.handle-binary-files",{"_path":277,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":278,"description":279,"slug":280,"parentId":213,"order":281,"_type":15,"_id":282,"_source":17,"_file":283,"_stem":284,"_extension":20},"/python-how-to/use-context-managers","Use Context Managers","Learn how to use context managers for safe resource handling in Python","use-context-managers",30,"content:python-how-to:30.use-context-managers.md","python-how-to/30.use-context-managers.md","python-how-to/30.use-context-managers",{"_path":286,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":287,"description":288,"slug":289,"parentId":290,"order":291,"isParent":13,"icon":292,"_type":15,"_id":293,"_source":17,"_file":294,"_stem":295,"_extension":20,"children":296},"/python-how-to/date-and-time","Date and Time","Master Python's date and time handling with datetime, time zones, formatting, and calculations","date-and-time","/python-how-to",31,"pi pi-calendar","content:python-how-to:31.date-and-time.md","python-how-to/31.date-and-time.md","python-how-to/31.date-and-time",[297,306,315,324,333,342],{"_path":298,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":299,"description":300,"slug":301,"parentId":286,"order":302,"_type":15,"_id":303,"_source":17,"_file":304,"_stem":305,"_extension":20},"/python-how-to/get-current-datetime","Get Current Date/Time","Learn how to get current date, time, and timestamps using Python's datetime module","get-current-datetime",32,"content:python-how-to:32.get-current-datetime.md","python-how-to/32.get-current-datetime.md","python-how-to/32.get-current-datetime",{"_path":307,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":308,"description":309,"slug":310,"parentId":286,"order":311,"_type":15,"_id":312,"_source":17,"_file":313,"_stem":314,"_extension":20},"/python-how-to/format-dates","Format Dates","Master date formatting with strftime, custom formats, and locale-aware formatting for user-friendly displays","format-dates",33,"content:python-how-to:33.format-dates.md","python-how-to/33.format-dates.md","python-how-to/33.format-dates",{"_path":316,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":317,"description":318,"slug":319,"parentId":286,"order":320,"_type":15,"_id":321,"_source":17,"_file":322,"_stem":323,"_extension":20},"/python-how-to/calculate-date-differences","Calculate Date Differences","Learn to calculate time differences, durations, and intervals using Python's timedelta for scheduling and analytics","calculate-date-differences",34,"content:python-how-to:34.calculate-date-differences.md","python-how-to/34.calculate-date-differences.md","python-how-to/34.calculate-date-differences",{"_path":325,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":326,"description":327,"slug":328,"parentId":286,"order":329,"_type":15,"_id":330,"_source":17,"_file":331,"_stem":332,"_extension":20},"/python-how-to/parse-date-strings","Parse Date Strings","Convert text dates into Python datetime objects using strptime, handle multiple formats, and validate date input","parse-date-strings",35,"content:python-how-to:35.parse-date-strings.md","python-how-to/35.parse-date-strings.md","python-how-to/35.parse-date-strings",{"_path":334,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":335,"description":336,"slug":337,"parentId":286,"order":338,"_type":15,"_id":339,"_source":17,"_file":340,"_stem":341,"_extension":20},"/python-how-to/handle-timezones","Handle Timezones","Master timezone handling with zoneinfo, UTC conversions, and timezone-aware datetime objects for global applications","handle-timezones",36,"content:python-how-to:36.handle-timezones.md","python-how-to/36.handle-timezones.md","python-how-to/36.handle-timezones",{"_path":343,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":344,"description":345,"slug":346,"parentId":286,"order":347,"_type":15,"_id":348,"_source":17,"_file":349,"_stem":350,"_extension":20},"/python-how-to/work-with-timestamps","Work with Timestamps","Master Unix timestamps in Python - convert between datetime objects and timestamps for APIs, databases, and system integration","work-with-timestamps",37,"content:python-how-to:37.work-with-timestamps.md","python-how-to/37.work-with-timestamps.md","python-how-to/37.work-with-timestamps",{"_path":352,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":353,"description":354,"slug":355,"parentId":290,"order":356,"isParent":13,"icon":357,"_type":15,"_id":358,"_source":17,"_file":359,"_stem":360,"_extension":20,"children":361},"/python-how-to/error-handling","Error Handling","Learn Python's error handling with try/except, custom exceptions, debugging, logging, and retry logic for robust applications","error-handling",38,"pi pi-exclamation-triangle","content:python-how-to:38.error-handling.md","python-how-to/38.error-handling.md","python-how-to/38.error-handling",[362,371,380,389,398],{"_path":363,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":364,"description":365,"slug":366,"parentId":352,"order":367,"_type":15,"_id":368,"_source":17,"_file":369,"_stem":370,"_extension":20},"/python-how-to/handle-exceptions","Handle Exceptions","Master try/except blocks, multiple exception handling, and finally clauses for robust error handling in Python","handle-exceptions",39,"content:python-how-to:39.handle-exceptions.md","python-how-to/39.handle-exceptions.md","python-how-to/39.handle-exceptions",{"_path":372,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":373,"description":374,"slug":375,"parentId":352,"order":376,"_type":15,"_id":377,"_source":17,"_file":378,"_stem":379,"_extension":20},"/python-how-to/create-custom-exceptions","Create Custom Exceptions","Learn to create custom exception classes in Python for specific error handling and better code organization","create-custom-exceptions",40,"content:python-how-to:40.create-custom-exceptions.md","python-how-to/40.create-custom-exceptions.md","python-how-to/40.create-custom-exceptions",{"_path":381,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":382,"description":383,"slug":384,"parentId":352,"order":385,"_type":15,"_id":386,"_source":17,"_file":387,"_stem":388,"_extension":20},"/python-how-to/debug-code","Debug Code","Learn Python debugging techniques using print statements, the debugger, and tools to find and fix code issues","debug-code",41,"content:python-how-to:41.debug-code.md","python-how-to/41.debug-code.md","python-how-to/41.debug-code",{"_path":390,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":391,"description":392,"slug":393,"parentId":352,"order":394,"_type":15,"_id":395,"_source":17,"_file":396,"_stem":397,"_extension":20},"/python-how-to/use-logging","Use Logging","Learn Python's logging module for tracking application behavior, errors, and debugging information","use-logging",42,"content:python-how-to:42.use-logging.md","python-how-to/42.use-logging.md","python-how-to/42.use-logging",{"_path":399,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":400,"description":401,"slug":402,"parentId":352,"order":403,"_type":15,"_id":404,"_source":17,"_file":405,"_stem":406,"_extension":20},"/python-how-to/implement-retry-logic","Implement Retry Logic","Learn to implement retry mechanisms in Python for handling temporary failures and building resilient applications","implement-retry-logic",43,"content:python-how-to:43.implement-retry-logic.md","python-how-to/43.implement-retry-logic.md","python-how-to/43.implement-retry-logic",{"_path":408,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":409,"description":410,"slug":411,"parentId":290,"order":412,"isParent":13,"icon":413,"_type":15,"_id":414,"_source":17,"_file":415,"_stem":416,"_extension":20,"children":417},"/python-how-to/functions-and-modules","Functions and Modules","Learn Python functions, modules, and code organization for building reusable, maintainable applications","functions-and-modules",44,"pi pi-box","content:python-how-to:44.functions-and-modules.md","python-how-to/44.functions-and-modules.md","python-how-to/44.functions-and-modules",[418,427,436,445,454,463],{"_path":419,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":420,"description":421,"slug":422,"parentId":408,"order":423,"_type":15,"_id":424,"_source":17,"_file":425,"_stem":426,"_extension":20},"/python-how-to/write-functions","Write Functions","Learn to create Python functions with parameters, return values, and documentation for reusable code","write-functions",45,"content:python-how-to:45.write-functions.md","python-how-to/45.write-functions.md","python-how-to/45.write-functions",{"_path":428,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":429,"description":430,"slug":431,"parentId":408,"order":432,"_type":15,"_id":433,"_source":17,"_file":434,"_stem":435,"_extension":20},"/python-how-to/use-args-kwargs","Use *args and **kwargs","Learn to use *args and **kwargs for flexible function arguments in Python","use-args-kwargs",46,"content:python-how-to:46.use-args-kwargs.md","python-how-to/46.use-args-kwargs.md","python-how-to/46.use-args-kwargs",{"_path":437,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":438,"description":439,"slug":440,"parentId":408,"order":441,"_type":15,"_id":442,"_source":17,"_file":443,"_stem":444,"_extension":20},"/python-how-to/create-decorators","Create Decorators","Learn to create and use Python decorators to enhance function behavior and add functionality","create-decorators",47,"content:python-how-to:47.create-decorators.md","python-how-to/47.create-decorators.md","python-how-to/47.create-decorators",{"_path":446,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":447,"description":448,"slug":449,"parentId":408,"order":450,"_type":15,"_id":451,"_source":17,"_file":452,"_stem":453,"_extension":20},"/python-how-to/use-generators","Use Generators","Learn to create memory-efficient generators with yield for processing large datasets and sequences","use-generators",48,"content:python-how-to:48.use-generators.md","python-how-to/48.use-generators.md","python-how-to/48.use-generators",{"_path":455,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":456,"description":457,"slug":458,"parentId":408,"order":459,"_type":15,"_id":460,"_source":17,"_file":461,"_stem":462,"_extension":20},"/python-how-to/work-modules-packages","Work with Modules and Packages","Learn to organize Python code with modules and packages, and use imports effectively","work-modules-packages",49,"content:python-how-to:49.work-modules-packages.md","python-how-to/49.work-modules-packages.md","python-how-to/49.work-modules-packages",{"_path":464,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":465,"description":466,"slug":467,"parentId":408,"order":468,"_type":15,"_id":469,"_source":17,"_file":470,"_stem":471,"_extension":20},"/python-how-to/create-virtual-environments","Create Virtual Environments","Learn to create and manage Python virtual environments for project dependency isolation","create-virtual-environments",50,"content:python-how-to:50.create-virtual-environments.md","python-how-to/50.create-virtual-environments.md","python-how-to/50.create-virtual-environments",{"_path":473,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":474,"description":475,"slug":476,"parentId":290,"order":477,"isParent":13,"icon":478,"_type":15,"_id":479,"_source":17,"_file":480,"_stem":481,"_extension":20,"children":482},"/python-how-to/data-processing","Data Processing","Learn Python data processing techniques including regex, APIs, databases, and large file handling","data-processing",51,"pi pi-database","content:python-how-to:51.data-processing.md","python-how-to/51.data-processing.md","python-how-to/51.data-processing",[483,492,501,510,519],{"_path":484,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":485,"description":486,"slug":487,"parentId":473,"order":488,"_type":15,"_id":489,"_source":17,"_file":490,"_stem":491,"_extension":20},"/python-how-to/work-regular-expressions","Work with Regular Expressions","Learn to use Python's re module for pattern matching, text extraction, and data validation","work-regular-expressions",52,"content:python-how-to:52.work-regular-expressions.md","python-how-to/52.work-regular-expressions.md","python-how-to/52.work-regular-expressions",{"_path":493,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":494,"description":495,"slug":496,"parentId":473,"order":497,"_type":15,"_id":498,"_source":17,"_file":499,"_stem":500,"_extension":20},"/python-how-to/parse-xml-html","Parse XML and HTML","Learn to extract data from XML and HTML documents using Python's built-in parsing tools","parse-xml-html",53,"content:python-how-to:53.parse-xml-html.md","python-how-to/53.parse-xml-html.md","python-how-to/53.parse-xml-html",{"_path":502,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":503,"description":504,"slug":505,"parentId":473,"order":506,"_type":15,"_id":507,"_source":17,"_file":508,"_stem":509,"_extension":20},"/python-how-to/handle-api-requests","Handle API Requests","Learn to fetch and process data from web APIs using Python's urllib and external requests library","handle-api-requests",54,"content:python-how-to:54.handle-api-requests.md","python-how-to/54.handle-api-requests.md","python-how-to/54.handle-api-requests",{"_path":511,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":512,"description":513,"slug":514,"parentId":473,"order":515,"_type":15,"_id":516,"_source":17,"_file":517,"_stem":518,"_extension":20},"/python-how-to/work-databases","Work with Databases","Learn to connect to and query SQL databases using Python's sqlite3 and database techniques","work-databases",55,"content:python-how-to:55.work-databases.md","python-how-to/55.work-databases.md","python-how-to/55.work-databases",{"_path":520,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":521,"description":522,"slug":523,"parentId":473,"order":524,"_type":15,"_id":525,"_source":17,"_file":526,"_stem":527,"_extension":20},"/python-how-to/process-large-files","Process Large Files","Learn memory-efficient techniques for handling large files and datasets in Python","process-large-files",56,"content:python-how-to:56.process-large-files.md","python-how-to/56.process-large-files.md","python-how-to/56.process-large-files",{"_path":529,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":530,"description":531,"slug":532,"parentId":290,"order":533,"isParent":13,"icon":534,"_type":15,"_id":535,"_source":17,"_file":536,"_stem":537,"_extension":20,"children":538},"/python-how-to/best-practices","Best Practices","Learn Python best practices for writing clean, maintainable, and efficient code","best-practices",57,"pi pi-star","content:python-how-to:57.best-practices.md","python-how-to/57.best-practices.md","python-how-to/57.best-practices",[539,548,557,566,575,584],{"_path":540,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":541,"description":542,"slug":543,"parentId":529,"order":544,"_type":15,"_id":545,"_source":17,"_file":546,"_stem":547,"_extension":20},"/python-how-to/structure-code","Structure Your Code","Learn to organize Python code with proper module structure, functions, and classes","structure-code",58,"content:python-how-to:58.structure-code.md","python-how-to/58.structure-code.md","python-how-to/58.structure-code",{"_path":549,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":550,"description":551,"slug":552,"parentId":529,"order":553,"_type":15,"_id":554,"_source":17,"_file":555,"_stem":556,"_extension":20},"/python-how-to/write-clean-code","Write Clean Code","Learn to write readable, maintainable Python code with proper naming, comments, and clear logic","write-clean-code",59,"content:python-how-to:59.write-clean-code.md","python-how-to/59.write-clean-code.md","python-how-to/59.write-clean-code",{"_path":558,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":559,"description":560,"slug":561,"parentId":529,"order":562,"_type":15,"_id":563,"_source":17,"_file":564,"_stem":565,"_extension":20},"/python-how-to/optimize-performance","Optimize Performance","Learn to identify and fix performance bottlenecks in Python code for faster execution","optimize-performance",60,"content:python-how-to:60.optimize-performance.md","python-how-to/60.optimize-performance.md","python-how-to/60.optimize-performance",{"_path":567,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":568,"description":569,"slug":570,"parentId":529,"order":571,"_type":15,"_id":572,"_source":17,"_file":573,"_stem":574,"_extension":20},"/python-how-to/write-unit-tests","Write Unit Tests","Learn to create reliable unit tests to verify your Python code works correctly and catch bugs early","write-unit-tests",61,"content:python-how-to:61.write-unit-tests.md","python-how-to/61.write-unit-tests.md","python-how-to/61.write-unit-tests",{"_path":576,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":577,"description":578,"slug":579,"parentId":529,"order":580,"_type":15,"_id":581,"_source":17,"_file":582,"_stem":583,"_extension":20},"/python-how-to/document-code","Document Your Code","Learn to write clear documentation and helpful comments for your Python code","document-code",62,"content:python-how-to:62.document-code.md","python-how-to/62.document-code.md","python-how-to/62.document-code",{"_path":585,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":586,"description":587,"slug":588,"parentId":529,"order":589,"_type":15,"_id":590,"_source":17,"_file":591,"_stem":592,"_extension":20},"/python-how-to/use-type-hints","Use Type Hints","Learn to add type annotations to Python code for better clarity, tooling support, and error detection","use-type-hints",63,"content:python-how-to:63.use-type-hints.md","python-how-to/63.use-type-hints.md","python-how-to/63.use-type-hints",{"_path":290,"_dir":8,"_draft":7,"_partial":7,"_locale":8,"title":594,"description":595,"slug":6,"order":596,"icon":14,"_type":15,"_id":597,"_source":17,"_file":598,"_stem":599,"_extension":20},"Python How-To Guide","Practical Python tutorials for common programming tasks. Learn step-by-step solutions for string manipulation, file operations, data processing, and more with real-world examples.",0,"content:python-how-to:index.md","python-how-to/index.md","python-how-to/index",[22],{"_path":23,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":24,"description":25,"slug":26,"parentId":5,"order":27,"body":602,"_type":15,"_id":28,"_source":17,"_file":29,"_stem":30,"_extension":20},{"type":603,"children":604,"toc":2869},"root",[605,614,637,833,840,852,947,954,1231,1237,1573,1579,1590,1644,1650,1940,1946,2342,2348,2353,2496,2502,2781,2787,2863],{"type":606,"tag":607,"props":608,"children":610},"element","h1",{"id":609},"splitting-and-joining-strings",[611],{"type":612,"value":613},"text","🔄 Splitting and Joining Strings",{"type":606,"tag":615,"props":616,"children":617},"p",{},[618,620,627,629,635],{"type":612,"value":619},"Strings often need to be broken apart or combined. Python makes this easy with the ",{"type":606,"tag":621,"props":622,"children":624},"code",{"className":623},[],[625],{"type":612,"value":626},".split()",{"type":612,"value":628}," and ",{"type":606,"tag":621,"props":630,"children":632},{"className":631},[],[633],{"type":612,"value":634},".join()",{"type":612,"value":636}," methods. These are essential tools for text processing, data cleaning, and working with user input.",{"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 string splitting\nsentence = \"Python is fun to learn\"\nwords = sentence.split()  # Split by whitespace\nprint(f\"Words: {words}\")\n\n# Joining words back together\nnew_sentence = \" \".join(words)\nprint(f\"Joined: {new_sentence}\")\n","python",[648],{"type":606,"tag":621,"props":649,"children":650},{"__ignoreMap":8},[651,662,683,705,754,762,770,792],{"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 string splitting\n",{"type":606,"tag":652,"props":663,"children":664},{"class":654,"line":27},[665,671,677],{"type":606,"tag":652,"props":666,"children":668},{"style":667},"--shiki-default:#24292E;--shiki-app-dark-mode:#E1E4E8",[669],{"type":612,"value":670},"sentence ",{"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":680},{"style":679},"--shiki-default:#032F62;--shiki-app-dark-mode:#9ECBFF",[681],{"type":612,"value":682}," \"Python is fun to learn\"\n",{"type":606,"tag":652,"props":684,"children":685},{"class":654,"line":36},[686,691,695,700],{"type":606,"tag":652,"props":687,"children":688},{"style":667},[689],{"type":612,"value":690},"words ",{"type":606,"tag":652,"props":692,"children":693},{"style":673},[694],{"type":612,"value":676},{"type":606,"tag":652,"props":696,"children":697},{"style":667},[698],{"type":612,"value":699}," sentence.split()  ",{"type":606,"tag":652,"props":701,"children":702},{"style":658},[703],{"type":612,"value":704},"# Split by whitespace\n",{"type":606,"tag":652,"props":706,"children":707},{"class":654,"line":45},[708,714,719,724,729,734,739,744,749],{"type":606,"tag":652,"props":709,"children":711},{"style":710},"--shiki-default:#005CC5;--shiki-app-dark-mode:#79B8FF",[712],{"type":612,"value":713},"print",{"type":606,"tag":652,"props":715,"children":716},{"style":667},[717],{"type":612,"value":718},"(",{"type":606,"tag":652,"props":720,"children":721},{"style":673},[722],{"type":612,"value":723},"f",{"type":606,"tag":652,"props":725,"children":726},{"style":679},[727],{"type":612,"value":728},"\"Words: ",{"type":606,"tag":652,"props":730,"children":731},{"style":710},[732],{"type":612,"value":733},"{",{"type":606,"tag":652,"props":735,"children":736},{"style":667},[737],{"type":612,"value":738},"words",{"type":606,"tag":652,"props":740,"children":741},{"style":710},[742],{"type":612,"value":743},"}",{"type":606,"tag":652,"props":745,"children":746},{"style":679},[747],{"type":612,"value":748},"\"",{"type":606,"tag":652,"props":750,"children":751},{"style":667},[752],{"type":612,"value":753},")\n",{"type":606,"tag":652,"props":755,"children":756},{"class":654,"line":54},[757],{"type":606,"tag":652,"props":758,"children":759},{"emptyLinePlaceholder":13},[760],{"type":612,"value":761},"\n",{"type":606,"tag":652,"props":763,"children":764},{"class":654,"line":63},[765],{"type":606,"tag":652,"props":766,"children":767},{"style":658},[768],{"type":612,"value":769},"# Joining words back together\n",{"type":606,"tag":652,"props":771,"children":772},{"class":654,"line":72},[773,778,782,787],{"type":606,"tag":652,"props":774,"children":775},{"style":667},[776],{"type":612,"value":777},"new_sentence ",{"type":606,"tag":652,"props":779,"children":780},{"style":673},[781],{"type":612,"value":676},{"type":606,"tag":652,"props":783,"children":784},{"style":679},[785],{"type":612,"value":786}," \" \"",{"type":606,"tag":652,"props":788,"children":789},{"style":667},[790],{"type":612,"value":791},".join(words)\n",{"type":606,"tag":652,"props":793,"children":794},{"class":654,"line":81},[795,799,803,807,812,816,821,825,829],{"type":606,"tag":652,"props":796,"children":797},{"style":710},[798],{"type":612,"value":713},{"type":606,"tag":652,"props":800,"children":801},{"style":667},[802],{"type":612,"value":718},{"type":606,"tag":652,"props":804,"children":805},{"style":673},[806],{"type":612,"value":723},{"type":606,"tag":652,"props":808,"children":809},{"style":679},[810],{"type":612,"value":811},"\"Joined: ",{"type":606,"tag":652,"props":813,"children":814},{"style":710},[815],{"type":612,"value":733},{"type":606,"tag":652,"props":817,"children":818},{"style":667},[819],{"type":612,"value":820},"new_sentence",{"type":606,"tag":652,"props":822,"children":823},{"style":710},[824],{"type":612,"value":743},{"type":606,"tag":652,"props":826,"children":827},{"style":679},[828],{"type":612,"value":748},{"type":606,"tag":652,"props":830,"children":831},{"style":667},[832],{"type":612,"value":753},{"type":606,"tag":834,"props":835,"children":837},"h2",{"id":836},"splitting-strings",[838],{"type":612,"value":839},"🎯 Splitting Strings",{"type":606,"tag":615,"props":841,"children":842},{},[843,845,850],{"type":612,"value":844},"The ",{"type":606,"tag":621,"props":846,"children":848},{"className":847},[],[849],{"type":612,"value":626},{"type":612,"value":851}," method breaks a string into a list of smaller strings. You can split by any character or sequence of characters.",{"type":606,"tag":853,"props":854,"children":858},"info-box",{"emoji":855,"title":856,"type":857},"✂️","Split Method Basics","info",[859,876,903,911],{"type":606,"tag":615,"props":860,"children":861},{},[862,868,870],{"type":606,"tag":863,"props":864,"children":865},"strong",{},[866],{"type":612,"value":867},"Syntax:",{"type":612,"value":869}," ",{"type":606,"tag":621,"props":871,"children":873},{"className":872},[],[874],{"type":612,"value":875},"string.split(separator, maxsplit)",{"type":606,"tag":877,"props":878,"children":879},"ul",{},[880,892],{"type":606,"tag":881,"props":882,"children":883},"li",{},[884,890],{"type":606,"tag":621,"props":885,"children":887},{"className":886},[],[888],{"type":612,"value":889},"separator",{"type":612,"value":891},": Character(s) to split on (default: whitespace)",{"type":606,"tag":881,"props":893,"children":894},{},[895,901],{"type":606,"tag":621,"props":896,"children":898},{"className":897},[],[899],{"type":612,"value":900},"maxsplit",{"type":612,"value":902},": Maximum number of splits (optional)",{"type":606,"tag":615,"props":904,"children":905},{},[906],{"type":606,"tag":863,"props":907,"children":908},{},[909],{"type":612,"value":910},"Common Uses:",{"type":606,"tag":877,"props":912,"children":913},{},[914,925,936],{"type":606,"tag":881,"props":915,"children":916},{},[917,919],{"type":612,"value":918},"Split by space: ",{"type":606,"tag":621,"props":920,"children":922},{"className":921},[],[923],{"type":612,"value":924},"text.split()",{"type":606,"tag":881,"props":926,"children":927},{},[928,930],{"type":612,"value":929},"Split by comma: ",{"type":606,"tag":621,"props":931,"children":933},{"className":932},[],[934],{"type":612,"value":935},"text.split(\",\")",{"type":606,"tag":881,"props":937,"children":938},{},[939,941],{"type":612,"value":940},"Split by newline: ",{"type":606,"tag":621,"props":942,"children":944},{"className":943},[],[945],{"type":612,"value":946},"text.split(\"\\n\")",{"type":606,"tag":948,"props":949,"children":951},"h3",{"id":950},"basic-splitting-examples",[952],{"type":612,"value":953},"Basic Splitting Examples",{"type":606,"tag":638,"props":955,"children":956},{},[957],{"type":606,"tag":642,"props":958,"children":960},{"className":644,"code":959,"language":646,"meta":8,"style":8},"# Different ways to split strings\ntext = \"apple,banana,orange\"\ncsv_line = \"John,Doe,30,New York\"\n\n# Split by comma\nfruits = text.split(\",\")\nprint(f\"Fruits: {fruits}\")\n\n# Split with maximum splits\nname, *details = csv_line.split(\",\", 1)\nprint(f\"Name: {name}\")\nprint(f\"Details: {details}\")\n",[961],{"type":606,"tag":621,"props":962,"children":963},{"__ignoreMap":8},[964,972,989,1006,1013,1021,1047,1088,1095,1104,1149,1190],{"type":606,"tag":652,"props":965,"children":966},{"class":654,"line":12},[967],{"type":606,"tag":652,"props":968,"children":969},{"style":658},[970],{"type":612,"value":971},"# Different ways to split strings\n",{"type":606,"tag":652,"props":973,"children":974},{"class":654,"line":27},[975,980,984],{"type":606,"tag":652,"props":976,"children":977},{"style":667},[978],{"type":612,"value":979},"text ",{"type":606,"tag":652,"props":981,"children":982},{"style":673},[983],{"type":612,"value":676},{"type":606,"tag":652,"props":985,"children":986},{"style":679},[987],{"type":612,"value":988}," \"apple,banana,orange\"\n",{"type":606,"tag":652,"props":990,"children":991},{"class":654,"line":36},[992,997,1001],{"type":606,"tag":652,"props":993,"children":994},{"style":667},[995],{"type":612,"value":996},"csv_line ",{"type":606,"tag":652,"props":998,"children":999},{"style":673},[1000],{"type":612,"value":676},{"type":606,"tag":652,"props":1002,"children":1003},{"style":679},[1004],{"type":612,"value":1005}," \"John,Doe,30,New York\"\n",{"type":606,"tag":652,"props":1007,"children":1008},{"class":654,"line":45},[1009],{"type":606,"tag":652,"props":1010,"children":1011},{"emptyLinePlaceholder":13},[1012],{"type":612,"value":761},{"type":606,"tag":652,"props":1014,"children":1015},{"class":654,"line":54},[1016],{"type":606,"tag":652,"props":1017,"children":1018},{"style":658},[1019],{"type":612,"value":1020},"# Split by comma\n",{"type":606,"tag":652,"props":1022,"children":1023},{"class":654,"line":63},[1024,1029,1033,1038,1043],{"type":606,"tag":652,"props":1025,"children":1026},{"style":667},[1027],{"type":612,"value":1028},"fruits ",{"type":606,"tag":652,"props":1030,"children":1031},{"style":673},[1032],{"type":612,"value":676},{"type":606,"tag":652,"props":1034,"children":1035},{"style":667},[1036],{"type":612,"value":1037}," text.split(",{"type":606,"tag":652,"props":1039,"children":1040},{"style":679},[1041],{"type":612,"value":1042},"\",\"",{"type":606,"tag":652,"props":1044,"children":1045},{"style":667},[1046],{"type":612,"value":753},{"type":606,"tag":652,"props":1048,"children":1049},{"class":654,"line":72},[1050,1054,1058,1062,1067,1071,1076,1080,1084],{"type":606,"tag":652,"props":1051,"children":1052},{"style":710},[1053],{"type":612,"value":713},{"type":606,"tag":652,"props":1055,"children":1056},{"style":667},[1057],{"type":612,"value":718},{"type":606,"tag":652,"props":1059,"children":1060},{"style":673},[1061],{"type":612,"value":723},{"type":606,"tag":652,"props":1063,"children":1064},{"style":679},[1065],{"type":612,"value":1066},"\"Fruits: ",{"type":606,"tag":652,"props":1068,"children":1069},{"style":710},[1070],{"type":612,"value":733},{"type":606,"tag":652,"props":1072,"children":1073},{"style":667},[1074],{"type":612,"value":1075},"fruits",{"type":606,"tag":652,"props":1077,"children":1078},{"style":710},[1079],{"type":612,"value":743},{"type":606,"tag":652,"props":1081,"children":1082},{"style":679},[1083],{"type":612,"value":748},{"type":606,"tag":652,"props":1085,"children":1086},{"style":667},[1087],{"type":612,"value":753},{"type":606,"tag":652,"props":1089,"children":1090},{"class":654,"line":81},[1091],{"type":606,"tag":652,"props":1092,"children":1093},{"emptyLinePlaceholder":13},[1094],{"type":612,"value":761},{"type":606,"tag":652,"props":1096,"children":1098},{"class":654,"line":1097},9,[1099],{"type":606,"tag":652,"props":1100,"children":1101},{"style":658},[1102],{"type":612,"value":1103},"# Split with maximum splits\n",{"type":606,"tag":652,"props":1105,"children":1106},{"class":654,"line":99},[1107,1112,1117,1122,1126,1131,1135,1140,1145],{"type":606,"tag":652,"props":1108,"children":1109},{"style":667},[1110],{"type":612,"value":1111},"name, ",{"type":606,"tag":652,"props":1113,"children":1114},{"style":673},[1115],{"type":612,"value":1116},"*",{"type":606,"tag":652,"props":1118,"children":1119},{"style":667},[1120],{"type":612,"value":1121},"details ",{"type":606,"tag":652,"props":1123,"children":1124},{"style":673},[1125],{"type":612,"value":676},{"type":606,"tag":652,"props":1127,"children":1128},{"style":667},[1129],{"type":612,"value":1130}," csv_line.split(",{"type":606,"tag":652,"props":1132,"children":1133},{"style":679},[1134],{"type":612,"value":1042},{"type":606,"tag":652,"props":1136,"children":1137},{"style":667},[1138],{"type":612,"value":1139},", ",{"type":606,"tag":652,"props":1141,"children":1142},{"style":710},[1143],{"type":612,"value":1144},"1",{"type":606,"tag":652,"props":1146,"children":1147},{"style":667},[1148],{"type":612,"value":753},{"type":606,"tag":652,"props":1150,"children":1151},{"class":654,"line":108},[1152,1156,1160,1164,1169,1173,1178,1182,1186],{"type":606,"tag":652,"props":1153,"children":1154},{"style":710},[1155],{"type":612,"value":713},{"type":606,"tag":652,"props":1157,"children":1158},{"style":667},[1159],{"type":612,"value":718},{"type":606,"tag":652,"props":1161,"children":1162},{"style":673},[1163],{"type":612,"value":723},{"type":606,"tag":652,"props":1165,"children":1166},{"style":679},[1167],{"type":612,"value":1168},"\"Name: ",{"type":606,"tag":652,"props":1170,"children":1171},{"style":710},[1172],{"type":612,"value":733},{"type":606,"tag":652,"props":1174,"children":1175},{"style":667},[1176],{"type":612,"value":1177},"name",{"type":606,"tag":652,"props":1179,"children":1180},{"style":710},[1181],{"type":612,"value":743},{"type":606,"tag":652,"props":1183,"children":1184},{"style":679},[1185],{"type":612,"value":748},{"type":606,"tag":652,"props":1187,"children":1188},{"style":667},[1189],{"type":612,"value":753},{"type":606,"tag":652,"props":1191,"children":1192},{"class":654,"line":117},[1193,1197,1201,1205,1210,1214,1219,1223,1227],{"type":606,"tag":652,"props":1194,"children":1195},{"style":710},[1196],{"type":612,"value":713},{"type":606,"tag":652,"props":1198,"children":1199},{"style":667},[1200],{"type":612,"value":718},{"type":606,"tag":652,"props":1202,"children":1203},{"style":673},[1204],{"type":612,"value":723},{"type":606,"tag":652,"props":1206,"children":1207},{"style":679},[1208],{"type":612,"value":1209},"\"Details: ",{"type":606,"tag":652,"props":1211,"children":1212},{"style":710},[1213],{"type":612,"value":733},{"type":606,"tag":652,"props":1215,"children":1216},{"style":667},[1217],{"type":612,"value":1218},"details",{"type":606,"tag":652,"props":1220,"children":1221},{"style":710},[1222],{"type":612,"value":743},{"type":606,"tag":652,"props":1224,"children":1225},{"style":679},[1226],{"type":612,"value":748},{"type":606,"tag":652,"props":1228,"children":1229},{"style":667},[1230],{"type":612,"value":753},{"type":606,"tag":948,"props":1232,"children":1234},{"id":1233},"common-splitting-patterns",[1235],{"type":612,"value":1236},"Common Splitting Patterns",{"type":606,"tag":638,"props":1238,"children":1239},{},[1240],{"type":606,"tag":642,"props":1241,"children":1243},{"className":644,"code":1242,"language":646,"meta":8,"style":8},"# Common splitting scenarios\n# 1. Split by multiple spaces\ntext = \"Python    is    awesome\"\nwords = text.split()\nprint(f\"Words: {words}\")\n\n# 2. Split by newlines\npoem = \"\"\"Roses are red\nViolets are blue\nPython is fun\"\"\"\nlines = poem.split(\"\\n\")\nprint(f\"Lines: {lines}\")\n\n# 3. Split by multiple delimiters\ndata = \"name:John,age:30;city:NY\"\npairs = data.replace(\";\", \",\").split(\",\")\nprint(f\"Pairs: {pairs}\")\n",[1244],{"type":606,"tag":621,"props":1245,"children":1246},{"__ignoreMap":8},[1247,1255,1263,1279,1295,1334,1341,1349,1366,1374,1382,1416,1457,1464,1472,1489,1532],{"type":606,"tag":652,"props":1248,"children":1249},{"class":654,"line":12},[1250],{"type":606,"tag":652,"props":1251,"children":1252},{"style":658},[1253],{"type":612,"value":1254},"# Common splitting scenarios\n",{"type":606,"tag":652,"props":1256,"children":1257},{"class":654,"line":27},[1258],{"type":606,"tag":652,"props":1259,"children":1260},{"style":658},[1261],{"type":612,"value":1262},"# 1. Split by multiple spaces\n",{"type":606,"tag":652,"props":1264,"children":1265},{"class":654,"line":36},[1266,1270,1274],{"type":606,"tag":652,"props":1267,"children":1268},{"style":667},[1269],{"type":612,"value":979},{"type":606,"tag":652,"props":1271,"children":1272},{"style":673},[1273],{"type":612,"value":676},{"type":606,"tag":652,"props":1275,"children":1276},{"style":679},[1277],{"type":612,"value":1278}," \"Python    is    awesome\"\n",{"type":606,"tag":652,"props":1280,"children":1281},{"class":654,"line":45},[1282,1286,1290],{"type":606,"tag":652,"props":1283,"children":1284},{"style":667},[1285],{"type":612,"value":690},{"type":606,"tag":652,"props":1287,"children":1288},{"style":673},[1289],{"type":612,"value":676},{"type":606,"tag":652,"props":1291,"children":1292},{"style":667},[1293],{"type":612,"value":1294}," text.split()\n",{"type":606,"tag":652,"props":1296,"children":1297},{"class":654,"line":54},[1298,1302,1306,1310,1314,1318,1322,1326,1330],{"type":606,"tag":652,"props":1299,"children":1300},{"style":710},[1301],{"type":612,"value":713},{"type":606,"tag":652,"props":1303,"children":1304},{"style":667},[1305],{"type":612,"value":718},{"type":606,"tag":652,"props":1307,"children":1308},{"style":673},[1309],{"type":612,"value":723},{"type":606,"tag":652,"props":1311,"children":1312},{"style":679},[1313],{"type":612,"value":728},{"type":606,"tag":652,"props":1315,"children":1316},{"style":710},[1317],{"type":612,"value":733},{"type":606,"tag":652,"props":1319,"children":1320},{"style":667},[1321],{"type":612,"value":738},{"type":606,"tag":652,"props":1323,"children":1324},{"style":710},[1325],{"type":612,"value":743},{"type":606,"tag":652,"props":1327,"children":1328},{"style":679},[1329],{"type":612,"value":748},{"type":606,"tag":652,"props":1331,"children":1332},{"style":667},[1333],{"type":612,"value":753},{"type":606,"tag":652,"props":1335,"children":1336},{"class":654,"line":63},[1337],{"type":606,"tag":652,"props":1338,"children":1339},{"emptyLinePlaceholder":13},[1340],{"type":612,"value":761},{"type":606,"tag":652,"props":1342,"children":1343},{"class":654,"line":72},[1344],{"type":606,"tag":652,"props":1345,"children":1346},{"style":658},[1347],{"type":612,"value":1348},"# 2. Split by newlines\n",{"type":606,"tag":652,"props":1350,"children":1351},{"class":654,"line":81},[1352,1357,1361],{"type":606,"tag":652,"props":1353,"children":1354},{"style":667},[1355],{"type":612,"value":1356},"poem ",{"type":606,"tag":652,"props":1358,"children":1359},{"style":673},[1360],{"type":612,"value":676},{"type":606,"tag":652,"props":1362,"children":1363},{"style":679},[1364],{"type":612,"value":1365}," \"\"\"Roses are red\n",{"type":606,"tag":652,"props":1367,"children":1368},{"class":654,"line":1097},[1369],{"type":606,"tag":652,"props":1370,"children":1371},{"style":679},[1372],{"type":612,"value":1373},"Violets are blue\n",{"type":606,"tag":652,"props":1375,"children":1376},{"class":654,"line":99},[1377],{"type":606,"tag":652,"props":1378,"children":1379},{"style":679},[1380],{"type":612,"value":1381},"Python is fun\"\"\"\n",{"type":606,"tag":652,"props":1383,"children":1384},{"class":654,"line":108},[1385,1390,1394,1399,1403,1408,1412],{"type":606,"tag":652,"props":1386,"children":1387},{"style":667},[1388],{"type":612,"value":1389},"lines ",{"type":606,"tag":652,"props":1391,"children":1392},{"style":673},[1393],{"type":612,"value":676},{"type":606,"tag":652,"props":1395,"children":1396},{"style":667},[1397],{"type":612,"value":1398}," poem.split(",{"type":606,"tag":652,"props":1400,"children":1401},{"style":679},[1402],{"type":612,"value":748},{"type":606,"tag":652,"props":1404,"children":1405},{"style":710},[1406],{"type":612,"value":1407},"\\n",{"type":606,"tag":652,"props":1409,"children":1410},{"style":679},[1411],{"type":612,"value":748},{"type":606,"tag":652,"props":1413,"children":1414},{"style":667},[1415],{"type":612,"value":753},{"type":606,"tag":652,"props":1417,"children":1418},{"class":654,"line":117},[1419,1423,1427,1431,1436,1440,1445,1449,1453],{"type":606,"tag":652,"props":1420,"children":1421},{"style":710},[1422],{"type":612,"value":713},{"type":606,"tag":652,"props":1424,"children":1425},{"style":667},[1426],{"type":612,"value":718},{"type":606,"tag":652,"props":1428,"children":1429},{"style":673},[1430],{"type":612,"value":723},{"type":606,"tag":652,"props":1432,"children":1433},{"style":679},[1434],{"type":612,"value":1435},"\"Lines: ",{"type":606,"tag":652,"props":1437,"children":1438},{"style":710},[1439],{"type":612,"value":733},{"type":606,"tag":652,"props":1441,"children":1442},{"style":667},[1443],{"type":612,"value":1444},"lines",{"type":606,"tag":652,"props":1446,"children":1447},{"style":710},[1448],{"type":612,"value":743},{"type":606,"tag":652,"props":1450,"children":1451},{"style":679},[1452],{"type":612,"value":748},{"type":606,"tag":652,"props":1454,"children":1455},{"style":667},[1456],{"type":612,"value":753},{"type":606,"tag":652,"props":1458,"children":1459},{"class":654,"line":126},[1460],{"type":606,"tag":652,"props":1461,"children":1462},{"emptyLinePlaceholder":13},[1463],{"type":612,"value":761},{"type":606,"tag":652,"props":1465,"children":1466},{"class":654,"line":135},[1467],{"type":606,"tag":652,"props":1468,"children":1469},{"style":658},[1470],{"type":612,"value":1471},"# 3. Split by multiple delimiters\n",{"type":606,"tag":652,"props":1473,"children":1474},{"class":654,"line":144},[1475,1480,1484],{"type":606,"tag":652,"props":1476,"children":1477},{"style":667},[1478],{"type":612,"value":1479},"data ",{"type":606,"tag":652,"props":1481,"children":1482},{"style":673},[1483],{"type":612,"value":676},{"type":606,"tag":652,"props":1485,"children":1486},{"style":679},[1487],{"type":612,"value":1488}," \"name:John,age:30;city:NY\"\n",{"type":606,"tag":652,"props":1490,"children":1491},{"class":654,"line":153},[1492,1497,1501,1506,1511,1515,1519,1524,1528],{"type":606,"tag":652,"props":1493,"children":1494},{"style":667},[1495],{"type":612,"value":1496},"pairs ",{"type":606,"tag":652,"props":1498,"children":1499},{"style":673},[1500],{"type":612,"value":676},{"type":606,"tag":652,"props":1502,"children":1503},{"style":667},[1504],{"type":612,"value":1505}," data.replace(",{"type":606,"tag":652,"props":1507,"children":1508},{"style":679},[1509],{"type":612,"value":1510},"\";\"",{"type":606,"tag":652,"props":1512,"children":1513},{"style":667},[1514],{"type":612,"value":1139},{"type":606,"tag":652,"props":1516,"children":1517},{"style":679},[1518],{"type":612,"value":1042},{"type":606,"tag":652,"props":1520,"children":1521},{"style":667},[1522],{"type":612,"value":1523},").split(",{"type":606,"tag":652,"props":1525,"children":1526},{"style":679},[1527],{"type":612,"value":1042},{"type":606,"tag":652,"props":1529,"children":1530},{"style":667},[1531],{"type":612,"value":753},{"type":606,"tag":652,"props":1533,"children":1534},{"class":654,"line":163},[1535,1539,1543,1547,1552,1556,1561,1565,1569],{"type":606,"tag":652,"props":1536,"children":1537},{"style":710},[1538],{"type":612,"value":713},{"type":606,"tag":652,"props":1540,"children":1541},{"style":667},[1542],{"type":612,"value":718},{"type":606,"tag":652,"props":1544,"children":1545},{"style":673},[1546],{"type":612,"value":723},{"type":606,"tag":652,"props":1548,"children":1549},{"style":679},[1550],{"type":612,"value":1551},"\"Pairs: ",{"type":606,"tag":652,"props":1553,"children":1554},{"style":710},[1555],{"type":612,"value":733},{"type":606,"tag":652,"props":1557,"children":1558},{"style":667},[1559],{"type":612,"value":1560},"pairs",{"type":606,"tag":652,"props":1562,"children":1563},{"style":710},[1564],{"type":612,"value":743},{"type":606,"tag":652,"props":1566,"children":1567},{"style":679},[1568],{"type":612,"value":748},{"type":606,"tag":652,"props":1570,"children":1571},{"style":667},[1572],{"type":612,"value":753},{"type":606,"tag":834,"props":1574,"children":1576},{"id":1575},"joining-strings",[1577],{"type":612,"value":1578},"🎨 Joining Strings",{"type":606,"tag":615,"props":1580,"children":1581},{},[1582,1583,1588],{"type":612,"value":844},{"type":606,"tag":621,"props":1584,"children":1586},{"className":1585},[],[1587],{"type":612,"value":634},{"type":612,"value":1589}," method combines a list of strings into a single string, using the string it's called on as the separator.",{"type":606,"tag":853,"props":1591,"children":1595},{"emoji":1592,"title":1593,"type":1594},"🔗","Join Method Basics","success",[1596,1610,1634],{"type":606,"tag":615,"props":1597,"children":1598},{},[1599,1603,1604],{"type":606,"tag":863,"props":1600,"children":1601},{},[1602],{"type":612,"value":867},{"type":612,"value":869},{"type":606,"tag":621,"props":1605,"children":1607},{"className":1606},[],[1608],{"type":612,"value":1609},"separator.join(iterable)",{"type":606,"tag":877,"props":1611,"children":1612},{},[1613,1623],{"type":606,"tag":881,"props":1614,"children":1615},{},[1616,1621],{"type":606,"tag":621,"props":1617,"children":1619},{"className":1618},[],[1620],{"type":612,"value":889},{"type":612,"value":1622},": String to insert between items",{"type":606,"tag":881,"props":1624,"children":1625},{},[1626,1632],{"type":606,"tag":621,"props":1627,"children":1629},{"className":1628},[],[1630],{"type":612,"value":1631},"iterable",{"type":612,"value":1633},": List or other sequence of strings",{"type":606,"tag":615,"props":1635,"children":1636},{},[1637,1642],{"type":606,"tag":863,"props":1638,"children":1639},{},[1640],{"type":612,"value":1641},"Remember:",{"type":612,"value":1643}," All items must be strings!",{"type":606,"tag":948,"props":1645,"children":1647},{"id":1646},"basic-joining-examples",[1648],{"type":612,"value":1649},"Basic Joining Examples",{"type":606,"tag":638,"props":1651,"children":1652},{},[1653],{"type":606,"tag":642,"props":1654,"children":1656},{"className":644,"code":1655,"language":646,"meta":8,"style":8},"# Different ways to join strings\nwords = [\"Python\", \"is\", \"awesome\"]\n\n# Join with space\nsentence = \" \".join(words)\nprint(f\"With spaces: {sentence}\")\n\n# Join with comma\ncsv_line = \",\".join(words)\nprint(f\"CSV format: {csv_line}\")\n\n# Join with no separator\ncombined = \"\".join(words)\nprint(f\"Combined: {combined}\")\n",[1657],{"type":606,"tag":621,"props":1658,"children":1659},{"__ignoreMap":8},[1660,1668,1712,1719,1727,1746,1787,1794,1802,1822,1863,1870,1878,1899],{"type":606,"tag":652,"props":1661,"children":1662},{"class":654,"line":12},[1663],{"type":606,"tag":652,"props":1664,"children":1665},{"style":658},[1666],{"type":612,"value":1667},"# Different ways to join strings\n",{"type":606,"tag":652,"props":1669,"children":1670},{"class":654,"line":27},[1671,1675,1679,1684,1689,1693,1698,1702,1707],{"type":606,"tag":652,"props":1672,"children":1673},{"style":667},[1674],{"type":612,"value":690},{"type":606,"tag":652,"props":1676,"children":1677},{"style":673},[1678],{"type":612,"value":676},{"type":606,"tag":652,"props":1680,"children":1681},{"style":667},[1682],{"type":612,"value":1683}," [",{"type":606,"tag":652,"props":1685,"children":1686},{"style":679},[1687],{"type":612,"value":1688},"\"Python\"",{"type":606,"tag":652,"props":1690,"children":1691},{"style":667},[1692],{"type":612,"value":1139},{"type":606,"tag":652,"props":1694,"children":1695},{"style":679},[1696],{"type":612,"value":1697},"\"is\"",{"type":606,"tag":652,"props":1699,"children":1700},{"style":667},[1701],{"type":612,"value":1139},{"type":606,"tag":652,"props":1703,"children":1704},{"style":679},[1705],{"type":612,"value":1706},"\"awesome\"",{"type":606,"tag":652,"props":1708,"children":1709},{"style":667},[1710],{"type":612,"value":1711},"]\n",{"type":606,"tag":652,"props":1713,"children":1714},{"class":654,"line":36},[1715],{"type":606,"tag":652,"props":1716,"children":1717},{"emptyLinePlaceholder":13},[1718],{"type":612,"value":761},{"type":606,"tag":652,"props":1720,"children":1721},{"class":654,"line":45},[1722],{"type":606,"tag":652,"props":1723,"children":1724},{"style":658},[1725],{"type":612,"value":1726},"# Join with space\n",{"type":606,"tag":652,"props":1728,"children":1729},{"class":654,"line":54},[1730,1734,1738,1742],{"type":606,"tag":652,"props":1731,"children":1732},{"style":667},[1733],{"type":612,"value":670},{"type":606,"tag":652,"props":1735,"children":1736},{"style":673},[1737],{"type":612,"value":676},{"type":606,"tag":652,"props":1739,"children":1740},{"style":679},[1741],{"type":612,"value":786},{"type":606,"tag":652,"props":1743,"children":1744},{"style":667},[1745],{"type":612,"value":791},{"type":606,"tag":652,"props":1747,"children":1748},{"class":654,"line":63},[1749,1753,1757,1761,1766,1770,1775,1779,1783],{"type":606,"tag":652,"props":1750,"children":1751},{"style":710},[1752],{"type":612,"value":713},{"type":606,"tag":652,"props":1754,"children":1755},{"style":667},[1756],{"type":612,"value":718},{"type":606,"tag":652,"props":1758,"children":1759},{"style":673},[1760],{"type":612,"value":723},{"type":606,"tag":652,"props":1762,"children":1763},{"style":679},[1764],{"type":612,"value":1765},"\"With spaces: ",{"type":606,"tag":652,"props":1767,"children":1768},{"style":710},[1769],{"type":612,"value":733},{"type":606,"tag":652,"props":1771,"children":1772},{"style":667},[1773],{"type":612,"value":1774},"sentence",{"type":606,"tag":652,"props":1776,"children":1777},{"style":710},[1778],{"type":612,"value":743},{"type":606,"tag":652,"props":1780,"children":1781},{"style":679},[1782],{"type":612,"value":748},{"type":606,"tag":652,"props":1784,"children":1785},{"style":667},[1786],{"type":612,"value":753},{"type":606,"tag":652,"props":1788,"children":1789},{"class":654,"line":72},[1790],{"type":606,"tag":652,"props":1791,"children":1792},{"emptyLinePlaceholder":13},[1793],{"type":612,"value":761},{"type":606,"tag":652,"props":1795,"children":1796},{"class":654,"line":81},[1797],{"type":606,"tag":652,"props":1798,"children":1799},{"style":658},[1800],{"type":612,"value":1801},"# Join with comma\n",{"type":606,"tag":652,"props":1803,"children":1804},{"class":654,"line":1097},[1805,1809,1813,1818],{"type":606,"tag":652,"props":1806,"children":1807},{"style":667},[1808],{"type":612,"value":996},{"type":606,"tag":652,"props":1810,"children":1811},{"style":673},[1812],{"type":612,"value":676},{"type":606,"tag":652,"props":1814,"children":1815},{"style":679},[1816],{"type":612,"value":1817}," \",\"",{"type":606,"tag":652,"props":1819,"children":1820},{"style":667},[1821],{"type":612,"value":791},{"type":606,"tag":652,"props":1823,"children":1824},{"class":654,"line":99},[1825,1829,1833,1837,1842,1846,1851,1855,1859],{"type":606,"tag":652,"props":1826,"children":1827},{"style":710},[1828],{"type":612,"value":713},{"type":606,"tag":652,"props":1830,"children":1831},{"style":667},[1832],{"type":612,"value":718},{"type":606,"tag":652,"props":1834,"children":1835},{"style":673},[1836],{"type":612,"value":723},{"type":606,"tag":652,"props":1838,"children":1839},{"style":679},[1840],{"type":612,"value":1841},"\"CSV format: ",{"type":606,"tag":652,"props":1843,"children":1844},{"style":710},[1845],{"type":612,"value":733},{"type":606,"tag":652,"props":1847,"children":1848},{"style":667},[1849],{"type":612,"value":1850},"csv_line",{"type":606,"tag":652,"props":1852,"children":1853},{"style":710},[1854],{"type":612,"value":743},{"type":606,"tag":652,"props":1856,"children":1857},{"style":679},[1858],{"type":612,"value":748},{"type":606,"tag":652,"props":1860,"children":1861},{"style":667},[1862],{"type":612,"value":753},{"type":606,"tag":652,"props":1864,"children":1865},{"class":654,"line":108},[1866],{"type":606,"tag":652,"props":1867,"children":1868},{"emptyLinePlaceholder":13},[1869],{"type":612,"value":761},{"type":606,"tag":652,"props":1871,"children":1872},{"class":654,"line":117},[1873],{"type":606,"tag":652,"props":1874,"children":1875},{"style":658},[1876],{"type":612,"value":1877},"# Join with no separator\n",{"type":606,"tag":652,"props":1879,"children":1880},{"class":654,"line":126},[1881,1886,1890,1895],{"type":606,"tag":652,"props":1882,"children":1883},{"style":667},[1884],{"type":612,"value":1885},"combined ",{"type":606,"tag":652,"props":1887,"children":1888},{"style":673},[1889],{"type":612,"value":676},{"type":606,"tag":652,"props":1891,"children":1892},{"style":679},[1893],{"type":612,"value":1894}," \"\"",{"type":606,"tag":652,"props":1896,"children":1897},{"style":667},[1898],{"type":612,"value":791},{"type":606,"tag":652,"props":1900,"children":1901},{"class":654,"line":135},[1902,1906,1910,1914,1919,1923,1928,1932,1936],{"type":606,"tag":652,"props":1903,"children":1904},{"style":710},[1905],{"type":612,"value":713},{"type":606,"tag":652,"props":1907,"children":1908},{"style":667},[1909],{"type":612,"value":718},{"type":606,"tag":652,"props":1911,"children":1912},{"style":673},[1913],{"type":612,"value":723},{"type":606,"tag":652,"props":1915,"children":1916},{"style":679},[1917],{"type":612,"value":1918},"\"Combined: ",{"type":606,"tag":652,"props":1920,"children":1921},{"style":710},[1922],{"type":612,"value":733},{"type":606,"tag":652,"props":1924,"children":1925},{"style":667},[1926],{"type":612,"value":1927},"combined",{"type":606,"tag":652,"props":1929,"children":1930},{"style":710},[1931],{"type":612,"value":743},{"type":606,"tag":652,"props":1933,"children":1934},{"style":679},[1935],{"type":612,"value":748},{"type":606,"tag":652,"props":1937,"children":1938},{"style":667},[1939],{"type":612,"value":753},{"type":606,"tag":948,"props":1941,"children":1943},{"id":1942},"practical-applications",[1944],{"type":612,"value":1945},"Practical Applications",{"type":606,"tag":638,"props":1947,"children":1948},{},[1949],{"type":606,"tag":642,"props":1950,"children":1952},{"className":644,"code":1951,"language":646,"meta":8,"style":8},"# Real-world examples\n# 1. Building a file path\nparts = [\"home\", \"user\", \"documents\", \"file.txt\"]\npath = \"/\".join(parts)\nprint(f\"Path: {path}\")\n\n# 2. Creating a CSV line\ndata = [\"John\", \"30\", \"New York\"]\ncsv_line = \",\".join(data)\nprint(f\"CSV: {csv_line}\")\n\n# 3. Building a URL\nurl_parts = [\"https:\", \"\", \"example.com\", \"api\", \"users\"]\nurl = \"/\".join(url_parts)\nprint(f\"URL: {url}\")\n",[1953],{"type":606,"tag":621,"props":1954,"children":1955},{"__ignoreMap":8},[1956,1964,1972,2024,2046,2087,2094,2102,2144,2164,2204,2211,2219,2280,2301],{"type":606,"tag":652,"props":1957,"children":1958},{"class":654,"line":12},[1959],{"type":606,"tag":652,"props":1960,"children":1961},{"style":658},[1962],{"type":612,"value":1963},"# Real-world examples\n",{"type":606,"tag":652,"props":1965,"children":1966},{"class":654,"line":27},[1967],{"type":606,"tag":652,"props":1968,"children":1969},{"style":658},[1970],{"type":612,"value":1971},"# 1. Building a file path\n",{"type":606,"tag":652,"props":1973,"children":1974},{"class":654,"line":36},[1975,1980,1984,1988,1993,1997,2002,2006,2011,2015,2020],{"type":606,"tag":652,"props":1976,"children":1977},{"style":667},[1978],{"type":612,"value":1979},"parts ",{"type":606,"tag":652,"props":1981,"children":1982},{"style":673},[1983],{"type":612,"value":676},{"type":606,"tag":652,"props":1985,"children":1986},{"style":667},[1987],{"type":612,"value":1683},{"type":606,"tag":652,"props":1989,"children":1990},{"style":679},[1991],{"type":612,"value":1992},"\"home\"",{"type":606,"tag":652,"props":1994,"children":1995},{"style":667},[1996],{"type":612,"value":1139},{"type":606,"tag":652,"props":1998,"children":1999},{"style":679},[2000],{"type":612,"value":2001},"\"user\"",{"type":606,"tag":652,"props":2003,"children":2004},{"style":667},[2005],{"type":612,"value":1139},{"type":606,"tag":652,"props":2007,"children":2008},{"style":679},[2009],{"type":612,"value":2010},"\"documents\"",{"type":606,"tag":652,"props":2012,"children":2013},{"style":667},[2014],{"type":612,"value":1139},{"type":606,"tag":652,"props":2016,"children":2017},{"style":679},[2018],{"type":612,"value":2019},"\"file.txt\"",{"type":606,"tag":652,"props":2021,"children":2022},{"style":667},[2023],{"type":612,"value":1711},{"type":606,"tag":652,"props":2025,"children":2026},{"class":654,"line":45},[2027,2032,2036,2041],{"type":606,"tag":652,"props":2028,"children":2029},{"style":667},[2030],{"type":612,"value":2031},"path ",{"type":606,"tag":652,"props":2033,"children":2034},{"style":673},[2035],{"type":612,"value":676},{"type":606,"tag":652,"props":2037,"children":2038},{"style":679},[2039],{"type":612,"value":2040}," \"/\"",{"type":606,"tag":652,"props":2042,"children":2043},{"style":667},[2044],{"type":612,"value":2045},".join(parts)\n",{"type":606,"tag":652,"props":2047,"children":2048},{"class":654,"line":54},[2049,2053,2057,2061,2066,2070,2075,2079,2083],{"type":606,"tag":652,"props":2050,"children":2051},{"style":710},[2052],{"type":612,"value":713},{"type":606,"tag":652,"props":2054,"children":2055},{"style":667},[2056],{"type":612,"value":718},{"type":606,"tag":652,"props":2058,"children":2059},{"style":673},[2060],{"type":612,"value":723},{"type":606,"tag":652,"props":2062,"children":2063},{"style":679},[2064],{"type":612,"value":2065},"\"Path: ",{"type":606,"tag":652,"props":2067,"children":2068},{"style":710},[2069],{"type":612,"value":733},{"type":606,"tag":652,"props":2071,"children":2072},{"style":667},[2073],{"type":612,"value":2074},"path",{"type":606,"tag":652,"props":2076,"children":2077},{"style":710},[2078],{"type":612,"value":743},{"type":606,"tag":652,"props":2080,"children":2081},{"style":679},[2082],{"type":612,"value":748},{"type":606,"tag":652,"props":2084,"children":2085},{"style":667},[2086],{"type":612,"value":753},{"type":606,"tag":652,"props":2088,"children":2089},{"class":654,"line":63},[2090],{"type":606,"tag":652,"props":2091,"children":2092},{"emptyLinePlaceholder":13},[2093],{"type":612,"value":761},{"type":606,"tag":652,"props":2095,"children":2096},{"class":654,"line":72},[2097],{"type":606,"tag":652,"props":2098,"children":2099},{"style":658},[2100],{"type":612,"value":2101},"# 2. Creating a CSV line\n",{"type":606,"tag":652,"props":2103,"children":2104},{"class":654,"line":81},[2105,2109,2113,2117,2122,2126,2131,2135,2140],{"type":606,"tag":652,"props":2106,"children":2107},{"style":667},[2108],{"type":612,"value":1479},{"type":606,"tag":652,"props":2110,"children":2111},{"style":673},[2112],{"type":612,"value":676},{"type":606,"tag":652,"props":2114,"children":2115},{"style":667},[2116],{"type":612,"value":1683},{"type":606,"tag":652,"props":2118,"children":2119},{"style":679},[2120],{"type":612,"value":2121},"\"John\"",{"type":606,"tag":652,"props":2123,"children":2124},{"style":667},[2125],{"type":612,"value":1139},{"type":606,"tag":652,"props":2127,"children":2128},{"style":679},[2129],{"type":612,"value":2130},"\"30\"",{"type":606,"tag":652,"props":2132,"children":2133},{"style":667},[2134],{"type":612,"value":1139},{"type":606,"tag":652,"props":2136,"children":2137},{"style":679},[2138],{"type":612,"value":2139},"\"New York\"",{"type":606,"tag":652,"props":2141,"children":2142},{"style":667},[2143],{"type":612,"value":1711},{"type":606,"tag":652,"props":2145,"children":2146},{"class":654,"line":1097},[2147,2151,2155,2159],{"type":606,"tag":652,"props":2148,"children":2149},{"style":667},[2150],{"type":612,"value":996},{"type":606,"tag":652,"props":2152,"children":2153},{"style":673},[2154],{"type":612,"value":676},{"type":606,"tag":652,"props":2156,"children":2157},{"style":679},[2158],{"type":612,"value":1817},{"type":606,"tag":652,"props":2160,"children":2161},{"style":667},[2162],{"type":612,"value":2163},".join(data)\n",{"type":606,"tag":652,"props":2165,"children":2166},{"class":654,"line":99},[2167,2171,2175,2179,2184,2188,2192,2196,2200],{"type":606,"tag":652,"props":2168,"children":2169},{"style":710},[2170],{"type":612,"value":713},{"type":606,"tag":652,"props":2172,"children":2173},{"style":667},[2174],{"type":612,"value":718},{"type":606,"tag":652,"props":2176,"children":2177},{"style":673},[2178],{"type":612,"value":723},{"type":606,"tag":652,"props":2180,"children":2181},{"style":679},[2182],{"type":612,"value":2183},"\"CSV: ",{"type":606,"tag":652,"props":2185,"children":2186},{"style":710},[2187],{"type":612,"value":733},{"type":606,"tag":652,"props":2189,"children":2190},{"style":667},[2191],{"type":612,"value":1850},{"type":606,"tag":652,"props":2193,"children":2194},{"style":710},[2195],{"type":612,"value":743},{"type":606,"tag":652,"props":2197,"children":2198},{"style":679},[2199],{"type":612,"value":748},{"type":606,"tag":652,"props":2201,"children":2202},{"style":667},[2203],{"type":612,"value":753},{"type":606,"tag":652,"props":2205,"children":2206},{"class":654,"line":108},[2207],{"type":606,"tag":652,"props":2208,"children":2209},{"emptyLinePlaceholder":13},[2210],{"type":612,"value":761},{"type":606,"tag":652,"props":2212,"children":2213},{"class":654,"line":117},[2214],{"type":606,"tag":652,"props":2215,"children":2216},{"style":658},[2217],{"type":612,"value":2218},"# 3. Building a URL\n",{"type":606,"tag":652,"props":2220,"children":2221},{"class":654,"line":126},[2222,2227,2231,2235,2240,2244,2249,2253,2258,2262,2267,2271,2276],{"type":606,"tag":652,"props":2223,"children":2224},{"style":667},[2225],{"type":612,"value":2226},"url_parts ",{"type":606,"tag":652,"props":2228,"children":2229},{"style":673},[2230],{"type":612,"value":676},{"type":606,"tag":652,"props":2232,"children":2233},{"style":667},[2234],{"type":612,"value":1683},{"type":606,"tag":652,"props":2236,"children":2237},{"style":679},[2238],{"type":612,"value":2239},"\"https:\"",{"type":606,"tag":652,"props":2241,"children":2242},{"style":667},[2243],{"type":612,"value":1139},{"type":606,"tag":652,"props":2245,"children":2246},{"style":679},[2247],{"type":612,"value":2248},"\"\"",{"type":606,"tag":652,"props":2250,"children":2251},{"style":667},[2252],{"type":612,"value":1139},{"type":606,"tag":652,"props":2254,"children":2255},{"style":679},[2256],{"type":612,"value":2257},"\"example.com\"",{"type":606,"tag":652,"props":2259,"children":2260},{"style":667},[2261],{"type":612,"value":1139},{"type":606,"tag":652,"props":2263,"children":2264},{"style":679},[2265],{"type":612,"value":2266},"\"api\"",{"type":606,"tag":652,"props":2268,"children":2269},{"style":667},[2270],{"type":612,"value":1139},{"type":606,"tag":652,"props":2272,"children":2273},{"style":679},[2274],{"type":612,"value":2275},"\"users\"",{"type":606,"tag":652,"props":2277,"children":2278},{"style":667},[2279],{"type":612,"value":1711},{"type":606,"tag":652,"props":2281,"children":2282},{"class":654,"line":135},[2283,2288,2292,2296],{"type":606,"tag":652,"props":2284,"children":2285},{"style":667},[2286],{"type":612,"value":2287},"url ",{"type":606,"tag":652,"props":2289,"children":2290},{"style":673},[2291],{"type":612,"value":676},{"type":606,"tag":652,"props":2293,"children":2294},{"style":679},[2295],{"type":612,"value":2040},{"type":606,"tag":652,"props":2297,"children":2298},{"style":667},[2299],{"type":612,"value":2300},".join(url_parts)\n",{"type":606,"tag":652,"props":2302,"children":2303},{"class":654,"line":144},[2304,2308,2312,2316,2321,2325,2330,2334,2338],{"type":606,"tag":652,"props":2305,"children":2306},{"style":710},[2307],{"type":612,"value":713},{"type":606,"tag":652,"props":2309,"children":2310},{"style":667},[2311],{"type":612,"value":718},{"type":606,"tag":652,"props":2313,"children":2314},{"style":673},[2315],{"type":612,"value":723},{"type":606,"tag":652,"props":2317,"children":2318},{"style":679},[2319],{"type":612,"value":2320},"\"URL: ",{"type":606,"tag":652,"props":2322,"children":2323},{"style":710},[2324],{"type":612,"value":733},{"type":606,"tag":652,"props":2326,"children":2327},{"style":667},[2328],{"type":612,"value":2329},"url",{"type":606,"tag":652,"props":2331,"children":2332},{"style":710},[2333],{"type":612,"value":743},{"type":606,"tag":652,"props":2335,"children":2336},{"style":679},[2337],{"type":612,"value":748},{"type":606,"tag":652,"props":2339,"children":2340},{"style":667},[2341],{"type":612,"value":753},{"type":606,"tag":834,"props":2343,"children":2345},{"id":2344},"quick-practice",[2346],{"type":612,"value":2347},"📝 Quick Practice",{"type":606,"tag":615,"props":2349,"children":2350},{},[2351],{"type":612,"value":2352},"Let's practice splitting and joining strings with a simple exercise!",{"type":606,"tag":2354,"props":2355,"children":2358},"exercise",{"hint":2356,"prompt":2357},"Try splitting by comma, cleaning each name, then joining back together!","Clean and format a messy string of names.",[2359],{"type":606,"tag":642,"props":2360,"children":2362},{"className":644,"code":2361,"language":646,"meta":8,"style":8},"# String Practice\nmessy_names = \"john,  mary,  alex  , sarah\"\n\n# TODO: Clean and format the names\n# 1. Split the string by comma\n# 2. Clean each name (remove spaces, capitalize)\n# 3. Join back with comma and space\n\n# Print the result\nprint(f\"Cleaned names: {cleaned_names}\")\n",[2363],{"type":606,"tag":621,"props":2364,"children":2365},{"__ignoreMap":8},[2366,2374,2391,2398,2416,2424,2432,2440,2447,2455],{"type":606,"tag":652,"props":2367,"children":2368},{"class":654,"line":12},[2369],{"type":606,"tag":652,"props":2370,"children":2371},{"style":658},[2372],{"type":612,"value":2373},"# String Practice\n",{"type":606,"tag":652,"props":2375,"children":2376},{"class":654,"line":27},[2377,2382,2386],{"type":606,"tag":652,"props":2378,"children":2379},{"style":667},[2380],{"type":612,"value":2381},"messy_names ",{"type":606,"tag":652,"props":2383,"children":2384},{"style":673},[2385],{"type":612,"value":676},{"type":606,"tag":652,"props":2387,"children":2388},{"style":679},[2389],{"type":612,"value":2390}," \"john,  mary,  alex  , sarah\"\n",{"type":606,"tag":652,"props":2392,"children":2393},{"class":654,"line":36},[2394],{"type":606,"tag":652,"props":2395,"children":2396},{"emptyLinePlaceholder":13},[2397],{"type":612,"value":761},{"type":606,"tag":652,"props":2399,"children":2400},{"class":654,"line":45},[2401,2406,2411],{"type":606,"tag":652,"props":2402,"children":2403},{"style":658},[2404],{"type":612,"value":2405},"# ",{"type":606,"tag":652,"props":2407,"children":2408},{"style":673},[2409],{"type":612,"value":2410},"TODO",{"type":606,"tag":652,"props":2412,"children":2413},{"style":658},[2414],{"type":612,"value":2415},": Clean and format the names\n",{"type":606,"tag":652,"props":2417,"children":2418},{"class":654,"line":54},[2419],{"type":606,"tag":652,"props":2420,"children":2421},{"style":658},[2422],{"type":612,"value":2423},"# 1. Split the string by comma\n",{"type":606,"tag":652,"props":2425,"children":2426},{"class":654,"line":63},[2427],{"type":606,"tag":652,"props":2428,"children":2429},{"style":658},[2430],{"type":612,"value":2431},"# 2. Clean each name (remove spaces, capitalize)\n",{"type":606,"tag":652,"props":2433,"children":2434},{"class":654,"line":72},[2435],{"type":606,"tag":652,"props":2436,"children":2437},{"style":658},[2438],{"type":612,"value":2439},"# 3. Join back with comma and space\n",{"type":606,"tag":652,"props":2441,"children":2442},{"class":654,"line":81},[2443],{"type":606,"tag":652,"props":2444,"children":2445},{"emptyLinePlaceholder":13},[2446],{"type":612,"value":761},{"type":606,"tag":652,"props":2448,"children":2449},{"class":654,"line":1097},[2450],{"type":606,"tag":652,"props":2451,"children":2452},{"style":658},[2453],{"type":612,"value":2454},"# Print the result\n",{"type":606,"tag":652,"props":2456,"children":2457},{"class":654,"line":99},[2458,2462,2466,2470,2475,2479,2484,2488,2492],{"type":606,"tag":652,"props":2459,"children":2460},{"style":710},[2461],{"type":612,"value":713},{"type":606,"tag":652,"props":2463,"children":2464},{"style":667},[2465],{"type":612,"value":718},{"type":606,"tag":652,"props":2467,"children":2468},{"style":673},[2469],{"type":612,"value":723},{"type":606,"tag":652,"props":2471,"children":2472},{"style":679},[2473],{"type":612,"value":2474},"\"Cleaned names: ",{"type":606,"tag":652,"props":2476,"children":2477},{"style":710},[2478],{"type":612,"value":733},{"type":606,"tag":652,"props":2480,"children":2481},{"style":667},[2482],{"type":612,"value":2483},"cleaned_names",{"type":606,"tag":652,"props":2485,"children":2486},{"style":710},[2487],{"type":612,"value":743},{"type":606,"tag":652,"props":2489,"children":2490},{"style":679},[2491],{"type":612,"value":748},{"type":606,"tag":652,"props":2493,"children":2494},{"style":667},[2495],{"type":612,"value":753},{"type":606,"tag":948,"props":2497,"children":2499},{"id":2498},"solution-and-explanation",[2500],{"type":612,"value":2501},"Solution and Explanation 💡",{"type":606,"tag":1218,"props":2503,"children":2504},{},[2505,2513,2721,2729],{"type":606,"tag":2506,"props":2507,"children":2510},"summary",{"className":2508},[2509],"cursor-pointer",[2511],{"type":612,"value":2512},"Click to see the solution",{"type":606,"tag":638,"props":2514,"children":2515},{},[2516],{"type":606,"tag":642,"props":2517,"children":2519},{"className":644,"code":2518,"language":646,"meta":8,"style":8},"# String Practice Solution\nmessy_names = \"john,  mary,  alex  , sarah\"\n\n# Split by comma\nnames = messy_names.split(\",\")\n\n# Clean each name\ncleaned_names = [name.strip().title() for name in names]\n\n# Join back with comma and space\nresult = \", \".join(cleaned_names)\n\nprint(f\"Cleaned names: {result}\")\n",[2520],{"type":606,"tag":621,"props":2521,"children":2522},{"__ignoreMap":8},[2523,2531,2546,2553,2560,2585,2592,2600,2637,2644,2652,2674,2681],{"type":606,"tag":652,"props":2524,"children":2525},{"class":654,"line":12},[2526],{"type":606,"tag":652,"props":2527,"children":2528},{"style":658},[2529],{"type":612,"value":2530},"# String Practice Solution\n",{"type":606,"tag":652,"props":2532,"children":2533},{"class":654,"line":27},[2534,2538,2542],{"type":606,"tag":652,"props":2535,"children":2536},{"style":667},[2537],{"type":612,"value":2381},{"type":606,"tag":652,"props":2539,"children":2540},{"style":673},[2541],{"type":612,"value":676},{"type":606,"tag":652,"props":2543,"children":2544},{"style":679},[2545],{"type":612,"value":2390},{"type":606,"tag":652,"props":2547,"children":2548},{"class":654,"line":36},[2549],{"type":606,"tag":652,"props":2550,"children":2551},{"emptyLinePlaceholder":13},[2552],{"type":612,"value":761},{"type":606,"tag":652,"props":2554,"children":2555},{"class":654,"line":45},[2556],{"type":606,"tag":652,"props":2557,"children":2558},{"style":658},[2559],{"type":612,"value":1020},{"type":606,"tag":652,"props":2561,"children":2562},{"class":654,"line":54},[2563,2568,2572,2577,2581],{"type":606,"tag":652,"props":2564,"children":2565},{"style":667},[2566],{"type":612,"value":2567},"names ",{"type":606,"tag":652,"props":2569,"children":2570},{"style":673},[2571],{"type":612,"value":676},{"type":606,"tag":652,"props":2573,"children":2574},{"style":667},[2575],{"type":612,"value":2576}," messy_names.split(",{"type":606,"tag":652,"props":2578,"children":2579},{"style":679},[2580],{"type":612,"value":1042},{"type":606,"tag":652,"props":2582,"children":2583},{"style":667},[2584],{"type":612,"value":753},{"type":606,"tag":652,"props":2586,"children":2587},{"class":654,"line":63},[2588],{"type":606,"tag":652,"props":2589,"children":2590},{"emptyLinePlaceholder":13},[2591],{"type":612,"value":761},{"type":606,"tag":652,"props":2593,"children":2594},{"class":654,"line":72},[2595],{"type":606,"tag":652,"props":2596,"children":2597},{"style":658},[2598],{"type":612,"value":2599},"# Clean each name\n",{"type":606,"tag":652,"props":2601,"children":2602},{"class":654,"line":81},[2603,2608,2612,2617,2622,2627,2632],{"type":606,"tag":652,"props":2604,"children":2605},{"style":667},[2606],{"type":612,"value":2607},"cleaned_names ",{"type":606,"tag":652,"props":2609,"children":2610},{"style":673},[2611],{"type":612,"value":676},{"type":606,"tag":652,"props":2613,"children":2614},{"style":667},[2615],{"type":612,"value":2616}," [name.strip().title() ",{"type":606,"tag":652,"props":2618,"children":2619},{"style":673},[2620],{"type":612,"value":2621},"for",{"type":606,"tag":652,"props":2623,"children":2624},{"style":667},[2625],{"type":612,"value":2626}," name ",{"type":606,"tag":652,"props":2628,"children":2629},{"style":673},[2630],{"type":612,"value":2631},"in",{"type":606,"tag":652,"props":2633,"children":2634},{"style":667},[2635],{"type":612,"value":2636}," names]\n",{"type":606,"tag":652,"props":2638,"children":2639},{"class":654,"line":1097},[2640],{"type":606,"tag":652,"props":2641,"children":2642},{"emptyLinePlaceholder":13},[2643],{"type":612,"value":761},{"type":606,"tag":652,"props":2645,"children":2646},{"class":654,"line":99},[2647],{"type":606,"tag":652,"props":2648,"children":2649},{"style":658},[2650],{"type":612,"value":2651},"# Join back with comma and space\n",{"type":606,"tag":652,"props":2653,"children":2654},{"class":654,"line":108},[2655,2660,2664,2669],{"type":606,"tag":652,"props":2656,"children":2657},{"style":667},[2658],{"type":612,"value":2659},"result ",{"type":606,"tag":652,"props":2661,"children":2662},{"style":673},[2663],{"type":612,"value":676},{"type":606,"tag":652,"props":2665,"children":2666},{"style":679},[2667],{"type":612,"value":2668}," \", \"",{"type":606,"tag":652,"props":2670,"children":2671},{"style":667},[2672],{"type":612,"value":2673},".join(cleaned_names)\n",{"type":606,"tag":652,"props":2675,"children":2676},{"class":654,"line":117},[2677],{"type":606,"tag":652,"props":2678,"children":2679},{"emptyLinePlaceholder":13},[2680],{"type":612,"value":761},{"type":606,"tag":652,"props":2682,"children":2683},{"class":654,"line":126},[2684,2688,2692,2696,2700,2704,2709,2713,2717],{"type":606,"tag":652,"props":2685,"children":2686},{"style":710},[2687],{"type":612,"value":713},{"type":606,"tag":652,"props":2689,"children":2690},{"style":667},[2691],{"type":612,"value":718},{"type":606,"tag":652,"props":2693,"children":2694},{"style":673},[2695],{"type":612,"value":723},{"type":606,"tag":652,"props":2697,"children":2698},{"style":679},[2699],{"type":612,"value":2474},{"type":606,"tag":652,"props":2701,"children":2702},{"style":710},[2703],{"type":612,"value":733},{"type":606,"tag":652,"props":2705,"children":2706},{"style":667},[2707],{"type":612,"value":2708},"result",{"type":606,"tag":652,"props":2710,"children":2711},{"style":710},[2712],{"type":612,"value":743},{"type":606,"tag":652,"props":2714,"children":2715},{"style":679},[2716],{"type":612,"value":748},{"type":606,"tag":652,"props":2718,"children":2719},{"style":667},[2720],{"type":612,"value":753},{"type":606,"tag":615,"props":2722,"children":2723},{},[2724],{"type":606,"tag":863,"props":2725,"children":2726},{},[2727],{"type":612,"value":2728},"Key Learning Points:",{"type":606,"tag":877,"props":2730,"children":2731},{},[2732,2745,2757,2769],{"type":606,"tag":881,"props":2733,"children":2734},{},[2735,2737,2743],{"type":612,"value":2736},"📌 Used ",{"type":606,"tag":621,"props":2738,"children":2740},{"className":2739},[],[2741],{"type":612,"value":2742},".split(\",\")",{"type":612,"value":2744}," to break the string into a list",{"type":606,"tag":881,"props":2746,"children":2747},{},[2748,2749,2755],{"type":612,"value":2736},{"type":606,"tag":621,"props":2750,"children":2752},{"className":2751},[],[2753],{"type":612,"value":2754},".strip()",{"type":612,"value":2756}," to remove extra spaces",{"type":606,"tag":881,"props":2758,"children":2759},{},[2760,2761,2767],{"type":612,"value":2736},{"type":606,"tag":621,"props":2762,"children":2764},{"className":2763},[],[2765],{"type":612,"value":2766},".title()",{"type":612,"value":2768}," to capitalize names",{"type":606,"tag":881,"props":2770,"children":2771},{},[2772,2773,2779],{"type":612,"value":2736},{"type":606,"tag":621,"props":2774,"children":2776},{"className":2775},[],[2777],{"type":612,"value":2778},"\", \".join()",{"type":612,"value":2780}," to combine with proper formatting",{"type":606,"tag":834,"props":2782,"children":2784},{"id":2783},"key-takeaways",[2785],{"type":612,"value":2786},"🎯 Key Takeaways",{"type":606,"tag":853,"props":2788,"children":2791},{"emoji":2789,"title":2790,"type":1594},"📚","String Split and Join Essentials",[2792,2800,2823,2831,2854],{"type":606,"tag":615,"props":2793,"children":2794},{},[2795],{"type":606,"tag":863,"props":2796,"children":2797},{},[2798],{"type":612,"value":2799},"Splitting:",{"type":606,"tag":877,"props":2801,"children":2802},{},[2803,2813,2818],{"type":606,"tag":881,"props":2804,"children":2805},{},[2806,2811],{"type":606,"tag":621,"props":2807,"children":2809},{"className":2808},[],[2810],{"type":612,"value":626},{"type":612,"value":2812}," breaks strings into lists",{"type":606,"tag":881,"props":2814,"children":2815},{},[2816],{"type":612,"value":2817},"Can split by any character",{"type":606,"tag":881,"props":2819,"children":2820},{},[2821],{"type":612,"value":2822},"Useful for parsing data",{"type":606,"tag":615,"props":2824,"children":2825},{},[2826],{"type":606,"tag":863,"props":2827,"children":2828},{},[2829],{"type":612,"value":2830},"Joining:",{"type":606,"tag":877,"props":2832,"children":2833},{},[2834,2844,2849],{"type":606,"tag":881,"props":2835,"children":2836},{},[2837,2842],{"type":606,"tag":621,"props":2838,"children":2840},{"className":2839},[],[2841],{"type":612,"value":634},{"type":612,"value":2843}," combines lists into strings",{"type":606,"tag":881,"props":2845,"children":2846},{},[2847],{"type":612,"value":2848},"All items must be strings",{"type":606,"tag":881,"props":2850,"children":2851},{},[2852],{"type":612,"value":2853},"Great for building formatted output",{"type":606,"tag":615,"props":2855,"children":2856},{},[2857,2861],{"type":606,"tag":863,"props":2858,"children":2859},{},[2860],{"type":612,"value":1641},{"type":612,"value":2862}," Split and join are complementary operations!",{"type":606,"tag":2864,"props":2865,"children":2866},"style",{},[2867],{"type":612,"value":2868},"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":2870},[2871,2875,2879,2882],{"id":836,"depth":27,"text":839,"children":2872},[2873,2874],{"id":950,"depth":36,"text":953},{"id":1233,"depth":36,"text":1236},{"id":1575,"depth":27,"text":1578,"children":2876},[2877,2878],{"id":1646,"depth":36,"text":1649},{"id":1942,"depth":36,"text":1945},{"id":2344,"depth":27,"text":2347,"children":2880},[2881],{"id":2498,"depth":36,"text":2501},{"id":2783,"depth":27,"text":2786},1782373755667]