[{"data":1,"prerenderedAt":3766},["ShallowReactive",2],{"tutorials-python-how-to":3,"category-items-python-how-to":600,"content-/python-how-to/best-practices":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,"expanded":13},"/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",[528],{"_path":529,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":530,"description":531,"slug":532,"parentId":290,"order":533,"isParent":13,"icon":534,"body":602,"_type":15,"_id":535,"_source":17,"_file":536,"_stem":537,"_extension":20},{"type":603,"children":604,"toc":3750},"root",[605,613,619,1289,1296,1301,1404,1410,1415,1485,1491,1498,1663,1669,1848,1854,1950,1956,1961,3298,3304,3310,3461,3467,3619,3625,3714,3720,3725,3739,3744],{"type":606,"tag":607,"props":608,"children":609},"element","h1",{"id":532},[610],{"type":611,"value":612},"text","⭐ Best Practices",{"type":606,"tag":614,"props":615,"children":616},"p",{},[617],{"type":611,"value":618},"Writing good Python code is about more than just making it work—it's about making it readable, maintainable, and efficient. These best practices will help you write professional-quality code that other developers (including your future self) can easily understand and work with.",{"type":606,"tag":620,"props":621,"children":622},"code-try",{},[623],{"type":606,"tag":624,"props":625,"children":629},"pre",{"className":626,"code":627,"language":628,"meta":8,"style":8},"language-python shiki shiki-themes github-light github-dark","# Example of clean, well-structured code\nclass UserManager:\n    \"\"\"Manages user data and operations.\"\"\"\n    \n    def __init__(self):\n        self.users = {}\n    \n    def create_user(self, username: str, email: str) -> bool:\n        \"\"\"Create a new user with validation.\"\"\"\n        if not self._is_valid_email(email):\n            raise ValueError(f\"Invalid email format: {email}\")\n        \n        if username in self.users:\n            return False\n        \n        self.users[username] = {\n            'email': email,\n            'created_at': self._get_current_timestamp()\n        }\n        return True\n    \n    def _is_valid_email(self, email: str) -> bool:\n        \"\"\"Private method to validate email format.\"\"\"\n        return '@' in email and '.' in email.split('@')[1]\n    \n    def _get_current_timestamp(self) -> str:\n        \"\"\"Get current timestamp in ISO format.\"\"\"\n        from datetime import datetime\n        return datetime.now().isoformat()\n\n# Usage with clear, descriptive code\nmanager = UserManager()\nsuccess = manager.create_user(\"alice123\", \"alice@example.com\")\nprint(f\"User created: {success}\")\n","python",[630],{"type":606,"tag":631,"props":632,"children":633},"code",{"__ignoreMap":8},[634,645,666,675,683,702,725,732,777,786,809,862,870,896,909,916,937,950,973,981,994,1001,1034,1042,1103,1110,1135,1143,1166,1178,1186,1194,1211,1247],{"type":606,"tag":635,"props":636,"children":638},"span",{"class":637,"line":12},"line",[639],{"type":606,"tag":635,"props":640,"children":642},{"style":641},"--shiki-default:#6A737D;--shiki-app-dark-mode:#6A737D",[643],{"type":611,"value":644},"# Example of clean, well-structured code\n",{"type":606,"tag":635,"props":646,"children":647},{"class":637,"line":27},[648,654,660],{"type":606,"tag":635,"props":649,"children":651},{"style":650},"--shiki-default:#D73A49;--shiki-app-dark-mode:#F97583",[652],{"type":611,"value":653},"class",{"type":606,"tag":635,"props":655,"children":657},{"style":656},"--shiki-default:#6F42C1;--shiki-app-dark-mode:#B392F0",[658],{"type":611,"value":659}," UserManager",{"type":606,"tag":635,"props":661,"children":663},{"style":662},"--shiki-default:#24292E;--shiki-app-dark-mode:#E1E4E8",[664],{"type":611,"value":665},":\n",{"type":606,"tag":635,"props":667,"children":668},{"class":637,"line":36},[669],{"type":606,"tag":635,"props":670,"children":672},{"style":671},"--shiki-default:#032F62;--shiki-app-dark-mode:#9ECBFF",[673],{"type":611,"value":674},"    \"\"\"Manages user data and operations.\"\"\"\n",{"type":606,"tag":635,"props":676,"children":677},{"class":637,"line":45},[678],{"type":606,"tag":635,"props":679,"children":680},{"style":662},[681],{"type":611,"value":682},"    \n",{"type":606,"tag":635,"props":684,"children":685},{"class":637,"line":54},[686,691,697],{"type":606,"tag":635,"props":687,"children":688},{"style":650},[689],{"type":611,"value":690},"    def",{"type":606,"tag":635,"props":692,"children":694},{"style":693},"--shiki-default:#005CC5;--shiki-app-dark-mode:#79B8FF",[695],{"type":611,"value":696}," __init__",{"type":606,"tag":635,"props":698,"children":699},{"style":662},[700],{"type":611,"value":701},"(self):\n",{"type":606,"tag":635,"props":703,"children":704},{"class":637,"line":63},[705,710,715,720],{"type":606,"tag":635,"props":706,"children":707},{"style":693},[708],{"type":611,"value":709},"        self",{"type":606,"tag":635,"props":711,"children":712},{"style":662},[713],{"type":611,"value":714},".users ",{"type":606,"tag":635,"props":716,"children":717},{"style":650},[718],{"type":611,"value":719},"=",{"type":606,"tag":635,"props":721,"children":722},{"style":662},[723],{"type":611,"value":724}," {}\n",{"type":606,"tag":635,"props":726,"children":727},{"class":637,"line":72},[728],{"type":606,"tag":635,"props":729,"children":730},{"style":662},[731],{"type":611,"value":682},{"type":606,"tag":635,"props":733,"children":734},{"class":637,"line":81},[735,739,744,749,754,759,763,768,773],{"type":606,"tag":635,"props":736,"children":737},{"style":650},[738],{"type":611,"value":690},{"type":606,"tag":635,"props":740,"children":741},{"style":656},[742],{"type":611,"value":743}," create_user",{"type":606,"tag":635,"props":745,"children":746},{"style":662},[747],{"type":611,"value":748},"(self, username: ",{"type":606,"tag":635,"props":750,"children":751},{"style":693},[752],{"type":611,"value":753},"str",{"type":606,"tag":635,"props":755,"children":756},{"style":662},[757],{"type":611,"value":758},", email: ",{"type":606,"tag":635,"props":760,"children":761},{"style":693},[762],{"type":611,"value":753},{"type":606,"tag":635,"props":764,"children":765},{"style":662},[766],{"type":611,"value":767},") -> ",{"type":606,"tag":635,"props":769,"children":770},{"style":693},[771],{"type":611,"value":772},"bool",{"type":606,"tag":635,"props":774,"children":775},{"style":662},[776],{"type":611,"value":665},{"type":606,"tag":635,"props":778,"children":780},{"class":637,"line":779},9,[781],{"type":606,"tag":635,"props":782,"children":783},{"style":671},[784],{"type":611,"value":785},"        \"\"\"Create a new user with validation.\"\"\"\n",{"type":606,"tag":635,"props":787,"children":788},{"class":637,"line":99},[789,794,799,804],{"type":606,"tag":635,"props":790,"children":791},{"style":650},[792],{"type":611,"value":793},"        if",{"type":606,"tag":635,"props":795,"children":796},{"style":650},[797],{"type":611,"value":798}," not",{"type":606,"tag":635,"props":800,"children":801},{"style":693},[802],{"type":611,"value":803}," self",{"type":606,"tag":635,"props":805,"children":806},{"style":662},[807],{"type":611,"value":808},"._is_valid_email(email):\n",{"type":606,"tag":635,"props":810,"children":811},{"class":637,"line":108},[812,817,822,827,832,837,842,847,852,857],{"type":606,"tag":635,"props":813,"children":814},{"style":650},[815],{"type":611,"value":816},"            raise",{"type":606,"tag":635,"props":818,"children":819},{"style":693},[820],{"type":611,"value":821}," ValueError",{"type":606,"tag":635,"props":823,"children":824},{"style":662},[825],{"type":611,"value":826},"(",{"type":606,"tag":635,"props":828,"children":829},{"style":650},[830],{"type":611,"value":831},"f",{"type":606,"tag":635,"props":833,"children":834},{"style":671},[835],{"type":611,"value":836},"\"Invalid email format: ",{"type":606,"tag":635,"props":838,"children":839},{"style":693},[840],{"type":611,"value":841},"{",{"type":606,"tag":635,"props":843,"children":844},{"style":662},[845],{"type":611,"value":846},"email",{"type":606,"tag":635,"props":848,"children":849},{"style":693},[850],{"type":611,"value":851},"}",{"type":606,"tag":635,"props":853,"children":854},{"style":671},[855],{"type":611,"value":856},"\"",{"type":606,"tag":635,"props":858,"children":859},{"style":662},[860],{"type":611,"value":861},")\n",{"type":606,"tag":635,"props":863,"children":864},{"class":637,"line":117},[865],{"type":606,"tag":635,"props":866,"children":867},{"style":662},[868],{"type":611,"value":869},"        \n",{"type":606,"tag":635,"props":871,"children":872},{"class":637,"line":126},[873,877,882,887,891],{"type":606,"tag":635,"props":874,"children":875},{"style":650},[876],{"type":611,"value":793},{"type":606,"tag":635,"props":878,"children":879},{"style":662},[880],{"type":611,"value":881}," username ",{"type":606,"tag":635,"props":883,"children":884},{"style":650},[885],{"type":611,"value":886},"in",{"type":606,"tag":635,"props":888,"children":889},{"style":693},[890],{"type":611,"value":803},{"type":606,"tag":635,"props":892,"children":893},{"style":662},[894],{"type":611,"value":895},".users:\n",{"type":606,"tag":635,"props":897,"children":898},{"class":637,"line":135},[899,904],{"type":606,"tag":635,"props":900,"children":901},{"style":650},[902],{"type":611,"value":903},"            return",{"type":606,"tag":635,"props":905,"children":906},{"style":693},[907],{"type":611,"value":908}," False\n",{"type":606,"tag":635,"props":910,"children":911},{"class":637,"line":144},[912],{"type":606,"tag":635,"props":913,"children":914},{"style":662},[915],{"type":611,"value":869},{"type":606,"tag":635,"props":917,"children":918},{"class":637,"line":153},[919,923,928,932],{"type":606,"tag":635,"props":920,"children":921},{"style":693},[922],{"type":611,"value":709},{"type":606,"tag":635,"props":924,"children":925},{"style":662},[926],{"type":611,"value":927},".users[username] ",{"type":606,"tag":635,"props":929,"children":930},{"style":650},[931],{"type":611,"value":719},{"type":606,"tag":635,"props":933,"children":934},{"style":662},[935],{"type":611,"value":936}," {\n",{"type":606,"tag":635,"props":938,"children":939},{"class":637,"line":163},[940,945],{"type":606,"tag":635,"props":941,"children":942},{"style":671},[943],{"type":611,"value":944},"            'email'",{"type":606,"tag":635,"props":946,"children":947},{"style":662},[948],{"type":611,"value":949},": email,\n",{"type":606,"tag":635,"props":951,"children":952},{"class":637,"line":172},[953,958,963,968],{"type":606,"tag":635,"props":954,"children":955},{"style":671},[956],{"type":611,"value":957},"            'created_at'",{"type":606,"tag":635,"props":959,"children":960},{"style":662},[961],{"type":611,"value":962},": ",{"type":606,"tag":635,"props":964,"children":965},{"style":693},[966],{"type":611,"value":967},"self",{"type":606,"tag":635,"props":969,"children":970},{"style":662},[971],{"type":611,"value":972},"._get_current_timestamp()\n",{"type":606,"tag":635,"props":974,"children":975},{"class":637,"line":181},[976],{"type":606,"tag":635,"props":977,"children":978},{"style":662},[979],{"type":611,"value":980},"        }\n",{"type":606,"tag":635,"props":982,"children":983},{"class":637,"line":190},[984,989],{"type":606,"tag":635,"props":985,"children":986},{"style":650},[987],{"type":611,"value":988},"        return",{"type":606,"tag":635,"props":990,"children":991},{"style":693},[992],{"type":611,"value":993}," True\n",{"type":606,"tag":635,"props":995,"children":996},{"class":637,"line":199},[997],{"type":606,"tag":635,"props":998,"children":999},{"style":662},[1000],{"type":611,"value":682},{"type":606,"tag":635,"props":1002,"children":1003},{"class":637,"line":208},[1004,1008,1013,1018,1022,1026,1030],{"type":606,"tag":635,"props":1005,"children":1006},{"style":650},[1007],{"type":611,"value":690},{"type":606,"tag":635,"props":1009,"children":1010},{"style":656},[1011],{"type":611,"value":1012}," _is_valid_email",{"type":606,"tag":635,"props":1014,"children":1015},{"style":662},[1016],{"type":611,"value":1017},"(self, email: ",{"type":606,"tag":635,"props":1019,"children":1020},{"style":693},[1021],{"type":611,"value":753},{"type":606,"tag":635,"props":1023,"children":1024},{"style":662},[1025],{"type":611,"value":767},{"type":606,"tag":635,"props":1027,"children":1028},{"style":693},[1029],{"type":611,"value":772},{"type":606,"tag":635,"props":1031,"children":1032},{"style":662},[1033],{"type":611,"value":665},{"type":606,"tag":635,"props":1035,"children":1036},{"class":637,"line":217},[1037],{"type":606,"tag":635,"props":1038,"children":1039},{"style":671},[1040],{"type":611,"value":1041},"        \"\"\"Private method to validate email format.\"\"\"\n",{"type":606,"tag":635,"props":1043,"children":1044},{"class":637,"line":227},[1045,1049,1054,1059,1064,1069,1074,1078,1083,1088,1093,1098],{"type":606,"tag":635,"props":1046,"children":1047},{"style":650},[1048],{"type":611,"value":988},{"type":606,"tag":635,"props":1050,"children":1051},{"style":671},[1052],{"type":611,"value":1053}," '@'",{"type":606,"tag":635,"props":1055,"children":1056},{"style":650},[1057],{"type":611,"value":1058}," in",{"type":606,"tag":635,"props":1060,"children":1061},{"style":662},[1062],{"type":611,"value":1063}," email ",{"type":606,"tag":635,"props":1065,"children":1066},{"style":650},[1067],{"type":611,"value":1068},"and",{"type":606,"tag":635,"props":1070,"children":1071},{"style":671},[1072],{"type":611,"value":1073}," '.'",{"type":606,"tag":635,"props":1075,"children":1076},{"style":650},[1077],{"type":611,"value":1058},{"type":606,"tag":635,"props":1079,"children":1080},{"style":662},[1081],{"type":611,"value":1082}," email.split(",{"type":606,"tag":635,"props":1084,"children":1085},{"style":671},[1086],{"type":611,"value":1087},"'@'",{"type":606,"tag":635,"props":1089,"children":1090},{"style":662},[1091],{"type":611,"value":1092},")[",{"type":606,"tag":635,"props":1094,"children":1095},{"style":693},[1096],{"type":611,"value":1097},"1",{"type":606,"tag":635,"props":1099,"children":1100},{"style":662},[1101],{"type":611,"value":1102},"]\n",{"type":606,"tag":635,"props":1104,"children":1105},{"class":637,"line":236},[1106],{"type":606,"tag":635,"props":1107,"children":1108},{"style":662},[1109],{"type":611,"value":682},{"type":606,"tag":635,"props":1111,"children":1112},{"class":637,"line":245},[1113,1117,1122,1127,1131],{"type":606,"tag":635,"props":1114,"children":1115},{"style":650},[1116],{"type":611,"value":690},{"type":606,"tag":635,"props":1118,"children":1119},{"style":656},[1120],{"type":611,"value":1121}," _get_current_timestamp",{"type":606,"tag":635,"props":1123,"children":1124},{"style":662},[1125],{"type":611,"value":1126},"(self) -> ",{"type":606,"tag":635,"props":1128,"children":1129},{"style":693},[1130],{"type":611,"value":753},{"type":606,"tag":635,"props":1132,"children":1133},{"style":662},[1134],{"type":611,"value":665},{"type":606,"tag":635,"props":1136,"children":1137},{"class":637,"line":254},[1138],{"type":606,"tag":635,"props":1139,"children":1140},{"style":671},[1141],{"type":611,"value":1142},"        \"\"\"Get current timestamp in ISO format.\"\"\"\n",{"type":606,"tag":635,"props":1144,"children":1145},{"class":637,"line":263},[1146,1151,1156,1161],{"type":606,"tag":635,"props":1147,"children":1148},{"style":650},[1149],{"type":611,"value":1150},"        from",{"type":606,"tag":635,"props":1152,"children":1153},{"style":662},[1154],{"type":611,"value":1155}," datetime ",{"type":606,"tag":635,"props":1157,"children":1158},{"style":650},[1159],{"type":611,"value":1160},"import",{"type":606,"tag":635,"props":1162,"children":1163},{"style":662},[1164],{"type":611,"value":1165}," datetime\n",{"type":606,"tag":635,"props":1167,"children":1168},{"class":637,"line":272},[1169,1173],{"type":606,"tag":635,"props":1170,"children":1171},{"style":650},[1172],{"type":611,"value":988},{"type":606,"tag":635,"props":1174,"children":1175},{"style":662},[1176],{"type":611,"value":1177}," datetime.now().isoformat()\n",{"type":606,"tag":635,"props":1179,"children":1180},{"class":637,"line":281},[1181],{"type":606,"tag":635,"props":1182,"children":1183},{"emptyLinePlaceholder":13},[1184],{"type":611,"value":1185},"\n",{"type":606,"tag":635,"props":1187,"children":1188},{"class":637,"line":291},[1189],{"type":606,"tag":635,"props":1190,"children":1191},{"style":641},[1192],{"type":611,"value":1193},"# Usage with clear, descriptive code\n",{"type":606,"tag":635,"props":1195,"children":1196},{"class":637,"line":302},[1197,1202,1206],{"type":606,"tag":635,"props":1198,"children":1199},{"style":662},[1200],{"type":611,"value":1201},"manager ",{"type":606,"tag":635,"props":1203,"children":1204},{"style":650},[1205],{"type":611,"value":719},{"type":606,"tag":635,"props":1207,"children":1208},{"style":662},[1209],{"type":611,"value":1210}," UserManager()\n",{"type":606,"tag":635,"props":1212,"children":1213},{"class":637,"line":311},[1214,1219,1223,1228,1233,1238,1243],{"type":606,"tag":635,"props":1215,"children":1216},{"style":662},[1217],{"type":611,"value":1218},"success ",{"type":606,"tag":635,"props":1220,"children":1221},{"style":650},[1222],{"type":611,"value":719},{"type":606,"tag":635,"props":1224,"children":1225},{"style":662},[1226],{"type":611,"value":1227}," manager.create_user(",{"type":606,"tag":635,"props":1229,"children":1230},{"style":671},[1231],{"type":611,"value":1232},"\"alice123\"",{"type":606,"tag":635,"props":1234,"children":1235},{"style":662},[1236],{"type":611,"value":1237},", ",{"type":606,"tag":635,"props":1239,"children":1240},{"style":671},[1241],{"type":611,"value":1242},"\"alice@example.com\"",{"type":606,"tag":635,"props":1244,"children":1245},{"style":662},[1246],{"type":611,"value":861},{"type":606,"tag":635,"props":1248,"children":1249},{"class":637,"line":320},[1250,1255,1259,1263,1268,1272,1277,1281,1285],{"type":606,"tag":635,"props":1251,"children":1252},{"style":693},[1253],{"type":611,"value":1254},"print",{"type":606,"tag":635,"props":1256,"children":1257},{"style":662},[1258],{"type":611,"value":826},{"type":606,"tag":635,"props":1260,"children":1261},{"style":650},[1262],{"type":611,"value":831},{"type":606,"tag":635,"props":1264,"children":1265},{"style":671},[1266],{"type":611,"value":1267},"\"User created: ",{"type":606,"tag":635,"props":1269,"children":1270},{"style":693},[1271],{"type":611,"value":841},{"type":606,"tag":635,"props":1273,"children":1274},{"style":662},[1275],{"type":611,"value":1276},"success",{"type":606,"tag":635,"props":1278,"children":1279},{"style":693},[1280],{"type":611,"value":851},{"type":606,"tag":635,"props":1282,"children":1283},{"style":671},[1284],{"type":611,"value":856},{"type":606,"tag":635,"props":1286,"children":1287},{"style":662},[1288],{"type":611,"value":861},{"type":606,"tag":1290,"props":1291,"children":1293},"h2",{"id":1292},"why-best-practices-matter",[1294],{"type":611,"value":1295},"🎯 Why Best Practices Matter",{"type":606,"tag":614,"props":1297,"children":1298},{},[1299],{"type":611,"value":1300},"Good coding practices make your code more reliable, easier to debug, and simpler to maintain over time.",{"type":606,"tag":1302,"props":1303,"children":1307},"info-box",{"emoji":1304,"title":1305,"type":1306},"🌟","Benefits of Best Practices","info",[1308,1317,1342,1350,1373,1381],{"type":606,"tag":614,"props":1309,"children":1310},{},[1311],{"type":606,"tag":1312,"props":1313,"children":1314},"strong",{},[1315],{"type":611,"value":1316},"Code Quality:",{"type":606,"tag":1318,"props":1319,"children":1320},"ul",{},[1321,1327,1332,1337],{"type":606,"tag":1322,"props":1323,"children":1324},"li",{},[1325],{"type":611,"value":1326},"Easier to read and understand",{"type":606,"tag":1322,"props":1328,"children":1329},{},[1330],{"type":611,"value":1331},"Fewer bugs and errors",{"type":606,"tag":1322,"props":1333,"children":1334},{},[1335],{"type":611,"value":1336},"Simpler to maintain and update",{"type":606,"tag":1322,"props":1338,"children":1339},{},[1340],{"type":611,"value":1341},"Better performance and efficiency",{"type":606,"tag":614,"props":1343,"children":1344},{},[1345],{"type":606,"tag":1312,"props":1346,"children":1347},{},[1348],{"type":611,"value":1349},"Team Collaboration:",{"type":606,"tag":1318,"props":1351,"children":1352},{},[1353,1358,1363,1368],{"type":606,"tag":1322,"props":1354,"children":1355},{},[1356],{"type":611,"value":1357},"Consistent coding style across projects",{"type":606,"tag":1322,"props":1359,"children":1360},{},[1361],{"type":611,"value":1362},"Easier code reviews and debugging",{"type":606,"tag":1322,"props":1364,"children":1365},{},[1366],{"type":611,"value":1367},"Faster onboarding for new team members",{"type":606,"tag":1322,"props":1369,"children":1370},{},[1371],{"type":611,"value":1372},"Improved project documentation",{"type":606,"tag":614,"props":1374,"children":1375},{},[1376],{"type":606,"tag":1312,"props":1377,"children":1378},{},[1379],{"type":611,"value":1380},"Professional Development:",{"type":606,"tag":1318,"props":1382,"children":1383},{},[1384,1389,1394,1399],{"type":606,"tag":1322,"props":1385,"children":1386},{},[1387],{"type":611,"value":1388},"Industry-standard coding practices",{"type":606,"tag":1322,"props":1390,"children":1391},{},[1392],{"type":611,"value":1393},"Better job prospects and code quality",{"type":606,"tag":1322,"props":1395,"children":1396},{},[1397],{"type":611,"value":1398},"Confidence in code deployment",{"type":606,"tag":1322,"props":1400,"children":1401},{},[1402],{"type":611,"value":1403},"Reduced technical debt",{"type":606,"tag":1290,"props":1405,"children":1407},{"id":1406},"best-practices-topics",[1408],{"type":611,"value":1409},"📚 Best Practices Topics",{"type":606,"tag":614,"props":1411,"children":1412},{},[1413],{"type":611,"value":1414},"Master professional Python development practices:",{"type":606,"tag":1318,"props":1416,"children":1417},{},[1418,1430,1441,1452,1463,1474],{"type":606,"tag":1322,"props":1419,"children":1420},{},[1421,1423,1428],{"type":611,"value":1422},"🏗️ ",{"type":606,"tag":1424,"props":1425,"children":1426},"a",{"href":540},[1427],{"type":611,"value":541},{"type":611,"value":1429}," Organize modules, functions, and classes effectively.",{"type":606,"tag":1322,"props":1431,"children":1432},{},[1433,1435,1439],{"type":611,"value":1434},"✨ ",{"type":606,"tag":1424,"props":1436,"children":1437},{"href":549},[1438],{"type":611,"value":550},{"type":611,"value":1440}," Use naming conventions, comments, and clear logic.",{"type":606,"tag":1322,"props":1442,"children":1443},{},[1444,1446,1450],{"type":611,"value":1445},"⚡ ",{"type":606,"tag":1424,"props":1447,"children":1448},{"href":558},[1449],{"type":611,"value":559},{"type":611,"value":1451}," Write efficient code and identify bottlenecks.",{"type":606,"tag":1322,"props":1453,"children":1454},{},[1455,1457,1461],{"type":611,"value":1456},"🧪 ",{"type":606,"tag":1424,"props":1458,"children":1459},{"href":567},[1460],{"type":611,"value":568},{"type":611,"value":1462}," Create reliable tests for your functions and classes.",{"type":606,"tag":1322,"props":1464,"children":1465},{},[1466,1468,1472],{"type":611,"value":1467},"📖 ",{"type":606,"tag":1424,"props":1469,"children":1470},{"href":576},[1471],{"type":611,"value":577},{"type":611,"value":1473}," Write clear documentation and helpful comments.",{"type":606,"tag":1322,"props":1475,"children":1476},{},[1477,1479,1483],{"type":611,"value":1478},"🔍 ",{"type":606,"tag":1424,"props":1480,"children":1481},{"href":585},[1482],{"type":611,"value":586},{"type":611,"value":1484}," Add type annotations for better code clarity and tooling.",{"type":606,"tag":1290,"props":1486,"children":1488},{"id":1487},"code-quality-principles",[1489],{"type":611,"value":1490},"🎨 Code Quality Principles",{"type":606,"tag":1492,"props":1493,"children":1495},"h3",{"id":1494},"clean-code-fundamentals",[1496],{"type":611,"value":1497},"Clean Code Fundamentals",{"type":606,"tag":1499,"props":1500,"children":1501},"table",{},[1502,1526],{"type":606,"tag":1503,"props":1504,"children":1505},"thead",{},[1506],{"type":606,"tag":1507,"props":1508,"children":1509},"tr",{},[1510,1516,1521],{"type":606,"tag":1511,"props":1512,"children":1513},"th",{},[1514],{"type":611,"value":1515},"Principle",{"type":606,"tag":1511,"props":1517,"children":1518},{},[1519],{"type":611,"value":1520},"Description",{"type":606,"tag":1511,"props":1522,"children":1523},{},[1524],{"type":611,"value":1525},"Example",{"type":606,"tag":1527,"props":1528,"children":1529},"tbody",{},[1530,1552,1573,1600,1621,1642],{"type":606,"tag":1507,"props":1531,"children":1532},{},[1533,1542,1547],{"type":606,"tag":1534,"props":1535,"children":1536},"td",{},[1537],{"type":606,"tag":1312,"props":1538,"children":1539},{},[1540],{"type":611,"value":1541},"Readability",{"type":606,"tag":1534,"props":1543,"children":1544},{},[1545],{"type":611,"value":1546},"Code should be easy to read",{"type":606,"tag":1534,"props":1548,"children":1549},{},[1550],{"type":611,"value":1551},"Use descriptive variable names",{"type":606,"tag":1507,"props":1553,"children":1554},{},[1555,1563,1568],{"type":606,"tag":1534,"props":1556,"children":1557},{},[1558],{"type":606,"tag":1312,"props":1559,"children":1560},{},[1561],{"type":611,"value":1562},"Simplicity",{"type":606,"tag":1534,"props":1564,"children":1565},{},[1566],{"type":611,"value":1567},"Keep functions small and focused",{"type":606,"tag":1534,"props":1569,"children":1570},{},[1571],{"type":611,"value":1572},"One function, one responsibility",{"type":606,"tag":1507,"props":1574,"children":1575},{},[1576,1584,1589],{"type":606,"tag":1534,"props":1577,"children":1578},{},[1579],{"type":606,"tag":1312,"props":1580,"children":1581},{},[1582],{"type":611,"value":1583},"Consistency",{"type":606,"tag":1534,"props":1585,"children":1586},{},[1587],{"type":611,"value":1588},"Follow naming conventions",{"type":606,"tag":1534,"props":1590,"children":1591},{},[1592,1598],{"type":606,"tag":631,"props":1593,"children":1595},{"className":1594},[],[1596],{"type":611,"value":1597},"snake_case",{"type":611,"value":1599}," for variables",{"type":606,"tag":1507,"props":1601,"children":1602},{},[1603,1611,1616],{"type":606,"tag":1534,"props":1604,"children":1605},{},[1606],{"type":606,"tag":1312,"props":1607,"children":1608},{},[1609],{"type":611,"value":1610},"Documentation",{"type":606,"tag":1534,"props":1612,"children":1613},{},[1614],{"type":611,"value":1615},"Explain complex logic",{"type":606,"tag":1534,"props":1617,"children":1618},{},[1619],{"type":611,"value":1620},"Clear docstrings and comments",{"type":606,"tag":1507,"props":1622,"children":1623},{},[1624,1632,1637],{"type":606,"tag":1534,"props":1625,"children":1626},{},[1627],{"type":606,"tag":1312,"props":1628,"children":1629},{},[1630],{"type":611,"value":1631},"Testing",{"type":606,"tag":1534,"props":1633,"children":1634},{},[1635],{"type":611,"value":1636},"Verify code works correctly",{"type":606,"tag":1534,"props":1638,"children":1639},{},[1640],{"type":611,"value":1641},"Unit tests for all functions",{"type":606,"tag":1507,"props":1643,"children":1644},{},[1645,1653,1658],{"type":606,"tag":1534,"props":1646,"children":1647},{},[1648],{"type":606,"tag":1312,"props":1649,"children":1650},{},[1651],{"type":611,"value":1652},"Performance",{"type":606,"tag":1534,"props":1654,"children":1655},{},[1656],{"type":611,"value":1657},"Write efficient algorithms",{"type":606,"tag":1534,"props":1659,"children":1660},{},[1661],{"type":611,"value":1662},"Choose appropriate data structures",{"type":606,"tag":1492,"props":1664,"children":1666},{"id":1665},"python-style-guidelines",[1667],{"type":611,"value":1668},"Python Style Guidelines",{"type":606,"tag":1499,"props":1670,"children":1671},{},[1672,1692],{"type":606,"tag":1503,"props":1673,"children":1674},{},[1675],{"type":606,"tag":1507,"props":1676,"children":1677},{},[1678,1683,1688],{"type":606,"tag":1511,"props":1679,"children":1680},{},[1681],{"type":611,"value":1682},"Aspect",{"type":606,"tag":1511,"props":1684,"children":1685},{},[1686],{"type":611,"value":1687},"Good Practice",{"type":606,"tag":1511,"props":1689,"children":1690},{},[1691],{"type":611,"value":1525},{"type":606,"tag":1527,"props":1693,"children":1694},{},[1695,1728,1749,1770,1791,1816],{"type":606,"tag":1507,"props":1696,"children":1697},{},[1698,1706,1711],{"type":606,"tag":1534,"props":1699,"children":1700},{},[1701],{"type":606,"tag":1312,"props":1702,"children":1703},{},[1704],{"type":611,"value":1705},"Naming",{"type":606,"tag":1534,"props":1707,"children":1708},{},[1709],{"type":611,"value":1710},"Descriptive, consistent names",{"type":606,"tag":1534,"props":1712,"children":1713},{},[1714,1720,1722],{"type":606,"tag":631,"props":1715,"children":1717},{"className":1716},[],[1718],{"type":611,"value":1719},"user_count",{"type":611,"value":1721}," not ",{"type":606,"tag":631,"props":1723,"children":1725},{"className":1724},[],[1726],{"type":611,"value":1727},"uc",{"type":606,"tag":1507,"props":1729,"children":1730},{},[1731,1739,1744],{"type":606,"tag":1534,"props":1732,"children":1733},{},[1734],{"type":606,"tag":1312,"props":1735,"children":1736},{},[1737],{"type":611,"value":1738},"Functions",{"type":606,"tag":1534,"props":1740,"children":1741},{},[1742],{"type":611,"value":1743},"Small, single-purpose",{"type":606,"tag":1534,"props":1745,"children":1746},{},[1747],{"type":611,"value":1748},"Max 20-30 lines",{"type":606,"tag":1507,"props":1750,"children":1751},{},[1752,1760,1765],{"type":606,"tag":1534,"props":1753,"children":1754},{},[1755],{"type":606,"tag":1312,"props":1756,"children":1757},{},[1758],{"type":611,"value":1759},"Classes",{"type":606,"tag":1534,"props":1761,"children":1762},{},[1763],{"type":611,"value":1764},"Clear responsibilities",{"type":606,"tag":1534,"props":1766,"children":1767},{},[1768],{"type":611,"value":1769},"One main purpose per class",{"type":606,"tag":1507,"props":1771,"children":1772},{},[1773,1781,1786],{"type":606,"tag":1534,"props":1774,"children":1775},{},[1776],{"type":606,"tag":1312,"props":1777,"children":1778},{},[1779],{"type":611,"value":1780},"Imports",{"type":606,"tag":1534,"props":1782,"children":1783},{},[1784],{"type":611,"value":1785},"Organized and explicit",{"type":606,"tag":1534,"props":1787,"children":1788},{},[1789],{"type":611,"value":1790},"Group standard, third-party, local",{"type":606,"tag":1507,"props":1792,"children":1793},{},[1794,1802,1807],{"type":606,"tag":1534,"props":1795,"children":1796},{},[1797],{"type":606,"tag":1312,"props":1798,"children":1799},{},[1800],{"type":611,"value":1801},"Comments",{"type":606,"tag":1534,"props":1803,"children":1804},{},[1805],{"type":611,"value":1806},"Explain why, not what",{"type":606,"tag":1534,"props":1808,"children":1809},{},[1810],{"type":606,"tag":631,"props":1811,"children":1813},{"className":1812},[],[1814],{"type":611,"value":1815},"# Calculate tax rate for region",{"type":606,"tag":1507,"props":1817,"children":1818},{},[1819,1827,1832],{"type":606,"tag":1534,"props":1820,"children":1821},{},[1822],{"type":606,"tag":1312,"props":1823,"children":1824},{},[1825],{"type":611,"value":1826},"Variables",{"type":606,"tag":1534,"props":1828,"children":1829},{},[1830],{"type":611,"value":1831},"Meaningful names",{"type":606,"tag":1534,"props":1833,"children":1834},{},[1835,1841,1842],{"type":606,"tag":631,"props":1836,"children":1838},{"className":1837},[],[1839],{"type":611,"value":1840},"total_price",{"type":611,"value":1721},{"type":606,"tag":631,"props":1843,"children":1845},{"className":1844},[],[1846],{"type":611,"value":1847},"tp",{"type":606,"tag":1290,"props":1849,"children":1851},{"id":1850},"development-workflow",[1852],{"type":611,"value":1853},"🔧 Development Workflow",{"type":606,"tag":1302,"props":1855,"children":1858},{"emoji":1856,"title":1857,"type":1276},"🔄","Professional Development Process",[1859,1869,1879,1889,1899,1909,1919,1927],{"type":606,"tag":614,"props":1860,"children":1861},{},[1862,1867],{"type":606,"tag":1312,"props":1863,"children":1864},{},[1865],{"type":611,"value":1866},"1. Plan",{"type":611,"value":1868}," → Think before coding, outline structure",{"type":606,"tag":614,"props":1870,"children":1871},{},[1872,1877],{"type":606,"tag":1312,"props":1873,"children":1874},{},[1875],{"type":611,"value":1876},"2. Write",{"type":611,"value":1878}," → Follow naming conventions and style guides",{"type":606,"tag":614,"props":1880,"children":1881},{},[1882,1887],{"type":606,"tag":1312,"props":1883,"children":1884},{},[1885],{"type":611,"value":1886},"3. Test",{"type":611,"value":1888}," → Create tests to verify functionality",{"type":606,"tag":614,"props":1890,"children":1891},{},[1892,1897],{"type":606,"tag":1312,"props":1893,"children":1894},{},[1895],{"type":611,"value":1896},"4. Review",{"type":611,"value":1898}," → Check code for improvements",{"type":606,"tag":614,"props":1900,"children":1901},{},[1902,1907],{"type":606,"tag":1312,"props":1903,"children":1904},{},[1905],{"type":611,"value":1906},"5. Document",{"type":611,"value":1908}," → Add comments and documentation",{"type":606,"tag":614,"props":1910,"children":1911},{},[1912,1917],{"type":606,"tag":1312,"props":1913,"children":1914},{},[1915],{"type":611,"value":1916},"6. Refactor",{"type":611,"value":1918}," → Improve code structure and efficiency",{"type":606,"tag":614,"props":1920,"children":1921},{},[1922],{"type":606,"tag":1312,"props":1923,"children":1924},{},[1925],{"type":611,"value":1926},"Tools to Use:",{"type":606,"tag":1318,"props":1928,"children":1929},{},[1930,1935,1940,1945],{"type":606,"tag":1322,"props":1931,"children":1932},{},[1933],{"type":611,"value":1934},"Code formatters (black, autopep8)",{"type":606,"tag":1322,"props":1936,"children":1937},{},[1938],{"type":611,"value":1939},"Linters (pylint, flake8)",{"type":606,"tag":1322,"props":1941,"children":1942},{},[1943],{"type":611,"value":1944},"Type checkers (mypy)",{"type":606,"tag":1322,"props":1946,"children":1947},{},[1948],{"type":611,"value":1949},"Testing frameworks (pytest, unittest)",{"type":606,"tag":1290,"props":1951,"children":1953},{"id":1952},"quick-best-practices-examples",[1954],{"type":611,"value":1955},"🌟 Quick Best Practices Examples",{"type":606,"tag":614,"props":1957,"children":1958},{},[1959],{"type":611,"value":1960},"Here's what professional Python code looks like:",{"type":606,"tag":620,"props":1962,"children":1963},{},[1964],{"type":606,"tag":624,"props":1965,"children":1967},{"className":626,"code":1966,"language":628,"meta":8,"style":8},"\"\"\"\nExample module demonstrating Python best practices.\nShows proper structure, naming, and documentation.\n\"\"\"\n\nfrom typing import List, Dict, Optional\nfrom dataclasses import dataclass\nfrom datetime import datetime\n\n\n@dataclass\nclass Product:\n    \"\"\"Represents a product with basic information.\"\"\"\n    name: str\n    price: float\n    category: str\n    in_stock: bool = True\n\n\nclass ShoppingCart:\n    \"\"\"Manages items in a shopping cart.\"\"\"\n    \n    def __init__(self):\n        self._items: List[Product] = []\n    \n    def add_item(self, product: Product) -> bool:\n        \"\"\"Add a product to the cart if it's in stock.\"\"\"\n        if not product.in_stock:\n            return False\n        \n        self._items.append(product)\n        return True\n    \n    def get_total(self) -> float:\n        \"\"\"Calculate total price of items in cart.\"\"\"\n        return sum(item.price for item in self._items)\n    \n    def get_items_by_category(self, category: str) -> List[Product]:\n        \"\"\"Get all items in cart from a specific category.\"\"\"\n        return [item for item in self._items if item.category == category]\n    \n    @property\n    def item_count(self) -> int:\n        \"\"\"Number of items in the cart.\"\"\"\n        return len(self._items)\n\n\ndef create_sample_products() -> List[Product]:\n    \"\"\"Create sample products for demonstration.\"\"\"\n    return [\n        Product(\"Laptop\", 999.99, \"Electronics\"),\n        Product(\"Coffee Mug\", 12.99, \"Kitchen\"),\n        Product(\"Python Book\", 39.99, \"Books\", in_stock=False)\n    ]\n\n\n# Usage example with clear, professional code\ndef main():\n    \"\"\"Main function demonstrating the shopping cart.\"\"\"\n    cart = ShoppingCart()\n    products = create_sample_products()\n    \n    # Add available products to cart\n    for product in products:\n        if cart.add_item(product):\n            print(f\"Added {product.name} to cart\")\n        else:\n            print(f\"{product.name} is out of stock\")\n    \n    # Display cart summary\n    print(f\"\\nCart summary:\")\n    print(f\"Items: {cart.item_count}\")\n    print(f\"Total: ${cart.get_total():.2f}\")\n    \n    # Show electronics items\n    electronics = cart.get_items_by_category(\"Electronics\")\n    print(f\"Electronics items: {len(electronics)}\")\n\n\nif __name__ == \"__main__\":\n    main()\n",[1968],{"type":606,"tag":631,"props":1969,"children":1970},{"__ignoreMap":8},[1971,1979,1987,1995,2002,2009,2031,2052,2071,2078,2085,2093,2109,2117,2130,2143,2155,2176,2183,2190,2206,2214,2221,2236,2257,2264,2289,2297,2313,2324,2331,2343,2354,2361,2386,2394,2434,2441,2467,2475,2528,2535,2548,2573,2581,2605,2612,2619,2637,2645,2658,2694,2728,2781,2789,2796,2803,2811,2828,2836,2853,2870,2877,2885,2908,2921,2965,2978,3019,3027,3036,3071,3113,3160,3168,3177,3203,3246,3254,3262,3289],{"type":606,"tag":635,"props":1972,"children":1973},{"class":637,"line":12},[1974],{"type":606,"tag":635,"props":1975,"children":1976},{"style":671},[1977],{"type":611,"value":1978},"\"\"\"\n",{"type":606,"tag":635,"props":1980,"children":1981},{"class":637,"line":27},[1982],{"type":606,"tag":635,"props":1983,"children":1984},{"style":671},[1985],{"type":611,"value":1986},"Example module demonstrating Python best practices.\n",{"type":606,"tag":635,"props":1988,"children":1989},{"class":637,"line":36},[1990],{"type":606,"tag":635,"props":1991,"children":1992},{"style":671},[1993],{"type":611,"value":1994},"Shows proper structure, naming, and documentation.\n",{"type":606,"tag":635,"props":1996,"children":1997},{"class":637,"line":45},[1998],{"type":606,"tag":635,"props":1999,"children":2000},{"style":671},[2001],{"type":611,"value":1978},{"type":606,"tag":635,"props":2003,"children":2004},{"class":637,"line":54},[2005],{"type":606,"tag":635,"props":2006,"children":2007},{"emptyLinePlaceholder":13},[2008],{"type":611,"value":1185},{"type":606,"tag":635,"props":2010,"children":2011},{"class":637,"line":63},[2012,2017,2022,2026],{"type":606,"tag":635,"props":2013,"children":2014},{"style":650},[2015],{"type":611,"value":2016},"from",{"type":606,"tag":635,"props":2018,"children":2019},{"style":662},[2020],{"type":611,"value":2021}," typing ",{"type":606,"tag":635,"props":2023,"children":2024},{"style":650},[2025],{"type":611,"value":1160},{"type":606,"tag":635,"props":2027,"children":2028},{"style":662},[2029],{"type":611,"value":2030}," List, Dict, Optional\n",{"type":606,"tag":635,"props":2032,"children":2033},{"class":637,"line":72},[2034,2038,2043,2047],{"type":606,"tag":635,"props":2035,"children":2036},{"style":650},[2037],{"type":611,"value":2016},{"type":606,"tag":635,"props":2039,"children":2040},{"style":662},[2041],{"type":611,"value":2042}," dataclasses ",{"type":606,"tag":635,"props":2044,"children":2045},{"style":650},[2046],{"type":611,"value":1160},{"type":606,"tag":635,"props":2048,"children":2049},{"style":662},[2050],{"type":611,"value":2051}," dataclass\n",{"type":606,"tag":635,"props":2053,"children":2054},{"class":637,"line":81},[2055,2059,2063,2067],{"type":606,"tag":635,"props":2056,"children":2057},{"style":650},[2058],{"type":611,"value":2016},{"type":606,"tag":635,"props":2060,"children":2061},{"style":662},[2062],{"type":611,"value":1155},{"type":606,"tag":635,"props":2064,"children":2065},{"style":650},[2066],{"type":611,"value":1160},{"type":606,"tag":635,"props":2068,"children":2069},{"style":662},[2070],{"type":611,"value":1165},{"type":606,"tag":635,"props":2072,"children":2073},{"class":637,"line":779},[2074],{"type":606,"tag":635,"props":2075,"children":2076},{"emptyLinePlaceholder":13},[2077],{"type":611,"value":1185},{"type":606,"tag":635,"props":2079,"children":2080},{"class":637,"line":99},[2081],{"type":606,"tag":635,"props":2082,"children":2083},{"emptyLinePlaceholder":13},[2084],{"type":611,"value":1185},{"type":606,"tag":635,"props":2086,"children":2087},{"class":637,"line":108},[2088],{"type":606,"tag":635,"props":2089,"children":2090},{"style":656},[2091],{"type":611,"value":2092},"@dataclass\n",{"type":606,"tag":635,"props":2094,"children":2095},{"class":637,"line":117},[2096,2100,2105],{"type":606,"tag":635,"props":2097,"children":2098},{"style":650},[2099],{"type":611,"value":653},{"type":606,"tag":635,"props":2101,"children":2102},{"style":656},[2103],{"type":611,"value":2104}," Product",{"type":606,"tag":635,"props":2106,"children":2107},{"style":662},[2108],{"type":611,"value":665},{"type":606,"tag":635,"props":2110,"children":2111},{"class":637,"line":126},[2112],{"type":606,"tag":635,"props":2113,"children":2114},{"style":671},[2115],{"type":611,"value":2116},"    \"\"\"Represents a product with basic information.\"\"\"\n",{"type":606,"tag":635,"props":2118,"children":2119},{"class":637,"line":135},[2120,2125],{"type":606,"tag":635,"props":2121,"children":2122},{"style":662},[2123],{"type":611,"value":2124},"    name: ",{"type":606,"tag":635,"props":2126,"children":2127},{"style":693},[2128],{"type":611,"value":2129},"str\n",{"type":606,"tag":635,"props":2131,"children":2132},{"class":637,"line":144},[2133,2138],{"type":606,"tag":635,"props":2134,"children":2135},{"style":662},[2136],{"type":611,"value":2137},"    price: ",{"type":606,"tag":635,"props":2139,"children":2140},{"style":693},[2141],{"type":611,"value":2142},"float\n",{"type":606,"tag":635,"props":2144,"children":2145},{"class":637,"line":153},[2146,2151],{"type":606,"tag":635,"props":2147,"children":2148},{"style":662},[2149],{"type":611,"value":2150},"    category: ",{"type":606,"tag":635,"props":2152,"children":2153},{"style":693},[2154],{"type":611,"value":2129},{"type":606,"tag":635,"props":2156,"children":2157},{"class":637,"line":163},[2158,2163,2167,2172],{"type":606,"tag":635,"props":2159,"children":2160},{"style":662},[2161],{"type":611,"value":2162},"    in_stock: ",{"type":606,"tag":635,"props":2164,"children":2165},{"style":693},[2166],{"type":611,"value":772},{"type":606,"tag":635,"props":2168,"children":2169},{"style":650},[2170],{"type":611,"value":2171}," =",{"type":606,"tag":635,"props":2173,"children":2174},{"style":693},[2175],{"type":611,"value":993},{"type":606,"tag":635,"props":2177,"children":2178},{"class":637,"line":172},[2179],{"type":606,"tag":635,"props":2180,"children":2181},{"emptyLinePlaceholder":13},[2182],{"type":611,"value":1185},{"type":606,"tag":635,"props":2184,"children":2185},{"class":637,"line":181},[2186],{"type":606,"tag":635,"props":2187,"children":2188},{"emptyLinePlaceholder":13},[2189],{"type":611,"value":1185},{"type":606,"tag":635,"props":2191,"children":2192},{"class":637,"line":190},[2193,2197,2202],{"type":606,"tag":635,"props":2194,"children":2195},{"style":650},[2196],{"type":611,"value":653},{"type":606,"tag":635,"props":2198,"children":2199},{"style":656},[2200],{"type":611,"value":2201}," ShoppingCart",{"type":606,"tag":635,"props":2203,"children":2204},{"style":662},[2205],{"type":611,"value":665},{"type":606,"tag":635,"props":2207,"children":2208},{"class":637,"line":199},[2209],{"type":606,"tag":635,"props":2210,"children":2211},{"style":671},[2212],{"type":611,"value":2213},"    \"\"\"Manages items in a shopping cart.\"\"\"\n",{"type":606,"tag":635,"props":2215,"children":2216},{"class":637,"line":208},[2217],{"type":606,"tag":635,"props":2218,"children":2219},{"style":662},[2220],{"type":611,"value":682},{"type":606,"tag":635,"props":2222,"children":2223},{"class":637,"line":217},[2224,2228,2232],{"type":606,"tag":635,"props":2225,"children":2226},{"style":650},[2227],{"type":611,"value":690},{"type":606,"tag":635,"props":2229,"children":2230},{"style":693},[2231],{"type":611,"value":696},{"type":606,"tag":635,"props":2233,"children":2234},{"style":662},[2235],{"type":611,"value":701},{"type":606,"tag":635,"props":2237,"children":2238},{"class":637,"line":227},[2239,2243,2248,2252],{"type":606,"tag":635,"props":2240,"children":2241},{"style":693},[2242],{"type":611,"value":709},{"type":606,"tag":635,"props":2244,"children":2245},{"style":662},[2246],{"type":611,"value":2247},"._items: List[Product] ",{"type":606,"tag":635,"props":2249,"children":2250},{"style":650},[2251],{"type":611,"value":719},{"type":606,"tag":635,"props":2253,"children":2254},{"style":662},[2255],{"type":611,"value":2256}," []\n",{"type":606,"tag":635,"props":2258,"children":2259},{"class":637,"line":236},[2260],{"type":606,"tag":635,"props":2261,"children":2262},{"style":662},[2263],{"type":611,"value":682},{"type":606,"tag":635,"props":2265,"children":2266},{"class":637,"line":245},[2267,2271,2276,2281,2285],{"type":606,"tag":635,"props":2268,"children":2269},{"style":650},[2270],{"type":611,"value":690},{"type":606,"tag":635,"props":2272,"children":2273},{"style":656},[2274],{"type":611,"value":2275}," add_item",{"type":606,"tag":635,"props":2277,"children":2278},{"style":662},[2279],{"type":611,"value":2280},"(self, product: Product) -> ",{"type":606,"tag":635,"props":2282,"children":2283},{"style":693},[2284],{"type":611,"value":772},{"type":606,"tag":635,"props":2286,"children":2287},{"style":662},[2288],{"type":611,"value":665},{"type":606,"tag":635,"props":2290,"children":2291},{"class":637,"line":254},[2292],{"type":606,"tag":635,"props":2293,"children":2294},{"style":671},[2295],{"type":611,"value":2296},"        \"\"\"Add a product to the cart if it's in stock.\"\"\"\n",{"type":606,"tag":635,"props":2298,"children":2299},{"class":637,"line":263},[2300,2304,2308],{"type":606,"tag":635,"props":2301,"children":2302},{"style":650},[2303],{"type":611,"value":793},{"type":606,"tag":635,"props":2305,"children":2306},{"style":650},[2307],{"type":611,"value":798},{"type":606,"tag":635,"props":2309,"children":2310},{"style":662},[2311],{"type":611,"value":2312}," product.in_stock:\n",{"type":606,"tag":635,"props":2314,"children":2315},{"class":637,"line":272},[2316,2320],{"type":606,"tag":635,"props":2317,"children":2318},{"style":650},[2319],{"type":611,"value":903},{"type":606,"tag":635,"props":2321,"children":2322},{"style":693},[2323],{"type":611,"value":908},{"type":606,"tag":635,"props":2325,"children":2326},{"class":637,"line":281},[2327],{"type":606,"tag":635,"props":2328,"children":2329},{"style":662},[2330],{"type":611,"value":869},{"type":606,"tag":635,"props":2332,"children":2333},{"class":637,"line":291},[2334,2338],{"type":606,"tag":635,"props":2335,"children":2336},{"style":693},[2337],{"type":611,"value":709},{"type":606,"tag":635,"props":2339,"children":2340},{"style":662},[2341],{"type":611,"value":2342},"._items.append(product)\n",{"type":606,"tag":635,"props":2344,"children":2345},{"class":637,"line":302},[2346,2350],{"type":606,"tag":635,"props":2347,"children":2348},{"style":650},[2349],{"type":611,"value":988},{"type":606,"tag":635,"props":2351,"children":2352},{"style":693},[2353],{"type":611,"value":993},{"type":606,"tag":635,"props":2355,"children":2356},{"class":637,"line":311},[2357],{"type":606,"tag":635,"props":2358,"children":2359},{"style":662},[2360],{"type":611,"value":682},{"type":606,"tag":635,"props":2362,"children":2363},{"class":637,"line":320},[2364,2368,2373,2377,2382],{"type":606,"tag":635,"props":2365,"children":2366},{"style":650},[2367],{"type":611,"value":690},{"type":606,"tag":635,"props":2369,"children":2370},{"style":656},[2371],{"type":611,"value":2372}," get_total",{"type":606,"tag":635,"props":2374,"children":2375},{"style":662},[2376],{"type":611,"value":1126},{"type":606,"tag":635,"props":2378,"children":2379},{"style":693},[2380],{"type":611,"value":2381},"float",{"type":606,"tag":635,"props":2383,"children":2384},{"style":662},[2385],{"type":611,"value":665},{"type":606,"tag":635,"props":2387,"children":2388},{"class":637,"line":329},[2389],{"type":606,"tag":635,"props":2390,"children":2391},{"style":671},[2392],{"type":611,"value":2393},"        \"\"\"Calculate total price of items in cart.\"\"\"\n",{"type":606,"tag":635,"props":2395,"children":2396},{"class":637,"line":338},[2397,2401,2406,2411,2416,2421,2425,2429],{"type":606,"tag":635,"props":2398,"children":2399},{"style":650},[2400],{"type":611,"value":988},{"type":606,"tag":635,"props":2402,"children":2403},{"style":693},[2404],{"type":611,"value":2405}," sum",{"type":606,"tag":635,"props":2407,"children":2408},{"style":662},[2409],{"type":611,"value":2410},"(item.price ",{"type":606,"tag":635,"props":2412,"children":2413},{"style":650},[2414],{"type":611,"value":2415},"for",{"type":606,"tag":635,"props":2417,"children":2418},{"style":662},[2419],{"type":611,"value":2420}," item ",{"type":606,"tag":635,"props":2422,"children":2423},{"style":650},[2424],{"type":611,"value":886},{"type":606,"tag":635,"props":2426,"children":2427},{"style":693},[2428],{"type":611,"value":803},{"type":606,"tag":635,"props":2430,"children":2431},{"style":662},[2432],{"type":611,"value":2433},"._items)\n",{"type":606,"tag":635,"props":2435,"children":2436},{"class":637,"line":347},[2437],{"type":606,"tag":635,"props":2438,"children":2439},{"style":662},[2440],{"type":611,"value":682},{"type":606,"tag":635,"props":2442,"children":2443},{"class":637,"line":356},[2444,2448,2453,2458,2462],{"type":606,"tag":635,"props":2445,"children":2446},{"style":650},[2447],{"type":611,"value":690},{"type":606,"tag":635,"props":2449,"children":2450},{"style":656},[2451],{"type":611,"value":2452}," get_items_by_category",{"type":606,"tag":635,"props":2454,"children":2455},{"style":662},[2456],{"type":611,"value":2457},"(self, category: ",{"type":606,"tag":635,"props":2459,"children":2460},{"style":693},[2461],{"type":611,"value":753},{"type":606,"tag":635,"props":2463,"children":2464},{"style":662},[2465],{"type":611,"value":2466},") -> List[Product]:\n",{"type":606,"tag":635,"props":2468,"children":2469},{"class":637,"line":367},[2470],{"type":606,"tag":635,"props":2471,"children":2472},{"style":671},[2473],{"type":611,"value":2474},"        \"\"\"Get all items in cart from a specific category.\"\"\"\n",{"type":606,"tag":635,"props":2476,"children":2477},{"class":637,"line":376},[2478,2482,2487,2491,2495,2499,2503,2508,2513,2518,2523],{"type":606,"tag":635,"props":2479,"children":2480},{"style":650},[2481],{"type":611,"value":988},{"type":606,"tag":635,"props":2483,"children":2484},{"style":662},[2485],{"type":611,"value":2486}," [item ",{"type":606,"tag":635,"props":2488,"children":2489},{"style":650},[2490],{"type":611,"value":2415},{"type":606,"tag":635,"props":2492,"children":2493},{"style":662},[2494],{"type":611,"value":2420},{"type":606,"tag":635,"props":2496,"children":2497},{"style":650},[2498],{"type":611,"value":886},{"type":606,"tag":635,"props":2500,"children":2501},{"style":693},[2502],{"type":611,"value":803},{"type":606,"tag":635,"props":2504,"children":2505},{"style":662},[2506],{"type":611,"value":2507},"._items ",{"type":606,"tag":635,"props":2509,"children":2510},{"style":650},[2511],{"type":611,"value":2512},"if",{"type":606,"tag":635,"props":2514,"children":2515},{"style":662},[2516],{"type":611,"value":2517}," item.category ",{"type":606,"tag":635,"props":2519,"children":2520},{"style":650},[2521],{"type":611,"value":2522},"==",{"type":606,"tag":635,"props":2524,"children":2525},{"style":662},[2526],{"type":611,"value":2527}," category]\n",{"type":606,"tag":635,"props":2529,"children":2530},{"class":637,"line":385},[2531],{"type":606,"tag":635,"props":2532,"children":2533},{"style":662},[2534],{"type":611,"value":682},{"type":606,"tag":635,"props":2536,"children":2537},{"class":637,"line":394},[2538,2543],{"type":606,"tag":635,"props":2539,"children":2540},{"style":656},[2541],{"type":611,"value":2542},"    @",{"type":606,"tag":635,"props":2544,"children":2545},{"style":693},[2546],{"type":611,"value":2547},"property\n",{"type":606,"tag":635,"props":2549,"children":2550},{"class":637,"line":403},[2551,2555,2560,2564,2569],{"type":606,"tag":635,"props":2552,"children":2553},{"style":650},[2554],{"type":611,"value":690},{"type":606,"tag":635,"props":2556,"children":2557},{"style":656},[2558],{"type":611,"value":2559}," item_count",{"type":606,"tag":635,"props":2561,"children":2562},{"style":662},[2563],{"type":611,"value":1126},{"type":606,"tag":635,"props":2565,"children":2566},{"style":693},[2567],{"type":611,"value":2568},"int",{"type":606,"tag":635,"props":2570,"children":2571},{"style":662},[2572],{"type":611,"value":665},{"type":606,"tag":635,"props":2574,"children":2575},{"class":637,"line":412},[2576],{"type":606,"tag":635,"props":2577,"children":2578},{"style":671},[2579],{"type":611,"value":2580},"        \"\"\"Number of items in the cart.\"\"\"\n",{"type":606,"tag":635,"props":2582,"children":2583},{"class":637,"line":423},[2584,2588,2593,2597,2601],{"type":606,"tag":635,"props":2585,"children":2586},{"style":650},[2587],{"type":611,"value":988},{"type":606,"tag":635,"props":2589,"children":2590},{"style":693},[2591],{"type":611,"value":2592}," len",{"type":606,"tag":635,"props":2594,"children":2595},{"style":662},[2596],{"type":611,"value":826},{"type":606,"tag":635,"props":2598,"children":2599},{"style":693},[2600],{"type":611,"value":967},{"type":606,"tag":635,"props":2602,"children":2603},{"style":662},[2604],{"type":611,"value":2433},{"type":606,"tag":635,"props":2606,"children":2607},{"class":637,"line":432},[2608],{"type":606,"tag":635,"props":2609,"children":2610},{"emptyLinePlaceholder":13},[2611],{"type":611,"value":1185},{"type":606,"tag":635,"props":2613,"children":2614},{"class":637,"line":441},[2615],{"type":606,"tag":635,"props":2616,"children":2617},{"emptyLinePlaceholder":13},[2618],{"type":611,"value":1185},{"type":606,"tag":635,"props":2620,"children":2621},{"class":637,"line":450},[2622,2627,2632],{"type":606,"tag":635,"props":2623,"children":2624},{"style":650},[2625],{"type":611,"value":2626},"def",{"type":606,"tag":635,"props":2628,"children":2629},{"style":656},[2630],{"type":611,"value":2631}," create_sample_products",{"type":606,"tag":635,"props":2633,"children":2634},{"style":662},[2635],{"type":611,"value":2636},"() -> List[Product]:\n",{"type":606,"tag":635,"props":2638,"children":2639},{"class":637,"line":459},[2640],{"type":606,"tag":635,"props":2641,"children":2642},{"style":671},[2643],{"type":611,"value":2644},"    \"\"\"Create sample products for demonstration.\"\"\"\n",{"type":606,"tag":635,"props":2646,"children":2647},{"class":637,"line":468},[2648,2653],{"type":606,"tag":635,"props":2649,"children":2650},{"style":650},[2651],{"type":611,"value":2652},"    return",{"type":606,"tag":635,"props":2654,"children":2655},{"style":662},[2656],{"type":611,"value":2657}," [\n",{"type":606,"tag":635,"props":2659,"children":2660},{"class":637,"line":477},[2661,2666,2671,2675,2680,2684,2689],{"type":606,"tag":635,"props":2662,"children":2663},{"style":662},[2664],{"type":611,"value":2665},"        Product(",{"type":606,"tag":635,"props":2667,"children":2668},{"style":671},[2669],{"type":611,"value":2670},"\"Laptop\"",{"type":606,"tag":635,"props":2672,"children":2673},{"style":662},[2674],{"type":611,"value":1237},{"type":606,"tag":635,"props":2676,"children":2677},{"style":693},[2678],{"type":611,"value":2679},"999.99",{"type":606,"tag":635,"props":2681,"children":2682},{"style":662},[2683],{"type":611,"value":1237},{"type":606,"tag":635,"props":2685,"children":2686},{"style":671},[2687],{"type":611,"value":2688},"\"Electronics\"",{"type":606,"tag":635,"props":2690,"children":2691},{"style":662},[2692],{"type":611,"value":2693},"),\n",{"type":606,"tag":635,"props":2695,"children":2696},{"class":637,"line":488},[2697,2701,2706,2710,2715,2719,2724],{"type":606,"tag":635,"props":2698,"children":2699},{"style":662},[2700],{"type":611,"value":2665},{"type":606,"tag":635,"props":2702,"children":2703},{"style":671},[2704],{"type":611,"value":2705},"\"Coffee Mug\"",{"type":606,"tag":635,"props":2707,"children":2708},{"style":662},[2709],{"type":611,"value":1237},{"type":606,"tag":635,"props":2711,"children":2712},{"style":693},[2713],{"type":611,"value":2714},"12.99",{"type":606,"tag":635,"props":2716,"children":2717},{"style":662},[2718],{"type":611,"value":1237},{"type":606,"tag":635,"props":2720,"children":2721},{"style":671},[2722],{"type":611,"value":2723},"\"Kitchen\"",{"type":606,"tag":635,"props":2725,"children":2726},{"style":662},[2727],{"type":611,"value":2693},{"type":606,"tag":635,"props":2729,"children":2730},{"class":637,"line":497},[2731,2735,2740,2744,2749,2753,2758,2762,2768,2772,2777],{"type":606,"tag":635,"props":2732,"children":2733},{"style":662},[2734],{"type":611,"value":2665},{"type":606,"tag":635,"props":2736,"children":2737},{"style":671},[2738],{"type":611,"value":2739},"\"Python Book\"",{"type":606,"tag":635,"props":2741,"children":2742},{"style":662},[2743],{"type":611,"value":1237},{"type":606,"tag":635,"props":2745,"children":2746},{"style":693},[2747],{"type":611,"value":2748},"39.99",{"type":606,"tag":635,"props":2750,"children":2751},{"style":662},[2752],{"type":611,"value":1237},{"type":606,"tag":635,"props":2754,"children":2755},{"style":671},[2756],{"type":611,"value":2757},"\"Books\"",{"type":606,"tag":635,"props":2759,"children":2760},{"style":662},[2761],{"type":611,"value":1237},{"type":606,"tag":635,"props":2763,"children":2765},{"style":2764},"--shiki-default:#E36209;--shiki-app-dark-mode:#FFAB70",[2766],{"type":611,"value":2767},"in_stock",{"type":606,"tag":635,"props":2769,"children":2770},{"style":650},[2771],{"type":611,"value":719},{"type":606,"tag":635,"props":2773,"children":2774},{"style":693},[2775],{"type":611,"value":2776},"False",{"type":606,"tag":635,"props":2778,"children":2779},{"style":662},[2780],{"type":611,"value":861},{"type":606,"tag":635,"props":2782,"children":2783},{"class":637,"line":506},[2784],{"type":606,"tag":635,"props":2785,"children":2786},{"style":662},[2787],{"type":611,"value":2788},"    ]\n",{"type":606,"tag":635,"props":2790,"children":2791},{"class":637,"line":515},[2792],{"type":606,"tag":635,"props":2793,"children":2794},{"emptyLinePlaceholder":13},[2795],{"type":611,"value":1185},{"type":606,"tag":635,"props":2797,"children":2798},{"class":637,"line":524},[2799],{"type":606,"tag":635,"props":2800,"children":2801},{"emptyLinePlaceholder":13},[2802],{"type":611,"value":1185},{"type":606,"tag":635,"props":2804,"children":2805},{"class":637,"line":533},[2806],{"type":606,"tag":635,"props":2807,"children":2808},{"style":641},[2809],{"type":611,"value":2810},"# Usage example with clear, professional code\n",{"type":606,"tag":635,"props":2812,"children":2813},{"class":637,"line":544},[2814,2818,2823],{"type":606,"tag":635,"props":2815,"children":2816},{"style":650},[2817],{"type":611,"value":2626},{"type":606,"tag":635,"props":2819,"children":2820},{"style":656},[2821],{"type":611,"value":2822}," main",{"type":606,"tag":635,"props":2824,"children":2825},{"style":662},[2826],{"type":611,"value":2827},"():\n",{"type":606,"tag":635,"props":2829,"children":2830},{"class":637,"line":553},[2831],{"type":606,"tag":635,"props":2832,"children":2833},{"style":671},[2834],{"type":611,"value":2835},"    \"\"\"Main function demonstrating the shopping cart.\"\"\"\n",{"type":606,"tag":635,"props":2837,"children":2838},{"class":637,"line":562},[2839,2844,2848],{"type":606,"tag":635,"props":2840,"children":2841},{"style":662},[2842],{"type":611,"value":2843},"    cart ",{"type":606,"tag":635,"props":2845,"children":2846},{"style":650},[2847],{"type":611,"value":719},{"type":606,"tag":635,"props":2849,"children":2850},{"style":662},[2851],{"type":611,"value":2852}," ShoppingCart()\n",{"type":606,"tag":635,"props":2854,"children":2855},{"class":637,"line":571},[2856,2861,2865],{"type":606,"tag":635,"props":2857,"children":2858},{"style":662},[2859],{"type":611,"value":2860},"    products ",{"type":606,"tag":635,"props":2862,"children":2863},{"style":650},[2864],{"type":611,"value":719},{"type":606,"tag":635,"props":2866,"children":2867},{"style":662},[2868],{"type":611,"value":2869}," create_sample_products()\n",{"type":606,"tag":635,"props":2871,"children":2872},{"class":637,"line":580},[2873],{"type":606,"tag":635,"props":2874,"children":2875},{"style":662},[2876],{"type":611,"value":682},{"type":606,"tag":635,"props":2878,"children":2879},{"class":637,"line":589},[2880],{"type":606,"tag":635,"props":2881,"children":2882},{"style":641},[2883],{"type":611,"value":2884},"    # Add available products to cart\n",{"type":606,"tag":635,"props":2886,"children":2888},{"class":637,"line":2887},64,[2889,2894,2899,2903],{"type":606,"tag":635,"props":2890,"children":2891},{"style":650},[2892],{"type":611,"value":2893},"    for",{"type":606,"tag":635,"props":2895,"children":2896},{"style":662},[2897],{"type":611,"value":2898}," product ",{"type":606,"tag":635,"props":2900,"children":2901},{"style":650},[2902],{"type":611,"value":886},{"type":606,"tag":635,"props":2904,"children":2905},{"style":662},[2906],{"type":611,"value":2907}," products:\n",{"type":606,"tag":635,"props":2909,"children":2911},{"class":637,"line":2910},65,[2912,2916],{"type":606,"tag":635,"props":2913,"children":2914},{"style":650},[2915],{"type":611,"value":793},{"type":606,"tag":635,"props":2917,"children":2918},{"style":662},[2919],{"type":611,"value":2920}," cart.add_item(product):\n",{"type":606,"tag":635,"props":2922,"children":2924},{"class":637,"line":2923},66,[2925,2930,2934,2938,2943,2947,2952,2956,2961],{"type":606,"tag":635,"props":2926,"children":2927},{"style":693},[2928],{"type":611,"value":2929},"            print",{"type":606,"tag":635,"props":2931,"children":2932},{"style":662},[2933],{"type":611,"value":826},{"type":606,"tag":635,"props":2935,"children":2936},{"style":650},[2937],{"type":611,"value":831},{"type":606,"tag":635,"props":2939,"children":2940},{"style":671},[2941],{"type":611,"value":2942},"\"Added ",{"type":606,"tag":635,"props":2944,"children":2945},{"style":693},[2946],{"type":611,"value":841},{"type":606,"tag":635,"props":2948,"children":2949},{"style":662},[2950],{"type":611,"value":2951},"product.name",{"type":606,"tag":635,"props":2953,"children":2954},{"style":693},[2955],{"type":611,"value":851},{"type":606,"tag":635,"props":2957,"children":2958},{"style":671},[2959],{"type":611,"value":2960}," to cart\"",{"type":606,"tag":635,"props":2962,"children":2963},{"style":662},[2964],{"type":611,"value":861},{"type":606,"tag":635,"props":2966,"children":2968},{"class":637,"line":2967},67,[2969,2974],{"type":606,"tag":635,"props":2970,"children":2971},{"style":650},[2972],{"type":611,"value":2973},"        else",{"type":606,"tag":635,"props":2975,"children":2976},{"style":662},[2977],{"type":611,"value":665},{"type":606,"tag":635,"props":2979,"children":2981},{"class":637,"line":2980},68,[2982,2986,2990,2994,2998,3002,3006,3010,3015],{"type":606,"tag":635,"props":2983,"children":2984},{"style":693},[2985],{"type":611,"value":2929},{"type":606,"tag":635,"props":2987,"children":2988},{"style":662},[2989],{"type":611,"value":826},{"type":606,"tag":635,"props":2991,"children":2992},{"style":650},[2993],{"type":611,"value":831},{"type":606,"tag":635,"props":2995,"children":2996},{"style":671},[2997],{"type":611,"value":856},{"type":606,"tag":635,"props":2999,"children":3000},{"style":693},[3001],{"type":611,"value":841},{"type":606,"tag":635,"props":3003,"children":3004},{"style":662},[3005],{"type":611,"value":2951},{"type":606,"tag":635,"props":3007,"children":3008},{"style":693},[3009],{"type":611,"value":851},{"type":606,"tag":635,"props":3011,"children":3012},{"style":671},[3013],{"type":611,"value":3014}," is out of stock\"",{"type":606,"tag":635,"props":3016,"children":3017},{"style":662},[3018],{"type":611,"value":861},{"type":606,"tag":635,"props":3020,"children":3022},{"class":637,"line":3021},69,[3023],{"type":606,"tag":635,"props":3024,"children":3025},{"style":662},[3026],{"type":611,"value":682},{"type":606,"tag":635,"props":3028,"children":3030},{"class":637,"line":3029},70,[3031],{"type":606,"tag":635,"props":3032,"children":3033},{"style":641},[3034],{"type":611,"value":3035},"    # Display cart summary\n",{"type":606,"tag":635,"props":3037,"children":3039},{"class":637,"line":3038},71,[3040,3045,3049,3053,3057,3062,3067],{"type":606,"tag":635,"props":3041,"children":3042},{"style":693},[3043],{"type":611,"value":3044},"    print",{"type":606,"tag":635,"props":3046,"children":3047},{"style":662},[3048],{"type":611,"value":826},{"type":606,"tag":635,"props":3050,"children":3051},{"style":650},[3052],{"type":611,"value":831},{"type":606,"tag":635,"props":3054,"children":3055},{"style":671},[3056],{"type":611,"value":856},{"type":606,"tag":635,"props":3058,"children":3059},{"style":693},[3060],{"type":611,"value":3061},"\\n",{"type":606,"tag":635,"props":3063,"children":3064},{"style":671},[3065],{"type":611,"value":3066},"Cart summary:\"",{"type":606,"tag":635,"props":3068,"children":3069},{"style":662},[3070],{"type":611,"value":861},{"type":606,"tag":635,"props":3072,"children":3074},{"class":637,"line":3073},72,[3075,3079,3083,3087,3092,3096,3101,3105,3109],{"type":606,"tag":635,"props":3076,"children":3077},{"style":693},[3078],{"type":611,"value":3044},{"type":606,"tag":635,"props":3080,"children":3081},{"style":662},[3082],{"type":611,"value":826},{"type":606,"tag":635,"props":3084,"children":3085},{"style":650},[3086],{"type":611,"value":831},{"type":606,"tag":635,"props":3088,"children":3089},{"style":671},[3090],{"type":611,"value":3091},"\"Items: ",{"type":606,"tag":635,"props":3093,"children":3094},{"style":693},[3095],{"type":611,"value":841},{"type":606,"tag":635,"props":3097,"children":3098},{"style":662},[3099],{"type":611,"value":3100},"cart.item_count",{"type":606,"tag":635,"props":3102,"children":3103},{"style":693},[3104],{"type":611,"value":851},{"type":606,"tag":635,"props":3106,"children":3107},{"style":671},[3108],{"type":611,"value":856},{"type":606,"tag":635,"props":3110,"children":3111},{"style":662},[3112],{"type":611,"value":861},{"type":606,"tag":635,"props":3114,"children":3116},{"class":637,"line":3115},73,[3117,3121,3125,3129,3134,3138,3143,3148,3152,3156],{"type":606,"tag":635,"props":3118,"children":3119},{"style":693},[3120],{"type":611,"value":3044},{"type":606,"tag":635,"props":3122,"children":3123},{"style":662},[3124],{"type":611,"value":826},{"type":606,"tag":635,"props":3126,"children":3127},{"style":650},[3128],{"type":611,"value":831},{"type":606,"tag":635,"props":3130,"children":3131},{"style":671},[3132],{"type":611,"value":3133},"\"Total: $",{"type":606,"tag":635,"props":3135,"children":3136},{"style":693},[3137],{"type":611,"value":841},{"type":606,"tag":635,"props":3139,"children":3140},{"style":662},[3141],{"type":611,"value":3142},"cart.get_total()",{"type":606,"tag":635,"props":3144,"children":3145},{"style":650},[3146],{"type":611,"value":3147},":.2f",{"type":606,"tag":635,"props":3149,"children":3150},{"style":693},[3151],{"type":611,"value":851},{"type":606,"tag":635,"props":3153,"children":3154},{"style":671},[3155],{"type":611,"value":856},{"type":606,"tag":635,"props":3157,"children":3158},{"style":662},[3159],{"type":611,"value":861},{"type":606,"tag":635,"props":3161,"children":3163},{"class":637,"line":3162},74,[3164],{"type":606,"tag":635,"props":3165,"children":3166},{"style":662},[3167],{"type":611,"value":682},{"type":606,"tag":635,"props":3169,"children":3171},{"class":637,"line":3170},75,[3172],{"type":606,"tag":635,"props":3173,"children":3174},{"style":641},[3175],{"type":611,"value":3176},"    # Show electronics items\n",{"type":606,"tag":635,"props":3178,"children":3180},{"class":637,"line":3179},76,[3181,3186,3190,3195,3199],{"type":606,"tag":635,"props":3182,"children":3183},{"style":662},[3184],{"type":611,"value":3185},"    electronics ",{"type":606,"tag":635,"props":3187,"children":3188},{"style":650},[3189],{"type":611,"value":719},{"type":606,"tag":635,"props":3191,"children":3192},{"style":662},[3193],{"type":611,"value":3194}," cart.get_items_by_category(",{"type":606,"tag":635,"props":3196,"children":3197},{"style":671},[3198],{"type":611,"value":2688},{"type":606,"tag":635,"props":3200,"children":3201},{"style":662},[3202],{"type":611,"value":861},{"type":606,"tag":635,"props":3204,"children":3206},{"class":637,"line":3205},77,[3207,3211,3215,3219,3224,3229,3234,3238,3242],{"type":606,"tag":635,"props":3208,"children":3209},{"style":693},[3210],{"type":611,"value":3044},{"type":606,"tag":635,"props":3212,"children":3213},{"style":662},[3214],{"type":611,"value":826},{"type":606,"tag":635,"props":3216,"children":3217},{"style":650},[3218],{"type":611,"value":831},{"type":606,"tag":635,"props":3220,"children":3221},{"style":671},[3222],{"type":611,"value":3223},"\"Electronics items: ",{"type":606,"tag":635,"props":3225,"children":3226},{"style":693},[3227],{"type":611,"value":3228},"{len",{"type":606,"tag":635,"props":3230,"children":3231},{"style":662},[3232],{"type":611,"value":3233},"(electronics)",{"type":606,"tag":635,"props":3235,"children":3236},{"style":693},[3237],{"type":611,"value":851},{"type":606,"tag":635,"props":3239,"children":3240},{"style":671},[3241],{"type":611,"value":856},{"type":606,"tag":635,"props":3243,"children":3244},{"style":662},[3245],{"type":611,"value":861},{"type":606,"tag":635,"props":3247,"children":3249},{"class":637,"line":3248},78,[3250],{"type":606,"tag":635,"props":3251,"children":3252},{"emptyLinePlaceholder":13},[3253],{"type":611,"value":1185},{"type":606,"tag":635,"props":3255,"children":3257},{"class":637,"line":3256},79,[3258],{"type":606,"tag":635,"props":3259,"children":3260},{"emptyLinePlaceholder":13},[3261],{"type":611,"value":1185},{"type":606,"tag":635,"props":3263,"children":3265},{"class":637,"line":3264},80,[3266,3270,3275,3280,3285],{"type":606,"tag":635,"props":3267,"children":3268},{"style":650},[3269],{"type":611,"value":2512},{"type":606,"tag":635,"props":3271,"children":3272},{"style":693},[3273],{"type":611,"value":3274}," __name__",{"type":606,"tag":635,"props":3276,"children":3277},{"style":650},[3278],{"type":611,"value":3279}," ==",{"type":606,"tag":635,"props":3281,"children":3282},{"style":671},[3283],{"type":611,"value":3284}," \"__main__\"",{"type":606,"tag":635,"props":3286,"children":3287},{"style":662},[3288],{"type":611,"value":665},{"type":606,"tag":635,"props":3290,"children":3292},{"class":637,"line":3291},81,[3293],{"type":606,"tag":635,"props":3294,"children":3295},{"style":662},[3296],{"type":611,"value":3297},"    main()\n",{"type":606,"tag":1290,"props":3299,"children":3301},{"id":3300},"code-quality-metrics",[3302],{"type":611,"value":3303},"📏 Code Quality Metrics",{"type":606,"tag":1492,"props":3305,"children":3307},{"id":3306},"what-makes-good-code",[3308],{"type":611,"value":3309},"What Makes Good Code",{"type":606,"tag":1499,"props":3311,"children":3312},{},[3313,3334],{"type":606,"tag":1503,"props":3314,"children":3315},{},[3316],{"type":606,"tag":1507,"props":3317,"children":3318},{},[3319,3324,3329],{"type":606,"tag":1511,"props":3320,"children":3321},{},[3322],{"type":611,"value":3323},"Metric",{"type":606,"tag":1511,"props":3325,"children":3326},{},[3327],{"type":611,"value":3328},"Good Range",{"type":606,"tag":1511,"props":3330,"children":3331},{},[3332],{"type":611,"value":3333},"How to Achieve",{"type":606,"tag":1527,"props":3335,"children":3336},{},[3337,3358,3379,3400,3421,3441],{"type":606,"tag":1507,"props":3338,"children":3339},{},[3340,3348,3353],{"type":606,"tag":1534,"props":3341,"children":3342},{},[3343],{"type":606,"tag":1312,"props":3344,"children":3345},{},[3346],{"type":611,"value":3347},"Function Length",{"type":606,"tag":1534,"props":3349,"children":3350},{},[3351],{"type":611,"value":3352},"5-20 lines",{"type":606,"tag":1534,"props":3354,"children":3355},{},[3356],{"type":611,"value":3357},"Break into smaller functions",{"type":606,"tag":1507,"props":3359,"children":3360},{},[3361,3369,3374],{"type":606,"tag":1534,"props":3362,"children":3363},{},[3364],{"type":606,"tag":1312,"props":3365,"children":3366},{},[3367],{"type":611,"value":3368},"Class Size",{"type":606,"tag":1534,"props":3370,"children":3371},{},[3372],{"type":611,"value":3373},"\u003C 200 lines",{"type":606,"tag":1534,"props":3375,"children":3376},{},[3377],{"type":611,"value":3378},"Split responsibilities",{"type":606,"tag":1507,"props":3380,"children":3381},{},[3382,3390,3395],{"type":606,"tag":1534,"props":3383,"children":3384},{},[3385],{"type":606,"tag":1312,"props":3386,"children":3387},{},[3388],{"type":611,"value":3389},"Complexity",{"type":606,"tag":1534,"props":3391,"children":3392},{},[3393],{"type":611,"value":3394},"Low",{"type":606,"tag":1534,"props":3396,"children":3397},{},[3398],{"type":611,"value":3399},"Avoid deep nesting",{"type":606,"tag":1507,"props":3401,"children":3402},{},[3403,3411,3416],{"type":606,"tag":1534,"props":3404,"children":3405},{},[3406],{"type":606,"tag":1312,"props":3407,"children":3408},{},[3409],{"type":611,"value":3410},"Test Coverage",{"type":606,"tag":1534,"props":3412,"children":3413},{},[3414],{"type":611,"value":3415},"> 80%",{"type":606,"tag":1534,"props":3417,"children":3418},{},[3419],{"type":611,"value":3420},"Write comprehensive tests",{"type":606,"tag":1507,"props":3422,"children":3423},{},[3424,3431,3436],{"type":606,"tag":1534,"props":3425,"children":3426},{},[3427],{"type":606,"tag":1312,"props":3428,"children":3429},{},[3430],{"type":611,"value":1610},{"type":606,"tag":1534,"props":3432,"children":3433},{},[3434],{"type":611,"value":3435},"All public APIs",{"type":606,"tag":1534,"props":3437,"children":3438},{},[3439],{"type":611,"value":3440},"Clear docstrings",{"type":606,"tag":1507,"props":3442,"children":3443},{},[3444,3451,3456],{"type":606,"tag":1534,"props":3445,"children":3446},{},[3447],{"type":606,"tag":1312,"props":3448,"children":3449},{},[3450],{"type":611,"value":1652},{"type":606,"tag":1534,"props":3452,"children":3453},{},[3454],{"type":611,"value":3455},"Meets requirements",{"type":606,"tag":1534,"props":3457,"children":3458},{},[3459],{"type":611,"value":3460},"Profile and optimize",{"type":606,"tag":1492,"props":3462,"children":3464},{"id":3463},"common-code-smells-to-avoid",[3465],{"type":611,"value":3466},"Common Code Smells to Avoid",{"type":606,"tag":1499,"props":3468,"children":3469},{},[3470,3491],{"type":606,"tag":1503,"props":3471,"children":3472},{},[3473],{"type":606,"tag":1507,"props":3474,"children":3475},{},[3476,3481,3486],{"type":606,"tag":1511,"props":3477,"children":3478},{},[3479],{"type":611,"value":3480},"Issue",{"type":606,"tag":1511,"props":3482,"children":3483},{},[3484],{"type":611,"value":3485},"Problem",{"type":606,"tag":1511,"props":3487,"children":3488},{},[3489],{"type":611,"value":3490},"Solution",{"type":606,"tag":1527,"props":3492,"children":3493},{},[3494,3514,3535,3556,3577,3598],{"type":606,"tag":1507,"props":3495,"children":3496},{},[3497,3505,3510],{"type":606,"tag":1534,"props":3498,"children":3499},{},[3500],{"type":606,"tag":1312,"props":3501,"children":3502},{},[3503],{"type":611,"value":3504},"Long functions",{"type":606,"tag":1534,"props":3506,"children":3507},{},[3508],{"type":611,"value":3509},"Hard to understand",{"type":606,"tag":1534,"props":3511,"children":3512},{},[3513],{"type":611,"value":3357},{"type":606,"tag":1507,"props":3515,"children":3516},{},[3517,3525,3530],{"type":606,"tag":1534,"props":3518,"children":3519},{},[3520],{"type":606,"tag":1312,"props":3521,"children":3522},{},[3523],{"type":611,"value":3524},"Magic numbers",{"type":606,"tag":1534,"props":3526,"children":3527},{},[3528],{"type":611,"value":3529},"Unclear meaning",{"type":606,"tag":1534,"props":3531,"children":3532},{},[3533],{"type":611,"value":3534},"Use named constants",{"type":606,"tag":1507,"props":3536,"children":3537},{},[3538,3546,3551],{"type":606,"tag":1534,"props":3539,"children":3540},{},[3541],{"type":606,"tag":1312,"props":3542,"children":3543},{},[3544],{"type":611,"value":3545},"Duplicate code",{"type":606,"tag":1534,"props":3547,"children":3548},{},[3549],{"type":611,"value":3550},"Hard to maintain",{"type":606,"tag":1534,"props":3552,"children":3553},{},[3554],{"type":611,"value":3555},"Extract common logic",{"type":606,"tag":1507,"props":3557,"children":3558},{},[3559,3567,3572],{"type":606,"tag":1534,"props":3560,"children":3561},{},[3562],{"type":606,"tag":1312,"props":3563,"children":3564},{},[3565],{"type":611,"value":3566},"Deep nesting",{"type":606,"tag":1534,"props":3568,"children":3569},{},[3570],{"type":611,"value":3571},"Complex logic",{"type":606,"tag":1534,"props":3573,"children":3574},{},[3575],{"type":611,"value":3576},"Use early returns",{"type":606,"tag":1507,"props":3578,"children":3579},{},[3580,3588,3593],{"type":606,"tag":1534,"props":3581,"children":3582},{},[3583],{"type":606,"tag":1312,"props":3584,"children":3585},{},[3586],{"type":611,"value":3587},"Poor naming",{"type":606,"tag":1534,"props":3589,"children":3590},{},[3591],{"type":611,"value":3592},"Confusing purpose",{"type":606,"tag":1534,"props":3594,"children":3595},{},[3596],{"type":611,"value":3597},"Use descriptive names",{"type":606,"tag":1507,"props":3599,"children":3600},{},[3601,3609,3614],{"type":606,"tag":1534,"props":3602,"children":3603},{},[3604],{"type":606,"tag":1312,"props":3605,"children":3606},{},[3607],{"type":611,"value":3608},"No tests",{"type":606,"tag":1534,"props":3610,"children":3611},{},[3612],{"type":611,"value":3613},"Unreliable code",{"type":606,"tag":1534,"props":3615,"children":3616},{},[3617],{"type":611,"value":3618},"Write unit tests",{"type":606,"tag":1290,"props":3620,"children":3622},{"id":3621},"️-professional-standards",[3623],{"type":611,"value":3624},"🎖️ Professional Standards",{"type":606,"tag":1302,"props":3626,"children":3630},{"emoji":3627,"title":3628,"type":3629},"💼","Industry Expectations","warning",[3631,3639,3657,3665,3688,3696],{"type":606,"tag":614,"props":3632,"children":3633},{},[3634],{"type":606,"tag":1312,"props":3635,"children":3636},{},[3637],{"type":611,"value":3638},"Code Reviews:",{"type":606,"tag":1318,"props":3640,"children":3641},{},[3642,3647,3652],{"type":606,"tag":1322,"props":3643,"children":3644},{},[3645],{"type":611,"value":3646},"Code must be readable by other developers",{"type":606,"tag":1322,"props":3648,"children":3649},{},[3650],{"type":611,"value":3651},"Functions should be testable and well-documented",{"type":606,"tag":1322,"props":3653,"children":3654},{},[3655],{"type":611,"value":3656},"Follow team coding standards and conventions",{"type":606,"tag":614,"props":3658,"children":3659},{},[3660],{"type":606,"tag":1312,"props":3661,"children":3662},{},[3663],{"type":611,"value":3664},"Production Code:",{"type":606,"tag":1318,"props":3666,"children":3667},{},[3668,3673,3678,3683],{"type":606,"tag":1322,"props":3669,"children":3670},{},[3671],{"type":611,"value":3672},"Include error handling and logging",{"type":606,"tag":1322,"props":3674,"children":3675},{},[3676],{"type":611,"value":3677},"Write tests for critical functionality",{"type":606,"tag":1322,"props":3679,"children":3680},{},[3681],{"type":611,"value":3682},"Use type hints for better tooling support",{"type":606,"tag":1322,"props":3684,"children":3685},{},[3686],{"type":611,"value":3687},"Document complex business logic",{"type":606,"tag":614,"props":3689,"children":3690},{},[3691],{"type":606,"tag":1312,"props":3692,"children":3693},{},[3694],{"type":611,"value":3695},"Team Projects:",{"type":606,"tag":1318,"props":3697,"children":3698},{},[3699,3704,3709],{"type":606,"tag":1322,"props":3700,"children":3701},{},[3702],{"type":611,"value":3703},"Consistent naming across the codebase",{"type":606,"tag":1322,"props":3705,"children":3706},{},[3707],{"type":611,"value":3708},"Proper module organization and imports",{"type":606,"tag":1322,"props":3710,"children":3711},{},[3712],{"type":611,"value":3713},"Version control with meaningful commit messages",{"type":606,"tag":1290,"props":3715,"children":3717},{"id":3716},"ready-to-write-professional-code",[3718],{"type":611,"value":3719},"🚀 Ready to Write Professional Code?",{"type":606,"tag":614,"props":3721,"children":3722},{},[3723],{"type":611,"value":3724},"Best practices transform good programmers into great ones. These skills are essential for any serious Python development work.",{"type":606,"tag":614,"props":3726,"children":3727},{},[3728,3733,3735],{"type":606,"tag":1312,"props":3729,"children":3730},{},[3731],{"type":611,"value":3732},"Start your journey",{"type":611,"value":3734},": Begin with ",{"type":606,"tag":1424,"props":3736,"children":3737},{"href":540},[3738],{"type":611,"value":541},{"type":606,"tag":614,"props":3740,"children":3741},{},[3742],{"type":611,"value":3743},"Write code that lasts and scales! ⭐✨",{"type":606,"tag":3745,"props":3746,"children":3747},"style",{},[3748],{"type":611,"value":3749},"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":3751},[3752,3753,3754,3758,3759,3760,3764,3765],{"id":1292,"depth":27,"text":1295},{"id":1406,"depth":27,"text":1409},{"id":1487,"depth":27,"text":1490,"children":3755},[3756,3757],{"id":1494,"depth":36,"text":1497},{"id":1665,"depth":36,"text":1668},{"id":1850,"depth":27,"text":1853},{"id":1952,"depth":27,"text":1955},{"id":3300,"depth":27,"text":3303,"children":3761},[3762,3763],{"id":3306,"depth":36,"text":3309},{"id":3463,"depth":36,"text":3466},{"id":3621,"depth":27,"text":3624},{"id":3716,"depth":27,"text":3719},1782373763851]