[{"data":1,"prerenderedAt":4312},["ShallowReactive",2],{"tutorials-python-how-to":3,"category-items-python-how-to":600,"content-/python-how-to/write-functions":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,"expanded":13},"/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",[418],{"_path":419,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":420,"description":421,"slug":422,"parentId":408,"order":423,"body":602,"_type":15,"_id":424,"_source":17,"_file":425,"_stem":426,"_extension":20},{"type":603,"children":604,"toc":4296},"root",[605,614,620,901,908,913,1045,1052,1383,1389,1824,1830,2306,2312,2455,2461,2467,2879,2885,3431,3437,4003,4009,4137,4143,4265,4271,4276,4290],{"type":606,"tag":607,"props":608,"children":610},"element","h1",{"id":609},"️-writing-functions",[611],{"type":612,"value":613},"text","⚙️ Writing Functions",{"type":606,"tag":615,"props":616,"children":617},"p",{},[618],{"type":612,"value":619},"Functions are reusable blocks of code that perform specific tasks. They help organize your code, reduce repetition, and make programs easier to understand and maintain.",{"type":606,"tag":621,"props":622,"children":623},"code-try",{},[624],{"type":606,"tag":625,"props":626,"children":630},"pre",{"className":627,"code":628,"language":629,"meta":8,"style":8},"language-python shiki shiki-themes github-light github-dark","# Simple function\ndef greet(name):\n    return f\"Hello, {name}!\"\n\n# Function with multiple parameters\ndef add_numbers(a, b):\n    result = a + b\n    return result\n\n# Using functions\nmessage = greet(\"Alice\")\nsum_result = add_numbers(5, 3)\n\nprint(message)      # Hello, Alice!\nprint(sum_result)   # 8\n","python",[631],{"type":606,"tag":632,"props":633,"children":634},"code",{"__ignoreMap":8},[635,646,667,707,715,723,740,768,780,788,796,823,859,866,884],{"type":606,"tag":636,"props":637,"children":639},"span",{"class":638,"line":12},"line",[640],{"type":606,"tag":636,"props":641,"children":643},{"style":642},"--shiki-default:#6A737D;--shiki-app-dark-mode:#6A737D",[644],{"type":612,"value":645},"# Simple function\n",{"type":606,"tag":636,"props":647,"children":648},{"class":638,"line":27},[649,655,661],{"type":606,"tag":636,"props":650,"children":652},{"style":651},"--shiki-default:#D73A49;--shiki-app-dark-mode:#F97583",[653],{"type":612,"value":654},"def",{"type":606,"tag":636,"props":656,"children":658},{"style":657},"--shiki-default:#6F42C1;--shiki-app-dark-mode:#B392F0",[659],{"type":612,"value":660}," greet",{"type":606,"tag":636,"props":662,"children":664},{"style":663},"--shiki-default:#24292E;--shiki-app-dark-mode:#E1E4E8",[665],{"type":612,"value":666},"(name):\n",{"type":606,"tag":636,"props":668,"children":669},{"class":638,"line":36},[670,675,680,686,692,697,702],{"type":606,"tag":636,"props":671,"children":672},{"style":651},[673],{"type":612,"value":674},"    return",{"type":606,"tag":636,"props":676,"children":677},{"style":651},[678],{"type":612,"value":679}," f",{"type":606,"tag":636,"props":681,"children":683},{"style":682},"--shiki-default:#032F62;--shiki-app-dark-mode:#9ECBFF",[684],{"type":612,"value":685},"\"Hello, ",{"type":606,"tag":636,"props":687,"children":689},{"style":688},"--shiki-default:#005CC5;--shiki-app-dark-mode:#79B8FF",[690],{"type":612,"value":691},"{",{"type":606,"tag":636,"props":693,"children":694},{"style":663},[695],{"type":612,"value":696},"name",{"type":606,"tag":636,"props":698,"children":699},{"style":688},[700],{"type":612,"value":701},"}",{"type":606,"tag":636,"props":703,"children":704},{"style":682},[705],{"type":612,"value":706},"!\"\n",{"type":606,"tag":636,"props":708,"children":709},{"class":638,"line":45},[710],{"type":606,"tag":636,"props":711,"children":712},{"emptyLinePlaceholder":13},[713],{"type":612,"value":714},"\n",{"type":606,"tag":636,"props":716,"children":717},{"class":638,"line":54},[718],{"type":606,"tag":636,"props":719,"children":720},{"style":642},[721],{"type":612,"value":722},"# Function with multiple parameters\n",{"type":606,"tag":636,"props":724,"children":725},{"class":638,"line":63},[726,730,735],{"type":606,"tag":636,"props":727,"children":728},{"style":651},[729],{"type":612,"value":654},{"type":606,"tag":636,"props":731,"children":732},{"style":657},[733],{"type":612,"value":734}," add_numbers",{"type":606,"tag":636,"props":736,"children":737},{"style":663},[738],{"type":612,"value":739},"(a, b):\n",{"type":606,"tag":636,"props":741,"children":742},{"class":638,"line":72},[743,748,753,758,763],{"type":606,"tag":636,"props":744,"children":745},{"style":663},[746],{"type":612,"value":747},"    result ",{"type":606,"tag":636,"props":749,"children":750},{"style":651},[751],{"type":612,"value":752},"=",{"type":606,"tag":636,"props":754,"children":755},{"style":663},[756],{"type":612,"value":757}," a ",{"type":606,"tag":636,"props":759,"children":760},{"style":651},[761],{"type":612,"value":762},"+",{"type":606,"tag":636,"props":764,"children":765},{"style":663},[766],{"type":612,"value":767}," b\n",{"type":606,"tag":636,"props":769,"children":770},{"class":638,"line":81},[771,775],{"type":606,"tag":636,"props":772,"children":773},{"style":651},[774],{"type":612,"value":674},{"type":606,"tag":636,"props":776,"children":777},{"style":663},[778],{"type":612,"value":779}," result\n",{"type":606,"tag":636,"props":781,"children":783},{"class":638,"line":782},9,[784],{"type":606,"tag":636,"props":785,"children":786},{"emptyLinePlaceholder":13},[787],{"type":612,"value":714},{"type":606,"tag":636,"props":789,"children":790},{"class":638,"line":99},[791],{"type":606,"tag":636,"props":792,"children":793},{"style":642},[794],{"type":612,"value":795},"# Using functions\n",{"type":606,"tag":636,"props":797,"children":798},{"class":638,"line":108},[799,804,808,813,818],{"type":606,"tag":636,"props":800,"children":801},{"style":663},[802],{"type":612,"value":803},"message ",{"type":606,"tag":636,"props":805,"children":806},{"style":651},[807],{"type":612,"value":752},{"type":606,"tag":636,"props":809,"children":810},{"style":663},[811],{"type":612,"value":812}," greet(",{"type":606,"tag":636,"props":814,"children":815},{"style":682},[816],{"type":612,"value":817},"\"Alice\"",{"type":606,"tag":636,"props":819,"children":820},{"style":663},[821],{"type":612,"value":822},")\n",{"type":606,"tag":636,"props":824,"children":825},{"class":638,"line":117},[826,831,835,840,845,850,855],{"type":606,"tag":636,"props":827,"children":828},{"style":663},[829],{"type":612,"value":830},"sum_result ",{"type":606,"tag":636,"props":832,"children":833},{"style":651},[834],{"type":612,"value":752},{"type":606,"tag":636,"props":836,"children":837},{"style":663},[838],{"type":612,"value":839}," add_numbers(",{"type":606,"tag":636,"props":841,"children":842},{"style":688},[843],{"type":612,"value":844},"5",{"type":606,"tag":636,"props":846,"children":847},{"style":663},[848],{"type":612,"value":849},", ",{"type":606,"tag":636,"props":851,"children":852},{"style":688},[853],{"type":612,"value":854},"3",{"type":606,"tag":636,"props":856,"children":857},{"style":663},[858],{"type":612,"value":822},{"type":606,"tag":636,"props":860,"children":861},{"class":638,"line":126},[862],{"type":606,"tag":636,"props":863,"children":864},{"emptyLinePlaceholder":13},[865],{"type":612,"value":714},{"type":606,"tag":636,"props":867,"children":868},{"class":638,"line":135},[869,874,879],{"type":606,"tag":636,"props":870,"children":871},{"style":688},[872],{"type":612,"value":873},"print",{"type":606,"tag":636,"props":875,"children":876},{"style":663},[877],{"type":612,"value":878},"(message)      ",{"type":606,"tag":636,"props":880,"children":881},{"style":642},[882],{"type":612,"value":883},"# Hello, Alice!\n",{"type":606,"tag":636,"props":885,"children":886},{"class":638,"line":144},[887,891,896],{"type":606,"tag":636,"props":888,"children":889},{"style":688},[890],{"type":612,"value":873},{"type":606,"tag":636,"props":892,"children":893},{"style":663},[894],{"type":612,"value":895},"(sum_result)   ",{"type":606,"tag":636,"props":897,"children":898},{"style":642},[899],{"type":612,"value":900},"# 8\n",{"type":606,"tag":902,"props":903,"children":905},"h2",{"id":904},"basic-function-structure",[906],{"type":612,"value":907},"🎯 Basic Function Structure",{"type":606,"tag":615,"props":909,"children":910},{},[911],{"type":612,"value":912},"Every function has a name, parameters, and a body that contains the code to execute.",{"type":606,"tag":914,"props":915,"children":919},"info-box",{"emoji":916,"title":917,"type":918},"🔍","Function Anatomy","info",[920,977,986],{"type":606,"tag":625,"props":921,"children":923},{"className":627,"code":922,"language":629,"meta":8,"style":8},"def function_name(parameters):\n    \"\"\"Optional docstring\"\"\"\n    # Function body\n    return value  # Optional\n",[924],{"type":606,"tag":632,"props":925,"children":926},{"__ignoreMap":8},[927,944,952,960],{"type":606,"tag":636,"props":928,"children":929},{"class":638,"line":12},[930,934,939],{"type":606,"tag":636,"props":931,"children":932},{"style":651},[933],{"type":612,"value":654},{"type":606,"tag":636,"props":935,"children":936},{"style":657},[937],{"type":612,"value":938}," function_name",{"type":606,"tag":636,"props":940,"children":941},{"style":663},[942],{"type":612,"value":943},"(parameters):\n",{"type":606,"tag":636,"props":945,"children":946},{"class":638,"line":27},[947],{"type":606,"tag":636,"props":948,"children":949},{"style":682},[950],{"type":612,"value":951},"    \"\"\"Optional docstring\"\"\"\n",{"type":606,"tag":636,"props":953,"children":954},{"class":638,"line":36},[955],{"type":606,"tag":636,"props":956,"children":957},{"style":642},[958],{"type":612,"value":959},"    # Function body\n",{"type":606,"tag":636,"props":961,"children":962},{"class":638,"line":45},[963,967,972],{"type":606,"tag":636,"props":964,"children":965},{"style":651},[966],{"type":612,"value":674},{"type":606,"tag":636,"props":968,"children":969},{"style":663},[970],{"type":612,"value":971}," value  ",{"type":606,"tag":636,"props":973,"children":974},{"style":642},[975],{"type":612,"value":976},"# Optional\n",{"type":606,"tag":615,"props":978,"children":979},{},[980],{"type":606,"tag":981,"props":982,"children":983},"strong",{},[984],{"type":612,"value":985},"Components:",{"type":606,"tag":987,"props":988,"children":989},"ul",{},[990,1001,1012,1023,1034],{"type":606,"tag":991,"props":992,"children":993},"li",{},[994,999],{"type":606,"tag":632,"props":995,"children":997},{"className":996},[],[998],{"type":612,"value":654},{"type":612,"value":1000},": Keyword to define function",{"type":606,"tag":991,"props":1002,"children":1003},{},[1004,1010],{"type":606,"tag":632,"props":1005,"children":1007},{"className":1006},[],[1008],{"type":612,"value":1009},"function_name",{"type":612,"value":1011},": What you call the function",{"type":606,"tag":991,"props":1013,"children":1014},{},[1015,1021],{"type":606,"tag":632,"props":1016,"children":1018},{"className":1017},[],[1019],{"type":612,"value":1020},"parameters",{"type":612,"value":1022},": Input values (optional)",{"type":606,"tag":991,"props":1024,"children":1025},{},[1026,1032],{"type":606,"tag":632,"props":1027,"children":1029},{"className":1028},[],[1030],{"type":612,"value":1031},"return",{"type":612,"value":1033},": Output value (optional)",{"type":606,"tag":991,"props":1035,"children":1036},{},[1037,1043],{"type":606,"tag":632,"props":1038,"children":1040},{"className":1039},[],[1041],{"type":612,"value":1042},"docstring",{"type":612,"value":1044},": Description of what function does",{"type":606,"tag":1046,"props":1047,"children":1049},"h3",{"id":1048},"simple-functions",[1050],{"type":612,"value":1051},"Simple Functions",{"type":606,"tag":621,"props":1053,"children":1054},{},[1055],{"type":606,"tag":625,"props":1056,"children":1058},{"className":627,"code":1057,"language":629,"meta":8,"style":8},"# Function with no parameters\ndef say_hello():\n    return \"Hello, World!\"\n\n# Function with one parameter\ndef square(number):\n    return number * number\n\n# Function with multiple parameters\ndef full_name(first, last):\n    return f\"{first} {last}\"\n\n# Test the functions\ngreeting = say_hello()\nsquared = square(4)\nname = full_name(\"John\", \"Doe\")\n\nprint(greeting)  # Hello, World!\nprint(squared)   # 16\nprint(name)      # John Doe\n",[1059],{"type":606,"tag":632,"props":1060,"children":1061},{"__ignoreMap":8},[1062,1070,1087,1099,1106,1114,1131,1153,1160,1167,1184,1232,1239,1247,1264,1290,1325,1332,1349,1366],{"type":606,"tag":636,"props":1063,"children":1064},{"class":638,"line":12},[1065],{"type":606,"tag":636,"props":1066,"children":1067},{"style":642},[1068],{"type":612,"value":1069},"# Function with no parameters\n",{"type":606,"tag":636,"props":1071,"children":1072},{"class":638,"line":27},[1073,1077,1082],{"type":606,"tag":636,"props":1074,"children":1075},{"style":651},[1076],{"type":612,"value":654},{"type":606,"tag":636,"props":1078,"children":1079},{"style":657},[1080],{"type":612,"value":1081}," say_hello",{"type":606,"tag":636,"props":1083,"children":1084},{"style":663},[1085],{"type":612,"value":1086},"():\n",{"type":606,"tag":636,"props":1088,"children":1089},{"class":638,"line":36},[1090,1094],{"type":606,"tag":636,"props":1091,"children":1092},{"style":651},[1093],{"type":612,"value":674},{"type":606,"tag":636,"props":1095,"children":1096},{"style":682},[1097],{"type":612,"value":1098}," \"Hello, World!\"\n",{"type":606,"tag":636,"props":1100,"children":1101},{"class":638,"line":45},[1102],{"type":606,"tag":636,"props":1103,"children":1104},{"emptyLinePlaceholder":13},[1105],{"type":612,"value":714},{"type":606,"tag":636,"props":1107,"children":1108},{"class":638,"line":54},[1109],{"type":606,"tag":636,"props":1110,"children":1111},{"style":642},[1112],{"type":612,"value":1113},"# Function with one parameter\n",{"type":606,"tag":636,"props":1115,"children":1116},{"class":638,"line":63},[1117,1121,1126],{"type":606,"tag":636,"props":1118,"children":1119},{"style":651},[1120],{"type":612,"value":654},{"type":606,"tag":636,"props":1122,"children":1123},{"style":657},[1124],{"type":612,"value":1125}," square",{"type":606,"tag":636,"props":1127,"children":1128},{"style":663},[1129],{"type":612,"value":1130},"(number):\n",{"type":606,"tag":636,"props":1132,"children":1133},{"class":638,"line":72},[1134,1138,1143,1148],{"type":606,"tag":636,"props":1135,"children":1136},{"style":651},[1137],{"type":612,"value":674},{"type":606,"tag":636,"props":1139,"children":1140},{"style":663},[1141],{"type":612,"value":1142}," number ",{"type":606,"tag":636,"props":1144,"children":1145},{"style":651},[1146],{"type":612,"value":1147},"*",{"type":606,"tag":636,"props":1149,"children":1150},{"style":663},[1151],{"type":612,"value":1152}," number\n",{"type":606,"tag":636,"props":1154,"children":1155},{"class":638,"line":81},[1156],{"type":606,"tag":636,"props":1157,"children":1158},{"emptyLinePlaceholder":13},[1159],{"type":612,"value":714},{"type":606,"tag":636,"props":1161,"children":1162},{"class":638,"line":782},[1163],{"type":606,"tag":636,"props":1164,"children":1165},{"style":642},[1166],{"type":612,"value":722},{"type":606,"tag":636,"props":1168,"children":1169},{"class":638,"line":99},[1170,1174,1179],{"type":606,"tag":636,"props":1171,"children":1172},{"style":651},[1173],{"type":612,"value":654},{"type":606,"tag":636,"props":1175,"children":1176},{"style":657},[1177],{"type":612,"value":1178}," full_name",{"type":606,"tag":636,"props":1180,"children":1181},{"style":663},[1182],{"type":612,"value":1183},"(first, last):\n",{"type":606,"tag":636,"props":1185,"children":1186},{"class":638,"line":108},[1187,1191,1195,1200,1204,1209,1213,1218,1223,1227],{"type":606,"tag":636,"props":1188,"children":1189},{"style":651},[1190],{"type":612,"value":674},{"type":606,"tag":636,"props":1192,"children":1193},{"style":651},[1194],{"type":612,"value":679},{"type":606,"tag":636,"props":1196,"children":1197},{"style":682},[1198],{"type":612,"value":1199},"\"",{"type":606,"tag":636,"props":1201,"children":1202},{"style":688},[1203],{"type":612,"value":691},{"type":606,"tag":636,"props":1205,"children":1206},{"style":663},[1207],{"type":612,"value":1208},"first",{"type":606,"tag":636,"props":1210,"children":1211},{"style":688},[1212],{"type":612,"value":701},{"type":606,"tag":636,"props":1214,"children":1215},{"style":688},[1216],{"type":612,"value":1217}," {",{"type":606,"tag":636,"props":1219,"children":1220},{"style":663},[1221],{"type":612,"value":1222},"last",{"type":606,"tag":636,"props":1224,"children":1225},{"style":688},[1226],{"type":612,"value":701},{"type":606,"tag":636,"props":1228,"children":1229},{"style":682},[1230],{"type":612,"value":1231},"\"\n",{"type":606,"tag":636,"props":1233,"children":1234},{"class":638,"line":117},[1235],{"type":606,"tag":636,"props":1236,"children":1237},{"emptyLinePlaceholder":13},[1238],{"type":612,"value":714},{"type":606,"tag":636,"props":1240,"children":1241},{"class":638,"line":126},[1242],{"type":606,"tag":636,"props":1243,"children":1244},{"style":642},[1245],{"type":612,"value":1246},"# Test the functions\n",{"type":606,"tag":636,"props":1248,"children":1249},{"class":638,"line":135},[1250,1255,1259],{"type":606,"tag":636,"props":1251,"children":1252},{"style":663},[1253],{"type":612,"value":1254},"greeting ",{"type":606,"tag":636,"props":1256,"children":1257},{"style":651},[1258],{"type":612,"value":752},{"type":606,"tag":636,"props":1260,"children":1261},{"style":663},[1262],{"type":612,"value":1263}," say_hello()\n",{"type":606,"tag":636,"props":1265,"children":1266},{"class":638,"line":144},[1267,1272,1276,1281,1286],{"type":606,"tag":636,"props":1268,"children":1269},{"style":663},[1270],{"type":612,"value":1271},"squared ",{"type":606,"tag":636,"props":1273,"children":1274},{"style":651},[1275],{"type":612,"value":752},{"type":606,"tag":636,"props":1277,"children":1278},{"style":663},[1279],{"type":612,"value":1280}," square(",{"type":606,"tag":636,"props":1282,"children":1283},{"style":688},[1284],{"type":612,"value":1285},"4",{"type":606,"tag":636,"props":1287,"children":1288},{"style":663},[1289],{"type":612,"value":822},{"type":606,"tag":636,"props":1291,"children":1292},{"class":638,"line":153},[1293,1298,1302,1307,1312,1316,1321],{"type":606,"tag":636,"props":1294,"children":1295},{"style":663},[1296],{"type":612,"value":1297},"name ",{"type":606,"tag":636,"props":1299,"children":1300},{"style":651},[1301],{"type":612,"value":752},{"type":606,"tag":636,"props":1303,"children":1304},{"style":663},[1305],{"type":612,"value":1306}," full_name(",{"type":606,"tag":636,"props":1308,"children":1309},{"style":682},[1310],{"type":612,"value":1311},"\"John\"",{"type":606,"tag":636,"props":1313,"children":1314},{"style":663},[1315],{"type":612,"value":849},{"type":606,"tag":636,"props":1317,"children":1318},{"style":682},[1319],{"type":612,"value":1320},"\"Doe\"",{"type":606,"tag":636,"props":1322,"children":1323},{"style":663},[1324],{"type":612,"value":822},{"type":606,"tag":636,"props":1326,"children":1327},{"class":638,"line":163},[1328],{"type":606,"tag":636,"props":1329,"children":1330},{"emptyLinePlaceholder":13},[1331],{"type":612,"value":714},{"type":606,"tag":636,"props":1333,"children":1334},{"class":638,"line":172},[1335,1339,1344],{"type":606,"tag":636,"props":1336,"children":1337},{"style":688},[1338],{"type":612,"value":873},{"type":606,"tag":636,"props":1340,"children":1341},{"style":663},[1342],{"type":612,"value":1343},"(greeting)  ",{"type":606,"tag":636,"props":1345,"children":1346},{"style":642},[1347],{"type":612,"value":1348},"# Hello, World!\n",{"type":606,"tag":636,"props":1350,"children":1351},{"class":638,"line":181},[1352,1356,1361],{"type":606,"tag":636,"props":1353,"children":1354},{"style":688},[1355],{"type":612,"value":873},{"type":606,"tag":636,"props":1357,"children":1358},{"style":663},[1359],{"type":612,"value":1360},"(squared)   ",{"type":606,"tag":636,"props":1362,"children":1363},{"style":642},[1364],{"type":612,"value":1365},"# 16\n",{"type":606,"tag":636,"props":1367,"children":1368},{"class":638,"line":190},[1369,1373,1378],{"type":606,"tag":636,"props":1370,"children":1371},{"style":688},[1372],{"type":612,"value":873},{"type":606,"tag":636,"props":1374,"children":1375},{"style":663},[1376],{"type":612,"value":1377},"(name)      ",{"type":606,"tag":636,"props":1379,"children":1380},{"style":642},[1381],{"type":612,"value":1382},"# John Doe\n",{"type":606,"tag":1046,"props":1384,"children":1386},{"id":1385},"functions-with-default-parameters",[1387],{"type":612,"value":1388},"Functions with Default Parameters",{"type":606,"tag":621,"props":1390,"children":1391},{},[1392],{"type":606,"tag":625,"props":1393,"children":1395},{"className":627,"code":1394,"language":629,"meta":8,"style":8},"# Default parameter values\ndef greet_user(name, greeting=\"Hello\"):\n    return f\"{greeting}, {name}!\"\n\ndef calculate_price(amount, tax_rate=0.08):\n    tax = amount * tax_rate\n    total = amount + tax\n    return total\n\n# Using default parameters\nmsg1 = greet_user(\"Alice\")           # Uses default greeting\nmsg2 = greet_user(\"Bob\", \"Hi\")       # Custom greeting\n\nprice1 = calculate_price(100)        # Uses default tax rate\nprice2 = calculate_price(100, 0.1)   # Custom tax rate\n\nprint(msg1)    # Hello, Alice!\nprint(msg2)    # Hi, Bob!\nprint(price1)  # 108.0\nprint(price2)  # 110.0\n",[1396],{"type":606,"tag":632,"props":1397,"children":1398},{"__ignoreMap":8},[1399,1407,1438,1486,1493,1523,1549,1574,1586,1593,1601,1632,1672,1679,1711,1750,1757,1773,1790,1807],{"type":606,"tag":636,"props":1400,"children":1401},{"class":638,"line":12},[1402],{"type":606,"tag":636,"props":1403,"children":1404},{"style":642},[1405],{"type":612,"value":1406},"# Default parameter values\n",{"type":606,"tag":636,"props":1408,"children":1409},{"class":638,"line":27},[1410,1414,1419,1424,1428,1433],{"type":606,"tag":636,"props":1411,"children":1412},{"style":651},[1413],{"type":612,"value":654},{"type":606,"tag":636,"props":1415,"children":1416},{"style":657},[1417],{"type":612,"value":1418}," greet_user",{"type":606,"tag":636,"props":1420,"children":1421},{"style":663},[1422],{"type":612,"value":1423},"(name, greeting",{"type":606,"tag":636,"props":1425,"children":1426},{"style":651},[1427],{"type":612,"value":752},{"type":606,"tag":636,"props":1429,"children":1430},{"style":682},[1431],{"type":612,"value":1432},"\"Hello\"",{"type":606,"tag":636,"props":1434,"children":1435},{"style":663},[1436],{"type":612,"value":1437},"):\n",{"type":606,"tag":636,"props":1439,"children":1440},{"class":638,"line":36},[1441,1445,1449,1453,1457,1462,1466,1470,1474,1478,1482],{"type":606,"tag":636,"props":1442,"children":1443},{"style":651},[1444],{"type":612,"value":674},{"type":606,"tag":636,"props":1446,"children":1447},{"style":651},[1448],{"type":612,"value":679},{"type":606,"tag":636,"props":1450,"children":1451},{"style":682},[1452],{"type":612,"value":1199},{"type":606,"tag":636,"props":1454,"children":1455},{"style":688},[1456],{"type":612,"value":691},{"type":606,"tag":636,"props":1458,"children":1459},{"style":663},[1460],{"type":612,"value":1461},"greeting",{"type":606,"tag":636,"props":1463,"children":1464},{"style":688},[1465],{"type":612,"value":701},{"type":606,"tag":636,"props":1467,"children":1468},{"style":682},[1469],{"type":612,"value":849},{"type":606,"tag":636,"props":1471,"children":1472},{"style":688},[1473],{"type":612,"value":691},{"type":606,"tag":636,"props":1475,"children":1476},{"style":663},[1477],{"type":612,"value":696},{"type":606,"tag":636,"props":1479,"children":1480},{"style":688},[1481],{"type":612,"value":701},{"type":606,"tag":636,"props":1483,"children":1484},{"style":682},[1485],{"type":612,"value":706},{"type":606,"tag":636,"props":1487,"children":1488},{"class":638,"line":45},[1489],{"type":606,"tag":636,"props":1490,"children":1491},{"emptyLinePlaceholder":13},[1492],{"type":612,"value":714},{"type":606,"tag":636,"props":1494,"children":1495},{"class":638,"line":54},[1496,1500,1505,1510,1514,1519],{"type":606,"tag":636,"props":1497,"children":1498},{"style":651},[1499],{"type":612,"value":654},{"type":606,"tag":636,"props":1501,"children":1502},{"style":657},[1503],{"type":612,"value":1504}," calculate_price",{"type":606,"tag":636,"props":1506,"children":1507},{"style":663},[1508],{"type":612,"value":1509},"(amount, tax_rate",{"type":606,"tag":636,"props":1511,"children":1512},{"style":651},[1513],{"type":612,"value":752},{"type":606,"tag":636,"props":1515,"children":1516},{"style":688},[1517],{"type":612,"value":1518},"0.08",{"type":606,"tag":636,"props":1520,"children":1521},{"style":663},[1522],{"type":612,"value":1437},{"type":606,"tag":636,"props":1524,"children":1525},{"class":638,"line":63},[1526,1531,1535,1540,1544],{"type":606,"tag":636,"props":1527,"children":1528},{"style":663},[1529],{"type":612,"value":1530},"    tax ",{"type":606,"tag":636,"props":1532,"children":1533},{"style":651},[1534],{"type":612,"value":752},{"type":606,"tag":636,"props":1536,"children":1537},{"style":663},[1538],{"type":612,"value":1539}," amount ",{"type":606,"tag":636,"props":1541,"children":1542},{"style":651},[1543],{"type":612,"value":1147},{"type":606,"tag":636,"props":1545,"children":1546},{"style":663},[1547],{"type":612,"value":1548}," tax_rate\n",{"type":606,"tag":636,"props":1550,"children":1551},{"class":638,"line":72},[1552,1557,1561,1565,1569],{"type":606,"tag":636,"props":1553,"children":1554},{"style":663},[1555],{"type":612,"value":1556},"    total ",{"type":606,"tag":636,"props":1558,"children":1559},{"style":651},[1560],{"type":612,"value":752},{"type":606,"tag":636,"props":1562,"children":1563},{"style":663},[1564],{"type":612,"value":1539},{"type":606,"tag":636,"props":1566,"children":1567},{"style":651},[1568],{"type":612,"value":762},{"type":606,"tag":636,"props":1570,"children":1571},{"style":663},[1572],{"type":612,"value":1573}," tax\n",{"type":606,"tag":636,"props":1575,"children":1576},{"class":638,"line":81},[1577,1581],{"type":606,"tag":636,"props":1578,"children":1579},{"style":651},[1580],{"type":612,"value":674},{"type":606,"tag":636,"props":1582,"children":1583},{"style":663},[1584],{"type":612,"value":1585}," total\n",{"type":606,"tag":636,"props":1587,"children":1588},{"class":638,"line":782},[1589],{"type":606,"tag":636,"props":1590,"children":1591},{"emptyLinePlaceholder":13},[1592],{"type":612,"value":714},{"type":606,"tag":636,"props":1594,"children":1595},{"class":638,"line":99},[1596],{"type":606,"tag":636,"props":1597,"children":1598},{"style":642},[1599],{"type":612,"value":1600},"# Using default parameters\n",{"type":606,"tag":636,"props":1602,"children":1603},{"class":638,"line":108},[1604,1609,1613,1618,1622,1627],{"type":606,"tag":636,"props":1605,"children":1606},{"style":663},[1607],{"type":612,"value":1608},"msg1 ",{"type":606,"tag":636,"props":1610,"children":1611},{"style":651},[1612],{"type":612,"value":752},{"type":606,"tag":636,"props":1614,"children":1615},{"style":663},[1616],{"type":612,"value":1617}," greet_user(",{"type":606,"tag":636,"props":1619,"children":1620},{"style":682},[1621],{"type":612,"value":817},{"type":606,"tag":636,"props":1623,"children":1624},{"style":663},[1625],{"type":612,"value":1626},")           ",{"type":606,"tag":636,"props":1628,"children":1629},{"style":642},[1630],{"type":612,"value":1631},"# Uses default greeting\n",{"type":606,"tag":636,"props":1633,"children":1634},{"class":638,"line":117},[1635,1640,1644,1648,1653,1657,1662,1667],{"type":606,"tag":636,"props":1636,"children":1637},{"style":663},[1638],{"type":612,"value":1639},"msg2 ",{"type":606,"tag":636,"props":1641,"children":1642},{"style":651},[1643],{"type":612,"value":752},{"type":606,"tag":636,"props":1645,"children":1646},{"style":663},[1647],{"type":612,"value":1617},{"type":606,"tag":636,"props":1649,"children":1650},{"style":682},[1651],{"type":612,"value":1652},"\"Bob\"",{"type":606,"tag":636,"props":1654,"children":1655},{"style":663},[1656],{"type":612,"value":849},{"type":606,"tag":636,"props":1658,"children":1659},{"style":682},[1660],{"type":612,"value":1661},"\"Hi\"",{"type":606,"tag":636,"props":1663,"children":1664},{"style":663},[1665],{"type":612,"value":1666},")       ",{"type":606,"tag":636,"props":1668,"children":1669},{"style":642},[1670],{"type":612,"value":1671},"# Custom greeting\n",{"type":606,"tag":636,"props":1673,"children":1674},{"class":638,"line":126},[1675],{"type":606,"tag":636,"props":1676,"children":1677},{"emptyLinePlaceholder":13},[1678],{"type":612,"value":714},{"type":606,"tag":636,"props":1680,"children":1681},{"class":638,"line":135},[1682,1687,1691,1696,1701,1706],{"type":606,"tag":636,"props":1683,"children":1684},{"style":663},[1685],{"type":612,"value":1686},"price1 ",{"type":606,"tag":636,"props":1688,"children":1689},{"style":651},[1690],{"type":612,"value":752},{"type":606,"tag":636,"props":1692,"children":1693},{"style":663},[1694],{"type":612,"value":1695}," calculate_price(",{"type":606,"tag":636,"props":1697,"children":1698},{"style":688},[1699],{"type":612,"value":1700},"100",{"type":606,"tag":636,"props":1702,"children":1703},{"style":663},[1704],{"type":612,"value":1705},")        ",{"type":606,"tag":636,"props":1707,"children":1708},{"style":642},[1709],{"type":612,"value":1710},"# Uses default tax rate\n",{"type":606,"tag":636,"props":1712,"children":1713},{"class":638,"line":144},[1714,1719,1723,1727,1731,1735,1740,1745],{"type":606,"tag":636,"props":1715,"children":1716},{"style":663},[1717],{"type":612,"value":1718},"price2 ",{"type":606,"tag":636,"props":1720,"children":1721},{"style":651},[1722],{"type":612,"value":752},{"type":606,"tag":636,"props":1724,"children":1725},{"style":663},[1726],{"type":612,"value":1695},{"type":606,"tag":636,"props":1728,"children":1729},{"style":688},[1730],{"type":612,"value":1700},{"type":606,"tag":636,"props":1732,"children":1733},{"style":663},[1734],{"type":612,"value":849},{"type":606,"tag":636,"props":1736,"children":1737},{"style":688},[1738],{"type":612,"value":1739},"0.1",{"type":606,"tag":636,"props":1741,"children":1742},{"style":663},[1743],{"type":612,"value":1744},")   ",{"type":606,"tag":636,"props":1746,"children":1747},{"style":642},[1748],{"type":612,"value":1749},"# Custom tax rate\n",{"type":606,"tag":636,"props":1751,"children":1752},{"class":638,"line":153},[1753],{"type":606,"tag":636,"props":1754,"children":1755},{"emptyLinePlaceholder":13},[1756],{"type":612,"value":714},{"type":606,"tag":636,"props":1758,"children":1759},{"class":638,"line":163},[1760,1764,1769],{"type":606,"tag":636,"props":1761,"children":1762},{"style":688},[1763],{"type":612,"value":873},{"type":606,"tag":636,"props":1765,"children":1766},{"style":663},[1767],{"type":612,"value":1768},"(msg1)    ",{"type":606,"tag":636,"props":1770,"children":1771},{"style":642},[1772],{"type":612,"value":883},{"type":606,"tag":636,"props":1774,"children":1775},{"class":638,"line":172},[1776,1780,1785],{"type":606,"tag":636,"props":1777,"children":1778},{"style":688},[1779],{"type":612,"value":873},{"type":606,"tag":636,"props":1781,"children":1782},{"style":663},[1783],{"type":612,"value":1784},"(msg2)    ",{"type":606,"tag":636,"props":1786,"children":1787},{"style":642},[1788],{"type":612,"value":1789},"# Hi, Bob!\n",{"type":606,"tag":636,"props":1791,"children":1792},{"class":638,"line":181},[1793,1797,1802],{"type":606,"tag":636,"props":1794,"children":1795},{"style":688},[1796],{"type":612,"value":873},{"type":606,"tag":636,"props":1798,"children":1799},{"style":663},[1800],{"type":612,"value":1801},"(price1)  ",{"type":606,"tag":636,"props":1803,"children":1804},{"style":642},[1805],{"type":612,"value":1806},"# 108.0\n",{"type":606,"tag":636,"props":1808,"children":1809},{"class":638,"line":190},[1810,1814,1819],{"type":606,"tag":636,"props":1811,"children":1812},{"style":688},[1813],{"type":612,"value":873},{"type":606,"tag":636,"props":1815,"children":1816},{"style":663},[1817],{"type":612,"value":1818},"(price2)  ",{"type":606,"tag":636,"props":1820,"children":1821},{"style":642},[1822],{"type":612,"value":1823},"# 110.0\n",{"type":606,"tag":1046,"props":1825,"children":1827},{"id":1826},"functions-that-return-multiple-values",[1828],{"type":612,"value":1829},"Functions that Return Multiple Values",{"type":606,"tag":621,"props":1831,"children":1832},{},[1833],{"type":606,"tag":625,"props":1834,"children":1836},{"className":627,"code":1835,"language":629,"meta":8,"style":8},"# Return multiple values as tuple\ndef get_name_parts(full_name):\n    parts = full_name.split()\n    first = parts[0]\n    last = parts[-1]\n    return first, last\n\ndef calculate_stats(numbers):\n    total = sum(numbers)\n    average = total / len(numbers)\n    minimum = min(numbers)\n    maximum = max(numbers)\n    return total, average, minimum, maximum\n\n# Unpack returned values\nfirst, last = get_name_parts(\"Alice Johnson\")\ntotal, avg, min_val, max_val = calculate_stats([1, 2, 3, 4, 5])\n\nprint(f\"First: {first}, Last: {last}\")\nprint(f\"Total: {total}, Average: {avg}\")\n",[1837],{"type":606,"tag":632,"props":1838,"children":1839},{"__ignoreMap":8},[1840,1848,1865,1882,1909,1939,1951,1958,1975,1996,2027,2048,2069,2081,2088,2096,2122,2181,2188,2247],{"type":606,"tag":636,"props":1841,"children":1842},{"class":638,"line":12},[1843],{"type":606,"tag":636,"props":1844,"children":1845},{"style":642},[1846],{"type":612,"value":1847},"# Return multiple values as tuple\n",{"type":606,"tag":636,"props":1849,"children":1850},{"class":638,"line":27},[1851,1855,1860],{"type":606,"tag":636,"props":1852,"children":1853},{"style":651},[1854],{"type":612,"value":654},{"type":606,"tag":636,"props":1856,"children":1857},{"style":657},[1858],{"type":612,"value":1859}," get_name_parts",{"type":606,"tag":636,"props":1861,"children":1862},{"style":663},[1863],{"type":612,"value":1864},"(full_name):\n",{"type":606,"tag":636,"props":1866,"children":1867},{"class":638,"line":36},[1868,1873,1877],{"type":606,"tag":636,"props":1869,"children":1870},{"style":663},[1871],{"type":612,"value":1872},"    parts ",{"type":606,"tag":636,"props":1874,"children":1875},{"style":651},[1876],{"type":612,"value":752},{"type":606,"tag":636,"props":1878,"children":1879},{"style":663},[1880],{"type":612,"value":1881}," full_name.split()\n",{"type":606,"tag":636,"props":1883,"children":1884},{"class":638,"line":45},[1885,1890,1894,1899,1904],{"type":606,"tag":636,"props":1886,"children":1887},{"style":663},[1888],{"type":612,"value":1889},"    first ",{"type":606,"tag":636,"props":1891,"children":1892},{"style":651},[1893],{"type":612,"value":752},{"type":606,"tag":636,"props":1895,"children":1896},{"style":663},[1897],{"type":612,"value":1898}," parts[",{"type":606,"tag":636,"props":1900,"children":1901},{"style":688},[1902],{"type":612,"value":1903},"0",{"type":606,"tag":636,"props":1905,"children":1906},{"style":663},[1907],{"type":612,"value":1908},"]\n",{"type":606,"tag":636,"props":1910,"children":1911},{"class":638,"line":54},[1912,1917,1921,1925,1930,1935],{"type":606,"tag":636,"props":1913,"children":1914},{"style":663},[1915],{"type":612,"value":1916},"    last ",{"type":606,"tag":636,"props":1918,"children":1919},{"style":651},[1920],{"type":612,"value":752},{"type":606,"tag":636,"props":1922,"children":1923},{"style":663},[1924],{"type":612,"value":1898},{"type":606,"tag":636,"props":1926,"children":1927},{"style":651},[1928],{"type":612,"value":1929},"-",{"type":606,"tag":636,"props":1931,"children":1932},{"style":688},[1933],{"type":612,"value":1934},"1",{"type":606,"tag":636,"props":1936,"children":1937},{"style":663},[1938],{"type":612,"value":1908},{"type":606,"tag":636,"props":1940,"children":1941},{"class":638,"line":63},[1942,1946],{"type":606,"tag":636,"props":1943,"children":1944},{"style":651},[1945],{"type":612,"value":674},{"type":606,"tag":636,"props":1947,"children":1948},{"style":663},[1949],{"type":612,"value":1950}," first, last\n",{"type":606,"tag":636,"props":1952,"children":1953},{"class":638,"line":72},[1954],{"type":606,"tag":636,"props":1955,"children":1956},{"emptyLinePlaceholder":13},[1957],{"type":612,"value":714},{"type":606,"tag":636,"props":1959,"children":1960},{"class":638,"line":81},[1961,1965,1970],{"type":606,"tag":636,"props":1962,"children":1963},{"style":651},[1964],{"type":612,"value":654},{"type":606,"tag":636,"props":1966,"children":1967},{"style":657},[1968],{"type":612,"value":1969}," calculate_stats",{"type":606,"tag":636,"props":1971,"children":1972},{"style":663},[1973],{"type":612,"value":1974},"(numbers):\n",{"type":606,"tag":636,"props":1976,"children":1977},{"class":638,"line":782},[1978,1982,1986,1991],{"type":606,"tag":636,"props":1979,"children":1980},{"style":663},[1981],{"type":612,"value":1556},{"type":606,"tag":636,"props":1983,"children":1984},{"style":651},[1985],{"type":612,"value":752},{"type":606,"tag":636,"props":1987,"children":1988},{"style":688},[1989],{"type":612,"value":1990}," sum",{"type":606,"tag":636,"props":1992,"children":1993},{"style":663},[1994],{"type":612,"value":1995},"(numbers)\n",{"type":606,"tag":636,"props":1997,"children":1998},{"class":638,"line":99},[1999,2004,2008,2013,2018,2023],{"type":606,"tag":636,"props":2000,"children":2001},{"style":663},[2002],{"type":612,"value":2003},"    average ",{"type":606,"tag":636,"props":2005,"children":2006},{"style":651},[2007],{"type":612,"value":752},{"type":606,"tag":636,"props":2009,"children":2010},{"style":663},[2011],{"type":612,"value":2012}," total ",{"type":606,"tag":636,"props":2014,"children":2015},{"style":651},[2016],{"type":612,"value":2017},"/",{"type":606,"tag":636,"props":2019,"children":2020},{"style":688},[2021],{"type":612,"value":2022}," len",{"type":606,"tag":636,"props":2024,"children":2025},{"style":663},[2026],{"type":612,"value":1995},{"type":606,"tag":636,"props":2028,"children":2029},{"class":638,"line":108},[2030,2035,2039,2044],{"type":606,"tag":636,"props":2031,"children":2032},{"style":663},[2033],{"type":612,"value":2034},"    minimum ",{"type":606,"tag":636,"props":2036,"children":2037},{"style":651},[2038],{"type":612,"value":752},{"type":606,"tag":636,"props":2040,"children":2041},{"style":688},[2042],{"type":612,"value":2043}," min",{"type":606,"tag":636,"props":2045,"children":2046},{"style":663},[2047],{"type":612,"value":1995},{"type":606,"tag":636,"props":2049,"children":2050},{"class":638,"line":117},[2051,2056,2060,2065],{"type":606,"tag":636,"props":2052,"children":2053},{"style":663},[2054],{"type":612,"value":2055},"    maximum ",{"type":606,"tag":636,"props":2057,"children":2058},{"style":651},[2059],{"type":612,"value":752},{"type":606,"tag":636,"props":2061,"children":2062},{"style":688},[2063],{"type":612,"value":2064}," max",{"type":606,"tag":636,"props":2066,"children":2067},{"style":663},[2068],{"type":612,"value":1995},{"type":606,"tag":636,"props":2070,"children":2071},{"class":638,"line":126},[2072,2076],{"type":606,"tag":636,"props":2073,"children":2074},{"style":651},[2075],{"type":612,"value":674},{"type":606,"tag":636,"props":2077,"children":2078},{"style":663},[2079],{"type":612,"value":2080}," total, average, minimum, maximum\n",{"type":606,"tag":636,"props":2082,"children":2083},{"class":638,"line":135},[2084],{"type":606,"tag":636,"props":2085,"children":2086},{"emptyLinePlaceholder":13},[2087],{"type":612,"value":714},{"type":606,"tag":636,"props":2089,"children":2090},{"class":638,"line":144},[2091],{"type":606,"tag":636,"props":2092,"children":2093},{"style":642},[2094],{"type":612,"value":2095},"# Unpack returned values\n",{"type":606,"tag":636,"props":2097,"children":2098},{"class":638,"line":153},[2099,2104,2108,2113,2118],{"type":606,"tag":636,"props":2100,"children":2101},{"style":663},[2102],{"type":612,"value":2103},"first, last ",{"type":606,"tag":636,"props":2105,"children":2106},{"style":651},[2107],{"type":612,"value":752},{"type":606,"tag":636,"props":2109,"children":2110},{"style":663},[2111],{"type":612,"value":2112}," get_name_parts(",{"type":606,"tag":636,"props":2114,"children":2115},{"style":682},[2116],{"type":612,"value":2117},"\"Alice Johnson\"",{"type":606,"tag":636,"props":2119,"children":2120},{"style":663},[2121],{"type":612,"value":822},{"type":606,"tag":636,"props":2123,"children":2124},{"class":638,"line":163},[2125,2130,2134,2139,2143,2147,2152,2156,2160,2164,2168,2172,2176],{"type":606,"tag":636,"props":2126,"children":2127},{"style":663},[2128],{"type":612,"value":2129},"total, avg, min_val, max_val ",{"type":606,"tag":636,"props":2131,"children":2132},{"style":651},[2133],{"type":612,"value":752},{"type":606,"tag":636,"props":2135,"children":2136},{"style":663},[2137],{"type":612,"value":2138}," calculate_stats([",{"type":606,"tag":636,"props":2140,"children":2141},{"style":688},[2142],{"type":612,"value":1934},{"type":606,"tag":636,"props":2144,"children":2145},{"style":663},[2146],{"type":612,"value":849},{"type":606,"tag":636,"props":2148,"children":2149},{"style":688},[2150],{"type":612,"value":2151},"2",{"type":606,"tag":636,"props":2153,"children":2154},{"style":663},[2155],{"type":612,"value":849},{"type":606,"tag":636,"props":2157,"children":2158},{"style":688},[2159],{"type":612,"value":854},{"type":606,"tag":636,"props":2161,"children":2162},{"style":663},[2163],{"type":612,"value":849},{"type":606,"tag":636,"props":2165,"children":2166},{"style":688},[2167],{"type":612,"value":1285},{"type":606,"tag":636,"props":2169,"children":2170},{"style":663},[2171],{"type":612,"value":849},{"type":606,"tag":636,"props":2173,"children":2174},{"style":688},[2175],{"type":612,"value":844},{"type":606,"tag":636,"props":2177,"children":2178},{"style":663},[2179],{"type":612,"value":2180},"])\n",{"type":606,"tag":636,"props":2182,"children":2183},{"class":638,"line":172},[2184],{"type":606,"tag":636,"props":2185,"children":2186},{"emptyLinePlaceholder":13},[2187],{"type":612,"value":714},{"type":606,"tag":636,"props":2189,"children":2190},{"class":638,"line":181},[2191,2195,2200,2205,2210,2214,2218,2222,2227,2231,2235,2239,2243],{"type":606,"tag":636,"props":2192,"children":2193},{"style":688},[2194],{"type":612,"value":873},{"type":606,"tag":636,"props":2196,"children":2197},{"style":663},[2198],{"type":612,"value":2199},"(",{"type":606,"tag":636,"props":2201,"children":2202},{"style":651},[2203],{"type":612,"value":2204},"f",{"type":606,"tag":636,"props":2206,"children":2207},{"style":682},[2208],{"type":612,"value":2209},"\"First: ",{"type":606,"tag":636,"props":2211,"children":2212},{"style":688},[2213],{"type":612,"value":691},{"type":606,"tag":636,"props":2215,"children":2216},{"style":663},[2217],{"type":612,"value":1208},{"type":606,"tag":636,"props":2219,"children":2220},{"style":688},[2221],{"type":612,"value":701},{"type":606,"tag":636,"props":2223,"children":2224},{"style":682},[2225],{"type":612,"value":2226},", Last: ",{"type":606,"tag":636,"props":2228,"children":2229},{"style":688},[2230],{"type":612,"value":691},{"type":606,"tag":636,"props":2232,"children":2233},{"style":663},[2234],{"type":612,"value":1222},{"type":606,"tag":636,"props":2236,"children":2237},{"style":688},[2238],{"type":612,"value":701},{"type":606,"tag":636,"props":2240,"children":2241},{"style":682},[2242],{"type":612,"value":1199},{"type":606,"tag":636,"props":2244,"children":2245},{"style":663},[2246],{"type":612,"value":822},{"type":606,"tag":636,"props":2248,"children":2249},{"class":638,"line":190},[2250,2254,2258,2262,2267,2271,2276,2280,2285,2289,2294,2298,2302],{"type":606,"tag":636,"props":2251,"children":2252},{"style":688},[2253],{"type":612,"value":873},{"type":606,"tag":636,"props":2255,"children":2256},{"style":663},[2257],{"type":612,"value":2199},{"type":606,"tag":636,"props":2259,"children":2260},{"style":651},[2261],{"type":612,"value":2204},{"type":606,"tag":636,"props":2263,"children":2264},{"style":682},[2265],{"type":612,"value":2266},"\"Total: ",{"type":606,"tag":636,"props":2268,"children":2269},{"style":688},[2270],{"type":612,"value":691},{"type":606,"tag":636,"props":2272,"children":2273},{"style":663},[2274],{"type":612,"value":2275},"total",{"type":606,"tag":636,"props":2277,"children":2278},{"style":688},[2279],{"type":612,"value":701},{"type":606,"tag":636,"props":2281,"children":2282},{"style":682},[2283],{"type":612,"value":2284},", Average: ",{"type":606,"tag":636,"props":2286,"children":2287},{"style":688},[2288],{"type":612,"value":691},{"type":606,"tag":636,"props":2290,"children":2291},{"style":663},[2292],{"type":612,"value":2293},"avg",{"type":606,"tag":636,"props":2295,"children":2296},{"style":688},[2297],{"type":612,"value":701},{"type":606,"tag":636,"props":2299,"children":2300},{"style":682},[2301],{"type":612,"value":1199},{"type":606,"tag":636,"props":2303,"children":2304},{"style":663},[2305],{"type":612,"value":822},{"type":606,"tag":902,"props":2307,"children":2309},{"id":2308},"function-types-reference",[2310],{"type":612,"value":2311},"📋 Function Types Reference",{"type":606,"tag":2313,"props":2314,"children":2315},"table",{},[2316,2340],{"type":606,"tag":2317,"props":2318,"children":2319},"thead",{},[2320],{"type":606,"tag":2321,"props":2322,"children":2323},"tr",{},[2324,2330,2335],{"type":606,"tag":2325,"props":2326,"children":2327},"th",{},[2328],{"type":612,"value":2329},"Type",{"type":606,"tag":2325,"props":2331,"children":2332},{},[2333],{"type":612,"value":2334},"Purpose",{"type":606,"tag":2325,"props":2336,"children":2337},{},[2338],{"type":612,"value":2339},"Example",{"type":606,"tag":2341,"props":2342,"children":2343},"tbody",{},[2344,2367,2389,2411,2433],{"type":606,"tag":2321,"props":2345,"children":2346},{},[2347,2353,2358],{"type":606,"tag":2348,"props":2349,"children":2350},"td",{},[2351],{"type":612,"value":2352},"No parameters",{"type":606,"tag":2348,"props":2354,"children":2355},{},[2356],{"type":612,"value":2357},"Fixed behavior",{"type":606,"tag":2348,"props":2359,"children":2360},{},[2361],{"type":606,"tag":632,"props":2362,"children":2364},{"className":2363},[],[2365],{"type":612,"value":2366},"def get_timestamp():",{"type":606,"tag":2321,"props":2368,"children":2369},{},[2370,2375,2380],{"type":606,"tag":2348,"props":2371,"children":2372},{},[2373],{"type":612,"value":2374},"With parameters",{"type":606,"tag":2348,"props":2376,"children":2377},{},[2378],{"type":612,"value":2379},"Variable behavior",{"type":606,"tag":2348,"props":2381,"children":2382},{},[2383],{"type":606,"tag":632,"props":2384,"children":2386},{"className":2385},[],[2387],{"type":612,"value":2388},"def greet(name):",{"type":606,"tag":2321,"props":2390,"children":2391},{},[2392,2397,2402],{"type":606,"tag":2348,"props":2393,"children":2394},{},[2395],{"type":612,"value":2396},"Default parameters",{"type":606,"tag":2348,"props":2398,"children":2399},{},[2400],{"type":612,"value":2401},"Optional inputs",{"type":606,"tag":2348,"props":2403,"children":2404},{},[2405],{"type":606,"tag":632,"props":2406,"children":2408},{"className":2407},[],[2409],{"type":612,"value":2410},"def func(x, y=10):",{"type":606,"tag":2321,"props":2412,"children":2413},{},[2414,2419,2424],{"type":606,"tag":2348,"props":2415,"children":2416},{},[2417],{"type":612,"value":2418},"Return value",{"type":606,"tag":2348,"props":2420,"children":2421},{},[2422],{"type":612,"value":2423},"Produce output",{"type":606,"tag":2348,"props":2425,"children":2426},{},[2427],{"type":606,"tag":632,"props":2428,"children":2430},{"className":2429},[],[2431],{"type":612,"value":2432},"return result",{"type":606,"tag":2321,"props":2434,"children":2435},{},[2436,2441,2446],{"type":606,"tag":2348,"props":2437,"children":2438},{},[2439],{"type":612,"value":2440},"No return",{"type":606,"tag":2348,"props":2442,"children":2443},{},[2444],{"type":612,"value":2445},"Perform action",{"type":606,"tag":2348,"props":2447,"children":2448},{},[2449],{"type":606,"tag":632,"props":2450,"children":2452},{"className":2451},[],[2453],{"type":612,"value":2454},"print(\"done\")",{"type":606,"tag":902,"props":2456,"children":2458},{"id":2457},"function-documentation",[2459],{"type":612,"value":2460},"🔧 Function Documentation",{"type":606,"tag":1046,"props":2462,"children":2464},{"id":2463},"adding-docstrings",[2465],{"type":612,"value":2466},"Adding Docstrings",{"type":606,"tag":621,"props":2468,"children":2469},{},[2470],{"type":606,"tag":625,"props":2471,"children":2473},{"className":627,"code":2472,"language":629,"meta":8,"style":8},"def calculate_area(length, width):\n    \"\"\"\n    Calculate the area of a rectangle.\n    \n    Args:\n        length (float): The length of the rectangle\n        width (float): The width of the rectangle\n    \n    Returns:\n        float: The area of the rectangle\n    \"\"\"\n    return length * width\n\ndef format_currency(amount, currency=\"USD\"):\n    \"\"\"Format amount as currency string.\"\"\"\n    return f\"{amount:.2f} {currency}\"\n\n# Help function shows docstring\nhelp(calculate_area)\n\n# Use the functions\narea = calculate_area(5, 3)\nprice = format_currency(29.99)\n\nprint(f\"Area: {area}\")\nprint(f\"Price: {price}\")\n",[2474],{"type":606,"tag":632,"props":2475,"children":2476},{"__ignoreMap":8},[2477,2494,2502,2510,2518,2526,2534,2542,2549,2557,2565,2572,2593,2600,2630,2638,2688,2695,2703,2716,2723,2731,2764,2790,2797,2838],{"type":606,"tag":636,"props":2478,"children":2479},{"class":638,"line":12},[2480,2484,2489],{"type":606,"tag":636,"props":2481,"children":2482},{"style":651},[2483],{"type":612,"value":654},{"type":606,"tag":636,"props":2485,"children":2486},{"style":657},[2487],{"type":612,"value":2488}," calculate_area",{"type":606,"tag":636,"props":2490,"children":2491},{"style":663},[2492],{"type":612,"value":2493},"(length, width):\n",{"type":606,"tag":636,"props":2495,"children":2496},{"class":638,"line":27},[2497],{"type":606,"tag":636,"props":2498,"children":2499},{"style":682},[2500],{"type":612,"value":2501},"    \"\"\"\n",{"type":606,"tag":636,"props":2503,"children":2504},{"class":638,"line":36},[2505],{"type":606,"tag":636,"props":2506,"children":2507},{"style":682},[2508],{"type":612,"value":2509},"    Calculate the area of a rectangle.\n",{"type":606,"tag":636,"props":2511,"children":2512},{"class":638,"line":45},[2513],{"type":606,"tag":636,"props":2514,"children":2515},{"style":682},[2516],{"type":612,"value":2517},"    \n",{"type":606,"tag":636,"props":2519,"children":2520},{"class":638,"line":54},[2521],{"type":606,"tag":636,"props":2522,"children":2523},{"style":682},[2524],{"type":612,"value":2525},"    Args:\n",{"type":606,"tag":636,"props":2527,"children":2528},{"class":638,"line":63},[2529],{"type":606,"tag":636,"props":2530,"children":2531},{"style":682},[2532],{"type":612,"value":2533},"        length (float): The length of the rectangle\n",{"type":606,"tag":636,"props":2535,"children":2536},{"class":638,"line":72},[2537],{"type":606,"tag":636,"props":2538,"children":2539},{"style":682},[2540],{"type":612,"value":2541},"        width (float): The width of the rectangle\n",{"type":606,"tag":636,"props":2543,"children":2544},{"class":638,"line":81},[2545],{"type":606,"tag":636,"props":2546,"children":2547},{"style":682},[2548],{"type":612,"value":2517},{"type":606,"tag":636,"props":2550,"children":2551},{"class":638,"line":782},[2552],{"type":606,"tag":636,"props":2553,"children":2554},{"style":682},[2555],{"type":612,"value":2556},"    Returns:\n",{"type":606,"tag":636,"props":2558,"children":2559},{"class":638,"line":99},[2560],{"type":606,"tag":636,"props":2561,"children":2562},{"style":682},[2563],{"type":612,"value":2564},"        float: The area of the rectangle\n",{"type":606,"tag":636,"props":2566,"children":2567},{"class":638,"line":108},[2568],{"type":606,"tag":636,"props":2569,"children":2570},{"style":682},[2571],{"type":612,"value":2501},{"type":606,"tag":636,"props":2573,"children":2574},{"class":638,"line":117},[2575,2579,2584,2588],{"type":606,"tag":636,"props":2576,"children":2577},{"style":651},[2578],{"type":612,"value":674},{"type":606,"tag":636,"props":2580,"children":2581},{"style":663},[2582],{"type":612,"value":2583}," length ",{"type":606,"tag":636,"props":2585,"children":2586},{"style":651},[2587],{"type":612,"value":1147},{"type":606,"tag":636,"props":2589,"children":2590},{"style":663},[2591],{"type":612,"value":2592}," width\n",{"type":606,"tag":636,"props":2594,"children":2595},{"class":638,"line":126},[2596],{"type":606,"tag":636,"props":2597,"children":2598},{"emptyLinePlaceholder":13},[2599],{"type":612,"value":714},{"type":606,"tag":636,"props":2601,"children":2602},{"class":638,"line":135},[2603,2607,2612,2617,2621,2626],{"type":606,"tag":636,"props":2604,"children":2605},{"style":651},[2606],{"type":612,"value":654},{"type":606,"tag":636,"props":2608,"children":2609},{"style":657},[2610],{"type":612,"value":2611}," format_currency",{"type":606,"tag":636,"props":2613,"children":2614},{"style":663},[2615],{"type":612,"value":2616},"(amount, currency",{"type":606,"tag":636,"props":2618,"children":2619},{"style":651},[2620],{"type":612,"value":752},{"type":606,"tag":636,"props":2622,"children":2623},{"style":682},[2624],{"type":612,"value":2625},"\"USD\"",{"type":606,"tag":636,"props":2627,"children":2628},{"style":663},[2629],{"type":612,"value":1437},{"type":606,"tag":636,"props":2631,"children":2632},{"class":638,"line":144},[2633],{"type":606,"tag":636,"props":2634,"children":2635},{"style":682},[2636],{"type":612,"value":2637},"    \"\"\"Format amount as currency string.\"\"\"\n",{"type":606,"tag":636,"props":2639,"children":2640},{"class":638,"line":153},[2641,2645,2649,2653,2657,2662,2667,2671,2675,2680,2684],{"type":606,"tag":636,"props":2642,"children":2643},{"style":651},[2644],{"type":612,"value":674},{"type":606,"tag":636,"props":2646,"children":2647},{"style":651},[2648],{"type":612,"value":679},{"type":606,"tag":636,"props":2650,"children":2651},{"style":682},[2652],{"type":612,"value":1199},{"type":606,"tag":636,"props":2654,"children":2655},{"style":688},[2656],{"type":612,"value":691},{"type":606,"tag":636,"props":2658,"children":2659},{"style":663},[2660],{"type":612,"value":2661},"amount",{"type":606,"tag":636,"props":2663,"children":2664},{"style":651},[2665],{"type":612,"value":2666},":.2f",{"type":606,"tag":636,"props":2668,"children":2669},{"style":688},[2670],{"type":612,"value":701},{"type":606,"tag":636,"props":2672,"children":2673},{"style":688},[2674],{"type":612,"value":1217},{"type":606,"tag":636,"props":2676,"children":2677},{"style":663},[2678],{"type":612,"value":2679},"currency",{"type":606,"tag":636,"props":2681,"children":2682},{"style":688},[2683],{"type":612,"value":701},{"type":606,"tag":636,"props":2685,"children":2686},{"style":682},[2687],{"type":612,"value":1231},{"type":606,"tag":636,"props":2689,"children":2690},{"class":638,"line":163},[2691],{"type":606,"tag":636,"props":2692,"children":2693},{"emptyLinePlaceholder":13},[2694],{"type":612,"value":714},{"type":606,"tag":636,"props":2696,"children":2697},{"class":638,"line":172},[2698],{"type":606,"tag":636,"props":2699,"children":2700},{"style":642},[2701],{"type":612,"value":2702},"# Help function shows docstring\n",{"type":606,"tag":636,"props":2704,"children":2705},{"class":638,"line":181},[2706,2711],{"type":606,"tag":636,"props":2707,"children":2708},{"style":688},[2709],{"type":612,"value":2710},"help",{"type":606,"tag":636,"props":2712,"children":2713},{"style":663},[2714],{"type":612,"value":2715},"(calculate_area)\n",{"type":606,"tag":636,"props":2717,"children":2718},{"class":638,"line":190},[2719],{"type":606,"tag":636,"props":2720,"children":2721},{"emptyLinePlaceholder":13},[2722],{"type":612,"value":714},{"type":606,"tag":636,"props":2724,"children":2725},{"class":638,"line":199},[2726],{"type":606,"tag":636,"props":2727,"children":2728},{"style":642},[2729],{"type":612,"value":2730},"# Use the functions\n",{"type":606,"tag":636,"props":2732,"children":2733},{"class":638,"line":208},[2734,2739,2743,2748,2752,2756,2760],{"type":606,"tag":636,"props":2735,"children":2736},{"style":663},[2737],{"type":612,"value":2738},"area ",{"type":606,"tag":636,"props":2740,"children":2741},{"style":651},[2742],{"type":612,"value":752},{"type":606,"tag":636,"props":2744,"children":2745},{"style":663},[2746],{"type":612,"value":2747}," calculate_area(",{"type":606,"tag":636,"props":2749,"children":2750},{"style":688},[2751],{"type":612,"value":844},{"type":606,"tag":636,"props":2753,"children":2754},{"style":663},[2755],{"type":612,"value":849},{"type":606,"tag":636,"props":2757,"children":2758},{"style":688},[2759],{"type":612,"value":854},{"type":606,"tag":636,"props":2761,"children":2762},{"style":663},[2763],{"type":612,"value":822},{"type":606,"tag":636,"props":2765,"children":2766},{"class":638,"line":217},[2767,2772,2776,2781,2786],{"type":606,"tag":636,"props":2768,"children":2769},{"style":663},[2770],{"type":612,"value":2771},"price ",{"type":606,"tag":636,"props":2773,"children":2774},{"style":651},[2775],{"type":612,"value":752},{"type":606,"tag":636,"props":2777,"children":2778},{"style":663},[2779],{"type":612,"value":2780}," format_currency(",{"type":606,"tag":636,"props":2782,"children":2783},{"style":688},[2784],{"type":612,"value":2785},"29.99",{"type":606,"tag":636,"props":2787,"children":2788},{"style":663},[2789],{"type":612,"value":822},{"type":606,"tag":636,"props":2791,"children":2792},{"class":638,"line":227},[2793],{"type":606,"tag":636,"props":2794,"children":2795},{"emptyLinePlaceholder":13},[2796],{"type":612,"value":714},{"type":606,"tag":636,"props":2798,"children":2799},{"class":638,"line":236},[2800,2804,2808,2812,2817,2821,2826,2830,2834],{"type":606,"tag":636,"props":2801,"children":2802},{"style":688},[2803],{"type":612,"value":873},{"type":606,"tag":636,"props":2805,"children":2806},{"style":663},[2807],{"type":612,"value":2199},{"type":606,"tag":636,"props":2809,"children":2810},{"style":651},[2811],{"type":612,"value":2204},{"type":606,"tag":636,"props":2813,"children":2814},{"style":682},[2815],{"type":612,"value":2816},"\"Area: ",{"type":606,"tag":636,"props":2818,"children":2819},{"style":688},[2820],{"type":612,"value":691},{"type":606,"tag":636,"props":2822,"children":2823},{"style":663},[2824],{"type":612,"value":2825},"area",{"type":606,"tag":636,"props":2827,"children":2828},{"style":688},[2829],{"type":612,"value":701},{"type":606,"tag":636,"props":2831,"children":2832},{"style":682},[2833],{"type":612,"value":1199},{"type":606,"tag":636,"props":2835,"children":2836},{"style":663},[2837],{"type":612,"value":822},{"type":606,"tag":636,"props":2839,"children":2840},{"class":638,"line":245},[2841,2845,2849,2853,2858,2862,2867,2871,2875],{"type":606,"tag":636,"props":2842,"children":2843},{"style":688},[2844],{"type":612,"value":873},{"type":606,"tag":636,"props":2846,"children":2847},{"style":663},[2848],{"type":612,"value":2199},{"type":606,"tag":636,"props":2850,"children":2851},{"style":651},[2852],{"type":612,"value":2204},{"type":606,"tag":636,"props":2854,"children":2855},{"style":682},[2856],{"type":612,"value":2857},"\"Price: ",{"type":606,"tag":636,"props":2859,"children":2860},{"style":688},[2861],{"type":612,"value":691},{"type":606,"tag":636,"props":2863,"children":2864},{"style":663},[2865],{"type":612,"value":2866},"price",{"type":606,"tag":636,"props":2868,"children":2869},{"style":688},[2870],{"type":612,"value":701},{"type":606,"tag":636,"props":2872,"children":2873},{"style":682},[2874],{"type":612,"value":1199},{"type":606,"tag":636,"props":2876,"children":2877},{"style":663},[2878],{"type":612,"value":822},{"type":606,"tag":1046,"props":2880,"children":2882},{"id":2881},"function-with-input-validation",[2883],{"type":612,"value":2884},"Function with Input Validation",{"type":606,"tag":621,"props":2886,"children":2887},{},[2888],{"type":606,"tag":625,"props":2889,"children":2891},{"className":627,"code":2890,"language":629,"meta":8,"style":8},"def divide_numbers(a, b):\n    \"\"\"Safely divide two numbers.\"\"\"\n    if b == 0:\n        return \"Error: Cannot divide by zero\"\n    return a / b\n\ndef get_grade(score):\n    \"\"\"Convert numeric score to letter grade.\"\"\"\n    if score >= 90:\n        return \"A\"\n    elif score >= 80:\n        return \"B\"\n    elif score >= 70:\n        return \"C\"\n    elif score >= 60:\n        return \"D\"\n    else:\n        return \"F\"\n\n# Test functions\nresult1 = divide_numbers(10, 2)    # 5.0\nresult2 = divide_numbers(10, 0)    # Error message\n\ngrade1 = get_grade(95)   # A\ngrade2 = get_grade(75)   # C\n\nprint(f\"Division: {result1}\")\nprint(f\"Grade: {grade1}\")\n",[2892],{"type":606,"tag":632,"props":2893,"children":2894},{"__ignoreMap":8},[2895,2911,2919,2947,2960,2979,2986,3003,3011,3037,3049,3074,3086,3110,3122,3146,3158,3170,3182,3189,3197,3237,3274,3281,3312,3342,3349,3390],{"type":606,"tag":636,"props":2896,"children":2897},{"class":638,"line":12},[2898,2902,2907],{"type":606,"tag":636,"props":2899,"children":2900},{"style":651},[2901],{"type":612,"value":654},{"type":606,"tag":636,"props":2903,"children":2904},{"style":657},[2905],{"type":612,"value":2906}," divide_numbers",{"type":606,"tag":636,"props":2908,"children":2909},{"style":663},[2910],{"type":612,"value":739},{"type":606,"tag":636,"props":2912,"children":2913},{"class":638,"line":27},[2914],{"type":606,"tag":636,"props":2915,"children":2916},{"style":682},[2917],{"type":612,"value":2918},"    \"\"\"Safely divide two numbers.\"\"\"\n",{"type":606,"tag":636,"props":2920,"children":2921},{"class":638,"line":36},[2922,2927,2932,2937,2942],{"type":606,"tag":636,"props":2923,"children":2924},{"style":651},[2925],{"type":612,"value":2926},"    if",{"type":606,"tag":636,"props":2928,"children":2929},{"style":663},[2930],{"type":612,"value":2931}," b ",{"type":606,"tag":636,"props":2933,"children":2934},{"style":651},[2935],{"type":612,"value":2936},"==",{"type":606,"tag":636,"props":2938,"children":2939},{"style":688},[2940],{"type":612,"value":2941}," 0",{"type":606,"tag":636,"props":2943,"children":2944},{"style":663},[2945],{"type":612,"value":2946},":\n",{"type":606,"tag":636,"props":2948,"children":2949},{"class":638,"line":45},[2950,2955],{"type":606,"tag":636,"props":2951,"children":2952},{"style":651},[2953],{"type":612,"value":2954},"        return",{"type":606,"tag":636,"props":2956,"children":2957},{"style":682},[2958],{"type":612,"value":2959}," \"Error: Cannot divide by zero\"\n",{"type":606,"tag":636,"props":2961,"children":2962},{"class":638,"line":54},[2963,2967,2971,2975],{"type":606,"tag":636,"props":2964,"children":2965},{"style":651},[2966],{"type":612,"value":674},{"type":606,"tag":636,"props":2968,"children":2969},{"style":663},[2970],{"type":612,"value":757},{"type":606,"tag":636,"props":2972,"children":2973},{"style":651},[2974],{"type":612,"value":2017},{"type":606,"tag":636,"props":2976,"children":2977},{"style":663},[2978],{"type":612,"value":767},{"type":606,"tag":636,"props":2980,"children":2981},{"class":638,"line":63},[2982],{"type":606,"tag":636,"props":2983,"children":2984},{"emptyLinePlaceholder":13},[2985],{"type":612,"value":714},{"type":606,"tag":636,"props":2987,"children":2988},{"class":638,"line":72},[2989,2993,2998],{"type":606,"tag":636,"props":2990,"children":2991},{"style":651},[2992],{"type":612,"value":654},{"type":606,"tag":636,"props":2994,"children":2995},{"style":657},[2996],{"type":612,"value":2997}," get_grade",{"type":606,"tag":636,"props":2999,"children":3000},{"style":663},[3001],{"type":612,"value":3002},"(score):\n",{"type":606,"tag":636,"props":3004,"children":3005},{"class":638,"line":81},[3006],{"type":606,"tag":636,"props":3007,"children":3008},{"style":682},[3009],{"type":612,"value":3010},"    \"\"\"Convert numeric score to letter grade.\"\"\"\n",{"type":606,"tag":636,"props":3012,"children":3013},{"class":638,"line":782},[3014,3018,3023,3028,3033],{"type":606,"tag":636,"props":3015,"children":3016},{"style":651},[3017],{"type":612,"value":2926},{"type":606,"tag":636,"props":3019,"children":3020},{"style":663},[3021],{"type":612,"value":3022}," score ",{"type":606,"tag":636,"props":3024,"children":3025},{"style":651},[3026],{"type":612,"value":3027},">=",{"type":606,"tag":636,"props":3029,"children":3030},{"style":688},[3031],{"type":612,"value":3032}," 90",{"type":606,"tag":636,"props":3034,"children":3035},{"style":663},[3036],{"type":612,"value":2946},{"type":606,"tag":636,"props":3038,"children":3039},{"class":638,"line":99},[3040,3044],{"type":606,"tag":636,"props":3041,"children":3042},{"style":651},[3043],{"type":612,"value":2954},{"type":606,"tag":636,"props":3045,"children":3046},{"style":682},[3047],{"type":612,"value":3048}," \"A\"\n",{"type":606,"tag":636,"props":3050,"children":3051},{"class":638,"line":108},[3052,3057,3061,3065,3070],{"type":606,"tag":636,"props":3053,"children":3054},{"style":651},[3055],{"type":612,"value":3056},"    elif",{"type":606,"tag":636,"props":3058,"children":3059},{"style":663},[3060],{"type":612,"value":3022},{"type":606,"tag":636,"props":3062,"children":3063},{"style":651},[3064],{"type":612,"value":3027},{"type":606,"tag":636,"props":3066,"children":3067},{"style":688},[3068],{"type":612,"value":3069}," 80",{"type":606,"tag":636,"props":3071,"children":3072},{"style":663},[3073],{"type":612,"value":2946},{"type":606,"tag":636,"props":3075,"children":3076},{"class":638,"line":117},[3077,3081],{"type":606,"tag":636,"props":3078,"children":3079},{"style":651},[3080],{"type":612,"value":2954},{"type":606,"tag":636,"props":3082,"children":3083},{"style":682},[3084],{"type":612,"value":3085}," \"B\"\n",{"type":606,"tag":636,"props":3087,"children":3088},{"class":638,"line":126},[3089,3093,3097,3101,3106],{"type":606,"tag":636,"props":3090,"children":3091},{"style":651},[3092],{"type":612,"value":3056},{"type":606,"tag":636,"props":3094,"children":3095},{"style":663},[3096],{"type":612,"value":3022},{"type":606,"tag":636,"props":3098,"children":3099},{"style":651},[3100],{"type":612,"value":3027},{"type":606,"tag":636,"props":3102,"children":3103},{"style":688},[3104],{"type":612,"value":3105}," 70",{"type":606,"tag":636,"props":3107,"children":3108},{"style":663},[3109],{"type":612,"value":2946},{"type":606,"tag":636,"props":3111,"children":3112},{"class":638,"line":135},[3113,3117],{"type":606,"tag":636,"props":3114,"children":3115},{"style":651},[3116],{"type":612,"value":2954},{"type":606,"tag":636,"props":3118,"children":3119},{"style":682},[3120],{"type":612,"value":3121}," \"C\"\n",{"type":606,"tag":636,"props":3123,"children":3124},{"class":638,"line":144},[3125,3129,3133,3137,3142],{"type":606,"tag":636,"props":3126,"children":3127},{"style":651},[3128],{"type":612,"value":3056},{"type":606,"tag":636,"props":3130,"children":3131},{"style":663},[3132],{"type":612,"value":3022},{"type":606,"tag":636,"props":3134,"children":3135},{"style":651},[3136],{"type":612,"value":3027},{"type":606,"tag":636,"props":3138,"children":3139},{"style":688},[3140],{"type":612,"value":3141}," 60",{"type":606,"tag":636,"props":3143,"children":3144},{"style":663},[3145],{"type":612,"value":2946},{"type":606,"tag":636,"props":3147,"children":3148},{"class":638,"line":153},[3149,3153],{"type":606,"tag":636,"props":3150,"children":3151},{"style":651},[3152],{"type":612,"value":2954},{"type":606,"tag":636,"props":3154,"children":3155},{"style":682},[3156],{"type":612,"value":3157}," \"D\"\n",{"type":606,"tag":636,"props":3159,"children":3160},{"class":638,"line":163},[3161,3166],{"type":606,"tag":636,"props":3162,"children":3163},{"style":651},[3164],{"type":612,"value":3165},"    else",{"type":606,"tag":636,"props":3167,"children":3168},{"style":663},[3169],{"type":612,"value":2946},{"type":606,"tag":636,"props":3171,"children":3172},{"class":638,"line":172},[3173,3177],{"type":606,"tag":636,"props":3174,"children":3175},{"style":651},[3176],{"type":612,"value":2954},{"type":606,"tag":636,"props":3178,"children":3179},{"style":682},[3180],{"type":612,"value":3181}," \"F\"\n",{"type":606,"tag":636,"props":3183,"children":3184},{"class":638,"line":181},[3185],{"type":606,"tag":636,"props":3186,"children":3187},{"emptyLinePlaceholder":13},[3188],{"type":612,"value":714},{"type":606,"tag":636,"props":3190,"children":3191},{"class":638,"line":190},[3192],{"type":606,"tag":636,"props":3193,"children":3194},{"style":642},[3195],{"type":612,"value":3196},"# Test functions\n",{"type":606,"tag":636,"props":3198,"children":3199},{"class":638,"line":199},[3200,3205,3209,3214,3219,3223,3227,3232],{"type":606,"tag":636,"props":3201,"children":3202},{"style":663},[3203],{"type":612,"value":3204},"result1 ",{"type":606,"tag":636,"props":3206,"children":3207},{"style":651},[3208],{"type":612,"value":752},{"type":606,"tag":636,"props":3210,"children":3211},{"style":663},[3212],{"type":612,"value":3213}," divide_numbers(",{"type":606,"tag":636,"props":3215,"children":3216},{"style":688},[3217],{"type":612,"value":3218},"10",{"type":606,"tag":636,"props":3220,"children":3221},{"style":663},[3222],{"type":612,"value":849},{"type":606,"tag":636,"props":3224,"children":3225},{"style":688},[3226],{"type":612,"value":2151},{"type":606,"tag":636,"props":3228,"children":3229},{"style":663},[3230],{"type":612,"value":3231},")    ",{"type":606,"tag":636,"props":3233,"children":3234},{"style":642},[3235],{"type":612,"value":3236},"# 5.0\n",{"type":606,"tag":636,"props":3238,"children":3239},{"class":638,"line":208},[3240,3245,3249,3253,3257,3261,3265,3269],{"type":606,"tag":636,"props":3241,"children":3242},{"style":663},[3243],{"type":612,"value":3244},"result2 ",{"type":606,"tag":636,"props":3246,"children":3247},{"style":651},[3248],{"type":612,"value":752},{"type":606,"tag":636,"props":3250,"children":3251},{"style":663},[3252],{"type":612,"value":3213},{"type":606,"tag":636,"props":3254,"children":3255},{"style":688},[3256],{"type":612,"value":3218},{"type":606,"tag":636,"props":3258,"children":3259},{"style":663},[3260],{"type":612,"value":849},{"type":606,"tag":636,"props":3262,"children":3263},{"style":688},[3264],{"type":612,"value":1903},{"type":606,"tag":636,"props":3266,"children":3267},{"style":663},[3268],{"type":612,"value":3231},{"type":606,"tag":636,"props":3270,"children":3271},{"style":642},[3272],{"type":612,"value":3273},"# Error message\n",{"type":606,"tag":636,"props":3275,"children":3276},{"class":638,"line":217},[3277],{"type":606,"tag":636,"props":3278,"children":3279},{"emptyLinePlaceholder":13},[3280],{"type":612,"value":714},{"type":606,"tag":636,"props":3282,"children":3283},{"class":638,"line":227},[3284,3289,3293,3298,3303,3307],{"type":606,"tag":636,"props":3285,"children":3286},{"style":663},[3287],{"type":612,"value":3288},"grade1 ",{"type":606,"tag":636,"props":3290,"children":3291},{"style":651},[3292],{"type":612,"value":752},{"type":606,"tag":636,"props":3294,"children":3295},{"style":663},[3296],{"type":612,"value":3297}," get_grade(",{"type":606,"tag":636,"props":3299,"children":3300},{"style":688},[3301],{"type":612,"value":3302},"95",{"type":606,"tag":636,"props":3304,"children":3305},{"style":663},[3306],{"type":612,"value":1744},{"type":606,"tag":636,"props":3308,"children":3309},{"style":642},[3310],{"type":612,"value":3311},"# A\n",{"type":606,"tag":636,"props":3313,"children":3314},{"class":638,"line":236},[3315,3320,3324,3328,3333,3337],{"type":606,"tag":636,"props":3316,"children":3317},{"style":663},[3318],{"type":612,"value":3319},"grade2 ",{"type":606,"tag":636,"props":3321,"children":3322},{"style":651},[3323],{"type":612,"value":752},{"type":606,"tag":636,"props":3325,"children":3326},{"style":663},[3327],{"type":612,"value":3297},{"type":606,"tag":636,"props":3329,"children":3330},{"style":688},[3331],{"type":612,"value":3332},"75",{"type":606,"tag":636,"props":3334,"children":3335},{"style":663},[3336],{"type":612,"value":1744},{"type":606,"tag":636,"props":3338,"children":3339},{"style":642},[3340],{"type":612,"value":3341},"# C\n",{"type":606,"tag":636,"props":3343,"children":3344},{"class":638,"line":245},[3345],{"type":606,"tag":636,"props":3346,"children":3347},{"emptyLinePlaceholder":13},[3348],{"type":612,"value":714},{"type":606,"tag":636,"props":3350,"children":3351},{"class":638,"line":254},[3352,3356,3360,3364,3369,3373,3378,3382,3386],{"type":606,"tag":636,"props":3353,"children":3354},{"style":688},[3355],{"type":612,"value":873},{"type":606,"tag":636,"props":3357,"children":3358},{"style":663},[3359],{"type":612,"value":2199},{"type":606,"tag":636,"props":3361,"children":3362},{"style":651},[3363],{"type":612,"value":2204},{"type":606,"tag":636,"props":3365,"children":3366},{"style":682},[3367],{"type":612,"value":3368},"\"Division: ",{"type":606,"tag":636,"props":3370,"children":3371},{"style":688},[3372],{"type":612,"value":691},{"type":606,"tag":636,"props":3374,"children":3375},{"style":663},[3376],{"type":612,"value":3377},"result1",{"type":606,"tag":636,"props":3379,"children":3380},{"style":688},[3381],{"type":612,"value":701},{"type":606,"tag":636,"props":3383,"children":3384},{"style":682},[3385],{"type":612,"value":1199},{"type":606,"tag":636,"props":3387,"children":3388},{"style":663},[3389],{"type":612,"value":822},{"type":606,"tag":636,"props":3391,"children":3392},{"class":638,"line":263},[3393,3397,3401,3405,3410,3414,3419,3423,3427],{"type":606,"tag":636,"props":3394,"children":3395},{"style":688},[3396],{"type":612,"value":873},{"type":606,"tag":636,"props":3398,"children":3399},{"style":663},[3400],{"type":612,"value":2199},{"type":606,"tag":636,"props":3402,"children":3403},{"style":651},[3404],{"type":612,"value":2204},{"type":606,"tag":636,"props":3406,"children":3407},{"style":682},[3408],{"type":612,"value":3409},"\"Grade: ",{"type":606,"tag":636,"props":3411,"children":3412},{"style":688},[3413],{"type":612,"value":691},{"type":606,"tag":636,"props":3415,"children":3416},{"style":663},[3417],{"type":612,"value":3418},"grade1",{"type":606,"tag":636,"props":3420,"children":3421},{"style":688},[3422],{"type":612,"value":701},{"type":606,"tag":636,"props":3424,"children":3425},{"style":682},[3426],{"type":612,"value":1199},{"type":606,"tag":636,"props":3428,"children":3429},{"style":663},[3430],{"type":612,"value":822},{"type":606,"tag":1046,"props":3432,"children":3434},{"id":3433},"functions-with-lists-and-dictionaries",[3435],{"type":612,"value":3436},"Functions with Lists and Dictionaries",{"type":606,"tag":621,"props":3438,"children":3439},{},[3440],{"type":606,"tag":625,"props":3441,"children":3443},{"className":627,"code":3442,"language":629,"meta":8,"style":8},"def process_scores(scores):\n    \"\"\"Process a list of test scores.\"\"\"\n    if not scores:\n        return \"No scores provided\"\n    \n    average = sum(scores) / len(scores)\n    highest = max(scores)\n    lowest = min(scores)\n    \n    return {\n        \"average\": average,\n        \"highest\": highest,\n        \"lowest\": lowest,\n        \"count\": len(scores)\n    }\n\ndef create_person(name, age, city=\"Unknown\"):\n    \"\"\"Create a person dictionary.\"\"\"\n    return {\n        \"name\": name,\n        \"age\": age,\n        \"city\": city\n    }\n\n# Test functions\ntest_scores = [85, 92, 78, 96, 83]\nstats = process_scores(test_scores)\n\nperson = create_person(\"Alice\", 30, \"New York\")\n\nprint(f\"Score stats: {stats}\")\nprint(f\"Person: {person}\")\n",[3444],{"type":606,"tag":632,"props":3445,"children":3446},{"__ignoreMap":8},[3447,3464,3472,3489,3501,3508,3541,3561,3581,3588,3600,3613,3626,3639,3661,3669,3676,3706,3714,3725,3738,3751,3764,3771,3778,3785,3847,3864,3871,3914,3921,3962],{"type":606,"tag":636,"props":3448,"children":3449},{"class":638,"line":12},[3450,3454,3459],{"type":606,"tag":636,"props":3451,"children":3452},{"style":651},[3453],{"type":612,"value":654},{"type":606,"tag":636,"props":3455,"children":3456},{"style":657},[3457],{"type":612,"value":3458}," process_scores",{"type":606,"tag":636,"props":3460,"children":3461},{"style":663},[3462],{"type":612,"value":3463},"(scores):\n",{"type":606,"tag":636,"props":3465,"children":3466},{"class":638,"line":27},[3467],{"type":606,"tag":636,"props":3468,"children":3469},{"style":682},[3470],{"type":612,"value":3471},"    \"\"\"Process a list of test scores.\"\"\"\n",{"type":606,"tag":636,"props":3473,"children":3474},{"class":638,"line":36},[3475,3479,3484],{"type":606,"tag":636,"props":3476,"children":3477},{"style":651},[3478],{"type":612,"value":2926},{"type":606,"tag":636,"props":3480,"children":3481},{"style":651},[3482],{"type":612,"value":3483}," not",{"type":606,"tag":636,"props":3485,"children":3486},{"style":663},[3487],{"type":612,"value":3488}," scores:\n",{"type":606,"tag":636,"props":3490,"children":3491},{"class":638,"line":45},[3492,3496],{"type":606,"tag":636,"props":3493,"children":3494},{"style":651},[3495],{"type":612,"value":2954},{"type":606,"tag":636,"props":3497,"children":3498},{"style":682},[3499],{"type":612,"value":3500}," \"No scores provided\"\n",{"type":606,"tag":636,"props":3502,"children":3503},{"class":638,"line":54},[3504],{"type":606,"tag":636,"props":3505,"children":3506},{"style":663},[3507],{"type":612,"value":2517},{"type":606,"tag":636,"props":3509,"children":3510},{"class":638,"line":63},[3511,3515,3519,3523,3528,3532,3536],{"type":606,"tag":636,"props":3512,"children":3513},{"style":663},[3514],{"type":612,"value":2003},{"type":606,"tag":636,"props":3516,"children":3517},{"style":651},[3518],{"type":612,"value":752},{"type":606,"tag":636,"props":3520,"children":3521},{"style":688},[3522],{"type":612,"value":1990},{"type":606,"tag":636,"props":3524,"children":3525},{"style":663},[3526],{"type":612,"value":3527},"(scores) ",{"type":606,"tag":636,"props":3529,"children":3530},{"style":651},[3531],{"type":612,"value":2017},{"type":606,"tag":636,"props":3533,"children":3534},{"style":688},[3535],{"type":612,"value":2022},{"type":606,"tag":636,"props":3537,"children":3538},{"style":663},[3539],{"type":612,"value":3540},"(scores)\n",{"type":606,"tag":636,"props":3542,"children":3543},{"class":638,"line":72},[3544,3549,3553,3557],{"type":606,"tag":636,"props":3545,"children":3546},{"style":663},[3547],{"type":612,"value":3548},"    highest ",{"type":606,"tag":636,"props":3550,"children":3551},{"style":651},[3552],{"type":612,"value":752},{"type":606,"tag":636,"props":3554,"children":3555},{"style":688},[3556],{"type":612,"value":2064},{"type":606,"tag":636,"props":3558,"children":3559},{"style":663},[3560],{"type":612,"value":3540},{"type":606,"tag":636,"props":3562,"children":3563},{"class":638,"line":81},[3564,3569,3573,3577],{"type":606,"tag":636,"props":3565,"children":3566},{"style":663},[3567],{"type":612,"value":3568},"    lowest ",{"type":606,"tag":636,"props":3570,"children":3571},{"style":651},[3572],{"type":612,"value":752},{"type":606,"tag":636,"props":3574,"children":3575},{"style":688},[3576],{"type":612,"value":2043},{"type":606,"tag":636,"props":3578,"children":3579},{"style":663},[3580],{"type":612,"value":3540},{"type":606,"tag":636,"props":3582,"children":3583},{"class":638,"line":782},[3584],{"type":606,"tag":636,"props":3585,"children":3586},{"style":663},[3587],{"type":612,"value":2517},{"type":606,"tag":636,"props":3589,"children":3590},{"class":638,"line":99},[3591,3595],{"type":606,"tag":636,"props":3592,"children":3593},{"style":651},[3594],{"type":612,"value":674},{"type":606,"tag":636,"props":3596,"children":3597},{"style":663},[3598],{"type":612,"value":3599}," {\n",{"type":606,"tag":636,"props":3601,"children":3602},{"class":638,"line":108},[3603,3608],{"type":606,"tag":636,"props":3604,"children":3605},{"style":682},[3606],{"type":612,"value":3607},"        \"average\"",{"type":606,"tag":636,"props":3609,"children":3610},{"style":663},[3611],{"type":612,"value":3612},": average,\n",{"type":606,"tag":636,"props":3614,"children":3615},{"class":638,"line":117},[3616,3621],{"type":606,"tag":636,"props":3617,"children":3618},{"style":682},[3619],{"type":612,"value":3620},"        \"highest\"",{"type":606,"tag":636,"props":3622,"children":3623},{"style":663},[3624],{"type":612,"value":3625},": highest,\n",{"type":606,"tag":636,"props":3627,"children":3628},{"class":638,"line":126},[3629,3634],{"type":606,"tag":636,"props":3630,"children":3631},{"style":682},[3632],{"type":612,"value":3633},"        \"lowest\"",{"type":606,"tag":636,"props":3635,"children":3636},{"style":663},[3637],{"type":612,"value":3638},": lowest,\n",{"type":606,"tag":636,"props":3640,"children":3641},{"class":638,"line":135},[3642,3647,3652,3657],{"type":606,"tag":636,"props":3643,"children":3644},{"style":682},[3645],{"type":612,"value":3646},"        \"count\"",{"type":606,"tag":636,"props":3648,"children":3649},{"style":663},[3650],{"type":612,"value":3651},": ",{"type":606,"tag":636,"props":3653,"children":3654},{"style":688},[3655],{"type":612,"value":3656},"len",{"type":606,"tag":636,"props":3658,"children":3659},{"style":663},[3660],{"type":612,"value":3540},{"type":606,"tag":636,"props":3662,"children":3663},{"class":638,"line":144},[3664],{"type":606,"tag":636,"props":3665,"children":3666},{"style":663},[3667],{"type":612,"value":3668},"    }\n",{"type":606,"tag":636,"props":3670,"children":3671},{"class":638,"line":153},[3672],{"type":606,"tag":636,"props":3673,"children":3674},{"emptyLinePlaceholder":13},[3675],{"type":612,"value":714},{"type":606,"tag":636,"props":3677,"children":3678},{"class":638,"line":163},[3679,3683,3688,3693,3697,3702],{"type":606,"tag":636,"props":3680,"children":3681},{"style":651},[3682],{"type":612,"value":654},{"type":606,"tag":636,"props":3684,"children":3685},{"style":657},[3686],{"type":612,"value":3687}," create_person",{"type":606,"tag":636,"props":3689,"children":3690},{"style":663},[3691],{"type":612,"value":3692},"(name, age, city",{"type":606,"tag":636,"props":3694,"children":3695},{"style":651},[3696],{"type":612,"value":752},{"type":606,"tag":636,"props":3698,"children":3699},{"style":682},[3700],{"type":612,"value":3701},"\"Unknown\"",{"type":606,"tag":636,"props":3703,"children":3704},{"style":663},[3705],{"type":612,"value":1437},{"type":606,"tag":636,"props":3707,"children":3708},{"class":638,"line":172},[3709],{"type":606,"tag":636,"props":3710,"children":3711},{"style":682},[3712],{"type":612,"value":3713},"    \"\"\"Create a person dictionary.\"\"\"\n",{"type":606,"tag":636,"props":3715,"children":3716},{"class":638,"line":181},[3717,3721],{"type":606,"tag":636,"props":3718,"children":3719},{"style":651},[3720],{"type":612,"value":674},{"type":606,"tag":636,"props":3722,"children":3723},{"style":663},[3724],{"type":612,"value":3599},{"type":606,"tag":636,"props":3726,"children":3727},{"class":638,"line":190},[3728,3733],{"type":606,"tag":636,"props":3729,"children":3730},{"style":682},[3731],{"type":612,"value":3732},"        \"name\"",{"type":606,"tag":636,"props":3734,"children":3735},{"style":663},[3736],{"type":612,"value":3737},": name,\n",{"type":606,"tag":636,"props":3739,"children":3740},{"class":638,"line":199},[3741,3746],{"type":606,"tag":636,"props":3742,"children":3743},{"style":682},[3744],{"type":612,"value":3745},"        \"age\"",{"type":606,"tag":636,"props":3747,"children":3748},{"style":663},[3749],{"type":612,"value":3750},": age,\n",{"type":606,"tag":636,"props":3752,"children":3753},{"class":638,"line":208},[3754,3759],{"type":606,"tag":636,"props":3755,"children":3756},{"style":682},[3757],{"type":612,"value":3758},"        \"city\"",{"type":606,"tag":636,"props":3760,"children":3761},{"style":663},[3762],{"type":612,"value":3763},": city\n",{"type":606,"tag":636,"props":3765,"children":3766},{"class":638,"line":217},[3767],{"type":606,"tag":636,"props":3768,"children":3769},{"style":663},[3770],{"type":612,"value":3668},{"type":606,"tag":636,"props":3772,"children":3773},{"class":638,"line":227},[3774],{"type":606,"tag":636,"props":3775,"children":3776},{"emptyLinePlaceholder":13},[3777],{"type":612,"value":714},{"type":606,"tag":636,"props":3779,"children":3780},{"class":638,"line":236},[3781],{"type":606,"tag":636,"props":3782,"children":3783},{"style":642},[3784],{"type":612,"value":3196},{"type":606,"tag":636,"props":3786,"children":3787},{"class":638,"line":245},[3788,3793,3797,3802,3807,3811,3816,3820,3825,3829,3834,3838,3843],{"type":606,"tag":636,"props":3789,"children":3790},{"style":663},[3791],{"type":612,"value":3792},"test_scores ",{"type":606,"tag":636,"props":3794,"children":3795},{"style":651},[3796],{"type":612,"value":752},{"type":606,"tag":636,"props":3798,"children":3799},{"style":663},[3800],{"type":612,"value":3801}," [",{"type":606,"tag":636,"props":3803,"children":3804},{"style":688},[3805],{"type":612,"value":3806},"85",{"type":606,"tag":636,"props":3808,"children":3809},{"style":663},[3810],{"type":612,"value":849},{"type":606,"tag":636,"props":3812,"children":3813},{"style":688},[3814],{"type":612,"value":3815},"92",{"type":606,"tag":636,"props":3817,"children":3818},{"style":663},[3819],{"type":612,"value":849},{"type":606,"tag":636,"props":3821,"children":3822},{"style":688},[3823],{"type":612,"value":3824},"78",{"type":606,"tag":636,"props":3826,"children":3827},{"style":663},[3828],{"type":612,"value":849},{"type":606,"tag":636,"props":3830,"children":3831},{"style":688},[3832],{"type":612,"value":3833},"96",{"type":606,"tag":636,"props":3835,"children":3836},{"style":663},[3837],{"type":612,"value":849},{"type":606,"tag":636,"props":3839,"children":3840},{"style":688},[3841],{"type":612,"value":3842},"83",{"type":606,"tag":636,"props":3844,"children":3845},{"style":663},[3846],{"type":612,"value":1908},{"type":606,"tag":636,"props":3848,"children":3849},{"class":638,"line":254},[3850,3855,3859],{"type":606,"tag":636,"props":3851,"children":3852},{"style":663},[3853],{"type":612,"value":3854},"stats ",{"type":606,"tag":636,"props":3856,"children":3857},{"style":651},[3858],{"type":612,"value":752},{"type":606,"tag":636,"props":3860,"children":3861},{"style":663},[3862],{"type":612,"value":3863}," process_scores(test_scores)\n",{"type":606,"tag":636,"props":3865,"children":3866},{"class":638,"line":263},[3867],{"type":606,"tag":636,"props":3868,"children":3869},{"emptyLinePlaceholder":13},[3870],{"type":612,"value":714},{"type":606,"tag":636,"props":3872,"children":3873},{"class":638,"line":272},[3874,3879,3883,3888,3892,3896,3901,3905,3910],{"type":606,"tag":636,"props":3875,"children":3876},{"style":663},[3877],{"type":612,"value":3878},"person ",{"type":606,"tag":636,"props":3880,"children":3881},{"style":651},[3882],{"type":612,"value":752},{"type":606,"tag":636,"props":3884,"children":3885},{"style":663},[3886],{"type":612,"value":3887}," create_person(",{"type":606,"tag":636,"props":3889,"children":3890},{"style":682},[3891],{"type":612,"value":817},{"type":606,"tag":636,"props":3893,"children":3894},{"style":663},[3895],{"type":612,"value":849},{"type":606,"tag":636,"props":3897,"children":3898},{"style":688},[3899],{"type":612,"value":3900},"30",{"type":606,"tag":636,"props":3902,"children":3903},{"style":663},[3904],{"type":612,"value":849},{"type":606,"tag":636,"props":3906,"children":3907},{"style":682},[3908],{"type":612,"value":3909},"\"New York\"",{"type":606,"tag":636,"props":3911,"children":3912},{"style":663},[3913],{"type":612,"value":822},{"type":606,"tag":636,"props":3915,"children":3916},{"class":638,"line":281},[3917],{"type":606,"tag":636,"props":3918,"children":3919},{"emptyLinePlaceholder":13},[3920],{"type":612,"value":714},{"type":606,"tag":636,"props":3922,"children":3923},{"class":638,"line":291},[3924,3928,3932,3936,3941,3945,3950,3954,3958],{"type":606,"tag":636,"props":3925,"children":3926},{"style":688},[3927],{"type":612,"value":873},{"type":606,"tag":636,"props":3929,"children":3930},{"style":663},[3931],{"type":612,"value":2199},{"type":606,"tag":636,"props":3933,"children":3934},{"style":651},[3935],{"type":612,"value":2204},{"type":606,"tag":636,"props":3937,"children":3938},{"style":682},[3939],{"type":612,"value":3940},"\"Score stats: ",{"type":606,"tag":636,"props":3942,"children":3943},{"style":688},[3944],{"type":612,"value":691},{"type":606,"tag":636,"props":3946,"children":3947},{"style":663},[3948],{"type":612,"value":3949},"stats",{"type":606,"tag":636,"props":3951,"children":3952},{"style":688},[3953],{"type":612,"value":701},{"type":606,"tag":636,"props":3955,"children":3956},{"style":682},[3957],{"type":612,"value":1199},{"type":606,"tag":636,"props":3959,"children":3960},{"style":663},[3961],{"type":612,"value":822},{"type":606,"tag":636,"props":3963,"children":3964},{"class":638,"line":302},[3965,3969,3973,3977,3982,3986,3991,3995,3999],{"type":606,"tag":636,"props":3966,"children":3967},{"style":688},[3968],{"type":612,"value":873},{"type":606,"tag":636,"props":3970,"children":3971},{"style":663},[3972],{"type":612,"value":2199},{"type":606,"tag":636,"props":3974,"children":3975},{"style":651},[3976],{"type":612,"value":2204},{"type":606,"tag":636,"props":3978,"children":3979},{"style":682},[3980],{"type":612,"value":3981},"\"Person: ",{"type":606,"tag":636,"props":3983,"children":3984},{"style":688},[3985],{"type":612,"value":691},{"type":606,"tag":636,"props":3987,"children":3988},{"style":663},[3989],{"type":612,"value":3990},"person",{"type":606,"tag":636,"props":3992,"children":3993},{"style":688},[3994],{"type":612,"value":701},{"type":606,"tag":636,"props":3996,"children":3997},{"style":682},[3998],{"type":612,"value":1199},{"type":606,"tag":636,"props":4000,"children":4001},{"style":663},[4002],{"type":612,"value":822},{"type":606,"tag":902,"props":4004,"children":4006},{"id":4005},"function-best-practices",[4007],{"type":612,"value":4008},"📊 Function Best Practices",{"type":606,"tag":2313,"props":4010,"children":4011},{},[4012,4033],{"type":606,"tag":2317,"props":4013,"children":4014},{},[4015],{"type":606,"tag":2321,"props":4016,"children":4017},{},[4018,4023,4028],{"type":606,"tag":2325,"props":4019,"children":4020},{},[4021],{"type":612,"value":4022},"Practice",{"type":606,"tag":2325,"props":4024,"children":4025},{},[4026],{"type":612,"value":4027},"Good Example",{"type":606,"tag":2325,"props":4029,"children":4030},{},[4031],{"type":612,"value":4032},"Avoid",{"type":606,"tag":2341,"props":4034,"children":4035},{},[4036,4062,4080,4101,4119],{"type":606,"tag":2321,"props":4037,"children":4038},{},[4039,4044,4053],{"type":606,"tag":2348,"props":4040,"children":4041},{},[4042],{"type":612,"value":4043},"Clear names",{"type":606,"tag":2348,"props":4045,"children":4046},{},[4047],{"type":606,"tag":632,"props":4048,"children":4050},{"className":4049},[],[4051],{"type":612,"value":4052},"calculate_total()",{"type":606,"tag":2348,"props":4054,"children":4055},{},[4056],{"type":606,"tag":632,"props":4057,"children":4059},{"className":4058},[],[4060],{"type":612,"value":4061},"calc()",{"type":606,"tag":2321,"props":4063,"children":4064},{},[4065,4070,4075],{"type":606,"tag":2348,"props":4066,"children":4067},{},[4068],{"type":612,"value":4069},"Single purpose",{"type":606,"tag":2348,"props":4071,"children":4072},{},[4073],{"type":612,"value":4074},"One task per function",{"type":606,"tag":2348,"props":4076,"children":4077},{},[4078],{"type":612,"value":4079},"Multiple unrelated tasks",{"type":606,"tag":2321,"props":4081,"children":4082},{},[4083,4088,4096],{"type":606,"tag":2348,"props":4084,"children":4085},{},[4086],{"type":612,"value":4087},"Return values",{"type":606,"tag":2348,"props":4089,"children":4090},{},[4091],{"type":606,"tag":632,"props":4092,"children":4094},{"className":4093},[],[4095],{"type":612,"value":2432},{"type":606,"tag":2348,"props":4097,"children":4098},{},[4099],{"type":612,"value":4100},"Only print statements",{"type":606,"tag":2321,"props":4102,"children":4103},{},[4104,4109,4114],{"type":606,"tag":2348,"props":4105,"children":4106},{},[4107],{"type":612,"value":4108},"Document functions",{"type":606,"tag":2348,"props":4110,"children":4111},{},[4112],{"type":612,"value":4113},"Add docstrings",{"type":606,"tag":2348,"props":4115,"children":4116},{},[4117],{"type":612,"value":4118},"No documentation",{"type":606,"tag":2321,"props":4120,"children":4121},{},[4122,4127,4132],{"type":606,"tag":2348,"props":4123,"children":4124},{},[4125],{"type":612,"value":4126},"Handle errors",{"type":606,"tag":2348,"props":4128,"children":4129},{},[4130],{"type":612,"value":4131},"Check inputs",{"type":606,"tag":2348,"props":4133,"children":4134},{},[4135],{"type":612,"value":4136},"Assume inputs are valid",{"type":606,"tag":902,"props":4138,"children":4140},{"id":4139},"key-takeaways",[4141],{"type":612,"value":4142},"🎯 Key Takeaways",{"type":606,"tag":914,"props":4144,"children":4148},{"emoji":4145,"title":4146,"type":4147},"📚","Function Essentials","success",[4149,4157,4193,4201,4224,4232,4255],{"type":606,"tag":615,"props":4150,"children":4151},{},[4152],{"type":606,"tag":981,"props":4153,"children":4154},{},[4155],{"type":612,"value":4156},"Creating Functions:",{"type":606,"tag":987,"props":4158,"children":4159},{},[4160,4172,4177,4182],{"type":606,"tag":991,"props":4161,"children":4162},{},[4163,4165,4170],{"type":612,"value":4164},"Use ",{"type":606,"tag":632,"props":4166,"children":4168},{"className":4167},[],[4169],{"type":612,"value":654},{"type":612,"value":4171}," keyword followed by function name",{"type":606,"tag":991,"props":4173,"children":4174},{},[4175],{"type":612,"value":4176},"Add parameters in parentheses",{"type":606,"tag":991,"props":4178,"children":4179},{},[4180],{"type":612,"value":4181},"Indent function body",{"type":606,"tag":991,"props":4183,"children":4184},{},[4185,4186,4191],{"type":612,"value":4164},{"type":606,"tag":632,"props":4187,"children":4189},{"className":4188},[],[4190],{"type":612,"value":1031},{"type":612,"value":4192}," to output values",{"type":606,"tag":615,"props":4194,"children":4195},{},[4196],{"type":606,"tag":981,"props":4197,"children":4198},{},[4199],{"type":612,"value":4200},"Function Features:",{"type":606,"tag":987,"props":4202,"children":4203},{},[4204,4209,4214,4219],{"type":606,"tag":991,"props":4205,"children":4206},{},[4207],{"type":612,"value":4208},"Default parameter values",{"type":606,"tag":991,"props":4210,"children":4211},{},[4212],{"type":612,"value":4213},"Multiple return values",{"type":606,"tag":991,"props":4215,"children":4216},{},[4217],{"type":612,"value":4218},"Docstrings for documentation",{"type":606,"tag":991,"props":4220,"children":4221},{},[4222],{"type":612,"value":4223},"Input validation",{"type":606,"tag":615,"props":4225,"children":4226},{},[4227],{"type":606,"tag":981,"props":4228,"children":4229},{},[4230],{"type":612,"value":4231},"Best Practices:",{"type":606,"tag":987,"props":4233,"children":4234},{},[4235,4240,4245,4250],{"type":606,"tag":991,"props":4236,"children":4237},{},[4238],{"type":612,"value":4239},"Give functions descriptive names",{"type":606,"tag":991,"props":4241,"children":4242},{},[4243],{"type":612,"value":4244},"Keep functions focused on one task",{"type":606,"tag":991,"props":4246,"children":4247},{},[4248],{"type":612,"value":4249},"Add documentation with docstrings",{"type":606,"tag":991,"props":4251,"children":4252},{},[4253],{"type":612,"value":4254},"Return values instead of just printing",{"type":606,"tag":615,"props":4256,"children":4257},{},[4258,4263],{"type":606,"tag":981,"props":4259,"children":4260},{},[4261],{"type":612,"value":4262},"Remember:",{"type":612,"value":4264}," Functions make your code reusable and easier to test!",{"type":606,"tag":902,"props":4266,"children":4268},{"id":4267},"whats-next",[4269],{"type":612,"value":4270},"🚀 What's Next?",{"type":606,"tag":615,"props":4272,"children":4273},{},[4274],{"type":612,"value":4275},"Learn how to make your functions more flexible with *args and **kwargs for variable arguments.",{"type":606,"tag":615,"props":4277,"children":4278},{},[4279,4284,4285],{"type":606,"tag":981,"props":4280,"children":4281},{},[4282],{"type":612,"value":4283},"Continue to",{"type":612,"value":3651},{"type":606,"tag":4286,"props":4287,"children":4288},"a",{"href":428},[4289],{"type":612,"value":429},{"type":606,"tag":4291,"props":4292,"children":4293},"style",{},[4294],{"type":612,"value":4295},"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":4297},[4298,4303,4304,4309,4310,4311],{"id":904,"depth":27,"text":907,"children":4299},[4300,4301,4302],{"id":1048,"depth":36,"text":1051},{"id":1385,"depth":36,"text":1388},{"id":1826,"depth":36,"text":1829},{"id":2308,"depth":27,"text":2311},{"id":2457,"depth":27,"text":2460,"children":4305},[4306,4307,4308],{"id":2463,"depth":36,"text":2466},{"id":2881,"depth":36,"text":2884},{"id":3433,"depth":36,"text":3436},{"id":4005,"depth":27,"text":4008},{"id":4139,"depth":27,"text":4142},{"id":4267,"depth":27,"text":4270},1782373761373]