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