[{"data":1,"prerenderedAt":5521},["ShallowReactive",2],{"tutorials-python-how-to":3,"category-items-python-how-to":600,"content-/python-how-to/use-args-kwargs":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",[427],{"_path":428,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":429,"description":430,"slug":431,"parentId":408,"order":432,"body":602,"_type":15,"_id":433,"_source":17,"_file":434,"_stem":435,"_extension":20},{"type":603,"children":604,"toc":5501},"root",[605,614,620,1298,1305,1310,1388,1395,1889,1895,2357,2363,2821,2827,2934,2940,2946,3495,3501,3881,3887,4620,4626,4736,4742,4748,5065,5071,5341,5347,5470,5476,5481,5495],{"type":606,"tag":607,"props":608,"children":610},"element","h1",{"id":609},"using-args-and-kwargs",[611],{"type":612,"value":613},"text","🔗 Using *args and **kwargs",{"type":606,"tag":615,"props":616,"children":617},"p",{},[618],{"type":612,"value":619},"*args and **kwargs allow functions to accept variable numbers of arguments, making your functions more flexible and reusable. They're essential for creating functions that can handle different numbers of inputs.",{"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","# Function with *args (variable positional arguments)\ndef sum_numbers(*args):\n    total = 0\n    for number in args:\n        total += number\n    return total\n\n# Function with **kwargs (variable keyword arguments)\ndef create_profile(**kwargs):\n    profile = {}\n    for key, value in kwargs.items():\n        profile[key] = value\n    return profile\n\n# Using the functions\nresult1 = sum_numbers(1, 2, 3)\nresult2 = sum_numbers(10, 20, 30, 40, 50)\n\nprofile1 = create_profile(name=\"Alice\", age=30)\nprofile2 = create_profile(name=\"Bob\", age=25, city=\"New York\")\n\nprint(f\"Sum1: {result1}\")  # Sum1: 6\nprint(f\"Sum2: {result2}\")  # Sum2: 150\nprint(f\"Profile1: {profile1}\")\nprint(f\"Profile2: {profile2}\")\n","python",[631],{"type":606,"tag":632,"props":633,"children":634},"code",{"__ignoreMap":8},[635,646,677,696,719,737,750,758,766,793,810,831,848,860,867,875,921,982,989,1043,1111,1118,1170,1216,1257],{"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},"# Function with *args (variable positional arguments)\n",{"type":606,"tag":636,"props":647,"children":648},{"class":638,"line":27},[649,655,661,667,672],{"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}," sum_numbers",{"type":606,"tag":636,"props":662,"children":664},{"style":663},"--shiki-default:#24292E;--shiki-app-dark-mode:#E1E4E8",[665],{"type":612,"value":666},"(",{"type":606,"tag":636,"props":668,"children":669},{"style":651},[670],{"type":612,"value":671},"*",{"type":606,"tag":636,"props":673,"children":674},{"style":663},[675],{"type":612,"value":676},"args):\n",{"type":606,"tag":636,"props":678,"children":679},{"class":638,"line":36},[680,685,690],{"type":606,"tag":636,"props":681,"children":682},{"style":663},[683],{"type":612,"value":684},"    total ",{"type":606,"tag":636,"props":686,"children":687},{"style":651},[688],{"type":612,"value":689},"=",{"type":606,"tag":636,"props":691,"children":693},{"style":692},"--shiki-default:#005CC5;--shiki-app-dark-mode:#79B8FF",[694],{"type":612,"value":695}," 0\n",{"type":606,"tag":636,"props":697,"children":698},{"class":638,"line":45},[699,704,709,714],{"type":606,"tag":636,"props":700,"children":701},{"style":651},[702],{"type":612,"value":703},"    for",{"type":606,"tag":636,"props":705,"children":706},{"style":663},[707],{"type":612,"value":708}," number ",{"type":606,"tag":636,"props":710,"children":711},{"style":651},[712],{"type":612,"value":713},"in",{"type":606,"tag":636,"props":715,"children":716},{"style":663},[717],{"type":612,"value":718}," args:\n",{"type":606,"tag":636,"props":720,"children":721},{"class":638,"line":54},[722,727,732],{"type":606,"tag":636,"props":723,"children":724},{"style":663},[725],{"type":612,"value":726},"        total ",{"type":606,"tag":636,"props":728,"children":729},{"style":651},[730],{"type":612,"value":731},"+=",{"type":606,"tag":636,"props":733,"children":734},{"style":663},[735],{"type":612,"value":736}," number\n",{"type":606,"tag":636,"props":738,"children":739},{"class":638,"line":63},[740,745],{"type":606,"tag":636,"props":741,"children":742},{"style":651},[743],{"type":612,"value":744},"    return",{"type":606,"tag":636,"props":746,"children":747},{"style":663},[748],{"type":612,"value":749}," total\n",{"type":606,"tag":636,"props":751,"children":752},{"class":638,"line":72},[753],{"type":606,"tag":636,"props":754,"children":755},{"emptyLinePlaceholder":13},[756],{"type":612,"value":757},"\n",{"type":606,"tag":636,"props":759,"children":760},{"class":638,"line":81},[761],{"type":606,"tag":636,"props":762,"children":763},{"style":642},[764],{"type":612,"value":765},"# Function with **kwargs (variable keyword arguments)\n",{"type":606,"tag":636,"props":767,"children":769},{"class":638,"line":768},9,[770,774,779,783,788],{"type":606,"tag":636,"props":771,"children":772},{"style":651},[773],{"type":612,"value":654},{"type":606,"tag":636,"props":775,"children":776},{"style":657},[777],{"type":612,"value":778}," create_profile",{"type":606,"tag":636,"props":780,"children":781},{"style":663},[782],{"type":612,"value":666},{"type":606,"tag":636,"props":784,"children":785},{"style":651},[786],{"type":612,"value":787},"**",{"type":606,"tag":636,"props":789,"children":790},{"style":663},[791],{"type":612,"value":792},"kwargs):\n",{"type":606,"tag":636,"props":794,"children":795},{"class":638,"line":99},[796,801,805],{"type":606,"tag":636,"props":797,"children":798},{"style":663},[799],{"type":612,"value":800},"    profile ",{"type":606,"tag":636,"props":802,"children":803},{"style":651},[804],{"type":612,"value":689},{"type":606,"tag":636,"props":806,"children":807},{"style":663},[808],{"type":612,"value":809}," {}\n",{"type":606,"tag":636,"props":811,"children":812},{"class":638,"line":108},[813,817,822,826],{"type":606,"tag":636,"props":814,"children":815},{"style":651},[816],{"type":612,"value":703},{"type":606,"tag":636,"props":818,"children":819},{"style":663},[820],{"type":612,"value":821}," key, value ",{"type":606,"tag":636,"props":823,"children":824},{"style":651},[825],{"type":612,"value":713},{"type":606,"tag":636,"props":827,"children":828},{"style":663},[829],{"type":612,"value":830}," kwargs.items():\n",{"type":606,"tag":636,"props":832,"children":833},{"class":638,"line":117},[834,839,843],{"type":606,"tag":636,"props":835,"children":836},{"style":663},[837],{"type":612,"value":838},"        profile[key] ",{"type":606,"tag":636,"props":840,"children":841},{"style":651},[842],{"type":612,"value":689},{"type":606,"tag":636,"props":844,"children":845},{"style":663},[846],{"type":612,"value":847}," value\n",{"type":606,"tag":636,"props":849,"children":850},{"class":638,"line":126},[851,855],{"type":606,"tag":636,"props":852,"children":853},{"style":651},[854],{"type":612,"value":744},{"type":606,"tag":636,"props":856,"children":857},{"style":663},[858],{"type":612,"value":859}," profile\n",{"type":606,"tag":636,"props":861,"children":862},{"class":638,"line":135},[863],{"type":606,"tag":636,"props":864,"children":865},{"emptyLinePlaceholder":13},[866],{"type":612,"value":757},{"type":606,"tag":636,"props":868,"children":869},{"class":638,"line":144},[870],{"type":606,"tag":636,"props":871,"children":872},{"style":642},[873],{"type":612,"value":874},"# Using the functions\n",{"type":606,"tag":636,"props":876,"children":877},{"class":638,"line":153},[878,883,887,892,897,902,907,911,916],{"type":606,"tag":636,"props":879,"children":880},{"style":663},[881],{"type":612,"value":882},"result1 ",{"type":606,"tag":636,"props":884,"children":885},{"style":651},[886],{"type":612,"value":689},{"type":606,"tag":636,"props":888,"children":889},{"style":663},[890],{"type":612,"value":891}," sum_numbers(",{"type":606,"tag":636,"props":893,"children":894},{"style":692},[895],{"type":612,"value":896},"1",{"type":606,"tag":636,"props":898,"children":899},{"style":663},[900],{"type":612,"value":901},", ",{"type":606,"tag":636,"props":903,"children":904},{"style":692},[905],{"type":612,"value":906},"2",{"type":606,"tag":636,"props":908,"children":909},{"style":663},[910],{"type":612,"value":901},{"type":606,"tag":636,"props":912,"children":913},{"style":692},[914],{"type":612,"value":915},"3",{"type":606,"tag":636,"props":917,"children":918},{"style":663},[919],{"type":612,"value":920},")\n",{"type":606,"tag":636,"props":922,"children":923},{"class":638,"line":163},[924,929,933,937,942,946,951,955,960,964,969,973,978],{"type":606,"tag":636,"props":925,"children":926},{"style":663},[927],{"type":612,"value":928},"result2 ",{"type":606,"tag":636,"props":930,"children":931},{"style":651},[932],{"type":612,"value":689},{"type":606,"tag":636,"props":934,"children":935},{"style":663},[936],{"type":612,"value":891},{"type":606,"tag":636,"props":938,"children":939},{"style":692},[940],{"type":612,"value":941},"10",{"type":606,"tag":636,"props":943,"children":944},{"style":663},[945],{"type":612,"value":901},{"type":606,"tag":636,"props":947,"children":948},{"style":692},[949],{"type":612,"value":950},"20",{"type":606,"tag":636,"props":952,"children":953},{"style":663},[954],{"type":612,"value":901},{"type":606,"tag":636,"props":956,"children":957},{"style":692},[958],{"type":612,"value":959},"30",{"type":606,"tag":636,"props":961,"children":962},{"style":663},[963],{"type":612,"value":901},{"type":606,"tag":636,"props":965,"children":966},{"style":692},[967],{"type":612,"value":968},"40",{"type":606,"tag":636,"props":970,"children":971},{"style":663},[972],{"type":612,"value":901},{"type":606,"tag":636,"props":974,"children":975},{"style":692},[976],{"type":612,"value":977},"50",{"type":606,"tag":636,"props":979,"children":980},{"style":663},[981],{"type":612,"value":920},{"type":606,"tag":636,"props":983,"children":984},{"class":638,"line":172},[985],{"type":606,"tag":636,"props":986,"children":987},{"emptyLinePlaceholder":13},[988],{"type":612,"value":757},{"type":606,"tag":636,"props":990,"children":991},{"class":638,"line":181},[992,997,1001,1006,1012,1016,1022,1026,1031,1035,1039],{"type":606,"tag":636,"props":993,"children":994},{"style":663},[995],{"type":612,"value":996},"profile1 ",{"type":606,"tag":636,"props":998,"children":999},{"style":651},[1000],{"type":612,"value":689},{"type":606,"tag":636,"props":1002,"children":1003},{"style":663},[1004],{"type":612,"value":1005}," create_profile(",{"type":606,"tag":636,"props":1007,"children":1009},{"style":1008},"--shiki-default:#E36209;--shiki-app-dark-mode:#FFAB70",[1010],{"type":612,"value":1011},"name",{"type":606,"tag":636,"props":1013,"children":1014},{"style":651},[1015],{"type":612,"value":689},{"type":606,"tag":636,"props":1017,"children":1019},{"style":1018},"--shiki-default:#032F62;--shiki-app-dark-mode:#9ECBFF",[1020],{"type":612,"value":1021},"\"Alice\"",{"type":606,"tag":636,"props":1023,"children":1024},{"style":663},[1025],{"type":612,"value":901},{"type":606,"tag":636,"props":1027,"children":1028},{"style":1008},[1029],{"type":612,"value":1030},"age",{"type":606,"tag":636,"props":1032,"children":1033},{"style":651},[1034],{"type":612,"value":689},{"type":606,"tag":636,"props":1036,"children":1037},{"style":692},[1038],{"type":612,"value":959},{"type":606,"tag":636,"props":1040,"children":1041},{"style":663},[1042],{"type":612,"value":920},{"type":606,"tag":636,"props":1044,"children":1045},{"class":638,"line":190},[1046,1051,1055,1059,1063,1067,1072,1076,1080,1084,1089,1093,1098,1102,1107],{"type":606,"tag":636,"props":1047,"children":1048},{"style":663},[1049],{"type":612,"value":1050},"profile2 ",{"type":606,"tag":636,"props":1052,"children":1053},{"style":651},[1054],{"type":612,"value":689},{"type":606,"tag":636,"props":1056,"children":1057},{"style":663},[1058],{"type":612,"value":1005},{"type":606,"tag":636,"props":1060,"children":1061},{"style":1008},[1062],{"type":612,"value":1011},{"type":606,"tag":636,"props":1064,"children":1065},{"style":651},[1066],{"type":612,"value":689},{"type":606,"tag":636,"props":1068,"children":1069},{"style":1018},[1070],{"type":612,"value":1071},"\"Bob\"",{"type":606,"tag":636,"props":1073,"children":1074},{"style":663},[1075],{"type":612,"value":901},{"type":606,"tag":636,"props":1077,"children":1078},{"style":1008},[1079],{"type":612,"value":1030},{"type":606,"tag":636,"props":1081,"children":1082},{"style":651},[1083],{"type":612,"value":689},{"type":606,"tag":636,"props":1085,"children":1086},{"style":692},[1087],{"type":612,"value":1088},"25",{"type":606,"tag":636,"props":1090,"children":1091},{"style":663},[1092],{"type":612,"value":901},{"type":606,"tag":636,"props":1094,"children":1095},{"style":1008},[1096],{"type":612,"value":1097},"city",{"type":606,"tag":636,"props":1099,"children":1100},{"style":651},[1101],{"type":612,"value":689},{"type":606,"tag":636,"props":1103,"children":1104},{"style":1018},[1105],{"type":612,"value":1106},"\"New York\"",{"type":606,"tag":636,"props":1108,"children":1109},{"style":663},[1110],{"type":612,"value":920},{"type":606,"tag":636,"props":1112,"children":1113},{"class":638,"line":199},[1114],{"type":606,"tag":636,"props":1115,"children":1116},{"emptyLinePlaceholder":13},[1117],{"type":612,"value":757},{"type":606,"tag":636,"props":1119,"children":1120},{"class":638,"line":208},[1121,1126,1130,1135,1140,1145,1150,1155,1160,1165],{"type":606,"tag":636,"props":1122,"children":1123},{"style":692},[1124],{"type":612,"value":1125},"print",{"type":606,"tag":636,"props":1127,"children":1128},{"style":663},[1129],{"type":612,"value":666},{"type":606,"tag":636,"props":1131,"children":1132},{"style":651},[1133],{"type":612,"value":1134},"f",{"type":606,"tag":636,"props":1136,"children":1137},{"style":1018},[1138],{"type":612,"value":1139},"\"Sum1: ",{"type":606,"tag":636,"props":1141,"children":1142},{"style":692},[1143],{"type":612,"value":1144},"{",{"type":606,"tag":636,"props":1146,"children":1147},{"style":663},[1148],{"type":612,"value":1149},"result1",{"type":606,"tag":636,"props":1151,"children":1152},{"style":692},[1153],{"type":612,"value":1154},"}",{"type":606,"tag":636,"props":1156,"children":1157},{"style":1018},[1158],{"type":612,"value":1159},"\"",{"type":606,"tag":636,"props":1161,"children":1162},{"style":663},[1163],{"type":612,"value":1164},")  ",{"type":606,"tag":636,"props":1166,"children":1167},{"style":642},[1168],{"type":612,"value":1169},"# Sum1: 6\n",{"type":606,"tag":636,"props":1171,"children":1172},{"class":638,"line":217},[1173,1177,1181,1185,1190,1194,1199,1203,1207,1211],{"type":606,"tag":636,"props":1174,"children":1175},{"style":692},[1176],{"type":612,"value":1125},{"type":606,"tag":636,"props":1178,"children":1179},{"style":663},[1180],{"type":612,"value":666},{"type":606,"tag":636,"props":1182,"children":1183},{"style":651},[1184],{"type":612,"value":1134},{"type":606,"tag":636,"props":1186,"children":1187},{"style":1018},[1188],{"type":612,"value":1189},"\"Sum2: ",{"type":606,"tag":636,"props":1191,"children":1192},{"style":692},[1193],{"type":612,"value":1144},{"type":606,"tag":636,"props":1195,"children":1196},{"style":663},[1197],{"type":612,"value":1198},"result2",{"type":606,"tag":636,"props":1200,"children":1201},{"style":692},[1202],{"type":612,"value":1154},{"type":606,"tag":636,"props":1204,"children":1205},{"style":1018},[1206],{"type":612,"value":1159},{"type":606,"tag":636,"props":1208,"children":1209},{"style":663},[1210],{"type":612,"value":1164},{"type":606,"tag":636,"props":1212,"children":1213},{"style":642},[1214],{"type":612,"value":1215},"# Sum2: 150\n",{"type":606,"tag":636,"props":1217,"children":1218},{"class":638,"line":227},[1219,1223,1227,1231,1236,1240,1245,1249,1253],{"type":606,"tag":636,"props":1220,"children":1221},{"style":692},[1222],{"type":612,"value":1125},{"type":606,"tag":636,"props":1224,"children":1225},{"style":663},[1226],{"type":612,"value":666},{"type":606,"tag":636,"props":1228,"children":1229},{"style":651},[1230],{"type":612,"value":1134},{"type":606,"tag":636,"props":1232,"children":1233},{"style":1018},[1234],{"type":612,"value":1235},"\"Profile1: ",{"type":606,"tag":636,"props":1237,"children":1238},{"style":692},[1239],{"type":612,"value":1144},{"type":606,"tag":636,"props":1241,"children":1242},{"style":663},[1243],{"type":612,"value":1244},"profile1",{"type":606,"tag":636,"props":1246,"children":1247},{"style":692},[1248],{"type":612,"value":1154},{"type":606,"tag":636,"props":1250,"children":1251},{"style":1018},[1252],{"type":612,"value":1159},{"type":606,"tag":636,"props":1254,"children":1255},{"style":663},[1256],{"type":612,"value":920},{"type":606,"tag":636,"props":1258,"children":1259},{"class":638,"line":236},[1260,1264,1268,1272,1277,1281,1286,1290,1294],{"type":606,"tag":636,"props":1261,"children":1262},{"style":692},[1263],{"type":612,"value":1125},{"type":606,"tag":636,"props":1265,"children":1266},{"style":663},[1267],{"type":612,"value":666},{"type":606,"tag":636,"props":1269,"children":1270},{"style":651},[1271],{"type":612,"value":1134},{"type":606,"tag":636,"props":1273,"children":1274},{"style":1018},[1275],{"type":612,"value":1276},"\"Profile2: ",{"type":606,"tag":636,"props":1278,"children":1279},{"style":692},[1280],{"type":612,"value":1144},{"type":606,"tag":636,"props":1282,"children":1283},{"style":663},[1284],{"type":612,"value":1285},"profile2",{"type":606,"tag":636,"props":1287,"children":1288},{"style":692},[1289],{"type":612,"value":1154},{"type":606,"tag":636,"props":1291,"children":1292},{"style":1018},[1293],{"type":612,"value":1159},{"type":606,"tag":636,"props":1295,"children":1296},{"style":663},[1297],{"type":612,"value":920},{"type":606,"tag":1299,"props":1300,"children":1302},"h2",{"id":1301},"understanding-args-and-kwargs",[1303],{"type":612,"value":1304},"🎯 Understanding *args and **kwargs",{"type":606,"tag":615,"props":1306,"children":1307},{},[1308],{"type":612,"value":1309},"These special parameters allow functions to accept variable numbers of arguments.",{"type":606,"tag":1311,"props":1312,"children":1316},"info-box",{"emoji":1313,"title":1314,"type":1315},"📝","Arguments Explained","info",[1317,1326,1346,1354,1372],{"type":606,"tag":615,"props":1318,"children":1319},{},[1320],{"type":606,"tag":1321,"props":1322,"children":1323},"strong",{},[1324],{"type":612,"value":1325},"*args (arguments):",{"type":606,"tag":1327,"props":1328,"children":1329},"ul",{},[1330,1336,1341],{"type":606,"tag":1331,"props":1332,"children":1333},"li",{},[1334],{"type":612,"value":1335},"Collects extra positional arguments into a tuple",{"type":606,"tag":1331,"props":1337,"children":1338},{},[1339],{"type":612,"value":1340},"Use when you don't know how many arguments will be passed",{"type":606,"tag":1331,"props":1342,"children":1343},{},[1344],{"type":612,"value":1345},"Can be used with regular parameters",{"type":606,"tag":615,"props":1347,"children":1348},{},[1349],{"type":606,"tag":1321,"props":1350,"children":1351},{},[1352],{"type":612,"value":1353},"**kwargs (keyword arguments):",{"type":606,"tag":1327,"props":1355,"children":1356},{},[1357,1362,1367],{"type":606,"tag":1331,"props":1358,"children":1359},{},[1360],{"type":612,"value":1361},"Collects extra keyword arguments into a dictionary",{"type":606,"tag":1331,"props":1363,"children":1364},{},[1365],{"type":612,"value":1366},"Use for flexible keyword parameters",{"type":606,"tag":1331,"props":1368,"children":1369},{},[1370],{"type":612,"value":1371},"Keys become dictionary keys, values become dictionary values",{"type":606,"tag":615,"props":1373,"children":1374},{},[1375,1380,1382],{"type":606,"tag":1321,"props":1376,"children":1377},{},[1378],{"type":612,"value":1379},"Order:",{"type":612,"value":1381}," ",{"type":606,"tag":632,"props":1383,"children":1385},{"className":1384},[],[1386],{"type":612,"value":1387},"func(regular_params, *args, **kwargs)",{"type":606,"tag":1389,"props":1390,"children":1392},"h3",{"id":1391},"basic-args-usage",[1393],{"type":612,"value":1394},"Basic *args Usage",{"type":606,"tag":621,"props":1396,"children":1397},{},[1398],{"type":606,"tag":625,"props":1399,"children":1401},{"className":627,"code":1400,"language":629,"meta":8,"style":8},"# Simple *args example\ndef greet_all(*names):\n    for name in names:\n        print(f\"Hello, {name}!\")\n\ndef find_maximum(*numbers):\n    if not numbers:\n        return None\n    return max(numbers)\n\ndef concatenate_strings(*strings):\n    return \" \".join(strings)\n\n# Test the functions\ngreet_all(\"Alice\", \"Bob\", \"Charlie\")\n\nmax_num = find_maximum(5, 2, 9, 1, 7)\nmessage = concatenate_strings(\"Python\", \"is\", \"awesome\")\n\nprint(f\"Maximum: {max_num}\")    # Maximum: 9\nprint(f\"Message: {message}\")    # Message: Python is awesome\n",[1402],{"type":606,"tag":632,"props":1403,"children":1404},{"__ignoreMap":8},[1405,1413,1438,1459,1501,1508,1533,1551,1564,1581,1588,1613,1630,1637,1645,1678,1685,1745,1789,1796,1843],{"type":606,"tag":636,"props":1406,"children":1407},{"class":638,"line":12},[1408],{"type":606,"tag":636,"props":1409,"children":1410},{"style":642},[1411],{"type":612,"value":1412},"# Simple *args example\n",{"type":606,"tag":636,"props":1414,"children":1415},{"class":638,"line":27},[1416,1420,1425,1429,1433],{"type":606,"tag":636,"props":1417,"children":1418},{"style":651},[1419],{"type":612,"value":654},{"type":606,"tag":636,"props":1421,"children":1422},{"style":657},[1423],{"type":612,"value":1424}," greet_all",{"type":606,"tag":636,"props":1426,"children":1427},{"style":663},[1428],{"type":612,"value":666},{"type":606,"tag":636,"props":1430,"children":1431},{"style":651},[1432],{"type":612,"value":671},{"type":606,"tag":636,"props":1434,"children":1435},{"style":663},[1436],{"type":612,"value":1437},"names):\n",{"type":606,"tag":636,"props":1439,"children":1440},{"class":638,"line":36},[1441,1445,1450,1454],{"type":606,"tag":636,"props":1442,"children":1443},{"style":651},[1444],{"type":612,"value":703},{"type":606,"tag":636,"props":1446,"children":1447},{"style":663},[1448],{"type":612,"value":1449}," name ",{"type":606,"tag":636,"props":1451,"children":1452},{"style":651},[1453],{"type":612,"value":713},{"type":606,"tag":636,"props":1455,"children":1456},{"style":663},[1457],{"type":612,"value":1458}," names:\n",{"type":606,"tag":636,"props":1460,"children":1461},{"class":638,"line":45},[1462,1467,1471,1475,1480,1484,1488,1492,1497],{"type":606,"tag":636,"props":1463,"children":1464},{"style":692},[1465],{"type":612,"value":1466},"        print",{"type":606,"tag":636,"props":1468,"children":1469},{"style":663},[1470],{"type":612,"value":666},{"type":606,"tag":636,"props":1472,"children":1473},{"style":651},[1474],{"type":612,"value":1134},{"type":606,"tag":636,"props":1476,"children":1477},{"style":1018},[1478],{"type":612,"value":1479},"\"Hello, ",{"type":606,"tag":636,"props":1481,"children":1482},{"style":692},[1483],{"type":612,"value":1144},{"type":606,"tag":636,"props":1485,"children":1486},{"style":663},[1487],{"type":612,"value":1011},{"type":606,"tag":636,"props":1489,"children":1490},{"style":692},[1491],{"type":612,"value":1154},{"type":606,"tag":636,"props":1493,"children":1494},{"style":1018},[1495],{"type":612,"value":1496},"!\"",{"type":606,"tag":636,"props":1498,"children":1499},{"style":663},[1500],{"type":612,"value":920},{"type":606,"tag":636,"props":1502,"children":1503},{"class":638,"line":54},[1504],{"type":606,"tag":636,"props":1505,"children":1506},{"emptyLinePlaceholder":13},[1507],{"type":612,"value":757},{"type":606,"tag":636,"props":1509,"children":1510},{"class":638,"line":63},[1511,1515,1520,1524,1528],{"type":606,"tag":636,"props":1512,"children":1513},{"style":651},[1514],{"type":612,"value":654},{"type":606,"tag":636,"props":1516,"children":1517},{"style":657},[1518],{"type":612,"value":1519}," find_maximum",{"type":606,"tag":636,"props":1521,"children":1522},{"style":663},[1523],{"type":612,"value":666},{"type":606,"tag":636,"props":1525,"children":1526},{"style":651},[1527],{"type":612,"value":671},{"type":606,"tag":636,"props":1529,"children":1530},{"style":663},[1531],{"type":612,"value":1532},"numbers):\n",{"type":606,"tag":636,"props":1534,"children":1535},{"class":638,"line":72},[1536,1541,1546],{"type":606,"tag":636,"props":1537,"children":1538},{"style":651},[1539],{"type":612,"value":1540},"    if",{"type":606,"tag":636,"props":1542,"children":1543},{"style":651},[1544],{"type":612,"value":1545}," not",{"type":606,"tag":636,"props":1547,"children":1548},{"style":663},[1549],{"type":612,"value":1550}," numbers:\n",{"type":606,"tag":636,"props":1552,"children":1553},{"class":638,"line":81},[1554,1559],{"type":606,"tag":636,"props":1555,"children":1556},{"style":651},[1557],{"type":612,"value":1558},"        return",{"type":606,"tag":636,"props":1560,"children":1561},{"style":692},[1562],{"type":612,"value":1563}," None\n",{"type":606,"tag":636,"props":1565,"children":1566},{"class":638,"line":768},[1567,1571,1576],{"type":606,"tag":636,"props":1568,"children":1569},{"style":651},[1570],{"type":612,"value":744},{"type":606,"tag":636,"props":1572,"children":1573},{"style":692},[1574],{"type":612,"value":1575}," max",{"type":606,"tag":636,"props":1577,"children":1578},{"style":663},[1579],{"type":612,"value":1580},"(numbers)\n",{"type":606,"tag":636,"props":1582,"children":1583},{"class":638,"line":99},[1584],{"type":606,"tag":636,"props":1585,"children":1586},{"emptyLinePlaceholder":13},[1587],{"type":612,"value":757},{"type":606,"tag":636,"props":1589,"children":1590},{"class":638,"line":108},[1591,1595,1600,1604,1608],{"type":606,"tag":636,"props":1592,"children":1593},{"style":651},[1594],{"type":612,"value":654},{"type":606,"tag":636,"props":1596,"children":1597},{"style":657},[1598],{"type":612,"value":1599}," concatenate_strings",{"type":606,"tag":636,"props":1601,"children":1602},{"style":663},[1603],{"type":612,"value":666},{"type":606,"tag":636,"props":1605,"children":1606},{"style":651},[1607],{"type":612,"value":671},{"type":606,"tag":636,"props":1609,"children":1610},{"style":663},[1611],{"type":612,"value":1612},"strings):\n",{"type":606,"tag":636,"props":1614,"children":1615},{"class":638,"line":117},[1616,1620,1625],{"type":606,"tag":636,"props":1617,"children":1618},{"style":651},[1619],{"type":612,"value":744},{"type":606,"tag":636,"props":1621,"children":1622},{"style":1018},[1623],{"type":612,"value":1624}," \" \"",{"type":606,"tag":636,"props":1626,"children":1627},{"style":663},[1628],{"type":612,"value":1629},".join(strings)\n",{"type":606,"tag":636,"props":1631,"children":1632},{"class":638,"line":126},[1633],{"type":606,"tag":636,"props":1634,"children":1635},{"emptyLinePlaceholder":13},[1636],{"type":612,"value":757},{"type":606,"tag":636,"props":1638,"children":1639},{"class":638,"line":135},[1640],{"type":606,"tag":636,"props":1641,"children":1642},{"style":642},[1643],{"type":612,"value":1644},"# Test the functions\n",{"type":606,"tag":636,"props":1646,"children":1647},{"class":638,"line":144},[1648,1653,1657,1661,1665,1669,1674],{"type":606,"tag":636,"props":1649,"children":1650},{"style":663},[1651],{"type":612,"value":1652},"greet_all(",{"type":606,"tag":636,"props":1654,"children":1655},{"style":1018},[1656],{"type":612,"value":1021},{"type":606,"tag":636,"props":1658,"children":1659},{"style":663},[1660],{"type":612,"value":901},{"type":606,"tag":636,"props":1662,"children":1663},{"style":1018},[1664],{"type":612,"value":1071},{"type":606,"tag":636,"props":1666,"children":1667},{"style":663},[1668],{"type":612,"value":901},{"type":606,"tag":636,"props":1670,"children":1671},{"style":1018},[1672],{"type":612,"value":1673},"\"Charlie\"",{"type":606,"tag":636,"props":1675,"children":1676},{"style":663},[1677],{"type":612,"value":920},{"type":606,"tag":636,"props":1679,"children":1680},{"class":638,"line":153},[1681],{"type":606,"tag":636,"props":1682,"children":1683},{"emptyLinePlaceholder":13},[1684],{"type":612,"value":757},{"type":606,"tag":636,"props":1686,"children":1687},{"class":638,"line":163},[1688,1693,1697,1702,1707,1711,1715,1719,1724,1728,1732,1736,1741],{"type":606,"tag":636,"props":1689,"children":1690},{"style":663},[1691],{"type":612,"value":1692},"max_num ",{"type":606,"tag":636,"props":1694,"children":1695},{"style":651},[1696],{"type":612,"value":689},{"type":606,"tag":636,"props":1698,"children":1699},{"style":663},[1700],{"type":612,"value":1701}," find_maximum(",{"type":606,"tag":636,"props":1703,"children":1704},{"style":692},[1705],{"type":612,"value":1706},"5",{"type":606,"tag":636,"props":1708,"children":1709},{"style":663},[1710],{"type":612,"value":901},{"type":606,"tag":636,"props":1712,"children":1713},{"style":692},[1714],{"type":612,"value":906},{"type":606,"tag":636,"props":1716,"children":1717},{"style":663},[1718],{"type":612,"value":901},{"type":606,"tag":636,"props":1720,"children":1721},{"style":692},[1722],{"type":612,"value":1723},"9",{"type":606,"tag":636,"props":1725,"children":1726},{"style":663},[1727],{"type":612,"value":901},{"type":606,"tag":636,"props":1729,"children":1730},{"style":692},[1731],{"type":612,"value":896},{"type":606,"tag":636,"props":1733,"children":1734},{"style":663},[1735],{"type":612,"value":901},{"type":606,"tag":636,"props":1737,"children":1738},{"style":692},[1739],{"type":612,"value":1740},"7",{"type":606,"tag":636,"props":1742,"children":1743},{"style":663},[1744],{"type":612,"value":920},{"type":606,"tag":636,"props":1746,"children":1747},{"class":638,"line":172},[1748,1753,1757,1762,1767,1771,1776,1780,1785],{"type":606,"tag":636,"props":1749,"children":1750},{"style":663},[1751],{"type":612,"value":1752},"message ",{"type":606,"tag":636,"props":1754,"children":1755},{"style":651},[1756],{"type":612,"value":689},{"type":606,"tag":636,"props":1758,"children":1759},{"style":663},[1760],{"type":612,"value":1761}," concatenate_strings(",{"type":606,"tag":636,"props":1763,"children":1764},{"style":1018},[1765],{"type":612,"value":1766},"\"Python\"",{"type":606,"tag":636,"props":1768,"children":1769},{"style":663},[1770],{"type":612,"value":901},{"type":606,"tag":636,"props":1772,"children":1773},{"style":1018},[1774],{"type":612,"value":1775},"\"is\"",{"type":606,"tag":636,"props":1777,"children":1778},{"style":663},[1779],{"type":612,"value":901},{"type":606,"tag":636,"props":1781,"children":1782},{"style":1018},[1783],{"type":612,"value":1784},"\"awesome\"",{"type":606,"tag":636,"props":1786,"children":1787},{"style":663},[1788],{"type":612,"value":920},{"type":606,"tag":636,"props":1790,"children":1791},{"class":638,"line":181},[1792],{"type":606,"tag":636,"props":1793,"children":1794},{"emptyLinePlaceholder":13},[1795],{"type":612,"value":757},{"type":606,"tag":636,"props":1797,"children":1798},{"class":638,"line":190},[1799,1803,1807,1811,1816,1820,1825,1829,1833,1838],{"type":606,"tag":636,"props":1800,"children":1801},{"style":692},[1802],{"type":612,"value":1125},{"type":606,"tag":636,"props":1804,"children":1805},{"style":663},[1806],{"type":612,"value":666},{"type":606,"tag":636,"props":1808,"children":1809},{"style":651},[1810],{"type":612,"value":1134},{"type":606,"tag":636,"props":1812,"children":1813},{"style":1018},[1814],{"type":612,"value":1815},"\"Maximum: ",{"type":606,"tag":636,"props":1817,"children":1818},{"style":692},[1819],{"type":612,"value":1144},{"type":606,"tag":636,"props":1821,"children":1822},{"style":663},[1823],{"type":612,"value":1824},"max_num",{"type":606,"tag":636,"props":1826,"children":1827},{"style":692},[1828],{"type":612,"value":1154},{"type":606,"tag":636,"props":1830,"children":1831},{"style":1018},[1832],{"type":612,"value":1159},{"type":606,"tag":636,"props":1834,"children":1835},{"style":663},[1836],{"type":612,"value":1837},")    ",{"type":606,"tag":636,"props":1839,"children":1840},{"style":642},[1841],{"type":612,"value":1842},"# Maximum: 9\n",{"type":606,"tag":636,"props":1844,"children":1845},{"class":638,"line":199},[1846,1850,1854,1858,1863,1867,1872,1876,1880,1884],{"type":606,"tag":636,"props":1847,"children":1848},{"style":692},[1849],{"type":612,"value":1125},{"type":606,"tag":636,"props":1851,"children":1852},{"style":663},[1853],{"type":612,"value":666},{"type":606,"tag":636,"props":1855,"children":1856},{"style":651},[1857],{"type":612,"value":1134},{"type":606,"tag":636,"props":1859,"children":1860},{"style":1018},[1861],{"type":612,"value":1862},"\"Message: ",{"type":606,"tag":636,"props":1864,"children":1865},{"style":692},[1866],{"type":612,"value":1144},{"type":606,"tag":636,"props":1868,"children":1869},{"style":663},[1870],{"type":612,"value":1871},"message",{"type":606,"tag":636,"props":1873,"children":1874},{"style":692},[1875],{"type":612,"value":1154},{"type":606,"tag":636,"props":1877,"children":1878},{"style":1018},[1879],{"type":612,"value":1159},{"type":606,"tag":636,"props":1881,"children":1882},{"style":663},[1883],{"type":612,"value":1837},{"type":606,"tag":636,"props":1885,"children":1886},{"style":642},[1887],{"type":612,"value":1888},"# Message: Python is awesome\n",{"type":606,"tag":1389,"props":1890,"children":1892},{"id":1891},"basic-kwargs-usage",[1893],{"type":612,"value":1894},"Basic **kwargs Usage",{"type":606,"tag":621,"props":1896,"children":1897},{},[1898],{"type":606,"tag":625,"props":1899,"children":1901},{"className":627,"code":1900,"language":629,"meta":8,"style":8},"# Simple **kwargs example\ndef print_info(**kwargs):\n    for key, value in kwargs.items():\n        print(f\"{key}: {value}\")\n\ndef create_config(**settings):\n    config = {\n        \"debug\": False,\n        \"timeout\": 30\n    }\n    # Update with provided settings\n    config.update(settings)\n    return config\n\n# Test the functions\nprint(\"User Information:\")\nprint_info(name=\"Alice\", age=30, city=\"Boston\")\n\nconfig = create_config(debug=True, timeout=60, host=\"localhost\")\nprint(f\"\\nConfig: {config}\")\n",[1902],{"type":606,"tag":632,"props":1903,"children":1904},{"__ignoreMap":8},[1905,1913,1937,1956,2014,2021,2046,2063,2085,2102,2110,2118,2126,2138,2145,2152,2172,2229,2236,2307],{"type":606,"tag":636,"props":1906,"children":1907},{"class":638,"line":12},[1908],{"type":606,"tag":636,"props":1909,"children":1910},{"style":642},[1911],{"type":612,"value":1912},"# Simple **kwargs example\n",{"type":606,"tag":636,"props":1914,"children":1915},{"class":638,"line":27},[1916,1920,1925,1929,1933],{"type":606,"tag":636,"props":1917,"children":1918},{"style":651},[1919],{"type":612,"value":654},{"type":606,"tag":636,"props":1921,"children":1922},{"style":657},[1923],{"type":612,"value":1924}," print_info",{"type":606,"tag":636,"props":1926,"children":1927},{"style":663},[1928],{"type":612,"value":666},{"type":606,"tag":636,"props":1930,"children":1931},{"style":651},[1932],{"type":612,"value":787},{"type":606,"tag":636,"props":1934,"children":1935},{"style":663},[1936],{"type":612,"value":792},{"type":606,"tag":636,"props":1938,"children":1939},{"class":638,"line":36},[1940,1944,1948,1952],{"type":606,"tag":636,"props":1941,"children":1942},{"style":651},[1943],{"type":612,"value":703},{"type":606,"tag":636,"props":1945,"children":1946},{"style":663},[1947],{"type":612,"value":821},{"type":606,"tag":636,"props":1949,"children":1950},{"style":651},[1951],{"type":612,"value":713},{"type":606,"tag":636,"props":1953,"children":1954},{"style":663},[1955],{"type":612,"value":830},{"type":606,"tag":636,"props":1957,"children":1958},{"class":638,"line":45},[1959,1963,1967,1971,1975,1979,1984,1988,1993,1997,2002,2006,2010],{"type":606,"tag":636,"props":1960,"children":1961},{"style":692},[1962],{"type":612,"value":1466},{"type":606,"tag":636,"props":1964,"children":1965},{"style":663},[1966],{"type":612,"value":666},{"type":606,"tag":636,"props":1968,"children":1969},{"style":651},[1970],{"type":612,"value":1134},{"type":606,"tag":636,"props":1972,"children":1973},{"style":1018},[1974],{"type":612,"value":1159},{"type":606,"tag":636,"props":1976,"children":1977},{"style":692},[1978],{"type":612,"value":1144},{"type":606,"tag":636,"props":1980,"children":1981},{"style":663},[1982],{"type":612,"value":1983},"key",{"type":606,"tag":636,"props":1985,"children":1986},{"style":692},[1987],{"type":612,"value":1154},{"type":606,"tag":636,"props":1989,"children":1990},{"style":1018},[1991],{"type":612,"value":1992},": ",{"type":606,"tag":636,"props":1994,"children":1995},{"style":692},[1996],{"type":612,"value":1144},{"type":606,"tag":636,"props":1998,"children":1999},{"style":663},[2000],{"type":612,"value":2001},"value",{"type":606,"tag":636,"props":2003,"children":2004},{"style":692},[2005],{"type":612,"value":1154},{"type":606,"tag":636,"props":2007,"children":2008},{"style":1018},[2009],{"type":612,"value":1159},{"type":606,"tag":636,"props":2011,"children":2012},{"style":663},[2013],{"type":612,"value":920},{"type":606,"tag":636,"props":2015,"children":2016},{"class":638,"line":54},[2017],{"type":606,"tag":636,"props":2018,"children":2019},{"emptyLinePlaceholder":13},[2020],{"type":612,"value":757},{"type":606,"tag":636,"props":2022,"children":2023},{"class":638,"line":63},[2024,2028,2033,2037,2041],{"type":606,"tag":636,"props":2025,"children":2026},{"style":651},[2027],{"type":612,"value":654},{"type":606,"tag":636,"props":2029,"children":2030},{"style":657},[2031],{"type":612,"value":2032}," create_config",{"type":606,"tag":636,"props":2034,"children":2035},{"style":663},[2036],{"type":612,"value":666},{"type":606,"tag":636,"props":2038,"children":2039},{"style":651},[2040],{"type":612,"value":787},{"type":606,"tag":636,"props":2042,"children":2043},{"style":663},[2044],{"type":612,"value":2045},"settings):\n",{"type":606,"tag":636,"props":2047,"children":2048},{"class":638,"line":72},[2049,2054,2058],{"type":606,"tag":636,"props":2050,"children":2051},{"style":663},[2052],{"type":612,"value":2053},"    config ",{"type":606,"tag":636,"props":2055,"children":2056},{"style":651},[2057],{"type":612,"value":689},{"type":606,"tag":636,"props":2059,"children":2060},{"style":663},[2061],{"type":612,"value":2062}," {\n",{"type":606,"tag":636,"props":2064,"children":2065},{"class":638,"line":81},[2066,2071,2075,2080],{"type":606,"tag":636,"props":2067,"children":2068},{"style":1018},[2069],{"type":612,"value":2070},"        \"debug\"",{"type":606,"tag":636,"props":2072,"children":2073},{"style":663},[2074],{"type":612,"value":1992},{"type":606,"tag":636,"props":2076,"children":2077},{"style":692},[2078],{"type":612,"value":2079},"False",{"type":606,"tag":636,"props":2081,"children":2082},{"style":663},[2083],{"type":612,"value":2084},",\n",{"type":606,"tag":636,"props":2086,"children":2087},{"class":638,"line":768},[2088,2093,2097],{"type":606,"tag":636,"props":2089,"children":2090},{"style":1018},[2091],{"type":612,"value":2092},"        \"timeout\"",{"type":606,"tag":636,"props":2094,"children":2095},{"style":663},[2096],{"type":612,"value":1992},{"type":606,"tag":636,"props":2098,"children":2099},{"style":692},[2100],{"type":612,"value":2101},"30\n",{"type":606,"tag":636,"props":2103,"children":2104},{"class":638,"line":99},[2105],{"type":606,"tag":636,"props":2106,"children":2107},{"style":663},[2108],{"type":612,"value":2109},"    }\n",{"type":606,"tag":636,"props":2111,"children":2112},{"class":638,"line":108},[2113],{"type":606,"tag":636,"props":2114,"children":2115},{"style":642},[2116],{"type":612,"value":2117},"    # Update with provided settings\n",{"type":606,"tag":636,"props":2119,"children":2120},{"class":638,"line":117},[2121],{"type":606,"tag":636,"props":2122,"children":2123},{"style":663},[2124],{"type":612,"value":2125},"    config.update(settings)\n",{"type":606,"tag":636,"props":2127,"children":2128},{"class":638,"line":126},[2129,2133],{"type":606,"tag":636,"props":2130,"children":2131},{"style":651},[2132],{"type":612,"value":744},{"type":606,"tag":636,"props":2134,"children":2135},{"style":663},[2136],{"type":612,"value":2137}," config\n",{"type":606,"tag":636,"props":2139,"children":2140},{"class":638,"line":135},[2141],{"type":606,"tag":636,"props":2142,"children":2143},{"emptyLinePlaceholder":13},[2144],{"type":612,"value":757},{"type":606,"tag":636,"props":2146,"children":2147},{"class":638,"line":144},[2148],{"type":606,"tag":636,"props":2149,"children":2150},{"style":642},[2151],{"type":612,"value":1644},{"type":606,"tag":636,"props":2153,"children":2154},{"class":638,"line":153},[2155,2159,2163,2168],{"type":606,"tag":636,"props":2156,"children":2157},{"style":692},[2158],{"type":612,"value":1125},{"type":606,"tag":636,"props":2160,"children":2161},{"style":663},[2162],{"type":612,"value":666},{"type":606,"tag":636,"props":2164,"children":2165},{"style":1018},[2166],{"type":612,"value":2167},"\"User Information:\"",{"type":606,"tag":636,"props":2169,"children":2170},{"style":663},[2171],{"type":612,"value":920},{"type":606,"tag":636,"props":2173,"children":2174},{"class":638,"line":163},[2175,2180,2184,2188,2192,2196,2200,2204,2208,2212,2216,2220,2225],{"type":606,"tag":636,"props":2176,"children":2177},{"style":663},[2178],{"type":612,"value":2179},"print_info(",{"type":606,"tag":636,"props":2181,"children":2182},{"style":1008},[2183],{"type":612,"value":1011},{"type":606,"tag":636,"props":2185,"children":2186},{"style":651},[2187],{"type":612,"value":689},{"type":606,"tag":636,"props":2189,"children":2190},{"style":1018},[2191],{"type":612,"value":1021},{"type":606,"tag":636,"props":2193,"children":2194},{"style":663},[2195],{"type":612,"value":901},{"type":606,"tag":636,"props":2197,"children":2198},{"style":1008},[2199],{"type":612,"value":1030},{"type":606,"tag":636,"props":2201,"children":2202},{"style":651},[2203],{"type":612,"value":689},{"type":606,"tag":636,"props":2205,"children":2206},{"style":692},[2207],{"type":612,"value":959},{"type":606,"tag":636,"props":2209,"children":2210},{"style":663},[2211],{"type":612,"value":901},{"type":606,"tag":636,"props":2213,"children":2214},{"style":1008},[2215],{"type":612,"value":1097},{"type":606,"tag":636,"props":2217,"children":2218},{"style":651},[2219],{"type":612,"value":689},{"type":606,"tag":636,"props":2221,"children":2222},{"style":1018},[2223],{"type":612,"value":2224},"\"Boston\"",{"type":606,"tag":636,"props":2226,"children":2227},{"style":663},[2228],{"type":612,"value":920},{"type":606,"tag":636,"props":2230,"children":2231},{"class":638,"line":172},[2232],{"type":606,"tag":636,"props":2233,"children":2234},{"emptyLinePlaceholder":13},[2235],{"type":612,"value":757},{"type":606,"tag":636,"props":2237,"children":2238},{"class":638,"line":181},[2239,2244,2248,2253,2258,2262,2267,2271,2276,2280,2285,2289,2294,2298,2303],{"type":606,"tag":636,"props":2240,"children":2241},{"style":663},[2242],{"type":612,"value":2243},"config ",{"type":606,"tag":636,"props":2245,"children":2246},{"style":651},[2247],{"type":612,"value":689},{"type":606,"tag":636,"props":2249,"children":2250},{"style":663},[2251],{"type":612,"value":2252}," create_config(",{"type":606,"tag":636,"props":2254,"children":2255},{"style":1008},[2256],{"type":612,"value":2257},"debug",{"type":606,"tag":636,"props":2259,"children":2260},{"style":651},[2261],{"type":612,"value":689},{"type":606,"tag":636,"props":2263,"children":2264},{"style":692},[2265],{"type":612,"value":2266},"True",{"type":606,"tag":636,"props":2268,"children":2269},{"style":663},[2270],{"type":612,"value":901},{"type":606,"tag":636,"props":2272,"children":2273},{"style":1008},[2274],{"type":612,"value":2275},"timeout",{"type":606,"tag":636,"props":2277,"children":2278},{"style":651},[2279],{"type":612,"value":689},{"type":606,"tag":636,"props":2281,"children":2282},{"style":692},[2283],{"type":612,"value":2284},"60",{"type":606,"tag":636,"props":2286,"children":2287},{"style":663},[2288],{"type":612,"value":901},{"type":606,"tag":636,"props":2290,"children":2291},{"style":1008},[2292],{"type":612,"value":2293},"host",{"type":606,"tag":636,"props":2295,"children":2296},{"style":651},[2297],{"type":612,"value":689},{"type":606,"tag":636,"props":2299,"children":2300},{"style":1018},[2301],{"type":612,"value":2302},"\"localhost\"",{"type":606,"tag":636,"props":2304,"children":2305},{"style":663},[2306],{"type":612,"value":920},{"type":606,"tag":636,"props":2308,"children":2309},{"class":638,"line":190},[2310,2314,2318,2322,2326,2331,2336,2340,2345,2349,2353],{"type":606,"tag":636,"props":2311,"children":2312},{"style":692},[2313],{"type":612,"value":1125},{"type":606,"tag":636,"props":2315,"children":2316},{"style":663},[2317],{"type":612,"value":666},{"type":606,"tag":636,"props":2319,"children":2320},{"style":651},[2321],{"type":612,"value":1134},{"type":606,"tag":636,"props":2323,"children":2324},{"style":1018},[2325],{"type":612,"value":1159},{"type":606,"tag":636,"props":2327,"children":2328},{"style":692},[2329],{"type":612,"value":2330},"\\n",{"type":606,"tag":636,"props":2332,"children":2333},{"style":1018},[2334],{"type":612,"value":2335},"Config: ",{"type":606,"tag":636,"props":2337,"children":2338},{"style":692},[2339],{"type":612,"value":1144},{"type":606,"tag":636,"props":2341,"children":2342},{"style":663},[2343],{"type":612,"value":2344},"config",{"type":606,"tag":636,"props":2346,"children":2347},{"style":692},[2348],{"type":612,"value":1154},{"type":606,"tag":636,"props":2350,"children":2351},{"style":1018},[2352],{"type":612,"value":1159},{"type":606,"tag":636,"props":2354,"children":2355},{"style":663},[2356],{"type":612,"value":920},{"type":606,"tag":1389,"props":2358,"children":2360},{"id":2359},"combining-regular-parameters-with-args",[2361],{"type":612,"value":2362},"Combining Regular Parameters with *args",{"type":606,"tag":621,"props":2364,"children":2365},{},[2366],{"type":606,"tag":625,"props":2367,"children":2369},{"className":627,"code":2368,"language":629,"meta":8,"style":8},"# Regular parameters + *args\ndef calculate_total(tax_rate, *prices):\n    subtotal = sum(prices)\n    tax = subtotal * tax_rate\n    total = subtotal + tax\n    return total\n\ndef format_message(template, *values):\n    try:\n        return template.format(*values)\n    except IndexError:\n        return \"Not enough values for template\"\n\n# Test the functions\ntotal = calculate_total(0.08, 10, 20, 30)  # tax_rate=0.08, prices=(10,20,30)\nmsg = format_message(\"Hello {}, you have {} messages\", \"Alice\", 5)\n\nprint(f\"Total with tax: ${total:.2f}\")  # Total with tax: $64.80\nprint(f\"Message: {msg}\")                # Message: Hello Alice, you have 5 messages\n",[2370],{"type":606,"tag":632,"props":2371,"children":2372},{"__ignoreMap":8},[2373,2381,2407,2429,2455,2480,2491,2498,2524,2537,2558,2575,2587,2594,2601,2656,2717,2724,2775],{"type":606,"tag":636,"props":2374,"children":2375},{"class":638,"line":12},[2376],{"type":606,"tag":636,"props":2377,"children":2378},{"style":642},[2379],{"type":612,"value":2380},"# Regular parameters + *args\n",{"type":606,"tag":636,"props":2382,"children":2383},{"class":638,"line":27},[2384,2388,2393,2398,2402],{"type":606,"tag":636,"props":2385,"children":2386},{"style":651},[2387],{"type":612,"value":654},{"type":606,"tag":636,"props":2389,"children":2390},{"style":657},[2391],{"type":612,"value":2392}," calculate_total",{"type":606,"tag":636,"props":2394,"children":2395},{"style":663},[2396],{"type":612,"value":2397},"(tax_rate, ",{"type":606,"tag":636,"props":2399,"children":2400},{"style":651},[2401],{"type":612,"value":671},{"type":606,"tag":636,"props":2403,"children":2404},{"style":663},[2405],{"type":612,"value":2406},"prices):\n",{"type":606,"tag":636,"props":2408,"children":2409},{"class":638,"line":36},[2410,2415,2419,2424],{"type":606,"tag":636,"props":2411,"children":2412},{"style":663},[2413],{"type":612,"value":2414},"    subtotal ",{"type":606,"tag":636,"props":2416,"children":2417},{"style":651},[2418],{"type":612,"value":689},{"type":606,"tag":636,"props":2420,"children":2421},{"style":692},[2422],{"type":612,"value":2423}," sum",{"type":606,"tag":636,"props":2425,"children":2426},{"style":663},[2427],{"type":612,"value":2428},"(prices)\n",{"type":606,"tag":636,"props":2430,"children":2431},{"class":638,"line":45},[2432,2437,2441,2446,2450],{"type":606,"tag":636,"props":2433,"children":2434},{"style":663},[2435],{"type":612,"value":2436},"    tax ",{"type":606,"tag":636,"props":2438,"children":2439},{"style":651},[2440],{"type":612,"value":689},{"type":606,"tag":636,"props":2442,"children":2443},{"style":663},[2444],{"type":612,"value":2445}," subtotal ",{"type":606,"tag":636,"props":2447,"children":2448},{"style":651},[2449],{"type":612,"value":671},{"type":606,"tag":636,"props":2451,"children":2452},{"style":663},[2453],{"type":612,"value":2454}," tax_rate\n",{"type":606,"tag":636,"props":2456,"children":2457},{"class":638,"line":54},[2458,2462,2466,2470,2475],{"type":606,"tag":636,"props":2459,"children":2460},{"style":663},[2461],{"type":612,"value":684},{"type":606,"tag":636,"props":2463,"children":2464},{"style":651},[2465],{"type":612,"value":689},{"type":606,"tag":636,"props":2467,"children":2468},{"style":663},[2469],{"type":612,"value":2445},{"type":606,"tag":636,"props":2471,"children":2472},{"style":651},[2473],{"type":612,"value":2474},"+",{"type":606,"tag":636,"props":2476,"children":2477},{"style":663},[2478],{"type":612,"value":2479}," tax\n",{"type":606,"tag":636,"props":2481,"children":2482},{"class":638,"line":63},[2483,2487],{"type":606,"tag":636,"props":2484,"children":2485},{"style":651},[2486],{"type":612,"value":744},{"type":606,"tag":636,"props":2488,"children":2489},{"style":663},[2490],{"type":612,"value":749},{"type":606,"tag":636,"props":2492,"children":2493},{"class":638,"line":72},[2494],{"type":606,"tag":636,"props":2495,"children":2496},{"emptyLinePlaceholder":13},[2497],{"type":612,"value":757},{"type":606,"tag":636,"props":2499,"children":2500},{"class":638,"line":81},[2501,2505,2510,2515,2519],{"type":606,"tag":636,"props":2502,"children":2503},{"style":651},[2504],{"type":612,"value":654},{"type":606,"tag":636,"props":2506,"children":2507},{"style":657},[2508],{"type":612,"value":2509}," format_message",{"type":606,"tag":636,"props":2511,"children":2512},{"style":663},[2513],{"type":612,"value":2514},"(template, ",{"type":606,"tag":636,"props":2516,"children":2517},{"style":651},[2518],{"type":612,"value":671},{"type":606,"tag":636,"props":2520,"children":2521},{"style":663},[2522],{"type":612,"value":2523},"values):\n",{"type":606,"tag":636,"props":2525,"children":2526},{"class":638,"line":768},[2527,2532],{"type":606,"tag":636,"props":2528,"children":2529},{"style":651},[2530],{"type":612,"value":2531},"    try",{"type":606,"tag":636,"props":2533,"children":2534},{"style":663},[2535],{"type":612,"value":2536},":\n",{"type":606,"tag":636,"props":2538,"children":2539},{"class":638,"line":99},[2540,2544,2549,2553],{"type":606,"tag":636,"props":2541,"children":2542},{"style":651},[2543],{"type":612,"value":1558},{"type":606,"tag":636,"props":2545,"children":2546},{"style":663},[2547],{"type":612,"value":2548}," template.format(",{"type":606,"tag":636,"props":2550,"children":2551},{"style":651},[2552],{"type":612,"value":671},{"type":606,"tag":636,"props":2554,"children":2555},{"style":663},[2556],{"type":612,"value":2557},"values)\n",{"type":606,"tag":636,"props":2559,"children":2560},{"class":638,"line":108},[2561,2566,2571],{"type":606,"tag":636,"props":2562,"children":2563},{"style":651},[2564],{"type":612,"value":2565},"    except",{"type":606,"tag":636,"props":2567,"children":2568},{"style":692},[2569],{"type":612,"value":2570}," IndexError",{"type":606,"tag":636,"props":2572,"children":2573},{"style":663},[2574],{"type":612,"value":2536},{"type":606,"tag":636,"props":2576,"children":2577},{"class":638,"line":117},[2578,2582],{"type":606,"tag":636,"props":2579,"children":2580},{"style":651},[2581],{"type":612,"value":1558},{"type":606,"tag":636,"props":2583,"children":2584},{"style":1018},[2585],{"type":612,"value":2586}," \"Not enough values for template\"\n",{"type":606,"tag":636,"props":2588,"children":2589},{"class":638,"line":126},[2590],{"type":606,"tag":636,"props":2591,"children":2592},{"emptyLinePlaceholder":13},[2593],{"type":612,"value":757},{"type":606,"tag":636,"props":2595,"children":2596},{"class":638,"line":135},[2597],{"type":606,"tag":636,"props":2598,"children":2599},{"style":642},[2600],{"type":612,"value":1644},{"type":606,"tag":636,"props":2602,"children":2603},{"class":638,"line":144},[2604,2609,2613,2618,2623,2627,2631,2635,2639,2643,2647,2651],{"type":606,"tag":636,"props":2605,"children":2606},{"style":663},[2607],{"type":612,"value":2608},"total ",{"type":606,"tag":636,"props":2610,"children":2611},{"style":651},[2612],{"type":612,"value":689},{"type":606,"tag":636,"props":2614,"children":2615},{"style":663},[2616],{"type":612,"value":2617}," calculate_total(",{"type":606,"tag":636,"props":2619,"children":2620},{"style":692},[2621],{"type":612,"value":2622},"0.08",{"type":606,"tag":636,"props":2624,"children":2625},{"style":663},[2626],{"type":612,"value":901},{"type":606,"tag":636,"props":2628,"children":2629},{"style":692},[2630],{"type":612,"value":941},{"type":606,"tag":636,"props":2632,"children":2633},{"style":663},[2634],{"type":612,"value":901},{"type":606,"tag":636,"props":2636,"children":2637},{"style":692},[2638],{"type":612,"value":950},{"type":606,"tag":636,"props":2640,"children":2641},{"style":663},[2642],{"type":612,"value":901},{"type":606,"tag":636,"props":2644,"children":2645},{"style":692},[2646],{"type":612,"value":959},{"type":606,"tag":636,"props":2648,"children":2649},{"style":663},[2650],{"type":612,"value":1164},{"type":606,"tag":636,"props":2652,"children":2653},{"style":642},[2654],{"type":612,"value":2655},"# tax_rate=0.08, prices=(10,20,30)\n",{"type":606,"tag":636,"props":2657,"children":2658},{"class":638,"line":153},[2659,2664,2668,2673,2678,2683,2688,2692,2697,2701,2705,2709,2713],{"type":606,"tag":636,"props":2660,"children":2661},{"style":663},[2662],{"type":612,"value":2663},"msg ",{"type":606,"tag":636,"props":2665,"children":2666},{"style":651},[2667],{"type":612,"value":689},{"type":606,"tag":636,"props":2669,"children":2670},{"style":663},[2671],{"type":612,"value":2672}," format_message(",{"type":606,"tag":636,"props":2674,"children":2675},{"style":1018},[2676],{"type":612,"value":2677},"\"Hello ",{"type":606,"tag":636,"props":2679,"children":2680},{"style":692},[2681],{"type":612,"value":2682},"{}",{"type":606,"tag":636,"props":2684,"children":2685},{"style":1018},[2686],{"type":612,"value":2687},", you have ",{"type":606,"tag":636,"props":2689,"children":2690},{"style":692},[2691],{"type":612,"value":2682},{"type":606,"tag":636,"props":2693,"children":2694},{"style":1018},[2695],{"type":612,"value":2696}," messages\"",{"type":606,"tag":636,"props":2698,"children":2699},{"style":663},[2700],{"type":612,"value":901},{"type":606,"tag":636,"props":2702,"children":2703},{"style":1018},[2704],{"type":612,"value":1021},{"type":606,"tag":636,"props":2706,"children":2707},{"style":663},[2708],{"type":612,"value":901},{"type":606,"tag":636,"props":2710,"children":2711},{"style":692},[2712],{"type":612,"value":1706},{"type":606,"tag":636,"props":2714,"children":2715},{"style":663},[2716],{"type":612,"value":920},{"type":606,"tag":636,"props":2718,"children":2719},{"class":638,"line":163},[2720],{"type":606,"tag":636,"props":2721,"children":2722},{"emptyLinePlaceholder":13},[2723],{"type":612,"value":757},{"type":606,"tag":636,"props":2725,"children":2726},{"class":638,"line":172},[2727,2731,2735,2739,2744,2748,2753,2758,2762,2766,2770],{"type":606,"tag":636,"props":2728,"children":2729},{"style":692},[2730],{"type":612,"value":1125},{"type":606,"tag":636,"props":2732,"children":2733},{"style":663},[2734],{"type":612,"value":666},{"type":606,"tag":636,"props":2736,"children":2737},{"style":651},[2738],{"type":612,"value":1134},{"type":606,"tag":636,"props":2740,"children":2741},{"style":1018},[2742],{"type":612,"value":2743},"\"Total with tax: $",{"type":606,"tag":636,"props":2745,"children":2746},{"style":692},[2747],{"type":612,"value":1144},{"type":606,"tag":636,"props":2749,"children":2750},{"style":663},[2751],{"type":612,"value":2752},"total",{"type":606,"tag":636,"props":2754,"children":2755},{"style":651},[2756],{"type":612,"value":2757},":.2f",{"type":606,"tag":636,"props":2759,"children":2760},{"style":692},[2761],{"type":612,"value":1154},{"type":606,"tag":636,"props":2763,"children":2764},{"style":1018},[2765],{"type":612,"value":1159},{"type":606,"tag":636,"props":2767,"children":2768},{"style":663},[2769],{"type":612,"value":1164},{"type":606,"tag":636,"props":2771,"children":2772},{"style":642},[2773],{"type":612,"value":2774},"# Total with tax: $64.80\n",{"type":606,"tag":636,"props":2776,"children":2777},{"class":638,"line":181},[2778,2782,2786,2790,2794,2798,2803,2807,2811,2816],{"type":606,"tag":636,"props":2779,"children":2780},{"style":692},[2781],{"type":612,"value":1125},{"type":606,"tag":636,"props":2783,"children":2784},{"style":663},[2785],{"type":612,"value":666},{"type":606,"tag":636,"props":2787,"children":2788},{"style":651},[2789],{"type":612,"value":1134},{"type":606,"tag":636,"props":2791,"children":2792},{"style":1018},[2793],{"type":612,"value":1862},{"type":606,"tag":636,"props":2795,"children":2796},{"style":692},[2797],{"type":612,"value":1144},{"type":606,"tag":636,"props":2799,"children":2800},{"style":663},[2801],{"type":612,"value":2802},"msg",{"type":606,"tag":636,"props":2804,"children":2805},{"style":692},[2806],{"type":612,"value":1154},{"type":606,"tag":636,"props":2808,"children":2809},{"style":1018},[2810],{"type":612,"value":1159},{"type":606,"tag":636,"props":2812,"children":2813},{"style":663},[2814],{"type":612,"value":2815},")                ",{"type":606,"tag":636,"props":2817,"children":2818},{"style":642},[2819],{"type":612,"value":2820},"# Message: Hello Alice, you have 5 messages\n",{"type":606,"tag":1299,"props":2822,"children":2824},{"id":2823},"args-and-kwargs-reference",[2825],{"type":612,"value":2826},"📋 *args and **kwargs Reference",{"type":606,"tag":2828,"props":2829,"children":2830},"table",{},[2831,2855],{"type":606,"tag":2832,"props":2833,"children":2834},"thead",{},[2835],{"type":606,"tag":2836,"props":2837,"children":2838},"tr",{},[2839,2845,2850],{"type":606,"tag":2840,"props":2841,"children":2842},"th",{},[2843],{"type":612,"value":2844},"Syntax",{"type":606,"tag":2840,"props":2846,"children":2847},{},[2848],{"type":612,"value":2849},"Purpose",{"type":606,"tag":2840,"props":2851,"children":2852},{},[2853],{"type":612,"value":2854},"Example Usage",{"type":606,"tag":2856,"props":2857,"children":2858},"tbody",{},[2859,2886,2912],{"type":606,"tag":2836,"props":2860,"children":2861},{},[2862,2872,2877],{"type":606,"tag":2863,"props":2864,"children":2865},"td",{},[2866],{"type":606,"tag":632,"props":2867,"children":2869},{"className":2868},[],[2870],{"type":612,"value":2871},"*args",{"type":606,"tag":2863,"props":2873,"children":2874},{},[2875],{"type":612,"value":2876},"Variable positional args",{"type":606,"tag":2863,"props":2878,"children":2879},{},[2880],{"type":606,"tag":632,"props":2881,"children":2883},{"className":2882},[],[2884],{"type":612,"value":2885},"func(1, 2, 3)",{"type":606,"tag":2836,"props":2887,"children":2888},{},[2889,2898,2903],{"type":606,"tag":2863,"props":2890,"children":2891},{},[2892],{"type":606,"tag":632,"props":2893,"children":2895},{"className":2894},[],[2896],{"type":612,"value":2897},"**kwargs",{"type":606,"tag":2863,"props":2899,"children":2900},{},[2901],{"type":612,"value":2902},"Variable keyword args",{"type":606,"tag":2863,"props":2904,"children":2905},{},[2906],{"type":606,"tag":632,"props":2907,"children":2909},{"className":2908},[],[2910],{"type":612,"value":2911},"func(a=1, b=2)",{"type":606,"tag":2836,"props":2913,"children":2914},{},[2915,2920,2925],{"type":606,"tag":2863,"props":2916,"children":2917},{},[2918],{"type":612,"value":2919},"Both",{"type":606,"tag":2863,"props":2921,"children":2922},{},[2923],{"type":612,"value":2924},"Maximum flexibility",{"type":606,"tag":2863,"props":2926,"children":2927},{},[2928],{"type":606,"tag":632,"props":2929,"children":2931},{"className":2930},[],[2932],{"type":612,"value":2933},"func(1, 2, a=3, b=4)",{"type":606,"tag":1299,"props":2935,"children":2937},{"id":2936},"practical-examples",[2938],{"type":612,"value":2939},"🔧 Practical Examples",{"type":606,"tag":1389,"props":2941,"children":2943},{"id":2942},"function-with-all-parameter-types",[2944],{"type":612,"value":2945},"Function with All Parameter Types",{"type":606,"tag":621,"props":2947,"children":2948},{},[2949],{"type":606,"tag":625,"props":2950,"children":2952},{"className":627,"code":2951,"language":629,"meta":8,"style":8},"def flexible_function(required, default=\"default\", *args, **kwargs):\n    print(f\"Required: {required}\")\n    print(f\"Default: {default}\")\n    print(f\"Extra args: {args}\")\n    print(f\"Keyword args: {kwargs}\")\n\n# Different ways to call the function\nprint(\"Call 1:\")\nflexible_function(\"must_have\")\n\nprint(\"\\nCall 2:\")\nflexible_function(\"must_have\", \"custom\", 1, 2, 3)\n\nprint(\"\\nCall 3:\")\nflexible_function(\"must_have\", extra1=\"value1\", extra2=\"value2\")\n\nprint(\"\\nCall 4:\")\nflexible_function(\"must_have\", \"custom\", 1, 2, name=\"Alice\", age=30)\n",[2953],{"type":606,"tag":632,"props":2954,"children":2955},{"__ignoreMap":8},[2956,3003,3045,3086,3127,3168,3175,3183,3203,3220,3227,3255,3303,3310,3338,3389,3396,3424],{"type":606,"tag":636,"props":2957,"children":2958},{"class":638,"line":12},[2959,2963,2968,2973,2977,2982,2986,2990,2995,2999],{"type":606,"tag":636,"props":2960,"children":2961},{"style":651},[2962],{"type":612,"value":654},{"type":606,"tag":636,"props":2964,"children":2965},{"style":657},[2966],{"type":612,"value":2967}," flexible_function",{"type":606,"tag":636,"props":2969,"children":2970},{"style":663},[2971],{"type":612,"value":2972},"(required, default",{"type":606,"tag":636,"props":2974,"children":2975},{"style":651},[2976],{"type":612,"value":689},{"type":606,"tag":636,"props":2978,"children":2979},{"style":1018},[2980],{"type":612,"value":2981},"\"default\"",{"type":606,"tag":636,"props":2983,"children":2984},{"style":663},[2985],{"type":612,"value":901},{"type":606,"tag":636,"props":2987,"children":2988},{"style":651},[2989],{"type":612,"value":671},{"type":606,"tag":636,"props":2991,"children":2992},{"style":663},[2993],{"type":612,"value":2994},"args, ",{"type":606,"tag":636,"props":2996,"children":2997},{"style":651},[2998],{"type":612,"value":787},{"type":606,"tag":636,"props":3000,"children":3001},{"style":663},[3002],{"type":612,"value":792},{"type":606,"tag":636,"props":3004,"children":3005},{"class":638,"line":27},[3006,3011,3015,3019,3024,3028,3033,3037,3041],{"type":606,"tag":636,"props":3007,"children":3008},{"style":692},[3009],{"type":612,"value":3010},"    print",{"type":606,"tag":636,"props":3012,"children":3013},{"style":663},[3014],{"type":612,"value":666},{"type":606,"tag":636,"props":3016,"children":3017},{"style":651},[3018],{"type":612,"value":1134},{"type":606,"tag":636,"props":3020,"children":3021},{"style":1018},[3022],{"type":612,"value":3023},"\"Required: ",{"type":606,"tag":636,"props":3025,"children":3026},{"style":692},[3027],{"type":612,"value":1144},{"type":606,"tag":636,"props":3029,"children":3030},{"style":663},[3031],{"type":612,"value":3032},"required",{"type":606,"tag":636,"props":3034,"children":3035},{"style":692},[3036],{"type":612,"value":1154},{"type":606,"tag":636,"props":3038,"children":3039},{"style":1018},[3040],{"type":612,"value":1159},{"type":606,"tag":636,"props":3042,"children":3043},{"style":663},[3044],{"type":612,"value":920},{"type":606,"tag":636,"props":3046,"children":3047},{"class":638,"line":36},[3048,3052,3056,3060,3065,3069,3074,3078,3082],{"type":606,"tag":636,"props":3049,"children":3050},{"style":692},[3051],{"type":612,"value":3010},{"type":606,"tag":636,"props":3053,"children":3054},{"style":663},[3055],{"type":612,"value":666},{"type":606,"tag":636,"props":3057,"children":3058},{"style":651},[3059],{"type":612,"value":1134},{"type":606,"tag":636,"props":3061,"children":3062},{"style":1018},[3063],{"type":612,"value":3064},"\"Default: ",{"type":606,"tag":636,"props":3066,"children":3067},{"style":692},[3068],{"type":612,"value":1144},{"type":606,"tag":636,"props":3070,"children":3071},{"style":663},[3072],{"type":612,"value":3073},"default",{"type":606,"tag":636,"props":3075,"children":3076},{"style":692},[3077],{"type":612,"value":1154},{"type":606,"tag":636,"props":3079,"children":3080},{"style":1018},[3081],{"type":612,"value":1159},{"type":606,"tag":636,"props":3083,"children":3084},{"style":663},[3085],{"type":612,"value":920},{"type":606,"tag":636,"props":3087,"children":3088},{"class":638,"line":45},[3089,3093,3097,3101,3106,3110,3115,3119,3123],{"type":606,"tag":636,"props":3090,"children":3091},{"style":692},[3092],{"type":612,"value":3010},{"type":606,"tag":636,"props":3094,"children":3095},{"style":663},[3096],{"type":612,"value":666},{"type":606,"tag":636,"props":3098,"children":3099},{"style":651},[3100],{"type":612,"value":1134},{"type":606,"tag":636,"props":3102,"children":3103},{"style":1018},[3104],{"type":612,"value":3105},"\"Extra args: ",{"type":606,"tag":636,"props":3107,"children":3108},{"style":692},[3109],{"type":612,"value":1144},{"type":606,"tag":636,"props":3111,"children":3112},{"style":663},[3113],{"type":612,"value":3114},"args",{"type":606,"tag":636,"props":3116,"children":3117},{"style":692},[3118],{"type":612,"value":1154},{"type":606,"tag":636,"props":3120,"children":3121},{"style":1018},[3122],{"type":612,"value":1159},{"type":606,"tag":636,"props":3124,"children":3125},{"style":663},[3126],{"type":612,"value":920},{"type":606,"tag":636,"props":3128,"children":3129},{"class":638,"line":54},[3130,3134,3138,3142,3147,3151,3156,3160,3164],{"type":606,"tag":636,"props":3131,"children":3132},{"style":692},[3133],{"type":612,"value":3010},{"type":606,"tag":636,"props":3135,"children":3136},{"style":663},[3137],{"type":612,"value":666},{"type":606,"tag":636,"props":3139,"children":3140},{"style":651},[3141],{"type":612,"value":1134},{"type":606,"tag":636,"props":3143,"children":3144},{"style":1018},[3145],{"type":612,"value":3146},"\"Keyword args: ",{"type":606,"tag":636,"props":3148,"children":3149},{"style":692},[3150],{"type":612,"value":1144},{"type":606,"tag":636,"props":3152,"children":3153},{"style":663},[3154],{"type":612,"value":3155},"kwargs",{"type":606,"tag":636,"props":3157,"children":3158},{"style":692},[3159],{"type":612,"value":1154},{"type":606,"tag":636,"props":3161,"children":3162},{"style":1018},[3163],{"type":612,"value":1159},{"type":606,"tag":636,"props":3165,"children":3166},{"style":663},[3167],{"type":612,"value":920},{"type":606,"tag":636,"props":3169,"children":3170},{"class":638,"line":63},[3171],{"type":606,"tag":636,"props":3172,"children":3173},{"emptyLinePlaceholder":13},[3174],{"type":612,"value":757},{"type":606,"tag":636,"props":3176,"children":3177},{"class":638,"line":72},[3178],{"type":606,"tag":636,"props":3179,"children":3180},{"style":642},[3181],{"type":612,"value":3182},"# Different ways to call the function\n",{"type":606,"tag":636,"props":3184,"children":3185},{"class":638,"line":81},[3186,3190,3194,3199],{"type":606,"tag":636,"props":3187,"children":3188},{"style":692},[3189],{"type":612,"value":1125},{"type":606,"tag":636,"props":3191,"children":3192},{"style":663},[3193],{"type":612,"value":666},{"type":606,"tag":636,"props":3195,"children":3196},{"style":1018},[3197],{"type":612,"value":3198},"\"Call 1:\"",{"type":606,"tag":636,"props":3200,"children":3201},{"style":663},[3202],{"type":612,"value":920},{"type":606,"tag":636,"props":3204,"children":3205},{"class":638,"line":768},[3206,3211,3216],{"type":606,"tag":636,"props":3207,"children":3208},{"style":663},[3209],{"type":612,"value":3210},"flexible_function(",{"type":606,"tag":636,"props":3212,"children":3213},{"style":1018},[3214],{"type":612,"value":3215},"\"must_have\"",{"type":606,"tag":636,"props":3217,"children":3218},{"style":663},[3219],{"type":612,"value":920},{"type":606,"tag":636,"props":3221,"children":3222},{"class":638,"line":99},[3223],{"type":606,"tag":636,"props":3224,"children":3225},{"emptyLinePlaceholder":13},[3226],{"type":612,"value":757},{"type":606,"tag":636,"props":3228,"children":3229},{"class":638,"line":108},[3230,3234,3238,3242,3246,3251],{"type":606,"tag":636,"props":3231,"children":3232},{"style":692},[3233],{"type":612,"value":1125},{"type":606,"tag":636,"props":3235,"children":3236},{"style":663},[3237],{"type":612,"value":666},{"type":606,"tag":636,"props":3239,"children":3240},{"style":1018},[3241],{"type":612,"value":1159},{"type":606,"tag":636,"props":3243,"children":3244},{"style":692},[3245],{"type":612,"value":2330},{"type":606,"tag":636,"props":3247,"children":3248},{"style":1018},[3249],{"type":612,"value":3250},"Call 2:\"",{"type":606,"tag":636,"props":3252,"children":3253},{"style":663},[3254],{"type":612,"value":920},{"type":606,"tag":636,"props":3256,"children":3257},{"class":638,"line":117},[3258,3262,3266,3270,3275,3279,3283,3287,3291,3295,3299],{"type":606,"tag":636,"props":3259,"children":3260},{"style":663},[3261],{"type":612,"value":3210},{"type":606,"tag":636,"props":3263,"children":3264},{"style":1018},[3265],{"type":612,"value":3215},{"type":606,"tag":636,"props":3267,"children":3268},{"style":663},[3269],{"type":612,"value":901},{"type":606,"tag":636,"props":3271,"children":3272},{"style":1018},[3273],{"type":612,"value":3274},"\"custom\"",{"type":606,"tag":636,"props":3276,"children":3277},{"style":663},[3278],{"type":612,"value":901},{"type":606,"tag":636,"props":3280,"children":3281},{"style":692},[3282],{"type":612,"value":896},{"type":606,"tag":636,"props":3284,"children":3285},{"style":663},[3286],{"type":612,"value":901},{"type":606,"tag":636,"props":3288,"children":3289},{"style":692},[3290],{"type":612,"value":906},{"type":606,"tag":636,"props":3292,"children":3293},{"style":663},[3294],{"type":612,"value":901},{"type":606,"tag":636,"props":3296,"children":3297},{"style":692},[3298],{"type":612,"value":915},{"type":606,"tag":636,"props":3300,"children":3301},{"style":663},[3302],{"type":612,"value":920},{"type":606,"tag":636,"props":3304,"children":3305},{"class":638,"line":126},[3306],{"type":606,"tag":636,"props":3307,"children":3308},{"emptyLinePlaceholder":13},[3309],{"type":612,"value":757},{"type":606,"tag":636,"props":3311,"children":3312},{"class":638,"line":135},[3313,3317,3321,3325,3329,3334],{"type":606,"tag":636,"props":3314,"children":3315},{"style":692},[3316],{"type":612,"value":1125},{"type":606,"tag":636,"props":3318,"children":3319},{"style":663},[3320],{"type":612,"value":666},{"type":606,"tag":636,"props":3322,"children":3323},{"style":1018},[3324],{"type":612,"value":1159},{"type":606,"tag":636,"props":3326,"children":3327},{"style":692},[3328],{"type":612,"value":2330},{"type":606,"tag":636,"props":3330,"children":3331},{"style":1018},[3332],{"type":612,"value":3333},"Call 3:\"",{"type":606,"tag":636,"props":3335,"children":3336},{"style":663},[3337],{"type":612,"value":920},{"type":606,"tag":636,"props":3339,"children":3340},{"class":638,"line":144},[3341,3345,3349,3353,3358,3362,3367,3371,3376,3380,3385],{"type":606,"tag":636,"props":3342,"children":3343},{"style":663},[3344],{"type":612,"value":3210},{"type":606,"tag":636,"props":3346,"children":3347},{"style":1018},[3348],{"type":612,"value":3215},{"type":606,"tag":636,"props":3350,"children":3351},{"style":663},[3352],{"type":612,"value":901},{"type":606,"tag":636,"props":3354,"children":3355},{"style":1008},[3356],{"type":612,"value":3357},"extra1",{"type":606,"tag":636,"props":3359,"children":3360},{"style":651},[3361],{"type":612,"value":689},{"type":606,"tag":636,"props":3363,"children":3364},{"style":1018},[3365],{"type":612,"value":3366},"\"value1\"",{"type":606,"tag":636,"props":3368,"children":3369},{"style":663},[3370],{"type":612,"value":901},{"type":606,"tag":636,"props":3372,"children":3373},{"style":1008},[3374],{"type":612,"value":3375},"extra2",{"type":606,"tag":636,"props":3377,"children":3378},{"style":651},[3379],{"type":612,"value":689},{"type":606,"tag":636,"props":3381,"children":3382},{"style":1018},[3383],{"type":612,"value":3384},"\"value2\"",{"type":606,"tag":636,"props":3386,"children":3387},{"style":663},[3388],{"type":612,"value":920},{"type":606,"tag":636,"props":3390,"children":3391},{"class":638,"line":153},[3392],{"type":606,"tag":636,"props":3393,"children":3394},{"emptyLinePlaceholder":13},[3395],{"type":612,"value":757},{"type":606,"tag":636,"props":3397,"children":3398},{"class":638,"line":163},[3399,3403,3407,3411,3415,3420],{"type":606,"tag":636,"props":3400,"children":3401},{"style":692},[3402],{"type":612,"value":1125},{"type":606,"tag":636,"props":3404,"children":3405},{"style":663},[3406],{"type":612,"value":666},{"type":606,"tag":636,"props":3408,"children":3409},{"style":1018},[3410],{"type":612,"value":1159},{"type":606,"tag":636,"props":3412,"children":3413},{"style":692},[3414],{"type":612,"value":2330},{"type":606,"tag":636,"props":3416,"children":3417},{"style":1018},[3418],{"type":612,"value":3419},"Call 4:\"",{"type":606,"tag":636,"props":3421,"children":3422},{"style":663},[3423],{"type":612,"value":920},{"type":606,"tag":636,"props":3425,"children":3426},{"class":638,"line":172},[3427,3431,3435,3439,3443,3447,3451,3455,3459,3463,3467,3471,3475,3479,3483,3487,3491],{"type":606,"tag":636,"props":3428,"children":3429},{"style":663},[3430],{"type":612,"value":3210},{"type":606,"tag":636,"props":3432,"children":3433},{"style":1018},[3434],{"type":612,"value":3215},{"type":606,"tag":636,"props":3436,"children":3437},{"style":663},[3438],{"type":612,"value":901},{"type":606,"tag":636,"props":3440,"children":3441},{"style":1018},[3442],{"type":612,"value":3274},{"type":606,"tag":636,"props":3444,"children":3445},{"style":663},[3446],{"type":612,"value":901},{"type":606,"tag":636,"props":3448,"children":3449},{"style":692},[3450],{"type":612,"value":896},{"type":606,"tag":636,"props":3452,"children":3453},{"style":663},[3454],{"type":612,"value":901},{"type":606,"tag":636,"props":3456,"children":3457},{"style":692},[3458],{"type":612,"value":906},{"type":606,"tag":636,"props":3460,"children":3461},{"style":663},[3462],{"type":612,"value":901},{"type":606,"tag":636,"props":3464,"children":3465},{"style":1008},[3466],{"type":612,"value":1011},{"type":606,"tag":636,"props":3468,"children":3469},{"style":651},[3470],{"type":612,"value":689},{"type":606,"tag":636,"props":3472,"children":3473},{"style":1018},[3474],{"type":612,"value":1021},{"type":606,"tag":636,"props":3476,"children":3477},{"style":663},[3478],{"type":612,"value":901},{"type":606,"tag":636,"props":3480,"children":3481},{"style":1008},[3482],{"type":612,"value":1030},{"type":606,"tag":636,"props":3484,"children":3485},{"style":651},[3486],{"type":612,"value":689},{"type":606,"tag":636,"props":3488,"children":3489},{"style":692},[3490],{"type":612,"value":959},{"type":606,"tag":636,"props":3492,"children":3493},{"style":663},[3494],{"type":612,"value":920},{"type":606,"tag":1389,"props":3496,"children":3498},{"id":3497},"passing-arguments-to-other-functions",[3499],{"type":612,"value":3500},"Passing Arguments to Other Functions",{"type":606,"tag":621,"props":3502,"children":3503},{},[3504],{"type":606,"tag":625,"props":3505,"children":3507},{"className":627,"code":3506,"language":629,"meta":8,"style":8},"def log_message(level, message):\n    print(f\"[{level}] {message}\")\n\ndef enhanced_log(*args, **kwargs):\n    # Add timestamp to kwargs\n    import datetime\n    kwargs[\"timestamp\"] = datetime.datetime.now().strftime(\"%H:%M:%S\")\n    \n    # Call original function with passed arguments\n    log_message(*args)\n    \n    # Print additional info\n    for key, value in kwargs.items():\n        print(f\"  {key}: {value}\")\n\n# Test the enhanced function\nenhanced_log(\"INFO\", \"Application started\", user=\"admin\", version=\"1.0\")\n",[3508],{"type":606,"tag":632,"props":3509,"children":3510},{"__ignoreMap":8},[3511,3528,3586,3593,3625,3633,3646,3681,3689,3697,3714,3721,3729,3748,3804,3811,3819],{"type":606,"tag":636,"props":3512,"children":3513},{"class":638,"line":12},[3514,3518,3523],{"type":606,"tag":636,"props":3515,"children":3516},{"style":651},[3517],{"type":612,"value":654},{"type":606,"tag":636,"props":3519,"children":3520},{"style":657},[3521],{"type":612,"value":3522}," log_message",{"type":606,"tag":636,"props":3524,"children":3525},{"style":663},[3526],{"type":612,"value":3527},"(level, message):\n",{"type":606,"tag":636,"props":3529,"children":3530},{"class":638,"line":27},[3531,3535,3539,3543,3548,3552,3557,3561,3566,3570,3574,3578,3582],{"type":606,"tag":636,"props":3532,"children":3533},{"style":692},[3534],{"type":612,"value":3010},{"type":606,"tag":636,"props":3536,"children":3537},{"style":663},[3538],{"type":612,"value":666},{"type":606,"tag":636,"props":3540,"children":3541},{"style":651},[3542],{"type":612,"value":1134},{"type":606,"tag":636,"props":3544,"children":3545},{"style":1018},[3546],{"type":612,"value":3547},"\"[",{"type":606,"tag":636,"props":3549,"children":3550},{"style":692},[3551],{"type":612,"value":1144},{"type":606,"tag":636,"props":3553,"children":3554},{"style":663},[3555],{"type":612,"value":3556},"level",{"type":606,"tag":636,"props":3558,"children":3559},{"style":692},[3560],{"type":612,"value":1154},{"type":606,"tag":636,"props":3562,"children":3563},{"style":1018},[3564],{"type":612,"value":3565},"] ",{"type":606,"tag":636,"props":3567,"children":3568},{"style":692},[3569],{"type":612,"value":1144},{"type":606,"tag":636,"props":3571,"children":3572},{"style":663},[3573],{"type":612,"value":1871},{"type":606,"tag":636,"props":3575,"children":3576},{"style":692},[3577],{"type":612,"value":1154},{"type":606,"tag":636,"props":3579,"children":3580},{"style":1018},[3581],{"type":612,"value":1159},{"type":606,"tag":636,"props":3583,"children":3584},{"style":663},[3585],{"type":612,"value":920},{"type":606,"tag":636,"props":3587,"children":3588},{"class":638,"line":36},[3589],{"type":606,"tag":636,"props":3590,"children":3591},{"emptyLinePlaceholder":13},[3592],{"type":612,"value":757},{"type":606,"tag":636,"props":3594,"children":3595},{"class":638,"line":45},[3596,3600,3605,3609,3613,3617,3621],{"type":606,"tag":636,"props":3597,"children":3598},{"style":651},[3599],{"type":612,"value":654},{"type":606,"tag":636,"props":3601,"children":3602},{"style":657},[3603],{"type":612,"value":3604}," enhanced_log",{"type":606,"tag":636,"props":3606,"children":3607},{"style":663},[3608],{"type":612,"value":666},{"type":606,"tag":636,"props":3610,"children":3611},{"style":651},[3612],{"type":612,"value":671},{"type":606,"tag":636,"props":3614,"children":3615},{"style":663},[3616],{"type":612,"value":2994},{"type":606,"tag":636,"props":3618,"children":3619},{"style":651},[3620],{"type":612,"value":787},{"type":606,"tag":636,"props":3622,"children":3623},{"style":663},[3624],{"type":612,"value":792},{"type":606,"tag":636,"props":3626,"children":3627},{"class":638,"line":54},[3628],{"type":606,"tag":636,"props":3629,"children":3630},{"style":642},[3631],{"type":612,"value":3632},"    # Add timestamp to kwargs\n",{"type":606,"tag":636,"props":3634,"children":3635},{"class":638,"line":63},[3636,3641],{"type":606,"tag":636,"props":3637,"children":3638},{"style":651},[3639],{"type":612,"value":3640},"    import",{"type":606,"tag":636,"props":3642,"children":3643},{"style":663},[3644],{"type":612,"value":3645}," datetime\n",{"type":606,"tag":636,"props":3647,"children":3648},{"class":638,"line":72},[3649,3654,3659,3663,3667,3672,3677],{"type":606,"tag":636,"props":3650,"children":3651},{"style":663},[3652],{"type":612,"value":3653},"    kwargs[",{"type":606,"tag":636,"props":3655,"children":3656},{"style":1018},[3657],{"type":612,"value":3658},"\"timestamp\"",{"type":606,"tag":636,"props":3660,"children":3661},{"style":663},[3662],{"type":612,"value":3565},{"type":606,"tag":636,"props":3664,"children":3665},{"style":651},[3666],{"type":612,"value":689},{"type":606,"tag":636,"props":3668,"children":3669},{"style":663},[3670],{"type":612,"value":3671}," datetime.datetime.now().strftime(",{"type":606,"tag":636,"props":3673,"children":3674},{"style":1018},[3675],{"type":612,"value":3676},"\"%H:%M:%S\"",{"type":606,"tag":636,"props":3678,"children":3679},{"style":663},[3680],{"type":612,"value":920},{"type":606,"tag":636,"props":3682,"children":3683},{"class":638,"line":81},[3684],{"type":606,"tag":636,"props":3685,"children":3686},{"style":663},[3687],{"type":612,"value":3688},"    \n",{"type":606,"tag":636,"props":3690,"children":3691},{"class":638,"line":768},[3692],{"type":606,"tag":636,"props":3693,"children":3694},{"style":642},[3695],{"type":612,"value":3696},"    # Call original function with passed arguments\n",{"type":606,"tag":636,"props":3698,"children":3699},{"class":638,"line":99},[3700,3705,3709],{"type":606,"tag":636,"props":3701,"children":3702},{"style":663},[3703],{"type":612,"value":3704},"    log_message(",{"type":606,"tag":636,"props":3706,"children":3707},{"style":651},[3708],{"type":612,"value":671},{"type":606,"tag":636,"props":3710,"children":3711},{"style":663},[3712],{"type":612,"value":3713},"args)\n",{"type":606,"tag":636,"props":3715,"children":3716},{"class":638,"line":108},[3717],{"type":606,"tag":636,"props":3718,"children":3719},{"style":663},[3720],{"type":612,"value":3688},{"type":606,"tag":636,"props":3722,"children":3723},{"class":638,"line":117},[3724],{"type":606,"tag":636,"props":3725,"children":3726},{"style":642},[3727],{"type":612,"value":3728},"    # Print additional info\n",{"type":606,"tag":636,"props":3730,"children":3731},{"class":638,"line":126},[3732,3736,3740,3744],{"type":606,"tag":636,"props":3733,"children":3734},{"style":651},[3735],{"type":612,"value":703},{"type":606,"tag":636,"props":3737,"children":3738},{"style":663},[3739],{"type":612,"value":821},{"type":606,"tag":636,"props":3741,"children":3742},{"style":651},[3743],{"type":612,"value":713},{"type":606,"tag":636,"props":3745,"children":3746},{"style":663},[3747],{"type":612,"value":830},{"type":606,"tag":636,"props":3749,"children":3750},{"class":638,"line":135},[3751,3755,3759,3763,3768,3772,3776,3780,3784,3788,3792,3796,3800],{"type":606,"tag":636,"props":3752,"children":3753},{"style":692},[3754],{"type":612,"value":1466},{"type":606,"tag":636,"props":3756,"children":3757},{"style":663},[3758],{"type":612,"value":666},{"type":606,"tag":636,"props":3760,"children":3761},{"style":651},[3762],{"type":612,"value":1134},{"type":606,"tag":636,"props":3764,"children":3765},{"style":1018},[3766],{"type":612,"value":3767},"\"  ",{"type":606,"tag":636,"props":3769,"children":3770},{"style":692},[3771],{"type":612,"value":1144},{"type":606,"tag":636,"props":3773,"children":3774},{"style":663},[3775],{"type":612,"value":1983},{"type":606,"tag":636,"props":3777,"children":3778},{"style":692},[3779],{"type":612,"value":1154},{"type":606,"tag":636,"props":3781,"children":3782},{"style":1018},[3783],{"type":612,"value":1992},{"type":606,"tag":636,"props":3785,"children":3786},{"style":692},[3787],{"type":612,"value":1144},{"type":606,"tag":636,"props":3789,"children":3790},{"style":663},[3791],{"type":612,"value":2001},{"type":606,"tag":636,"props":3793,"children":3794},{"style":692},[3795],{"type":612,"value":1154},{"type":606,"tag":636,"props":3797,"children":3798},{"style":1018},[3799],{"type":612,"value":1159},{"type":606,"tag":636,"props":3801,"children":3802},{"style":663},[3803],{"type":612,"value":920},{"type":606,"tag":636,"props":3805,"children":3806},{"class":638,"line":144},[3807],{"type":606,"tag":636,"props":3808,"children":3809},{"emptyLinePlaceholder":13},[3810],{"type":612,"value":757},{"type":606,"tag":636,"props":3812,"children":3813},{"class":638,"line":153},[3814],{"type":606,"tag":636,"props":3815,"children":3816},{"style":642},[3817],{"type":612,"value":3818},"# Test the enhanced function\n",{"type":606,"tag":636,"props":3820,"children":3821},{"class":638,"line":163},[3822,3827,3832,3836,3841,3845,3850,3854,3859,3863,3868,3872,3877],{"type":606,"tag":636,"props":3823,"children":3824},{"style":663},[3825],{"type":612,"value":3826},"enhanced_log(",{"type":606,"tag":636,"props":3828,"children":3829},{"style":1018},[3830],{"type":612,"value":3831},"\"INFO\"",{"type":606,"tag":636,"props":3833,"children":3834},{"style":663},[3835],{"type":612,"value":901},{"type":606,"tag":636,"props":3837,"children":3838},{"style":1018},[3839],{"type":612,"value":3840},"\"Application started\"",{"type":606,"tag":636,"props":3842,"children":3843},{"style":663},[3844],{"type":612,"value":901},{"type":606,"tag":636,"props":3846,"children":3847},{"style":1008},[3848],{"type":612,"value":3849},"user",{"type":606,"tag":636,"props":3851,"children":3852},{"style":651},[3853],{"type":612,"value":689},{"type":606,"tag":636,"props":3855,"children":3856},{"style":1018},[3857],{"type":612,"value":3858},"\"admin\"",{"type":606,"tag":636,"props":3860,"children":3861},{"style":663},[3862],{"type":612,"value":901},{"type":606,"tag":636,"props":3864,"children":3865},{"style":1008},[3866],{"type":612,"value":3867},"version",{"type":606,"tag":636,"props":3869,"children":3870},{"style":651},[3871],{"type":612,"value":689},{"type":606,"tag":636,"props":3873,"children":3874},{"style":1018},[3875],{"type":612,"value":3876},"\"1.0\"",{"type":606,"tag":636,"props":3878,"children":3879},{"style":663},[3880],{"type":612,"value":920},{"type":606,"tag":1389,"props":3882,"children":3884},{"id":3883},"building-flexible-data-structures",[3885],{"type":612,"value":3886},"Building Flexible Data Structures",{"type":606,"tag":621,"props":3888,"children":3889},{},[3890],{"type":606,"tag":625,"props":3891,"children":3893},{"className":627,"code":3892,"language":629,"meta":8,"style":8},"def create_user(name, email, **additional_info):\n    user = {\n        \"name\": name,\n        \"email\": email,\n        \"active\": True\n    }\n    \n    # Add any additional information\n    user.update(additional_info)\n    return user\n\ndef format_list(*items, separator=\", \", prefix=\"\", suffix=\"\"):\n    formatted_items = [f\"{prefix}{item}{suffix}\" for item in items]\n    return separator.join(formatted_items)\n\n# Test the functions\nuser1 = create_user(\"Alice\", \"alice@email.com\", age=30, city=\"Boston\")\nuser2 = create_user(\"Bob\", \"bob@email.com\", department=\"Engineering\")\n\nlist1 = format_list(\"apple\", \"banana\", \"orange\")\nlist2 = format_list(\"item1\", \"item2\", \"item3\", separator=\" | \", prefix=\">> \")\n\nprint(f\"User1: {user1}\")\nprint(f\"User2: {user2}\")\nprint(f\"List1: {list1}\")\nprint(f\"List2: {list2}\")\n",[3894],{"type":606,"tag":632,"props":3895,"children":3896},{"__ignoreMap":8},[3897,3923,3939,3952,3965,3982,3989,3996,4004,4012,4024,4031,4097,4177,4189,4196,4203,4269,4320,4327,4371,4449,4456,4497,4538,4579],{"type":606,"tag":636,"props":3898,"children":3899},{"class":638,"line":12},[3900,3904,3909,3914,3918],{"type":606,"tag":636,"props":3901,"children":3902},{"style":651},[3903],{"type":612,"value":654},{"type":606,"tag":636,"props":3905,"children":3906},{"style":657},[3907],{"type":612,"value":3908}," create_user",{"type":606,"tag":636,"props":3910,"children":3911},{"style":663},[3912],{"type":612,"value":3913},"(name, email, ",{"type":606,"tag":636,"props":3915,"children":3916},{"style":651},[3917],{"type":612,"value":787},{"type":606,"tag":636,"props":3919,"children":3920},{"style":663},[3921],{"type":612,"value":3922},"additional_info):\n",{"type":606,"tag":636,"props":3924,"children":3925},{"class":638,"line":27},[3926,3931,3935],{"type":606,"tag":636,"props":3927,"children":3928},{"style":663},[3929],{"type":612,"value":3930},"    user ",{"type":606,"tag":636,"props":3932,"children":3933},{"style":651},[3934],{"type":612,"value":689},{"type":606,"tag":636,"props":3936,"children":3937},{"style":663},[3938],{"type":612,"value":2062},{"type":606,"tag":636,"props":3940,"children":3941},{"class":638,"line":36},[3942,3947],{"type":606,"tag":636,"props":3943,"children":3944},{"style":1018},[3945],{"type":612,"value":3946},"        \"name\"",{"type":606,"tag":636,"props":3948,"children":3949},{"style":663},[3950],{"type":612,"value":3951},": name,\n",{"type":606,"tag":636,"props":3953,"children":3954},{"class":638,"line":45},[3955,3960],{"type":606,"tag":636,"props":3956,"children":3957},{"style":1018},[3958],{"type":612,"value":3959},"        \"email\"",{"type":606,"tag":636,"props":3961,"children":3962},{"style":663},[3963],{"type":612,"value":3964},": email,\n",{"type":606,"tag":636,"props":3966,"children":3967},{"class":638,"line":54},[3968,3973,3977],{"type":606,"tag":636,"props":3969,"children":3970},{"style":1018},[3971],{"type":612,"value":3972},"        \"active\"",{"type":606,"tag":636,"props":3974,"children":3975},{"style":663},[3976],{"type":612,"value":1992},{"type":606,"tag":636,"props":3978,"children":3979},{"style":692},[3980],{"type":612,"value":3981},"True\n",{"type":606,"tag":636,"props":3983,"children":3984},{"class":638,"line":63},[3985],{"type":606,"tag":636,"props":3986,"children":3987},{"style":663},[3988],{"type":612,"value":2109},{"type":606,"tag":636,"props":3990,"children":3991},{"class":638,"line":72},[3992],{"type":606,"tag":636,"props":3993,"children":3994},{"style":663},[3995],{"type":612,"value":3688},{"type":606,"tag":636,"props":3997,"children":3998},{"class":638,"line":81},[3999],{"type":606,"tag":636,"props":4000,"children":4001},{"style":642},[4002],{"type":612,"value":4003},"    # Add any additional information\n",{"type":606,"tag":636,"props":4005,"children":4006},{"class":638,"line":768},[4007],{"type":606,"tag":636,"props":4008,"children":4009},{"style":663},[4010],{"type":612,"value":4011},"    user.update(additional_info)\n",{"type":606,"tag":636,"props":4013,"children":4014},{"class":638,"line":99},[4015,4019],{"type":606,"tag":636,"props":4016,"children":4017},{"style":651},[4018],{"type":612,"value":744},{"type":606,"tag":636,"props":4020,"children":4021},{"style":663},[4022],{"type":612,"value":4023}," user\n",{"type":606,"tag":636,"props":4025,"children":4026},{"class":638,"line":108},[4027],{"type":606,"tag":636,"props":4028,"children":4029},{"emptyLinePlaceholder":13},[4030],{"type":612,"value":757},{"type":606,"tag":636,"props":4032,"children":4033},{"class":638,"line":117},[4034,4038,4043,4047,4051,4056,4060,4065,4070,4074,4079,4084,4088,4092],{"type":606,"tag":636,"props":4035,"children":4036},{"style":651},[4037],{"type":612,"value":654},{"type":606,"tag":636,"props":4039,"children":4040},{"style":657},[4041],{"type":612,"value":4042}," format_list",{"type":606,"tag":636,"props":4044,"children":4045},{"style":663},[4046],{"type":612,"value":666},{"type":606,"tag":636,"props":4048,"children":4049},{"style":651},[4050],{"type":612,"value":671},{"type":606,"tag":636,"props":4052,"children":4053},{"style":663},[4054],{"type":612,"value":4055},"items, separator",{"type":606,"tag":636,"props":4057,"children":4058},{"style":651},[4059],{"type":612,"value":689},{"type":606,"tag":636,"props":4061,"children":4062},{"style":1018},[4063],{"type":612,"value":4064},"\", \"",{"type":606,"tag":636,"props":4066,"children":4067},{"style":663},[4068],{"type":612,"value":4069},", prefix",{"type":606,"tag":636,"props":4071,"children":4072},{"style":651},[4073],{"type":612,"value":689},{"type":606,"tag":636,"props":4075,"children":4076},{"style":1018},[4077],{"type":612,"value":4078},"\"\"",{"type":606,"tag":636,"props":4080,"children":4081},{"style":663},[4082],{"type":612,"value":4083},", suffix",{"type":606,"tag":636,"props":4085,"children":4086},{"style":651},[4087],{"type":612,"value":689},{"type":606,"tag":636,"props":4089,"children":4090},{"style":1018},[4091],{"type":612,"value":4078},{"type":606,"tag":636,"props":4093,"children":4094},{"style":663},[4095],{"type":612,"value":4096},"):\n",{"type":606,"tag":636,"props":4098,"children":4099},{"class":638,"line":126},[4100,4105,4109,4114,4118,4122,4126,4131,4136,4141,4145,4150,4154,4158,4163,4168,4172],{"type":606,"tag":636,"props":4101,"children":4102},{"style":663},[4103],{"type":612,"value":4104},"    formatted_items ",{"type":606,"tag":636,"props":4106,"children":4107},{"style":651},[4108],{"type":612,"value":689},{"type":606,"tag":636,"props":4110,"children":4111},{"style":663},[4112],{"type":612,"value":4113}," [",{"type":606,"tag":636,"props":4115,"children":4116},{"style":651},[4117],{"type":612,"value":1134},{"type":606,"tag":636,"props":4119,"children":4120},{"style":1018},[4121],{"type":612,"value":1159},{"type":606,"tag":636,"props":4123,"children":4124},{"style":692},[4125],{"type":612,"value":1144},{"type":606,"tag":636,"props":4127,"children":4128},{"style":663},[4129],{"type":612,"value":4130},"prefix",{"type":606,"tag":636,"props":4132,"children":4133},{"style":692},[4134],{"type":612,"value":4135},"}{",{"type":606,"tag":636,"props":4137,"children":4138},{"style":663},[4139],{"type":612,"value":4140},"item",{"type":606,"tag":636,"props":4142,"children":4143},{"style":692},[4144],{"type":612,"value":4135},{"type":606,"tag":636,"props":4146,"children":4147},{"style":663},[4148],{"type":612,"value":4149},"suffix",{"type":606,"tag":636,"props":4151,"children":4152},{"style":692},[4153],{"type":612,"value":1154},{"type":606,"tag":636,"props":4155,"children":4156},{"style":1018},[4157],{"type":612,"value":1159},{"type":606,"tag":636,"props":4159,"children":4160},{"style":651},[4161],{"type":612,"value":4162}," for",{"type":606,"tag":636,"props":4164,"children":4165},{"style":663},[4166],{"type":612,"value":4167}," item ",{"type":606,"tag":636,"props":4169,"children":4170},{"style":651},[4171],{"type":612,"value":713},{"type":606,"tag":636,"props":4173,"children":4174},{"style":663},[4175],{"type":612,"value":4176}," items]\n",{"type":606,"tag":636,"props":4178,"children":4179},{"class":638,"line":135},[4180,4184],{"type":606,"tag":636,"props":4181,"children":4182},{"style":651},[4183],{"type":612,"value":744},{"type":606,"tag":636,"props":4185,"children":4186},{"style":663},[4187],{"type":612,"value":4188}," separator.join(formatted_items)\n",{"type":606,"tag":636,"props":4190,"children":4191},{"class":638,"line":144},[4192],{"type":606,"tag":636,"props":4193,"children":4194},{"emptyLinePlaceholder":13},[4195],{"type":612,"value":757},{"type":606,"tag":636,"props":4197,"children":4198},{"class":638,"line":153},[4199],{"type":606,"tag":636,"props":4200,"children":4201},{"style":642},[4202],{"type":612,"value":1644},{"type":606,"tag":636,"props":4204,"children":4205},{"class":638,"line":163},[4206,4211,4215,4220,4224,4228,4233,4237,4241,4245,4249,4253,4257,4261,4265],{"type":606,"tag":636,"props":4207,"children":4208},{"style":663},[4209],{"type":612,"value":4210},"user1 ",{"type":606,"tag":636,"props":4212,"children":4213},{"style":651},[4214],{"type":612,"value":689},{"type":606,"tag":636,"props":4216,"children":4217},{"style":663},[4218],{"type":612,"value":4219}," create_user(",{"type":606,"tag":636,"props":4221,"children":4222},{"style":1018},[4223],{"type":612,"value":1021},{"type":606,"tag":636,"props":4225,"children":4226},{"style":663},[4227],{"type":612,"value":901},{"type":606,"tag":636,"props":4229,"children":4230},{"style":1018},[4231],{"type":612,"value":4232},"\"alice@email.com\"",{"type":606,"tag":636,"props":4234,"children":4235},{"style":663},[4236],{"type":612,"value":901},{"type":606,"tag":636,"props":4238,"children":4239},{"style":1008},[4240],{"type":612,"value":1030},{"type":606,"tag":636,"props":4242,"children":4243},{"style":651},[4244],{"type":612,"value":689},{"type":606,"tag":636,"props":4246,"children":4247},{"style":692},[4248],{"type":612,"value":959},{"type":606,"tag":636,"props":4250,"children":4251},{"style":663},[4252],{"type":612,"value":901},{"type":606,"tag":636,"props":4254,"children":4255},{"style":1008},[4256],{"type":612,"value":1097},{"type":606,"tag":636,"props":4258,"children":4259},{"style":651},[4260],{"type":612,"value":689},{"type":606,"tag":636,"props":4262,"children":4263},{"style":1018},[4264],{"type":612,"value":2224},{"type":606,"tag":636,"props":4266,"children":4267},{"style":663},[4268],{"type":612,"value":920},{"type":606,"tag":636,"props":4270,"children":4271},{"class":638,"line":172},[4272,4277,4281,4285,4289,4293,4298,4302,4307,4311,4316],{"type":606,"tag":636,"props":4273,"children":4274},{"style":663},[4275],{"type":612,"value":4276},"user2 ",{"type":606,"tag":636,"props":4278,"children":4279},{"style":651},[4280],{"type":612,"value":689},{"type":606,"tag":636,"props":4282,"children":4283},{"style":663},[4284],{"type":612,"value":4219},{"type":606,"tag":636,"props":4286,"children":4287},{"style":1018},[4288],{"type":612,"value":1071},{"type":606,"tag":636,"props":4290,"children":4291},{"style":663},[4292],{"type":612,"value":901},{"type":606,"tag":636,"props":4294,"children":4295},{"style":1018},[4296],{"type":612,"value":4297},"\"bob@email.com\"",{"type":606,"tag":636,"props":4299,"children":4300},{"style":663},[4301],{"type":612,"value":901},{"type":606,"tag":636,"props":4303,"children":4304},{"style":1008},[4305],{"type":612,"value":4306},"department",{"type":606,"tag":636,"props":4308,"children":4309},{"style":651},[4310],{"type":612,"value":689},{"type":606,"tag":636,"props":4312,"children":4313},{"style":1018},[4314],{"type":612,"value":4315},"\"Engineering\"",{"type":606,"tag":636,"props":4317,"children":4318},{"style":663},[4319],{"type":612,"value":920},{"type":606,"tag":636,"props":4321,"children":4322},{"class":638,"line":181},[4323],{"type":606,"tag":636,"props":4324,"children":4325},{"emptyLinePlaceholder":13},[4326],{"type":612,"value":757},{"type":606,"tag":636,"props":4328,"children":4329},{"class":638,"line":190},[4330,4335,4339,4344,4349,4353,4358,4362,4367],{"type":606,"tag":636,"props":4331,"children":4332},{"style":663},[4333],{"type":612,"value":4334},"list1 ",{"type":606,"tag":636,"props":4336,"children":4337},{"style":651},[4338],{"type":612,"value":689},{"type":606,"tag":636,"props":4340,"children":4341},{"style":663},[4342],{"type":612,"value":4343}," format_list(",{"type":606,"tag":636,"props":4345,"children":4346},{"style":1018},[4347],{"type":612,"value":4348},"\"apple\"",{"type":606,"tag":636,"props":4350,"children":4351},{"style":663},[4352],{"type":612,"value":901},{"type":606,"tag":636,"props":4354,"children":4355},{"style":1018},[4356],{"type":612,"value":4357},"\"banana\"",{"type":606,"tag":636,"props":4359,"children":4360},{"style":663},[4361],{"type":612,"value":901},{"type":606,"tag":636,"props":4363,"children":4364},{"style":1018},[4365],{"type":612,"value":4366},"\"orange\"",{"type":606,"tag":636,"props":4368,"children":4369},{"style":663},[4370],{"type":612,"value":920},{"type":606,"tag":636,"props":4372,"children":4373},{"class":638,"line":199},[4374,4379,4383,4387,4392,4396,4401,4405,4410,4414,4419,4423,4428,4432,4436,4440,4445],{"type":606,"tag":636,"props":4375,"children":4376},{"style":663},[4377],{"type":612,"value":4378},"list2 ",{"type":606,"tag":636,"props":4380,"children":4381},{"style":651},[4382],{"type":612,"value":689},{"type":606,"tag":636,"props":4384,"children":4385},{"style":663},[4386],{"type":612,"value":4343},{"type":606,"tag":636,"props":4388,"children":4389},{"style":1018},[4390],{"type":612,"value":4391},"\"item1\"",{"type":606,"tag":636,"props":4393,"children":4394},{"style":663},[4395],{"type":612,"value":901},{"type":606,"tag":636,"props":4397,"children":4398},{"style":1018},[4399],{"type":612,"value":4400},"\"item2\"",{"type":606,"tag":636,"props":4402,"children":4403},{"style":663},[4404],{"type":612,"value":901},{"type":606,"tag":636,"props":4406,"children":4407},{"style":1018},[4408],{"type":612,"value":4409},"\"item3\"",{"type":606,"tag":636,"props":4411,"children":4412},{"style":663},[4413],{"type":612,"value":901},{"type":606,"tag":636,"props":4415,"children":4416},{"style":1008},[4417],{"type":612,"value":4418},"separator",{"type":606,"tag":636,"props":4420,"children":4421},{"style":651},[4422],{"type":612,"value":689},{"type":606,"tag":636,"props":4424,"children":4425},{"style":1018},[4426],{"type":612,"value":4427},"\" | \"",{"type":606,"tag":636,"props":4429,"children":4430},{"style":663},[4431],{"type":612,"value":901},{"type":606,"tag":636,"props":4433,"children":4434},{"style":1008},[4435],{"type":612,"value":4130},{"type":606,"tag":636,"props":4437,"children":4438},{"style":651},[4439],{"type":612,"value":689},{"type":606,"tag":636,"props":4441,"children":4442},{"style":1018},[4443],{"type":612,"value":4444},"\">> \"",{"type":606,"tag":636,"props":4446,"children":4447},{"style":663},[4448],{"type":612,"value":920},{"type":606,"tag":636,"props":4450,"children":4451},{"class":638,"line":208},[4452],{"type":606,"tag":636,"props":4453,"children":4454},{"emptyLinePlaceholder":13},[4455],{"type":612,"value":757},{"type":606,"tag":636,"props":4457,"children":4458},{"class":638,"line":217},[4459,4463,4467,4471,4476,4480,4485,4489,4493],{"type":606,"tag":636,"props":4460,"children":4461},{"style":692},[4462],{"type":612,"value":1125},{"type":606,"tag":636,"props":4464,"children":4465},{"style":663},[4466],{"type":612,"value":666},{"type":606,"tag":636,"props":4468,"children":4469},{"style":651},[4470],{"type":612,"value":1134},{"type":606,"tag":636,"props":4472,"children":4473},{"style":1018},[4474],{"type":612,"value":4475},"\"User1: ",{"type":606,"tag":636,"props":4477,"children":4478},{"style":692},[4479],{"type":612,"value":1144},{"type":606,"tag":636,"props":4481,"children":4482},{"style":663},[4483],{"type":612,"value":4484},"user1",{"type":606,"tag":636,"props":4486,"children":4487},{"style":692},[4488],{"type":612,"value":1154},{"type":606,"tag":636,"props":4490,"children":4491},{"style":1018},[4492],{"type":612,"value":1159},{"type":606,"tag":636,"props":4494,"children":4495},{"style":663},[4496],{"type":612,"value":920},{"type":606,"tag":636,"props":4498,"children":4499},{"class":638,"line":227},[4500,4504,4508,4512,4517,4521,4526,4530,4534],{"type":606,"tag":636,"props":4501,"children":4502},{"style":692},[4503],{"type":612,"value":1125},{"type":606,"tag":636,"props":4505,"children":4506},{"style":663},[4507],{"type":612,"value":666},{"type":606,"tag":636,"props":4509,"children":4510},{"style":651},[4511],{"type":612,"value":1134},{"type":606,"tag":636,"props":4513,"children":4514},{"style":1018},[4515],{"type":612,"value":4516},"\"User2: ",{"type":606,"tag":636,"props":4518,"children":4519},{"style":692},[4520],{"type":612,"value":1144},{"type":606,"tag":636,"props":4522,"children":4523},{"style":663},[4524],{"type":612,"value":4525},"user2",{"type":606,"tag":636,"props":4527,"children":4528},{"style":692},[4529],{"type":612,"value":1154},{"type":606,"tag":636,"props":4531,"children":4532},{"style":1018},[4533],{"type":612,"value":1159},{"type":606,"tag":636,"props":4535,"children":4536},{"style":663},[4537],{"type":612,"value":920},{"type":606,"tag":636,"props":4539,"children":4540},{"class":638,"line":236},[4541,4545,4549,4553,4558,4562,4567,4571,4575],{"type":606,"tag":636,"props":4542,"children":4543},{"style":692},[4544],{"type":612,"value":1125},{"type":606,"tag":636,"props":4546,"children":4547},{"style":663},[4548],{"type":612,"value":666},{"type":606,"tag":636,"props":4550,"children":4551},{"style":651},[4552],{"type":612,"value":1134},{"type":606,"tag":636,"props":4554,"children":4555},{"style":1018},[4556],{"type":612,"value":4557},"\"List1: ",{"type":606,"tag":636,"props":4559,"children":4560},{"style":692},[4561],{"type":612,"value":1144},{"type":606,"tag":636,"props":4563,"children":4564},{"style":663},[4565],{"type":612,"value":4566},"list1",{"type":606,"tag":636,"props":4568,"children":4569},{"style":692},[4570],{"type":612,"value":1154},{"type":606,"tag":636,"props":4572,"children":4573},{"style":1018},[4574],{"type":612,"value":1159},{"type":606,"tag":636,"props":4576,"children":4577},{"style":663},[4578],{"type":612,"value":920},{"type":606,"tag":636,"props":4580,"children":4581},{"class":638,"line":245},[4582,4586,4590,4594,4599,4603,4608,4612,4616],{"type":606,"tag":636,"props":4583,"children":4584},{"style":692},[4585],{"type":612,"value":1125},{"type":606,"tag":636,"props":4587,"children":4588},{"style":663},[4589],{"type":612,"value":666},{"type":606,"tag":636,"props":4591,"children":4592},{"style":651},[4593],{"type":612,"value":1134},{"type":606,"tag":636,"props":4595,"children":4596},{"style":1018},[4597],{"type":612,"value":4598},"\"List2: ",{"type":606,"tag":636,"props":4600,"children":4601},{"style":692},[4602],{"type":612,"value":1144},{"type":606,"tag":636,"props":4604,"children":4605},{"style":663},[4606],{"type":612,"value":4607},"list2",{"type":606,"tag":636,"props":4609,"children":4610},{"style":692},[4611],{"type":612,"value":1154},{"type":606,"tag":636,"props":4613,"children":4614},{"style":1018},[4615],{"type":612,"value":1159},{"type":606,"tag":636,"props":4617,"children":4618},{"style":663},[4619],{"type":612,"value":920},{"type":606,"tag":1299,"props":4621,"children":4623},{"id":4622},"parameter-order-reference",[4624],{"type":612,"value":4625},"📊 Parameter Order Reference",{"type":606,"tag":2828,"props":4627,"children":4628},{},[4629,4650],{"type":606,"tag":2832,"props":4630,"children":4631},{},[4632],{"type":606,"tag":2836,"props":4633,"children":4634},{},[4635,4640,4645],{"type":606,"tag":2840,"props":4636,"children":4637},{},[4638],{"type":612,"value":4639},"Position",{"type":606,"tag":2840,"props":4641,"children":4642},{},[4643],{"type":612,"value":4644},"Parameter Type",{"type":606,"tag":2840,"props":4646,"children":4647},{},[4648],{"type":612,"value":4649},"Example",{"type":606,"tag":2856,"props":4651,"children":4652},{},[4653,4674,4695,4715],{"type":606,"tag":2836,"props":4654,"children":4655},{},[4656,4660,4665],{"type":606,"tag":2863,"props":4657,"children":4658},{},[4659],{"type":612,"value":896},{"type":606,"tag":2863,"props":4661,"children":4662},{},[4663],{"type":612,"value":4664},"Required parameters",{"type":606,"tag":2863,"props":4666,"children":4667},{},[4668],{"type":606,"tag":632,"props":4669,"children":4671},{"className":4670},[],[4672],{"type":612,"value":4673},"def func(a, b):",{"type":606,"tag":2836,"props":4675,"children":4676},{},[4677,4681,4686],{"type":606,"tag":2863,"props":4678,"children":4679},{},[4680],{"type":612,"value":906},{"type":606,"tag":2863,"props":4682,"children":4683},{},[4684],{"type":612,"value":4685},"Default parameters",{"type":606,"tag":2863,"props":4687,"children":4688},{},[4689],{"type":606,"tag":632,"props":4690,"children":4692},{"className":4691},[],[4693],{"type":612,"value":4694},"def func(a, b=10):",{"type":606,"tag":2836,"props":4696,"children":4697},{},[4698,4702,4706],{"type":606,"tag":2863,"props":4699,"children":4700},{},[4701],{"type":612,"value":915},{"type":606,"tag":2863,"props":4703,"children":4704},{},[4705],{"type":612,"value":2871},{"type":606,"tag":2863,"props":4707,"children":4708},{},[4709],{"type":606,"tag":632,"props":4710,"children":4712},{"className":4711},[],[4713],{"type":612,"value":4714},"def func(a, b=10, *args):",{"type":606,"tag":2836,"props":4716,"children":4717},{},[4718,4723,4727],{"type":606,"tag":2863,"props":4719,"children":4720},{},[4721],{"type":612,"value":4722},"4",{"type":606,"tag":2863,"props":4724,"children":4725},{},[4726],{"type":612,"value":2897},{"type":606,"tag":2863,"props":4728,"children":4729},{},[4730],{"type":606,"tag":632,"props":4731,"children":4733},{"className":4732},[],[4734],{"type":612,"value":4735},"def func(a, b=10, *args, **kwargs):",{"type":606,"tag":1299,"props":4737,"children":4739},{"id":4738},"unpacking-arguments",[4740],{"type":612,"value":4741},"🔄 Unpacking Arguments",{"type":606,"tag":1389,"props":4743,"children":4745},{"id":4744},"unpacking-lists-and-tuples-with",[4746],{"type":612,"value":4747},"Unpacking Lists and Tuples with *",{"type":606,"tag":621,"props":4749,"children":4750},{},[4751],{"type":606,"tag":625,"props":4752,"children":4754},{"className":627,"code":4753,"language":629,"meta":8,"style":8},"def add_three_numbers(a, b, c):\n    return a + b + c\n\n# Unpack list/tuple when calling function\nnumbers = [1, 2, 3]\ntuple_numbers = (10, 20, 30)\n\nresult1 = add_three_numbers(*numbers)        # Same as add_three_numbers(1, 2, 3)\nresult2 = add_three_numbers(*tuple_numbers)  # Same as add_three_numbers(10, 20, 30)\n\nprint(f\"Result1: {result1}\")  # Result1: 6\nprint(f\"Result2: {result2}\")  # Result2: 60\n",[4755],{"type":606,"tag":632,"props":4756,"children":4757},{"__ignoreMap":8},[4758,4775,4805,4812,4820,4861,4902,4909,4939,4968,4975,5020],{"type":606,"tag":636,"props":4759,"children":4760},{"class":638,"line":12},[4761,4765,4770],{"type":606,"tag":636,"props":4762,"children":4763},{"style":651},[4764],{"type":612,"value":654},{"type":606,"tag":636,"props":4766,"children":4767},{"style":657},[4768],{"type":612,"value":4769}," add_three_numbers",{"type":606,"tag":636,"props":4771,"children":4772},{"style":663},[4773],{"type":612,"value":4774},"(a, b, c):\n",{"type":606,"tag":636,"props":4776,"children":4777},{"class":638,"line":27},[4778,4782,4787,4791,4796,4800],{"type":606,"tag":636,"props":4779,"children":4780},{"style":651},[4781],{"type":612,"value":744},{"type":606,"tag":636,"props":4783,"children":4784},{"style":663},[4785],{"type":612,"value":4786}," a ",{"type":606,"tag":636,"props":4788,"children":4789},{"style":651},[4790],{"type":612,"value":2474},{"type":606,"tag":636,"props":4792,"children":4793},{"style":663},[4794],{"type":612,"value":4795}," b ",{"type":606,"tag":636,"props":4797,"children":4798},{"style":651},[4799],{"type":612,"value":2474},{"type":606,"tag":636,"props":4801,"children":4802},{"style":663},[4803],{"type":612,"value":4804}," c\n",{"type":606,"tag":636,"props":4806,"children":4807},{"class":638,"line":36},[4808],{"type":606,"tag":636,"props":4809,"children":4810},{"emptyLinePlaceholder":13},[4811],{"type":612,"value":757},{"type":606,"tag":636,"props":4813,"children":4814},{"class":638,"line":45},[4815],{"type":606,"tag":636,"props":4816,"children":4817},{"style":642},[4818],{"type":612,"value":4819},"# Unpack list/tuple when calling function\n",{"type":606,"tag":636,"props":4821,"children":4822},{"class":638,"line":54},[4823,4828,4832,4836,4840,4844,4848,4852,4856],{"type":606,"tag":636,"props":4824,"children":4825},{"style":663},[4826],{"type":612,"value":4827},"numbers ",{"type":606,"tag":636,"props":4829,"children":4830},{"style":651},[4831],{"type":612,"value":689},{"type":606,"tag":636,"props":4833,"children":4834},{"style":663},[4835],{"type":612,"value":4113},{"type":606,"tag":636,"props":4837,"children":4838},{"style":692},[4839],{"type":612,"value":896},{"type":606,"tag":636,"props":4841,"children":4842},{"style":663},[4843],{"type":612,"value":901},{"type":606,"tag":636,"props":4845,"children":4846},{"style":692},[4847],{"type":612,"value":906},{"type":606,"tag":636,"props":4849,"children":4850},{"style":663},[4851],{"type":612,"value":901},{"type":606,"tag":636,"props":4853,"children":4854},{"style":692},[4855],{"type":612,"value":915},{"type":606,"tag":636,"props":4857,"children":4858},{"style":663},[4859],{"type":612,"value":4860},"]\n",{"type":606,"tag":636,"props":4862,"children":4863},{"class":638,"line":63},[4864,4869,4873,4878,4882,4886,4890,4894,4898],{"type":606,"tag":636,"props":4865,"children":4866},{"style":663},[4867],{"type":612,"value":4868},"tuple_numbers ",{"type":606,"tag":636,"props":4870,"children":4871},{"style":651},[4872],{"type":612,"value":689},{"type":606,"tag":636,"props":4874,"children":4875},{"style":663},[4876],{"type":612,"value":4877}," (",{"type":606,"tag":636,"props":4879,"children":4880},{"style":692},[4881],{"type":612,"value":941},{"type":606,"tag":636,"props":4883,"children":4884},{"style":663},[4885],{"type":612,"value":901},{"type":606,"tag":636,"props":4887,"children":4888},{"style":692},[4889],{"type":612,"value":950},{"type":606,"tag":636,"props":4891,"children":4892},{"style":663},[4893],{"type":612,"value":901},{"type":606,"tag":636,"props":4895,"children":4896},{"style":692},[4897],{"type":612,"value":959},{"type":606,"tag":636,"props":4899,"children":4900},{"style":663},[4901],{"type":612,"value":920},{"type":606,"tag":636,"props":4903,"children":4904},{"class":638,"line":72},[4905],{"type":606,"tag":636,"props":4906,"children":4907},{"emptyLinePlaceholder":13},[4908],{"type":612,"value":757},{"type":606,"tag":636,"props":4910,"children":4911},{"class":638,"line":81},[4912,4916,4920,4925,4929,4934],{"type":606,"tag":636,"props":4913,"children":4914},{"style":663},[4915],{"type":612,"value":882},{"type":606,"tag":636,"props":4917,"children":4918},{"style":651},[4919],{"type":612,"value":689},{"type":606,"tag":636,"props":4921,"children":4922},{"style":663},[4923],{"type":612,"value":4924}," add_three_numbers(",{"type":606,"tag":636,"props":4926,"children":4927},{"style":651},[4928],{"type":612,"value":671},{"type":606,"tag":636,"props":4930,"children":4931},{"style":663},[4932],{"type":612,"value":4933},"numbers)        ",{"type":606,"tag":636,"props":4935,"children":4936},{"style":642},[4937],{"type":612,"value":4938},"# Same as add_three_numbers(1, 2, 3)\n",{"type":606,"tag":636,"props":4940,"children":4941},{"class":638,"line":768},[4942,4946,4950,4954,4958,4963],{"type":606,"tag":636,"props":4943,"children":4944},{"style":663},[4945],{"type":612,"value":928},{"type":606,"tag":636,"props":4947,"children":4948},{"style":651},[4949],{"type":612,"value":689},{"type":606,"tag":636,"props":4951,"children":4952},{"style":663},[4953],{"type":612,"value":4924},{"type":606,"tag":636,"props":4955,"children":4956},{"style":651},[4957],{"type":612,"value":671},{"type":606,"tag":636,"props":4959,"children":4960},{"style":663},[4961],{"type":612,"value":4962},"tuple_numbers)  ",{"type":606,"tag":636,"props":4964,"children":4965},{"style":642},[4966],{"type":612,"value":4967},"# Same as add_three_numbers(10, 20, 30)\n",{"type":606,"tag":636,"props":4969,"children":4970},{"class":638,"line":99},[4971],{"type":606,"tag":636,"props":4972,"children":4973},{"emptyLinePlaceholder":13},[4974],{"type":612,"value":757},{"type":606,"tag":636,"props":4976,"children":4977},{"class":638,"line":108},[4978,4982,4986,4990,4995,4999,5003,5007,5011,5015],{"type":606,"tag":636,"props":4979,"children":4980},{"style":692},[4981],{"type":612,"value":1125},{"type":606,"tag":636,"props":4983,"children":4984},{"style":663},[4985],{"type":612,"value":666},{"type":606,"tag":636,"props":4987,"children":4988},{"style":651},[4989],{"type":612,"value":1134},{"type":606,"tag":636,"props":4991,"children":4992},{"style":1018},[4993],{"type":612,"value":4994},"\"Result1: ",{"type":606,"tag":636,"props":4996,"children":4997},{"style":692},[4998],{"type":612,"value":1144},{"type":606,"tag":636,"props":5000,"children":5001},{"style":663},[5002],{"type":612,"value":1149},{"type":606,"tag":636,"props":5004,"children":5005},{"style":692},[5006],{"type":612,"value":1154},{"type":606,"tag":636,"props":5008,"children":5009},{"style":1018},[5010],{"type":612,"value":1159},{"type":606,"tag":636,"props":5012,"children":5013},{"style":663},[5014],{"type":612,"value":1164},{"type":606,"tag":636,"props":5016,"children":5017},{"style":642},[5018],{"type":612,"value":5019},"# Result1: 6\n",{"type":606,"tag":636,"props":5021,"children":5022},{"class":638,"line":117},[5023,5027,5031,5035,5040,5044,5048,5052,5056,5060],{"type":606,"tag":636,"props":5024,"children":5025},{"style":692},[5026],{"type":612,"value":1125},{"type":606,"tag":636,"props":5028,"children":5029},{"style":663},[5030],{"type":612,"value":666},{"type":606,"tag":636,"props":5032,"children":5033},{"style":651},[5034],{"type":612,"value":1134},{"type":606,"tag":636,"props":5036,"children":5037},{"style":1018},[5038],{"type":612,"value":5039},"\"Result2: ",{"type":606,"tag":636,"props":5041,"children":5042},{"style":692},[5043],{"type":612,"value":1144},{"type":606,"tag":636,"props":5045,"children":5046},{"style":663},[5047],{"type":612,"value":1198},{"type":606,"tag":636,"props":5049,"children":5050},{"style":692},[5051],{"type":612,"value":1154},{"type":606,"tag":636,"props":5053,"children":5054},{"style":1018},[5055],{"type":612,"value":1159},{"type":606,"tag":636,"props":5057,"children":5058},{"style":663},[5059],{"type":612,"value":1164},{"type":606,"tag":636,"props":5061,"children":5062},{"style":642},[5063],{"type":612,"value":5064},"# Result2: 60\n",{"type":606,"tag":1389,"props":5066,"children":5068},{"id":5067},"unpacking-dictionaries-with",[5069],{"type":612,"value":5070},"Unpacking Dictionaries with **",{"type":606,"tag":621,"props":5072,"children":5073},{},[5074],{"type":606,"tag":625,"props":5075,"children":5077},{"className":627,"code":5076,"language":629,"meta":8,"style":8},"def create_account(username, email, active=True):\n    return {\n        \"username\": username,\n        \"email\": email,\n        \"active\": active\n    }\n\n# Unpack dictionary when calling function\nuser_data = {\n    \"username\": \"alice123\",\n    \"email\": \"alice@example.com\",\n    \"active\": False\n}\n\naccount = create_account(**user_data)  # Same as create_account(username=\"alice123\", ...)\nprint(f\"Account: {account}\")\n",[5078],{"type":606,"tag":632,"props":5079,"children":5080},{"__ignoreMap":8},[5081,5110,5121,5134,5145,5157,5164,5171,5179,5195,5216,5237,5254,5262,5269,5300],{"type":606,"tag":636,"props":5082,"children":5083},{"class":638,"line":12},[5084,5088,5093,5098,5102,5106],{"type":606,"tag":636,"props":5085,"children":5086},{"style":651},[5087],{"type":612,"value":654},{"type":606,"tag":636,"props":5089,"children":5090},{"style":657},[5091],{"type":612,"value":5092}," create_account",{"type":606,"tag":636,"props":5094,"children":5095},{"style":663},[5096],{"type":612,"value":5097},"(username, email, active",{"type":606,"tag":636,"props":5099,"children":5100},{"style":651},[5101],{"type":612,"value":689},{"type":606,"tag":636,"props":5103,"children":5104},{"style":692},[5105],{"type":612,"value":2266},{"type":606,"tag":636,"props":5107,"children":5108},{"style":663},[5109],{"type":612,"value":4096},{"type":606,"tag":636,"props":5111,"children":5112},{"class":638,"line":27},[5113,5117],{"type":606,"tag":636,"props":5114,"children":5115},{"style":651},[5116],{"type":612,"value":744},{"type":606,"tag":636,"props":5118,"children":5119},{"style":663},[5120],{"type":612,"value":2062},{"type":606,"tag":636,"props":5122,"children":5123},{"class":638,"line":36},[5124,5129],{"type":606,"tag":636,"props":5125,"children":5126},{"style":1018},[5127],{"type":612,"value":5128},"        \"username\"",{"type":606,"tag":636,"props":5130,"children":5131},{"style":663},[5132],{"type":612,"value":5133},": username,\n",{"type":606,"tag":636,"props":5135,"children":5136},{"class":638,"line":45},[5137,5141],{"type":606,"tag":636,"props":5138,"children":5139},{"style":1018},[5140],{"type":612,"value":3959},{"type":606,"tag":636,"props":5142,"children":5143},{"style":663},[5144],{"type":612,"value":3964},{"type":606,"tag":636,"props":5146,"children":5147},{"class":638,"line":54},[5148,5152],{"type":606,"tag":636,"props":5149,"children":5150},{"style":1018},[5151],{"type":612,"value":3972},{"type":606,"tag":636,"props":5153,"children":5154},{"style":663},[5155],{"type":612,"value":5156},": active\n",{"type":606,"tag":636,"props":5158,"children":5159},{"class":638,"line":63},[5160],{"type":606,"tag":636,"props":5161,"children":5162},{"style":663},[5163],{"type":612,"value":2109},{"type":606,"tag":636,"props":5165,"children":5166},{"class":638,"line":72},[5167],{"type":606,"tag":636,"props":5168,"children":5169},{"emptyLinePlaceholder":13},[5170],{"type":612,"value":757},{"type":606,"tag":636,"props":5172,"children":5173},{"class":638,"line":81},[5174],{"type":606,"tag":636,"props":5175,"children":5176},{"style":642},[5177],{"type":612,"value":5178},"# Unpack dictionary when calling function\n",{"type":606,"tag":636,"props":5180,"children":5181},{"class":638,"line":768},[5182,5187,5191],{"type":606,"tag":636,"props":5183,"children":5184},{"style":663},[5185],{"type":612,"value":5186},"user_data ",{"type":606,"tag":636,"props":5188,"children":5189},{"style":651},[5190],{"type":612,"value":689},{"type":606,"tag":636,"props":5192,"children":5193},{"style":663},[5194],{"type":612,"value":2062},{"type":606,"tag":636,"props":5196,"children":5197},{"class":638,"line":99},[5198,5203,5207,5212],{"type":606,"tag":636,"props":5199,"children":5200},{"style":1018},[5201],{"type":612,"value":5202},"    \"username\"",{"type":606,"tag":636,"props":5204,"children":5205},{"style":663},[5206],{"type":612,"value":1992},{"type":606,"tag":636,"props":5208,"children":5209},{"style":1018},[5210],{"type":612,"value":5211},"\"alice123\"",{"type":606,"tag":636,"props":5213,"children":5214},{"style":663},[5215],{"type":612,"value":2084},{"type":606,"tag":636,"props":5217,"children":5218},{"class":638,"line":108},[5219,5224,5228,5233],{"type":606,"tag":636,"props":5220,"children":5221},{"style":1018},[5222],{"type":612,"value":5223},"    \"email\"",{"type":606,"tag":636,"props":5225,"children":5226},{"style":663},[5227],{"type":612,"value":1992},{"type":606,"tag":636,"props":5229,"children":5230},{"style":1018},[5231],{"type":612,"value":5232},"\"alice@example.com\"",{"type":606,"tag":636,"props":5234,"children":5235},{"style":663},[5236],{"type":612,"value":2084},{"type":606,"tag":636,"props":5238,"children":5239},{"class":638,"line":117},[5240,5245,5249],{"type":606,"tag":636,"props":5241,"children":5242},{"style":1018},[5243],{"type":612,"value":5244},"    \"active\"",{"type":606,"tag":636,"props":5246,"children":5247},{"style":663},[5248],{"type":612,"value":1992},{"type":606,"tag":636,"props":5250,"children":5251},{"style":692},[5252],{"type":612,"value":5253},"False\n",{"type":606,"tag":636,"props":5255,"children":5256},{"class":638,"line":126},[5257],{"type":606,"tag":636,"props":5258,"children":5259},{"style":663},[5260],{"type":612,"value":5261},"}\n",{"type":606,"tag":636,"props":5263,"children":5264},{"class":638,"line":135},[5265],{"type":606,"tag":636,"props":5266,"children":5267},{"emptyLinePlaceholder":13},[5268],{"type":612,"value":757},{"type":606,"tag":636,"props":5270,"children":5271},{"class":638,"line":144},[5272,5277,5281,5286,5290,5295],{"type":606,"tag":636,"props":5273,"children":5274},{"style":663},[5275],{"type":612,"value":5276},"account ",{"type":606,"tag":636,"props":5278,"children":5279},{"style":651},[5280],{"type":612,"value":689},{"type":606,"tag":636,"props":5282,"children":5283},{"style":663},[5284],{"type":612,"value":5285}," create_account(",{"type":606,"tag":636,"props":5287,"children":5288},{"style":651},[5289],{"type":612,"value":787},{"type":606,"tag":636,"props":5291,"children":5292},{"style":663},[5293],{"type":612,"value":5294},"user_data)  ",{"type":606,"tag":636,"props":5296,"children":5297},{"style":642},[5298],{"type":612,"value":5299},"# Same as create_account(username=\"alice123\", ...)\n",{"type":606,"tag":636,"props":5301,"children":5302},{"class":638,"line":153},[5303,5307,5311,5315,5320,5324,5329,5333,5337],{"type":606,"tag":636,"props":5304,"children":5305},{"style":692},[5306],{"type":612,"value":1125},{"type":606,"tag":636,"props":5308,"children":5309},{"style":663},[5310],{"type":612,"value":666},{"type":606,"tag":636,"props":5312,"children":5313},{"style":651},[5314],{"type":612,"value":1134},{"type":606,"tag":636,"props":5316,"children":5317},{"style":1018},[5318],{"type":612,"value":5319},"\"Account: ",{"type":606,"tag":636,"props":5321,"children":5322},{"style":692},[5323],{"type":612,"value":1144},{"type":606,"tag":636,"props":5325,"children":5326},{"style":663},[5327],{"type":612,"value":5328},"account",{"type":606,"tag":636,"props":5330,"children":5331},{"style":692},[5332],{"type":612,"value":1154},{"type":606,"tag":636,"props":5334,"children":5335},{"style":1018},[5336],{"type":612,"value":1159},{"type":606,"tag":636,"props":5338,"children":5339},{"style":663},[5340],{"type":612,"value":920},{"type":606,"tag":1299,"props":5342,"children":5344},{"id":5343},"key-takeaways",[5345],{"type":612,"value":5346},"🎯 Key Takeaways",{"type":606,"tag":1311,"props":5348,"children":5352},{"emoji":5349,"title":5350,"type":5351},"📚","*args and **kwargs Essentials","success",[5353,5361,5392,5400,5429,5437,5460],{"type":606,"tag":615,"props":5354,"children":5355},{},[5356],{"type":606,"tag":1321,"props":5357,"children":5358},{},[5359],{"type":612,"value":5360},"*args (Variable Positional Arguments):",{"type":606,"tag":1327,"props":5362,"children":5363},{},[5364,5368,5372],{"type":606,"tag":1331,"props":5365,"children":5366},{},[5367],{"type":612,"value":1335},{"type":606,"tag":1331,"props":5369,"children":5370},{},[5371],{"type":612,"value":1340},{"type":606,"tag":1331,"props":5373,"children":5374},{},[5375,5377,5383,5384,5390],{"type":612,"value":5376},"Access as ",{"type":606,"tag":632,"props":5378,"children":5380},{"className":5379},[],[5381],{"type":612,"value":5382},"args[0]",{"type":612,"value":901},{"type":606,"tag":632,"props":5385,"children":5387},{"className":5386},[],[5388],{"type":612,"value":5389},"args[1]",{"type":612,"value":5391},", etc. or iterate",{"type":606,"tag":615,"props":5393,"children":5394},{},[5395],{"type":606,"tag":1321,"props":5396,"children":5397},{},[5398],{"type":612,"value":5399},"**kwargs (Variable Keyword Arguments):",{"type":606,"tag":1327,"props":5401,"children":5402},{},[5403,5407,5411],{"type":606,"tag":1331,"props":5404,"children":5405},{},[5406],{"type":612,"value":1361},{"type":606,"tag":1331,"props":5408,"children":5409},{},[5410],{"type":612,"value":1366},{"type":606,"tag":1331,"props":5412,"children":5413},{},[5414,5415,5421,5423],{"type":612,"value":5376},{"type":606,"tag":632,"props":5416,"children":5418},{"className":5417},[],[5419],{"type":612,"value":5420},"kwargs[\"key\"]",{"type":612,"value":5422}," or iterate with ",{"type":606,"tag":632,"props":5424,"children":5426},{"className":5425},[],[5427],{"type":612,"value":5428},".items()",{"type":606,"tag":615,"props":5430,"children":5431},{},[5432],{"type":606,"tag":1321,"props":5433,"children":5434},{},[5435],{"type":612,"value":5436},"Best Practices:",{"type":606,"tag":1327,"props":5438,"children":5439},{},[5440,5445,5450,5455],{"type":606,"tag":1331,"props":5441,"children":5442},{},[5443],{"type":612,"value":5444},"Use meaningful parameter names when possible",{"type":606,"tag":1331,"props":5446,"children":5447},{},[5448],{"type":612,"value":5449},"Combine with regular parameters for flexibility",{"type":606,"tag":1331,"props":5451,"children":5452},{},[5453],{"type":612,"value":5454},"Document what your function expects",{"type":606,"tag":1331,"props":5456,"children":5457},{},[5458],{"type":612,"value":5459},"Use unpacking (*args, **kwargs) when calling functions",{"type":606,"tag":615,"props":5461,"children":5462},{},[5463,5468],{"type":606,"tag":1321,"props":5464,"children":5465},{},[5466],{"type":612,"value":5467},"Remember:",{"type":612,"value":5469}," These tools make your functions more flexible and reusable!",{"type":606,"tag":1299,"props":5471,"children":5473},{"id":5472},"whats-next",[5474],{"type":612,"value":5475},"🚀 What's Next?",{"type":606,"tag":615,"props":5477,"children":5478},{},[5479],{"type":612,"value":5480},"Learn how to create decorators to enhance and modify function behavior.",{"type":606,"tag":615,"props":5482,"children":5483},{},[5484,5489,5490],{"type":606,"tag":1321,"props":5485,"children":5486},{},[5487],{"type":612,"value":5488},"Continue to",{"type":612,"value":1992},{"type":606,"tag":5491,"props":5492,"children":5493},"a",{"href":437},[5494],{"type":612,"value":438},{"type":606,"tag":5496,"props":5497,"children":5498},"style",{},[5499],{"type":612,"value":5500},"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":5502},[5503,5508,5509,5514,5515,5519,5520],{"id":1301,"depth":27,"text":1304,"children":5504},[5505,5506,5507],{"id":1391,"depth":36,"text":1394},{"id":1891,"depth":36,"text":1894},{"id":2359,"depth":36,"text":2362},{"id":2823,"depth":27,"text":2826},{"id":2936,"depth":27,"text":2939,"children":5510},[5511,5512,5513],{"id":2942,"depth":36,"text":2945},{"id":3497,"depth":36,"text":3500},{"id":3883,"depth":36,"text":3886},{"id":4622,"depth":27,"text":4625},{"id":4738,"depth":27,"text":4741,"children":5516},[5517,5518],{"id":4744,"depth":36,"text":4747},{"id":5067,"depth":36,"text":5070},{"id":5343,"depth":27,"text":5346},{"id":5472,"depth":27,"text":5475},1782373761661]