[{"data":1,"prerenderedAt":3677},["ShallowReactive",2],{"tutorials-python-how-to":3,"category-items-python-how-to":600,"content-/python-how-to/format-strings":601},[4,22,31,40,49,58,67,76,86,94,103,112,121,130,139,148,158,167,176,185,194,203,212,222,231,240,249,258,267,276,285,297,306,315,324,333,342,351,362,371,380,389,398,407,418,427,436,445,454,463,472,483,492,501,510,519,528,539,548,557,566,575,584,593],{"_path":5,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":9,"description":10,"slug":11,"order":12,"isParent":13,"icon":14,"_type":15,"_id":16,"_source":17,"_file":18,"_stem":19,"_extension":20,"children":21,"expanded":13},"/python-how-to/string-manipulation","python-how-to",false,"","String Manipulation","Learn essential string manipulation techniques in Python","string-manipulation",1,true,"pi pi-folder","markdown","content:python-how-to:1.string-manipulation.md","content","python-how-to/1.string-manipulation.md","python-how-to/1.string-manipulation","md",[22,31,40,49,58,67],{"_path":23,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":24,"description":25,"slug":26,"parentId":5,"order":27,"_type":15,"_id":28,"_source":17,"_file":29,"_stem":30,"_extension":20},"/python-how-to/split-join-strings","Split and Join Strings","Learn how to split strings into lists and join lists back into strings in Python","split-join-strings",2,"content:python-how-to:2.split-join-strings.md","python-how-to/2.split-join-strings.md","python-how-to/2.split-join-strings",{"_path":32,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":33,"description":34,"slug":35,"parentId":5,"order":36,"_type":15,"_id":37,"_source":17,"_file":38,"_stem":39,"_extension":20},"/python-how-to/remove-whitespace","Remove Whitespace","Learn how to clean up and remove unwanted whitespace from strings in Python","remove-whitespace",3,"content:python-how-to:3.remove-whitespace.md","python-how-to/3.remove-whitespace.md","python-how-to/3.remove-whitespace",{"_path":41,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":42,"description":43,"slug":44,"parentId":5,"order":45,"_type":15,"_id":46,"_source":17,"_file":47,"_stem":48,"_extension":20},"/python-how-to/find-replace-text","Find and Replace Text","Learn how to search for and replace text within strings in Python","find-replace-text",4,"content:python-how-to:4.find-replace-text.md","python-how-to/4.find-replace-text.md","python-how-to/4.find-replace-text",{"_path":50,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":51,"description":52,"slug":53,"parentId":5,"order":54,"_type":15,"_id":55,"_source":17,"_file":56,"_stem":57,"_extension":20},"/python-how-to/check-string-content","Check String Content","Learn how to validate and check the content of strings in Python","check-string-content",5,"content:python-how-to:5.check-string-content.md","python-how-to/5.check-string-content.md","python-how-to/5.check-string-content",{"_path":59,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":60,"description":61,"slug":62,"parentId":5,"order":63,"_type":15,"_id":64,"_source":17,"_file":65,"_stem":66,"_extension":20},"/python-how-to/format-strings","Format Strings","Learn how to format strings in Python using f-strings and format() method","format-strings",6,"content:python-how-to:6.format-strings.md","python-how-to/6.format-strings.md","python-how-to/6.format-strings",{"_path":68,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":69,"description":70,"slug":71,"parentId":5,"order":72,"_type":15,"_id":73,"_source":17,"_file":74,"_stem":75,"_extension":20},"/python-how-to/unicode-special-chars","Handle Unicode and Special Characters","Learn how to work with Unicode and special characters in Python strings","unicode-special-chars",7,"content:python-how-to:7.unicode-special-chars.md","python-how-to/7.unicode-special-chars.md","python-how-to/7.unicode-special-chars",{"_path":77,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":78,"description":79,"slug":80,"order":81,"isParent":13,"icon":14,"_type":15,"_id":82,"_source":17,"_file":83,"_stem":84,"_extension":20,"children":85,"expanded":13},"/python-how-to/list-operations","List Operations","Learn essential operations for working with lists in Python","list-operations",8,"content:python-how-to:8.list-operations.md","python-how-to/8.list-operations.md","python-how-to/8.list-operations",[86,94,103,112,121,130,139],{"_path":87,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":88,"description":89,"slug":90,"parentId":77,"order":81,"_type":15,"_id":91,"_source":17,"_file":92,"_stem":93,"_extension":20},"/python-how-to/sort-lists","Sort Lists","Learn how to sort lists in Python using different methods and custom sorting","sort-lists","content:python-how-to:9.sort-lists.md","python-how-to/9.sort-lists.md","python-how-to/9.sort-lists",{"_path":95,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":96,"description":97,"slug":98,"parentId":77,"order":99,"_type":15,"_id":100,"_source":17,"_file":101,"_stem":102,"_extension":20},"/python-how-to/remove-duplicates","Remove Duplicates","Learn how to remove duplicate elements from lists in Python","remove-duplicates",10,"content:python-how-to:10.remove-duplicates.md","python-how-to/10.remove-duplicates.md","python-how-to/10.remove-duplicates",{"_path":104,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":105,"description":106,"slug":107,"parentId":77,"order":108,"_type":15,"_id":109,"_source":17,"_file":110,"_stem":111,"_extension":20},"/python-how-to/filter-lists","Filter Lists","Learn how to filter lists in Python using different methods","filter-lists",11,"content:python-how-to:11.filter-lists.md","python-how-to/11.filter-lists.md","python-how-to/11.filter-lists",{"_path":113,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":114,"description":115,"slug":116,"parentId":77,"order":117,"_type":15,"_id":118,"_source":17,"_file":119,"_stem":120,"_extension":20},"/python-how-to/combine-lists","Combine Lists","Learn different methods to combine lists in Python","combine-lists",12,"content:python-how-to:12.combine-lists.md","python-how-to/12.combine-lists.md","python-how-to/12.combine-lists",{"_path":122,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":123,"description":124,"slug":125,"parentId":77,"order":126,"_type":15,"_id":127,"_source":17,"_file":128,"_stem":129,"_extension":20},"/python-how-to/list-comprehensions","Use List Comprehensions","Learn how to create and transform lists efficiently using Python's list comprehension syntax","list-comprehensions",13,"content:python-how-to:13.list-comprehensions.md","python-how-to/13.list-comprehensions.md","python-how-to/13.list-comprehensions",{"_path":131,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":132,"description":133,"slug":134,"parentId":77,"order":135,"_type":15,"_id":136,"_source":17,"_file":137,"_stem":138,"_extension":20},"/python-how-to/nested-lists","Work with Nested Lists","Learn how to work with nested lists (2D arrays) in Python","nested-lists",14,"content:python-how-to:14.nested-lists.md","python-how-to/14.nested-lists.md","python-how-to/14.nested-lists",{"_path":140,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":141,"description":142,"slug":143,"parentId":77,"order":144,"_type":15,"_id":145,"_source":17,"_file":146,"_stem":147,"_extension":20},"/python-how-to/enumerate-zip","Use enumerate() and zip()","Learn how to use enumerate() and zip() for efficient iteration in Python","enumerate-zip",15,"content:python-how-to:15.enumerate-zip.md","python-how-to/15.enumerate-zip.md","python-how-to/15.enumerate-zip",{"_path":149,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":150,"description":151,"slug":152,"order":153,"isParent":13,"icon":14,"_type":15,"_id":154,"_source":17,"_file":155,"_stem":156,"_extension":20,"children":157,"expanded":13},"/python-how-to/dictionary-operations","Dictionary Operations","Learn essential operations for working with dictionaries in Python","dictionary-operations",16,"content:python-how-to:16.dictionary-operations.md","python-how-to/16.dictionary-operations.md","python-how-to/16.dictionary-operations",[158,167,176,185,194,203],{"_path":159,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":160,"description":161,"slug":162,"parentId":149,"order":163,"_type":15,"_id":164,"_source":17,"_file":165,"_stem":166,"_extension":20},"/python-how-to/merge-dictionaries","Merge Dictionaries","Learn different methods to merge dictionaries in Python","merge-dictionaries",17,"content:python-how-to:17.merge-dictionaries.md","python-how-to/17.merge-dictionaries.md","python-how-to/17.merge-dictionaries",{"_path":168,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":169,"description":170,"slug":171,"parentId":149,"order":172,"_type":15,"_id":173,"_source":17,"_file":174,"_stem":175,"_extension":20},"/python-how-to/sort-dictionaries","Sort Dictionaries","Learn how to sort dictionaries by keys or values in Python","sort-dictionaries",18,"content:python-how-to:18.sort-dictionaries.md","python-how-to/18.sort-dictionaries.md","python-how-to/18.sort-dictionaries",{"_path":177,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":178,"description":179,"slug":180,"parentId":149,"order":181,"_type":15,"_id":182,"_source":17,"_file":183,"_stem":184,"_extension":20},"/python-how-to/filter-dictionaries","Filter Dictionaries","Learn how to filter dictionaries based on keys or values in Python","filter-dictionaries",19,"content:python-how-to:19.filter-dictionaries.md","python-how-to/19.filter-dictionaries.md","python-how-to/19.filter-dictionaries",{"_path":186,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":187,"description":188,"slug":189,"parentId":149,"order":190,"_type":15,"_id":191,"_source":17,"_file":192,"_stem":193,"_extension":20},"/python-how-to/handle-missing-keys","Handle Missing Keys","Learn safe ways to access dictionary keys and handle missing values","handle-missing-keys",20,"content:python-how-to:20.handle-missing-keys.md","python-how-to/20.handle-missing-keys.md","python-how-to/20.handle-missing-keys",{"_path":195,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":196,"description":197,"slug":198,"parentId":149,"order":199,"_type":15,"_id":200,"_source":17,"_file":201,"_stem":202,"_extension":20},"/python-how-to/dictionary-comprehensions","Use Dictionary Comprehensions","Learn how to create dictionaries efficiently using comprehensions","dictionary-comprehensions",21,"content:python-how-to:21.dictionary-comprehensions.md","python-how-to/21.dictionary-comprehensions.md","python-how-to/21.dictionary-comprehensions",{"_path":204,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":205,"description":206,"slug":207,"parentId":149,"order":208,"_type":15,"_id":209,"_source":17,"_file":210,"_stem":211,"_extension":20},"/python-how-to/convert-lists-dictionaries","Convert Between Lists and Dictionaries","Learn how to transform data between lists and dictionaries in Python","convert-lists-dictionaries",22,"content:python-how-to:22.convert-lists-dictionaries.md","python-how-to/22.convert-lists-dictionaries.md","python-how-to/22.convert-lists-dictionaries",{"_path":213,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":214,"description":215,"slug":216,"order":217,"isParent":13,"icon":14,"_type":15,"_id":218,"_source":17,"_file":219,"_stem":220,"_extension":20,"children":221,"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,"expanded":13},"/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",[58],{"_path":59,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":60,"description":61,"slug":62,"parentId":5,"order":63,"body":602,"_type":15,"_id":64,"_source":17,"_file":65,"_stem":66,"_extension":20},{"type":603,"children":604,"toc":3665},"root",[605,614,620,758,765,770,862,869,1210,1216,1462,1468,1473,1866,1872,1877,2426,2432,2437,2683,2689,3472,3478,3659],{"type":606,"tag":607,"props":608,"children":610},"element","h1",{"id":609},"formatting-strings",[611],{"type":612,"value":613},"text","🎨 Formatting Strings",{"type":606,"tag":615,"props":616,"children":617},"p",{},[618],{"type":612,"value":619},"Python offers multiple ways to format strings, with f-strings being the most modern and readable approach. String formatting is essential for creating dynamic output and combining text with variables.",{"type":606,"tag":621,"props":622,"children":623},"code-try",{},[624],{"type":606,"tag":625,"props":626,"children":630},"pre",{"className":627,"code":628,"language":629,"meta":8,"style":8},"language-python shiki shiki-themes github-light github-dark","# Basic string formatting\nname = \"Alice\"\nage = 25\nmessage = f\"{name} is {age} years old\"\nprint(message)\n","python",[631],{"type":606,"tag":632,"props":633,"children":634},"code",{"__ignoreMap":8},[635,646,667,685,745],{"type":606,"tag":636,"props":637,"children":639},"span",{"class":638,"line":12},"line",[640],{"type":606,"tag":636,"props":641,"children":643},{"style":642},"--shiki-default:#6A737D;--shiki-app-dark-mode:#6A737D",[644],{"type":612,"value":645},"# Basic string formatting\n",{"type":606,"tag":636,"props":647,"children":648},{"class":638,"line":27},[649,655,661],{"type":606,"tag":636,"props":650,"children":652},{"style":651},"--shiki-default:#24292E;--shiki-app-dark-mode:#E1E4E8",[653],{"type":612,"value":654},"name ",{"type":606,"tag":636,"props":656,"children":658},{"style":657},"--shiki-default:#D73A49;--shiki-app-dark-mode:#F97583",[659],{"type":612,"value":660},"=",{"type":606,"tag":636,"props":662,"children":664},{"style":663},"--shiki-default:#032F62;--shiki-app-dark-mode:#9ECBFF",[665],{"type":612,"value":666}," \"Alice\"\n",{"type":606,"tag":636,"props":668,"children":669},{"class":638,"line":36},[670,675,679],{"type":606,"tag":636,"props":671,"children":672},{"style":651},[673],{"type":612,"value":674},"age ",{"type":606,"tag":636,"props":676,"children":677},{"style":657},[678],{"type":612,"value":660},{"type":606,"tag":636,"props":680,"children":682},{"style":681},"--shiki-default:#005CC5;--shiki-app-dark-mode:#79B8FF",[683],{"type":612,"value":684}," 25\n",{"type":606,"tag":636,"props":686,"children":687},{"class":638,"line":45},[688,693,697,702,707,712,717,722,727,731,736,740],{"type":606,"tag":636,"props":689,"children":690},{"style":651},[691],{"type":612,"value":692},"message ",{"type":606,"tag":636,"props":694,"children":695},{"style":657},[696],{"type":612,"value":660},{"type":606,"tag":636,"props":698,"children":699},{"style":657},[700],{"type":612,"value":701}," f",{"type":606,"tag":636,"props":703,"children":704},{"style":663},[705],{"type":612,"value":706},"\"",{"type":606,"tag":636,"props":708,"children":709},{"style":681},[710],{"type":612,"value":711},"{",{"type":606,"tag":636,"props":713,"children":714},{"style":651},[715],{"type":612,"value":716},"name",{"type":606,"tag":636,"props":718,"children":719},{"style":681},[720],{"type":612,"value":721},"}",{"type":606,"tag":636,"props":723,"children":724},{"style":663},[725],{"type":612,"value":726}," is ",{"type":606,"tag":636,"props":728,"children":729},{"style":681},[730],{"type":612,"value":711},{"type":606,"tag":636,"props":732,"children":733},{"style":651},[734],{"type":612,"value":735},"age",{"type":606,"tag":636,"props":737,"children":738},{"style":681},[739],{"type":612,"value":721},{"type":606,"tag":636,"props":741,"children":742},{"style":663},[743],{"type":612,"value":744}," years old\"\n",{"type":606,"tag":636,"props":746,"children":747},{"class":638,"line":54},[748,753],{"type":606,"tag":636,"props":749,"children":750},{"style":681},[751],{"type":612,"value":752},"print",{"type":606,"tag":636,"props":754,"children":755},{"style":651},[756],{"type":612,"value":757},"(message)\n",{"type":606,"tag":759,"props":760,"children":762},"h2",{"id":761},"string-formatting-methods",[763],{"type":612,"value":764},"🎯 String Formatting Methods",{"type":606,"tag":615,"props":766,"children":767},{},[768],{"type":612,"value":769},"Python provides several methods for string formatting, each with its own use cases.",{"type":606,"tag":771,"props":772,"children":776},"info-box",{"emoji":773,"title":774,"type":775},"📝","String Formatting Methods","info",[777,786,819,827,852],{"type":606,"tag":615,"props":778,"children":779},{},[780],{"type":606,"tag":781,"props":782,"children":783},"strong",{},[784],{"type":612,"value":785},"Modern Methods:",{"type":606,"tag":787,"props":788,"children":789},"ul",{},[790,802],{"type":606,"tag":791,"props":792,"children":793},"li",{},[794,796],{"type":612,"value":795},"f-strings (Python 3.6+): ",{"type":606,"tag":632,"props":797,"children":799},{"className":798},[],[800],{"type":612,"value":801},"f\"Hello {name}\"",{"type":606,"tag":791,"props":803,"children":804},{},[805,811,813],{"type":606,"tag":632,"props":806,"children":808},{"className":807},[],[809],{"type":612,"value":810},".format()",{"type":612,"value":812}," method: ",{"type":606,"tag":632,"props":814,"children":816},{"className":815},[],[817],{"type":612,"value":818},"\"Hello {}\".format(name)",{"type":606,"tag":615,"props":820,"children":821},{},[822],{"type":606,"tag":781,"props":823,"children":824},{},[825],{"type":612,"value":826},"Legacy Methods:",{"type":606,"tag":787,"props":828,"children":829},{},[830,841],{"type":606,"tag":791,"props":831,"children":832},{},[833,835],{"type":612,"value":834},"%-formatting: ",{"type":606,"tag":632,"props":836,"children":838},{"className":837},[],[839],{"type":612,"value":840},"\"Hello %s\" % name",{"type":606,"tag":791,"props":842,"children":843},{},[844,846],{"type":612,"value":845},"Template strings: ",{"type":606,"tag":632,"props":847,"children":849},{"className":848},[],[850],{"type":612,"value":851},"Template(\"Hello $name\")",{"type":606,"tag":615,"props":853,"children":854},{},[855,860],{"type":606,"tag":781,"props":856,"children":857},{},[858],{"type":612,"value":859},"Best Practice:",{"type":612,"value":861}," Use f-strings for most cases!",{"type":606,"tag":863,"props":864,"children":866},"h3",{"id":865},"f-string-examples",[867],{"type":612,"value":868},"F-String Examples",{"type":606,"tag":621,"props":870,"children":871},{},[872],{"type":606,"tag":625,"props":873,"children":875},{"className":627,"code":874,"language":629,"meta":8,"style":8},"# F-string formatting examples\nname = \"Bob\"\nage = 30\nscore = 95.5\n\n# Basic variable insertion\nprint(f\"Name: {name}\")\n\n# Expressions\nprint(f\"Next year's age: {age + 1}\")\n\n# Formatting numbers\nprint(f\"Score: {score:.1f}%\")\n\n# Multiple variables\nprint(f\"{name} is {age} years old and scored {score:.1f}%\")\n",[876],{"type":606,"tag":632,"props":877,"children":878},{"__ignoreMap":8},[879,887,903,919,936,944,952,995,1002,1011,1057,1064,1072,1119,1126,1134],{"type":606,"tag":636,"props":880,"children":881},{"class":638,"line":12},[882],{"type":606,"tag":636,"props":883,"children":884},{"style":642},[885],{"type":612,"value":886},"# F-string formatting examples\n",{"type":606,"tag":636,"props":888,"children":889},{"class":638,"line":27},[890,894,898],{"type":606,"tag":636,"props":891,"children":892},{"style":651},[893],{"type":612,"value":654},{"type":606,"tag":636,"props":895,"children":896},{"style":657},[897],{"type":612,"value":660},{"type":606,"tag":636,"props":899,"children":900},{"style":663},[901],{"type":612,"value":902}," \"Bob\"\n",{"type":606,"tag":636,"props":904,"children":905},{"class":638,"line":36},[906,910,914],{"type":606,"tag":636,"props":907,"children":908},{"style":651},[909],{"type":612,"value":674},{"type":606,"tag":636,"props":911,"children":912},{"style":657},[913],{"type":612,"value":660},{"type":606,"tag":636,"props":915,"children":916},{"style":681},[917],{"type":612,"value":918}," 30\n",{"type":606,"tag":636,"props":920,"children":921},{"class":638,"line":45},[922,927,931],{"type":606,"tag":636,"props":923,"children":924},{"style":651},[925],{"type":612,"value":926},"score ",{"type":606,"tag":636,"props":928,"children":929},{"style":657},[930],{"type":612,"value":660},{"type":606,"tag":636,"props":932,"children":933},{"style":681},[934],{"type":612,"value":935}," 95.5\n",{"type":606,"tag":636,"props":937,"children":938},{"class":638,"line":54},[939],{"type":606,"tag":636,"props":940,"children":941},{"emptyLinePlaceholder":13},[942],{"type":612,"value":943},"\n",{"type":606,"tag":636,"props":945,"children":946},{"class":638,"line":63},[947],{"type":606,"tag":636,"props":948,"children":949},{"style":642},[950],{"type":612,"value":951},"# Basic variable insertion\n",{"type":606,"tag":636,"props":953,"children":954},{"class":638,"line":72},[955,959,964,969,974,978,982,986,990],{"type":606,"tag":636,"props":956,"children":957},{"style":681},[958],{"type":612,"value":752},{"type":606,"tag":636,"props":960,"children":961},{"style":651},[962],{"type":612,"value":963},"(",{"type":606,"tag":636,"props":965,"children":966},{"style":657},[967],{"type":612,"value":968},"f",{"type":606,"tag":636,"props":970,"children":971},{"style":663},[972],{"type":612,"value":973},"\"Name: ",{"type":606,"tag":636,"props":975,"children":976},{"style":681},[977],{"type":612,"value":711},{"type":606,"tag":636,"props":979,"children":980},{"style":651},[981],{"type":612,"value":716},{"type":606,"tag":636,"props":983,"children":984},{"style":681},[985],{"type":612,"value":721},{"type":606,"tag":636,"props":987,"children":988},{"style":663},[989],{"type":612,"value":706},{"type":606,"tag":636,"props":991,"children":992},{"style":651},[993],{"type":612,"value":994},")\n",{"type":606,"tag":636,"props":996,"children":997},{"class":638,"line":81},[998],{"type":606,"tag":636,"props":999,"children":1000},{"emptyLinePlaceholder":13},[1001],{"type":612,"value":943},{"type":606,"tag":636,"props":1003,"children":1005},{"class":638,"line":1004},9,[1006],{"type":606,"tag":636,"props":1007,"children":1008},{"style":642},[1009],{"type":612,"value":1010},"# Expressions\n",{"type":606,"tag":636,"props":1012,"children":1013},{"class":638,"line":99},[1014,1018,1022,1026,1031,1035,1039,1044,1049,1053],{"type":606,"tag":636,"props":1015,"children":1016},{"style":681},[1017],{"type":612,"value":752},{"type":606,"tag":636,"props":1019,"children":1020},{"style":651},[1021],{"type":612,"value":963},{"type":606,"tag":636,"props":1023,"children":1024},{"style":657},[1025],{"type":612,"value":968},{"type":606,"tag":636,"props":1027,"children":1028},{"style":663},[1029],{"type":612,"value":1030},"\"Next year's age: ",{"type":606,"tag":636,"props":1032,"children":1033},{"style":681},[1034],{"type":612,"value":711},{"type":606,"tag":636,"props":1036,"children":1037},{"style":651},[1038],{"type":612,"value":674},{"type":606,"tag":636,"props":1040,"children":1041},{"style":657},[1042],{"type":612,"value":1043},"+",{"type":606,"tag":636,"props":1045,"children":1046},{"style":681},[1047],{"type":612,"value":1048}," 1}",{"type":606,"tag":636,"props":1050,"children":1051},{"style":663},[1052],{"type":612,"value":706},{"type":606,"tag":636,"props":1054,"children":1055},{"style":651},[1056],{"type":612,"value":994},{"type":606,"tag":636,"props":1058,"children":1059},{"class":638,"line":108},[1060],{"type":606,"tag":636,"props":1061,"children":1062},{"emptyLinePlaceholder":13},[1063],{"type":612,"value":943},{"type":606,"tag":636,"props":1065,"children":1066},{"class":638,"line":117},[1067],{"type":606,"tag":636,"props":1068,"children":1069},{"style":642},[1070],{"type":612,"value":1071},"# Formatting numbers\n",{"type":606,"tag":636,"props":1073,"children":1074},{"class":638,"line":126},[1075,1079,1083,1087,1092,1096,1101,1106,1110,1115],{"type":606,"tag":636,"props":1076,"children":1077},{"style":681},[1078],{"type":612,"value":752},{"type":606,"tag":636,"props":1080,"children":1081},{"style":651},[1082],{"type":612,"value":963},{"type":606,"tag":636,"props":1084,"children":1085},{"style":657},[1086],{"type":612,"value":968},{"type":606,"tag":636,"props":1088,"children":1089},{"style":663},[1090],{"type":612,"value":1091},"\"Score: ",{"type":606,"tag":636,"props":1093,"children":1094},{"style":681},[1095],{"type":612,"value":711},{"type":606,"tag":636,"props":1097,"children":1098},{"style":651},[1099],{"type":612,"value":1100},"score",{"type":606,"tag":636,"props":1102,"children":1103},{"style":657},[1104],{"type":612,"value":1105},":.1f",{"type":606,"tag":636,"props":1107,"children":1108},{"style":681},[1109],{"type":612,"value":721},{"type":606,"tag":636,"props":1111,"children":1112},{"style":663},[1113],{"type":612,"value":1114},"%\"",{"type":606,"tag":636,"props":1116,"children":1117},{"style":651},[1118],{"type":612,"value":994},{"type":606,"tag":636,"props":1120,"children":1121},{"class":638,"line":135},[1122],{"type":606,"tag":636,"props":1123,"children":1124},{"emptyLinePlaceholder":13},[1125],{"type":612,"value":943},{"type":606,"tag":636,"props":1127,"children":1128},{"class":638,"line":144},[1129],{"type":606,"tag":636,"props":1130,"children":1131},{"style":642},[1132],{"type":612,"value":1133},"# Multiple variables\n",{"type":606,"tag":636,"props":1135,"children":1136},{"class":638,"line":153},[1137,1141,1145,1149,1153,1157,1161,1165,1169,1173,1177,1181,1186,1190,1194,1198,1202,1206],{"type":606,"tag":636,"props":1138,"children":1139},{"style":681},[1140],{"type":612,"value":752},{"type":606,"tag":636,"props":1142,"children":1143},{"style":651},[1144],{"type":612,"value":963},{"type":606,"tag":636,"props":1146,"children":1147},{"style":657},[1148],{"type":612,"value":968},{"type":606,"tag":636,"props":1150,"children":1151},{"style":663},[1152],{"type":612,"value":706},{"type":606,"tag":636,"props":1154,"children":1155},{"style":681},[1156],{"type":612,"value":711},{"type":606,"tag":636,"props":1158,"children":1159},{"style":651},[1160],{"type":612,"value":716},{"type":606,"tag":636,"props":1162,"children":1163},{"style":681},[1164],{"type":612,"value":721},{"type":606,"tag":636,"props":1166,"children":1167},{"style":663},[1168],{"type":612,"value":726},{"type":606,"tag":636,"props":1170,"children":1171},{"style":681},[1172],{"type":612,"value":711},{"type":606,"tag":636,"props":1174,"children":1175},{"style":651},[1176],{"type":612,"value":735},{"type":606,"tag":636,"props":1178,"children":1179},{"style":681},[1180],{"type":612,"value":721},{"type":606,"tag":636,"props":1182,"children":1183},{"style":663},[1184],{"type":612,"value":1185}," years old and scored ",{"type":606,"tag":636,"props":1187,"children":1188},{"style":681},[1189],{"type":612,"value":711},{"type":606,"tag":636,"props":1191,"children":1192},{"style":651},[1193],{"type":612,"value":1100},{"type":606,"tag":636,"props":1195,"children":1196},{"style":657},[1197],{"type":612,"value":1105},{"type":606,"tag":636,"props":1199,"children":1200},{"style":681},[1201],{"type":612,"value":721},{"type":606,"tag":636,"props":1203,"children":1204},{"style":663},[1205],{"type":612,"value":1114},{"type":606,"tag":636,"props":1207,"children":1208},{"style":651},[1209],{"type":612,"value":994},{"type":606,"tag":863,"props":1211,"children":1213},{"id":1212},"format-method-examples",[1214],{"type":612,"value":1215},"Format Method Examples",{"type":606,"tag":621,"props":1217,"children":1218},{},[1219],{"type":606,"tag":625,"props":1220,"children":1222},{"className":627,"code":1221,"language":629,"meta":8,"style":8},"# Format method examples\nname = \"Charlie\"\nage = 35\n\n# Positional arguments\nprint(\"{} is {} years old\".format(name, age))\n\n# Named arguments\nprint(\"{n} is {a} years old\".format(n=name, a=age))\n\n# Format specifiers\nprint(\"Age: {:.1f}\".format(35.0))\n",[1223],{"type":606,"tag":632,"props":1224,"children":1225},{"__ignoreMap":8},[1226,1234,1250,1266,1273,1281,1319,1326,1334,1401,1408,1416],{"type":606,"tag":636,"props":1227,"children":1228},{"class":638,"line":12},[1229],{"type":606,"tag":636,"props":1230,"children":1231},{"style":642},[1232],{"type":612,"value":1233},"# Format method examples\n",{"type":606,"tag":636,"props":1235,"children":1236},{"class":638,"line":27},[1237,1241,1245],{"type":606,"tag":636,"props":1238,"children":1239},{"style":651},[1240],{"type":612,"value":654},{"type":606,"tag":636,"props":1242,"children":1243},{"style":657},[1244],{"type":612,"value":660},{"type":606,"tag":636,"props":1246,"children":1247},{"style":663},[1248],{"type":612,"value":1249}," \"Charlie\"\n",{"type":606,"tag":636,"props":1251,"children":1252},{"class":638,"line":36},[1253,1257,1261],{"type":606,"tag":636,"props":1254,"children":1255},{"style":651},[1256],{"type":612,"value":674},{"type":606,"tag":636,"props":1258,"children":1259},{"style":657},[1260],{"type":612,"value":660},{"type":606,"tag":636,"props":1262,"children":1263},{"style":681},[1264],{"type":612,"value":1265}," 35\n",{"type":606,"tag":636,"props":1267,"children":1268},{"class":638,"line":45},[1269],{"type":606,"tag":636,"props":1270,"children":1271},{"emptyLinePlaceholder":13},[1272],{"type":612,"value":943},{"type":606,"tag":636,"props":1274,"children":1275},{"class":638,"line":54},[1276],{"type":606,"tag":636,"props":1277,"children":1278},{"style":642},[1279],{"type":612,"value":1280},"# Positional arguments\n",{"type":606,"tag":636,"props":1282,"children":1283},{"class":638,"line":63},[1284,1288,1292,1296,1301,1305,1309,1314],{"type":606,"tag":636,"props":1285,"children":1286},{"style":681},[1287],{"type":612,"value":752},{"type":606,"tag":636,"props":1289,"children":1290},{"style":651},[1291],{"type":612,"value":963},{"type":606,"tag":636,"props":1293,"children":1294},{"style":663},[1295],{"type":612,"value":706},{"type":606,"tag":636,"props":1297,"children":1298},{"style":681},[1299],{"type":612,"value":1300},"{}",{"type":606,"tag":636,"props":1302,"children":1303},{"style":663},[1304],{"type":612,"value":726},{"type":606,"tag":636,"props":1306,"children":1307},{"style":681},[1308],{"type":612,"value":1300},{"type":606,"tag":636,"props":1310,"children":1311},{"style":663},[1312],{"type":612,"value":1313}," years old\"",{"type":606,"tag":636,"props":1315,"children":1316},{"style":651},[1317],{"type":612,"value":1318},".format(name, age))\n",{"type":606,"tag":636,"props":1320,"children":1321},{"class":638,"line":72},[1322],{"type":606,"tag":636,"props":1323,"children":1324},{"emptyLinePlaceholder":13},[1325],{"type":612,"value":943},{"type":606,"tag":636,"props":1327,"children":1328},{"class":638,"line":81},[1329],{"type":606,"tag":636,"props":1330,"children":1331},{"style":642},[1332],{"type":612,"value":1333},"# Named arguments\n",{"type":606,"tag":636,"props":1335,"children":1336},{"class":638,"line":1004},[1337,1341,1345,1349,1354,1358,1363,1367,1372,1378,1382,1387,1392,1396],{"type":606,"tag":636,"props":1338,"children":1339},{"style":681},[1340],{"type":612,"value":752},{"type":606,"tag":636,"props":1342,"children":1343},{"style":651},[1344],{"type":612,"value":963},{"type":606,"tag":636,"props":1346,"children":1347},{"style":663},[1348],{"type":612,"value":706},{"type":606,"tag":636,"props":1350,"children":1351},{"style":681},[1352],{"type":612,"value":1353},"{n}",{"type":606,"tag":636,"props":1355,"children":1356},{"style":663},[1357],{"type":612,"value":726},{"type":606,"tag":636,"props":1359,"children":1360},{"style":681},[1361],{"type":612,"value":1362},"{a}",{"type":606,"tag":636,"props":1364,"children":1365},{"style":663},[1366],{"type":612,"value":1313},{"type":606,"tag":636,"props":1368,"children":1369},{"style":651},[1370],{"type":612,"value":1371},".format(",{"type":606,"tag":636,"props":1373,"children":1375},{"style":1374},"--shiki-default:#E36209;--shiki-app-dark-mode:#FFAB70",[1376],{"type":612,"value":1377},"n",{"type":606,"tag":636,"props":1379,"children":1380},{"style":657},[1381],{"type":612,"value":660},{"type":606,"tag":636,"props":1383,"children":1384},{"style":651},[1385],{"type":612,"value":1386},"name, ",{"type":606,"tag":636,"props":1388,"children":1389},{"style":1374},[1390],{"type":612,"value":1391},"a",{"type":606,"tag":636,"props":1393,"children":1394},{"style":657},[1395],{"type":612,"value":660},{"type":606,"tag":636,"props":1397,"children":1398},{"style":651},[1399],{"type":612,"value":1400},"age))\n",{"type":606,"tag":636,"props":1402,"children":1403},{"class":638,"line":99},[1404],{"type":606,"tag":636,"props":1405,"children":1406},{"emptyLinePlaceholder":13},[1407],{"type":612,"value":943},{"type":606,"tag":636,"props":1409,"children":1410},{"class":638,"line":108},[1411],{"type":606,"tag":636,"props":1412,"children":1413},{"style":642},[1414],{"type":612,"value":1415},"# Format specifiers\n",{"type":606,"tag":636,"props":1417,"children":1418},{"class":638,"line":117},[1419,1423,1427,1432,1436,1440,1444,1448,1452,1457],{"type":606,"tag":636,"props":1420,"children":1421},{"style":681},[1422],{"type":612,"value":752},{"type":606,"tag":636,"props":1424,"children":1425},{"style":651},[1426],{"type":612,"value":963},{"type":606,"tag":636,"props":1428,"children":1429},{"style":663},[1430],{"type":612,"value":1431},"\"Age: ",{"type":606,"tag":636,"props":1433,"children":1434},{"style":681},[1435],{"type":612,"value":711},{"type":606,"tag":636,"props":1437,"children":1438},{"style":657},[1439],{"type":612,"value":1105},{"type":606,"tag":636,"props":1441,"children":1442},{"style":681},[1443],{"type":612,"value":721},{"type":606,"tag":636,"props":1445,"children":1446},{"style":663},[1447],{"type":612,"value":706},{"type":606,"tag":636,"props":1449,"children":1450},{"style":651},[1451],{"type":612,"value":1371},{"type":606,"tag":636,"props":1453,"children":1454},{"style":681},[1455],{"type":612,"value":1456},"35.0",{"type":606,"tag":636,"props":1458,"children":1459},{"style":651},[1460],{"type":612,"value":1461},"))\n",{"type":606,"tag":759,"props":1463,"children":1465},{"id":1464},"format-specifiers",[1466],{"type":612,"value":1467},"🔍 Format Specifiers",{"type":606,"tag":615,"props":1469,"children":1470},{},[1471],{"type":612,"value":1472},"Format specifiers control how values are displayed in formatted strings.",{"type":606,"tag":621,"props":1474,"children":1475},{},[1476],{"type":606,"tag":625,"props":1477,"children":1479},{"className":627,"code":1478,"language":629,"meta":8,"style":8},"# Format specifier examples\nnumber = 123.456789\n\n# Different number formats\nprint(f\"Default: {number}\")\nprint(f\"2 decimal places: {number:.2f}\")\nprint(f\"Scientific: {number:e}\")\nprint(f\"Percentage: {number:.1%}\")\n\n# String formatting\ntext = \"Python\"\nprint(f\"Left aligned: {text:\u003C10}\")\nprint(f\"Right aligned: {text:>10}\")\nprint(f\"Centered: {text:^10}\")\n",[1480],{"type":606,"tag":632,"props":1481,"children":1482},{"__ignoreMap":8},[1483,1491,1508,1515,1523,1564,1609,1654,1699,1706,1714,1731,1776,1821],{"type":606,"tag":636,"props":1484,"children":1485},{"class":638,"line":12},[1486],{"type":606,"tag":636,"props":1487,"children":1488},{"style":642},[1489],{"type":612,"value":1490},"# Format specifier examples\n",{"type":606,"tag":636,"props":1492,"children":1493},{"class":638,"line":27},[1494,1499,1503],{"type":606,"tag":636,"props":1495,"children":1496},{"style":651},[1497],{"type":612,"value":1498},"number ",{"type":606,"tag":636,"props":1500,"children":1501},{"style":657},[1502],{"type":612,"value":660},{"type":606,"tag":636,"props":1504,"children":1505},{"style":681},[1506],{"type":612,"value":1507}," 123.456789\n",{"type":606,"tag":636,"props":1509,"children":1510},{"class":638,"line":36},[1511],{"type":606,"tag":636,"props":1512,"children":1513},{"emptyLinePlaceholder":13},[1514],{"type":612,"value":943},{"type":606,"tag":636,"props":1516,"children":1517},{"class":638,"line":45},[1518],{"type":606,"tag":636,"props":1519,"children":1520},{"style":642},[1521],{"type":612,"value":1522},"# Different number formats\n",{"type":606,"tag":636,"props":1524,"children":1525},{"class":638,"line":54},[1526,1530,1534,1538,1543,1547,1552,1556,1560],{"type":606,"tag":636,"props":1527,"children":1528},{"style":681},[1529],{"type":612,"value":752},{"type":606,"tag":636,"props":1531,"children":1532},{"style":651},[1533],{"type":612,"value":963},{"type":606,"tag":636,"props":1535,"children":1536},{"style":657},[1537],{"type":612,"value":968},{"type":606,"tag":636,"props":1539,"children":1540},{"style":663},[1541],{"type":612,"value":1542},"\"Default: ",{"type":606,"tag":636,"props":1544,"children":1545},{"style":681},[1546],{"type":612,"value":711},{"type":606,"tag":636,"props":1548,"children":1549},{"style":651},[1550],{"type":612,"value":1551},"number",{"type":606,"tag":636,"props":1553,"children":1554},{"style":681},[1555],{"type":612,"value":721},{"type":606,"tag":636,"props":1557,"children":1558},{"style":663},[1559],{"type":612,"value":706},{"type":606,"tag":636,"props":1561,"children":1562},{"style":651},[1563],{"type":612,"value":994},{"type":606,"tag":636,"props":1565,"children":1566},{"class":638,"line":63},[1567,1571,1575,1579,1584,1588,1592,1597,1601,1605],{"type":606,"tag":636,"props":1568,"children":1569},{"style":681},[1570],{"type":612,"value":752},{"type":606,"tag":636,"props":1572,"children":1573},{"style":651},[1574],{"type":612,"value":963},{"type":606,"tag":636,"props":1576,"children":1577},{"style":657},[1578],{"type":612,"value":968},{"type":606,"tag":636,"props":1580,"children":1581},{"style":663},[1582],{"type":612,"value":1583},"\"2 decimal places: ",{"type":606,"tag":636,"props":1585,"children":1586},{"style":681},[1587],{"type":612,"value":711},{"type":606,"tag":636,"props":1589,"children":1590},{"style":651},[1591],{"type":612,"value":1551},{"type":606,"tag":636,"props":1593,"children":1594},{"style":657},[1595],{"type":612,"value":1596},":.2f",{"type":606,"tag":636,"props":1598,"children":1599},{"style":681},[1600],{"type":612,"value":721},{"type":606,"tag":636,"props":1602,"children":1603},{"style":663},[1604],{"type":612,"value":706},{"type":606,"tag":636,"props":1606,"children":1607},{"style":651},[1608],{"type":612,"value":994},{"type":606,"tag":636,"props":1610,"children":1611},{"class":638,"line":72},[1612,1616,1620,1624,1629,1633,1637,1642,1646,1650],{"type":606,"tag":636,"props":1613,"children":1614},{"style":681},[1615],{"type":612,"value":752},{"type":606,"tag":636,"props":1617,"children":1618},{"style":651},[1619],{"type":612,"value":963},{"type":606,"tag":636,"props":1621,"children":1622},{"style":657},[1623],{"type":612,"value":968},{"type":606,"tag":636,"props":1625,"children":1626},{"style":663},[1627],{"type":612,"value":1628},"\"Scientific: ",{"type":606,"tag":636,"props":1630,"children":1631},{"style":681},[1632],{"type":612,"value":711},{"type":606,"tag":636,"props":1634,"children":1635},{"style":651},[1636],{"type":612,"value":1551},{"type":606,"tag":636,"props":1638,"children":1639},{"style":657},[1640],{"type":612,"value":1641},":e",{"type":606,"tag":636,"props":1643,"children":1644},{"style":681},[1645],{"type":612,"value":721},{"type":606,"tag":636,"props":1647,"children":1648},{"style":663},[1649],{"type":612,"value":706},{"type":606,"tag":636,"props":1651,"children":1652},{"style":651},[1653],{"type":612,"value":994},{"type":606,"tag":636,"props":1655,"children":1656},{"class":638,"line":81},[1657,1661,1665,1669,1674,1678,1682,1687,1691,1695],{"type":606,"tag":636,"props":1658,"children":1659},{"style":681},[1660],{"type":612,"value":752},{"type":606,"tag":636,"props":1662,"children":1663},{"style":651},[1664],{"type":612,"value":963},{"type":606,"tag":636,"props":1666,"children":1667},{"style":657},[1668],{"type":612,"value":968},{"type":606,"tag":636,"props":1670,"children":1671},{"style":663},[1672],{"type":612,"value":1673},"\"Percentage: ",{"type":606,"tag":636,"props":1675,"children":1676},{"style":681},[1677],{"type":612,"value":711},{"type":606,"tag":636,"props":1679,"children":1680},{"style":651},[1681],{"type":612,"value":1551},{"type":606,"tag":636,"props":1683,"children":1684},{"style":657},[1685],{"type":612,"value":1686},":.1%",{"type":606,"tag":636,"props":1688,"children":1689},{"style":681},[1690],{"type":612,"value":721},{"type":606,"tag":636,"props":1692,"children":1693},{"style":663},[1694],{"type":612,"value":706},{"type":606,"tag":636,"props":1696,"children":1697},{"style":651},[1698],{"type":612,"value":994},{"type":606,"tag":636,"props":1700,"children":1701},{"class":638,"line":1004},[1702],{"type":606,"tag":636,"props":1703,"children":1704},{"emptyLinePlaceholder":13},[1705],{"type":612,"value":943},{"type":606,"tag":636,"props":1707,"children":1708},{"class":638,"line":99},[1709],{"type":606,"tag":636,"props":1710,"children":1711},{"style":642},[1712],{"type":612,"value":1713},"# String formatting\n",{"type":606,"tag":636,"props":1715,"children":1716},{"class":638,"line":108},[1717,1722,1726],{"type":606,"tag":636,"props":1718,"children":1719},{"style":651},[1720],{"type":612,"value":1721},"text ",{"type":606,"tag":636,"props":1723,"children":1724},{"style":657},[1725],{"type":612,"value":660},{"type":606,"tag":636,"props":1727,"children":1728},{"style":663},[1729],{"type":612,"value":1730}," \"Python\"\n",{"type":606,"tag":636,"props":1732,"children":1733},{"class":638,"line":117},[1734,1738,1742,1746,1751,1755,1759,1764,1768,1772],{"type":606,"tag":636,"props":1735,"children":1736},{"style":681},[1737],{"type":612,"value":752},{"type":606,"tag":636,"props":1739,"children":1740},{"style":651},[1741],{"type":612,"value":963},{"type":606,"tag":636,"props":1743,"children":1744},{"style":657},[1745],{"type":612,"value":968},{"type":606,"tag":636,"props":1747,"children":1748},{"style":663},[1749],{"type":612,"value":1750},"\"Left aligned: ",{"type":606,"tag":636,"props":1752,"children":1753},{"style":681},[1754],{"type":612,"value":711},{"type":606,"tag":636,"props":1756,"children":1757},{"style":651},[1758],{"type":612,"value":612},{"type":606,"tag":636,"props":1760,"children":1761},{"style":657},[1762],{"type":612,"value":1763},":\u003C10",{"type":606,"tag":636,"props":1765,"children":1766},{"style":681},[1767],{"type":612,"value":721},{"type":606,"tag":636,"props":1769,"children":1770},{"style":663},[1771],{"type":612,"value":706},{"type":606,"tag":636,"props":1773,"children":1774},{"style":651},[1775],{"type":612,"value":994},{"type":606,"tag":636,"props":1777,"children":1778},{"class":638,"line":126},[1779,1783,1787,1791,1796,1800,1804,1809,1813,1817],{"type":606,"tag":636,"props":1780,"children":1781},{"style":681},[1782],{"type":612,"value":752},{"type":606,"tag":636,"props":1784,"children":1785},{"style":651},[1786],{"type":612,"value":963},{"type":606,"tag":636,"props":1788,"children":1789},{"style":657},[1790],{"type":612,"value":968},{"type":606,"tag":636,"props":1792,"children":1793},{"style":663},[1794],{"type":612,"value":1795},"\"Right aligned: ",{"type":606,"tag":636,"props":1797,"children":1798},{"style":681},[1799],{"type":612,"value":711},{"type":606,"tag":636,"props":1801,"children":1802},{"style":651},[1803],{"type":612,"value":612},{"type":606,"tag":636,"props":1805,"children":1806},{"style":657},[1807],{"type":612,"value":1808},":>10",{"type":606,"tag":636,"props":1810,"children":1811},{"style":681},[1812],{"type":612,"value":721},{"type":606,"tag":636,"props":1814,"children":1815},{"style":663},[1816],{"type":612,"value":706},{"type":606,"tag":636,"props":1818,"children":1819},{"style":651},[1820],{"type":612,"value":994},{"type":606,"tag":636,"props":1822,"children":1823},{"class":638,"line":135},[1824,1828,1832,1836,1841,1845,1849,1854,1858,1862],{"type":606,"tag":636,"props":1825,"children":1826},{"style":681},[1827],{"type":612,"value":752},{"type":606,"tag":636,"props":1829,"children":1830},{"style":651},[1831],{"type":612,"value":963},{"type":606,"tag":636,"props":1833,"children":1834},{"style":657},[1835],{"type":612,"value":968},{"type":606,"tag":636,"props":1837,"children":1838},{"style":663},[1839],{"type":612,"value":1840},"\"Centered: ",{"type":606,"tag":636,"props":1842,"children":1843},{"style":681},[1844],{"type":612,"value":711},{"type":606,"tag":636,"props":1846,"children":1847},{"style":651},[1848],{"type":612,"value":612},{"type":606,"tag":636,"props":1850,"children":1851},{"style":657},[1852],{"type":612,"value":1853},":^10",{"type":606,"tag":636,"props":1855,"children":1856},{"style":681},[1857],{"type":612,"value":721},{"type":606,"tag":636,"props":1859,"children":1860},{"style":663},[1861],{"type":612,"value":706},{"type":606,"tag":636,"props":1863,"children":1864},{"style":651},[1865],{"type":612,"value":994},{"type":606,"tag":759,"props":1867,"children":1869},{"id":1868},"common-use-cases",[1870],{"type":612,"value":1871},"🎨 Common Use Cases",{"type":606,"tag":615,"props":1873,"children":1874},{},[1875],{"type":612,"value":1876},"Here are some practical examples of string formatting.",{"type":606,"tag":621,"props":1878,"children":1879},{},[1880],{"type":606,"tag":625,"props":1881,"children":1883},{"className":627,"code":1882,"language":629,"meta":8,"style":8},"# 1. Creating a table\ndef print_table(data):\n    for name, score in data:\n        print(f\"{name:\u003C10} | {score:>5.1f}%\")\n\n# 2. Formatting currency\ndef format_price(amount):\n    return f\"${amount:,.2f}\"\n\n# 3. Creating a progress bar\ndef progress_bar(current, total):\n    percentage = current / total * 100\n    return f\"[{'=' * int(percentage/10)}{' ' * (10-int(percentage/10))}] {percentage:.1f}%\"\n\n# Test the functions\nscores = [(\"Alice\", 95.5), (\"Bob\", 88.0), (\"Charlie\", 92.5)]\nprint_table(scores)\nprint(format_price(1234.56))\nprint(progress_bar(7, 10))\n",[1884],{"type":606,"tag":632,"props":1885,"children":1886},{"__ignoreMap":8},[1887,1895,1914,1937,2003,2010,2018,2035,2075,2082,2090,2107,2144,2279,2286,2294,2368,2376,2397],{"type":606,"tag":636,"props":1888,"children":1889},{"class":638,"line":12},[1890],{"type":606,"tag":636,"props":1891,"children":1892},{"style":642},[1893],{"type":612,"value":1894},"# 1. Creating a table\n",{"type":606,"tag":636,"props":1896,"children":1897},{"class":638,"line":27},[1898,1903,1909],{"type":606,"tag":636,"props":1899,"children":1900},{"style":657},[1901],{"type":612,"value":1902},"def",{"type":606,"tag":636,"props":1904,"children":1906},{"style":1905},"--shiki-default:#6F42C1;--shiki-app-dark-mode:#B392F0",[1907],{"type":612,"value":1908}," print_table",{"type":606,"tag":636,"props":1910,"children":1911},{"style":651},[1912],{"type":612,"value":1913},"(data):\n",{"type":606,"tag":636,"props":1915,"children":1916},{"class":638,"line":36},[1917,1922,1927,1932],{"type":606,"tag":636,"props":1918,"children":1919},{"style":657},[1920],{"type":612,"value":1921},"    for",{"type":606,"tag":636,"props":1923,"children":1924},{"style":651},[1925],{"type":612,"value":1926}," name, score ",{"type":606,"tag":636,"props":1928,"children":1929},{"style":657},[1930],{"type":612,"value":1931},"in",{"type":606,"tag":636,"props":1933,"children":1934},{"style":651},[1935],{"type":612,"value":1936}," data:\n",{"type":606,"tag":636,"props":1938,"children":1939},{"class":638,"line":45},[1940,1945,1949,1953,1957,1961,1965,1969,1973,1978,1982,1986,1991,1995,1999],{"type":606,"tag":636,"props":1941,"children":1942},{"style":681},[1943],{"type":612,"value":1944},"        print",{"type":606,"tag":636,"props":1946,"children":1947},{"style":651},[1948],{"type":612,"value":963},{"type":606,"tag":636,"props":1950,"children":1951},{"style":657},[1952],{"type":612,"value":968},{"type":606,"tag":636,"props":1954,"children":1955},{"style":663},[1956],{"type":612,"value":706},{"type":606,"tag":636,"props":1958,"children":1959},{"style":681},[1960],{"type":612,"value":711},{"type":606,"tag":636,"props":1962,"children":1963},{"style":651},[1964],{"type":612,"value":716},{"type":606,"tag":636,"props":1966,"children":1967},{"style":657},[1968],{"type":612,"value":1763},{"type":606,"tag":636,"props":1970,"children":1971},{"style":681},[1972],{"type":612,"value":721},{"type":606,"tag":636,"props":1974,"children":1975},{"style":663},[1976],{"type":612,"value":1977}," | ",{"type":606,"tag":636,"props":1979,"children":1980},{"style":681},[1981],{"type":612,"value":711},{"type":606,"tag":636,"props":1983,"children":1984},{"style":651},[1985],{"type":612,"value":1100},{"type":606,"tag":636,"props":1987,"children":1988},{"style":657},[1989],{"type":612,"value":1990},":>5.1f",{"type":606,"tag":636,"props":1992,"children":1993},{"style":681},[1994],{"type":612,"value":721},{"type":606,"tag":636,"props":1996,"children":1997},{"style":663},[1998],{"type":612,"value":1114},{"type":606,"tag":636,"props":2000,"children":2001},{"style":651},[2002],{"type":612,"value":994},{"type":606,"tag":636,"props":2004,"children":2005},{"class":638,"line":54},[2006],{"type":606,"tag":636,"props":2007,"children":2008},{"emptyLinePlaceholder":13},[2009],{"type":612,"value":943},{"type":606,"tag":636,"props":2011,"children":2012},{"class":638,"line":63},[2013],{"type":606,"tag":636,"props":2014,"children":2015},{"style":642},[2016],{"type":612,"value":2017},"# 2. Formatting currency\n",{"type":606,"tag":636,"props":2019,"children":2020},{"class":638,"line":72},[2021,2025,2030],{"type":606,"tag":636,"props":2022,"children":2023},{"style":657},[2024],{"type":612,"value":1902},{"type":606,"tag":636,"props":2026,"children":2027},{"style":1905},[2028],{"type":612,"value":2029}," format_price",{"type":606,"tag":636,"props":2031,"children":2032},{"style":651},[2033],{"type":612,"value":2034},"(amount):\n",{"type":606,"tag":636,"props":2036,"children":2037},{"class":638,"line":81},[2038,2043,2047,2052,2056,2061,2066,2070],{"type":606,"tag":636,"props":2039,"children":2040},{"style":657},[2041],{"type":612,"value":2042},"    return",{"type":606,"tag":636,"props":2044,"children":2045},{"style":657},[2046],{"type":612,"value":701},{"type":606,"tag":636,"props":2048,"children":2049},{"style":663},[2050],{"type":612,"value":2051},"\"$",{"type":606,"tag":636,"props":2053,"children":2054},{"style":681},[2055],{"type":612,"value":711},{"type":606,"tag":636,"props":2057,"children":2058},{"style":651},[2059],{"type":612,"value":2060},"amount",{"type":606,"tag":636,"props":2062,"children":2063},{"style":657},[2064],{"type":612,"value":2065},":,.2f",{"type":606,"tag":636,"props":2067,"children":2068},{"style":681},[2069],{"type":612,"value":721},{"type":606,"tag":636,"props":2071,"children":2072},{"style":663},[2073],{"type":612,"value":2074},"\"\n",{"type":606,"tag":636,"props":2076,"children":2077},{"class":638,"line":1004},[2078],{"type":606,"tag":636,"props":2079,"children":2080},{"emptyLinePlaceholder":13},[2081],{"type":612,"value":943},{"type":606,"tag":636,"props":2083,"children":2084},{"class":638,"line":99},[2085],{"type":606,"tag":636,"props":2086,"children":2087},{"style":642},[2088],{"type":612,"value":2089},"# 3. Creating a progress bar\n",{"type":606,"tag":636,"props":2091,"children":2092},{"class":638,"line":108},[2093,2097,2102],{"type":606,"tag":636,"props":2094,"children":2095},{"style":657},[2096],{"type":612,"value":1902},{"type":606,"tag":636,"props":2098,"children":2099},{"style":1905},[2100],{"type":612,"value":2101}," progress_bar",{"type":606,"tag":636,"props":2103,"children":2104},{"style":651},[2105],{"type":612,"value":2106},"(current, total):\n",{"type":606,"tag":636,"props":2108,"children":2109},{"class":638,"line":117},[2110,2115,2119,2124,2129,2134,2139],{"type":606,"tag":636,"props":2111,"children":2112},{"style":651},[2113],{"type":612,"value":2114},"    percentage ",{"type":606,"tag":636,"props":2116,"children":2117},{"style":657},[2118],{"type":612,"value":660},{"type":606,"tag":636,"props":2120,"children":2121},{"style":651},[2122],{"type":612,"value":2123}," current ",{"type":606,"tag":636,"props":2125,"children":2126},{"style":657},[2127],{"type":612,"value":2128},"/",{"type":606,"tag":636,"props":2130,"children":2131},{"style":651},[2132],{"type":612,"value":2133}," total ",{"type":606,"tag":636,"props":2135,"children":2136},{"style":657},[2137],{"type":612,"value":2138},"*",{"type":606,"tag":636,"props":2140,"children":2141},{"style":681},[2142],{"type":612,"value":2143}," 100\n",{"type":606,"tag":636,"props":2145,"children":2146},{"class":638,"line":126},[2147,2151,2155,2160,2164,2169,2174,2179,2184,2188,2193,2198,2203,2208,2212,2217,2221,2226,2231,2235,2239,2243,2248,2252,2257,2261,2266,2270,2274],{"type":606,"tag":636,"props":2148,"children":2149},{"style":657},[2150],{"type":612,"value":2042},{"type":606,"tag":636,"props":2152,"children":2153},{"style":657},[2154],{"type":612,"value":701},{"type":606,"tag":636,"props":2156,"children":2157},{"style":663},[2158],{"type":612,"value":2159},"\"[",{"type":606,"tag":636,"props":2161,"children":2162},{"style":681},[2163],{"type":612,"value":711},{"type":606,"tag":636,"props":2165,"children":2166},{"style":663},[2167],{"type":612,"value":2168},"'='",{"type":606,"tag":636,"props":2170,"children":2171},{"style":657},[2172],{"type":612,"value":2173}," *",{"type":606,"tag":636,"props":2175,"children":2176},{"style":681},[2177],{"type":612,"value":2178}," int",{"type":606,"tag":636,"props":2180,"children":2181},{"style":651},[2182],{"type":612,"value":2183},"(percentage",{"type":606,"tag":636,"props":2185,"children":2186},{"style":657},[2187],{"type":612,"value":2128},{"type":606,"tag":636,"props":2189,"children":2190},{"style":681},[2191],{"type":612,"value":2192},"10",{"type":606,"tag":636,"props":2194,"children":2195},{"style":651},[2196],{"type":612,"value":2197},")",{"type":606,"tag":636,"props":2199,"children":2200},{"style":681},[2201],{"type":612,"value":2202},"}{",{"type":606,"tag":636,"props":2204,"children":2205},{"style":663},[2206],{"type":612,"value":2207},"' '",{"type":606,"tag":636,"props":2209,"children":2210},{"style":657},[2211],{"type":612,"value":2173},{"type":606,"tag":636,"props":2213,"children":2214},{"style":651},[2215],{"type":612,"value":2216}," (",{"type":606,"tag":636,"props":2218,"children":2219},{"style":681},[2220],{"type":612,"value":2192},{"type":606,"tag":636,"props":2222,"children":2223},{"style":657},[2224],{"type":612,"value":2225},"-",{"type":606,"tag":636,"props":2227,"children":2228},{"style":681},[2229],{"type":612,"value":2230},"int",{"type":606,"tag":636,"props":2232,"children":2233},{"style":651},[2234],{"type":612,"value":2183},{"type":606,"tag":636,"props":2236,"children":2237},{"style":657},[2238],{"type":612,"value":2128},{"type":606,"tag":636,"props":2240,"children":2241},{"style":681},[2242],{"type":612,"value":2192},{"type":606,"tag":636,"props":2244,"children":2245},{"style":651},[2246],{"type":612,"value":2247},"))",{"type":606,"tag":636,"props":2249,"children":2250},{"style":681},[2251],{"type":612,"value":721},{"type":606,"tag":636,"props":2253,"children":2254},{"style":663},[2255],{"type":612,"value":2256},"] ",{"type":606,"tag":636,"props":2258,"children":2259},{"style":681},[2260],{"type":612,"value":711},{"type":606,"tag":636,"props":2262,"children":2263},{"style":651},[2264],{"type":612,"value":2265},"percentage",{"type":606,"tag":636,"props":2267,"children":2268},{"style":657},[2269],{"type":612,"value":1105},{"type":606,"tag":636,"props":2271,"children":2272},{"style":681},[2273],{"type":612,"value":721},{"type":606,"tag":636,"props":2275,"children":2276},{"style":663},[2277],{"type":612,"value":2278},"%\"\n",{"type":606,"tag":636,"props":2280,"children":2281},{"class":638,"line":135},[2282],{"type":606,"tag":636,"props":2283,"children":2284},{"emptyLinePlaceholder":13},[2285],{"type":612,"value":943},{"type":606,"tag":636,"props":2287,"children":2288},{"class":638,"line":144},[2289],{"type":606,"tag":636,"props":2290,"children":2291},{"style":642},[2292],{"type":612,"value":2293},"# Test the functions\n",{"type":606,"tag":636,"props":2295,"children":2296},{"class":638,"line":153},[2297,2302,2306,2311,2316,2321,2326,2331,2336,2340,2345,2349,2354,2358,2363],{"type":606,"tag":636,"props":2298,"children":2299},{"style":651},[2300],{"type":612,"value":2301},"scores ",{"type":606,"tag":636,"props":2303,"children":2304},{"style":657},[2305],{"type":612,"value":660},{"type":606,"tag":636,"props":2307,"children":2308},{"style":651},[2309],{"type":612,"value":2310}," [(",{"type":606,"tag":636,"props":2312,"children":2313},{"style":663},[2314],{"type":612,"value":2315},"\"Alice\"",{"type":606,"tag":636,"props":2317,"children":2318},{"style":651},[2319],{"type":612,"value":2320},", ",{"type":606,"tag":636,"props":2322,"children":2323},{"style":681},[2324],{"type":612,"value":2325},"95.5",{"type":606,"tag":636,"props":2327,"children":2328},{"style":651},[2329],{"type":612,"value":2330},"), (",{"type":606,"tag":636,"props":2332,"children":2333},{"style":663},[2334],{"type":612,"value":2335},"\"Bob\"",{"type":606,"tag":636,"props":2337,"children":2338},{"style":651},[2339],{"type":612,"value":2320},{"type":606,"tag":636,"props":2341,"children":2342},{"style":681},[2343],{"type":612,"value":2344},"88.0",{"type":606,"tag":636,"props":2346,"children":2347},{"style":651},[2348],{"type":612,"value":2330},{"type":606,"tag":636,"props":2350,"children":2351},{"style":663},[2352],{"type":612,"value":2353},"\"Charlie\"",{"type":606,"tag":636,"props":2355,"children":2356},{"style":651},[2357],{"type":612,"value":2320},{"type":606,"tag":636,"props":2359,"children":2360},{"style":681},[2361],{"type":612,"value":2362},"92.5",{"type":606,"tag":636,"props":2364,"children":2365},{"style":651},[2366],{"type":612,"value":2367},")]\n",{"type":606,"tag":636,"props":2369,"children":2370},{"class":638,"line":163},[2371],{"type":606,"tag":636,"props":2372,"children":2373},{"style":651},[2374],{"type":612,"value":2375},"print_table(scores)\n",{"type":606,"tag":636,"props":2377,"children":2378},{"class":638,"line":172},[2379,2383,2388,2393],{"type":606,"tag":636,"props":2380,"children":2381},{"style":681},[2382],{"type":612,"value":752},{"type":606,"tag":636,"props":2384,"children":2385},{"style":651},[2386],{"type":612,"value":2387},"(format_price(",{"type":606,"tag":636,"props":2389,"children":2390},{"style":681},[2391],{"type":612,"value":2392},"1234.56",{"type":606,"tag":636,"props":2394,"children":2395},{"style":651},[2396],{"type":612,"value":1461},{"type":606,"tag":636,"props":2398,"children":2399},{"class":638,"line":181},[2400,2404,2409,2414,2418,2422],{"type":606,"tag":636,"props":2401,"children":2402},{"style":681},[2403],{"type":612,"value":752},{"type":606,"tag":636,"props":2405,"children":2406},{"style":651},[2407],{"type":612,"value":2408},"(progress_bar(",{"type":606,"tag":636,"props":2410,"children":2411},{"style":681},[2412],{"type":612,"value":2413},"7",{"type":606,"tag":636,"props":2415,"children":2416},{"style":651},[2417],{"type":612,"value":2320},{"type":606,"tag":636,"props":2419,"children":2420},{"style":681},[2421],{"type":612,"value":2192},{"type":606,"tag":636,"props":2423,"children":2424},{"style":651},[2425],{"type":612,"value":1461},{"type":606,"tag":759,"props":2427,"children":2429},{"id":2428},"quick-practice",[2430],{"type":612,"value":2431},"📝 Quick Practice",{"type":606,"tag":615,"props":2433,"children":2434},{},[2435],{"type":612,"value":2436},"Let's practice string formatting with a real-world scenario!",{"type":606,"tag":2438,"props":2439,"children":2442},"exercise",{"hint":2440,"prompt":2441},"Try using f-strings with format specifiers!","Create a function to format a receipt.",[2443],{"type":606,"tag":625,"props":2444,"children":2446},{"className":627,"code":2445,"language":629,"meta":8,"style":8},"# Receipt Formatting Practice\ndef format_receipt(items, tax_rate=0.1):\n    # TODO: Implement receipt formatting\n    # 1. Format each item with name, quantity, and price\n    # 2. Calculate subtotal, tax, and total\n    # 3. Format the final receipt with proper alignment\n    \n    # Example items: [(\"Apple\", 2, 0.50), (\"Banana\", 3, 0.75)]\n    return \"\"\n\n# Test the function\nitems = [(\"Apple\", 2, 0.50), (\"Banana\", 3, 0.75), (\"Orange\", 1, 1.25)]\nprint(format_receipt(items))\n",[2447],{"type":606,"tag":632,"props":2448,"children":2449},{"__ignoreMap":8},[2450,2458,2489,2507,2515,2523,2531,2539,2547,2559,2566,2574,2671],{"type":606,"tag":636,"props":2451,"children":2452},{"class":638,"line":12},[2453],{"type":606,"tag":636,"props":2454,"children":2455},{"style":642},[2456],{"type":612,"value":2457},"# Receipt Formatting Practice\n",{"type":606,"tag":636,"props":2459,"children":2460},{"class":638,"line":27},[2461,2465,2470,2475,2479,2484],{"type":606,"tag":636,"props":2462,"children":2463},{"style":657},[2464],{"type":612,"value":1902},{"type":606,"tag":636,"props":2466,"children":2467},{"style":1905},[2468],{"type":612,"value":2469}," format_receipt",{"type":606,"tag":636,"props":2471,"children":2472},{"style":651},[2473],{"type":612,"value":2474},"(items, tax_rate",{"type":606,"tag":636,"props":2476,"children":2477},{"style":657},[2478],{"type":612,"value":660},{"type":606,"tag":636,"props":2480,"children":2481},{"style":681},[2482],{"type":612,"value":2483},"0.1",{"type":606,"tag":636,"props":2485,"children":2486},{"style":651},[2487],{"type":612,"value":2488},"):\n",{"type":606,"tag":636,"props":2490,"children":2491},{"class":638,"line":36},[2492,2497,2502],{"type":606,"tag":636,"props":2493,"children":2494},{"style":642},[2495],{"type":612,"value":2496},"    # ",{"type":606,"tag":636,"props":2498,"children":2499},{"style":657},[2500],{"type":612,"value":2501},"TODO",{"type":606,"tag":636,"props":2503,"children":2504},{"style":642},[2505],{"type":612,"value":2506},": Implement receipt formatting\n",{"type":606,"tag":636,"props":2508,"children":2509},{"class":638,"line":45},[2510],{"type":606,"tag":636,"props":2511,"children":2512},{"style":642},[2513],{"type":612,"value":2514},"    # 1. Format each item with name, quantity, and price\n",{"type":606,"tag":636,"props":2516,"children":2517},{"class":638,"line":54},[2518],{"type":606,"tag":636,"props":2519,"children":2520},{"style":642},[2521],{"type":612,"value":2522},"    # 2. Calculate subtotal, tax, and total\n",{"type":606,"tag":636,"props":2524,"children":2525},{"class":638,"line":63},[2526],{"type":606,"tag":636,"props":2527,"children":2528},{"style":642},[2529],{"type":612,"value":2530},"    # 3. Format the final receipt with proper alignment\n",{"type":606,"tag":636,"props":2532,"children":2533},{"class":638,"line":72},[2534],{"type":606,"tag":636,"props":2535,"children":2536},{"style":651},[2537],{"type":612,"value":2538},"    \n",{"type":606,"tag":636,"props":2540,"children":2541},{"class":638,"line":81},[2542],{"type":606,"tag":636,"props":2543,"children":2544},{"style":642},[2545],{"type":612,"value":2546},"    # Example items: [(\"Apple\", 2, 0.50), (\"Banana\", 3, 0.75)]\n",{"type":606,"tag":636,"props":2548,"children":2549},{"class":638,"line":1004},[2550,2554],{"type":606,"tag":636,"props":2551,"children":2552},{"style":657},[2553],{"type":612,"value":2042},{"type":606,"tag":636,"props":2555,"children":2556},{"style":663},[2557],{"type":612,"value":2558}," \"\"\n",{"type":606,"tag":636,"props":2560,"children":2561},{"class":638,"line":99},[2562],{"type":606,"tag":636,"props":2563,"children":2564},{"emptyLinePlaceholder":13},[2565],{"type":612,"value":943},{"type":606,"tag":636,"props":2567,"children":2568},{"class":638,"line":108},[2569],{"type":606,"tag":636,"props":2570,"children":2571},{"style":642},[2572],{"type":612,"value":2573},"# Test the function\n",{"type":606,"tag":636,"props":2575,"children":2576},{"class":638,"line":117},[2577,2582,2586,2590,2595,2599,2604,2608,2613,2617,2622,2626,2631,2635,2640,2644,2649,2653,2658,2662,2667],{"type":606,"tag":636,"props":2578,"children":2579},{"style":651},[2580],{"type":612,"value":2581},"items ",{"type":606,"tag":636,"props":2583,"children":2584},{"style":657},[2585],{"type":612,"value":660},{"type":606,"tag":636,"props":2587,"children":2588},{"style":651},[2589],{"type":612,"value":2310},{"type":606,"tag":636,"props":2591,"children":2592},{"style":663},[2593],{"type":612,"value":2594},"\"Apple\"",{"type":606,"tag":636,"props":2596,"children":2597},{"style":651},[2598],{"type":612,"value":2320},{"type":606,"tag":636,"props":2600,"children":2601},{"style":681},[2602],{"type":612,"value":2603},"2",{"type":606,"tag":636,"props":2605,"children":2606},{"style":651},[2607],{"type":612,"value":2320},{"type":606,"tag":636,"props":2609,"children":2610},{"style":681},[2611],{"type":612,"value":2612},"0.50",{"type":606,"tag":636,"props":2614,"children":2615},{"style":651},[2616],{"type":612,"value":2330},{"type":606,"tag":636,"props":2618,"children":2619},{"style":663},[2620],{"type":612,"value":2621},"\"Banana\"",{"type":606,"tag":636,"props":2623,"children":2624},{"style":651},[2625],{"type":612,"value":2320},{"type":606,"tag":636,"props":2627,"children":2628},{"style":681},[2629],{"type":612,"value":2630},"3",{"type":606,"tag":636,"props":2632,"children":2633},{"style":651},[2634],{"type":612,"value":2320},{"type":606,"tag":636,"props":2636,"children":2637},{"style":681},[2638],{"type":612,"value":2639},"0.75",{"type":606,"tag":636,"props":2641,"children":2642},{"style":651},[2643],{"type":612,"value":2330},{"type":606,"tag":636,"props":2645,"children":2646},{"style":663},[2647],{"type":612,"value":2648},"\"Orange\"",{"type":606,"tag":636,"props":2650,"children":2651},{"style":651},[2652],{"type":612,"value":2320},{"type":606,"tag":636,"props":2654,"children":2655},{"style":681},[2656],{"type":612,"value":2657},"1",{"type":606,"tag":636,"props":2659,"children":2660},{"style":651},[2661],{"type":612,"value":2320},{"type":606,"tag":636,"props":2663,"children":2664},{"style":681},[2665],{"type":612,"value":2666},"1.25",{"type":606,"tag":636,"props":2668,"children":2669},{"style":651},[2670],{"type":612,"value":2367},{"type":606,"tag":636,"props":2672,"children":2673},{"class":638,"line":126},[2674,2678],{"type":606,"tag":636,"props":2675,"children":2676},{"style":681},[2677],{"type":612,"value":752},{"type":606,"tag":636,"props":2679,"children":2680},{"style":651},[2681],{"type":612,"value":2682},"(format_receipt(items))\n",{"type":606,"tag":863,"props":2684,"children":2686},{"id":2685},"solution-and-explanation",[2687],{"type":612,"value":2688},"Solution and Explanation 💡",{"type":606,"tag":2690,"props":2691,"children":2692},"details",{},[2693,2701,3413,3421],{"type":606,"tag":2694,"props":2695,"children":2698},"summary",{"className":2696},[2697],"cursor-pointer",[2699],{"type":612,"value":2700},"Click to see the solution",{"type":606,"tag":621,"props":2702,"children":2703},{},[2704],{"type":606,"tag":625,"props":2705,"children":2707},{"className":627,"code":2706,"language":629,"meta":8,"style":8},"# Receipt Formatting Solution\ndef format_receipt(items, tax_rate=0.1):\n    # Calculate totals\n    subtotal = sum(quantity * price for _, quantity, price in items)\n    tax = subtotal * tax_rate\n    total = subtotal + tax\n    \n    # Format receipt\n    receipt = \"RECEIPT\\n\" + \"=\" * 30 + \"\\n\"\n    \n    # Format items\n    for name, quantity, price in items:\n        item_total = quantity * price\n        receipt += f\"{name:\u003C10} {quantity:>2} x ${price:>5.2f} = ${item_total:>6.2f}\\n\"\n    \n    # Format totals\n    receipt += \"-\" * 30 + \"\\n\"\n    receipt += f\"Subtotal: ${subtotal:>20.2f}\\n\"\n    receipt += f\"Tax: ${tax:>23.2f}\\n\"\n    receipt += f\"Total: ${total:>22.2f}\\n\"\n    \n    return receipt\n\n# Test the function\nitems = [(\"Apple\", 2, 0.50), (\"Banana\", 3, 0.75), (\"Orange\", 1, 1.25)]\nprint(format_receipt(items))\n",[2708],{"type":606,"tag":632,"props":2709,"children":2710},{"__ignoreMap":8},[2711,2719,2746,2754,2804,2830,2855,2862,2870,2932,2939,2947,2968,2994,3101,3108,3116,3156,3198,3240,3282,3289,3301,3308,3315,3402],{"type":606,"tag":636,"props":2712,"children":2713},{"class":638,"line":12},[2714],{"type":606,"tag":636,"props":2715,"children":2716},{"style":642},[2717],{"type":612,"value":2718},"# Receipt Formatting Solution\n",{"type":606,"tag":636,"props":2720,"children":2721},{"class":638,"line":27},[2722,2726,2730,2734,2738,2742],{"type":606,"tag":636,"props":2723,"children":2724},{"style":657},[2725],{"type":612,"value":1902},{"type":606,"tag":636,"props":2727,"children":2728},{"style":1905},[2729],{"type":612,"value":2469},{"type":606,"tag":636,"props":2731,"children":2732},{"style":651},[2733],{"type":612,"value":2474},{"type":606,"tag":636,"props":2735,"children":2736},{"style":657},[2737],{"type":612,"value":660},{"type":606,"tag":636,"props":2739,"children":2740},{"style":681},[2741],{"type":612,"value":2483},{"type":606,"tag":636,"props":2743,"children":2744},{"style":651},[2745],{"type":612,"value":2488},{"type":606,"tag":636,"props":2747,"children":2748},{"class":638,"line":36},[2749],{"type":606,"tag":636,"props":2750,"children":2751},{"style":642},[2752],{"type":612,"value":2753},"    # Calculate totals\n",{"type":606,"tag":636,"props":2755,"children":2756},{"class":638,"line":45},[2757,2762,2766,2771,2776,2780,2785,2790,2795,2799],{"type":606,"tag":636,"props":2758,"children":2759},{"style":651},[2760],{"type":612,"value":2761},"    subtotal ",{"type":606,"tag":636,"props":2763,"children":2764},{"style":657},[2765],{"type":612,"value":660},{"type":606,"tag":636,"props":2767,"children":2768},{"style":681},[2769],{"type":612,"value":2770}," sum",{"type":606,"tag":636,"props":2772,"children":2773},{"style":651},[2774],{"type":612,"value":2775},"(quantity ",{"type":606,"tag":636,"props":2777,"children":2778},{"style":657},[2779],{"type":612,"value":2138},{"type":606,"tag":636,"props":2781,"children":2782},{"style":651},[2783],{"type":612,"value":2784}," price ",{"type":606,"tag":636,"props":2786,"children":2787},{"style":657},[2788],{"type":612,"value":2789},"for",{"type":606,"tag":636,"props":2791,"children":2792},{"style":651},[2793],{"type":612,"value":2794}," _, quantity, price ",{"type":606,"tag":636,"props":2796,"children":2797},{"style":657},[2798],{"type":612,"value":1931},{"type":606,"tag":636,"props":2800,"children":2801},{"style":651},[2802],{"type":612,"value":2803}," items)\n",{"type":606,"tag":636,"props":2805,"children":2806},{"class":638,"line":54},[2807,2812,2816,2821,2825],{"type":606,"tag":636,"props":2808,"children":2809},{"style":651},[2810],{"type":612,"value":2811},"    tax ",{"type":606,"tag":636,"props":2813,"children":2814},{"style":657},[2815],{"type":612,"value":660},{"type":606,"tag":636,"props":2817,"children":2818},{"style":651},[2819],{"type":612,"value":2820}," subtotal ",{"type":606,"tag":636,"props":2822,"children":2823},{"style":657},[2824],{"type":612,"value":2138},{"type":606,"tag":636,"props":2826,"children":2827},{"style":651},[2828],{"type":612,"value":2829}," tax_rate\n",{"type":606,"tag":636,"props":2831,"children":2832},{"class":638,"line":63},[2833,2838,2842,2846,2850],{"type":606,"tag":636,"props":2834,"children":2835},{"style":651},[2836],{"type":612,"value":2837},"    total ",{"type":606,"tag":636,"props":2839,"children":2840},{"style":657},[2841],{"type":612,"value":660},{"type":606,"tag":636,"props":2843,"children":2844},{"style":651},[2845],{"type":612,"value":2820},{"type":606,"tag":636,"props":2847,"children":2848},{"style":657},[2849],{"type":612,"value":1043},{"type":606,"tag":636,"props":2851,"children":2852},{"style":651},[2853],{"type":612,"value":2854}," tax\n",{"type":606,"tag":636,"props":2856,"children":2857},{"class":638,"line":72},[2858],{"type":606,"tag":636,"props":2859,"children":2860},{"style":651},[2861],{"type":612,"value":2538},{"type":606,"tag":636,"props":2863,"children":2864},{"class":638,"line":81},[2865],{"type":606,"tag":636,"props":2866,"children":2867},{"style":642},[2868],{"type":612,"value":2869},"    # Format receipt\n",{"type":606,"tag":636,"props":2871,"children":2872},{"class":638,"line":1004},[2873,2878,2882,2887,2892,2896,2901,2906,2910,2915,2919,2924,2928],{"type":606,"tag":636,"props":2874,"children":2875},{"style":651},[2876],{"type":612,"value":2877},"    receipt ",{"type":606,"tag":636,"props":2879,"children":2880},{"style":657},[2881],{"type":612,"value":660},{"type":606,"tag":636,"props":2883,"children":2884},{"style":663},[2885],{"type":612,"value":2886}," \"RECEIPT",{"type":606,"tag":636,"props":2888,"children":2889},{"style":681},[2890],{"type":612,"value":2891},"\\n",{"type":606,"tag":636,"props":2893,"children":2894},{"style":663},[2895],{"type":612,"value":706},{"type":606,"tag":636,"props":2897,"children":2898},{"style":657},[2899],{"type":612,"value":2900}," +",{"type":606,"tag":636,"props":2902,"children":2903},{"style":663},[2904],{"type":612,"value":2905}," \"=\"",{"type":606,"tag":636,"props":2907,"children":2908},{"style":657},[2909],{"type":612,"value":2173},{"type":606,"tag":636,"props":2911,"children":2912},{"style":681},[2913],{"type":612,"value":2914}," 30",{"type":606,"tag":636,"props":2916,"children":2917},{"style":657},[2918],{"type":612,"value":2900},{"type":606,"tag":636,"props":2920,"children":2921},{"style":663},[2922],{"type":612,"value":2923}," \"",{"type":606,"tag":636,"props":2925,"children":2926},{"style":681},[2927],{"type":612,"value":2891},{"type":606,"tag":636,"props":2929,"children":2930},{"style":663},[2931],{"type":612,"value":2074},{"type":606,"tag":636,"props":2933,"children":2934},{"class":638,"line":99},[2935],{"type":606,"tag":636,"props":2936,"children":2937},{"style":651},[2938],{"type":612,"value":2538},{"type":606,"tag":636,"props":2940,"children":2941},{"class":638,"line":108},[2942],{"type":606,"tag":636,"props":2943,"children":2944},{"style":642},[2945],{"type":612,"value":2946},"    # Format items\n",{"type":606,"tag":636,"props":2948,"children":2949},{"class":638,"line":117},[2950,2954,2959,2963],{"type":606,"tag":636,"props":2951,"children":2952},{"style":657},[2953],{"type":612,"value":1921},{"type":606,"tag":636,"props":2955,"children":2956},{"style":651},[2957],{"type":612,"value":2958}," name, quantity, price ",{"type":606,"tag":636,"props":2960,"children":2961},{"style":657},[2962],{"type":612,"value":1931},{"type":606,"tag":636,"props":2964,"children":2965},{"style":651},[2966],{"type":612,"value":2967}," items:\n",{"type":606,"tag":636,"props":2969,"children":2970},{"class":638,"line":126},[2971,2976,2980,2985,2989],{"type":606,"tag":636,"props":2972,"children":2973},{"style":651},[2974],{"type":612,"value":2975},"        item_total ",{"type":606,"tag":636,"props":2977,"children":2978},{"style":657},[2979],{"type":612,"value":660},{"type":606,"tag":636,"props":2981,"children":2982},{"style":651},[2983],{"type":612,"value":2984}," quantity ",{"type":606,"tag":636,"props":2986,"children":2987},{"style":657},[2988],{"type":612,"value":2138},{"type":606,"tag":636,"props":2990,"children":2991},{"style":651},[2992],{"type":612,"value":2993}," price\n",{"type":606,"tag":636,"props":2995,"children":2996},{"class":638,"line":135},[2997,3002,3007,3011,3015,3019,3023,3027,3031,3036,3041,3046,3050,3055,3059,3064,3069,3073,3078,3082,3087,3092,3097],{"type":606,"tag":636,"props":2998,"children":2999},{"style":651},[3000],{"type":612,"value":3001},"        receipt ",{"type":606,"tag":636,"props":3003,"children":3004},{"style":657},[3005],{"type":612,"value":3006},"+=",{"type":606,"tag":636,"props":3008,"children":3009},{"style":657},[3010],{"type":612,"value":701},{"type":606,"tag":636,"props":3012,"children":3013},{"style":663},[3014],{"type":612,"value":706},{"type":606,"tag":636,"props":3016,"children":3017},{"style":681},[3018],{"type":612,"value":711},{"type":606,"tag":636,"props":3020,"children":3021},{"style":651},[3022],{"type":612,"value":716},{"type":606,"tag":636,"props":3024,"children":3025},{"style":657},[3026],{"type":612,"value":1763},{"type":606,"tag":636,"props":3028,"children":3029},{"style":681},[3030],{"type":612,"value":721},{"type":606,"tag":636,"props":3032,"children":3033},{"style":681},[3034],{"type":612,"value":3035}," {",{"type":606,"tag":636,"props":3037,"children":3038},{"style":651},[3039],{"type":612,"value":3040},"quantity",{"type":606,"tag":636,"props":3042,"children":3043},{"style":657},[3044],{"type":612,"value":3045},":>2",{"type":606,"tag":636,"props":3047,"children":3048},{"style":681},[3049],{"type":612,"value":721},{"type":606,"tag":636,"props":3051,"children":3052},{"style":663},[3053],{"type":612,"value":3054}," x $",{"type":606,"tag":636,"props":3056,"children":3057},{"style":681},[3058],{"type":612,"value":711},{"type":606,"tag":636,"props":3060,"children":3061},{"style":651},[3062],{"type":612,"value":3063},"price",{"type":606,"tag":636,"props":3065,"children":3066},{"style":657},[3067],{"type":612,"value":3068},":>5.2f",{"type":606,"tag":636,"props":3070,"children":3071},{"style":681},[3072],{"type":612,"value":721},{"type":606,"tag":636,"props":3074,"children":3075},{"style":663},[3076],{"type":612,"value":3077}," = $",{"type":606,"tag":636,"props":3079,"children":3080},{"style":681},[3081],{"type":612,"value":711},{"type":606,"tag":636,"props":3083,"children":3084},{"style":651},[3085],{"type":612,"value":3086},"item_total",{"type":606,"tag":636,"props":3088,"children":3089},{"style":657},[3090],{"type":612,"value":3091},":>6.2f",{"type":606,"tag":636,"props":3093,"children":3094},{"style":681},[3095],{"type":612,"value":3096},"}\\n",{"type":606,"tag":636,"props":3098,"children":3099},{"style":663},[3100],{"type":612,"value":2074},{"type":606,"tag":636,"props":3102,"children":3103},{"class":638,"line":144},[3104],{"type":606,"tag":636,"props":3105,"children":3106},{"style":651},[3107],{"type":612,"value":2538},{"type":606,"tag":636,"props":3109,"children":3110},{"class":638,"line":153},[3111],{"type":606,"tag":636,"props":3112,"children":3113},{"style":642},[3114],{"type":612,"value":3115},"    # Format totals\n",{"type":606,"tag":636,"props":3117,"children":3118},{"class":638,"line":163},[3119,3123,3127,3132,3136,3140,3144,3148,3152],{"type":606,"tag":636,"props":3120,"children":3121},{"style":651},[3122],{"type":612,"value":2877},{"type":606,"tag":636,"props":3124,"children":3125},{"style":657},[3126],{"type":612,"value":3006},{"type":606,"tag":636,"props":3128,"children":3129},{"style":663},[3130],{"type":612,"value":3131}," \"-\"",{"type":606,"tag":636,"props":3133,"children":3134},{"style":657},[3135],{"type":612,"value":2173},{"type":606,"tag":636,"props":3137,"children":3138},{"style":681},[3139],{"type":612,"value":2914},{"type":606,"tag":636,"props":3141,"children":3142},{"style":657},[3143],{"type":612,"value":2900},{"type":606,"tag":636,"props":3145,"children":3146},{"style":663},[3147],{"type":612,"value":2923},{"type":606,"tag":636,"props":3149,"children":3150},{"style":681},[3151],{"type":612,"value":2891},{"type":606,"tag":636,"props":3153,"children":3154},{"style":663},[3155],{"type":612,"value":2074},{"type":606,"tag":636,"props":3157,"children":3158},{"class":638,"line":172},[3159,3163,3167,3171,3176,3180,3185,3190,3194],{"type":606,"tag":636,"props":3160,"children":3161},{"style":651},[3162],{"type":612,"value":2877},{"type":606,"tag":636,"props":3164,"children":3165},{"style":657},[3166],{"type":612,"value":3006},{"type":606,"tag":636,"props":3168,"children":3169},{"style":657},[3170],{"type":612,"value":701},{"type":606,"tag":636,"props":3172,"children":3173},{"style":663},[3174],{"type":612,"value":3175},"\"Subtotal: $",{"type":606,"tag":636,"props":3177,"children":3178},{"style":681},[3179],{"type":612,"value":711},{"type":606,"tag":636,"props":3181,"children":3182},{"style":651},[3183],{"type":612,"value":3184},"subtotal",{"type":606,"tag":636,"props":3186,"children":3187},{"style":657},[3188],{"type":612,"value":3189},":>20.2f",{"type":606,"tag":636,"props":3191,"children":3192},{"style":681},[3193],{"type":612,"value":3096},{"type":606,"tag":636,"props":3195,"children":3196},{"style":663},[3197],{"type":612,"value":2074},{"type":606,"tag":636,"props":3199,"children":3200},{"class":638,"line":181},[3201,3205,3209,3213,3218,3222,3227,3232,3236],{"type":606,"tag":636,"props":3202,"children":3203},{"style":651},[3204],{"type":612,"value":2877},{"type":606,"tag":636,"props":3206,"children":3207},{"style":657},[3208],{"type":612,"value":3006},{"type":606,"tag":636,"props":3210,"children":3211},{"style":657},[3212],{"type":612,"value":701},{"type":606,"tag":636,"props":3214,"children":3215},{"style":663},[3216],{"type":612,"value":3217},"\"Tax: $",{"type":606,"tag":636,"props":3219,"children":3220},{"style":681},[3221],{"type":612,"value":711},{"type":606,"tag":636,"props":3223,"children":3224},{"style":651},[3225],{"type":612,"value":3226},"tax",{"type":606,"tag":636,"props":3228,"children":3229},{"style":657},[3230],{"type":612,"value":3231},":>23.2f",{"type":606,"tag":636,"props":3233,"children":3234},{"style":681},[3235],{"type":612,"value":3096},{"type":606,"tag":636,"props":3237,"children":3238},{"style":663},[3239],{"type":612,"value":2074},{"type":606,"tag":636,"props":3241,"children":3242},{"class":638,"line":190},[3243,3247,3251,3255,3260,3264,3269,3274,3278],{"type":606,"tag":636,"props":3244,"children":3245},{"style":651},[3246],{"type":612,"value":2877},{"type":606,"tag":636,"props":3248,"children":3249},{"style":657},[3250],{"type":612,"value":3006},{"type":606,"tag":636,"props":3252,"children":3253},{"style":657},[3254],{"type":612,"value":701},{"type":606,"tag":636,"props":3256,"children":3257},{"style":663},[3258],{"type":612,"value":3259},"\"Total: $",{"type":606,"tag":636,"props":3261,"children":3262},{"style":681},[3263],{"type":612,"value":711},{"type":606,"tag":636,"props":3265,"children":3266},{"style":651},[3267],{"type":612,"value":3268},"total",{"type":606,"tag":636,"props":3270,"children":3271},{"style":657},[3272],{"type":612,"value":3273},":>22.2f",{"type":606,"tag":636,"props":3275,"children":3276},{"style":681},[3277],{"type":612,"value":3096},{"type":606,"tag":636,"props":3279,"children":3280},{"style":663},[3281],{"type":612,"value":2074},{"type":606,"tag":636,"props":3283,"children":3284},{"class":638,"line":199},[3285],{"type":606,"tag":636,"props":3286,"children":3287},{"style":651},[3288],{"type":612,"value":2538},{"type":606,"tag":636,"props":3290,"children":3291},{"class":638,"line":208},[3292,3296],{"type":606,"tag":636,"props":3293,"children":3294},{"style":657},[3295],{"type":612,"value":2042},{"type":606,"tag":636,"props":3297,"children":3298},{"style":651},[3299],{"type":612,"value":3300}," receipt\n",{"type":606,"tag":636,"props":3302,"children":3303},{"class":638,"line":217},[3304],{"type":606,"tag":636,"props":3305,"children":3306},{"emptyLinePlaceholder":13},[3307],{"type":612,"value":943},{"type":606,"tag":636,"props":3309,"children":3310},{"class":638,"line":227},[3311],{"type":606,"tag":636,"props":3312,"children":3313},{"style":642},[3314],{"type":612,"value":2573},{"type":606,"tag":636,"props":3316,"children":3317},{"class":638,"line":236},[3318,3322,3326,3330,3334,3338,3342,3346,3350,3354,3358,3362,3366,3370,3374,3378,3382,3386,3390,3394,3398],{"type":606,"tag":636,"props":3319,"children":3320},{"style":651},[3321],{"type":612,"value":2581},{"type":606,"tag":636,"props":3323,"children":3324},{"style":657},[3325],{"type":612,"value":660},{"type":606,"tag":636,"props":3327,"children":3328},{"style":651},[3329],{"type":612,"value":2310},{"type":606,"tag":636,"props":3331,"children":3332},{"style":663},[3333],{"type":612,"value":2594},{"type":606,"tag":636,"props":3335,"children":3336},{"style":651},[3337],{"type":612,"value":2320},{"type":606,"tag":636,"props":3339,"children":3340},{"style":681},[3341],{"type":612,"value":2603},{"type":606,"tag":636,"props":3343,"children":3344},{"style":651},[3345],{"type":612,"value":2320},{"type":606,"tag":636,"props":3347,"children":3348},{"style":681},[3349],{"type":612,"value":2612},{"type":606,"tag":636,"props":3351,"children":3352},{"style":651},[3353],{"type":612,"value":2330},{"type":606,"tag":636,"props":3355,"children":3356},{"style":663},[3357],{"type":612,"value":2621},{"type":606,"tag":636,"props":3359,"children":3360},{"style":651},[3361],{"type":612,"value":2320},{"type":606,"tag":636,"props":3363,"children":3364},{"style":681},[3365],{"type":612,"value":2630},{"type":606,"tag":636,"props":3367,"children":3368},{"style":651},[3369],{"type":612,"value":2320},{"type":606,"tag":636,"props":3371,"children":3372},{"style":681},[3373],{"type":612,"value":2639},{"type":606,"tag":636,"props":3375,"children":3376},{"style":651},[3377],{"type":612,"value":2330},{"type":606,"tag":636,"props":3379,"children":3380},{"style":663},[3381],{"type":612,"value":2648},{"type":606,"tag":636,"props":3383,"children":3384},{"style":651},[3385],{"type":612,"value":2320},{"type":606,"tag":636,"props":3387,"children":3388},{"style":681},[3389],{"type":612,"value":2657},{"type":606,"tag":636,"props":3391,"children":3392},{"style":651},[3393],{"type":612,"value":2320},{"type":606,"tag":636,"props":3395,"children":3396},{"style":681},[3397],{"type":612,"value":2666},{"type":606,"tag":636,"props":3399,"children":3400},{"style":651},[3401],{"type":612,"value":2367},{"type":606,"tag":636,"props":3403,"children":3404},{"class":638,"line":245},[3405,3409],{"type":606,"tag":636,"props":3406,"children":3407},{"style":681},[3408],{"type":612,"value":752},{"type":606,"tag":636,"props":3410,"children":3411},{"style":651},[3412],{"type":612,"value":2682},{"type":606,"tag":615,"props":3414,"children":3415},{},[3416],{"type":606,"tag":781,"props":3417,"children":3418},{},[3419],{"type":612,"value":3420},"Key Learning Points:",{"type":606,"tag":787,"props":3422,"children":3423},{},[3424,3429,3455,3467],{"type":606,"tag":791,"props":3425,"children":3426},{},[3427],{"type":612,"value":3428},"📌 Used f-strings with format specifiers",{"type":606,"tag":791,"props":3430,"children":3431},{},[3432,3434,3440,3441,3447,3448,3454],{"type":612,"value":3433},"📌 Used alignment operators (",{"type":606,"tag":632,"props":3435,"children":3437},{"className":3436},[],[3438],{"type":612,"value":3439},"\u003C",{"type":612,"value":2320},{"type":606,"tag":632,"props":3442,"children":3444},{"className":3443},[],[3445],{"type":612,"value":3446},">",{"type":612,"value":2320},{"type":606,"tag":632,"props":3449,"children":3451},{"className":3450},[],[3452],{"type":612,"value":3453},"^",{"type":612,"value":2197},{"type":606,"tag":791,"props":3456,"children":3457},{},[3458,3460,3466],{"type":612,"value":3459},"📌 Used decimal formatting (",{"type":606,"tag":632,"props":3461,"children":3463},{"className":3462},[],[3464],{"type":612,"value":3465},".2f",{"type":612,"value":2197},{"type":606,"tag":791,"props":3468,"children":3469},{},[3470],{"type":612,"value":3471},"📌 Used string multiplication for lines",{"type":606,"tag":759,"props":3473,"children":3475},{"id":3474},"key-takeaways",[3476],{"type":612,"value":3477},"🎯 Key Takeaways",{"type":606,"tag":771,"props":3479,"children":3483},{"emoji":3480,"title":3481,"type":3482},"📚","String Formatting Essentials","success",[3484,3492,3539,3547,3618,3626,3649],{"type":606,"tag":615,"props":3485,"children":3486},{},[3487],{"type":606,"tag":781,"props":3488,"children":3489},{},[3490],{"type":612,"value":3491},"F-String Features:",{"type":606,"tag":787,"props":3493,"children":3494},{},[3495,3506,3517,3528],{"type":606,"tag":791,"props":3496,"children":3497},{},[3498,3500],{"type":612,"value":3499},"Variable insertion: ",{"type":606,"tag":632,"props":3501,"children":3503},{"className":3502},[],[3504],{"type":612,"value":3505},"f\"{var}\"",{"type":606,"tag":791,"props":3507,"children":3508},{},[3509,3511],{"type":612,"value":3510},"Expressions: ",{"type":606,"tag":632,"props":3512,"children":3514},{"className":3513},[],[3515],{"type":612,"value":3516},"f\"{var + 1}\"",{"type":606,"tag":791,"props":3518,"children":3519},{},[3520,3522],{"type":612,"value":3521},"Format specifiers: ",{"type":606,"tag":632,"props":3523,"children":3525},{"className":3524},[],[3526],{"type":612,"value":3527},"f\"{var:.2f}\"",{"type":606,"tag":791,"props":3529,"children":3530},{},[3531,3533],{"type":612,"value":3532},"Alignment: ",{"type":606,"tag":632,"props":3534,"children":3536},{"className":3535},[],[3537],{"type":612,"value":3538},"f\"{var:\u003C10}\"",{"type":606,"tag":615,"props":3540,"children":3541},{},[3542],{"type":606,"tag":781,"props":3543,"children":3544},{},[3545],{"type":612,"value":3546},"Common Format Specifiers:",{"type":606,"tag":787,"props":3548,"children":3549},{},[3550,3574,3596,3607],{"type":606,"tag":791,"props":3551,"children":3552},{},[3553,3555,3560,3561,3567,3568],{"type":612,"value":3554},"Numbers: ",{"type":606,"tag":632,"props":3556,"children":3558},{"className":3557},[],[3559],{"type":612,"value":3465},{"type":612,"value":2320},{"type":606,"tag":632,"props":3562,"children":3564},{"className":3563},[],[3565],{"type":612,"value":3566},"e",{"type":612,"value":2320},{"type":606,"tag":632,"props":3569,"children":3571},{"className":3570},[],[3572],{"type":612,"value":3573},"%",{"type":606,"tag":791,"props":3575,"children":3576},{},[3577,3579,3584,3585,3590,3591],{"type":612,"value":3578},"Strings: ",{"type":606,"tag":632,"props":3580,"children":3582},{"className":3581},[],[3583],{"type":612,"value":3439},{"type":612,"value":2320},{"type":606,"tag":632,"props":3586,"children":3588},{"className":3587},[],[3589],{"type":612,"value":3446},{"type":612,"value":2320},{"type":606,"tag":632,"props":3592,"children":3594},{"className":3593},[],[3595],{"type":612,"value":3453},{"type":606,"tag":791,"props":3597,"children":3598},{},[3599,3601],{"type":612,"value":3600},"Dates: ",{"type":606,"tag":632,"props":3602,"children":3604},{"className":3603},[],[3605],{"type":612,"value":3606},"%Y-%m-%d",{"type":606,"tag":791,"props":3608,"children":3609},{},[3610,3612],{"type":612,"value":3611},"Currency: ",{"type":606,"tag":632,"props":3613,"children":3615},{"className":3614},[],[3616],{"type":612,"value":3617},",.2f",{"type":606,"tag":615,"props":3619,"children":3620},{},[3621],{"type":606,"tag":781,"props":3622,"children":3623},{},[3624],{"type":612,"value":3625},"Best Practices:",{"type":606,"tag":787,"props":3627,"children":3628},{},[3629,3634,3639,3644],{"type":606,"tag":791,"props":3630,"children":3631},{},[3632],{"type":612,"value":3633},"Use f-strings for most cases",{"type":606,"tag":791,"props":3635,"children":3636},{},[3637],{"type":612,"value":3638},"Keep format specifiers simple",{"type":606,"tag":791,"props":3640,"children":3641},{},[3642],{"type":612,"value":3643},"Consider readability",{"type":606,"tag":791,"props":3645,"children":3646},{},[3647],{"type":612,"value":3648},"Handle edge cases",{"type":606,"tag":615,"props":3650,"children":3651},{},[3652,3657],{"type":606,"tag":781,"props":3653,"children":3654},{},[3655],{"type":612,"value":3656},"Remember:",{"type":612,"value":3658}," F-strings are the most readable and efficient way to format strings!",{"type":606,"tag":3660,"props":3661,"children":3662},"style",{},[3663],{"type":612,"value":3664},"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":3666},[3667,3671,3672,3673,3676],{"id":761,"depth":27,"text":764,"children":3668},[3669,3670],{"id":865,"depth":36,"text":868},{"id":1212,"depth":36,"text":1215},{"id":1464,"depth":27,"text":1467},{"id":1868,"depth":27,"text":1871},{"id":2428,"depth":27,"text":2431,"children":3674},[3675],{"id":2685,"depth":36,"text":2688},{"id":3474,"depth":27,"text":3477},1782373764498]