[{"data":1,"prerenderedAt":13681},["ShallowReactive",2],{"tutorials-python":3,"category-items-python":987,"content-/python/text-formatting":988},[4,22,31,40,49,58,67,76,86,95,104,113,122,131,141,150,159,168,177,186,196,205,214,223,233,242,251,260,269,279,288,297,306,315,324,333,342,351,360,369,379,388,397,406,415,424,433,442,452,461,470,479,488,497,506,515,525,534,543,552,561,570,579,588,597,606,616,625,634,643,652,661,670,680,689,698,707,716,725,734,744,753,762,771,780,789,798,807,817,826,835,844,853,863,872,881,890,900,909,918,927,936,945,953,961,970,979],{"_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/getting-started","python",false,"","Getting Started","Begin your Python programming journey. Learn what Python is, how to set it up, and write your first programs. Perfect for complete beginners starting their coding adventure.","getting-started",1,true,"pi pi-folder","markdown","content:python:1.getting-started.md","content","python/1.getting-started.md","python/1.getting-started","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/what-is-python","What is Python","Discover Python's fascinating history, design philosophy, and key features. Learn why Python has become one of the world's most popular programming languages and perfect for beginners.","what-is-python",2,"content:python:2.what-is-python.md","python/2.what-is-python.md","python/2.what-is-python",{"_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/setup-python","Setup Python","Learn how to install Python on your computer and set up your development environment. Step-by-step guide for Windows, macOS, and Linux with beginner-friendly instructions.","setup-python",3,"content:python:3.setup-python.md","python/3.setup-python.md","python/3.setup-python",{"_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/your-first-program","Your First Program","Write and run your first Python program! Learn the basics of Python programming with simple examples and step-by-step instructions for beginners.","your-first-program",4,"content:python:4.your-first-program.md","python/4.your-first-program.md","python/4.your-first-program",{"_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/python-code-structure","Python Code Structure","Learn how Python code is organized and structured. Understand indentation, line breaks, and the basic rules that make Python programs work correctly.","python-code-structure",5,"content:python:5.python-code-structure.md","python/5.python-code-structure.md","python/5.python-code-structure",{"_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/writing-comments","Writing Comments","Learn how to write effective comments in Python. Discover when and how to document your code to make it clear, maintainable, and easy to understand.","writing-comments",6,"content:python:6.writing-comments.md","python/6.writing-comments.md","python/6.writing-comments",{"_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/working-with-variables","Working with Variables","Learn how to create, use, and manage variables in Python. Understand how to store data, change values, and follow naming conventions for clean, readable code.","working-with-variables",7,"content:python:7.working-with-variables.md","python/7.working-with-variables.md","python/7.working-with-variables",{"_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/basic-data-types","Basic Data Types","Learn about Python's fundamental data types including numbers, text, and boolean values","basic-data-types",8,"content:python:8.basic-data-types.md","python/8.basic-data-types.md","python/8.basic-data-types",[86,95,104,113,122],{"_path":87,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":88,"description":89,"slug":90,"parentId":77,"order":91,"_type":15,"_id":92,"_source":17,"_file":93,"_stem":94,"_extension":20},"/python/understanding-data-types","Understanding Data Types","Learn how Python identifies different data types and why they're important for programming","understanding-data-types",9,"content:python:9.understanding-data-types.md","python/9.understanding-data-types.md","python/9.understanding-data-types",{"_path":96,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":97,"description":98,"slug":99,"parentId":77,"order":100,"_type":15,"_id":101,"_source":17,"_file":102,"_stem":103,"_extension":20},"/python/working-with-numbers","Working with Numbers","Learn about Python's numeric data types including integers and floats, and how to perform calculations","working-with-numbers",10,"content:python:10.working-with-numbers.md","python/10.working-with-numbers.md","python/10.working-with-numbers",{"_path":105,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":106,"description":107,"slug":108,"parentId":77,"order":109,"_type":15,"_id":110,"_source":17,"_file":111,"_stem":112,"_extension":20},"/python/text-and-strings","Text and Strings","Learn how to work with text data in Python using strings, including creation, manipulation, and formatting","text-and-strings",11,"content:python:11.text-and-strings.md","python/11.text-and-strings.md","python/11.text-and-strings",{"_path":114,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":115,"description":116,"slug":117,"parentId":77,"order":118,"_type":15,"_id":119,"_source":17,"_file":120,"_stem":121,"_extension":20},"/python/true-false-values","True/False Values","Learn about boolean values in Python, including True/False logic, comparison operations, and how to use booleans for decision-making in your programs","true-false-values",12,"content:python:12.true-false-values.md","python/12.true-false-values.md","python/12.true-false-values",{"_path":123,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":124,"description":125,"slug":126,"parentId":77,"order":127,"_type":15,"_id":128,"_source":17,"_file":129,"_stem":130,"_extension":20},"/python/converting-types","Converting Types","Learn how to convert between different Python data types including strings, numbers, and booleans","converting-types",13,"content:python:13.converting-types.md","python/13.converting-types.md","python/13.converting-types",{"_path":132,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":133,"description":134,"slug":135,"order":136,"isParent":13,"icon":14,"_type":15,"_id":137,"_source":17,"_file":138,"_stem":139,"_extension":20,"children":140,"expanded":13},"/python/python-operators","Python Operators","Learn about Python operators - the symbols and keywords that perform operations on data. Discover arithmetic, comparison, logical, and assignment operators with simple examples.","python-operators",14,"content:python:14.python-operators.md","python/14.python-operators.md","python/14.python-operators",[141,150,159,168,177],{"_path":142,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":143,"description":144,"slug":145,"parentId":132,"order":146,"_type":15,"_id":147,"_source":17,"_file":148,"_stem":149,"_extension":20},"/python/math-operations","Math Operations","Learn Python's arithmetic operators for mathematical calculations. Master addition, subtraction, multiplication, division, and more with practical examples.","math-operations",15,"content:python:15.math-operations.md","python/15.math-operations.md","python/15.math-operations",{"_path":151,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":152,"description":153,"slug":154,"parentId":132,"order":155,"_type":15,"_id":156,"_source":17,"_file":157,"_stem":158,"_extension":20},"/python/comparing-values","Comparing Values","Learn Python's comparison operators to compare values and make decisions. Master equality, inequality, and relational operators with practical examples.","comparing-values",16,"content:python:16.comparing-values.md","python/16.comparing-values.md","python/16.comparing-values",{"_path":160,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":161,"description":162,"slug":163,"parentId":132,"order":164,"_type":15,"_id":165,"_source":17,"_file":166,"_stem":167,"_extension":20},"/python/logic-operations","Logic Operations","Learn about Python's logical operators for combining conditions and creating complex boolean expressions","logic-operations",17,"content:python:17.logic-operations.md","python/17.logic-operations.md","python/17.logic-operations",{"_path":169,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":170,"description":171,"slug":172,"parentId":132,"order":173,"_type":15,"_id":174,"_source":17,"_file":175,"_stem":176,"_extension":20},"/python/value-assignment","Value Assignment","Learn about Python's assignment operators for efficiently updating variables and performing calculations","value-assignment",18,"content:python:18.value-assignment.md","python/18.value-assignment.md","python/18.value-assignment",{"_path":178,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":179,"description":180,"slug":181,"parentId":132,"order":182,"_type":15,"_id":183,"_source":17,"_file":184,"_stem":185,"_extension":20},"/python/operator-precedence","Operator Precedence","Learn how Python evaluates expressions with multiple operators and how to control evaluation order","operator-precedence",19,"content:python:19.operator-precedence.md","python/19.operator-precedence.md","python/19.operator-precedence",{"_path":187,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":188,"description":189,"slug":190,"order":191,"isParent":13,"icon":14,"_type":15,"_id":192,"_source":17,"_file":193,"_stem":194,"_extension":20,"children":195,"expanded":13},"/python/decision-making","Decision Making","Learn how to make decisions in your Python programs using conditional statements and control flow","decision-making",20,"content:python:20.decision-making.md","python/20.decision-making.md","python/20.decision-making",[196,205,214],{"_path":197,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":198,"description":199,"slug":200,"parentId":187,"order":201,"_type":15,"_id":202,"_source":17,"_file":203,"_stem":204,"_extension":20},"/python/if-statements","If Statements","Learn how to use if statements to make decisions and control program flow in Python","if-statements",21,"content:python:21.if-statements.md","python/21.if-statements.md","python/21.if-statements",{"_path":206,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":207,"description":208,"slug":209,"parentId":187,"order":210,"_type":15,"_id":211,"_source":17,"_file":212,"_stem":213,"_extension":20},"/python/multiple-conditions","Multiple Conditions","Learn how to handle multiple conditions using elif statements and complex conditional logic in Python","multiple-conditions",22,"content:python:22.multiple-conditions.md","python/22.multiple-conditions.md","python/22.multiple-conditions",{"_path":215,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":216,"description":217,"slug":218,"parentId":187,"order":219,"_type":15,"_id":220,"_source":17,"_file":221,"_stem":222,"_extension":20},"/python/pattern-matching","Pattern Matching","Learn how to use Python's match-case statements for powerful pattern matching and complex decision making","pattern-matching",23,"content:python:23.pattern-matching.md","python/23.pattern-matching.md","python/23.pattern-matching",{"_path":224,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":225,"description":226,"slug":227,"order":228,"isParent":13,"icon":14,"_type":15,"_id":229,"_source":17,"_file":230,"_stem":231,"_extension":20,"children":232,"expanded":13},"/python/repetition-and-loops","Python Loops","Learn how to use loops to repeat code efficiently and handle repetitive tasks in Python","repetition-and-loops",24,"content:python:24.repetition-and-loops.md","python/24.repetition-and-loops.md","python/24.repetition-and-loops",[233,242,251,260],{"_path":234,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":235,"description":236,"slug":237,"parentId":224,"order":238,"_type":15,"_id":239,"_source":17,"_file":240,"_stem":241,"_extension":20},"/python/while-loops","While Loops","Learn how to use while loops for condition-based repetition and create loops that run until specific conditions are met","while-loops",25,"content:python:25.while-loops.md","python/25.while-loops.md","python/25.while-loops",{"_path":243,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":244,"description":245,"slug":246,"parentId":224,"order":247,"_type":15,"_id":248,"_source":17,"_file":249,"_stem":250,"_extension":20},"/python/for-loops","For Loops","Learn how to use for loops to iterate through sequences, collections, and ranges efficiently in Python","for-loops",26,"content:python:26.for-loops.md","python/26.for-loops.md","python/26.for-loops",{"_path":252,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":253,"description":254,"slug":255,"parentId":224,"order":256,"_type":15,"_id":257,"_source":17,"_file":258,"_stem":259,"_extension":20},"/python/loop-control","Loop Control","Master advanced loop control techniques including break, continue, and else clauses for sophisticated iteration patterns","loop-control",27,"content:python:27.loop-control.md","python/27.loop-control.md","python/27.loop-control",{"_path":261,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":262,"description":263,"slug":264,"parentId":224,"order":265,"_type":15,"_id":266,"_source":17,"_file":267,"_stem":268,"_extension":20},"/python/nested-loops","Nested Loops","Learn how to use nested loops to process multi-dimensional data, create patterns, and handle complex iteration scenarios","nested-loops",28,"content:python:28.nested-loops.md","python/28.nested-loops.md","python/28.nested-loops",{"_path":270,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":271,"description":272,"slug":273,"order":274,"isParent":13,"icon":14,"_type":15,"_id":275,"_source":17,"_file":276,"_stem":277,"_extension":20,"children":278,"expanded":13},"/python/python-lists","Python Lists","Learn about Python lists, one of the most important and versatile data structures for storing and organizing collections of data","python-lists",29,"content:python:29.python-lists.md","python/29.python-lists.md","python/29.python-lists",[279,288,297,306,315,324,333,342,351,360],{"_path":280,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":281,"description":282,"slug":283,"parentId":270,"order":284,"_type":15,"_id":285,"_source":17,"_file":286,"_stem":287,"_extension":20},"/python/creating-lists","Creating Lists","Learn different methods to create and initialize Python lists, from simple literals to advanced techniques","creating-lists",30,"content:python:30.creating-lists.md","python/30.creating-lists.md","python/30.creating-lists",{"_path":289,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":290,"description":291,"slug":292,"parentId":270,"order":293,"_type":15,"_id":294,"_source":17,"_file":295,"_stem":296,"_extension":20},"/python/reading-list-data","Reading List Data","Master techniques for accessing and retrieving data from Python lists using indexing, slicing, and built-in methods","reading-list-data",31,"content:python:31.reading-list-data.md","python/31.reading-list-data.md","python/31.reading-list-data",{"_path":298,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":299,"description":300,"slug":301,"parentId":270,"order":302,"_type":15,"_id":303,"_source":17,"_file":304,"_stem":305,"_extension":20},"/python/modifying-lists","Modifying Lists","Learn how to change, update, and modify existing elements in Python lists using indexing and various methods","modifying-lists",32,"content:python:32.modifying-lists.md","python/32.modifying-lists.md","python/32.modifying-lists",{"_path":307,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":308,"description":309,"slug":310,"parentId":270,"order":311,"_type":15,"_id":312,"_source":17,"_file":313,"_stem":314,"_extension":20},"/python/adding-to-lists","Adding to Lists","Learn various methods to add elements to Python lists including append, insert, extend, and concatenation techniques","adding-to-lists",33,"content:python:33.adding-to-lists.md","python/33.adding-to-lists.md","python/33.adding-to-lists",{"_path":316,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":317,"description":318,"slug":319,"parentId":270,"order":320,"_type":15,"_id":321,"_source":17,"_file":322,"_stem":323,"_extension":20},"/python/removing-from-lists","Removing from Lists","Learn different methods to remove and delete elements from Python lists including remove, pop, del, and clear","removing-from-lists",34,"content:python:34.removing-from-lists.md","python/34.removing-from-lists.md","python/34.removing-from-lists",{"_path":325,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":326,"description":327,"slug":328,"parentId":270,"order":329,"_type":15,"_id":330,"_source":17,"_file":331,"_stem":332,"_extension":20},"/python/looping-through-lists","Looping Through Lists","Learn different ways to iterate through Python lists using for loops, while loops, enumerate, and other iteration techniques","looping-through-lists",35,"content:python:35.looping-through-lists.md","python/35.looping-through-lists.md","python/35.looping-through-lists",{"_path":334,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":335,"description":336,"slug":337,"parentId":270,"order":338,"_type":15,"_id":339,"_source":17,"_file":340,"_stem":341,"_extension":20},"/python/list-shortcuts","List Shortcuts","Learn powerful Python list shortcuts including list comprehensions, slicing tricks, and built-in functions for efficient list operations","list-shortcuts",36,"content:python:36.list-shortcuts.md","python/36.list-shortcuts.md","python/36.list-shortcuts",{"_path":343,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":344,"description":345,"slug":346,"parentId":270,"order":347,"_type":15,"_id":348,"_source":17,"_file":349,"_stem":350,"_extension":20},"/python/organizing-lists","Organizing Lists","Learn how to sort, reverse, and organize Python lists using built-in methods and custom sorting techniques","organizing-lists",37,"content:python:37.organizing-lists.md","python/37.organizing-lists.md","python/37.organizing-lists",{"_path":352,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":353,"description":354,"slug":355,"parentId":270,"order":356,"_type":15,"_id":357,"_source":17,"_file":358,"_stem":359,"_extension":20},"/python/combining-lists","Combining Lists","Learn various techniques to combine, merge, and join Python lists including concatenation, zipping, and advanced merging strategies","combining-lists",38,"content:python:38.combining-lists.md","python/38.combining-lists.md","python/38.combining-lists",{"_path":361,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":362,"description":363,"slug":364,"parentId":270,"order":365,"_type":15,"_id":366,"_source":17,"_file":367,"_stem":368,"_extension":20},"/python/essential-list-tools","Essential List Tools","Master powerful built-in functions and advanced techniques for efficient Python list manipulation and data processing","essential-list-tools",39,"content:python:39.essential-list-tools.md","python/39.essential-list-tools.md","python/39.essential-list-tools",{"_path":370,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":371,"description":372,"slug":373,"order":374,"isParent":13,"icon":14,"_type":15,"_id":375,"_source":17,"_file":376,"_stem":377,"_extension":20,"children":378,"expanded":13},"/python/python-tuples","Python Tuples","Master Python tuples - immutable sequences perfect for storing related data that shouldn't change. Learn creation, access, and manipulation techniques.","python-tuples",40,"content:python:40.python-tuples.md","python/40.python-tuples.md","python/40.python-tuples",[379,388,397,406,415,424,433],{"_path":380,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":381,"description":382,"slug":383,"parentId":370,"order":384,"_type":15,"_id":385,"_source":17,"_file":386,"_stem":387,"_extension":20},"/python/creating-tuples","Creating Tuples","Learn different ways to create Python tuples, from basic syntax to advanced techniques. Master tuple initialization and understand when to use tuples.","creating-tuples",41,"content:python:41.creating-tuples.md","python/41.creating-tuples.md","python/41.creating-tuples",{"_path":389,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":390,"description":391,"slug":392,"parentId":370,"order":393,"_type":15,"_id":394,"_source":17,"_file":395,"_stem":396,"_extension":20},"/python/reading-tuple-data","Reading Tuple Data","Master accessing tuple elements through indexing, slicing, and searching. Learn efficient patterns for reading and working with tuple data.","reading-tuple-data",42,"content:python:42.reading-tuple-data.md","python/42.reading-tuple-data.md","python/42.reading-tuple-data",{"_path":398,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":399,"description":400,"slug":401,"parentId":370,"order":402,"_type":15,"_id":403,"_source":17,"_file":404,"_stem":405,"_extension":20},"/python/changing-tuples","Changing Tuples","Understand tuple immutability and learn techniques for working with unchangeable data. Master creating modified tuple versions and handling immutable constraints.","changing-tuples",43,"content:python:43.changing-tuples.md","python/43.changing-tuples.md","python/43.changing-tuples",{"_path":407,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":408,"description":409,"slug":410,"parentId":370,"order":411,"_type":15,"_id":412,"_source":17,"_file":413,"_stem":414,"_extension":20},"/python/tuple-unpacking","Tuple Unpacking","Master tuple unpacking for elegant variable assignment, function returns, and data extraction. Learn Python's powerful unpacking syntax and patterns.","tuple-unpacking",44,"content:python:44.tuple-unpacking.md","python/44.tuple-unpacking.md","python/44.tuple-unpacking",{"_path":416,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":417,"description":418,"slug":419,"parentId":370,"order":420,"_type":15,"_id":421,"_source":17,"_file":422,"_stem":423,"_extension":20},"/python/iterating-tuples","Iterating Tuples","Master tuple iteration techniques for processing sequence data. Learn basic loops, enumerate, nested iteration, and advanced patterns for efficient data processing.","iterating-tuples",45,"content:python:45.iterating-tuples.md","python/45.iterating-tuples.md","python/45.iterating-tuples",{"_path":425,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":426,"description":427,"slug":428,"parentId":370,"order":429,"_type":15,"_id":430,"_source":17,"_file":431,"_stem":432,"_extension":20},"/python/merging-tuples","Merging Tuples","Learn techniques for combining and merging tuples to create larger data structures. Master concatenation, joining multiple tuples, and advanced merging patterns.","merging-tuples",46,"content:python:46.merging-tuples.md","python/46.merging-tuples.md","python/46.merging-tuples",{"_path":434,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":435,"description":436,"slug":437,"parentId":370,"order":438,"_type":15,"_id":439,"_source":17,"_file":440,"_stem":441,"_extension":20},"/python/tuple-operations","Tuple Operations","Master comprehensive tuple operations including built-in functions, mathematical operations, comparisons, and advanced techniques for efficient tuple manipulation.","tuple-operations",47,"content:python:47.tuple-operations.md","python/47.tuple-operations.md","python/47.tuple-operations",{"_path":443,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":444,"description":445,"slug":446,"order":447,"isParent":13,"icon":14,"_type":15,"_id":448,"_source":17,"_file":449,"_stem":450,"_extension":20,"children":451,"expanded":13},"/python/python-sets","Python Sets","Discover Python sets - unique collections that automatically eliminate duplicates and provide powerful mathematical operations for data filtering and analysis.","python-sets",48,"content:python:48.python-sets.md","python/48.python-sets.md","python/48.python-sets",[452,461,470,479,488,497,506],{"_path":453,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":454,"description":455,"slug":456,"parentId":443,"order":457,"_type":15,"_id":458,"_source":17,"_file":459,"_stem":460,"_extension":20},"/python/creating-sets","Creating Sets","Learn multiple ways to create sets in Python including literal syntax, set() function, and set comprehensions. Master set creation from different data sources.","creating-sets",49,"content:python:49.creating-sets.md","python/49.creating-sets.md","python/49.creating-sets",{"_path":462,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":463,"description":464,"slug":465,"parentId":443,"order":466,"_type":15,"_id":467,"_source":17,"_file":468,"_stem":469,"_extension":20},"/python/reading-set-data","Reading Set Data","Learn how to access and examine set data in Python including membership testing, iteration, size checking, and converting sets to other data types.","reading-set-data",50,"content:python:50.reading-set-data.md","python/50.reading-set-data.md","python/50.reading-set-data",{"_path":471,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":472,"description":473,"slug":474,"parentId":443,"order":475,"_type":15,"_id":476,"_source":17,"_file":477,"_stem":478,"_extension":20},"/python/adding-to-sets","Adding to Sets","Learn how to add elements to sets in Python using add(), update(), and union operations. Master growing sets dynamically with single items and multiple elements.","adding-to-sets",51,"content:python:51.adding-to-sets.md","python/51.adding-to-sets.md","python/51.adding-to-sets",{"_path":480,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":481,"description":482,"slug":483,"parentId":443,"order":484,"_type":15,"_id":485,"_source":17,"_file":486,"_stem":487,"_extension":20},"/python/removing-from-sets","Removing from Sets","Learn how to remove elements from Python sets using different methods like remove(), discard(), pop(), and clear()","removing-from-sets",52,"content:python:52.removing-from-sets.md","python/52.removing-from-sets.md","python/52.removing-from-sets",{"_path":489,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":490,"description":491,"slug":492,"parentId":443,"order":493,"_type":15,"_id":494,"_source":17,"_file":495,"_stem":496,"_extension":20},"/python/iterating-sets","Iterating Sets","Learn different ways to iterate through Python sets using for loops, comprehensions, and built-in functions","iterating-sets",53,"content:python:53.iterating-sets.md","python/53.iterating-sets.md","python/53.iterating-sets",{"_path":498,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":499,"description":500,"slug":501,"parentId":443,"order":502,"_type":15,"_id":503,"_source":17,"_file":504,"_stem":505,"_extension":20},"/python/combining-sets","Combining Sets","Learn how to combine Python sets using union, intersection, difference, and other set operations","combining-sets",54,"content:python:54.combining-sets.md","python/54.combining-sets.md","python/54.combining-sets",{"_path":507,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":508,"description":509,"slug":510,"parentId":443,"order":511,"_type":15,"_id":512,"_source":17,"_file":513,"_stem":514,"_extension":20},"/python/set-operations","Set Operations","Learn advanced Python set operations including comparisons, subsets, supersets, and mathematical set relationships","set-operations",55,"content:python:55.set-operations.md","python/55.set-operations.md","python/55.set-operations",{"_path":516,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":517,"description":518,"slug":519,"order":520,"isParent":13,"icon":14,"_type":15,"_id":521,"_source":17,"_file":522,"_stem":523,"_extension":20,"children":524,"expanded":13},"/python/python-dictionaries","Python Dictionaries","Learn about Python dictionaries - key-value data structures for storing and organizing related information","python-dictionaries",56,"content:python:56.python-dictionaries.md","python/56.python-dictionaries.md","python/56.python-dictionaries",[525,534,543,552,561,570,579,588,597],{"_path":526,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":527,"description":528,"slug":529,"parentId":516,"order":530,"_type":15,"_id":531,"_source":17,"_file":532,"_stem":533,"_extension":20},"/python/creating-dictionaries","Creating Dictionaries","Learn different methods to create Python dictionaries using literals, constructors, and comprehensions","creating-dictionaries",57,"content:python:57.creating-dictionaries.md","python/57.creating-dictionaries.md","python/57.creating-dictionaries",{"_path":535,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":536,"description":537,"slug":538,"parentId":516,"order":539,"_type":15,"_id":540,"_source":17,"_file":541,"_stem":542,"_extension":20},"/python/getting-dictionary-values","Getting Dictionary Values","Learn safe and efficient methods to retrieve data from Python dictionaries using various access techniques","getting-dictionary-values",58,"content:python:58.getting-dictionary-values.md","python/58.getting-dictionary-values.md","python/58.getting-dictionary-values",{"_path":544,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":545,"description":546,"slug":547,"parentId":516,"order":548,"_type":15,"_id":549,"_source":17,"_file":550,"_stem":551,"_extension":20},"/python/updating-dictionaries","Updating Dictionaries","Learn how to modify and maintain Python dictionary data using various update methods and techniques","updating-dictionaries",59,"content:python:59.updating-dictionaries.md","python/59.updating-dictionaries.md","python/59.updating-dictionaries",{"_path":553,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":554,"description":555,"slug":556,"parentId":516,"order":557,"_type":15,"_id":558,"_source":17,"_file":559,"_stem":560,"_extension":20},"/python/adding-dictionary-items","Adding Dictionary Items","Learn effective techniques for adding new items to Python dictionaries with various methods and best practices","adding-dictionary-items",60,"content:python:60.adding-dictionary-items.md","python/60.adding-dictionary-items.md","python/60.adding-dictionary-items",{"_path":562,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":563,"description":564,"slug":565,"parentId":516,"order":566,"_type":15,"_id":567,"_source":17,"_file":568,"_stem":569,"_extension":20},"/python/deleting-dictionary-items","Deleting Dictionary Items","Master safe and efficient techniques for removing items from Python dictionaries with various methods and error handling","deleting-dictionary-items",61,"content:python:61.deleting-dictionary-items.md","python/61.deleting-dictionary-items.md","python/61.deleting-dictionary-items",{"_path":571,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":572,"description":573,"slug":574,"parentId":516,"order":575,"_type":15,"_id":576,"_source":17,"_file":577,"_stem":578,"_extension":20},"/python/looping-dictionaries","Looping Dictionaries","Learn efficient techniques for iterating through Python dictionaries using keys, values, and items","looping-dictionaries",62,"content:python:62.looping-dictionaries.md","python/62.looping-dictionaries.md","python/62.looping-dictionaries",{"_path":580,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":581,"description":582,"slug":583,"parentId":516,"order":584,"_type":15,"_id":585,"_source":17,"_file":586,"_stem":587,"_extension":20},"/python/dictionary-copies","Dictionary Copies","Learn safe techniques for duplicating Python dictionaries using shallow and deep copy methods","dictionary-copies",63,"content:python:63.dictionary-copies.md","python/63.dictionary-copies.md","python/63.dictionary-copies",{"_path":589,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":590,"description":591,"slug":592,"parentId":516,"order":593,"_type":15,"_id":594,"_source":17,"_file":595,"_stem":596,"_extension":20},"/python/multi-level-dictionaries","Multi-level Dictionaries","Master working with nested Python dictionaries for complex data structures and hierarchical information","multi-level-dictionaries",64,"content:python:64.multi-level-dictionaries.md","python/64.multi-level-dictionaries.md","python/64.multi-level-dictionaries",{"_path":598,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":599,"description":600,"slug":601,"parentId":516,"order":602,"_type":15,"_id":603,"_source":17,"_file":604,"_stem":605,"_extension":20},"/python/dictionary-tools","Dictionary Tools","Explore powerful built-in functions and advanced techniques for efficient Python dictionary manipulation and analysis","dictionary-tools",65,"content:python:65.dictionary-tools.md","python/65.dictionary-tools.md","python/65.dictionary-tools",{"_path":607,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":608,"description":609,"slug":610,"order":611,"isParent":13,"icon":14,"_type":15,"_id":612,"_source":17,"_file":613,"_stem":614,"_extension":20,"children":615,"expanded":13},"/python/python-functions","Python Functions","Learn how to create and use Python functions to organize code into reusable, modular components that make programs more efficient and maintainable","python-functions",66,"content:python:66.python-functions.md","python/66.python-functions.md","python/66.python-functions",[616,625,634,643,652,661],{"_path":617,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":618,"description":619,"slug":620,"parentId":607,"order":621,"_type":15,"_id":622,"_source":17,"_file":623,"_stem":624,"_extension":20},"/python/function-basics","Function Basics","Learn the fundamentals of creating and using Python functions to organize code into reusable, modular components","function-basics",67,"content:python:67.function-basics.md","python/67.function-basics.md","python/67.function-basics",{"_path":626,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":627,"description":628,"slug":629,"parentId":607,"order":630,"_type":15,"_id":631,"_source":17,"_file":632,"_stem":633,"_extension":20},"/python/function-parameters","Function Parameters","Master different types of Python function parameters including positional, keyword, default, and variable-length arguments","function-parameters",68,"content:python:68.function-parameters.md","python/68.function-parameters.md","python/68.function-parameters",{"_path":635,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":636,"description":637,"slug":638,"parentId":607,"order":639,"_type":15,"_id":640,"_source":17,"_file":641,"_stem":642,"_extension":20},"/python/returning-values","Returning Values","Learn different ways Python functions return data including single values, multiple values, and conditional returns","returning-values",69,"content:python:69.returning-values.md","python/69.returning-values.md","python/69.returning-values",{"_path":644,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":645,"description":646,"slug":647,"parentId":607,"order":648,"_type":15,"_id":649,"_source":17,"_file":650,"_stem":651,"_extension":20},"/python/variable-scope","Variable Scope","Understand Python variable scope including local, global, and nonlocal variables and how they affect function behavior","variable-scope",70,"content:python:70.variable-scope.md","python/70.variable-scope.md","python/70.variable-scope",{"_path":653,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":654,"description":655,"slug":656,"parentId":607,"order":657,"_type":15,"_id":658,"_source":17,"_file":659,"_stem":660,"_extension":20},"/python/anonymous-functions","Anonymous Functions","Learn to create and use Python lambda functions for concise, inline function definitions and functional programming patterns","anonymous-functions",71,"content:python:71.anonymous-functions.md","python/71.anonymous-functions.md","python/71.anonymous-functions",{"_path":662,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":663,"description":664,"slug":665,"parentId":607,"order":666,"_type":15,"_id":667,"_source":17,"_file":668,"_stem":669,"_extension":20},"/python/function-recursion","Function Recursion","Master recursive functions in Python by learning how functions can call themselves to solve complex problems with elegant, mathematical solutions","function-recursion",72,"content:python:72.function-recursion.md","python/72.function-recursion.md","python/72.function-recursion",{"_path":671,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":672,"description":673,"slug":674,"order":675,"isParent":13,"icon":14,"_type":15,"_id":676,"_source":17,"_file":677,"_stem":678,"_extension":20,"children":679,"expanded":13},"/python/object-programming","Object Programming","Learn object-oriented programming (OOP) in Python - create classes, objects, and methods to build organized, reusable code","object-programming",73,"content:python:73.object-programming.md","python/73.object-programming.md","python/73.object-programming",[680,689,698,707,716,725],{"_path":681,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":682,"description":683,"slug":684,"parentId":671,"order":685,"_type":15,"_id":686,"_source":17,"_file":687,"_stem":688,"_extension":20},"/python/classes-and-objects","Classes and Objects","Learn to create Python classes and objects - the foundation of object-oriented programming for building reusable, organized code","classes-and-objects",74,"content:python:74.classes-and-objects.md","python/74.classes-and-objects.md","python/74.classes-and-objects",{"_path":690,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":691,"description":692,"slug":693,"parentId":671,"order":694,"_type":15,"_id":695,"_source":17,"_file":696,"_stem":697,"_extension":20},"/python/object-methods","Object Methods","Master object methods in Python - learn to define behaviors, work with parameters, and create interactive objects that respond to actions","object-methods",75,"content:python:75.object-methods.md","python/75.object-methods.md","python/75.object-methods",{"_path":699,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":700,"description":701,"slug":702,"parentId":671,"order":703,"_type":15,"_id":704,"_source":17,"_file":705,"_stem":706,"_extension":20},"/python/class-inheritance","Class Inheritance","Learn Python class inheritance - create specialized classes that build upon existing functionality while adding new features and behaviors","class-inheritance",76,"content:python:76.class-inheritance.md","python/76.class-inheritance.md","python/76.class-inheritance",{"_path":708,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":709,"description":710,"slug":711,"parentId":671,"order":712,"_type":15,"_id":713,"_source":17,"_file":714,"_stem":715,"_extension":20},"/python/method-overriding","Method Overriding","Master method overriding in Python - learn to customize inherited methods, use super(), and create specialized behaviors while maintaining inheritance benefits","method-overriding",77,"content:python:77.method-overriding.md","python/77.method-overriding.md","python/77.method-overriding",{"_path":717,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":718,"description":719,"slug":720,"parentId":671,"order":721,"_type":15,"_id":722,"_source":17,"_file":723,"_stem":724,"_extension":20},"/python/variable-visibility","Variable Visibility","Master Python variable visibility - learn public, protected, and private attributes to control access and create well-encapsulated classes","variable-visibility",78,"content:python:78.variable-visibility.md","python/78.variable-visibility.md","python/78.variable-visibility",{"_path":726,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":727,"description":728,"slug":729,"parentId":671,"order":730,"_type":15,"_id":731,"_source":17,"_file":732,"_stem":733,"_extension":20},"/python/special-methods","Special Methods","Master Python special methods (magic methods) - learn to implement __str__, __len__, __eq__ and more to make your classes work seamlessly with Python's built-in functions","special-methods",79,"content:python:79.special-methods.md","python/79.special-methods.md","python/79.special-methods",{"_path":735,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":736,"description":737,"slug":738,"order":739,"isParent":13,"icon":14,"_type":15,"_id":740,"_source":17,"_file":741,"_stem":742,"_extension":20,"children":743,"expanded":13},"/python/advanced-concepts","Advanced Concepts","Master advanced Python programming concepts - work with dates, mathematics, JSON data, pattern matching, and more sophisticated programming techniques","advanced-concepts",80,"content:python:80.advanced-concepts.md","python/80.advanced-concepts.md","python/80.advanced-concepts",[744,753,762,771,780,789,798],{"_path":745,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":746,"description":747,"slug":748,"parentId":735,"order":749,"_type":15,"_id":750,"_source":17,"_file":751,"_stem":752,"_extension":20},"/python/working-with-dates","Working with Dates","Master Python date and time handling - work with datetime objects, format dates, calculate durations, and build time-aware applications","working-with-dates",81,"content:python:81.working-with-dates.md","python/81.working-with-dates.md","python/81.working-with-dates",{"_path":754,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":755,"description":756,"slug":757,"parentId":735,"order":758,"_type":15,"_id":759,"_source":17,"_file":760,"_stem":761,"_extension":20},"/python/mathematical-operations","Mathematical Operations","Master Python mathematical computing - use math functions, perform statistical calculations, and implement scientific computing for data analysis and problem-solving","mathematical-operations",82,"content:python:82.mathematical-operations.md","python/82.mathematical-operations.md","python/82.mathematical-operations",{"_path":763,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":764,"description":765,"slug":766,"parentId":735,"order":767,"_type":15,"_id":768,"_source":17,"_file":769,"_stem":770,"_extension":20},"/python/json-data","JSON Data","Master JSON data handling in Python - serialize and deserialize data, work with APIs, manage configuration files, and exchange data between applications","json-data",83,"content:python:83.json-data.md","python/83.json-data.md","python/83.json-data",{"_path":772,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":773,"description":774,"slug":775,"parentId":735,"order":776,"_type":15,"_id":777,"_source":17,"_file":778,"_stem":779,"_extension":20},"/python/package-management","Package Management","Master Python package management with pip and virtual environments - install libraries, manage dependencies, create isolated environments, and distribute packages professionally","package-management",85,"content:python:85.package-management.md","python/85.package-management.md","python/85.package-management",{"_path":781,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":782,"description":783,"slug":784,"parentId":735,"order":785,"_type":15,"_id":786,"_source":17,"_file":787,"_stem":788,"_extension":20},"/python/error-handling","Error Handling","Master Python error handling with try/except blocks, exception types, custom exceptions, debugging techniques, and best practices for robust application development","error-handling",86,"content:python:86.error-handling.md","python/86.error-handling.md","python/86.error-handling",{"_path":790,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":791,"description":792,"slug":793,"parentId":735,"order":794,"_type":15,"_id":795,"_source":17,"_file":796,"_stem":797,"_extension":20},"/python/getting-user-input","Getting User Input","Master user input handling in Python with input validation, data type conversion, interactive programs, and command-line interfaces for engaging user experiences","getting-user-input",87,"content:python:87.getting-user-input.md","python/87.getting-user-input.md","python/87.getting-user-input",{"_path":799,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":800,"description":801,"slug":802,"parentId":735,"order":803,"_type":15,"_id":804,"_source":17,"_file":805,"_stem":806,"_extension":20},"/python/text-formatting","Text Formatting","Master Python text formatting with f-strings, format methods, alignment, number formatting, and advanced techniques for professional, readable output","text-formatting",88,"content:python:88.text-formatting.md","python/88.text-formatting.md","python/88.text-formatting",{"_path":808,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":809,"description":810,"slug":811,"order":812,"isParent":13,"icon":14,"_type":15,"_id":813,"_source":17,"_file":814,"_stem":815,"_extension":20,"children":816},"/python/file-operations","File Operations","Master Python file handling with reading, writing, and managing files for data persistence and real-world applications","file-operations",89,"content:python:89.file-operations.md","python/89.file-operations.md","python/89.file-operations",[817,826,835,844],{"_path":818,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":819,"description":820,"slug":821,"parentId":808,"order":822,"_type":15,"_id":823,"_source":17,"_file":824,"_stem":825,"_extension":20},"/python/file-basics","File Basics","Learn fundamental Python file operations including opening files, understanding file modes, using context managers, and basic file handling concepts","file-basics",90,"content:python:90.file-basics.md","python/90.file-basics.md","python/90.file-basics",{"_path":827,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":828,"description":829,"slug":830,"parentId":808,"order":831,"_type":15,"_id":832,"_source":17,"_file":833,"_stem":834,"_extension":20},"/python/reading-files","Reading Files","Master Python file reading techniques including reading entire files, line-by-line processing, and handling different file formats for efficient data processing","reading-files",91,"content:python:91.reading-files.md","python/91.reading-files.md","python/91.reading-files",{"_path":836,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":837,"description":838,"slug":839,"parentId":808,"order":840,"_type":15,"_id":841,"_source":17,"_file":842,"_stem":843,"_extension":20},"/python/writing-files","Writing Files","Learn Python file writing techniques including creating new files, appending content, updating existing files, and saving different data formats safely","writing-files",92,"content:python:92.writing-files.md","python/92.writing-files.md","python/92.writing-files",{"_path":845,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":846,"description":847,"slug":848,"parentId":808,"order":849,"_type":15,"_id":850,"_source":17,"_file":851,"_stem":852,"_extension":20},"/python/file-management","File Management","Learn Python file management techniques including checking file properties, organizing files, directory operations, and implementing file system maintenance tasks","file-management",93,"content:python:93.file-management.md","python/93.file-management.md","python/93.file-management",{"_path":854,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":855,"description":856,"slug":857,"order":858,"isParent":13,"icon":14,"_type":15,"_id":859,"_source":17,"_file":860,"_stem":861,"_extension":20,"children":862},"/python/code-organization","Code Organization","Master Python code organization with modules, built-in libraries, and path management for creating maintainable and reusable applications","code-organization",94,"content:python:94.code-organization.md","python/94.code-organization.md","python/94.code-organization",[863,872,881],{"_path":864,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":865,"description":866,"slug":867,"parentId":854,"order":868,"_type":15,"_id":869,"_source":17,"_file":870,"_stem":871,"_extension":20},"/python/creating-modules","Creating Modules","Learn how to create custom Python modules, organize functions and classes, write reusable code components, and design effective module structures","creating-modules",95,"content:python:95.creating-modules.md","python/95.creating-modules.md","python/95.creating-modules",{"_path":873,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":874,"description":875,"slug":876,"parentId":854,"order":877,"_type":15,"_id":878,"_source":17,"_file":879,"_stem":880,"_extension":20},"/python/using-built-in-modules","Using Built-in Modules","Discover Python's extensive standard library and learn to effectively use built-in modules for common programming tasks, data processing, and system operations","using-built-in-modules",96,"content:python:96.using-built-in-modules.md","python/96.using-built-in-modules.md","python/96.using-built-in-modules",{"_path":882,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":883,"description":884,"slug":885,"parentId":854,"order":886,"_type":15,"_id":887,"_source":17,"_file":888,"_stem":889,"_extension":20},"/python/module-paths","Module Paths","Understand Python's module search system, manage import paths, work with packages, and organize larger projects with proper module path management","module-paths",97,"content:python:97.module-paths.md","python/97.module-paths.md","python/97.module-paths",{"_path":891,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":892,"description":893,"slug":894,"order":895,"isParent":13,"icon":14,"_type":15,"_id":896,"_source":17,"_file":897,"_stem":898,"_extension":20,"children":899,"expanded":13},"/python/reference-materials","Reference Materials","Comprehensive Python reference materials including reserved words, built-in functions, and operation guides for quick lookup and development support","reference-materials",98,"content:python:98.reference-materials.md","python/98.reference-materials.md","python/98.reference-materials",[900,909,918,927,936,945,953,961,970],{"_path":901,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":902,"description":903,"slug":904,"parentId":891,"order":905,"_type":15,"_id":906,"_source":17,"_file":907,"_stem":908,"_extension":20},"/python/reserved-words","Reserved Words","Complete reference of Python keywords and reserved words with descriptions, usage examples, and syntax guidelines","reserved-words",99,"content:python:99.reserved-words.md","python/99.reserved-words.md","python/99.reserved-words",{"_path":910,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":911,"description":912,"slug":913,"parentId":891,"order":914,"_type":15,"_id":915,"_source":17,"_file":916,"_stem":917,"_extension":20},"/python/built-in-functions","Built-in Functions","Comprehensive reference of Python's built-in functions with parameters, return values, and practical usage examples","built-in-functions",100,"content:python:100.built-in-functions.md","python/100.built-in-functions.md","python/100.built-in-functions",{"_path":919,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":920,"description":921,"slug":922,"parentId":891,"order":923,"_type":15,"_id":924,"_source":17,"_file":925,"_stem":926,"_extension":20},"/python/string-operations","String Operations","Complete reference of Python string methods, operations, and formatting techniques with examples and use cases","string-operations",101,"content:python:101.string-operations.md","python/101.string-operations.md","python/101.string-operations",{"_path":928,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":929,"description":930,"slug":931,"parentId":891,"order":932,"_type":15,"_id":933,"_source":17,"_file":934,"_stem":935,"_extension":20},"/python/list-operations","List Operations","Complete reference of Python list methods, operations, and manipulation techniques with examples and performance notes","list-operations",102,"content:python:102.list-operations.md","python/102.list-operations.md","python/102.list-operations",{"_path":937,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":938,"description":939,"slug":940,"parentId":891,"order":941,"_type":15,"_id":942,"_source":17,"_file":943,"_stem":944,"_extension":20},"/python/dictionary-operations","Dictionary Operations","Complete reference of Python dictionary methods, operations, and manipulation techniques with examples and use cases","dictionary-operations",103,"content:python:103.dictionary-operations.md","python/103.dictionary-operations.md","python/103.dictionary-operations",{"_path":946,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":435,"description":947,"slug":948,"parentId":891,"order":949,"_type":15,"_id":950,"_source":17,"_file":951,"_stem":952,"_extension":20},"/python/tuple-methods","Complete reference of Python tuple operations, methods, and techniques with examples and use cases","tuple-methods",104,"content:python:104.tuple-methods.md","python/104.tuple-methods.md","python/104.tuple-methods",{"_path":954,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":508,"description":955,"slug":956,"parentId":891,"order":957,"_type":15,"_id":958,"_source":17,"_file":959,"_stem":960,"_extension":20},"/python/set-methods","Complete reference of Python set operations, methods, and mathematical set operations with examples and use cases","set-methods",105,"content:python:105.set-methods.md","python/105.set-methods.md","python/105.set-methods",{"_path":962,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":963,"description":964,"slug":965,"parentId":891,"order":966,"_type":15,"_id":967,"_source":17,"_file":968,"_stem":969,"_extension":20},"/python/file-operations-reference","File Operations Reference","Complete reference of Python file operations, modes, methods, and file handling techniques with examples","file-operations-reference",106,"content:python:106.file-operations-reference.md","python/106.file-operations-reference.md","python/106.file-operations-reference",{"_path":971,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":972,"description":973,"slug":974,"parentId":891,"order":975,"_type":15,"_id":976,"_source":17,"_file":977,"_stem":978,"_extension":20},"/python/error-types","Error Types","Complete reference of Python exception types, error handling patterns, and debugging techniques with examples","error-types",107,"content:python:107.error-types.md","python/107.error-types.md","python/107.error-types",{"_path":980,"_dir":8,"_draft":7,"_partial":7,"_locale":8,"title":981,"description":10,"slug":982,"order":983,"icon":14,"_type":15,"_id":984,"_source":17,"_file":985,"_stem":986,"_extension":20},"/python","Introduction","python-tutorial",0,"content:python:index.md","python/index.md","python/index",[798],{"_path":799,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":800,"description":801,"slug":802,"parentId":735,"order":803,"body":989,"_type":15,"_id":804,"_source":17,"_file":805,"_stem":806,"_extension":20},{"type":990,"children":991,"toc":13662},"root",[992,1000,1006,1011,2118,2125,2130,2512,2519,2524,4033,4039,4045,4050,5136,5142,5147,6922,6928,6934,6939,8621,8627,8633,8638,10519,10649,10654,11236,11242,13202,13208,13213,13616,13622,13627,13634,13640,13645,13656],{"type":993,"tag":994,"props":995,"children":996},"element","h1",{"id":802},[997],{"type":998,"value":999},"text","✨ Text Formatting",{"type":993,"tag":1001,"props":1002,"children":1003},"p",{},[1004],{"type":998,"value":1005},"Text formatting in Python allows you to create professional, readable output by controlling how data appears in strings. Using f-strings, format methods, and formatting specifications, you can align text, format numbers, and create polished user interfaces.",{"type":993,"tag":1001,"props":1007,"children":1008},{},[1009],{"type":998,"value":1010},"Think of text formatting as the typography of your programs - it transforms raw data into visually appealing, organized information that users can easily read and understand.",{"type":993,"tag":1012,"props":1013,"children":1014},"code-try",{},[1015],{"type":993,"tag":1016,"props":1017,"children":1020},"pre",{"className":1018,"code":1019,"language":6,"meta":8,"style":8},"language-python shiki shiki-themes github-light github-dark","# F-string formatting basics\nname = \"Alice\"\nage = 30\ncity = \"New York\"\nprice = 19.99\ntax_rate = 0.08575\n\n# Simple variable insertion and expressions\ngreeting = f\"Hello, {name}! You are {age} years old.\"\nprint(greeting)\nprint(f\"Next year, {name} will be {age + 1} years old.\")\nprint(f\"{name} lives in {city} and is {age} years old.\")\n\n# Number formatting\ntotal = price * (1 + tax_rate)\nprint(f\"Price: ${price:.2f}\")\nprint(f\"Tax rate: {tax_rate:.1%}\")\nprint(f\"Total: ${total:.2f}\")\n\n# Integer formatting with separators\npopulation = 8419000\nprint(f\"NYC Population: {population:,}\")\nprint(f\"Scientific notation: {population:.2e}\")\n\n# Text alignment\nitems = [\n    (\"Laptop\", 999.99),\n    (\"Mouse\", 29.99),\n    (\"Keyboard\", 79.99),\n    (\"Monitor\", 249.99)\n]\n\nprint(\"\\nProduct Report\")\nprint(\"-\" * 25)\n\nfor product, price in items:\n    print(f\"{product:\u003C12} ${price:>8.2f}\")\n\nprint(\"-\" * 25)\ntotal = sum(price for _, price in items)\nprint(f\"{'Total':\u003C12} ${total:>8.2f}\")\n",[1021],{"type":993,"tag":1022,"props":1023,"children":1024},"code",{"__ignoreMap":8},[1025,1036,1057,1075,1092,1109,1126,1134,1142,1202,1215,1282,1357,1364,1372,1414,1460,1506,1551,1558,1566,1583,1629,1674,1681,1689,1706,1734,1759,1784,1809,1817,1824,1853,1883,1890,1913,1981,1988,2015,2054],{"type":993,"tag":1026,"props":1027,"children":1029},"span",{"class":1028,"line":12},"line",[1030],{"type":993,"tag":1026,"props":1031,"children":1033},{"style":1032},"--shiki-default:#6A737D;--shiki-app-dark-mode:#6A737D",[1034],{"type":998,"value":1035},"# F-string formatting basics\n",{"type":993,"tag":1026,"props":1037,"children":1038},{"class":1028,"line":27},[1039,1045,1051],{"type":993,"tag":1026,"props":1040,"children":1042},{"style":1041},"--shiki-default:#24292E;--shiki-app-dark-mode:#E1E4E8",[1043],{"type":998,"value":1044},"name ",{"type":993,"tag":1026,"props":1046,"children":1048},{"style":1047},"--shiki-default:#D73A49;--shiki-app-dark-mode:#F97583",[1049],{"type":998,"value":1050},"=",{"type":993,"tag":1026,"props":1052,"children":1054},{"style":1053},"--shiki-default:#032F62;--shiki-app-dark-mode:#9ECBFF",[1055],{"type":998,"value":1056}," \"Alice\"\n",{"type":993,"tag":1026,"props":1058,"children":1059},{"class":1028,"line":36},[1060,1065,1069],{"type":993,"tag":1026,"props":1061,"children":1062},{"style":1041},[1063],{"type":998,"value":1064},"age ",{"type":993,"tag":1026,"props":1066,"children":1067},{"style":1047},[1068],{"type":998,"value":1050},{"type":993,"tag":1026,"props":1070,"children":1072},{"style":1071},"--shiki-default:#005CC5;--shiki-app-dark-mode:#79B8FF",[1073],{"type":998,"value":1074}," 30\n",{"type":993,"tag":1026,"props":1076,"children":1077},{"class":1028,"line":45},[1078,1083,1087],{"type":993,"tag":1026,"props":1079,"children":1080},{"style":1041},[1081],{"type":998,"value":1082},"city ",{"type":993,"tag":1026,"props":1084,"children":1085},{"style":1047},[1086],{"type":998,"value":1050},{"type":993,"tag":1026,"props":1088,"children":1089},{"style":1053},[1090],{"type":998,"value":1091}," \"New York\"\n",{"type":993,"tag":1026,"props":1093,"children":1094},{"class":1028,"line":54},[1095,1100,1104],{"type":993,"tag":1026,"props":1096,"children":1097},{"style":1041},[1098],{"type":998,"value":1099},"price ",{"type":993,"tag":1026,"props":1101,"children":1102},{"style":1047},[1103],{"type":998,"value":1050},{"type":993,"tag":1026,"props":1105,"children":1106},{"style":1071},[1107],{"type":998,"value":1108}," 19.99\n",{"type":993,"tag":1026,"props":1110,"children":1111},{"class":1028,"line":63},[1112,1117,1121],{"type":993,"tag":1026,"props":1113,"children":1114},{"style":1041},[1115],{"type":998,"value":1116},"tax_rate ",{"type":993,"tag":1026,"props":1118,"children":1119},{"style":1047},[1120],{"type":998,"value":1050},{"type":993,"tag":1026,"props":1122,"children":1123},{"style":1071},[1124],{"type":998,"value":1125}," 0.08575\n",{"type":993,"tag":1026,"props":1127,"children":1128},{"class":1028,"line":72},[1129],{"type":993,"tag":1026,"props":1130,"children":1131},{"emptyLinePlaceholder":13},[1132],{"type":998,"value":1133},"\n",{"type":993,"tag":1026,"props":1135,"children":1136},{"class":1028,"line":81},[1137],{"type":993,"tag":1026,"props":1138,"children":1139},{"style":1032},[1140],{"type":998,"value":1141},"# Simple variable insertion and expressions\n",{"type":993,"tag":1026,"props":1143,"children":1144},{"class":1028,"line":91},[1145,1150,1154,1159,1164,1169,1174,1179,1184,1188,1193,1197],{"type":993,"tag":1026,"props":1146,"children":1147},{"style":1041},[1148],{"type":998,"value":1149},"greeting ",{"type":993,"tag":1026,"props":1151,"children":1152},{"style":1047},[1153],{"type":998,"value":1050},{"type":993,"tag":1026,"props":1155,"children":1156},{"style":1047},[1157],{"type":998,"value":1158}," f",{"type":993,"tag":1026,"props":1160,"children":1161},{"style":1053},[1162],{"type":998,"value":1163},"\"Hello, ",{"type":993,"tag":1026,"props":1165,"children":1166},{"style":1071},[1167],{"type":998,"value":1168},"{",{"type":993,"tag":1026,"props":1170,"children":1171},{"style":1041},[1172],{"type":998,"value":1173},"name",{"type":993,"tag":1026,"props":1175,"children":1176},{"style":1071},[1177],{"type":998,"value":1178},"}",{"type":993,"tag":1026,"props":1180,"children":1181},{"style":1053},[1182],{"type":998,"value":1183},"! You are ",{"type":993,"tag":1026,"props":1185,"children":1186},{"style":1071},[1187],{"type":998,"value":1168},{"type":993,"tag":1026,"props":1189,"children":1190},{"style":1041},[1191],{"type":998,"value":1192},"age",{"type":993,"tag":1026,"props":1194,"children":1195},{"style":1071},[1196],{"type":998,"value":1178},{"type":993,"tag":1026,"props":1198,"children":1199},{"style":1053},[1200],{"type":998,"value":1201}," years old.\"\n",{"type":993,"tag":1026,"props":1203,"children":1204},{"class":1028,"line":100},[1205,1210],{"type":993,"tag":1026,"props":1206,"children":1207},{"style":1071},[1208],{"type":998,"value":1209},"print",{"type":993,"tag":1026,"props":1211,"children":1212},{"style":1041},[1213],{"type":998,"value":1214},"(greeting)\n",{"type":993,"tag":1026,"props":1216,"children":1217},{"class":1028,"line":109},[1218,1222,1227,1232,1237,1241,1245,1249,1254,1258,1262,1267,1272,1277],{"type":993,"tag":1026,"props":1219,"children":1220},{"style":1071},[1221],{"type":998,"value":1209},{"type":993,"tag":1026,"props":1223,"children":1224},{"style":1041},[1225],{"type":998,"value":1226},"(",{"type":993,"tag":1026,"props":1228,"children":1229},{"style":1047},[1230],{"type":998,"value":1231},"f",{"type":993,"tag":1026,"props":1233,"children":1234},{"style":1053},[1235],{"type":998,"value":1236},"\"Next year, ",{"type":993,"tag":1026,"props":1238,"children":1239},{"style":1071},[1240],{"type":998,"value":1168},{"type":993,"tag":1026,"props":1242,"children":1243},{"style":1041},[1244],{"type":998,"value":1173},{"type":993,"tag":1026,"props":1246,"children":1247},{"style":1071},[1248],{"type":998,"value":1178},{"type":993,"tag":1026,"props":1250,"children":1251},{"style":1053},[1252],{"type":998,"value":1253}," will be ",{"type":993,"tag":1026,"props":1255,"children":1256},{"style":1071},[1257],{"type":998,"value":1168},{"type":993,"tag":1026,"props":1259,"children":1260},{"style":1041},[1261],{"type":998,"value":1064},{"type":993,"tag":1026,"props":1263,"children":1264},{"style":1047},[1265],{"type":998,"value":1266},"+",{"type":993,"tag":1026,"props":1268,"children":1269},{"style":1071},[1270],{"type":998,"value":1271}," 1}",{"type":993,"tag":1026,"props":1273,"children":1274},{"style":1053},[1275],{"type":998,"value":1276}," years old.\"",{"type":993,"tag":1026,"props":1278,"children":1279},{"style":1041},[1280],{"type":998,"value":1281},")\n",{"type":993,"tag":1026,"props":1283,"children":1284},{"class":1028,"line":118},[1285,1289,1293,1297,1302,1306,1310,1314,1319,1323,1328,1332,1337,1341,1345,1349,1353],{"type":993,"tag":1026,"props":1286,"children":1287},{"style":1071},[1288],{"type":998,"value":1209},{"type":993,"tag":1026,"props":1290,"children":1291},{"style":1041},[1292],{"type":998,"value":1226},{"type":993,"tag":1026,"props":1294,"children":1295},{"style":1047},[1296],{"type":998,"value":1231},{"type":993,"tag":1026,"props":1298,"children":1299},{"style":1053},[1300],{"type":998,"value":1301},"\"",{"type":993,"tag":1026,"props":1303,"children":1304},{"style":1071},[1305],{"type":998,"value":1168},{"type":993,"tag":1026,"props":1307,"children":1308},{"style":1041},[1309],{"type":998,"value":1173},{"type":993,"tag":1026,"props":1311,"children":1312},{"style":1071},[1313],{"type":998,"value":1178},{"type":993,"tag":1026,"props":1315,"children":1316},{"style":1053},[1317],{"type":998,"value":1318}," lives in ",{"type":993,"tag":1026,"props":1320,"children":1321},{"style":1071},[1322],{"type":998,"value":1168},{"type":993,"tag":1026,"props":1324,"children":1325},{"style":1041},[1326],{"type":998,"value":1327},"city",{"type":993,"tag":1026,"props":1329,"children":1330},{"style":1071},[1331],{"type":998,"value":1178},{"type":993,"tag":1026,"props":1333,"children":1334},{"style":1053},[1335],{"type":998,"value":1336}," and is ",{"type":993,"tag":1026,"props":1338,"children":1339},{"style":1071},[1340],{"type":998,"value":1168},{"type":993,"tag":1026,"props":1342,"children":1343},{"style":1041},[1344],{"type":998,"value":1192},{"type":993,"tag":1026,"props":1346,"children":1347},{"style":1071},[1348],{"type":998,"value":1178},{"type":993,"tag":1026,"props":1350,"children":1351},{"style":1053},[1352],{"type":998,"value":1276},{"type":993,"tag":1026,"props":1354,"children":1355},{"style":1041},[1356],{"type":998,"value":1281},{"type":993,"tag":1026,"props":1358,"children":1359},{"class":1028,"line":127},[1360],{"type":993,"tag":1026,"props":1361,"children":1362},{"emptyLinePlaceholder":13},[1363],{"type":998,"value":1133},{"type":993,"tag":1026,"props":1365,"children":1366},{"class":1028,"line":136},[1367],{"type":993,"tag":1026,"props":1368,"children":1369},{"style":1032},[1370],{"type":998,"value":1371},"# Number formatting\n",{"type":993,"tag":1026,"props":1373,"children":1374},{"class":1028,"line":146},[1375,1380,1384,1389,1394,1399,1404,1409],{"type":993,"tag":1026,"props":1376,"children":1377},{"style":1041},[1378],{"type":998,"value":1379},"total ",{"type":993,"tag":1026,"props":1381,"children":1382},{"style":1047},[1383],{"type":998,"value":1050},{"type":993,"tag":1026,"props":1385,"children":1386},{"style":1041},[1387],{"type":998,"value":1388}," price ",{"type":993,"tag":1026,"props":1390,"children":1391},{"style":1047},[1392],{"type":998,"value":1393},"*",{"type":993,"tag":1026,"props":1395,"children":1396},{"style":1041},[1397],{"type":998,"value":1398}," (",{"type":993,"tag":1026,"props":1400,"children":1401},{"style":1071},[1402],{"type":998,"value":1403},"1",{"type":993,"tag":1026,"props":1405,"children":1406},{"style":1047},[1407],{"type":998,"value":1408}," +",{"type":993,"tag":1026,"props":1410,"children":1411},{"style":1041},[1412],{"type":998,"value":1413}," tax_rate)\n",{"type":993,"tag":1026,"props":1415,"children":1416},{"class":1028,"line":155},[1417,1421,1425,1429,1434,1438,1443,1448,1452,1456],{"type":993,"tag":1026,"props":1418,"children":1419},{"style":1071},[1420],{"type":998,"value":1209},{"type":993,"tag":1026,"props":1422,"children":1423},{"style":1041},[1424],{"type":998,"value":1226},{"type":993,"tag":1026,"props":1426,"children":1427},{"style":1047},[1428],{"type":998,"value":1231},{"type":993,"tag":1026,"props":1430,"children":1431},{"style":1053},[1432],{"type":998,"value":1433},"\"Price: $",{"type":993,"tag":1026,"props":1435,"children":1436},{"style":1071},[1437],{"type":998,"value":1168},{"type":993,"tag":1026,"props":1439,"children":1440},{"style":1041},[1441],{"type":998,"value":1442},"price",{"type":993,"tag":1026,"props":1444,"children":1445},{"style":1047},[1446],{"type":998,"value":1447},":.2f",{"type":993,"tag":1026,"props":1449,"children":1450},{"style":1071},[1451],{"type":998,"value":1178},{"type":993,"tag":1026,"props":1453,"children":1454},{"style":1053},[1455],{"type":998,"value":1301},{"type":993,"tag":1026,"props":1457,"children":1458},{"style":1041},[1459],{"type":998,"value":1281},{"type":993,"tag":1026,"props":1461,"children":1462},{"class":1028,"line":164},[1463,1467,1471,1475,1480,1484,1489,1494,1498,1502],{"type":993,"tag":1026,"props":1464,"children":1465},{"style":1071},[1466],{"type":998,"value":1209},{"type":993,"tag":1026,"props":1468,"children":1469},{"style":1041},[1470],{"type":998,"value":1226},{"type":993,"tag":1026,"props":1472,"children":1473},{"style":1047},[1474],{"type":998,"value":1231},{"type":993,"tag":1026,"props":1476,"children":1477},{"style":1053},[1478],{"type":998,"value":1479},"\"Tax rate: ",{"type":993,"tag":1026,"props":1481,"children":1482},{"style":1071},[1483],{"type":998,"value":1168},{"type":993,"tag":1026,"props":1485,"children":1486},{"style":1041},[1487],{"type":998,"value":1488},"tax_rate",{"type":993,"tag":1026,"props":1490,"children":1491},{"style":1047},[1492],{"type":998,"value":1493},":.1%",{"type":993,"tag":1026,"props":1495,"children":1496},{"style":1071},[1497],{"type":998,"value":1178},{"type":993,"tag":1026,"props":1499,"children":1500},{"style":1053},[1501],{"type":998,"value":1301},{"type":993,"tag":1026,"props":1503,"children":1504},{"style":1041},[1505],{"type":998,"value":1281},{"type":993,"tag":1026,"props":1507,"children":1508},{"class":1028,"line":173},[1509,1513,1517,1521,1526,1530,1535,1539,1543,1547],{"type":993,"tag":1026,"props":1510,"children":1511},{"style":1071},[1512],{"type":998,"value":1209},{"type":993,"tag":1026,"props":1514,"children":1515},{"style":1041},[1516],{"type":998,"value":1226},{"type":993,"tag":1026,"props":1518,"children":1519},{"style":1047},[1520],{"type":998,"value":1231},{"type":993,"tag":1026,"props":1522,"children":1523},{"style":1053},[1524],{"type":998,"value":1525},"\"Total: $",{"type":993,"tag":1026,"props":1527,"children":1528},{"style":1071},[1529],{"type":998,"value":1168},{"type":993,"tag":1026,"props":1531,"children":1532},{"style":1041},[1533],{"type":998,"value":1534},"total",{"type":993,"tag":1026,"props":1536,"children":1537},{"style":1047},[1538],{"type":998,"value":1447},{"type":993,"tag":1026,"props":1540,"children":1541},{"style":1071},[1542],{"type":998,"value":1178},{"type":993,"tag":1026,"props":1544,"children":1545},{"style":1053},[1546],{"type":998,"value":1301},{"type":993,"tag":1026,"props":1548,"children":1549},{"style":1041},[1550],{"type":998,"value":1281},{"type":993,"tag":1026,"props":1552,"children":1553},{"class":1028,"line":182},[1554],{"type":993,"tag":1026,"props":1555,"children":1556},{"emptyLinePlaceholder":13},[1557],{"type":998,"value":1133},{"type":993,"tag":1026,"props":1559,"children":1560},{"class":1028,"line":191},[1561],{"type":993,"tag":1026,"props":1562,"children":1563},{"style":1032},[1564],{"type":998,"value":1565},"# Integer formatting with separators\n",{"type":993,"tag":1026,"props":1567,"children":1568},{"class":1028,"line":201},[1569,1574,1578],{"type":993,"tag":1026,"props":1570,"children":1571},{"style":1041},[1572],{"type":998,"value":1573},"population ",{"type":993,"tag":1026,"props":1575,"children":1576},{"style":1047},[1577],{"type":998,"value":1050},{"type":993,"tag":1026,"props":1579,"children":1580},{"style":1071},[1581],{"type":998,"value":1582}," 8419000\n",{"type":993,"tag":1026,"props":1584,"children":1585},{"class":1028,"line":210},[1586,1590,1594,1598,1603,1607,1612,1617,1621,1625],{"type":993,"tag":1026,"props":1587,"children":1588},{"style":1071},[1589],{"type":998,"value":1209},{"type":993,"tag":1026,"props":1591,"children":1592},{"style":1041},[1593],{"type":998,"value":1226},{"type":993,"tag":1026,"props":1595,"children":1596},{"style":1047},[1597],{"type":998,"value":1231},{"type":993,"tag":1026,"props":1599,"children":1600},{"style":1053},[1601],{"type":998,"value":1602},"\"NYC Population: ",{"type":993,"tag":1026,"props":1604,"children":1605},{"style":1071},[1606],{"type":998,"value":1168},{"type":993,"tag":1026,"props":1608,"children":1609},{"style":1041},[1610],{"type":998,"value":1611},"population",{"type":993,"tag":1026,"props":1613,"children":1614},{"style":1047},[1615],{"type":998,"value":1616},":,",{"type":993,"tag":1026,"props":1618,"children":1619},{"style":1071},[1620],{"type":998,"value":1178},{"type":993,"tag":1026,"props":1622,"children":1623},{"style":1053},[1624],{"type":998,"value":1301},{"type":993,"tag":1026,"props":1626,"children":1627},{"style":1041},[1628],{"type":998,"value":1281},{"type":993,"tag":1026,"props":1630,"children":1631},{"class":1028,"line":219},[1632,1636,1640,1644,1649,1653,1657,1662,1666,1670],{"type":993,"tag":1026,"props":1633,"children":1634},{"style":1071},[1635],{"type":998,"value":1209},{"type":993,"tag":1026,"props":1637,"children":1638},{"style":1041},[1639],{"type":998,"value":1226},{"type":993,"tag":1026,"props":1641,"children":1642},{"style":1047},[1643],{"type":998,"value":1231},{"type":993,"tag":1026,"props":1645,"children":1646},{"style":1053},[1647],{"type":998,"value":1648},"\"Scientific notation: ",{"type":993,"tag":1026,"props":1650,"children":1651},{"style":1071},[1652],{"type":998,"value":1168},{"type":993,"tag":1026,"props":1654,"children":1655},{"style":1041},[1656],{"type":998,"value":1611},{"type":993,"tag":1026,"props":1658,"children":1659},{"style":1047},[1660],{"type":998,"value":1661},":.2e",{"type":993,"tag":1026,"props":1663,"children":1664},{"style":1071},[1665],{"type":998,"value":1178},{"type":993,"tag":1026,"props":1667,"children":1668},{"style":1053},[1669],{"type":998,"value":1301},{"type":993,"tag":1026,"props":1671,"children":1672},{"style":1041},[1673],{"type":998,"value":1281},{"type":993,"tag":1026,"props":1675,"children":1676},{"class":1028,"line":228},[1677],{"type":993,"tag":1026,"props":1678,"children":1679},{"emptyLinePlaceholder":13},[1680],{"type":998,"value":1133},{"type":993,"tag":1026,"props":1682,"children":1683},{"class":1028,"line":238},[1684],{"type":993,"tag":1026,"props":1685,"children":1686},{"style":1032},[1687],{"type":998,"value":1688},"# Text alignment\n",{"type":993,"tag":1026,"props":1690,"children":1691},{"class":1028,"line":247},[1692,1697,1701],{"type":993,"tag":1026,"props":1693,"children":1694},{"style":1041},[1695],{"type":998,"value":1696},"items ",{"type":993,"tag":1026,"props":1698,"children":1699},{"style":1047},[1700],{"type":998,"value":1050},{"type":993,"tag":1026,"props":1702,"children":1703},{"style":1041},[1704],{"type":998,"value":1705}," [\n",{"type":993,"tag":1026,"props":1707,"children":1708},{"class":1028,"line":256},[1709,1714,1719,1724,1729],{"type":993,"tag":1026,"props":1710,"children":1711},{"style":1041},[1712],{"type":998,"value":1713},"    (",{"type":993,"tag":1026,"props":1715,"children":1716},{"style":1053},[1717],{"type":998,"value":1718},"\"Laptop\"",{"type":993,"tag":1026,"props":1720,"children":1721},{"style":1041},[1722],{"type":998,"value":1723},", ",{"type":993,"tag":1026,"props":1725,"children":1726},{"style":1071},[1727],{"type":998,"value":1728},"999.99",{"type":993,"tag":1026,"props":1730,"children":1731},{"style":1041},[1732],{"type":998,"value":1733},"),\n",{"type":993,"tag":1026,"props":1735,"children":1736},{"class":1028,"line":265},[1737,1741,1746,1750,1755],{"type":993,"tag":1026,"props":1738,"children":1739},{"style":1041},[1740],{"type":998,"value":1713},{"type":993,"tag":1026,"props":1742,"children":1743},{"style":1053},[1744],{"type":998,"value":1745},"\"Mouse\"",{"type":993,"tag":1026,"props":1747,"children":1748},{"style":1041},[1749],{"type":998,"value":1723},{"type":993,"tag":1026,"props":1751,"children":1752},{"style":1071},[1753],{"type":998,"value":1754},"29.99",{"type":993,"tag":1026,"props":1756,"children":1757},{"style":1041},[1758],{"type":998,"value":1733},{"type":993,"tag":1026,"props":1760,"children":1761},{"class":1028,"line":274},[1762,1766,1771,1775,1780],{"type":993,"tag":1026,"props":1763,"children":1764},{"style":1041},[1765],{"type":998,"value":1713},{"type":993,"tag":1026,"props":1767,"children":1768},{"style":1053},[1769],{"type":998,"value":1770},"\"Keyboard\"",{"type":993,"tag":1026,"props":1772,"children":1773},{"style":1041},[1774],{"type":998,"value":1723},{"type":993,"tag":1026,"props":1776,"children":1777},{"style":1071},[1778],{"type":998,"value":1779},"79.99",{"type":993,"tag":1026,"props":1781,"children":1782},{"style":1041},[1783],{"type":998,"value":1733},{"type":993,"tag":1026,"props":1785,"children":1786},{"class":1028,"line":284},[1787,1791,1796,1800,1805],{"type":993,"tag":1026,"props":1788,"children":1789},{"style":1041},[1790],{"type":998,"value":1713},{"type":993,"tag":1026,"props":1792,"children":1793},{"style":1053},[1794],{"type":998,"value":1795},"\"Monitor\"",{"type":993,"tag":1026,"props":1797,"children":1798},{"style":1041},[1799],{"type":998,"value":1723},{"type":993,"tag":1026,"props":1801,"children":1802},{"style":1071},[1803],{"type":998,"value":1804},"249.99",{"type":993,"tag":1026,"props":1806,"children":1807},{"style":1041},[1808],{"type":998,"value":1281},{"type":993,"tag":1026,"props":1810,"children":1811},{"class":1028,"line":293},[1812],{"type":993,"tag":1026,"props":1813,"children":1814},{"style":1041},[1815],{"type":998,"value":1816},"]\n",{"type":993,"tag":1026,"props":1818,"children":1819},{"class":1028,"line":302},[1820],{"type":993,"tag":1026,"props":1821,"children":1822},{"emptyLinePlaceholder":13},[1823],{"type":998,"value":1133},{"type":993,"tag":1026,"props":1825,"children":1826},{"class":1028,"line":311},[1827,1831,1835,1839,1844,1849],{"type":993,"tag":1026,"props":1828,"children":1829},{"style":1071},[1830],{"type":998,"value":1209},{"type":993,"tag":1026,"props":1832,"children":1833},{"style":1041},[1834],{"type":998,"value":1226},{"type":993,"tag":1026,"props":1836,"children":1837},{"style":1053},[1838],{"type":998,"value":1301},{"type":993,"tag":1026,"props":1840,"children":1841},{"style":1071},[1842],{"type":998,"value":1843},"\\n",{"type":993,"tag":1026,"props":1845,"children":1846},{"style":1053},[1847],{"type":998,"value":1848},"Product Report\"",{"type":993,"tag":1026,"props":1850,"children":1851},{"style":1041},[1852],{"type":998,"value":1281},{"type":993,"tag":1026,"props":1854,"children":1855},{"class":1028,"line":320},[1856,1860,1864,1869,1874,1879],{"type":993,"tag":1026,"props":1857,"children":1858},{"style":1071},[1859],{"type":998,"value":1209},{"type":993,"tag":1026,"props":1861,"children":1862},{"style":1041},[1863],{"type":998,"value":1226},{"type":993,"tag":1026,"props":1865,"children":1866},{"style":1053},[1867],{"type":998,"value":1868},"\"-\"",{"type":993,"tag":1026,"props":1870,"children":1871},{"style":1047},[1872],{"type":998,"value":1873}," *",{"type":993,"tag":1026,"props":1875,"children":1876},{"style":1071},[1877],{"type":998,"value":1878}," 25",{"type":993,"tag":1026,"props":1880,"children":1881},{"style":1041},[1882],{"type":998,"value":1281},{"type":993,"tag":1026,"props":1884,"children":1885},{"class":1028,"line":329},[1886],{"type":993,"tag":1026,"props":1887,"children":1888},{"emptyLinePlaceholder":13},[1889],{"type":998,"value":1133},{"type":993,"tag":1026,"props":1891,"children":1892},{"class":1028,"line":338},[1893,1898,1903,1908],{"type":993,"tag":1026,"props":1894,"children":1895},{"style":1047},[1896],{"type":998,"value":1897},"for",{"type":993,"tag":1026,"props":1899,"children":1900},{"style":1041},[1901],{"type":998,"value":1902}," product, price ",{"type":993,"tag":1026,"props":1904,"children":1905},{"style":1047},[1906],{"type":998,"value":1907},"in",{"type":993,"tag":1026,"props":1909,"children":1910},{"style":1041},[1911],{"type":998,"value":1912}," items:\n",{"type":993,"tag":1026,"props":1914,"children":1915},{"class":1028,"line":347},[1916,1921,1925,1929,1933,1937,1942,1947,1951,1956,1960,1964,1969,1973,1977],{"type":993,"tag":1026,"props":1917,"children":1918},{"style":1071},[1919],{"type":998,"value":1920},"    print",{"type":993,"tag":1026,"props":1922,"children":1923},{"style":1041},[1924],{"type":998,"value":1226},{"type":993,"tag":1026,"props":1926,"children":1927},{"style":1047},[1928],{"type":998,"value":1231},{"type":993,"tag":1026,"props":1930,"children":1931},{"style":1053},[1932],{"type":998,"value":1301},{"type":993,"tag":1026,"props":1934,"children":1935},{"style":1071},[1936],{"type":998,"value":1168},{"type":993,"tag":1026,"props":1938,"children":1939},{"style":1041},[1940],{"type":998,"value":1941},"product",{"type":993,"tag":1026,"props":1943,"children":1944},{"style":1047},[1945],{"type":998,"value":1946},":\u003C12",{"type":993,"tag":1026,"props":1948,"children":1949},{"style":1071},[1950],{"type":998,"value":1178},{"type":993,"tag":1026,"props":1952,"children":1953},{"style":1053},[1954],{"type":998,"value":1955}," $",{"type":993,"tag":1026,"props":1957,"children":1958},{"style":1071},[1959],{"type":998,"value":1168},{"type":993,"tag":1026,"props":1961,"children":1962},{"style":1041},[1963],{"type":998,"value":1442},{"type":993,"tag":1026,"props":1965,"children":1966},{"style":1047},[1967],{"type":998,"value":1968},":>8.2f",{"type":993,"tag":1026,"props":1970,"children":1971},{"style":1071},[1972],{"type":998,"value":1178},{"type":993,"tag":1026,"props":1974,"children":1975},{"style":1053},[1976],{"type":998,"value":1301},{"type":993,"tag":1026,"props":1978,"children":1979},{"style":1041},[1980],{"type":998,"value":1281},{"type":993,"tag":1026,"props":1982,"children":1983},{"class":1028,"line":356},[1984],{"type":993,"tag":1026,"props":1985,"children":1986},{"emptyLinePlaceholder":13},[1987],{"type":998,"value":1133},{"type":993,"tag":1026,"props":1989,"children":1990},{"class":1028,"line":365},[1991,1995,1999,2003,2007,2011],{"type":993,"tag":1026,"props":1992,"children":1993},{"style":1071},[1994],{"type":998,"value":1209},{"type":993,"tag":1026,"props":1996,"children":1997},{"style":1041},[1998],{"type":998,"value":1226},{"type":993,"tag":1026,"props":2000,"children":2001},{"style":1053},[2002],{"type":998,"value":1868},{"type":993,"tag":1026,"props":2004,"children":2005},{"style":1047},[2006],{"type":998,"value":1873},{"type":993,"tag":1026,"props":2008,"children":2009},{"style":1071},[2010],{"type":998,"value":1878},{"type":993,"tag":1026,"props":2012,"children":2013},{"style":1041},[2014],{"type":998,"value":1281},{"type":993,"tag":1026,"props":2016,"children":2017},{"class":1028,"line":374},[2018,2022,2026,2031,2036,2040,2045,2049],{"type":993,"tag":1026,"props":2019,"children":2020},{"style":1041},[2021],{"type":998,"value":1379},{"type":993,"tag":1026,"props":2023,"children":2024},{"style":1047},[2025],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2027,"children":2028},{"style":1071},[2029],{"type":998,"value":2030}," sum",{"type":993,"tag":1026,"props":2032,"children":2033},{"style":1041},[2034],{"type":998,"value":2035},"(price ",{"type":993,"tag":1026,"props":2037,"children":2038},{"style":1047},[2039],{"type":998,"value":1897},{"type":993,"tag":1026,"props":2041,"children":2042},{"style":1041},[2043],{"type":998,"value":2044}," _, price ",{"type":993,"tag":1026,"props":2046,"children":2047},{"style":1047},[2048],{"type":998,"value":1907},{"type":993,"tag":1026,"props":2050,"children":2051},{"style":1041},[2052],{"type":998,"value":2053}," items)\n",{"type":993,"tag":1026,"props":2055,"children":2056},{"class":1028,"line":384},[2057,2061,2065,2069,2073,2077,2082,2086,2090,2094,2098,2102,2106,2110,2114],{"type":993,"tag":1026,"props":2058,"children":2059},{"style":1071},[2060],{"type":998,"value":1209},{"type":993,"tag":1026,"props":2062,"children":2063},{"style":1041},[2064],{"type":998,"value":1226},{"type":993,"tag":1026,"props":2066,"children":2067},{"style":1047},[2068],{"type":998,"value":1231},{"type":993,"tag":1026,"props":2070,"children":2071},{"style":1053},[2072],{"type":998,"value":1301},{"type":993,"tag":1026,"props":2074,"children":2075},{"style":1071},[2076],{"type":998,"value":1168},{"type":993,"tag":1026,"props":2078,"children":2079},{"style":1053},[2080],{"type":998,"value":2081},"'Total'",{"type":993,"tag":1026,"props":2083,"children":2084},{"style":1047},[2085],{"type":998,"value":1946},{"type":993,"tag":1026,"props":2087,"children":2088},{"style":1071},[2089],{"type":998,"value":1178},{"type":993,"tag":1026,"props":2091,"children":2092},{"style":1053},[2093],{"type":998,"value":1955},{"type":993,"tag":1026,"props":2095,"children":2096},{"style":1071},[2097],{"type":998,"value":1168},{"type":993,"tag":1026,"props":2099,"children":2100},{"style":1041},[2101],{"type":998,"value":1534},{"type":993,"tag":1026,"props":2103,"children":2104},{"style":1047},[2105],{"type":998,"value":1968},{"type":993,"tag":1026,"props":2107,"children":2108},{"style":1071},[2109],{"type":998,"value":1178},{"type":993,"tag":1026,"props":2111,"children":2112},{"style":1053},[2113],{"type":998,"value":1301},{"type":993,"tag":1026,"props":2115,"children":2116},{"style":1041},[2117],{"type":998,"value":1281},{"type":993,"tag":2119,"props":2120,"children":2122},"h2",{"id":2121},"understanding-string-formatting",[2123],{"type":998,"value":2124},"🎯 Understanding String Formatting",{"type":993,"tag":1001,"props":2126,"children":2127},{},[2128],{"type":998,"value":2129},"Python provides multiple formatting approaches, each with specific advantages for different use cases and coding styles.",{"type":993,"tag":2131,"props":2132,"children":2136},"info-box",{"emoji":2133,"title":2134,"type":2135},"🔧","Python String Formatting Methods","info",[2137,2146,2154,2210,2218,2267,2275,2417,2425],{"type":993,"tag":1001,"props":2138,"children":2139},{},[2140],{"type":993,"tag":2141,"props":2142,"children":2143},"strong",{},[2144],{"type":998,"value":2145},"Formatting Approaches:",{"type":993,"tag":1001,"props":2147,"children":2148},{},[2149],{"type":993,"tag":2141,"props":2150,"children":2151},{},[2152],{"type":998,"value":2153},"F-String Literals (Python 3.6+):",{"type":993,"tag":2155,"props":2156,"children":2157},"ul",{},[2158,2175,2185,2195],{"type":993,"tag":2159,"props":2160,"children":2161},"li",{},[2162,2167,2169],{"type":993,"tag":2141,"props":2163,"children":2164},{},[2165],{"type":998,"value":2166},"Syntax",{"type":998,"value":2168},": ",{"type":993,"tag":1022,"props":2170,"children":2172},{"className":2171},[],[2173],{"type":998,"value":2174},"f\"Hello {name}!\"",{"type":993,"tag":2159,"props":2176,"children":2177},{},[2178,2183],{"type":993,"tag":2141,"props":2179,"children":2180},{},[2181],{"type":998,"value":2182},"Best For",{"type":998,"value":2184},": Modern code, simple to complex formatting",{"type":993,"tag":2159,"props":2186,"children":2187},{},[2188,2193],{"type":993,"tag":2141,"props":2189,"children":2190},{},[2191],{"type":998,"value":2192},"Advantages",{"type":998,"value":2194},": Readable, fast, supports expressions",{"type":993,"tag":2159,"props":2196,"children":2197},{},[2198,2203,2204],{"type":993,"tag":2141,"props":2199,"children":2200},{},[2201],{"type":998,"value":2202},"Example",{"type":998,"value":2168},{"type":993,"tag":1022,"props":2205,"children":2207},{"className":2206},[],[2208],{"type":998,"value":2209},"f\"Score: {points}/{total} ({percentage:.1%})\"",{"type":993,"tag":1001,"props":2211,"children":2212},{},[2213],{"type":993,"tag":2141,"props":2214,"children":2215},{},[2216],{"type":998,"value":2217},"Format Method:",{"type":993,"tag":2155,"props":2219,"children":2220},{},[2221,2235,2244,2253],{"type":993,"tag":2159,"props":2222,"children":2223},{},[2224,2228,2229],{"type":993,"tag":2141,"props":2225,"children":2226},{},[2227],{"type":998,"value":2166},{"type":998,"value":2168},{"type":993,"tag":1022,"props":2230,"children":2232},{"className":2231},[],[2233],{"type":998,"value":2234},"\"Hello {}!\".format(name)",{"type":993,"tag":2159,"props":2236,"children":2237},{},[2238,2242],{"type":993,"tag":2141,"props":2239,"children":2240},{},[2241],{"type":998,"value":2182},{"type":998,"value":2243},": Template strings, older Python versions",{"type":993,"tag":2159,"props":2245,"children":2246},{},[2247,2251],{"type":993,"tag":2141,"props":2248,"children":2249},{},[2250],{"type":998,"value":2192},{"type":998,"value":2252},": Reusable templates, positional/named arguments",{"type":993,"tag":2159,"props":2254,"children":2255},{},[2256,2260,2261],{"type":993,"tag":2141,"props":2257,"children":2258},{},[2259],{"type":998,"value":2202},{"type":998,"value":2168},{"type":993,"tag":1022,"props":2262,"children":2264},{"className":2263},[],[2265],{"type":998,"value":2266},"\"Score: {}/{} ({:.1%})\".format(points, total, percentage)",{"type":993,"tag":1001,"props":2268,"children":2269},{},[2270],{"type":993,"tag":2141,"props":2271,"children":2272},{},[2273],{"type":998,"value":2274},"Format Specifications:",{"type":993,"tag":2155,"props":2276,"children":2277},{},[2278,2318,2328,2345,2385],{"type":993,"tag":2159,"props":2279,"children":2280},{},[2281,2286,2287,2293,2295,2301,2303,2309,2311,2316],{"type":993,"tag":2141,"props":2282,"children":2283},{},[2284],{"type":998,"value":2285},"Alignment",{"type":998,"value":2168},{"type":993,"tag":1022,"props":2288,"children":2290},{"className":2289},[],[2291],{"type":998,"value":2292},"\u003C",{"type":998,"value":2294}," (left), ",{"type":993,"tag":1022,"props":2296,"children":2298},{"className":2297},[],[2299],{"type":998,"value":2300},">",{"type":998,"value":2302}," (right), ",{"type":993,"tag":1022,"props":2304,"children":2306},{"className":2305},[],[2307],{"type":998,"value":2308},"^",{"type":998,"value":2310}," (center), ",{"type":993,"tag":1022,"props":2312,"children":2314},{"className":2313},[],[2315],{"type":998,"value":1050},{"type":998,"value":2317}," (padding)",{"type":993,"tag":2159,"props":2319,"children":2320},{},[2321,2326],{"type":993,"tag":2141,"props":2322,"children":2323},{},[2324],{"type":998,"value":2325},"Width",{"type":998,"value":2327},": Number specifies minimum field width",{"type":993,"tag":2159,"props":2329,"children":2330},{},[2331,2336,2337,2343],{"type":993,"tag":2141,"props":2332,"children":2333},{},[2334],{"type":998,"value":2335},"Precision",{"type":998,"value":2168},{"type":993,"tag":1022,"props":2338,"children":2340},{"className":2339},[],[2341],{"type":998,"value":2342},".n",{"type":998,"value":2344}," controls decimal places for floats",{"type":993,"tag":2159,"props":2346,"children":2347},{},[2348,2353,2354,2360,2362,2367,2369,2375,2377,2383],{"type":993,"tag":2141,"props":2349,"children":2350},{},[2351],{"type":998,"value":2352},"Type",{"type":998,"value":2168},{"type":993,"tag":1022,"props":2355,"children":2357},{"className":2356},[],[2358],{"type":998,"value":2359},"d",{"type":998,"value":2361}," (integer), ",{"type":993,"tag":1022,"props":2363,"children":2365},{"className":2364},[],[2366],{"type":998,"value":1231},{"type":998,"value":2368}," (float), ",{"type":993,"tag":1022,"props":2370,"children":2372},{"className":2371},[],[2373],{"type":998,"value":2374},"s",{"type":998,"value":2376}," (string), ",{"type":993,"tag":1022,"props":2378,"children":2380},{"className":2379},[],[2381],{"type":998,"value":2382},"%",{"type":998,"value":2384}," (percentage)",{"type":993,"tag":2159,"props":2386,"children":2387},{},[2388,2393,2394,2399,2401,2407,2409,2415],{"type":993,"tag":2141,"props":2389,"children":2390},{},[2391],{"type":998,"value":2392},"Sign",{"type":998,"value":2168},{"type":993,"tag":1022,"props":2395,"children":2397},{"className":2396},[],[2398],{"type":998,"value":1266},{"type":998,"value":2400}," (always show), ",{"type":993,"tag":1022,"props":2402,"children":2404},{"className":2403},[],[2405],{"type":998,"value":2406},"-",{"type":998,"value":2408}," (negative only), ",{"type":993,"tag":1022,"props":2410,"children":2412},{"className":2411},[],[2413],{"type":998,"value":2414}," ",{"type":998,"value":2416}," (space for positive)",{"type":993,"tag":1001,"props":2418,"children":2419},{},[2420],{"type":993,"tag":2141,"props":2421,"children":2422},{},[2423],{"type":998,"value":2424},"Common Formatting Patterns:",{"type":993,"tag":2155,"props":2426,"children":2427},{},[2428,2445,2462,2479,2495],{"type":993,"tag":2159,"props":2429,"children":2430},{},[2431,2436,2437,2443],{"type":993,"tag":2141,"props":2432,"children":2433},{},[2434],{"type":998,"value":2435},"Currency",{"type":998,"value":2168},{"type":993,"tag":1022,"props":2438,"children":2440},{"className":2439},[],[2441],{"type":998,"value":2442},"f\"${amount:.2f}\"",{"type":998,"value":2444}," → $19.99",{"type":993,"tag":2159,"props":2446,"children":2447},{},[2448,2453,2454,2460],{"type":993,"tag":2141,"props":2449,"children":2450},{},[2451],{"type":998,"value":2452},"Percentage",{"type":998,"value":2168},{"type":993,"tag":1022,"props":2455,"children":2457},{"className":2456},[],[2458],{"type":998,"value":2459},"f\"{rate:.1%}\"",{"type":998,"value":2461}," → 15.3%",{"type":993,"tag":2159,"props":2463,"children":2464},{},[2465,2470,2471,2477],{"type":993,"tag":2141,"props":2466,"children":2467},{},[2468],{"type":998,"value":2469},"Padding",{"type":998,"value":2168},{"type":993,"tag":1022,"props":2472,"children":2474},{"className":2473},[],[2475],{"type":998,"value":2476},"f\"{number:05d}\"",{"type":998,"value":2478}," → 00042",{"type":993,"tag":2159,"props":2480,"children":2481},{},[2482,2486,2487,2493],{"type":993,"tag":2141,"props":2483,"children":2484},{},[2485],{"type":998,"value":2285},{"type":998,"value":2168},{"type":993,"tag":1022,"props":2488,"children":2490},{"className":2489},[],[2491],{"type":998,"value":2492},"f\"{text:>10}\"",{"type":998,"value":2494}," → \"     hello\"",{"type":993,"tag":2159,"props":2496,"children":2497},{},[2498,2503,2504,2510],{"type":993,"tag":2141,"props":2499,"children":2500},{},[2501],{"type":998,"value":2502},"Thousands",{"type":998,"value":2168},{"type":993,"tag":1022,"props":2505,"children":2507},{"className":2506},[],[2508],{"type":998,"value":2509},"f\"{number:,}\"",{"type":998,"value":2511}," → 1,234,567",{"type":993,"tag":2513,"props":2514,"children":2516},"h3",{"id":2515},"advanced-f-string-techniques",[2517],{"type":998,"value":2518},"Advanced F-String Techniques",{"type":993,"tag":1001,"props":2520,"children":2521},{},[2522],{"type":998,"value":2523},"F-strings offer powerful features for complex formatting scenarios and dynamic string construction.",{"type":993,"tag":1012,"props":2525,"children":2526},{},[2527],{"type":993,"tag":1016,"props":2528,"children":2530},{"className":1018,"code":2529,"language":6,"meta":8,"style":8},"import datetime\n\n# Variable insertion and expressions\nuser = \"Alice\"\nscore = 95\nmax_score = 100\ngrade_letter = \"A\"\n\n# Expression evaluation and function calls\npercentage = f\"Score: {score/max_score:.1%}\"\nprint(percentage)\n\nnow = datetime.datetime.now()\ntimestamp = f\"Generated on {now.strftime('%Y-%m-%d at %H:%M:%S')}\"\nprint(timestamp)\n\n# Conditional expressions\nstatus = f\"Status: {'PASS' if score >= 70 else 'FAIL'}\"\nprint(status)\n\n# Complex object formatting\nclass Student:\n    def __init__(self, name, grades):\n        self.name = name\n        self.grades = grades\n    \n    def average(self):\n        return sum(self.grades) / len(self.grades)\n\nstudents = [\n    Student(\"Alice\", [95, 87, 92, 88]),\n    Student(\"Bob\", [78, 85, 82, 90]),\n    Student(\"Carol\", [91, 94, 89, 96])\n]\n\nprint(\"\\nStudent Grade Report\")\nprint(\"=\" * 40)\nprint(f\"{'Name':\u003C10} {'Grades':\u003C15} {'Average':\u003C8} {'Status'}\")\nprint(\"-\" * 40)\n\nfor student in students:\n    avg = student.average()\n    grades_str = \", \".join(f\"{g:2d}\" for g in student.grades)\n    status = \"PASS\" if avg >= 80 else \"FAIL\"\n    \n    print(f\"{student.name:\u003C10} {grades_str:\u003C15} {avg:6.1f} {status}\")\n\n# Dictionary formatting\ndata = {\"revenue\": 1250000, \"expenses\": 890000, \"employees\": 45}\nprint(f\"\\nCompany Summary:\")\nprint(f\"Revenue: ${data['revenue']:,}\")\nprint(f\"Profit: ${data['revenue'] - data['expenses']:,}\")\nprint(f\"Profit per employee: ${(data['revenue'] - data['expenses']) / data['employees']:,.2f}\")\n",[2531],{"type":993,"tag":1022,"props":2532,"children":2533},{"__ignoreMap":8},[2534,2547,2554,2562,2578,2595,2612,2629,2636,2644,2697,2709,2716,2733,2791,2803,2810,2818,2886,2898,2905,2913,2932,2950,2972,2993,3001,3018,3066,3073,3089,3144,3196,3249,3256,3263,3291,3320,3415,3442,3449,3470,3487,3558,3602,3609,3701,3708,3716,3787,3819,3874,3945],{"type":993,"tag":1026,"props":2535,"children":2536},{"class":1028,"line":12},[2537,2542],{"type":993,"tag":1026,"props":2538,"children":2539},{"style":1047},[2540],{"type":998,"value":2541},"import",{"type":993,"tag":1026,"props":2543,"children":2544},{"style":1041},[2545],{"type":998,"value":2546}," datetime\n",{"type":993,"tag":1026,"props":2548,"children":2549},{"class":1028,"line":27},[2550],{"type":993,"tag":1026,"props":2551,"children":2552},{"emptyLinePlaceholder":13},[2553],{"type":998,"value":1133},{"type":993,"tag":1026,"props":2555,"children":2556},{"class":1028,"line":36},[2557],{"type":993,"tag":1026,"props":2558,"children":2559},{"style":1032},[2560],{"type":998,"value":2561},"# Variable insertion and expressions\n",{"type":993,"tag":1026,"props":2563,"children":2564},{"class":1028,"line":45},[2565,2570,2574],{"type":993,"tag":1026,"props":2566,"children":2567},{"style":1041},[2568],{"type":998,"value":2569},"user ",{"type":993,"tag":1026,"props":2571,"children":2572},{"style":1047},[2573],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2575,"children":2576},{"style":1053},[2577],{"type":998,"value":1056},{"type":993,"tag":1026,"props":2579,"children":2580},{"class":1028,"line":54},[2581,2586,2590],{"type":993,"tag":1026,"props":2582,"children":2583},{"style":1041},[2584],{"type":998,"value":2585},"score ",{"type":993,"tag":1026,"props":2587,"children":2588},{"style":1047},[2589],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2591,"children":2592},{"style":1071},[2593],{"type":998,"value":2594}," 95\n",{"type":993,"tag":1026,"props":2596,"children":2597},{"class":1028,"line":63},[2598,2603,2607],{"type":993,"tag":1026,"props":2599,"children":2600},{"style":1041},[2601],{"type":998,"value":2602},"max_score ",{"type":993,"tag":1026,"props":2604,"children":2605},{"style":1047},[2606],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2608,"children":2609},{"style":1071},[2610],{"type":998,"value":2611}," 100\n",{"type":993,"tag":1026,"props":2613,"children":2614},{"class":1028,"line":72},[2615,2620,2624],{"type":993,"tag":1026,"props":2616,"children":2617},{"style":1041},[2618],{"type":998,"value":2619},"grade_letter ",{"type":993,"tag":1026,"props":2621,"children":2622},{"style":1047},[2623],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2625,"children":2626},{"style":1053},[2627],{"type":998,"value":2628}," \"A\"\n",{"type":993,"tag":1026,"props":2630,"children":2631},{"class":1028,"line":81},[2632],{"type":993,"tag":1026,"props":2633,"children":2634},{"emptyLinePlaceholder":13},[2635],{"type":998,"value":1133},{"type":993,"tag":1026,"props":2637,"children":2638},{"class":1028,"line":91},[2639],{"type":993,"tag":1026,"props":2640,"children":2641},{"style":1032},[2642],{"type":998,"value":2643},"# Expression evaluation and function calls\n",{"type":993,"tag":1026,"props":2645,"children":2646},{"class":1028,"line":100},[2647,2652,2656,2660,2665,2669,2674,2679,2684,2688,2692],{"type":993,"tag":1026,"props":2648,"children":2649},{"style":1041},[2650],{"type":998,"value":2651},"percentage ",{"type":993,"tag":1026,"props":2653,"children":2654},{"style":1047},[2655],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2657,"children":2658},{"style":1047},[2659],{"type":998,"value":1158},{"type":993,"tag":1026,"props":2661,"children":2662},{"style":1053},[2663],{"type":998,"value":2664},"\"Score: ",{"type":993,"tag":1026,"props":2666,"children":2667},{"style":1071},[2668],{"type":998,"value":1168},{"type":993,"tag":1026,"props":2670,"children":2671},{"style":1041},[2672],{"type":998,"value":2673},"score",{"type":993,"tag":1026,"props":2675,"children":2676},{"style":1047},[2677],{"type":998,"value":2678},"/",{"type":993,"tag":1026,"props":2680,"children":2681},{"style":1041},[2682],{"type":998,"value":2683},"max_score",{"type":993,"tag":1026,"props":2685,"children":2686},{"style":1047},[2687],{"type":998,"value":1493},{"type":993,"tag":1026,"props":2689,"children":2690},{"style":1071},[2691],{"type":998,"value":1178},{"type":993,"tag":1026,"props":2693,"children":2694},{"style":1053},[2695],{"type":998,"value":2696},"\"\n",{"type":993,"tag":1026,"props":2698,"children":2699},{"class":1028,"line":109},[2700,2704],{"type":993,"tag":1026,"props":2701,"children":2702},{"style":1071},[2703],{"type":998,"value":1209},{"type":993,"tag":1026,"props":2705,"children":2706},{"style":1041},[2707],{"type":998,"value":2708},"(percentage)\n",{"type":993,"tag":1026,"props":2710,"children":2711},{"class":1028,"line":118},[2712],{"type":993,"tag":1026,"props":2713,"children":2714},{"emptyLinePlaceholder":13},[2715],{"type":998,"value":1133},{"type":993,"tag":1026,"props":2717,"children":2718},{"class":1028,"line":127},[2719,2724,2728],{"type":993,"tag":1026,"props":2720,"children":2721},{"style":1041},[2722],{"type":998,"value":2723},"now ",{"type":993,"tag":1026,"props":2725,"children":2726},{"style":1047},[2727],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2729,"children":2730},{"style":1041},[2731],{"type":998,"value":2732}," datetime.datetime.now()\n",{"type":993,"tag":1026,"props":2734,"children":2735},{"class":1028,"line":136},[2736,2741,2745,2749,2754,2758,2763,2768,2773,2778,2783,2787],{"type":993,"tag":1026,"props":2737,"children":2738},{"style":1041},[2739],{"type":998,"value":2740},"timestamp ",{"type":993,"tag":1026,"props":2742,"children":2743},{"style":1047},[2744],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2746,"children":2747},{"style":1047},[2748],{"type":998,"value":1158},{"type":993,"tag":1026,"props":2750,"children":2751},{"style":1053},[2752],{"type":998,"value":2753},"\"Generated on ",{"type":993,"tag":1026,"props":2755,"children":2756},{"style":1071},[2757],{"type":998,"value":1168},{"type":993,"tag":1026,"props":2759,"children":2760},{"style":1041},[2761],{"type":998,"value":2762},"now.strftime(",{"type":993,"tag":1026,"props":2764,"children":2765},{"style":1053},[2766],{"type":998,"value":2767},"'%Y-%m-",{"type":993,"tag":1026,"props":2769,"children":2770},{"style":1071},[2771],{"type":998,"value":2772},"%d",{"type":993,"tag":1026,"props":2774,"children":2775},{"style":1053},[2776],{"type":998,"value":2777}," at %H:%M:%S'",{"type":993,"tag":1026,"props":2779,"children":2780},{"style":1041},[2781],{"type":998,"value":2782},")",{"type":993,"tag":1026,"props":2784,"children":2785},{"style":1071},[2786],{"type":998,"value":1178},{"type":993,"tag":1026,"props":2788,"children":2789},{"style":1053},[2790],{"type":998,"value":2696},{"type":993,"tag":1026,"props":2792,"children":2793},{"class":1028,"line":146},[2794,2798],{"type":993,"tag":1026,"props":2795,"children":2796},{"style":1071},[2797],{"type":998,"value":1209},{"type":993,"tag":1026,"props":2799,"children":2800},{"style":1041},[2801],{"type":998,"value":2802},"(timestamp)\n",{"type":993,"tag":1026,"props":2804,"children":2805},{"class":1028,"line":155},[2806],{"type":993,"tag":1026,"props":2807,"children":2808},{"emptyLinePlaceholder":13},[2809],{"type":998,"value":1133},{"type":993,"tag":1026,"props":2811,"children":2812},{"class":1028,"line":164},[2813],{"type":993,"tag":1026,"props":2814,"children":2815},{"style":1032},[2816],{"type":998,"value":2817},"# Conditional expressions\n",{"type":993,"tag":1026,"props":2819,"children":2820},{"class":1028,"line":173},[2821,2826,2830,2834,2839,2843,2848,2853,2858,2863,2868,2873,2878,2882],{"type":993,"tag":1026,"props":2822,"children":2823},{"style":1041},[2824],{"type":998,"value":2825},"status ",{"type":993,"tag":1026,"props":2827,"children":2828},{"style":1047},[2829],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2831,"children":2832},{"style":1047},[2833],{"type":998,"value":1158},{"type":993,"tag":1026,"props":2835,"children":2836},{"style":1053},[2837],{"type":998,"value":2838},"\"Status: ",{"type":993,"tag":1026,"props":2840,"children":2841},{"style":1071},[2842],{"type":998,"value":1168},{"type":993,"tag":1026,"props":2844,"children":2845},{"style":1053},[2846],{"type":998,"value":2847},"'PASS'",{"type":993,"tag":1026,"props":2849,"children":2850},{"style":1047},[2851],{"type":998,"value":2852}," if",{"type":993,"tag":1026,"props":2854,"children":2855},{"style":1041},[2856],{"type":998,"value":2857}," score ",{"type":993,"tag":1026,"props":2859,"children":2860},{"style":1047},[2861],{"type":998,"value":2862},">=",{"type":993,"tag":1026,"props":2864,"children":2865},{"style":1071},[2866],{"type":998,"value":2867}," 70",{"type":993,"tag":1026,"props":2869,"children":2870},{"style":1047},[2871],{"type":998,"value":2872}," else",{"type":993,"tag":1026,"props":2874,"children":2875},{"style":1053},[2876],{"type":998,"value":2877}," 'FAIL'",{"type":993,"tag":1026,"props":2879,"children":2880},{"style":1071},[2881],{"type":998,"value":1178},{"type":993,"tag":1026,"props":2883,"children":2884},{"style":1053},[2885],{"type":998,"value":2696},{"type":993,"tag":1026,"props":2887,"children":2888},{"class":1028,"line":182},[2889,2893],{"type":993,"tag":1026,"props":2890,"children":2891},{"style":1071},[2892],{"type":998,"value":1209},{"type":993,"tag":1026,"props":2894,"children":2895},{"style":1041},[2896],{"type":998,"value":2897},"(status)\n",{"type":993,"tag":1026,"props":2899,"children":2900},{"class":1028,"line":191},[2901],{"type":993,"tag":1026,"props":2902,"children":2903},{"emptyLinePlaceholder":13},[2904],{"type":998,"value":1133},{"type":993,"tag":1026,"props":2906,"children":2907},{"class":1028,"line":201},[2908],{"type":993,"tag":1026,"props":2909,"children":2910},{"style":1032},[2911],{"type":998,"value":2912},"# Complex object formatting\n",{"type":993,"tag":1026,"props":2914,"children":2915},{"class":1028,"line":210},[2916,2921,2927],{"type":993,"tag":1026,"props":2917,"children":2918},{"style":1047},[2919],{"type":998,"value":2920},"class",{"type":993,"tag":1026,"props":2922,"children":2924},{"style":2923},"--shiki-default:#6F42C1;--shiki-app-dark-mode:#B392F0",[2925],{"type":998,"value":2926}," Student",{"type":993,"tag":1026,"props":2928,"children":2929},{"style":1041},[2930],{"type":998,"value":2931},":\n",{"type":993,"tag":1026,"props":2933,"children":2934},{"class":1028,"line":219},[2935,2940,2945],{"type":993,"tag":1026,"props":2936,"children":2937},{"style":1047},[2938],{"type":998,"value":2939},"    def",{"type":993,"tag":1026,"props":2941,"children":2942},{"style":1071},[2943],{"type":998,"value":2944}," __init__",{"type":993,"tag":1026,"props":2946,"children":2947},{"style":1041},[2948],{"type":998,"value":2949},"(self, name, grades):\n",{"type":993,"tag":1026,"props":2951,"children":2952},{"class":1028,"line":228},[2953,2958,2963,2967],{"type":993,"tag":1026,"props":2954,"children":2955},{"style":1071},[2956],{"type":998,"value":2957},"        self",{"type":993,"tag":1026,"props":2959,"children":2960},{"style":1041},[2961],{"type":998,"value":2962},".name ",{"type":993,"tag":1026,"props":2964,"children":2965},{"style":1047},[2966],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2968,"children":2969},{"style":1041},[2970],{"type":998,"value":2971}," name\n",{"type":993,"tag":1026,"props":2973,"children":2974},{"class":1028,"line":238},[2975,2979,2984,2988],{"type":993,"tag":1026,"props":2976,"children":2977},{"style":1071},[2978],{"type":998,"value":2957},{"type":993,"tag":1026,"props":2980,"children":2981},{"style":1041},[2982],{"type":998,"value":2983},".grades ",{"type":993,"tag":1026,"props":2985,"children":2986},{"style":1047},[2987],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2989,"children":2990},{"style":1041},[2991],{"type":998,"value":2992}," grades\n",{"type":993,"tag":1026,"props":2994,"children":2995},{"class":1028,"line":247},[2996],{"type":993,"tag":1026,"props":2997,"children":2998},{"style":1041},[2999],{"type":998,"value":3000},"    \n",{"type":993,"tag":1026,"props":3002,"children":3003},{"class":1028,"line":256},[3004,3008,3013],{"type":993,"tag":1026,"props":3005,"children":3006},{"style":1047},[3007],{"type":998,"value":2939},{"type":993,"tag":1026,"props":3009,"children":3010},{"style":2923},[3011],{"type":998,"value":3012}," average",{"type":993,"tag":1026,"props":3014,"children":3015},{"style":1041},[3016],{"type":998,"value":3017},"(self):\n",{"type":993,"tag":1026,"props":3019,"children":3020},{"class":1028,"line":265},[3021,3026,3030,3034,3039,3044,3048,3053,3057,3061],{"type":993,"tag":1026,"props":3022,"children":3023},{"style":1047},[3024],{"type":998,"value":3025},"        return",{"type":993,"tag":1026,"props":3027,"children":3028},{"style":1071},[3029],{"type":998,"value":2030},{"type":993,"tag":1026,"props":3031,"children":3032},{"style":1041},[3033],{"type":998,"value":1226},{"type":993,"tag":1026,"props":3035,"children":3036},{"style":1071},[3037],{"type":998,"value":3038},"self",{"type":993,"tag":1026,"props":3040,"children":3041},{"style":1041},[3042],{"type":998,"value":3043},".grades) ",{"type":993,"tag":1026,"props":3045,"children":3046},{"style":1047},[3047],{"type":998,"value":2678},{"type":993,"tag":1026,"props":3049,"children":3050},{"style":1071},[3051],{"type":998,"value":3052}," len",{"type":993,"tag":1026,"props":3054,"children":3055},{"style":1041},[3056],{"type":998,"value":1226},{"type":993,"tag":1026,"props":3058,"children":3059},{"style":1071},[3060],{"type":998,"value":3038},{"type":993,"tag":1026,"props":3062,"children":3063},{"style":1041},[3064],{"type":998,"value":3065},".grades)\n",{"type":993,"tag":1026,"props":3067,"children":3068},{"class":1028,"line":274},[3069],{"type":993,"tag":1026,"props":3070,"children":3071},{"emptyLinePlaceholder":13},[3072],{"type":998,"value":1133},{"type":993,"tag":1026,"props":3074,"children":3075},{"class":1028,"line":284},[3076,3081,3085],{"type":993,"tag":1026,"props":3077,"children":3078},{"style":1041},[3079],{"type":998,"value":3080},"students ",{"type":993,"tag":1026,"props":3082,"children":3083},{"style":1047},[3084],{"type":998,"value":1050},{"type":993,"tag":1026,"props":3086,"children":3087},{"style":1041},[3088],{"type":998,"value":1705},{"type":993,"tag":1026,"props":3090,"children":3091},{"class":1028,"line":293},[3092,3097,3102,3107,3112,3116,3121,3125,3130,3134,3139],{"type":993,"tag":1026,"props":3093,"children":3094},{"style":1041},[3095],{"type":998,"value":3096},"    Student(",{"type":993,"tag":1026,"props":3098,"children":3099},{"style":1053},[3100],{"type":998,"value":3101},"\"Alice\"",{"type":993,"tag":1026,"props":3103,"children":3104},{"style":1041},[3105],{"type":998,"value":3106},", [",{"type":993,"tag":1026,"props":3108,"children":3109},{"style":1071},[3110],{"type":998,"value":3111},"95",{"type":993,"tag":1026,"props":3113,"children":3114},{"style":1041},[3115],{"type":998,"value":1723},{"type":993,"tag":1026,"props":3117,"children":3118},{"style":1071},[3119],{"type":998,"value":3120},"87",{"type":993,"tag":1026,"props":3122,"children":3123},{"style":1041},[3124],{"type":998,"value":1723},{"type":993,"tag":1026,"props":3126,"children":3127},{"style":1071},[3128],{"type":998,"value":3129},"92",{"type":993,"tag":1026,"props":3131,"children":3132},{"style":1041},[3133],{"type":998,"value":1723},{"type":993,"tag":1026,"props":3135,"children":3136},{"style":1071},[3137],{"type":998,"value":3138},"88",{"type":993,"tag":1026,"props":3140,"children":3141},{"style":1041},[3142],{"type":998,"value":3143},"]),\n",{"type":993,"tag":1026,"props":3145,"children":3146},{"class":1028,"line":302},[3147,3151,3156,3160,3165,3169,3174,3178,3183,3187,3192],{"type":993,"tag":1026,"props":3148,"children":3149},{"style":1041},[3150],{"type":998,"value":3096},{"type":993,"tag":1026,"props":3152,"children":3153},{"style":1053},[3154],{"type":998,"value":3155},"\"Bob\"",{"type":993,"tag":1026,"props":3157,"children":3158},{"style":1041},[3159],{"type":998,"value":3106},{"type":993,"tag":1026,"props":3161,"children":3162},{"style":1071},[3163],{"type":998,"value":3164},"78",{"type":993,"tag":1026,"props":3166,"children":3167},{"style":1041},[3168],{"type":998,"value":1723},{"type":993,"tag":1026,"props":3170,"children":3171},{"style":1071},[3172],{"type":998,"value":3173},"85",{"type":993,"tag":1026,"props":3175,"children":3176},{"style":1041},[3177],{"type":998,"value":1723},{"type":993,"tag":1026,"props":3179,"children":3180},{"style":1071},[3181],{"type":998,"value":3182},"82",{"type":993,"tag":1026,"props":3184,"children":3185},{"style":1041},[3186],{"type":998,"value":1723},{"type":993,"tag":1026,"props":3188,"children":3189},{"style":1071},[3190],{"type":998,"value":3191},"90",{"type":993,"tag":1026,"props":3193,"children":3194},{"style":1041},[3195],{"type":998,"value":3143},{"type":993,"tag":1026,"props":3197,"children":3198},{"class":1028,"line":311},[3199,3203,3208,3212,3217,3221,3226,3230,3235,3239,3244],{"type":993,"tag":1026,"props":3200,"children":3201},{"style":1041},[3202],{"type":998,"value":3096},{"type":993,"tag":1026,"props":3204,"children":3205},{"style":1053},[3206],{"type":998,"value":3207},"\"Carol\"",{"type":993,"tag":1026,"props":3209,"children":3210},{"style":1041},[3211],{"type":998,"value":3106},{"type":993,"tag":1026,"props":3213,"children":3214},{"style":1071},[3215],{"type":998,"value":3216},"91",{"type":993,"tag":1026,"props":3218,"children":3219},{"style":1041},[3220],{"type":998,"value":1723},{"type":993,"tag":1026,"props":3222,"children":3223},{"style":1071},[3224],{"type":998,"value":3225},"94",{"type":993,"tag":1026,"props":3227,"children":3228},{"style":1041},[3229],{"type":998,"value":1723},{"type":993,"tag":1026,"props":3231,"children":3232},{"style":1071},[3233],{"type":998,"value":3234},"89",{"type":993,"tag":1026,"props":3236,"children":3237},{"style":1041},[3238],{"type":998,"value":1723},{"type":993,"tag":1026,"props":3240,"children":3241},{"style":1071},[3242],{"type":998,"value":3243},"96",{"type":993,"tag":1026,"props":3245,"children":3246},{"style":1041},[3247],{"type":998,"value":3248},"])\n",{"type":993,"tag":1026,"props":3250,"children":3251},{"class":1028,"line":320},[3252],{"type":993,"tag":1026,"props":3253,"children":3254},{"style":1041},[3255],{"type":998,"value":1816},{"type":993,"tag":1026,"props":3257,"children":3258},{"class":1028,"line":329},[3259],{"type":993,"tag":1026,"props":3260,"children":3261},{"emptyLinePlaceholder":13},[3262],{"type":998,"value":1133},{"type":993,"tag":1026,"props":3264,"children":3265},{"class":1028,"line":338},[3266,3270,3274,3278,3282,3287],{"type":993,"tag":1026,"props":3267,"children":3268},{"style":1071},[3269],{"type":998,"value":1209},{"type":993,"tag":1026,"props":3271,"children":3272},{"style":1041},[3273],{"type":998,"value":1226},{"type":993,"tag":1026,"props":3275,"children":3276},{"style":1053},[3277],{"type":998,"value":1301},{"type":993,"tag":1026,"props":3279,"children":3280},{"style":1071},[3281],{"type":998,"value":1843},{"type":993,"tag":1026,"props":3283,"children":3284},{"style":1053},[3285],{"type":998,"value":3286},"Student Grade Report\"",{"type":993,"tag":1026,"props":3288,"children":3289},{"style":1041},[3290],{"type":998,"value":1281},{"type":993,"tag":1026,"props":3292,"children":3293},{"class":1028,"line":347},[3294,3298,3302,3307,3311,3316],{"type":993,"tag":1026,"props":3295,"children":3296},{"style":1071},[3297],{"type":998,"value":1209},{"type":993,"tag":1026,"props":3299,"children":3300},{"style":1041},[3301],{"type":998,"value":1226},{"type":993,"tag":1026,"props":3303,"children":3304},{"style":1053},[3305],{"type":998,"value":3306},"\"=\"",{"type":993,"tag":1026,"props":3308,"children":3309},{"style":1047},[3310],{"type":998,"value":1873},{"type":993,"tag":1026,"props":3312,"children":3313},{"style":1071},[3314],{"type":998,"value":3315}," 40",{"type":993,"tag":1026,"props":3317,"children":3318},{"style":1041},[3319],{"type":998,"value":1281},{"type":993,"tag":1026,"props":3321,"children":3322},{"class":1028,"line":356},[3323,3327,3331,3335,3339,3343,3348,3353,3357,3362,3367,3372,3376,3380,3385,3390,3394,3398,3403,3407,3411],{"type":993,"tag":1026,"props":3324,"children":3325},{"style":1071},[3326],{"type":998,"value":1209},{"type":993,"tag":1026,"props":3328,"children":3329},{"style":1041},[3330],{"type":998,"value":1226},{"type":993,"tag":1026,"props":3332,"children":3333},{"style":1047},[3334],{"type":998,"value":1231},{"type":993,"tag":1026,"props":3336,"children":3337},{"style":1053},[3338],{"type":998,"value":1301},{"type":993,"tag":1026,"props":3340,"children":3341},{"style":1071},[3342],{"type":998,"value":1168},{"type":993,"tag":1026,"props":3344,"children":3345},{"style":1053},[3346],{"type":998,"value":3347},"'Name'",{"type":993,"tag":1026,"props":3349,"children":3350},{"style":1047},[3351],{"type":998,"value":3352},":\u003C10",{"type":993,"tag":1026,"props":3354,"children":3355},{"style":1071},[3356],{"type":998,"value":1178},{"type":993,"tag":1026,"props":3358,"children":3359},{"style":1071},[3360],{"type":998,"value":3361}," {",{"type":993,"tag":1026,"props":3363,"children":3364},{"style":1053},[3365],{"type":998,"value":3366},"'Grades'",{"type":993,"tag":1026,"props":3368,"children":3369},{"style":1047},[3370],{"type":998,"value":3371},":\u003C15",{"type":993,"tag":1026,"props":3373,"children":3374},{"style":1071},[3375],{"type":998,"value":1178},{"type":993,"tag":1026,"props":3377,"children":3378},{"style":1071},[3379],{"type":998,"value":3361},{"type":993,"tag":1026,"props":3381,"children":3382},{"style":1053},[3383],{"type":998,"value":3384},"'Average'",{"type":993,"tag":1026,"props":3386,"children":3387},{"style":1047},[3388],{"type":998,"value":3389},":\u003C8",{"type":993,"tag":1026,"props":3391,"children":3392},{"style":1071},[3393],{"type":998,"value":1178},{"type":993,"tag":1026,"props":3395,"children":3396},{"style":1071},[3397],{"type":998,"value":3361},{"type":993,"tag":1026,"props":3399,"children":3400},{"style":1053},[3401],{"type":998,"value":3402},"'Status'",{"type":993,"tag":1026,"props":3404,"children":3405},{"style":1071},[3406],{"type":998,"value":1178},{"type":993,"tag":1026,"props":3408,"children":3409},{"style":1053},[3410],{"type":998,"value":1301},{"type":993,"tag":1026,"props":3412,"children":3413},{"style":1041},[3414],{"type":998,"value":1281},{"type":993,"tag":1026,"props":3416,"children":3417},{"class":1028,"line":365},[3418,3422,3426,3430,3434,3438],{"type":993,"tag":1026,"props":3419,"children":3420},{"style":1071},[3421],{"type":998,"value":1209},{"type":993,"tag":1026,"props":3423,"children":3424},{"style":1041},[3425],{"type":998,"value":1226},{"type":993,"tag":1026,"props":3427,"children":3428},{"style":1053},[3429],{"type":998,"value":1868},{"type":993,"tag":1026,"props":3431,"children":3432},{"style":1047},[3433],{"type":998,"value":1873},{"type":993,"tag":1026,"props":3435,"children":3436},{"style":1071},[3437],{"type":998,"value":3315},{"type":993,"tag":1026,"props":3439,"children":3440},{"style":1041},[3441],{"type":998,"value":1281},{"type":993,"tag":1026,"props":3443,"children":3444},{"class":1028,"line":374},[3445],{"type":993,"tag":1026,"props":3446,"children":3447},{"emptyLinePlaceholder":13},[3448],{"type":998,"value":1133},{"type":993,"tag":1026,"props":3450,"children":3451},{"class":1028,"line":384},[3452,3456,3461,3465],{"type":993,"tag":1026,"props":3453,"children":3454},{"style":1047},[3455],{"type":998,"value":1897},{"type":993,"tag":1026,"props":3457,"children":3458},{"style":1041},[3459],{"type":998,"value":3460}," student ",{"type":993,"tag":1026,"props":3462,"children":3463},{"style":1047},[3464],{"type":998,"value":1907},{"type":993,"tag":1026,"props":3466,"children":3467},{"style":1041},[3468],{"type":998,"value":3469}," students:\n",{"type":993,"tag":1026,"props":3471,"children":3472},{"class":1028,"line":393},[3473,3478,3482],{"type":993,"tag":1026,"props":3474,"children":3475},{"style":1041},[3476],{"type":998,"value":3477},"    avg ",{"type":993,"tag":1026,"props":3479,"children":3480},{"style":1047},[3481],{"type":998,"value":1050},{"type":993,"tag":1026,"props":3483,"children":3484},{"style":1041},[3485],{"type":998,"value":3486}," student.average()\n",{"type":993,"tag":1026,"props":3488,"children":3489},{"class":1028,"line":402},[3490,3495,3499,3504,3509,3513,3517,3521,3526,3531,3535,3539,3544,3549,3553],{"type":993,"tag":1026,"props":3491,"children":3492},{"style":1041},[3493],{"type":998,"value":3494},"    grades_str ",{"type":993,"tag":1026,"props":3496,"children":3497},{"style":1047},[3498],{"type":998,"value":1050},{"type":993,"tag":1026,"props":3500,"children":3501},{"style":1053},[3502],{"type":998,"value":3503}," \", \"",{"type":993,"tag":1026,"props":3505,"children":3506},{"style":1041},[3507],{"type":998,"value":3508},".join(",{"type":993,"tag":1026,"props":3510,"children":3511},{"style":1047},[3512],{"type":998,"value":1231},{"type":993,"tag":1026,"props":3514,"children":3515},{"style":1053},[3516],{"type":998,"value":1301},{"type":993,"tag":1026,"props":3518,"children":3519},{"style":1071},[3520],{"type":998,"value":1168},{"type":993,"tag":1026,"props":3522,"children":3523},{"style":1041},[3524],{"type":998,"value":3525},"g",{"type":993,"tag":1026,"props":3527,"children":3528},{"style":1047},[3529],{"type":998,"value":3530},":2d",{"type":993,"tag":1026,"props":3532,"children":3533},{"style":1071},[3534],{"type":998,"value":1178},{"type":993,"tag":1026,"props":3536,"children":3537},{"style":1053},[3538],{"type":998,"value":1301},{"type":993,"tag":1026,"props":3540,"children":3541},{"style":1047},[3542],{"type":998,"value":3543}," for",{"type":993,"tag":1026,"props":3545,"children":3546},{"style":1041},[3547],{"type":998,"value":3548}," g ",{"type":993,"tag":1026,"props":3550,"children":3551},{"style":1047},[3552],{"type":998,"value":1907},{"type":993,"tag":1026,"props":3554,"children":3555},{"style":1041},[3556],{"type":998,"value":3557}," student.grades)\n",{"type":993,"tag":1026,"props":3559,"children":3560},{"class":1028,"line":411},[3561,3566,3570,3575,3579,3584,3588,3593,3597],{"type":993,"tag":1026,"props":3562,"children":3563},{"style":1041},[3564],{"type":998,"value":3565},"    status ",{"type":993,"tag":1026,"props":3567,"children":3568},{"style":1047},[3569],{"type":998,"value":1050},{"type":993,"tag":1026,"props":3571,"children":3572},{"style":1053},[3573],{"type":998,"value":3574}," \"PASS\"",{"type":993,"tag":1026,"props":3576,"children":3577},{"style":1047},[3578],{"type":998,"value":2852},{"type":993,"tag":1026,"props":3580,"children":3581},{"style":1041},[3582],{"type":998,"value":3583}," avg ",{"type":993,"tag":1026,"props":3585,"children":3586},{"style":1047},[3587],{"type":998,"value":2862},{"type":993,"tag":1026,"props":3589,"children":3590},{"style":1071},[3591],{"type":998,"value":3592}," 80",{"type":993,"tag":1026,"props":3594,"children":3595},{"style":1047},[3596],{"type":998,"value":2872},{"type":993,"tag":1026,"props":3598,"children":3599},{"style":1053},[3600],{"type":998,"value":3601}," \"FAIL\"\n",{"type":993,"tag":1026,"props":3603,"children":3604},{"class":1028,"line":420},[3605],{"type":993,"tag":1026,"props":3606,"children":3607},{"style":1041},[3608],{"type":998,"value":3000},{"type":993,"tag":1026,"props":3610,"children":3611},{"class":1028,"line":429},[3612,3616,3620,3624,3628,3632,3637,3641,3645,3649,3654,3658,3662,3666,3671,3676,3680,3684,3689,3693,3697],{"type":993,"tag":1026,"props":3613,"children":3614},{"style":1071},[3615],{"type":998,"value":1920},{"type":993,"tag":1026,"props":3617,"children":3618},{"style":1041},[3619],{"type":998,"value":1226},{"type":993,"tag":1026,"props":3621,"children":3622},{"style":1047},[3623],{"type":998,"value":1231},{"type":993,"tag":1026,"props":3625,"children":3626},{"style":1053},[3627],{"type":998,"value":1301},{"type":993,"tag":1026,"props":3629,"children":3630},{"style":1071},[3631],{"type":998,"value":1168},{"type":993,"tag":1026,"props":3633,"children":3634},{"style":1041},[3635],{"type":998,"value":3636},"student.name",{"type":993,"tag":1026,"props":3638,"children":3639},{"style":1047},[3640],{"type":998,"value":3352},{"type":993,"tag":1026,"props":3642,"children":3643},{"style":1071},[3644],{"type":998,"value":1178},{"type":993,"tag":1026,"props":3646,"children":3647},{"style":1071},[3648],{"type":998,"value":3361},{"type":993,"tag":1026,"props":3650,"children":3651},{"style":1041},[3652],{"type":998,"value":3653},"grades_str",{"type":993,"tag":1026,"props":3655,"children":3656},{"style":1047},[3657],{"type":998,"value":3371},{"type":993,"tag":1026,"props":3659,"children":3660},{"style":1071},[3661],{"type":998,"value":1178},{"type":993,"tag":1026,"props":3663,"children":3664},{"style":1071},[3665],{"type":998,"value":3361},{"type":993,"tag":1026,"props":3667,"children":3668},{"style":1041},[3669],{"type":998,"value":3670},"avg",{"type":993,"tag":1026,"props":3672,"children":3673},{"style":1047},[3674],{"type":998,"value":3675},":6.1f",{"type":993,"tag":1026,"props":3677,"children":3678},{"style":1071},[3679],{"type":998,"value":1178},{"type":993,"tag":1026,"props":3681,"children":3682},{"style":1071},[3683],{"type":998,"value":3361},{"type":993,"tag":1026,"props":3685,"children":3686},{"style":1041},[3687],{"type":998,"value":3688},"status",{"type":993,"tag":1026,"props":3690,"children":3691},{"style":1071},[3692],{"type":998,"value":1178},{"type":993,"tag":1026,"props":3694,"children":3695},{"style":1053},[3696],{"type":998,"value":1301},{"type":993,"tag":1026,"props":3698,"children":3699},{"style":1041},[3700],{"type":998,"value":1281},{"type":993,"tag":1026,"props":3702,"children":3703},{"class":1028,"line":438},[3704],{"type":993,"tag":1026,"props":3705,"children":3706},{"emptyLinePlaceholder":13},[3707],{"type":998,"value":1133},{"type":993,"tag":1026,"props":3709,"children":3710},{"class":1028,"line":447},[3711],{"type":993,"tag":1026,"props":3712,"children":3713},{"style":1032},[3714],{"type":998,"value":3715},"# Dictionary formatting\n",{"type":993,"tag":1026,"props":3717,"children":3718},{"class":1028,"line":457},[3719,3724,3728,3732,3737,3741,3746,3750,3755,3759,3764,3768,3773,3777,3782],{"type":993,"tag":1026,"props":3720,"children":3721},{"style":1041},[3722],{"type":998,"value":3723},"data ",{"type":993,"tag":1026,"props":3725,"children":3726},{"style":1047},[3727],{"type":998,"value":1050},{"type":993,"tag":1026,"props":3729,"children":3730},{"style":1041},[3731],{"type":998,"value":3361},{"type":993,"tag":1026,"props":3733,"children":3734},{"style":1053},[3735],{"type":998,"value":3736},"\"revenue\"",{"type":993,"tag":1026,"props":3738,"children":3739},{"style":1041},[3740],{"type":998,"value":2168},{"type":993,"tag":1026,"props":3742,"children":3743},{"style":1071},[3744],{"type":998,"value":3745},"1250000",{"type":993,"tag":1026,"props":3747,"children":3748},{"style":1041},[3749],{"type":998,"value":1723},{"type":993,"tag":1026,"props":3751,"children":3752},{"style":1053},[3753],{"type":998,"value":3754},"\"expenses\"",{"type":993,"tag":1026,"props":3756,"children":3757},{"style":1041},[3758],{"type":998,"value":2168},{"type":993,"tag":1026,"props":3760,"children":3761},{"style":1071},[3762],{"type":998,"value":3763},"890000",{"type":993,"tag":1026,"props":3765,"children":3766},{"style":1041},[3767],{"type":998,"value":1723},{"type":993,"tag":1026,"props":3769,"children":3770},{"style":1053},[3771],{"type":998,"value":3772},"\"employees\"",{"type":993,"tag":1026,"props":3774,"children":3775},{"style":1041},[3776],{"type":998,"value":2168},{"type":993,"tag":1026,"props":3778,"children":3779},{"style":1071},[3780],{"type":998,"value":3781},"45",{"type":993,"tag":1026,"props":3783,"children":3784},{"style":1041},[3785],{"type":998,"value":3786},"}\n",{"type":993,"tag":1026,"props":3788,"children":3789},{"class":1028,"line":466},[3790,3794,3798,3802,3806,3810,3815],{"type":993,"tag":1026,"props":3791,"children":3792},{"style":1071},[3793],{"type":998,"value":1209},{"type":993,"tag":1026,"props":3795,"children":3796},{"style":1041},[3797],{"type":998,"value":1226},{"type":993,"tag":1026,"props":3799,"children":3800},{"style":1047},[3801],{"type":998,"value":1231},{"type":993,"tag":1026,"props":3803,"children":3804},{"style":1053},[3805],{"type":998,"value":1301},{"type":993,"tag":1026,"props":3807,"children":3808},{"style":1071},[3809],{"type":998,"value":1843},{"type":993,"tag":1026,"props":3811,"children":3812},{"style":1053},[3813],{"type":998,"value":3814},"Company Summary:\"",{"type":993,"tag":1026,"props":3816,"children":3817},{"style":1041},[3818],{"type":998,"value":1281},{"type":993,"tag":1026,"props":3820,"children":3821},{"class":1028,"line":475},[3822,3826,3830,3834,3839,3843,3848,3853,3858,3862,3866,3870],{"type":993,"tag":1026,"props":3823,"children":3824},{"style":1071},[3825],{"type":998,"value":1209},{"type":993,"tag":1026,"props":3827,"children":3828},{"style":1041},[3829],{"type":998,"value":1226},{"type":993,"tag":1026,"props":3831,"children":3832},{"style":1047},[3833],{"type":998,"value":1231},{"type":993,"tag":1026,"props":3835,"children":3836},{"style":1053},[3837],{"type":998,"value":3838},"\"Revenue: $",{"type":993,"tag":1026,"props":3840,"children":3841},{"style":1071},[3842],{"type":998,"value":1168},{"type":993,"tag":1026,"props":3844,"children":3845},{"style":1041},[3846],{"type":998,"value":3847},"data[",{"type":993,"tag":1026,"props":3849,"children":3850},{"style":1053},[3851],{"type":998,"value":3852},"'revenue'",{"type":993,"tag":1026,"props":3854,"children":3855},{"style":1041},[3856],{"type":998,"value":3857},"]",{"type":993,"tag":1026,"props":3859,"children":3860},{"style":1047},[3861],{"type":998,"value":1616},{"type":993,"tag":1026,"props":3863,"children":3864},{"style":1071},[3865],{"type":998,"value":1178},{"type":993,"tag":1026,"props":3867,"children":3868},{"style":1053},[3869],{"type":998,"value":1301},{"type":993,"tag":1026,"props":3871,"children":3872},{"style":1041},[3873],{"type":998,"value":1281},{"type":993,"tag":1026,"props":3875,"children":3876},{"class":1028,"line":484},[3877,3881,3885,3889,3894,3898,3902,3906,3911,3915,3920,3925,3929,3933,3937,3941],{"type":993,"tag":1026,"props":3878,"children":3879},{"style":1071},[3880],{"type":998,"value":1209},{"type":993,"tag":1026,"props":3882,"children":3883},{"style":1041},[3884],{"type":998,"value":1226},{"type":993,"tag":1026,"props":3886,"children":3887},{"style":1047},[3888],{"type":998,"value":1231},{"type":993,"tag":1026,"props":3890,"children":3891},{"style":1053},[3892],{"type":998,"value":3893},"\"Profit: $",{"type":993,"tag":1026,"props":3895,"children":3896},{"style":1071},[3897],{"type":998,"value":1168},{"type":993,"tag":1026,"props":3899,"children":3900},{"style":1041},[3901],{"type":998,"value":3847},{"type":993,"tag":1026,"props":3903,"children":3904},{"style":1053},[3905],{"type":998,"value":3852},{"type":993,"tag":1026,"props":3907,"children":3908},{"style":1041},[3909],{"type":998,"value":3910},"] ",{"type":993,"tag":1026,"props":3912,"children":3913},{"style":1047},[3914],{"type":998,"value":2406},{"type":993,"tag":1026,"props":3916,"children":3917},{"style":1041},[3918],{"type":998,"value":3919}," data[",{"type":993,"tag":1026,"props":3921,"children":3922},{"style":1053},[3923],{"type":998,"value":3924},"'expenses'",{"type":993,"tag":1026,"props":3926,"children":3927},{"style":1041},[3928],{"type":998,"value":3857},{"type":993,"tag":1026,"props":3930,"children":3931},{"style":1047},[3932],{"type":998,"value":1616},{"type":993,"tag":1026,"props":3934,"children":3935},{"style":1071},[3936],{"type":998,"value":1178},{"type":993,"tag":1026,"props":3938,"children":3939},{"style":1053},[3940],{"type":998,"value":1301},{"type":993,"tag":1026,"props":3942,"children":3943},{"style":1041},[3944],{"type":998,"value":1281},{"type":993,"tag":1026,"props":3946,"children":3947},{"class":1028,"line":493},[3948,3952,3956,3960,3965,3969,3974,3978,3982,3986,3990,3994,3999,4003,4007,4012,4016,4021,4025,4029],{"type":993,"tag":1026,"props":3949,"children":3950},{"style":1071},[3951],{"type":998,"value":1209},{"type":993,"tag":1026,"props":3953,"children":3954},{"style":1041},[3955],{"type":998,"value":1226},{"type":993,"tag":1026,"props":3957,"children":3958},{"style":1047},[3959],{"type":998,"value":1231},{"type":993,"tag":1026,"props":3961,"children":3962},{"style":1053},[3963],{"type":998,"value":3964},"\"Profit per employee: $",{"type":993,"tag":1026,"props":3966,"children":3967},{"style":1071},[3968],{"type":998,"value":1168},{"type":993,"tag":1026,"props":3970,"children":3971},{"style":1041},[3972],{"type":998,"value":3973},"(data[",{"type":993,"tag":1026,"props":3975,"children":3976},{"style":1053},[3977],{"type":998,"value":3852},{"type":993,"tag":1026,"props":3979,"children":3980},{"style":1041},[3981],{"type":998,"value":3910},{"type":993,"tag":1026,"props":3983,"children":3984},{"style":1047},[3985],{"type":998,"value":2406},{"type":993,"tag":1026,"props":3987,"children":3988},{"style":1041},[3989],{"type":998,"value":3919},{"type":993,"tag":1026,"props":3991,"children":3992},{"style":1053},[3993],{"type":998,"value":3924},{"type":993,"tag":1026,"props":3995,"children":3996},{"style":1041},[3997],{"type":998,"value":3998},"]) ",{"type":993,"tag":1026,"props":4000,"children":4001},{"style":1047},[4002],{"type":998,"value":2678},{"type":993,"tag":1026,"props":4004,"children":4005},{"style":1041},[4006],{"type":998,"value":3919},{"type":993,"tag":1026,"props":4008,"children":4009},{"style":1053},[4010],{"type":998,"value":4011},"'employees'",{"type":993,"tag":1026,"props":4013,"children":4014},{"style":1041},[4015],{"type":998,"value":3857},{"type":993,"tag":1026,"props":4017,"children":4018},{"style":1047},[4019],{"type":998,"value":4020},":,.2f",{"type":993,"tag":1026,"props":4022,"children":4023},{"style":1071},[4024],{"type":998,"value":1178},{"type":993,"tag":1026,"props":4026,"children":4027},{"style":1053},[4028],{"type":998,"value":1301},{"type":993,"tag":1026,"props":4030,"children":4031},{"style":1041},[4032],{"type":998,"value":1281},{"type":993,"tag":2119,"props":4034,"children":4036},{"id":4035},"professional-formatting-patterns",[4037],{"type":998,"value":4038},"⚡ Professional Formatting Patterns",{"type":993,"tag":2513,"props":4040,"children":4042},{"id":4041},"report-generation-and-templates",[4043],{"type":998,"value":4044},"Report Generation and Templates",{"type":993,"tag":1001,"props":4046,"children":4047},{},[4048],{"type":998,"value":4049},"Multi-line f-strings enable complex template creation for reports and structured output formatting.",{"type":993,"tag":1012,"props":4051,"children":4052},{},[4053],{"type":993,"tag":1016,"props":4054,"children":4056},{"className":1018,"code":4055,"language":6,"meta":8,"style":8},"def generate_invoice(customer, items, tax_rate=0.08):\n    \"\"\"Generate formatted invoice using multi-line f-strings\"\"\"\n    \n    subtotal = sum(item['price'] * item['quantity'] for item in items)\n    tax_amount = subtotal * tax_rate\n    total = subtotal + tax_amount\n    \n    # Multi-line f-string invoice\n    invoice = f\"\"\"\n╔══════════════════════════════════════════════════════╗\n║                    INVOICE                           ║\n╠══════════════════════════════════════════════════════╣\n║ Customer: {customer['name']:\u003C36} ║\n║ Address:  {customer['address']:\u003C36} ║\n║ Date:     {datetime.datetime.now().strftime('%Y-%m-%d'):\u003C36} ║\n╠══════════════════════════════════════════════════════╣\n║ Item                    Qty    Price      Total      ║\n╠══════════════════════════════════════════════════════╣\"\"\"\n    \n    # Add items to invoice\n    for item in items:\n        item_total = item['price'] * item['quantity']\n        invoice += f\"\"\"\n║ {item['name']:\u003C22} {item['quantity']:>3} ${item['price']:>7.2f} ${item_total:>9.2f} ║\"\"\"\n    \n    # Add totals\n    invoice += f\"\"\"\n╠══════════════════════════════════════════════════════╣\n║ Subtotal:                              ${subtotal:>9.2f} ║\n║ Tax ({tax_rate:.1%}):                              ${tax_amount:>9.2f} ║\n║ Total:                                 ${total:>9.2f} ║\n╚══════════════════════════════════════════════════════╝\"\"\"\n    \n    return invoice\n\n# Example usage\ncustomer_info = {\n    \"name\": \"Alice Johnson\",\n    \"address\": \"123 Main St, New York, NY 10001\"\n}\n\norder_items = [\n    {\"name\": \"Laptop Computer\", \"quantity\": 1, \"price\": 999.99},\n    {\"name\": \"Wireless Mouse\", \"quantity\": 2, \"price\": 29.99},\n    {\"name\": \"USB Cable\", \"quantity\": 3, \"price\": 12.99}\n]\n\ninvoice = generate_invoice(customer_info, order_items)\nprint(invoice)\n",[4057],{"type":993,"tag":1022,"props":4058,"children":4059},{"__ignoreMap":8},[4060,4092,4100,4107,4172,4198,4223,4230,4238,4259,4267,4275,4283,4323,4360,4406,4413,4421,4429,4436,4444,4464,4504,4525,4640,4647,4655,4674,4681,4710,4760,4788,4796,4803,4816,4823,4831,4848,4870,4887,4894,4901,4917,4978,5035,5093,5100,5107,5124],{"type":993,"tag":1026,"props":4061,"children":4062},{"class":1028,"line":12},[4063,4068,4073,4078,4082,4087],{"type":993,"tag":1026,"props":4064,"children":4065},{"style":1047},[4066],{"type":998,"value":4067},"def",{"type":993,"tag":1026,"props":4069,"children":4070},{"style":2923},[4071],{"type":998,"value":4072}," generate_invoice",{"type":993,"tag":1026,"props":4074,"children":4075},{"style":1041},[4076],{"type":998,"value":4077},"(customer, items, tax_rate",{"type":993,"tag":1026,"props":4079,"children":4080},{"style":1047},[4081],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4083,"children":4084},{"style":1071},[4085],{"type":998,"value":4086},"0.08",{"type":993,"tag":1026,"props":4088,"children":4089},{"style":1041},[4090],{"type":998,"value":4091},"):\n",{"type":993,"tag":1026,"props":4093,"children":4094},{"class":1028,"line":27},[4095],{"type":993,"tag":1026,"props":4096,"children":4097},{"style":1053},[4098],{"type":998,"value":4099},"    \"\"\"Generate formatted invoice using multi-line f-strings\"\"\"\n",{"type":993,"tag":1026,"props":4101,"children":4102},{"class":1028,"line":36},[4103],{"type":993,"tag":1026,"props":4104,"children":4105},{"style":1041},[4106],{"type":998,"value":3000},{"type":993,"tag":1026,"props":4108,"children":4109},{"class":1028,"line":45},[4110,4115,4119,4123,4128,4133,4137,4141,4146,4151,4155,4159,4164,4168],{"type":993,"tag":1026,"props":4111,"children":4112},{"style":1041},[4113],{"type":998,"value":4114},"    subtotal ",{"type":993,"tag":1026,"props":4116,"children":4117},{"style":1047},[4118],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4120,"children":4121},{"style":1071},[4122],{"type":998,"value":2030},{"type":993,"tag":1026,"props":4124,"children":4125},{"style":1041},[4126],{"type":998,"value":4127},"(item[",{"type":993,"tag":1026,"props":4129,"children":4130},{"style":1053},[4131],{"type":998,"value":4132},"'price'",{"type":993,"tag":1026,"props":4134,"children":4135},{"style":1041},[4136],{"type":998,"value":3910},{"type":993,"tag":1026,"props":4138,"children":4139},{"style":1047},[4140],{"type":998,"value":1393},{"type":993,"tag":1026,"props":4142,"children":4143},{"style":1041},[4144],{"type":998,"value":4145}," item[",{"type":993,"tag":1026,"props":4147,"children":4148},{"style":1053},[4149],{"type":998,"value":4150},"'quantity'",{"type":993,"tag":1026,"props":4152,"children":4153},{"style":1041},[4154],{"type":998,"value":3910},{"type":993,"tag":1026,"props":4156,"children":4157},{"style":1047},[4158],{"type":998,"value":1897},{"type":993,"tag":1026,"props":4160,"children":4161},{"style":1041},[4162],{"type":998,"value":4163}," item ",{"type":993,"tag":1026,"props":4165,"children":4166},{"style":1047},[4167],{"type":998,"value":1907},{"type":993,"tag":1026,"props":4169,"children":4170},{"style":1041},[4171],{"type":998,"value":2053},{"type":993,"tag":1026,"props":4173,"children":4174},{"class":1028,"line":54},[4175,4180,4184,4189,4193],{"type":993,"tag":1026,"props":4176,"children":4177},{"style":1041},[4178],{"type":998,"value":4179},"    tax_amount ",{"type":993,"tag":1026,"props":4181,"children":4182},{"style":1047},[4183],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4185,"children":4186},{"style":1041},[4187],{"type":998,"value":4188}," subtotal ",{"type":993,"tag":1026,"props":4190,"children":4191},{"style":1047},[4192],{"type":998,"value":1393},{"type":993,"tag":1026,"props":4194,"children":4195},{"style":1041},[4196],{"type":998,"value":4197}," tax_rate\n",{"type":993,"tag":1026,"props":4199,"children":4200},{"class":1028,"line":63},[4201,4206,4210,4214,4218],{"type":993,"tag":1026,"props":4202,"children":4203},{"style":1041},[4204],{"type":998,"value":4205},"    total ",{"type":993,"tag":1026,"props":4207,"children":4208},{"style":1047},[4209],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4211,"children":4212},{"style":1041},[4213],{"type":998,"value":4188},{"type":993,"tag":1026,"props":4215,"children":4216},{"style":1047},[4217],{"type":998,"value":1266},{"type":993,"tag":1026,"props":4219,"children":4220},{"style":1041},[4221],{"type":998,"value":4222}," tax_amount\n",{"type":993,"tag":1026,"props":4224,"children":4225},{"class":1028,"line":72},[4226],{"type":993,"tag":1026,"props":4227,"children":4228},{"style":1041},[4229],{"type":998,"value":3000},{"type":993,"tag":1026,"props":4231,"children":4232},{"class":1028,"line":81},[4233],{"type":993,"tag":1026,"props":4234,"children":4235},{"style":1032},[4236],{"type":998,"value":4237},"    # Multi-line f-string invoice\n",{"type":993,"tag":1026,"props":4239,"children":4240},{"class":1028,"line":91},[4241,4246,4250,4254],{"type":993,"tag":1026,"props":4242,"children":4243},{"style":1041},[4244],{"type":998,"value":4245},"    invoice ",{"type":993,"tag":1026,"props":4247,"children":4248},{"style":1047},[4249],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4251,"children":4252},{"style":1047},[4253],{"type":998,"value":1158},{"type":993,"tag":1026,"props":4255,"children":4256},{"style":1053},[4257],{"type":998,"value":4258},"\"\"\"\n",{"type":993,"tag":1026,"props":4260,"children":4261},{"class":1028,"line":100},[4262],{"type":993,"tag":1026,"props":4263,"children":4264},{"style":1053},[4265],{"type":998,"value":4266},"╔══════════════════════════════════════════════════════╗\n",{"type":993,"tag":1026,"props":4268,"children":4269},{"class":1028,"line":109},[4270],{"type":993,"tag":1026,"props":4271,"children":4272},{"style":1053},[4273],{"type":998,"value":4274},"║                    INVOICE                           ║\n",{"type":993,"tag":1026,"props":4276,"children":4277},{"class":1028,"line":118},[4278],{"type":993,"tag":1026,"props":4279,"children":4280},{"style":1053},[4281],{"type":998,"value":4282},"╠══════════════════════════════════════════════════════╣\n",{"type":993,"tag":1026,"props":4284,"children":4285},{"class":1028,"line":127},[4286,4291,4295,4300,4305,4309,4314,4318],{"type":993,"tag":1026,"props":4287,"children":4288},{"style":1053},[4289],{"type":998,"value":4290},"║ Customer: ",{"type":993,"tag":1026,"props":4292,"children":4293},{"style":1071},[4294],{"type":998,"value":1168},{"type":993,"tag":1026,"props":4296,"children":4297},{"style":1041},[4298],{"type":998,"value":4299},"customer[",{"type":993,"tag":1026,"props":4301,"children":4302},{"style":1053},[4303],{"type":998,"value":4304},"'name'",{"type":993,"tag":1026,"props":4306,"children":4307},{"style":1041},[4308],{"type":998,"value":3857},{"type":993,"tag":1026,"props":4310,"children":4311},{"style":1047},[4312],{"type":998,"value":4313},":\u003C36",{"type":993,"tag":1026,"props":4315,"children":4316},{"style":1071},[4317],{"type":998,"value":1178},{"type":993,"tag":1026,"props":4319,"children":4320},{"style":1053},[4321],{"type":998,"value":4322}," ║\n",{"type":993,"tag":1026,"props":4324,"children":4325},{"class":1028,"line":136},[4326,4331,4335,4339,4344,4348,4352,4356],{"type":993,"tag":1026,"props":4327,"children":4328},{"style":1053},[4329],{"type":998,"value":4330},"║ Address:  ",{"type":993,"tag":1026,"props":4332,"children":4333},{"style":1071},[4334],{"type":998,"value":1168},{"type":993,"tag":1026,"props":4336,"children":4337},{"style":1041},[4338],{"type":998,"value":4299},{"type":993,"tag":1026,"props":4340,"children":4341},{"style":1053},[4342],{"type":998,"value":4343},"'address'",{"type":993,"tag":1026,"props":4345,"children":4346},{"style":1041},[4347],{"type":998,"value":3857},{"type":993,"tag":1026,"props":4349,"children":4350},{"style":1047},[4351],{"type":998,"value":4313},{"type":993,"tag":1026,"props":4353,"children":4354},{"style":1071},[4355],{"type":998,"value":1178},{"type":993,"tag":1026,"props":4357,"children":4358},{"style":1053},[4359],{"type":998,"value":4322},{"type":993,"tag":1026,"props":4361,"children":4362},{"class":1028,"line":146},[4363,4368,4372,4377,4381,4385,4390,4394,4398,4402],{"type":993,"tag":1026,"props":4364,"children":4365},{"style":1053},[4366],{"type":998,"value":4367},"║ Date:     ",{"type":993,"tag":1026,"props":4369,"children":4370},{"style":1071},[4371],{"type":998,"value":1168},{"type":993,"tag":1026,"props":4373,"children":4374},{"style":1041},[4375],{"type":998,"value":4376},"datetime.datetime.now().strftime(",{"type":993,"tag":1026,"props":4378,"children":4379},{"style":1053},[4380],{"type":998,"value":2767},{"type":993,"tag":1026,"props":4382,"children":4383},{"style":1071},[4384],{"type":998,"value":2772},{"type":993,"tag":1026,"props":4386,"children":4387},{"style":1053},[4388],{"type":998,"value":4389},"'",{"type":993,"tag":1026,"props":4391,"children":4392},{"style":1041},[4393],{"type":998,"value":2782},{"type":993,"tag":1026,"props":4395,"children":4396},{"style":1047},[4397],{"type":998,"value":4313},{"type":993,"tag":1026,"props":4399,"children":4400},{"style":1071},[4401],{"type":998,"value":1178},{"type":993,"tag":1026,"props":4403,"children":4404},{"style":1053},[4405],{"type":998,"value":4322},{"type":993,"tag":1026,"props":4407,"children":4408},{"class":1028,"line":155},[4409],{"type":993,"tag":1026,"props":4410,"children":4411},{"style":1053},[4412],{"type":998,"value":4282},{"type":993,"tag":1026,"props":4414,"children":4415},{"class":1028,"line":164},[4416],{"type":993,"tag":1026,"props":4417,"children":4418},{"style":1053},[4419],{"type":998,"value":4420},"║ Item                    Qty    Price      Total      ║\n",{"type":993,"tag":1026,"props":4422,"children":4423},{"class":1028,"line":173},[4424],{"type":993,"tag":1026,"props":4425,"children":4426},{"style":1053},[4427],{"type":998,"value":4428},"╠══════════════════════════════════════════════════════╣\"\"\"\n",{"type":993,"tag":1026,"props":4430,"children":4431},{"class":1028,"line":182},[4432],{"type":993,"tag":1026,"props":4433,"children":4434},{"style":1041},[4435],{"type":998,"value":3000},{"type":993,"tag":1026,"props":4437,"children":4438},{"class":1028,"line":191},[4439],{"type":993,"tag":1026,"props":4440,"children":4441},{"style":1032},[4442],{"type":998,"value":4443},"    # Add items to invoice\n",{"type":993,"tag":1026,"props":4445,"children":4446},{"class":1028,"line":201},[4447,4452,4456,4460],{"type":993,"tag":1026,"props":4448,"children":4449},{"style":1047},[4450],{"type":998,"value":4451},"    for",{"type":993,"tag":1026,"props":4453,"children":4454},{"style":1041},[4455],{"type":998,"value":4163},{"type":993,"tag":1026,"props":4457,"children":4458},{"style":1047},[4459],{"type":998,"value":1907},{"type":993,"tag":1026,"props":4461,"children":4462},{"style":1041},[4463],{"type":998,"value":1912},{"type":993,"tag":1026,"props":4465,"children":4466},{"class":1028,"line":210},[4467,4472,4476,4480,4484,4488,4492,4496,4500],{"type":993,"tag":1026,"props":4468,"children":4469},{"style":1041},[4470],{"type":998,"value":4471},"        item_total ",{"type":993,"tag":1026,"props":4473,"children":4474},{"style":1047},[4475],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4477,"children":4478},{"style":1041},[4479],{"type":998,"value":4145},{"type":993,"tag":1026,"props":4481,"children":4482},{"style":1053},[4483],{"type":998,"value":4132},{"type":993,"tag":1026,"props":4485,"children":4486},{"style":1041},[4487],{"type":998,"value":3910},{"type":993,"tag":1026,"props":4489,"children":4490},{"style":1047},[4491],{"type":998,"value":1393},{"type":993,"tag":1026,"props":4493,"children":4494},{"style":1041},[4495],{"type":998,"value":4145},{"type":993,"tag":1026,"props":4497,"children":4498},{"style":1053},[4499],{"type":998,"value":4150},{"type":993,"tag":1026,"props":4501,"children":4502},{"style":1041},[4503],{"type":998,"value":1816},{"type":993,"tag":1026,"props":4505,"children":4506},{"class":1028,"line":219},[4507,4512,4517,4521],{"type":993,"tag":1026,"props":4508,"children":4509},{"style":1041},[4510],{"type":998,"value":4511},"        invoice ",{"type":993,"tag":1026,"props":4513,"children":4514},{"style":1047},[4515],{"type":998,"value":4516},"+=",{"type":993,"tag":1026,"props":4518,"children":4519},{"style":1047},[4520],{"type":998,"value":1158},{"type":993,"tag":1026,"props":4522,"children":4523},{"style":1053},[4524],{"type":998,"value":4258},{"type":993,"tag":1026,"props":4526,"children":4527},{"class":1028,"line":228},[4528,4533,4537,4542,4546,4550,4555,4559,4563,4567,4571,4575,4580,4584,4588,4592,4596,4600,4604,4609,4613,4617,4621,4626,4631,4635],{"type":993,"tag":1026,"props":4529,"children":4530},{"style":1053},[4531],{"type":998,"value":4532},"║ ",{"type":993,"tag":1026,"props":4534,"children":4535},{"style":1071},[4536],{"type":998,"value":1168},{"type":993,"tag":1026,"props":4538,"children":4539},{"style":1041},[4540],{"type":998,"value":4541},"item[",{"type":993,"tag":1026,"props":4543,"children":4544},{"style":1053},[4545],{"type":998,"value":4304},{"type":993,"tag":1026,"props":4547,"children":4548},{"style":1041},[4549],{"type":998,"value":3857},{"type":993,"tag":1026,"props":4551,"children":4552},{"style":1047},[4553],{"type":998,"value":4554},":\u003C22",{"type":993,"tag":1026,"props":4556,"children":4557},{"style":1071},[4558],{"type":998,"value":1178},{"type":993,"tag":1026,"props":4560,"children":4561},{"style":1071},[4562],{"type":998,"value":3361},{"type":993,"tag":1026,"props":4564,"children":4565},{"style":1041},[4566],{"type":998,"value":4541},{"type":993,"tag":1026,"props":4568,"children":4569},{"style":1053},[4570],{"type":998,"value":4150},{"type":993,"tag":1026,"props":4572,"children":4573},{"style":1041},[4574],{"type":998,"value":3857},{"type":993,"tag":1026,"props":4576,"children":4577},{"style":1047},[4578],{"type":998,"value":4579},":>3",{"type":993,"tag":1026,"props":4581,"children":4582},{"style":1071},[4583],{"type":998,"value":1178},{"type":993,"tag":1026,"props":4585,"children":4586},{"style":1053},[4587],{"type":998,"value":1955},{"type":993,"tag":1026,"props":4589,"children":4590},{"style":1071},[4591],{"type":998,"value":1168},{"type":993,"tag":1026,"props":4593,"children":4594},{"style":1041},[4595],{"type":998,"value":4541},{"type":993,"tag":1026,"props":4597,"children":4598},{"style":1053},[4599],{"type":998,"value":4132},{"type":993,"tag":1026,"props":4601,"children":4602},{"style":1041},[4603],{"type":998,"value":3857},{"type":993,"tag":1026,"props":4605,"children":4606},{"style":1047},[4607],{"type":998,"value":4608},":>7.2f",{"type":993,"tag":1026,"props":4610,"children":4611},{"style":1071},[4612],{"type":998,"value":1178},{"type":993,"tag":1026,"props":4614,"children":4615},{"style":1053},[4616],{"type":998,"value":1955},{"type":993,"tag":1026,"props":4618,"children":4619},{"style":1071},[4620],{"type":998,"value":1168},{"type":993,"tag":1026,"props":4622,"children":4623},{"style":1041},[4624],{"type":998,"value":4625},"item_total",{"type":993,"tag":1026,"props":4627,"children":4628},{"style":1047},[4629],{"type":998,"value":4630},":>9.2f",{"type":993,"tag":1026,"props":4632,"children":4633},{"style":1071},[4634],{"type":998,"value":1178},{"type":993,"tag":1026,"props":4636,"children":4637},{"style":1053},[4638],{"type":998,"value":4639}," ║\"\"\"\n",{"type":993,"tag":1026,"props":4641,"children":4642},{"class":1028,"line":238},[4643],{"type":993,"tag":1026,"props":4644,"children":4645},{"style":1041},[4646],{"type":998,"value":3000},{"type":993,"tag":1026,"props":4648,"children":4649},{"class":1028,"line":247},[4650],{"type":993,"tag":1026,"props":4651,"children":4652},{"style":1032},[4653],{"type":998,"value":4654},"    # Add totals\n",{"type":993,"tag":1026,"props":4656,"children":4657},{"class":1028,"line":256},[4658,4662,4666,4670],{"type":993,"tag":1026,"props":4659,"children":4660},{"style":1041},[4661],{"type":998,"value":4245},{"type":993,"tag":1026,"props":4663,"children":4664},{"style":1047},[4665],{"type":998,"value":4516},{"type":993,"tag":1026,"props":4667,"children":4668},{"style":1047},[4669],{"type":998,"value":1158},{"type":993,"tag":1026,"props":4671,"children":4672},{"style":1053},[4673],{"type":998,"value":4258},{"type":993,"tag":1026,"props":4675,"children":4676},{"class":1028,"line":265},[4677],{"type":993,"tag":1026,"props":4678,"children":4679},{"style":1053},[4680],{"type":998,"value":4282},{"type":993,"tag":1026,"props":4682,"children":4683},{"class":1028,"line":274},[4684,4689,4693,4698,4702,4706],{"type":993,"tag":1026,"props":4685,"children":4686},{"style":1053},[4687],{"type":998,"value":4688},"║ Subtotal:                              $",{"type":993,"tag":1026,"props":4690,"children":4691},{"style":1071},[4692],{"type":998,"value":1168},{"type":993,"tag":1026,"props":4694,"children":4695},{"style":1041},[4696],{"type":998,"value":4697},"subtotal",{"type":993,"tag":1026,"props":4699,"children":4700},{"style":1047},[4701],{"type":998,"value":4630},{"type":993,"tag":1026,"props":4703,"children":4704},{"style":1071},[4705],{"type":998,"value":1178},{"type":993,"tag":1026,"props":4707,"children":4708},{"style":1053},[4709],{"type":998,"value":4322},{"type":993,"tag":1026,"props":4711,"children":4712},{"class":1028,"line":284},[4713,4718,4722,4726,4730,4734,4739,4743,4748,4752,4756],{"type":993,"tag":1026,"props":4714,"children":4715},{"style":1053},[4716],{"type":998,"value":4717},"║ Tax (",{"type":993,"tag":1026,"props":4719,"children":4720},{"style":1071},[4721],{"type":998,"value":1168},{"type":993,"tag":1026,"props":4723,"children":4724},{"style":1041},[4725],{"type":998,"value":1488},{"type":993,"tag":1026,"props":4727,"children":4728},{"style":1047},[4729],{"type":998,"value":1493},{"type":993,"tag":1026,"props":4731,"children":4732},{"style":1071},[4733],{"type":998,"value":1178},{"type":993,"tag":1026,"props":4735,"children":4736},{"style":1053},[4737],{"type":998,"value":4738},"):                              $",{"type":993,"tag":1026,"props":4740,"children":4741},{"style":1071},[4742],{"type":998,"value":1168},{"type":993,"tag":1026,"props":4744,"children":4745},{"style":1041},[4746],{"type":998,"value":4747},"tax_amount",{"type":993,"tag":1026,"props":4749,"children":4750},{"style":1047},[4751],{"type":998,"value":4630},{"type":993,"tag":1026,"props":4753,"children":4754},{"style":1071},[4755],{"type":998,"value":1178},{"type":993,"tag":1026,"props":4757,"children":4758},{"style":1053},[4759],{"type":998,"value":4322},{"type":993,"tag":1026,"props":4761,"children":4762},{"class":1028,"line":293},[4763,4768,4772,4776,4780,4784],{"type":993,"tag":1026,"props":4764,"children":4765},{"style":1053},[4766],{"type":998,"value":4767},"║ Total:                                 $",{"type":993,"tag":1026,"props":4769,"children":4770},{"style":1071},[4771],{"type":998,"value":1168},{"type":993,"tag":1026,"props":4773,"children":4774},{"style":1041},[4775],{"type":998,"value":1534},{"type":993,"tag":1026,"props":4777,"children":4778},{"style":1047},[4779],{"type":998,"value":4630},{"type":993,"tag":1026,"props":4781,"children":4782},{"style":1071},[4783],{"type":998,"value":1178},{"type":993,"tag":1026,"props":4785,"children":4786},{"style":1053},[4787],{"type":998,"value":4322},{"type":993,"tag":1026,"props":4789,"children":4790},{"class":1028,"line":302},[4791],{"type":993,"tag":1026,"props":4792,"children":4793},{"style":1053},[4794],{"type":998,"value":4795},"╚══════════════════════════════════════════════════════╝\"\"\"\n",{"type":993,"tag":1026,"props":4797,"children":4798},{"class":1028,"line":311},[4799],{"type":993,"tag":1026,"props":4800,"children":4801},{"style":1041},[4802],{"type":998,"value":3000},{"type":993,"tag":1026,"props":4804,"children":4805},{"class":1028,"line":320},[4806,4811],{"type":993,"tag":1026,"props":4807,"children":4808},{"style":1047},[4809],{"type":998,"value":4810},"    return",{"type":993,"tag":1026,"props":4812,"children":4813},{"style":1041},[4814],{"type":998,"value":4815}," invoice\n",{"type":993,"tag":1026,"props":4817,"children":4818},{"class":1028,"line":329},[4819],{"type":993,"tag":1026,"props":4820,"children":4821},{"emptyLinePlaceholder":13},[4822],{"type":998,"value":1133},{"type":993,"tag":1026,"props":4824,"children":4825},{"class":1028,"line":338},[4826],{"type":993,"tag":1026,"props":4827,"children":4828},{"style":1032},[4829],{"type":998,"value":4830},"# Example usage\n",{"type":993,"tag":1026,"props":4832,"children":4833},{"class":1028,"line":347},[4834,4839,4843],{"type":993,"tag":1026,"props":4835,"children":4836},{"style":1041},[4837],{"type":998,"value":4838},"customer_info ",{"type":993,"tag":1026,"props":4840,"children":4841},{"style":1047},[4842],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4844,"children":4845},{"style":1041},[4846],{"type":998,"value":4847}," {\n",{"type":993,"tag":1026,"props":4849,"children":4850},{"class":1028,"line":356},[4851,4856,4860,4865],{"type":993,"tag":1026,"props":4852,"children":4853},{"style":1053},[4854],{"type":998,"value":4855},"    \"name\"",{"type":993,"tag":1026,"props":4857,"children":4858},{"style":1041},[4859],{"type":998,"value":2168},{"type":993,"tag":1026,"props":4861,"children":4862},{"style":1053},[4863],{"type":998,"value":4864},"\"Alice Johnson\"",{"type":993,"tag":1026,"props":4866,"children":4867},{"style":1041},[4868],{"type":998,"value":4869},",\n",{"type":993,"tag":1026,"props":4871,"children":4872},{"class":1028,"line":365},[4873,4878,4882],{"type":993,"tag":1026,"props":4874,"children":4875},{"style":1053},[4876],{"type":998,"value":4877},"    \"address\"",{"type":993,"tag":1026,"props":4879,"children":4880},{"style":1041},[4881],{"type":998,"value":2168},{"type":993,"tag":1026,"props":4883,"children":4884},{"style":1053},[4885],{"type":998,"value":4886},"\"123 Main St, New York, NY 10001\"\n",{"type":993,"tag":1026,"props":4888,"children":4889},{"class":1028,"line":374},[4890],{"type":993,"tag":1026,"props":4891,"children":4892},{"style":1041},[4893],{"type":998,"value":3786},{"type":993,"tag":1026,"props":4895,"children":4896},{"class":1028,"line":384},[4897],{"type":993,"tag":1026,"props":4898,"children":4899},{"emptyLinePlaceholder":13},[4900],{"type":998,"value":1133},{"type":993,"tag":1026,"props":4902,"children":4903},{"class":1028,"line":393},[4904,4909,4913],{"type":993,"tag":1026,"props":4905,"children":4906},{"style":1041},[4907],{"type":998,"value":4908},"order_items ",{"type":993,"tag":1026,"props":4910,"children":4911},{"style":1047},[4912],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4914,"children":4915},{"style":1041},[4916],{"type":998,"value":1705},{"type":993,"tag":1026,"props":4918,"children":4919},{"class":1028,"line":402},[4920,4925,4930,4934,4939,4943,4948,4952,4956,4960,4965,4969,4973],{"type":993,"tag":1026,"props":4921,"children":4922},{"style":1041},[4923],{"type":998,"value":4924},"    {",{"type":993,"tag":1026,"props":4926,"children":4927},{"style":1053},[4928],{"type":998,"value":4929},"\"name\"",{"type":993,"tag":1026,"props":4931,"children":4932},{"style":1041},[4933],{"type":998,"value":2168},{"type":993,"tag":1026,"props":4935,"children":4936},{"style":1053},[4937],{"type":998,"value":4938},"\"Laptop Computer\"",{"type":993,"tag":1026,"props":4940,"children":4941},{"style":1041},[4942],{"type":998,"value":1723},{"type":993,"tag":1026,"props":4944,"children":4945},{"style":1053},[4946],{"type":998,"value":4947},"\"quantity\"",{"type":993,"tag":1026,"props":4949,"children":4950},{"style":1041},[4951],{"type":998,"value":2168},{"type":993,"tag":1026,"props":4953,"children":4954},{"style":1071},[4955],{"type":998,"value":1403},{"type":993,"tag":1026,"props":4957,"children":4958},{"style":1041},[4959],{"type":998,"value":1723},{"type":993,"tag":1026,"props":4961,"children":4962},{"style":1053},[4963],{"type":998,"value":4964},"\"price\"",{"type":993,"tag":1026,"props":4966,"children":4967},{"style":1041},[4968],{"type":998,"value":2168},{"type":993,"tag":1026,"props":4970,"children":4971},{"style":1071},[4972],{"type":998,"value":1728},{"type":993,"tag":1026,"props":4974,"children":4975},{"style":1041},[4976],{"type":998,"value":4977},"},\n",{"type":993,"tag":1026,"props":4979,"children":4980},{"class":1028,"line":411},[4981,4985,4989,4993,4998,5002,5006,5010,5015,5019,5023,5027,5031],{"type":993,"tag":1026,"props":4982,"children":4983},{"style":1041},[4984],{"type":998,"value":4924},{"type":993,"tag":1026,"props":4986,"children":4987},{"style":1053},[4988],{"type":998,"value":4929},{"type":993,"tag":1026,"props":4990,"children":4991},{"style":1041},[4992],{"type":998,"value":2168},{"type":993,"tag":1026,"props":4994,"children":4995},{"style":1053},[4996],{"type":998,"value":4997},"\"Wireless Mouse\"",{"type":993,"tag":1026,"props":4999,"children":5000},{"style":1041},[5001],{"type":998,"value":1723},{"type":993,"tag":1026,"props":5003,"children":5004},{"style":1053},[5005],{"type":998,"value":4947},{"type":993,"tag":1026,"props":5007,"children":5008},{"style":1041},[5009],{"type":998,"value":2168},{"type":993,"tag":1026,"props":5011,"children":5012},{"style":1071},[5013],{"type":998,"value":5014},"2",{"type":993,"tag":1026,"props":5016,"children":5017},{"style":1041},[5018],{"type":998,"value":1723},{"type":993,"tag":1026,"props":5020,"children":5021},{"style":1053},[5022],{"type":998,"value":4964},{"type":993,"tag":1026,"props":5024,"children":5025},{"style":1041},[5026],{"type":998,"value":2168},{"type":993,"tag":1026,"props":5028,"children":5029},{"style":1071},[5030],{"type":998,"value":1754},{"type":993,"tag":1026,"props":5032,"children":5033},{"style":1041},[5034],{"type":998,"value":4977},{"type":993,"tag":1026,"props":5036,"children":5037},{"class":1028,"line":420},[5038,5042,5046,5050,5055,5059,5063,5067,5072,5076,5080,5084,5089],{"type":993,"tag":1026,"props":5039,"children":5040},{"style":1041},[5041],{"type":998,"value":4924},{"type":993,"tag":1026,"props":5043,"children":5044},{"style":1053},[5045],{"type":998,"value":4929},{"type":993,"tag":1026,"props":5047,"children":5048},{"style":1041},[5049],{"type":998,"value":2168},{"type":993,"tag":1026,"props":5051,"children":5052},{"style":1053},[5053],{"type":998,"value":5054},"\"USB Cable\"",{"type":993,"tag":1026,"props":5056,"children":5057},{"style":1041},[5058],{"type":998,"value":1723},{"type":993,"tag":1026,"props":5060,"children":5061},{"style":1053},[5062],{"type":998,"value":4947},{"type":993,"tag":1026,"props":5064,"children":5065},{"style":1041},[5066],{"type":998,"value":2168},{"type":993,"tag":1026,"props":5068,"children":5069},{"style":1071},[5070],{"type":998,"value":5071},"3",{"type":993,"tag":1026,"props":5073,"children":5074},{"style":1041},[5075],{"type":998,"value":1723},{"type":993,"tag":1026,"props":5077,"children":5078},{"style":1053},[5079],{"type":998,"value":4964},{"type":993,"tag":1026,"props":5081,"children":5082},{"style":1041},[5083],{"type":998,"value":2168},{"type":993,"tag":1026,"props":5085,"children":5086},{"style":1071},[5087],{"type":998,"value":5088},"12.99",{"type":993,"tag":1026,"props":5090,"children":5091},{"style":1041},[5092],{"type":998,"value":3786},{"type":993,"tag":1026,"props":5094,"children":5095},{"class":1028,"line":429},[5096],{"type":993,"tag":1026,"props":5097,"children":5098},{"style":1041},[5099],{"type":998,"value":1816},{"type":993,"tag":1026,"props":5101,"children":5102},{"class":1028,"line":438},[5103],{"type":993,"tag":1026,"props":5104,"children":5105},{"emptyLinePlaceholder":13},[5106],{"type":998,"value":1133},{"type":993,"tag":1026,"props":5108,"children":5109},{"class":1028,"line":447},[5110,5115,5119],{"type":993,"tag":1026,"props":5111,"children":5112},{"style":1041},[5113],{"type":998,"value":5114},"invoice ",{"type":993,"tag":1026,"props":5116,"children":5117},{"style":1047},[5118],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5120,"children":5121},{"style":1041},[5122],{"type":998,"value":5123}," generate_invoice(customer_info, order_items)\n",{"type":993,"tag":1026,"props":5125,"children":5126},{"class":1028,"line":457},[5127,5131],{"type":993,"tag":1026,"props":5128,"children":5129},{"style":1071},[5130],{"type":998,"value":1209},{"type":993,"tag":1026,"props":5132,"children":5133},{"style":1041},[5134],{"type":998,"value":5135},"(invoice)\n",{"type":993,"tag":2513,"props":5137,"children":5139},{"id":5138},"data-presentation-and-tables",[5140],{"type":998,"value":5141},"Data Presentation and Tables",{"type":993,"tag":1001,"props":5143,"children":5144},{},[5145],{"type":998,"value":5146},"Formatting techniques create organized, professional data displays for reports and user interfaces.",{"type":993,"tag":1012,"props":5148,"children":5149},{},[5150],{"type":993,"tag":1016,"props":5151,"children":5153},{"className":1018,"code":5152,"language":6,"meta":8,"style":8},"def create_data_table(title, headers, data, number_columns=None):\n    \"\"\"Create formatted data table with proper alignment\"\"\"\n    \n    if number_columns is None:\n        number_columns = []\n    \n    # Calculate column widths\n    col_widths = []\n    for i, header in enumerate(headers):\n        max_width = len(header)\n        for row in data:\n            if i \u003C len(row):\n                cell_width = len(str(row[i]))\n                max_width = max(max_width, cell_width)\n        col_widths.append(max_width + 2)  # Add padding\n    \n    # Create table\n    table = f\"\\n{title}\\n\"\n    table += \"=\" * len(title) + \"\\n\"\n    \n    # Header row\n    header_row = \"\"\n    for i, (header, width) in enumerate(zip(headers, col_widths)):\n        if i in number_columns:\n            header_row += f\"{header:>{width}}\"\n        else:\n            header_row += f\"{header:\u003C{width}}\"\n    \n    table += header_row + \"\\n\"\n    table += \"-\" * len(header_row) + \"\\n\"\n    \n    # Data rows\n    for row in data:\n        data_row = \"\"\n        for i, (cell, width) in enumerate(zip(row, col_widths)):\n            if i in number_columns:\n                if isinstance(cell, float):\n                    data_row += f\"{cell:>{width}.2f}\"\n                else:\n                    data_row += f\"{cell:>{width}}\"\n            else:\n                data_row += f\"{str(cell):\u003C{width}}\"\n        \n        table += data_row + \"\\n\"\n    \n    return table\n\n# Sales data example\nsales_headers = [\"Product\", \"Units Sold\", \"Unit Price\", \"Revenue\"]\nsales_data = [\n    [\"Laptop\", 45, 999.99, 44999.55],\n    [\"Mouse\", 120, 29.99, 3598.80],\n    [\"Keyboard\", 85, 79.99, 6799.15],\n    [\"Monitor\", 32, 299.99, 9599.68]\n]\n\nsales_table = create_data_table(\n    \"Monthly Sales Report\", \n    sales_headers, \n    sales_data, \n    number_columns=[1, 2, 3]  # Align numbers to the right\n)\n\nprint(sales_table)\n\n# Performance metrics example\nmetrics_headers = [\"Metric\", \"Current\", \"Target\", \"Status\"]\nmetrics_data = [\n    [\"Response Time\", \"1.2s\", \"\u003C 2.0s\", \"✅ Good\"],\n    [\"Uptime\", \"99.8%\", \"> 99.5%\", \"✅ Good\"],\n    [\"Memory Usage\", \"78%\", \"\u003C 80%\", \"✅ Good\"],\n    [\"CPU Usage\", \"85%\", \"\u003C 75%\", \"⚠️ High\"]\n]\n\nmetrics_table = create_data_table(\n    \"System Performance Metrics\",\n    metrics_headers,\n    metrics_data\n)\n\nprint(metrics_table)\n",[5154],{"type":993,"tag":1022,"props":5155,"children":5156},{"__ignoreMap":8},[5157,5187,5195,5202,5229,5246,5253,5261,5277,5303,5324,5346,5372,5402,5424,5451,5458,5466,5505,5551,5558,5566,5583,5617,5638,5690,5702,5750,5757,5789,5834,5841,5849,5868,5884,5917,5936,5963,6021,6033,6080,6092,6142,6150,6183,6190,6202,6209,6217,6270,6286,6328,6369,6409,6451,6458,6465,6482,6495,6503,6511,6559,6566,6573,6585,6592,6600,6652,6668,6711,6753,6795,6838,6845,6852,6868,6880,6888,6896,6903,6910],{"type":993,"tag":1026,"props":5158,"children":5159},{"class":1028,"line":12},[5160,5164,5169,5174,5178,5183],{"type":993,"tag":1026,"props":5161,"children":5162},{"style":1047},[5163],{"type":998,"value":4067},{"type":993,"tag":1026,"props":5165,"children":5166},{"style":2923},[5167],{"type":998,"value":5168}," create_data_table",{"type":993,"tag":1026,"props":5170,"children":5171},{"style":1041},[5172],{"type":998,"value":5173},"(title, headers, data, number_columns",{"type":993,"tag":1026,"props":5175,"children":5176},{"style":1047},[5177],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5179,"children":5180},{"style":1071},[5181],{"type":998,"value":5182},"None",{"type":993,"tag":1026,"props":5184,"children":5185},{"style":1041},[5186],{"type":998,"value":4091},{"type":993,"tag":1026,"props":5188,"children":5189},{"class":1028,"line":27},[5190],{"type":993,"tag":1026,"props":5191,"children":5192},{"style":1053},[5193],{"type":998,"value":5194},"    \"\"\"Create formatted data table with proper alignment\"\"\"\n",{"type":993,"tag":1026,"props":5196,"children":5197},{"class":1028,"line":36},[5198],{"type":993,"tag":1026,"props":5199,"children":5200},{"style":1041},[5201],{"type":998,"value":3000},{"type":993,"tag":1026,"props":5203,"children":5204},{"class":1028,"line":45},[5205,5210,5215,5220,5225],{"type":993,"tag":1026,"props":5206,"children":5207},{"style":1047},[5208],{"type":998,"value":5209},"    if",{"type":993,"tag":1026,"props":5211,"children":5212},{"style":1041},[5213],{"type":998,"value":5214}," number_columns ",{"type":993,"tag":1026,"props":5216,"children":5217},{"style":1047},[5218],{"type":998,"value":5219},"is",{"type":993,"tag":1026,"props":5221,"children":5222},{"style":1071},[5223],{"type":998,"value":5224}," None",{"type":993,"tag":1026,"props":5226,"children":5227},{"style":1041},[5228],{"type":998,"value":2931},{"type":993,"tag":1026,"props":5230,"children":5231},{"class":1028,"line":54},[5232,5237,5241],{"type":993,"tag":1026,"props":5233,"children":5234},{"style":1041},[5235],{"type":998,"value":5236},"        number_columns ",{"type":993,"tag":1026,"props":5238,"children":5239},{"style":1047},[5240],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5242,"children":5243},{"style":1041},[5244],{"type":998,"value":5245}," []\n",{"type":993,"tag":1026,"props":5247,"children":5248},{"class":1028,"line":63},[5249],{"type":993,"tag":1026,"props":5250,"children":5251},{"style":1041},[5252],{"type":998,"value":3000},{"type":993,"tag":1026,"props":5254,"children":5255},{"class":1028,"line":72},[5256],{"type":993,"tag":1026,"props":5257,"children":5258},{"style":1032},[5259],{"type":998,"value":5260},"    # Calculate column widths\n",{"type":993,"tag":1026,"props":5262,"children":5263},{"class":1028,"line":81},[5264,5269,5273],{"type":993,"tag":1026,"props":5265,"children":5266},{"style":1041},[5267],{"type":998,"value":5268},"    col_widths ",{"type":993,"tag":1026,"props":5270,"children":5271},{"style":1047},[5272],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5274,"children":5275},{"style":1041},[5276],{"type":998,"value":5245},{"type":993,"tag":1026,"props":5278,"children":5279},{"class":1028,"line":91},[5280,5284,5289,5293,5298],{"type":993,"tag":1026,"props":5281,"children":5282},{"style":1047},[5283],{"type":998,"value":4451},{"type":993,"tag":1026,"props":5285,"children":5286},{"style":1041},[5287],{"type":998,"value":5288}," i, header ",{"type":993,"tag":1026,"props":5290,"children":5291},{"style":1047},[5292],{"type":998,"value":1907},{"type":993,"tag":1026,"props":5294,"children":5295},{"style":1071},[5296],{"type":998,"value":5297}," enumerate",{"type":993,"tag":1026,"props":5299,"children":5300},{"style":1041},[5301],{"type":998,"value":5302},"(headers):\n",{"type":993,"tag":1026,"props":5304,"children":5305},{"class":1028,"line":100},[5306,5311,5315,5319],{"type":993,"tag":1026,"props":5307,"children":5308},{"style":1041},[5309],{"type":998,"value":5310},"        max_width ",{"type":993,"tag":1026,"props":5312,"children":5313},{"style":1047},[5314],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5316,"children":5317},{"style":1071},[5318],{"type":998,"value":3052},{"type":993,"tag":1026,"props":5320,"children":5321},{"style":1041},[5322],{"type":998,"value":5323},"(header)\n",{"type":993,"tag":1026,"props":5325,"children":5326},{"class":1028,"line":109},[5327,5332,5337,5341],{"type":993,"tag":1026,"props":5328,"children":5329},{"style":1047},[5330],{"type":998,"value":5331},"        for",{"type":993,"tag":1026,"props":5333,"children":5334},{"style":1041},[5335],{"type":998,"value":5336}," row ",{"type":993,"tag":1026,"props":5338,"children":5339},{"style":1047},[5340],{"type":998,"value":1907},{"type":993,"tag":1026,"props":5342,"children":5343},{"style":1041},[5344],{"type":998,"value":5345}," data:\n",{"type":993,"tag":1026,"props":5347,"children":5348},{"class":1028,"line":118},[5349,5354,5359,5363,5367],{"type":993,"tag":1026,"props":5350,"children":5351},{"style":1047},[5352],{"type":998,"value":5353},"            if",{"type":993,"tag":1026,"props":5355,"children":5356},{"style":1041},[5357],{"type":998,"value":5358}," i ",{"type":993,"tag":1026,"props":5360,"children":5361},{"style":1047},[5362],{"type":998,"value":2292},{"type":993,"tag":1026,"props":5364,"children":5365},{"style":1071},[5366],{"type":998,"value":3052},{"type":993,"tag":1026,"props":5368,"children":5369},{"style":1041},[5370],{"type":998,"value":5371},"(row):\n",{"type":993,"tag":1026,"props":5373,"children":5374},{"class":1028,"line":127},[5375,5380,5384,5388,5392,5397],{"type":993,"tag":1026,"props":5376,"children":5377},{"style":1041},[5378],{"type":998,"value":5379},"                cell_width ",{"type":993,"tag":1026,"props":5381,"children":5382},{"style":1047},[5383],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5385,"children":5386},{"style":1071},[5387],{"type":998,"value":3052},{"type":993,"tag":1026,"props":5389,"children":5390},{"style":1041},[5391],{"type":998,"value":1226},{"type":993,"tag":1026,"props":5393,"children":5394},{"style":1071},[5395],{"type":998,"value":5396},"str",{"type":993,"tag":1026,"props":5398,"children":5399},{"style":1041},[5400],{"type":998,"value":5401},"(row[i]))\n",{"type":993,"tag":1026,"props":5403,"children":5404},{"class":1028,"line":136},[5405,5410,5414,5419],{"type":993,"tag":1026,"props":5406,"children":5407},{"style":1041},[5408],{"type":998,"value":5409},"                max_width ",{"type":993,"tag":1026,"props":5411,"children":5412},{"style":1047},[5413],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5415,"children":5416},{"style":1071},[5417],{"type":998,"value":5418}," max",{"type":993,"tag":1026,"props":5420,"children":5421},{"style":1041},[5422],{"type":998,"value":5423},"(max_width, cell_width)\n",{"type":993,"tag":1026,"props":5425,"children":5426},{"class":1028,"line":146},[5427,5432,5436,5441,5446],{"type":993,"tag":1026,"props":5428,"children":5429},{"style":1041},[5430],{"type":998,"value":5431},"        col_widths.append(max_width ",{"type":993,"tag":1026,"props":5433,"children":5434},{"style":1047},[5435],{"type":998,"value":1266},{"type":993,"tag":1026,"props":5437,"children":5438},{"style":1071},[5439],{"type":998,"value":5440}," 2",{"type":993,"tag":1026,"props":5442,"children":5443},{"style":1041},[5444],{"type":998,"value":5445},")  ",{"type":993,"tag":1026,"props":5447,"children":5448},{"style":1032},[5449],{"type":998,"value":5450},"# Add padding\n",{"type":993,"tag":1026,"props":5452,"children":5453},{"class":1028,"line":155},[5454],{"type":993,"tag":1026,"props":5455,"children":5456},{"style":1041},[5457],{"type":998,"value":3000},{"type":993,"tag":1026,"props":5459,"children":5460},{"class":1028,"line":164},[5461],{"type":993,"tag":1026,"props":5462,"children":5463},{"style":1032},[5464],{"type":998,"value":5465},"    # Create table\n",{"type":993,"tag":1026,"props":5467,"children":5468},{"class":1028,"line":173},[5469,5474,5478,5482,5486,5491,5496,5501],{"type":993,"tag":1026,"props":5470,"children":5471},{"style":1041},[5472],{"type":998,"value":5473},"    table ",{"type":993,"tag":1026,"props":5475,"children":5476},{"style":1047},[5477],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5479,"children":5480},{"style":1047},[5481],{"type":998,"value":1158},{"type":993,"tag":1026,"props":5483,"children":5484},{"style":1053},[5485],{"type":998,"value":1301},{"type":993,"tag":1026,"props":5487,"children":5488},{"style":1071},[5489],{"type":998,"value":5490},"\\n{",{"type":993,"tag":1026,"props":5492,"children":5493},{"style":1041},[5494],{"type":998,"value":5495},"title",{"type":993,"tag":1026,"props":5497,"children":5498},{"style":1071},[5499],{"type":998,"value":5500},"}\\n",{"type":993,"tag":1026,"props":5502,"children":5503},{"style":1053},[5504],{"type":998,"value":2696},{"type":993,"tag":1026,"props":5506,"children":5507},{"class":1028,"line":182},[5508,5512,5516,5521,5525,5529,5534,5538,5543,5547],{"type":993,"tag":1026,"props":5509,"children":5510},{"style":1041},[5511],{"type":998,"value":5473},{"type":993,"tag":1026,"props":5513,"children":5514},{"style":1047},[5515],{"type":998,"value":4516},{"type":993,"tag":1026,"props":5517,"children":5518},{"style":1053},[5519],{"type":998,"value":5520}," \"=\"",{"type":993,"tag":1026,"props":5522,"children":5523},{"style":1047},[5524],{"type":998,"value":1873},{"type":993,"tag":1026,"props":5526,"children":5527},{"style":1071},[5528],{"type":998,"value":3052},{"type":993,"tag":1026,"props":5530,"children":5531},{"style":1041},[5532],{"type":998,"value":5533},"(title) ",{"type":993,"tag":1026,"props":5535,"children":5536},{"style":1047},[5537],{"type":998,"value":1266},{"type":993,"tag":1026,"props":5539,"children":5540},{"style":1053},[5541],{"type":998,"value":5542}," \"",{"type":993,"tag":1026,"props":5544,"children":5545},{"style":1071},[5546],{"type":998,"value":1843},{"type":993,"tag":1026,"props":5548,"children":5549},{"style":1053},[5550],{"type":998,"value":2696},{"type":993,"tag":1026,"props":5552,"children":5553},{"class":1028,"line":191},[5554],{"type":993,"tag":1026,"props":5555,"children":5556},{"style":1041},[5557],{"type":998,"value":3000},{"type":993,"tag":1026,"props":5559,"children":5560},{"class":1028,"line":201},[5561],{"type":993,"tag":1026,"props":5562,"children":5563},{"style":1032},[5564],{"type":998,"value":5565},"    # Header row\n",{"type":993,"tag":1026,"props":5567,"children":5568},{"class":1028,"line":210},[5569,5574,5578],{"type":993,"tag":1026,"props":5570,"children":5571},{"style":1041},[5572],{"type":998,"value":5573},"    header_row ",{"type":993,"tag":1026,"props":5575,"children":5576},{"style":1047},[5577],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5579,"children":5580},{"style":1053},[5581],{"type":998,"value":5582}," \"\"\n",{"type":993,"tag":1026,"props":5584,"children":5585},{"class":1028,"line":219},[5586,5590,5595,5599,5603,5607,5612],{"type":993,"tag":1026,"props":5587,"children":5588},{"style":1047},[5589],{"type":998,"value":4451},{"type":993,"tag":1026,"props":5591,"children":5592},{"style":1041},[5593],{"type":998,"value":5594}," i, (header, width) ",{"type":993,"tag":1026,"props":5596,"children":5597},{"style":1047},[5598],{"type":998,"value":1907},{"type":993,"tag":1026,"props":5600,"children":5601},{"style":1071},[5602],{"type":998,"value":5297},{"type":993,"tag":1026,"props":5604,"children":5605},{"style":1041},[5606],{"type":998,"value":1226},{"type":993,"tag":1026,"props":5608,"children":5609},{"style":1071},[5610],{"type":998,"value":5611},"zip",{"type":993,"tag":1026,"props":5613,"children":5614},{"style":1041},[5615],{"type":998,"value":5616},"(headers, col_widths)):\n",{"type":993,"tag":1026,"props":5618,"children":5619},{"class":1028,"line":228},[5620,5625,5629,5633],{"type":993,"tag":1026,"props":5621,"children":5622},{"style":1047},[5623],{"type":998,"value":5624},"        if",{"type":993,"tag":1026,"props":5626,"children":5627},{"style":1041},[5628],{"type":998,"value":5358},{"type":993,"tag":1026,"props":5630,"children":5631},{"style":1047},[5632],{"type":998,"value":1907},{"type":993,"tag":1026,"props":5634,"children":5635},{"style":1041},[5636],{"type":998,"value":5637}," number_columns:\n",{"type":993,"tag":1026,"props":5639,"children":5640},{"class":1028,"line":238},[5641,5646,5650,5654,5658,5662,5667,5672,5676,5681,5686],{"type":993,"tag":1026,"props":5642,"children":5643},{"style":1041},[5644],{"type":998,"value":5645},"            header_row ",{"type":993,"tag":1026,"props":5647,"children":5648},{"style":1047},[5649],{"type":998,"value":4516},{"type":993,"tag":1026,"props":5651,"children":5652},{"style":1047},[5653],{"type":998,"value":1158},{"type":993,"tag":1026,"props":5655,"children":5656},{"style":1053},[5657],{"type":998,"value":1301},{"type":993,"tag":1026,"props":5659,"children":5660},{"style":1071},[5661],{"type":998,"value":1168},{"type":993,"tag":1026,"props":5663,"children":5664},{"style":1041},[5665],{"type":998,"value":5666},"header",{"type":993,"tag":1026,"props":5668,"children":5669},{"style":1047},[5670],{"type":998,"value":5671},":>",{"type":993,"tag":1026,"props":5673,"children":5674},{"style":1071},[5675],{"type":998,"value":1168},{"type":993,"tag":1026,"props":5677,"children":5678},{"style":1041},[5679],{"type":998,"value":5680},"width",{"type":993,"tag":1026,"props":5682,"children":5683},{"style":1071},[5684],{"type":998,"value":5685},"}}",{"type":993,"tag":1026,"props":5687,"children":5688},{"style":1053},[5689],{"type":998,"value":2696},{"type":993,"tag":1026,"props":5691,"children":5692},{"class":1028,"line":247},[5693,5698],{"type":993,"tag":1026,"props":5694,"children":5695},{"style":1047},[5696],{"type":998,"value":5697},"        else",{"type":993,"tag":1026,"props":5699,"children":5700},{"style":1041},[5701],{"type":998,"value":2931},{"type":993,"tag":1026,"props":5703,"children":5704},{"class":1028,"line":256},[5705,5709,5713,5717,5721,5725,5729,5734,5738,5742,5746],{"type":993,"tag":1026,"props":5706,"children":5707},{"style":1041},[5708],{"type":998,"value":5645},{"type":993,"tag":1026,"props":5710,"children":5711},{"style":1047},[5712],{"type":998,"value":4516},{"type":993,"tag":1026,"props":5714,"children":5715},{"style":1047},[5716],{"type":998,"value":1158},{"type":993,"tag":1026,"props":5718,"children":5719},{"style":1053},[5720],{"type":998,"value":1301},{"type":993,"tag":1026,"props":5722,"children":5723},{"style":1071},[5724],{"type":998,"value":1168},{"type":993,"tag":1026,"props":5726,"children":5727},{"style":1041},[5728],{"type":998,"value":5666},{"type":993,"tag":1026,"props":5730,"children":5731},{"style":1047},[5732],{"type":998,"value":5733},":\u003C",{"type":993,"tag":1026,"props":5735,"children":5736},{"style":1071},[5737],{"type":998,"value":1168},{"type":993,"tag":1026,"props":5739,"children":5740},{"style":1041},[5741],{"type":998,"value":5680},{"type":993,"tag":1026,"props":5743,"children":5744},{"style":1071},[5745],{"type":998,"value":5685},{"type":993,"tag":1026,"props":5747,"children":5748},{"style":1053},[5749],{"type":998,"value":2696},{"type":993,"tag":1026,"props":5751,"children":5752},{"class":1028,"line":265},[5753],{"type":993,"tag":1026,"props":5754,"children":5755},{"style":1041},[5756],{"type":998,"value":3000},{"type":993,"tag":1026,"props":5758,"children":5759},{"class":1028,"line":274},[5760,5764,5768,5773,5777,5781,5785],{"type":993,"tag":1026,"props":5761,"children":5762},{"style":1041},[5763],{"type":998,"value":5473},{"type":993,"tag":1026,"props":5765,"children":5766},{"style":1047},[5767],{"type":998,"value":4516},{"type":993,"tag":1026,"props":5769,"children":5770},{"style":1041},[5771],{"type":998,"value":5772}," header_row ",{"type":993,"tag":1026,"props":5774,"children":5775},{"style":1047},[5776],{"type":998,"value":1266},{"type":993,"tag":1026,"props":5778,"children":5779},{"style":1053},[5780],{"type":998,"value":5542},{"type":993,"tag":1026,"props":5782,"children":5783},{"style":1071},[5784],{"type":998,"value":1843},{"type":993,"tag":1026,"props":5786,"children":5787},{"style":1053},[5788],{"type":998,"value":2696},{"type":993,"tag":1026,"props":5790,"children":5791},{"class":1028,"line":284},[5792,5796,5800,5805,5809,5813,5818,5822,5826,5830],{"type":993,"tag":1026,"props":5793,"children":5794},{"style":1041},[5795],{"type":998,"value":5473},{"type":993,"tag":1026,"props":5797,"children":5798},{"style":1047},[5799],{"type":998,"value":4516},{"type":993,"tag":1026,"props":5801,"children":5802},{"style":1053},[5803],{"type":998,"value":5804}," \"-\"",{"type":993,"tag":1026,"props":5806,"children":5807},{"style":1047},[5808],{"type":998,"value":1873},{"type":993,"tag":1026,"props":5810,"children":5811},{"style":1071},[5812],{"type":998,"value":3052},{"type":993,"tag":1026,"props":5814,"children":5815},{"style":1041},[5816],{"type":998,"value":5817},"(header_row) ",{"type":993,"tag":1026,"props":5819,"children":5820},{"style":1047},[5821],{"type":998,"value":1266},{"type":993,"tag":1026,"props":5823,"children":5824},{"style":1053},[5825],{"type":998,"value":5542},{"type":993,"tag":1026,"props":5827,"children":5828},{"style":1071},[5829],{"type":998,"value":1843},{"type":993,"tag":1026,"props":5831,"children":5832},{"style":1053},[5833],{"type":998,"value":2696},{"type":993,"tag":1026,"props":5835,"children":5836},{"class":1028,"line":293},[5837],{"type":993,"tag":1026,"props":5838,"children":5839},{"style":1041},[5840],{"type":998,"value":3000},{"type":993,"tag":1026,"props":5842,"children":5843},{"class":1028,"line":302},[5844],{"type":993,"tag":1026,"props":5845,"children":5846},{"style":1032},[5847],{"type":998,"value":5848},"    # Data rows\n",{"type":993,"tag":1026,"props":5850,"children":5851},{"class":1028,"line":311},[5852,5856,5860,5864],{"type":993,"tag":1026,"props":5853,"children":5854},{"style":1047},[5855],{"type":998,"value":4451},{"type":993,"tag":1026,"props":5857,"children":5858},{"style":1041},[5859],{"type":998,"value":5336},{"type":993,"tag":1026,"props":5861,"children":5862},{"style":1047},[5863],{"type":998,"value":1907},{"type":993,"tag":1026,"props":5865,"children":5866},{"style":1041},[5867],{"type":998,"value":5345},{"type":993,"tag":1026,"props":5869,"children":5870},{"class":1028,"line":320},[5871,5876,5880],{"type":993,"tag":1026,"props":5872,"children":5873},{"style":1041},[5874],{"type":998,"value":5875},"        data_row ",{"type":993,"tag":1026,"props":5877,"children":5878},{"style":1047},[5879],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5881,"children":5882},{"style":1053},[5883],{"type":998,"value":5582},{"type":993,"tag":1026,"props":5885,"children":5886},{"class":1028,"line":329},[5887,5891,5896,5900,5904,5908,5912],{"type":993,"tag":1026,"props":5888,"children":5889},{"style":1047},[5890],{"type":998,"value":5331},{"type":993,"tag":1026,"props":5892,"children":5893},{"style":1041},[5894],{"type":998,"value":5895}," i, (cell, width) ",{"type":993,"tag":1026,"props":5897,"children":5898},{"style":1047},[5899],{"type":998,"value":1907},{"type":993,"tag":1026,"props":5901,"children":5902},{"style":1071},[5903],{"type":998,"value":5297},{"type":993,"tag":1026,"props":5905,"children":5906},{"style":1041},[5907],{"type":998,"value":1226},{"type":993,"tag":1026,"props":5909,"children":5910},{"style":1071},[5911],{"type":998,"value":5611},{"type":993,"tag":1026,"props":5913,"children":5914},{"style":1041},[5915],{"type":998,"value":5916},"(row, col_widths)):\n",{"type":993,"tag":1026,"props":5918,"children":5919},{"class":1028,"line":338},[5920,5924,5928,5932],{"type":993,"tag":1026,"props":5921,"children":5922},{"style":1047},[5923],{"type":998,"value":5353},{"type":993,"tag":1026,"props":5925,"children":5926},{"style":1041},[5927],{"type":998,"value":5358},{"type":993,"tag":1026,"props":5929,"children":5930},{"style":1047},[5931],{"type":998,"value":1907},{"type":993,"tag":1026,"props":5933,"children":5934},{"style":1041},[5935],{"type":998,"value":5637},{"type":993,"tag":1026,"props":5937,"children":5938},{"class":1028,"line":347},[5939,5944,5949,5954,5959],{"type":993,"tag":1026,"props":5940,"children":5941},{"style":1047},[5942],{"type":998,"value":5943},"                if",{"type":993,"tag":1026,"props":5945,"children":5946},{"style":1071},[5947],{"type":998,"value":5948}," isinstance",{"type":993,"tag":1026,"props":5950,"children":5951},{"style":1041},[5952],{"type":998,"value":5953},"(cell, ",{"type":993,"tag":1026,"props":5955,"children":5956},{"style":1071},[5957],{"type":998,"value":5958},"float",{"type":993,"tag":1026,"props":5960,"children":5961},{"style":1041},[5962],{"type":998,"value":4091},{"type":993,"tag":1026,"props":5964,"children":5965},{"class":1028,"line":356},[5966,5971,5975,5979,5983,5987,5992,5996,6000,6004,6008,6013,6017],{"type":993,"tag":1026,"props":5967,"children":5968},{"style":1041},[5969],{"type":998,"value":5970},"                    data_row ",{"type":993,"tag":1026,"props":5972,"children":5973},{"style":1047},[5974],{"type":998,"value":4516},{"type":993,"tag":1026,"props":5976,"children":5977},{"style":1047},[5978],{"type":998,"value":1158},{"type":993,"tag":1026,"props":5980,"children":5981},{"style":1053},[5982],{"type":998,"value":1301},{"type":993,"tag":1026,"props":5984,"children":5985},{"style":1071},[5986],{"type":998,"value":1168},{"type":993,"tag":1026,"props":5988,"children":5989},{"style":1041},[5990],{"type":998,"value":5991},"cell",{"type":993,"tag":1026,"props":5993,"children":5994},{"style":1047},[5995],{"type":998,"value":5671},{"type":993,"tag":1026,"props":5997,"children":5998},{"style":1071},[5999],{"type":998,"value":1168},{"type":993,"tag":1026,"props":6001,"children":6002},{"style":1041},[6003],{"type":998,"value":5680},{"type":993,"tag":1026,"props":6005,"children":6006},{"style":1071},[6007],{"type":998,"value":1178},{"type":993,"tag":1026,"props":6009,"children":6010},{"style":1047},[6011],{"type":998,"value":6012},".2f",{"type":993,"tag":1026,"props":6014,"children":6015},{"style":1071},[6016],{"type":998,"value":1178},{"type":993,"tag":1026,"props":6018,"children":6019},{"style":1053},[6020],{"type":998,"value":2696},{"type":993,"tag":1026,"props":6022,"children":6023},{"class":1028,"line":365},[6024,6029],{"type":993,"tag":1026,"props":6025,"children":6026},{"style":1047},[6027],{"type":998,"value":6028},"                else",{"type":993,"tag":1026,"props":6030,"children":6031},{"style":1041},[6032],{"type":998,"value":2931},{"type":993,"tag":1026,"props":6034,"children":6035},{"class":1028,"line":374},[6036,6040,6044,6048,6052,6056,6060,6064,6068,6072,6076],{"type":993,"tag":1026,"props":6037,"children":6038},{"style":1041},[6039],{"type":998,"value":5970},{"type":993,"tag":1026,"props":6041,"children":6042},{"style":1047},[6043],{"type":998,"value":4516},{"type":993,"tag":1026,"props":6045,"children":6046},{"style":1047},[6047],{"type":998,"value":1158},{"type":993,"tag":1026,"props":6049,"children":6050},{"style":1053},[6051],{"type":998,"value":1301},{"type":993,"tag":1026,"props":6053,"children":6054},{"style":1071},[6055],{"type":998,"value":1168},{"type":993,"tag":1026,"props":6057,"children":6058},{"style":1041},[6059],{"type":998,"value":5991},{"type":993,"tag":1026,"props":6061,"children":6062},{"style":1047},[6063],{"type":998,"value":5671},{"type":993,"tag":1026,"props":6065,"children":6066},{"style":1071},[6067],{"type":998,"value":1168},{"type":993,"tag":1026,"props":6069,"children":6070},{"style":1041},[6071],{"type":998,"value":5680},{"type":993,"tag":1026,"props":6073,"children":6074},{"style":1071},[6075],{"type":998,"value":5685},{"type":993,"tag":1026,"props":6077,"children":6078},{"style":1053},[6079],{"type":998,"value":2696},{"type":993,"tag":1026,"props":6081,"children":6082},{"class":1028,"line":384},[6083,6088],{"type":993,"tag":1026,"props":6084,"children":6085},{"style":1047},[6086],{"type":998,"value":6087},"            else",{"type":993,"tag":1026,"props":6089,"children":6090},{"style":1041},[6091],{"type":998,"value":2931},{"type":993,"tag":1026,"props":6093,"children":6094},{"class":1028,"line":393},[6095,6100,6104,6108,6112,6117,6122,6126,6130,6134,6138],{"type":993,"tag":1026,"props":6096,"children":6097},{"style":1041},[6098],{"type":998,"value":6099},"                data_row ",{"type":993,"tag":1026,"props":6101,"children":6102},{"style":1047},[6103],{"type":998,"value":4516},{"type":993,"tag":1026,"props":6105,"children":6106},{"style":1047},[6107],{"type":998,"value":1158},{"type":993,"tag":1026,"props":6109,"children":6110},{"style":1053},[6111],{"type":998,"value":1301},{"type":993,"tag":1026,"props":6113,"children":6114},{"style":1071},[6115],{"type":998,"value":6116},"{str",{"type":993,"tag":1026,"props":6118,"children":6119},{"style":1041},[6120],{"type":998,"value":6121},"(cell)",{"type":993,"tag":1026,"props":6123,"children":6124},{"style":1047},[6125],{"type":998,"value":5733},{"type":993,"tag":1026,"props":6127,"children":6128},{"style":1071},[6129],{"type":998,"value":1168},{"type":993,"tag":1026,"props":6131,"children":6132},{"style":1041},[6133],{"type":998,"value":5680},{"type":993,"tag":1026,"props":6135,"children":6136},{"style":1071},[6137],{"type":998,"value":5685},{"type":993,"tag":1026,"props":6139,"children":6140},{"style":1053},[6141],{"type":998,"value":2696},{"type":993,"tag":1026,"props":6143,"children":6144},{"class":1028,"line":402},[6145],{"type":993,"tag":1026,"props":6146,"children":6147},{"style":1041},[6148],{"type":998,"value":6149},"        \n",{"type":993,"tag":1026,"props":6151,"children":6152},{"class":1028,"line":411},[6153,6158,6162,6167,6171,6175,6179],{"type":993,"tag":1026,"props":6154,"children":6155},{"style":1041},[6156],{"type":998,"value":6157},"        table ",{"type":993,"tag":1026,"props":6159,"children":6160},{"style":1047},[6161],{"type":998,"value":4516},{"type":993,"tag":1026,"props":6163,"children":6164},{"style":1041},[6165],{"type":998,"value":6166}," data_row ",{"type":993,"tag":1026,"props":6168,"children":6169},{"style":1047},[6170],{"type":998,"value":1266},{"type":993,"tag":1026,"props":6172,"children":6173},{"style":1053},[6174],{"type":998,"value":5542},{"type":993,"tag":1026,"props":6176,"children":6177},{"style":1071},[6178],{"type":998,"value":1843},{"type":993,"tag":1026,"props":6180,"children":6181},{"style":1053},[6182],{"type":998,"value":2696},{"type":993,"tag":1026,"props":6184,"children":6185},{"class":1028,"line":420},[6186],{"type":993,"tag":1026,"props":6187,"children":6188},{"style":1041},[6189],{"type":998,"value":3000},{"type":993,"tag":1026,"props":6191,"children":6192},{"class":1028,"line":429},[6193,6197],{"type":993,"tag":1026,"props":6194,"children":6195},{"style":1047},[6196],{"type":998,"value":4810},{"type":993,"tag":1026,"props":6198,"children":6199},{"style":1041},[6200],{"type":998,"value":6201}," table\n",{"type":993,"tag":1026,"props":6203,"children":6204},{"class":1028,"line":438},[6205],{"type":993,"tag":1026,"props":6206,"children":6207},{"emptyLinePlaceholder":13},[6208],{"type":998,"value":1133},{"type":993,"tag":1026,"props":6210,"children":6211},{"class":1028,"line":447},[6212],{"type":993,"tag":1026,"props":6213,"children":6214},{"style":1032},[6215],{"type":998,"value":6216},"# Sales data example\n",{"type":993,"tag":1026,"props":6218,"children":6219},{"class":1028,"line":457},[6220,6225,6229,6234,6239,6243,6248,6252,6257,6261,6266],{"type":993,"tag":1026,"props":6221,"children":6222},{"style":1041},[6223],{"type":998,"value":6224},"sales_headers ",{"type":993,"tag":1026,"props":6226,"children":6227},{"style":1047},[6228],{"type":998,"value":1050},{"type":993,"tag":1026,"props":6230,"children":6231},{"style":1041},[6232],{"type":998,"value":6233}," [",{"type":993,"tag":1026,"props":6235,"children":6236},{"style":1053},[6237],{"type":998,"value":6238},"\"Product\"",{"type":993,"tag":1026,"props":6240,"children":6241},{"style":1041},[6242],{"type":998,"value":1723},{"type":993,"tag":1026,"props":6244,"children":6245},{"style":1053},[6246],{"type":998,"value":6247},"\"Units Sold\"",{"type":993,"tag":1026,"props":6249,"children":6250},{"style":1041},[6251],{"type":998,"value":1723},{"type":993,"tag":1026,"props":6253,"children":6254},{"style":1053},[6255],{"type":998,"value":6256},"\"Unit Price\"",{"type":993,"tag":1026,"props":6258,"children":6259},{"style":1041},[6260],{"type":998,"value":1723},{"type":993,"tag":1026,"props":6262,"children":6263},{"style":1053},[6264],{"type":998,"value":6265},"\"Revenue\"",{"type":993,"tag":1026,"props":6267,"children":6268},{"style":1041},[6269],{"type":998,"value":1816},{"type":993,"tag":1026,"props":6271,"children":6272},{"class":1028,"line":466},[6273,6278,6282],{"type":993,"tag":1026,"props":6274,"children":6275},{"style":1041},[6276],{"type":998,"value":6277},"sales_data ",{"type":993,"tag":1026,"props":6279,"children":6280},{"style":1047},[6281],{"type":998,"value":1050},{"type":993,"tag":1026,"props":6283,"children":6284},{"style":1041},[6285],{"type":998,"value":1705},{"type":993,"tag":1026,"props":6287,"children":6288},{"class":1028,"line":475},[6289,6294,6298,6302,6306,6310,6314,6318,6323],{"type":993,"tag":1026,"props":6290,"children":6291},{"style":1041},[6292],{"type":998,"value":6293},"    [",{"type":993,"tag":1026,"props":6295,"children":6296},{"style":1053},[6297],{"type":998,"value":1718},{"type":993,"tag":1026,"props":6299,"children":6300},{"style":1041},[6301],{"type":998,"value":1723},{"type":993,"tag":1026,"props":6303,"children":6304},{"style":1071},[6305],{"type":998,"value":3781},{"type":993,"tag":1026,"props":6307,"children":6308},{"style":1041},[6309],{"type":998,"value":1723},{"type":993,"tag":1026,"props":6311,"children":6312},{"style":1071},[6313],{"type":998,"value":1728},{"type":993,"tag":1026,"props":6315,"children":6316},{"style":1041},[6317],{"type":998,"value":1723},{"type":993,"tag":1026,"props":6319,"children":6320},{"style":1071},[6321],{"type":998,"value":6322},"44999.55",{"type":993,"tag":1026,"props":6324,"children":6325},{"style":1041},[6326],{"type":998,"value":6327},"],\n",{"type":993,"tag":1026,"props":6329,"children":6330},{"class":1028,"line":484},[6331,6335,6339,6343,6348,6352,6356,6360,6365],{"type":993,"tag":1026,"props":6332,"children":6333},{"style":1041},[6334],{"type":998,"value":6293},{"type":993,"tag":1026,"props":6336,"children":6337},{"style":1053},[6338],{"type":998,"value":1745},{"type":993,"tag":1026,"props":6340,"children":6341},{"style":1041},[6342],{"type":998,"value":1723},{"type":993,"tag":1026,"props":6344,"children":6345},{"style":1071},[6346],{"type":998,"value":6347},"120",{"type":993,"tag":1026,"props":6349,"children":6350},{"style":1041},[6351],{"type":998,"value":1723},{"type":993,"tag":1026,"props":6353,"children":6354},{"style":1071},[6355],{"type":998,"value":1754},{"type":993,"tag":1026,"props":6357,"children":6358},{"style":1041},[6359],{"type":998,"value":1723},{"type":993,"tag":1026,"props":6361,"children":6362},{"style":1071},[6363],{"type":998,"value":6364},"3598.80",{"type":993,"tag":1026,"props":6366,"children":6367},{"style":1041},[6368],{"type":998,"value":6327},{"type":993,"tag":1026,"props":6370,"children":6371},{"class":1028,"line":493},[6372,6376,6380,6384,6388,6392,6396,6400,6405],{"type":993,"tag":1026,"props":6373,"children":6374},{"style":1041},[6375],{"type":998,"value":6293},{"type":993,"tag":1026,"props":6377,"children":6378},{"style":1053},[6379],{"type":998,"value":1770},{"type":993,"tag":1026,"props":6381,"children":6382},{"style":1041},[6383],{"type":998,"value":1723},{"type":993,"tag":1026,"props":6385,"children":6386},{"style":1071},[6387],{"type":998,"value":3173},{"type":993,"tag":1026,"props":6389,"children":6390},{"style":1041},[6391],{"type":998,"value":1723},{"type":993,"tag":1026,"props":6393,"children":6394},{"style":1071},[6395],{"type":998,"value":1779},{"type":993,"tag":1026,"props":6397,"children":6398},{"style":1041},[6399],{"type":998,"value":1723},{"type":993,"tag":1026,"props":6401,"children":6402},{"style":1071},[6403],{"type":998,"value":6404},"6799.15",{"type":993,"tag":1026,"props":6406,"children":6407},{"style":1041},[6408],{"type":998,"value":6327},{"type":993,"tag":1026,"props":6410,"children":6411},{"class":1028,"line":502},[6412,6416,6420,6424,6429,6433,6438,6442,6447],{"type":993,"tag":1026,"props":6413,"children":6414},{"style":1041},[6415],{"type":998,"value":6293},{"type":993,"tag":1026,"props":6417,"children":6418},{"style":1053},[6419],{"type":998,"value":1795},{"type":993,"tag":1026,"props":6421,"children":6422},{"style":1041},[6423],{"type":998,"value":1723},{"type":993,"tag":1026,"props":6425,"children":6426},{"style":1071},[6427],{"type":998,"value":6428},"32",{"type":993,"tag":1026,"props":6430,"children":6431},{"style":1041},[6432],{"type":998,"value":1723},{"type":993,"tag":1026,"props":6434,"children":6435},{"style":1071},[6436],{"type":998,"value":6437},"299.99",{"type":993,"tag":1026,"props":6439,"children":6440},{"style":1041},[6441],{"type":998,"value":1723},{"type":993,"tag":1026,"props":6443,"children":6444},{"style":1071},[6445],{"type":998,"value":6446},"9599.68",{"type":993,"tag":1026,"props":6448,"children":6449},{"style":1041},[6450],{"type":998,"value":1816},{"type":993,"tag":1026,"props":6452,"children":6453},{"class":1028,"line":511},[6454],{"type":993,"tag":1026,"props":6455,"children":6456},{"style":1041},[6457],{"type":998,"value":1816},{"type":993,"tag":1026,"props":6459,"children":6460},{"class":1028,"line":520},[6461],{"type":993,"tag":1026,"props":6462,"children":6463},{"emptyLinePlaceholder":13},[6464],{"type":998,"value":1133},{"type":993,"tag":1026,"props":6466,"children":6467},{"class":1028,"line":530},[6468,6473,6477],{"type":993,"tag":1026,"props":6469,"children":6470},{"style":1041},[6471],{"type":998,"value":6472},"sales_table ",{"type":993,"tag":1026,"props":6474,"children":6475},{"style":1047},[6476],{"type":998,"value":1050},{"type":993,"tag":1026,"props":6478,"children":6479},{"style":1041},[6480],{"type":998,"value":6481}," create_data_table(\n",{"type":993,"tag":1026,"props":6483,"children":6484},{"class":1028,"line":539},[6485,6490],{"type":993,"tag":1026,"props":6486,"children":6487},{"style":1053},[6488],{"type":998,"value":6489},"    \"Monthly Sales Report\"",{"type":993,"tag":1026,"props":6491,"children":6492},{"style":1041},[6493],{"type":998,"value":6494},", \n",{"type":993,"tag":1026,"props":6496,"children":6497},{"class":1028,"line":548},[6498],{"type":993,"tag":1026,"props":6499,"children":6500},{"style":1041},[6501],{"type":998,"value":6502},"    sales_headers, \n",{"type":993,"tag":1026,"props":6504,"children":6505},{"class":1028,"line":557},[6506],{"type":993,"tag":1026,"props":6507,"children":6508},{"style":1041},[6509],{"type":998,"value":6510},"    sales_data, \n",{"type":993,"tag":1026,"props":6512,"children":6513},{"class":1028,"line":566},[6514,6520,6524,6529,6533,6537,6541,6545,6549,6554],{"type":993,"tag":1026,"props":6515,"children":6517},{"style":6516},"--shiki-default:#E36209;--shiki-app-dark-mode:#FFAB70",[6518],{"type":998,"value":6519},"    number_columns",{"type":993,"tag":1026,"props":6521,"children":6522},{"style":1047},[6523],{"type":998,"value":1050},{"type":993,"tag":1026,"props":6525,"children":6526},{"style":1041},[6527],{"type":998,"value":6528},"[",{"type":993,"tag":1026,"props":6530,"children":6531},{"style":1071},[6532],{"type":998,"value":1403},{"type":993,"tag":1026,"props":6534,"children":6535},{"style":1041},[6536],{"type":998,"value":1723},{"type":993,"tag":1026,"props":6538,"children":6539},{"style":1071},[6540],{"type":998,"value":5014},{"type":993,"tag":1026,"props":6542,"children":6543},{"style":1041},[6544],{"type":998,"value":1723},{"type":993,"tag":1026,"props":6546,"children":6547},{"style":1071},[6548],{"type":998,"value":5071},{"type":993,"tag":1026,"props":6550,"children":6551},{"style":1041},[6552],{"type":998,"value":6553},"]  ",{"type":993,"tag":1026,"props":6555,"children":6556},{"style":1032},[6557],{"type":998,"value":6558},"# Align numbers to the right\n",{"type":993,"tag":1026,"props":6560,"children":6561},{"class":1028,"line":575},[6562],{"type":993,"tag":1026,"props":6563,"children":6564},{"style":1041},[6565],{"type":998,"value":1281},{"type":993,"tag":1026,"props":6567,"children":6568},{"class":1028,"line":584},[6569],{"type":993,"tag":1026,"props":6570,"children":6571},{"emptyLinePlaceholder":13},[6572],{"type":998,"value":1133},{"type":993,"tag":1026,"props":6574,"children":6575},{"class":1028,"line":593},[6576,6580],{"type":993,"tag":1026,"props":6577,"children":6578},{"style":1071},[6579],{"type":998,"value":1209},{"type":993,"tag":1026,"props":6581,"children":6582},{"style":1041},[6583],{"type":998,"value":6584},"(sales_table)\n",{"type":993,"tag":1026,"props":6586,"children":6587},{"class":1028,"line":602},[6588],{"type":993,"tag":1026,"props":6589,"children":6590},{"emptyLinePlaceholder":13},[6591],{"type":998,"value":1133},{"type":993,"tag":1026,"props":6593,"children":6594},{"class":1028,"line":611},[6595],{"type":993,"tag":1026,"props":6596,"children":6597},{"style":1032},[6598],{"type":998,"value":6599},"# Performance metrics example\n",{"type":993,"tag":1026,"props":6601,"children":6602},{"class":1028,"line":621},[6603,6608,6612,6616,6621,6625,6630,6634,6639,6643,6648],{"type":993,"tag":1026,"props":6604,"children":6605},{"style":1041},[6606],{"type":998,"value":6607},"metrics_headers ",{"type":993,"tag":1026,"props":6609,"children":6610},{"style":1047},[6611],{"type":998,"value":1050},{"type":993,"tag":1026,"props":6613,"children":6614},{"style":1041},[6615],{"type":998,"value":6233},{"type":993,"tag":1026,"props":6617,"children":6618},{"style":1053},[6619],{"type":998,"value":6620},"\"Metric\"",{"type":993,"tag":1026,"props":6622,"children":6623},{"style":1041},[6624],{"type":998,"value":1723},{"type":993,"tag":1026,"props":6626,"children":6627},{"style":1053},[6628],{"type":998,"value":6629},"\"Current\"",{"type":993,"tag":1026,"props":6631,"children":6632},{"style":1041},[6633],{"type":998,"value":1723},{"type":993,"tag":1026,"props":6635,"children":6636},{"style":1053},[6637],{"type":998,"value":6638},"\"Target\"",{"type":993,"tag":1026,"props":6640,"children":6641},{"style":1041},[6642],{"type":998,"value":1723},{"type":993,"tag":1026,"props":6644,"children":6645},{"style":1053},[6646],{"type":998,"value":6647},"\"Status\"",{"type":993,"tag":1026,"props":6649,"children":6650},{"style":1041},[6651],{"type":998,"value":1816},{"type":993,"tag":1026,"props":6653,"children":6654},{"class":1028,"line":630},[6655,6660,6664],{"type":993,"tag":1026,"props":6656,"children":6657},{"style":1041},[6658],{"type":998,"value":6659},"metrics_data ",{"type":993,"tag":1026,"props":6661,"children":6662},{"style":1047},[6663],{"type":998,"value":1050},{"type":993,"tag":1026,"props":6665,"children":6666},{"style":1041},[6667],{"type":998,"value":1705},{"type":993,"tag":1026,"props":6669,"children":6670},{"class":1028,"line":639},[6671,6675,6680,6684,6689,6693,6698,6702,6707],{"type":993,"tag":1026,"props":6672,"children":6673},{"style":1041},[6674],{"type":998,"value":6293},{"type":993,"tag":1026,"props":6676,"children":6677},{"style":1053},[6678],{"type":998,"value":6679},"\"Response Time\"",{"type":993,"tag":1026,"props":6681,"children":6682},{"style":1041},[6683],{"type":998,"value":1723},{"type":993,"tag":1026,"props":6685,"children":6686},{"style":1053},[6687],{"type":998,"value":6688},"\"1.2s\"",{"type":993,"tag":1026,"props":6690,"children":6691},{"style":1041},[6692],{"type":998,"value":1723},{"type":993,"tag":1026,"props":6694,"children":6695},{"style":1053},[6696],{"type":998,"value":6697},"\"\u003C 2.0s\"",{"type":993,"tag":1026,"props":6699,"children":6700},{"style":1041},[6701],{"type":998,"value":1723},{"type":993,"tag":1026,"props":6703,"children":6704},{"style":1053},[6705],{"type":998,"value":6706},"\"✅ Good\"",{"type":993,"tag":1026,"props":6708,"children":6709},{"style":1041},[6710],{"type":998,"value":6327},{"type":993,"tag":1026,"props":6712,"children":6713},{"class":1028,"line":648},[6714,6718,6723,6727,6732,6736,6741,6745,6749],{"type":993,"tag":1026,"props":6715,"children":6716},{"style":1041},[6717],{"type":998,"value":6293},{"type":993,"tag":1026,"props":6719,"children":6720},{"style":1053},[6721],{"type":998,"value":6722},"\"Uptime\"",{"type":993,"tag":1026,"props":6724,"children":6725},{"style":1041},[6726],{"type":998,"value":1723},{"type":993,"tag":1026,"props":6728,"children":6729},{"style":1053},[6730],{"type":998,"value":6731},"\"99.8%\"",{"type":993,"tag":1026,"props":6733,"children":6734},{"style":1041},[6735],{"type":998,"value":1723},{"type":993,"tag":1026,"props":6737,"children":6738},{"style":1053},[6739],{"type":998,"value":6740},"\"> 99.5%\"",{"type":993,"tag":1026,"props":6742,"children":6743},{"style":1041},[6744],{"type":998,"value":1723},{"type":993,"tag":1026,"props":6746,"children":6747},{"style":1053},[6748],{"type":998,"value":6706},{"type":993,"tag":1026,"props":6750,"children":6751},{"style":1041},[6752],{"type":998,"value":6327},{"type":993,"tag":1026,"props":6754,"children":6755},{"class":1028,"line":657},[6756,6760,6765,6769,6774,6778,6783,6787,6791],{"type":993,"tag":1026,"props":6757,"children":6758},{"style":1041},[6759],{"type":998,"value":6293},{"type":993,"tag":1026,"props":6761,"children":6762},{"style":1053},[6763],{"type":998,"value":6764},"\"Memory Usage\"",{"type":993,"tag":1026,"props":6766,"children":6767},{"style":1041},[6768],{"type":998,"value":1723},{"type":993,"tag":1026,"props":6770,"children":6771},{"style":1053},[6772],{"type":998,"value":6773},"\"78%\"",{"type":993,"tag":1026,"props":6775,"children":6776},{"style":1041},[6777],{"type":998,"value":1723},{"type":993,"tag":1026,"props":6779,"children":6780},{"style":1053},[6781],{"type":998,"value":6782},"\"\u003C 80%\"",{"type":993,"tag":1026,"props":6784,"children":6785},{"style":1041},[6786],{"type":998,"value":1723},{"type":993,"tag":1026,"props":6788,"children":6789},{"style":1053},[6790],{"type":998,"value":6706},{"type":993,"tag":1026,"props":6792,"children":6793},{"style":1041},[6794],{"type":998,"value":6327},{"type":993,"tag":1026,"props":6796,"children":6797},{"class":1028,"line":666},[6798,6802,6807,6811,6816,6820,6825,6829,6834],{"type":993,"tag":1026,"props":6799,"children":6800},{"style":1041},[6801],{"type":998,"value":6293},{"type":993,"tag":1026,"props":6803,"children":6804},{"style":1053},[6805],{"type":998,"value":6806},"\"CPU Usage\"",{"type":993,"tag":1026,"props":6808,"children":6809},{"style":1041},[6810],{"type":998,"value":1723},{"type":993,"tag":1026,"props":6812,"children":6813},{"style":1053},[6814],{"type":998,"value":6815},"\"85%\"",{"type":993,"tag":1026,"props":6817,"children":6818},{"style":1041},[6819],{"type":998,"value":1723},{"type":993,"tag":1026,"props":6821,"children":6822},{"style":1053},[6823],{"type":998,"value":6824},"\"\u003C 75%\"",{"type":993,"tag":1026,"props":6826,"children":6827},{"style":1041},[6828],{"type":998,"value":1723},{"type":993,"tag":1026,"props":6830,"children":6831},{"style":1053},[6832],{"type":998,"value":6833},"\"⚠️ High\"",{"type":993,"tag":1026,"props":6835,"children":6836},{"style":1041},[6837],{"type":998,"value":1816},{"type":993,"tag":1026,"props":6839,"children":6840},{"class":1028,"line":675},[6841],{"type":993,"tag":1026,"props":6842,"children":6843},{"style":1041},[6844],{"type":998,"value":1816},{"type":993,"tag":1026,"props":6846,"children":6847},{"class":1028,"line":685},[6848],{"type":993,"tag":1026,"props":6849,"children":6850},{"emptyLinePlaceholder":13},[6851],{"type":998,"value":1133},{"type":993,"tag":1026,"props":6853,"children":6854},{"class":1028,"line":694},[6855,6860,6864],{"type":993,"tag":1026,"props":6856,"children":6857},{"style":1041},[6858],{"type":998,"value":6859},"metrics_table ",{"type":993,"tag":1026,"props":6861,"children":6862},{"style":1047},[6863],{"type":998,"value":1050},{"type":993,"tag":1026,"props":6865,"children":6866},{"style":1041},[6867],{"type":998,"value":6481},{"type":993,"tag":1026,"props":6869,"children":6870},{"class":1028,"line":703},[6871,6876],{"type":993,"tag":1026,"props":6872,"children":6873},{"style":1053},[6874],{"type":998,"value":6875},"    \"System Performance Metrics\"",{"type":993,"tag":1026,"props":6877,"children":6878},{"style":1041},[6879],{"type":998,"value":4869},{"type":993,"tag":1026,"props":6881,"children":6882},{"class":1028,"line":712},[6883],{"type":993,"tag":1026,"props":6884,"children":6885},{"style":1041},[6886],{"type":998,"value":6887},"    metrics_headers,\n",{"type":993,"tag":1026,"props":6889,"children":6890},{"class":1028,"line":721},[6891],{"type":993,"tag":1026,"props":6892,"children":6893},{"style":1041},[6894],{"type":998,"value":6895},"    metrics_data\n",{"type":993,"tag":1026,"props":6897,"children":6898},{"class":1028,"line":730},[6899],{"type":993,"tag":1026,"props":6900,"children":6901},{"style":1041},[6902],{"type":998,"value":1281},{"type":993,"tag":1026,"props":6904,"children":6905},{"class":1028,"line":739},[6906],{"type":993,"tag":1026,"props":6907,"children":6908},{"emptyLinePlaceholder":13},[6909],{"type":998,"value":1133},{"type":993,"tag":1026,"props":6911,"children":6912},{"class":1028,"line":749},[6913,6917],{"type":993,"tag":1026,"props":6914,"children":6915},{"style":1071},[6916],{"type":998,"value":1209},{"type":993,"tag":1026,"props":6918,"children":6919},{"style":1041},[6920],{"type":998,"value":6921},"(metrics_table)\n",{"type":993,"tag":2119,"props":6923,"children":6925},{"id":6924},"advanced-formatting-techniques",[6926],{"type":998,"value":6927},"🚀 Advanced Formatting Techniques",{"type":993,"tag":2513,"props":6929,"children":6931},{"id":6930},"format-string-validation-and-safety",[6932],{"type":998,"value":6933},"Format String Validation and Safety",{"type":993,"tag":1001,"props":6935,"children":6936},{},[6937],{"type":998,"value":6938},"Safe formatting practices prevent errors and ensure consistent output quality.",{"type":993,"tag":1012,"props":6940,"children":6941},{},[6942],{"type":993,"tag":1016,"props":6943,"children":6945},{"className":1018,"code":6944,"language":6,"meta":8,"style":8},"def safe_format_number(value, format_spec=\".2f\", default=\"N/A\"):\n    \"\"\"Safely format numbers with error handling\"\"\"\n    try:\n        if value is None:\n            return default\n        \n        # Convert to float if needed\n        if isinstance(value, str):\n            value = float(value)\n        \n        return f\"{value:{format_spec}}\"\n    except (ValueError, TypeError):\n        return default\n\ndef safe_format_percentage(value, precision=1, default=\"N/A\"):\n    \"\"\"Safely format percentages\"\"\"\n    try:\n        if value is None:\n            return default\n        \n        value = float(value)\n        if not 0 \u003C= value \u003C= 1:\n            value = value / 100  # Convert from percentage to decimal\n        \n        return f\"{value:.{precision}%}\"\n    except (ValueError, TypeError):\n        return default\n\n# Test safe formatting\ntest_values = [\n    (\"123.456\", \".2f\"),\n    (\"invalid\", \".2f\"),\n    (None, \".2f\"),\n    (\"75.5\", \"%\"),\n    (\"not_a_number\", \"%\")\n]\n\nprint(\"Safe Number Formatting:\")\nfor value, fmt in test_values:\n    if fmt == \"%\":\n        result = safe_format_percentage(value)\n    else:\n        result = safe_format_number(value, fmt)\n    print(f\"Input: {value:>12} Format: {fmt:>4} Result: {result}\")\n\n# Template-based formatting with validation\nclass ReportTemplate:\n    \"\"\"Template class for consistent report formatting\"\"\"\n    \n    def __init__(self, title_width=50):\n        self.title_width = title_width\n    \n    def format_title(self, title):\n        \"\"\"Format report title with decorative borders\"\"\"\n        title = title.upper()\n        padding = (self.title_width - len(title)) // 2\n        \n        return f\"\"\"\n{'=' * self.title_width}\n{' ' * padding}{title}{' ' * padding}\n{'=' * self.title_width}\"\"\"\n    \n    def format_section(self, section_name, content):\n        \"\"\"Format report section with consistent styling\"\"\"\n        return f\"\"\"\n{section_name}:\n{'-' * len(section_name)}\n{content}\n\"\"\"\n    \n    def format_key_value(self, key, value, key_width=20):\n        \"\"\"Format key-value pairs with consistent alignment\"\"\"\n        return f\"{key:\u003C{key_width}}: {value}\"\n\n# Example usage\ntemplate = ReportTemplate()\n\nprint(template.format_title(\"Monthly Performance Report\"))\nprint(template.format_section(\"Financial Summary\", \n    template.format_key_value(\"Revenue\", \"$125,000.00\") + \"\\n\" +\n    template.format_key_value(\"Expenses\", \"$98,500.00\") + \"\\n\" +\n    template.format_key_value(\"Net Profit\", \"$26,500.00\")\n))\n",[6946],{"type":993,"tag":1022,"props":6947,"children":6948},{"__ignoreMap":8},[6949,6993,7001,7013,7037,7050,7057,7065,7089,7111,7118,7164,7194,7205,7212,7253,7261,7272,7295,7306,7313,7333,7373,7402,7409,7466,7493,7504,7511,7519,7535,7559,7583,7606,7631,7655,7662,7669,7689,7710,7736,7753,7765,7781,7867,7874,7882,7898,7906,7913,7942,7963,7970,7987,7995,8012,8059,8066,8081,8111,8161,8192,8199,8216,8224,8239,8259,8288,8303,8310,8317,8347,8355,8416,8423,8430,8447,8454,8476,8497,8544,8589,8614],{"type":993,"tag":1026,"props":6950,"children":6951},{"class":1028,"line":12},[6952,6956,6961,6966,6970,6975,6980,6984,6989],{"type":993,"tag":1026,"props":6953,"children":6954},{"style":1047},[6955],{"type":998,"value":4067},{"type":993,"tag":1026,"props":6957,"children":6958},{"style":2923},[6959],{"type":998,"value":6960}," safe_format_number",{"type":993,"tag":1026,"props":6962,"children":6963},{"style":1041},[6964],{"type":998,"value":6965},"(value, format_spec",{"type":993,"tag":1026,"props":6967,"children":6968},{"style":1047},[6969],{"type":998,"value":1050},{"type":993,"tag":1026,"props":6971,"children":6972},{"style":1053},[6973],{"type":998,"value":6974},"\".2f\"",{"type":993,"tag":1026,"props":6976,"children":6977},{"style":1041},[6978],{"type":998,"value":6979},", default",{"type":993,"tag":1026,"props":6981,"children":6982},{"style":1047},[6983],{"type":998,"value":1050},{"type":993,"tag":1026,"props":6985,"children":6986},{"style":1053},[6987],{"type":998,"value":6988},"\"N/A\"",{"type":993,"tag":1026,"props":6990,"children":6991},{"style":1041},[6992],{"type":998,"value":4091},{"type":993,"tag":1026,"props":6994,"children":6995},{"class":1028,"line":27},[6996],{"type":993,"tag":1026,"props":6997,"children":6998},{"style":1053},[6999],{"type":998,"value":7000},"    \"\"\"Safely format numbers with error handling\"\"\"\n",{"type":993,"tag":1026,"props":7002,"children":7003},{"class":1028,"line":36},[7004,7009],{"type":993,"tag":1026,"props":7005,"children":7006},{"style":1047},[7007],{"type":998,"value":7008},"    try",{"type":993,"tag":1026,"props":7010,"children":7011},{"style":1041},[7012],{"type":998,"value":2931},{"type":993,"tag":1026,"props":7014,"children":7015},{"class":1028,"line":45},[7016,7020,7025,7029,7033],{"type":993,"tag":1026,"props":7017,"children":7018},{"style":1047},[7019],{"type":998,"value":5624},{"type":993,"tag":1026,"props":7021,"children":7022},{"style":1041},[7023],{"type":998,"value":7024}," value ",{"type":993,"tag":1026,"props":7026,"children":7027},{"style":1047},[7028],{"type":998,"value":5219},{"type":993,"tag":1026,"props":7030,"children":7031},{"style":1071},[7032],{"type":998,"value":5224},{"type":993,"tag":1026,"props":7034,"children":7035},{"style":1041},[7036],{"type":998,"value":2931},{"type":993,"tag":1026,"props":7038,"children":7039},{"class":1028,"line":54},[7040,7045],{"type":993,"tag":1026,"props":7041,"children":7042},{"style":1047},[7043],{"type":998,"value":7044},"            return",{"type":993,"tag":1026,"props":7046,"children":7047},{"style":1041},[7048],{"type":998,"value":7049}," default\n",{"type":993,"tag":1026,"props":7051,"children":7052},{"class":1028,"line":63},[7053],{"type":993,"tag":1026,"props":7054,"children":7055},{"style":1041},[7056],{"type":998,"value":6149},{"type":993,"tag":1026,"props":7058,"children":7059},{"class":1028,"line":72},[7060],{"type":993,"tag":1026,"props":7061,"children":7062},{"style":1032},[7063],{"type":998,"value":7064},"        # Convert to float if needed\n",{"type":993,"tag":1026,"props":7066,"children":7067},{"class":1028,"line":81},[7068,7072,7076,7081,7085],{"type":993,"tag":1026,"props":7069,"children":7070},{"style":1047},[7071],{"type":998,"value":5624},{"type":993,"tag":1026,"props":7073,"children":7074},{"style":1071},[7075],{"type":998,"value":5948},{"type":993,"tag":1026,"props":7077,"children":7078},{"style":1041},[7079],{"type":998,"value":7080},"(value, ",{"type":993,"tag":1026,"props":7082,"children":7083},{"style":1071},[7084],{"type":998,"value":5396},{"type":993,"tag":1026,"props":7086,"children":7087},{"style":1041},[7088],{"type":998,"value":4091},{"type":993,"tag":1026,"props":7090,"children":7091},{"class":1028,"line":91},[7092,7097,7101,7106],{"type":993,"tag":1026,"props":7093,"children":7094},{"style":1041},[7095],{"type":998,"value":7096},"            value ",{"type":993,"tag":1026,"props":7098,"children":7099},{"style":1047},[7100],{"type":998,"value":1050},{"type":993,"tag":1026,"props":7102,"children":7103},{"style":1071},[7104],{"type":998,"value":7105}," float",{"type":993,"tag":1026,"props":7107,"children":7108},{"style":1041},[7109],{"type":998,"value":7110},"(value)\n",{"type":993,"tag":1026,"props":7112,"children":7113},{"class":1028,"line":100},[7114],{"type":993,"tag":1026,"props":7115,"children":7116},{"style":1041},[7117],{"type":998,"value":6149},{"type":993,"tag":1026,"props":7119,"children":7120},{"class":1028,"line":109},[7121,7125,7129,7133,7137,7142,7147,7151,7156,7160],{"type":993,"tag":1026,"props":7122,"children":7123},{"style":1047},[7124],{"type":998,"value":3025},{"type":993,"tag":1026,"props":7126,"children":7127},{"style":1047},[7128],{"type":998,"value":1158},{"type":993,"tag":1026,"props":7130,"children":7131},{"style":1053},[7132],{"type":998,"value":1301},{"type":993,"tag":1026,"props":7134,"children":7135},{"style":1071},[7136],{"type":998,"value":1168},{"type":993,"tag":1026,"props":7138,"children":7139},{"style":1041},[7140],{"type":998,"value":7141},"value",{"type":993,"tag":1026,"props":7143,"children":7144},{"style":1047},[7145],{"type":998,"value":7146},":",{"type":993,"tag":1026,"props":7148,"children":7149},{"style":1071},[7150],{"type":998,"value":1168},{"type":993,"tag":1026,"props":7152,"children":7153},{"style":1041},[7154],{"type":998,"value":7155},"format_spec",{"type":993,"tag":1026,"props":7157,"children":7158},{"style":1071},[7159],{"type":998,"value":5685},{"type":993,"tag":1026,"props":7161,"children":7162},{"style":1053},[7163],{"type":998,"value":2696},{"type":993,"tag":1026,"props":7165,"children":7166},{"class":1028,"line":118},[7167,7172,7176,7181,7185,7190],{"type":993,"tag":1026,"props":7168,"children":7169},{"style":1047},[7170],{"type":998,"value":7171},"    except",{"type":993,"tag":1026,"props":7173,"children":7174},{"style":1041},[7175],{"type":998,"value":1398},{"type":993,"tag":1026,"props":7177,"children":7178},{"style":1071},[7179],{"type":998,"value":7180},"ValueError",{"type":993,"tag":1026,"props":7182,"children":7183},{"style":1041},[7184],{"type":998,"value":1723},{"type":993,"tag":1026,"props":7186,"children":7187},{"style":1071},[7188],{"type":998,"value":7189},"TypeError",{"type":993,"tag":1026,"props":7191,"children":7192},{"style":1041},[7193],{"type":998,"value":4091},{"type":993,"tag":1026,"props":7195,"children":7196},{"class":1028,"line":127},[7197,7201],{"type":993,"tag":1026,"props":7198,"children":7199},{"style":1047},[7200],{"type":998,"value":3025},{"type":993,"tag":1026,"props":7202,"children":7203},{"style":1041},[7204],{"type":998,"value":7049},{"type":993,"tag":1026,"props":7206,"children":7207},{"class":1028,"line":136},[7208],{"type":993,"tag":1026,"props":7209,"children":7210},{"emptyLinePlaceholder":13},[7211],{"type":998,"value":1133},{"type":993,"tag":1026,"props":7213,"children":7214},{"class":1028,"line":146},[7215,7219,7224,7229,7233,7237,7241,7245,7249],{"type":993,"tag":1026,"props":7216,"children":7217},{"style":1047},[7218],{"type":998,"value":4067},{"type":993,"tag":1026,"props":7220,"children":7221},{"style":2923},[7222],{"type":998,"value":7223}," safe_format_percentage",{"type":993,"tag":1026,"props":7225,"children":7226},{"style":1041},[7227],{"type":998,"value":7228},"(value, precision",{"type":993,"tag":1026,"props":7230,"children":7231},{"style":1047},[7232],{"type":998,"value":1050},{"type":993,"tag":1026,"props":7234,"children":7235},{"style":1071},[7236],{"type":998,"value":1403},{"type":993,"tag":1026,"props":7238,"children":7239},{"style":1041},[7240],{"type":998,"value":6979},{"type":993,"tag":1026,"props":7242,"children":7243},{"style":1047},[7244],{"type":998,"value":1050},{"type":993,"tag":1026,"props":7246,"children":7247},{"style":1053},[7248],{"type":998,"value":6988},{"type":993,"tag":1026,"props":7250,"children":7251},{"style":1041},[7252],{"type":998,"value":4091},{"type":993,"tag":1026,"props":7254,"children":7255},{"class":1028,"line":155},[7256],{"type":993,"tag":1026,"props":7257,"children":7258},{"style":1053},[7259],{"type":998,"value":7260},"    \"\"\"Safely format percentages\"\"\"\n",{"type":993,"tag":1026,"props":7262,"children":7263},{"class":1028,"line":164},[7264,7268],{"type":993,"tag":1026,"props":7265,"children":7266},{"style":1047},[7267],{"type":998,"value":7008},{"type":993,"tag":1026,"props":7269,"children":7270},{"style":1041},[7271],{"type":998,"value":2931},{"type":993,"tag":1026,"props":7273,"children":7274},{"class":1028,"line":173},[7275,7279,7283,7287,7291],{"type":993,"tag":1026,"props":7276,"children":7277},{"style":1047},[7278],{"type":998,"value":5624},{"type":993,"tag":1026,"props":7280,"children":7281},{"style":1041},[7282],{"type":998,"value":7024},{"type":993,"tag":1026,"props":7284,"children":7285},{"style":1047},[7286],{"type":998,"value":5219},{"type":993,"tag":1026,"props":7288,"children":7289},{"style":1071},[7290],{"type":998,"value":5224},{"type":993,"tag":1026,"props":7292,"children":7293},{"style":1041},[7294],{"type":998,"value":2931},{"type":993,"tag":1026,"props":7296,"children":7297},{"class":1028,"line":182},[7298,7302],{"type":993,"tag":1026,"props":7299,"children":7300},{"style":1047},[7301],{"type":998,"value":7044},{"type":993,"tag":1026,"props":7303,"children":7304},{"style":1041},[7305],{"type":998,"value":7049},{"type":993,"tag":1026,"props":7307,"children":7308},{"class":1028,"line":191},[7309],{"type":993,"tag":1026,"props":7310,"children":7311},{"style":1041},[7312],{"type":998,"value":6149},{"type":993,"tag":1026,"props":7314,"children":7315},{"class":1028,"line":201},[7316,7321,7325,7329],{"type":993,"tag":1026,"props":7317,"children":7318},{"style":1041},[7319],{"type":998,"value":7320},"        value ",{"type":993,"tag":1026,"props":7322,"children":7323},{"style":1047},[7324],{"type":998,"value":1050},{"type":993,"tag":1026,"props":7326,"children":7327},{"style":1071},[7328],{"type":998,"value":7105},{"type":993,"tag":1026,"props":7330,"children":7331},{"style":1041},[7332],{"type":998,"value":7110},{"type":993,"tag":1026,"props":7334,"children":7335},{"class":1028,"line":210},[7336,7340,7345,7350,7355,7359,7364,7369],{"type":993,"tag":1026,"props":7337,"children":7338},{"style":1047},[7339],{"type":998,"value":5624},{"type":993,"tag":1026,"props":7341,"children":7342},{"style":1047},[7343],{"type":998,"value":7344}," not",{"type":993,"tag":1026,"props":7346,"children":7347},{"style":1071},[7348],{"type":998,"value":7349}," 0",{"type":993,"tag":1026,"props":7351,"children":7352},{"style":1047},[7353],{"type":998,"value":7354}," \u003C=",{"type":993,"tag":1026,"props":7356,"children":7357},{"style":1041},[7358],{"type":998,"value":7024},{"type":993,"tag":1026,"props":7360,"children":7361},{"style":1047},[7362],{"type":998,"value":7363},"\u003C=",{"type":993,"tag":1026,"props":7365,"children":7366},{"style":1071},[7367],{"type":998,"value":7368}," 1",{"type":993,"tag":1026,"props":7370,"children":7371},{"style":1041},[7372],{"type":998,"value":2931},{"type":993,"tag":1026,"props":7374,"children":7375},{"class":1028,"line":219},[7376,7380,7384,7388,7392,7397],{"type":993,"tag":1026,"props":7377,"children":7378},{"style":1041},[7379],{"type":998,"value":7096},{"type":993,"tag":1026,"props":7381,"children":7382},{"style":1047},[7383],{"type":998,"value":1050},{"type":993,"tag":1026,"props":7385,"children":7386},{"style":1041},[7387],{"type":998,"value":7024},{"type":993,"tag":1026,"props":7389,"children":7390},{"style":1047},[7391],{"type":998,"value":2678},{"type":993,"tag":1026,"props":7393,"children":7394},{"style":1071},[7395],{"type":998,"value":7396}," 100",{"type":993,"tag":1026,"props":7398,"children":7399},{"style":1032},[7400],{"type":998,"value":7401},"  # Convert from percentage to decimal\n",{"type":993,"tag":1026,"props":7403,"children":7404},{"class":1028,"line":228},[7405],{"type":993,"tag":1026,"props":7406,"children":7407},{"style":1041},[7408],{"type":998,"value":6149},{"type":993,"tag":1026,"props":7410,"children":7411},{"class":1028,"line":238},[7412,7416,7420,7424,7428,7432,7436,7441,7445,7450,7454,7458,7462],{"type":993,"tag":1026,"props":7413,"children":7414},{"style":1047},[7415],{"type":998,"value":3025},{"type":993,"tag":1026,"props":7417,"children":7418},{"style":1047},[7419],{"type":998,"value":1158},{"type":993,"tag":1026,"props":7421,"children":7422},{"style":1053},[7423],{"type":998,"value":1301},{"type":993,"tag":1026,"props":7425,"children":7426},{"style":1071},[7427],{"type":998,"value":1168},{"type":993,"tag":1026,"props":7429,"children":7430},{"style":1041},[7431],{"type":998,"value":7141},{"type":993,"tag":1026,"props":7433,"children":7434},{"style":1047},[7435],{"type":998,"value":7146},{"type":993,"tag":1026,"props":7437,"children":7438},{"style":1041},[7439],{"type":998,"value":7440},".",{"type":993,"tag":1026,"props":7442,"children":7443},{"style":1071},[7444],{"type":998,"value":1168},{"type":993,"tag":1026,"props":7446,"children":7447},{"style":1041},[7448],{"type":998,"value":7449},"precision",{"type":993,"tag":1026,"props":7451,"children":7452},{"style":1071},[7453],{"type":998,"value":1178},{"type":993,"tag":1026,"props":7455,"children":7456},{"style":1047},[7457],{"type":998,"value":2382},{"type":993,"tag":1026,"props":7459,"children":7460},{"style":1071},[7461],{"type":998,"value":1178},{"type":993,"tag":1026,"props":7463,"children":7464},{"style":1053},[7465],{"type":998,"value":2696},{"type":993,"tag":1026,"props":7467,"children":7468},{"class":1028,"line":247},[7469,7473,7477,7481,7485,7489],{"type":993,"tag":1026,"props":7470,"children":7471},{"style":1047},[7472],{"type":998,"value":7171},{"type":993,"tag":1026,"props":7474,"children":7475},{"style":1041},[7476],{"type":998,"value":1398},{"type":993,"tag":1026,"props":7478,"children":7479},{"style":1071},[7480],{"type":998,"value":7180},{"type":993,"tag":1026,"props":7482,"children":7483},{"style":1041},[7484],{"type":998,"value":1723},{"type":993,"tag":1026,"props":7486,"children":7487},{"style":1071},[7488],{"type":998,"value":7189},{"type":993,"tag":1026,"props":7490,"children":7491},{"style":1041},[7492],{"type":998,"value":4091},{"type":993,"tag":1026,"props":7494,"children":7495},{"class":1028,"line":256},[7496,7500],{"type":993,"tag":1026,"props":7497,"children":7498},{"style":1047},[7499],{"type":998,"value":3025},{"type":993,"tag":1026,"props":7501,"children":7502},{"style":1041},[7503],{"type":998,"value":7049},{"type":993,"tag":1026,"props":7505,"children":7506},{"class":1028,"line":265},[7507],{"type":993,"tag":1026,"props":7508,"children":7509},{"emptyLinePlaceholder":13},[7510],{"type":998,"value":1133},{"type":993,"tag":1026,"props":7512,"children":7513},{"class":1028,"line":274},[7514],{"type":993,"tag":1026,"props":7515,"children":7516},{"style":1032},[7517],{"type":998,"value":7518},"# Test safe formatting\n",{"type":993,"tag":1026,"props":7520,"children":7521},{"class":1028,"line":284},[7522,7527,7531],{"type":993,"tag":1026,"props":7523,"children":7524},{"style":1041},[7525],{"type":998,"value":7526},"test_values ",{"type":993,"tag":1026,"props":7528,"children":7529},{"style":1047},[7530],{"type":998,"value":1050},{"type":993,"tag":1026,"props":7532,"children":7533},{"style":1041},[7534],{"type":998,"value":1705},{"type":993,"tag":1026,"props":7536,"children":7537},{"class":1028,"line":293},[7538,7542,7547,7551,7555],{"type":993,"tag":1026,"props":7539,"children":7540},{"style":1041},[7541],{"type":998,"value":1713},{"type":993,"tag":1026,"props":7543,"children":7544},{"style":1053},[7545],{"type":998,"value":7546},"\"123.456\"",{"type":993,"tag":1026,"props":7548,"children":7549},{"style":1041},[7550],{"type":998,"value":1723},{"type":993,"tag":1026,"props":7552,"children":7553},{"style":1053},[7554],{"type":998,"value":6974},{"type":993,"tag":1026,"props":7556,"children":7557},{"style":1041},[7558],{"type":998,"value":1733},{"type":993,"tag":1026,"props":7560,"children":7561},{"class":1028,"line":302},[7562,7566,7571,7575,7579],{"type":993,"tag":1026,"props":7563,"children":7564},{"style":1041},[7565],{"type":998,"value":1713},{"type":993,"tag":1026,"props":7567,"children":7568},{"style":1053},[7569],{"type":998,"value":7570},"\"invalid\"",{"type":993,"tag":1026,"props":7572,"children":7573},{"style":1041},[7574],{"type":998,"value":1723},{"type":993,"tag":1026,"props":7576,"children":7577},{"style":1053},[7578],{"type":998,"value":6974},{"type":993,"tag":1026,"props":7580,"children":7581},{"style":1041},[7582],{"type":998,"value":1733},{"type":993,"tag":1026,"props":7584,"children":7585},{"class":1028,"line":311},[7586,7590,7594,7598,7602],{"type":993,"tag":1026,"props":7587,"children":7588},{"style":1041},[7589],{"type":998,"value":1713},{"type":993,"tag":1026,"props":7591,"children":7592},{"style":1071},[7593],{"type":998,"value":5182},{"type":993,"tag":1026,"props":7595,"children":7596},{"style":1041},[7597],{"type":998,"value":1723},{"type":993,"tag":1026,"props":7599,"children":7600},{"style":1053},[7601],{"type":998,"value":6974},{"type":993,"tag":1026,"props":7603,"children":7604},{"style":1041},[7605],{"type":998,"value":1733},{"type":993,"tag":1026,"props":7607,"children":7608},{"class":1028,"line":320},[7609,7613,7618,7622,7627],{"type":993,"tag":1026,"props":7610,"children":7611},{"style":1041},[7612],{"type":998,"value":1713},{"type":993,"tag":1026,"props":7614,"children":7615},{"style":1053},[7616],{"type":998,"value":7617},"\"75.5\"",{"type":993,"tag":1026,"props":7619,"children":7620},{"style":1041},[7621],{"type":998,"value":1723},{"type":993,"tag":1026,"props":7623,"children":7624},{"style":1053},[7625],{"type":998,"value":7626},"\"%\"",{"type":993,"tag":1026,"props":7628,"children":7629},{"style":1041},[7630],{"type":998,"value":1733},{"type":993,"tag":1026,"props":7632,"children":7633},{"class":1028,"line":329},[7634,7638,7643,7647,7651],{"type":993,"tag":1026,"props":7635,"children":7636},{"style":1041},[7637],{"type":998,"value":1713},{"type":993,"tag":1026,"props":7639,"children":7640},{"style":1053},[7641],{"type":998,"value":7642},"\"not_a_number\"",{"type":993,"tag":1026,"props":7644,"children":7645},{"style":1041},[7646],{"type":998,"value":1723},{"type":993,"tag":1026,"props":7648,"children":7649},{"style":1053},[7650],{"type":998,"value":7626},{"type":993,"tag":1026,"props":7652,"children":7653},{"style":1041},[7654],{"type":998,"value":1281},{"type":993,"tag":1026,"props":7656,"children":7657},{"class":1028,"line":338},[7658],{"type":993,"tag":1026,"props":7659,"children":7660},{"style":1041},[7661],{"type":998,"value":1816},{"type":993,"tag":1026,"props":7663,"children":7664},{"class":1028,"line":347},[7665],{"type":993,"tag":1026,"props":7666,"children":7667},{"emptyLinePlaceholder":13},[7668],{"type":998,"value":1133},{"type":993,"tag":1026,"props":7670,"children":7671},{"class":1028,"line":356},[7672,7676,7680,7685],{"type":993,"tag":1026,"props":7673,"children":7674},{"style":1071},[7675],{"type":998,"value":1209},{"type":993,"tag":1026,"props":7677,"children":7678},{"style":1041},[7679],{"type":998,"value":1226},{"type":993,"tag":1026,"props":7681,"children":7682},{"style":1053},[7683],{"type":998,"value":7684},"\"Safe Number Formatting:\"",{"type":993,"tag":1026,"props":7686,"children":7687},{"style":1041},[7688],{"type":998,"value":1281},{"type":993,"tag":1026,"props":7690,"children":7691},{"class":1028,"line":365},[7692,7696,7701,7705],{"type":993,"tag":1026,"props":7693,"children":7694},{"style":1047},[7695],{"type":998,"value":1897},{"type":993,"tag":1026,"props":7697,"children":7698},{"style":1041},[7699],{"type":998,"value":7700}," value, fmt ",{"type":993,"tag":1026,"props":7702,"children":7703},{"style":1047},[7704],{"type":998,"value":1907},{"type":993,"tag":1026,"props":7706,"children":7707},{"style":1041},[7708],{"type":998,"value":7709}," test_values:\n",{"type":993,"tag":1026,"props":7711,"children":7712},{"class":1028,"line":374},[7713,7717,7722,7727,7732],{"type":993,"tag":1026,"props":7714,"children":7715},{"style":1047},[7716],{"type":998,"value":5209},{"type":993,"tag":1026,"props":7718,"children":7719},{"style":1041},[7720],{"type":998,"value":7721}," fmt ",{"type":993,"tag":1026,"props":7723,"children":7724},{"style":1047},[7725],{"type":998,"value":7726},"==",{"type":993,"tag":1026,"props":7728,"children":7729},{"style":1053},[7730],{"type":998,"value":7731}," \"%\"",{"type":993,"tag":1026,"props":7733,"children":7734},{"style":1041},[7735],{"type":998,"value":2931},{"type":993,"tag":1026,"props":7737,"children":7738},{"class":1028,"line":384},[7739,7744,7748],{"type":993,"tag":1026,"props":7740,"children":7741},{"style":1041},[7742],{"type":998,"value":7743},"        result ",{"type":993,"tag":1026,"props":7745,"children":7746},{"style":1047},[7747],{"type":998,"value":1050},{"type":993,"tag":1026,"props":7749,"children":7750},{"style":1041},[7751],{"type":998,"value":7752}," safe_format_percentage(value)\n",{"type":993,"tag":1026,"props":7754,"children":7755},{"class":1028,"line":393},[7756,7761],{"type":993,"tag":1026,"props":7757,"children":7758},{"style":1047},[7759],{"type":998,"value":7760},"    else",{"type":993,"tag":1026,"props":7762,"children":7763},{"style":1041},[7764],{"type":998,"value":2931},{"type":993,"tag":1026,"props":7766,"children":7767},{"class":1028,"line":402},[7768,7772,7776],{"type":993,"tag":1026,"props":7769,"children":7770},{"style":1041},[7771],{"type":998,"value":7743},{"type":993,"tag":1026,"props":7773,"children":7774},{"style":1047},[7775],{"type":998,"value":1050},{"type":993,"tag":1026,"props":7777,"children":7778},{"style":1041},[7779],{"type":998,"value":7780}," safe_format_number(value, fmt)\n",{"type":993,"tag":1026,"props":7782,"children":7783},{"class":1028,"line":411},[7784,7788,7792,7796,7801,7805,7809,7814,7818,7823,7827,7832,7837,7841,7846,7850,7855,7859,7863],{"type":993,"tag":1026,"props":7785,"children":7786},{"style":1071},[7787],{"type":998,"value":1920},{"type":993,"tag":1026,"props":7789,"children":7790},{"style":1041},[7791],{"type":998,"value":1226},{"type":993,"tag":1026,"props":7793,"children":7794},{"style":1047},[7795],{"type":998,"value":1231},{"type":993,"tag":1026,"props":7797,"children":7798},{"style":1053},[7799],{"type":998,"value":7800},"\"Input: ",{"type":993,"tag":1026,"props":7802,"children":7803},{"style":1071},[7804],{"type":998,"value":1168},{"type":993,"tag":1026,"props":7806,"children":7807},{"style":1041},[7808],{"type":998,"value":7141},{"type":993,"tag":1026,"props":7810,"children":7811},{"style":1047},[7812],{"type":998,"value":7813},":>12",{"type":993,"tag":1026,"props":7815,"children":7816},{"style":1071},[7817],{"type":998,"value":1178},{"type":993,"tag":1026,"props":7819,"children":7820},{"style":1053},[7821],{"type":998,"value":7822}," Format: ",{"type":993,"tag":1026,"props":7824,"children":7825},{"style":1071},[7826],{"type":998,"value":1168},{"type":993,"tag":1026,"props":7828,"children":7829},{"style":1041},[7830],{"type":998,"value":7831},"fmt",{"type":993,"tag":1026,"props":7833,"children":7834},{"style":1047},[7835],{"type":998,"value":7836},":>4",{"type":993,"tag":1026,"props":7838,"children":7839},{"style":1071},[7840],{"type":998,"value":1178},{"type":993,"tag":1026,"props":7842,"children":7843},{"style":1053},[7844],{"type":998,"value":7845}," Result: ",{"type":993,"tag":1026,"props":7847,"children":7848},{"style":1071},[7849],{"type":998,"value":1168},{"type":993,"tag":1026,"props":7851,"children":7852},{"style":1041},[7853],{"type":998,"value":7854},"result",{"type":993,"tag":1026,"props":7856,"children":7857},{"style":1071},[7858],{"type":998,"value":1178},{"type":993,"tag":1026,"props":7860,"children":7861},{"style":1053},[7862],{"type":998,"value":1301},{"type":993,"tag":1026,"props":7864,"children":7865},{"style":1041},[7866],{"type":998,"value":1281},{"type":993,"tag":1026,"props":7868,"children":7869},{"class":1028,"line":420},[7870],{"type":993,"tag":1026,"props":7871,"children":7872},{"emptyLinePlaceholder":13},[7873],{"type":998,"value":1133},{"type":993,"tag":1026,"props":7875,"children":7876},{"class":1028,"line":429},[7877],{"type":993,"tag":1026,"props":7878,"children":7879},{"style":1032},[7880],{"type":998,"value":7881},"# Template-based formatting with validation\n",{"type":993,"tag":1026,"props":7883,"children":7884},{"class":1028,"line":438},[7885,7889,7894],{"type":993,"tag":1026,"props":7886,"children":7887},{"style":1047},[7888],{"type":998,"value":2920},{"type":993,"tag":1026,"props":7890,"children":7891},{"style":2923},[7892],{"type":998,"value":7893}," ReportTemplate",{"type":993,"tag":1026,"props":7895,"children":7896},{"style":1041},[7897],{"type":998,"value":2931},{"type":993,"tag":1026,"props":7899,"children":7900},{"class":1028,"line":447},[7901],{"type":993,"tag":1026,"props":7902,"children":7903},{"style":1053},[7904],{"type":998,"value":7905},"    \"\"\"Template class for consistent report formatting\"\"\"\n",{"type":993,"tag":1026,"props":7907,"children":7908},{"class":1028,"line":457},[7909],{"type":993,"tag":1026,"props":7910,"children":7911},{"style":1041},[7912],{"type":998,"value":3000},{"type":993,"tag":1026,"props":7914,"children":7915},{"class":1028,"line":466},[7916,7920,7924,7929,7933,7938],{"type":993,"tag":1026,"props":7917,"children":7918},{"style":1047},[7919],{"type":998,"value":2939},{"type":993,"tag":1026,"props":7921,"children":7922},{"style":1071},[7923],{"type":998,"value":2944},{"type":993,"tag":1026,"props":7925,"children":7926},{"style":1041},[7927],{"type":998,"value":7928},"(self, title_width",{"type":993,"tag":1026,"props":7930,"children":7931},{"style":1047},[7932],{"type":998,"value":1050},{"type":993,"tag":1026,"props":7934,"children":7935},{"style":1071},[7936],{"type":998,"value":7937},"50",{"type":993,"tag":1026,"props":7939,"children":7940},{"style":1041},[7941],{"type":998,"value":4091},{"type":993,"tag":1026,"props":7943,"children":7944},{"class":1028,"line":475},[7945,7949,7954,7958],{"type":993,"tag":1026,"props":7946,"children":7947},{"style":1071},[7948],{"type":998,"value":2957},{"type":993,"tag":1026,"props":7950,"children":7951},{"style":1041},[7952],{"type":998,"value":7953},".title_width ",{"type":993,"tag":1026,"props":7955,"children":7956},{"style":1047},[7957],{"type":998,"value":1050},{"type":993,"tag":1026,"props":7959,"children":7960},{"style":1041},[7961],{"type":998,"value":7962}," title_width\n",{"type":993,"tag":1026,"props":7964,"children":7965},{"class":1028,"line":484},[7966],{"type":993,"tag":1026,"props":7967,"children":7968},{"style":1041},[7969],{"type":998,"value":3000},{"type":993,"tag":1026,"props":7971,"children":7972},{"class":1028,"line":493},[7973,7977,7982],{"type":993,"tag":1026,"props":7974,"children":7975},{"style":1047},[7976],{"type":998,"value":2939},{"type":993,"tag":1026,"props":7978,"children":7979},{"style":2923},[7980],{"type":998,"value":7981}," format_title",{"type":993,"tag":1026,"props":7983,"children":7984},{"style":1041},[7985],{"type":998,"value":7986},"(self, title):\n",{"type":993,"tag":1026,"props":7988,"children":7989},{"class":1028,"line":502},[7990],{"type":993,"tag":1026,"props":7991,"children":7992},{"style":1053},[7993],{"type":998,"value":7994},"        \"\"\"Format report title with decorative borders\"\"\"\n",{"type":993,"tag":1026,"props":7996,"children":7997},{"class":1028,"line":511},[7998,8003,8007],{"type":993,"tag":1026,"props":7999,"children":8000},{"style":1041},[8001],{"type":998,"value":8002},"        title ",{"type":993,"tag":1026,"props":8004,"children":8005},{"style":1047},[8006],{"type":998,"value":1050},{"type":993,"tag":1026,"props":8008,"children":8009},{"style":1041},[8010],{"type":998,"value":8011}," title.upper()\n",{"type":993,"tag":1026,"props":8013,"children":8014},{"class":1028,"line":520},[8015,8020,8024,8028,8032,8036,8040,8044,8049,8054],{"type":993,"tag":1026,"props":8016,"children":8017},{"style":1041},[8018],{"type":998,"value":8019},"        padding ",{"type":993,"tag":1026,"props":8021,"children":8022},{"style":1047},[8023],{"type":998,"value":1050},{"type":993,"tag":1026,"props":8025,"children":8026},{"style":1041},[8027],{"type":998,"value":1398},{"type":993,"tag":1026,"props":8029,"children":8030},{"style":1071},[8031],{"type":998,"value":3038},{"type":993,"tag":1026,"props":8033,"children":8034},{"style":1041},[8035],{"type":998,"value":7953},{"type":993,"tag":1026,"props":8037,"children":8038},{"style":1047},[8039],{"type":998,"value":2406},{"type":993,"tag":1026,"props":8041,"children":8042},{"style":1071},[8043],{"type":998,"value":3052},{"type":993,"tag":1026,"props":8045,"children":8046},{"style":1041},[8047],{"type":998,"value":8048},"(title)) ",{"type":993,"tag":1026,"props":8050,"children":8051},{"style":1047},[8052],{"type":998,"value":8053},"//",{"type":993,"tag":1026,"props":8055,"children":8056},{"style":1071},[8057],{"type":998,"value":8058}," 2\n",{"type":993,"tag":1026,"props":8060,"children":8061},{"class":1028,"line":530},[8062],{"type":993,"tag":1026,"props":8063,"children":8064},{"style":1041},[8065],{"type":998,"value":6149},{"type":993,"tag":1026,"props":8067,"children":8068},{"class":1028,"line":539},[8069,8073,8077],{"type":993,"tag":1026,"props":8070,"children":8071},{"style":1047},[8072],{"type":998,"value":3025},{"type":993,"tag":1026,"props":8074,"children":8075},{"style":1047},[8076],{"type":998,"value":1158},{"type":993,"tag":1026,"props":8078,"children":8079},{"style":1053},[8080],{"type":998,"value":4258},{"type":993,"tag":1026,"props":8082,"children":8083},{"class":1028,"line":548},[8084,8088,8093,8097,8102,8107],{"type":993,"tag":1026,"props":8085,"children":8086},{"style":1071},[8087],{"type":998,"value":1168},{"type":993,"tag":1026,"props":8089,"children":8090},{"style":1053},[8091],{"type":998,"value":8092},"'='",{"type":993,"tag":1026,"props":8094,"children":8095},{"style":1047},[8096],{"type":998,"value":1873},{"type":993,"tag":1026,"props":8098,"children":8099},{"style":1071},[8100],{"type":998,"value":8101}," self",{"type":993,"tag":1026,"props":8103,"children":8104},{"style":1041},[8105],{"type":998,"value":8106},".title_width",{"type":993,"tag":1026,"props":8108,"children":8109},{"style":1071},[8110],{"type":998,"value":3786},{"type":993,"tag":1026,"props":8112,"children":8113},{"class":1028,"line":557},[8114,8118,8123,8127,8132,8137,8141,8145,8149,8153,8157],{"type":993,"tag":1026,"props":8115,"children":8116},{"style":1071},[8117],{"type":998,"value":1168},{"type":993,"tag":1026,"props":8119,"children":8120},{"style":1053},[8121],{"type":998,"value":8122},"' '",{"type":993,"tag":1026,"props":8124,"children":8125},{"style":1047},[8126],{"type":998,"value":1873},{"type":993,"tag":1026,"props":8128,"children":8129},{"style":1041},[8130],{"type":998,"value":8131}," padding",{"type":993,"tag":1026,"props":8133,"children":8134},{"style":1071},[8135],{"type":998,"value":8136},"}{",{"type":993,"tag":1026,"props":8138,"children":8139},{"style":1041},[8140],{"type":998,"value":5495},{"type":993,"tag":1026,"props":8142,"children":8143},{"style":1071},[8144],{"type":998,"value":8136},{"type":993,"tag":1026,"props":8146,"children":8147},{"style":1053},[8148],{"type":998,"value":8122},{"type":993,"tag":1026,"props":8150,"children":8151},{"style":1047},[8152],{"type":998,"value":1873},{"type":993,"tag":1026,"props":8154,"children":8155},{"style":1041},[8156],{"type":998,"value":8131},{"type":993,"tag":1026,"props":8158,"children":8159},{"style":1071},[8160],{"type":998,"value":3786},{"type":993,"tag":1026,"props":8162,"children":8163},{"class":1028,"line":566},[8164,8168,8172,8176,8180,8184,8188],{"type":993,"tag":1026,"props":8165,"children":8166},{"style":1071},[8167],{"type":998,"value":1168},{"type":993,"tag":1026,"props":8169,"children":8170},{"style":1053},[8171],{"type":998,"value":8092},{"type":993,"tag":1026,"props":8173,"children":8174},{"style":1047},[8175],{"type":998,"value":1873},{"type":993,"tag":1026,"props":8177,"children":8178},{"style":1071},[8179],{"type":998,"value":8101},{"type":993,"tag":1026,"props":8181,"children":8182},{"style":1041},[8183],{"type":998,"value":8106},{"type":993,"tag":1026,"props":8185,"children":8186},{"style":1071},[8187],{"type":998,"value":1178},{"type":993,"tag":1026,"props":8189,"children":8190},{"style":1053},[8191],{"type":998,"value":4258},{"type":993,"tag":1026,"props":8193,"children":8194},{"class":1028,"line":575},[8195],{"type":993,"tag":1026,"props":8196,"children":8197},{"style":1041},[8198],{"type":998,"value":3000},{"type":993,"tag":1026,"props":8200,"children":8201},{"class":1028,"line":584},[8202,8206,8211],{"type":993,"tag":1026,"props":8203,"children":8204},{"style":1047},[8205],{"type":998,"value":2939},{"type":993,"tag":1026,"props":8207,"children":8208},{"style":2923},[8209],{"type":998,"value":8210}," format_section",{"type":993,"tag":1026,"props":8212,"children":8213},{"style":1041},[8214],{"type":998,"value":8215},"(self, section_name, content):\n",{"type":993,"tag":1026,"props":8217,"children":8218},{"class":1028,"line":593},[8219],{"type":993,"tag":1026,"props":8220,"children":8221},{"style":1053},[8222],{"type":998,"value":8223},"        \"\"\"Format report section with consistent styling\"\"\"\n",{"type":993,"tag":1026,"props":8225,"children":8226},{"class":1028,"line":602},[8227,8231,8235],{"type":993,"tag":1026,"props":8228,"children":8229},{"style":1047},[8230],{"type":998,"value":3025},{"type":993,"tag":1026,"props":8232,"children":8233},{"style":1047},[8234],{"type":998,"value":1158},{"type":993,"tag":1026,"props":8236,"children":8237},{"style":1053},[8238],{"type":998,"value":4258},{"type":993,"tag":1026,"props":8240,"children":8241},{"class":1028,"line":611},[8242,8246,8251,8255],{"type":993,"tag":1026,"props":8243,"children":8244},{"style":1071},[8245],{"type":998,"value":1168},{"type":993,"tag":1026,"props":8247,"children":8248},{"style":1041},[8249],{"type":998,"value":8250},"section_name",{"type":993,"tag":1026,"props":8252,"children":8253},{"style":1071},[8254],{"type":998,"value":1178},{"type":993,"tag":1026,"props":8256,"children":8257},{"style":1053},[8258],{"type":998,"value":2931},{"type":993,"tag":1026,"props":8260,"children":8261},{"class":1028,"line":621},[8262,8266,8271,8275,8279,8284],{"type":993,"tag":1026,"props":8263,"children":8264},{"style":1071},[8265],{"type":998,"value":1168},{"type":993,"tag":1026,"props":8267,"children":8268},{"style":1053},[8269],{"type":998,"value":8270},"'-'",{"type":993,"tag":1026,"props":8272,"children":8273},{"style":1047},[8274],{"type":998,"value":1873},{"type":993,"tag":1026,"props":8276,"children":8277},{"style":1071},[8278],{"type":998,"value":3052},{"type":993,"tag":1026,"props":8280,"children":8281},{"style":1041},[8282],{"type":998,"value":8283},"(section_name)",{"type":993,"tag":1026,"props":8285,"children":8286},{"style":1071},[8287],{"type":998,"value":3786},{"type":993,"tag":1026,"props":8289,"children":8290},{"class":1028,"line":630},[8291,8295,8299],{"type":993,"tag":1026,"props":8292,"children":8293},{"style":1071},[8294],{"type":998,"value":1168},{"type":993,"tag":1026,"props":8296,"children":8297},{"style":1041},[8298],{"type":998,"value":17},{"type":993,"tag":1026,"props":8300,"children":8301},{"style":1071},[8302],{"type":998,"value":3786},{"type":993,"tag":1026,"props":8304,"children":8305},{"class":1028,"line":639},[8306],{"type":993,"tag":1026,"props":8307,"children":8308},{"style":1053},[8309],{"type":998,"value":4258},{"type":993,"tag":1026,"props":8311,"children":8312},{"class":1028,"line":648},[8313],{"type":993,"tag":1026,"props":8314,"children":8315},{"style":1041},[8316],{"type":998,"value":3000},{"type":993,"tag":1026,"props":8318,"children":8319},{"class":1028,"line":657},[8320,8324,8329,8334,8338,8343],{"type":993,"tag":1026,"props":8321,"children":8322},{"style":1047},[8323],{"type":998,"value":2939},{"type":993,"tag":1026,"props":8325,"children":8326},{"style":2923},[8327],{"type":998,"value":8328}," format_key_value",{"type":993,"tag":1026,"props":8330,"children":8331},{"style":1041},[8332],{"type":998,"value":8333},"(self, key, value, key_width",{"type":993,"tag":1026,"props":8335,"children":8336},{"style":1047},[8337],{"type":998,"value":1050},{"type":993,"tag":1026,"props":8339,"children":8340},{"style":1071},[8341],{"type":998,"value":8342},"20",{"type":993,"tag":1026,"props":8344,"children":8345},{"style":1041},[8346],{"type":998,"value":4091},{"type":993,"tag":1026,"props":8348,"children":8349},{"class":1028,"line":666},[8350],{"type":993,"tag":1026,"props":8351,"children":8352},{"style":1053},[8353],{"type":998,"value":8354},"        \"\"\"Format key-value pairs with consistent alignment\"\"\"\n",{"type":993,"tag":1026,"props":8356,"children":8357},{"class":1028,"line":675},[8358,8362,8366,8370,8374,8379,8383,8387,8392,8396,8400,8404,8408,8412],{"type":993,"tag":1026,"props":8359,"children":8360},{"style":1047},[8361],{"type":998,"value":3025},{"type":993,"tag":1026,"props":8363,"children":8364},{"style":1047},[8365],{"type":998,"value":1158},{"type":993,"tag":1026,"props":8367,"children":8368},{"style":1053},[8369],{"type":998,"value":1301},{"type":993,"tag":1026,"props":8371,"children":8372},{"style":1071},[8373],{"type":998,"value":1168},{"type":993,"tag":1026,"props":8375,"children":8376},{"style":1041},[8377],{"type":998,"value":8378},"key",{"type":993,"tag":1026,"props":8380,"children":8381},{"style":1047},[8382],{"type":998,"value":5733},{"type":993,"tag":1026,"props":8384,"children":8385},{"style":1071},[8386],{"type":998,"value":1168},{"type":993,"tag":1026,"props":8388,"children":8389},{"style":1041},[8390],{"type":998,"value":8391},"key_width",{"type":993,"tag":1026,"props":8393,"children":8394},{"style":1071},[8395],{"type":998,"value":5685},{"type":993,"tag":1026,"props":8397,"children":8398},{"style":1053},[8399],{"type":998,"value":2168},{"type":993,"tag":1026,"props":8401,"children":8402},{"style":1071},[8403],{"type":998,"value":1168},{"type":993,"tag":1026,"props":8405,"children":8406},{"style":1041},[8407],{"type":998,"value":7141},{"type":993,"tag":1026,"props":8409,"children":8410},{"style":1071},[8411],{"type":998,"value":1178},{"type":993,"tag":1026,"props":8413,"children":8414},{"style":1053},[8415],{"type":998,"value":2696},{"type":993,"tag":1026,"props":8417,"children":8418},{"class":1028,"line":685},[8419],{"type":993,"tag":1026,"props":8420,"children":8421},{"emptyLinePlaceholder":13},[8422],{"type":998,"value":1133},{"type":993,"tag":1026,"props":8424,"children":8425},{"class":1028,"line":694},[8426],{"type":993,"tag":1026,"props":8427,"children":8428},{"style":1032},[8429],{"type":998,"value":4830},{"type":993,"tag":1026,"props":8431,"children":8432},{"class":1028,"line":703},[8433,8438,8442],{"type":993,"tag":1026,"props":8434,"children":8435},{"style":1041},[8436],{"type":998,"value":8437},"template ",{"type":993,"tag":1026,"props":8439,"children":8440},{"style":1047},[8441],{"type":998,"value":1050},{"type":993,"tag":1026,"props":8443,"children":8444},{"style":1041},[8445],{"type":998,"value":8446}," ReportTemplate()\n",{"type":993,"tag":1026,"props":8448,"children":8449},{"class":1028,"line":712},[8450],{"type":993,"tag":1026,"props":8451,"children":8452},{"emptyLinePlaceholder":13},[8453],{"type":998,"value":1133},{"type":993,"tag":1026,"props":8455,"children":8456},{"class":1028,"line":721},[8457,8461,8466,8471],{"type":993,"tag":1026,"props":8458,"children":8459},{"style":1071},[8460],{"type":998,"value":1209},{"type":993,"tag":1026,"props":8462,"children":8463},{"style":1041},[8464],{"type":998,"value":8465},"(template.format_title(",{"type":993,"tag":1026,"props":8467,"children":8468},{"style":1053},[8469],{"type":998,"value":8470},"\"Monthly Performance Report\"",{"type":993,"tag":1026,"props":8472,"children":8473},{"style":1041},[8474],{"type":998,"value":8475},"))\n",{"type":993,"tag":1026,"props":8477,"children":8478},{"class":1028,"line":730},[8479,8483,8488,8493],{"type":993,"tag":1026,"props":8480,"children":8481},{"style":1071},[8482],{"type":998,"value":1209},{"type":993,"tag":1026,"props":8484,"children":8485},{"style":1041},[8486],{"type":998,"value":8487},"(template.format_section(",{"type":993,"tag":1026,"props":8489,"children":8490},{"style":1053},[8491],{"type":998,"value":8492},"\"Financial Summary\"",{"type":993,"tag":1026,"props":8494,"children":8495},{"style":1041},[8496],{"type":998,"value":6494},{"type":993,"tag":1026,"props":8498,"children":8499},{"class":1028,"line":739},[8500,8505,8509,8513,8518,8523,8527,8531,8535,8539],{"type":993,"tag":1026,"props":8501,"children":8502},{"style":1041},[8503],{"type":998,"value":8504},"    template.format_key_value(",{"type":993,"tag":1026,"props":8506,"children":8507},{"style":1053},[8508],{"type":998,"value":6265},{"type":993,"tag":1026,"props":8510,"children":8511},{"style":1041},[8512],{"type":998,"value":1723},{"type":993,"tag":1026,"props":8514,"children":8515},{"style":1053},[8516],{"type":998,"value":8517},"\"$125,000.00\"",{"type":993,"tag":1026,"props":8519,"children":8520},{"style":1041},[8521],{"type":998,"value":8522},") ",{"type":993,"tag":1026,"props":8524,"children":8525},{"style":1047},[8526],{"type":998,"value":1266},{"type":993,"tag":1026,"props":8528,"children":8529},{"style":1053},[8530],{"type":998,"value":5542},{"type":993,"tag":1026,"props":8532,"children":8533},{"style":1071},[8534],{"type":998,"value":1843},{"type":993,"tag":1026,"props":8536,"children":8537},{"style":1053},[8538],{"type":998,"value":1301},{"type":993,"tag":1026,"props":8540,"children":8541},{"style":1047},[8542],{"type":998,"value":8543}," +\n",{"type":993,"tag":1026,"props":8545,"children":8546},{"class":1028,"line":749},[8547,8551,8556,8560,8565,8569,8573,8577,8581,8585],{"type":993,"tag":1026,"props":8548,"children":8549},{"style":1041},[8550],{"type":998,"value":8504},{"type":993,"tag":1026,"props":8552,"children":8553},{"style":1053},[8554],{"type":998,"value":8555},"\"Expenses\"",{"type":993,"tag":1026,"props":8557,"children":8558},{"style":1041},[8559],{"type":998,"value":1723},{"type":993,"tag":1026,"props":8561,"children":8562},{"style":1053},[8563],{"type":998,"value":8564},"\"$98,500.00\"",{"type":993,"tag":1026,"props":8566,"children":8567},{"style":1041},[8568],{"type":998,"value":8522},{"type":993,"tag":1026,"props":8570,"children":8571},{"style":1047},[8572],{"type":998,"value":1266},{"type":993,"tag":1026,"props":8574,"children":8575},{"style":1053},[8576],{"type":998,"value":5542},{"type":993,"tag":1026,"props":8578,"children":8579},{"style":1071},[8580],{"type":998,"value":1843},{"type":993,"tag":1026,"props":8582,"children":8583},{"style":1053},[8584],{"type":998,"value":1301},{"type":993,"tag":1026,"props":8586,"children":8587},{"style":1047},[8588],{"type":998,"value":8543},{"type":993,"tag":1026,"props":8590,"children":8591},{"class":1028,"line":758},[8592,8596,8601,8605,8610],{"type":993,"tag":1026,"props":8593,"children":8594},{"style":1041},[8595],{"type":998,"value":8504},{"type":993,"tag":1026,"props":8597,"children":8598},{"style":1053},[8599],{"type":998,"value":8600},"\"Net Profit\"",{"type":993,"tag":1026,"props":8602,"children":8603},{"style":1041},[8604],{"type":998,"value":1723},{"type":993,"tag":1026,"props":8606,"children":8607},{"style":1053},[8608],{"type":998,"value":8609},"\"$26,500.00\"",{"type":993,"tag":1026,"props":8611,"children":8612},{"style":1041},[8613],{"type":998,"value":1281},{"type":993,"tag":1026,"props":8615,"children":8616},{"class":1028,"line":767},[8617],{"type":993,"tag":1026,"props":8618,"children":8619},{"style":1041},[8620],{"type":998,"value":8475},{"type":993,"tag":2119,"props":8622,"children":8624},{"id":8623},"real-world-applications",[8625],{"type":998,"value":8626},"🌟 Real-World Applications",{"type":993,"tag":2513,"props":8628,"children":8630},{"id":8629},"configuration-and-log-formatting",[8631],{"type":998,"value":8632},"Configuration and Log Formatting",{"type":993,"tag":1001,"props":8634,"children":8635},{},[8636],{"type":998,"value":8637},"Structured formatting improves readability and maintainability of configuration files and logs.",{"type":993,"tag":1012,"props":8639,"children":8640},{},[8641],{"type":993,"tag":1016,"props":8642,"children":8644},{"className":1018,"code":8643,"language":6,"meta":8,"style":8},"import datetime\n\nclass LogFormatter:\n    \"\"\"Professional log formatting for applications\"\"\"\n    \n    def __init__(self, include_timestamp=True, include_level=True):\n        self.include_timestamp = include_timestamp\n        self.include_level = include_level\n    \n    def format_log_entry(self, level, message, module=None, details=None):\n        \"\"\"Format log entry with consistent structure\"\"\"\n        parts = []\n        \n        if self.include_timestamp:\n            timestamp = datetime.datetime.now().strftime(\"%Y-%m-%d %H:%M:%S\")\n            parts.append(f\"[{timestamp}]\")\n        \n        if self.include_level:\n            parts.append(f\"[{level.upper():>7}]\")\n        \n        if module:\n            parts.append(f\"[{module}]\")\n        \n        parts.append(message)\n        \n        log_line = \" \".join(parts)\n        \n        if details:\n            log_line += f\"\\n  Details: {details}\"\n        \n        return log_line\n    \n    def format_error(self, error_msg, error_code=None, stack_trace=None):\n        \"\"\"Format error messages with additional context\"\"\"\n        parts = [\"ERROR:\", error_msg]\n        \n        if error_code:\n            parts.append(f\"(Code: {error_code})\")\n        \n        error_line = \" \".join(parts)\n        \n        if stack_trace:\n            error_line += f\"\\n  Stack Trace:\\n{stack_trace}\"\n        \n        return self.format_log_entry(\"ERROR\", error_line)\n\n# Usage examples\nlogger = LogFormatter()\n\nprint(\"Application Log Entries:\")\nprint(logger.format_log_entry(\"INFO\", \"Application started successfully\", \"main\"))\nprint(logger.format_log_entry(\"DEBUG\", \"Database connection established\", \"db\", \"host=localhost:5432\"))\nprint(logger.format_log_entry(\"WARNING\", \"High memory usage detected\", \"monitor\", \"usage=87%\"))\nprint(logger.format_error(\"Database connection failed\", \"DB001\", \"ConnectionError: timeout after 30s\"))\n\n# Configuration file generation\ndef generate_config_file(settings):\n    \"\"\"Generate formatted configuration file\"\"\"\n    \n    config_content = f\"\"\"# Application Configuration\n# Generated on {datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S')}\n\n\"\"\"\n    \n    for section, options in settings.items():\n        config_content += f\"[{section.upper()}]\\n\"\n        \n        for key, value in options.items():\n            # Format different value types appropriately\n            if isinstance(value, bool):\n                formatted_value = str(value).lower()\n            elif isinstance(value, str):\n                formatted_value = f'\"{value}\"'\n            else:\n                formatted_value = str(value)\n            \n            config_content += f\"{key} = {formatted_value}\\n\"\n        \n        config_content += \"\\n\"\n    \n    return config_content\n\n# Configuration example\napp_settings = {\n    \"database\": {\n        \"host\": \"localhost\",\n        \"port\": 5432,\n        \"name\": \"myapp\",\n        \"ssl_enabled\": True\n    },\n    \"security\": {\n        \"max_login_attempts\": 3,\n        \"session_timeout\": 1800,\n        \"encryption_enabled\": True\n    },\n    \"logging\": {\n        \"level\": \"INFO\",\n        \"file_path\": \"/var/log/myapp.log\",\n        \"max_file_size\": \"10MB\"\n    }\n}\n\nconfig_file = generate_config_file(app_settings)\nprint(\"Generated Configuration File:\")\nprint(config_file)\n",[8645],{"type":993,"tag":1022,"props":8646,"children":8647},{"__ignoreMap":8},[8648,8659,8666,8682,8690,8697,8739,8760,8781,8788,8830,8838,8854,8861,8877,8912,8951,8958,8974,9015,9022,9034,9070,9077,9085,9092,9114,9121,9133,9179,9186,9198,9205,9247,9255,9280,9287,9299,9337,9344,9364,9371,9383,9429,9436,9462,9469,9477,9494,9501,9521,9560,9607,9654,9693,9700,9708,9725,9733,9740,9761,9798,9805,9812,9819,9840,9885,9892,9913,9921,9945,9967,9991,10028,10039,10058,10066,10120,10127,10150,10157,10169,10176,10184,10201,10214,10235,10256,10277,10294,10302,10314,10334,10355,10371,10378,10390,10410,10431,10448,10456,10463,10470,10487,10507],{"type":993,"tag":1026,"props":8649,"children":8650},{"class":1028,"line":12},[8651,8655],{"type":993,"tag":1026,"props":8652,"children":8653},{"style":1047},[8654],{"type":998,"value":2541},{"type":993,"tag":1026,"props":8656,"children":8657},{"style":1041},[8658],{"type":998,"value":2546},{"type":993,"tag":1026,"props":8660,"children":8661},{"class":1028,"line":27},[8662],{"type":993,"tag":1026,"props":8663,"children":8664},{"emptyLinePlaceholder":13},[8665],{"type":998,"value":1133},{"type":993,"tag":1026,"props":8667,"children":8668},{"class":1028,"line":36},[8669,8673,8678],{"type":993,"tag":1026,"props":8670,"children":8671},{"style":1047},[8672],{"type":998,"value":2920},{"type":993,"tag":1026,"props":8674,"children":8675},{"style":2923},[8676],{"type":998,"value":8677}," LogFormatter",{"type":993,"tag":1026,"props":8679,"children":8680},{"style":1041},[8681],{"type":998,"value":2931},{"type":993,"tag":1026,"props":8683,"children":8684},{"class":1028,"line":45},[8685],{"type":993,"tag":1026,"props":8686,"children":8687},{"style":1053},[8688],{"type":998,"value":8689},"    \"\"\"Professional log formatting for applications\"\"\"\n",{"type":993,"tag":1026,"props":8691,"children":8692},{"class":1028,"line":54},[8693],{"type":993,"tag":1026,"props":8694,"children":8695},{"style":1041},[8696],{"type":998,"value":3000},{"type":993,"tag":1026,"props":8698,"children":8699},{"class":1028,"line":63},[8700,8704,8708,8713,8717,8722,8727,8731,8735],{"type":993,"tag":1026,"props":8701,"children":8702},{"style":1047},[8703],{"type":998,"value":2939},{"type":993,"tag":1026,"props":8705,"children":8706},{"style":1071},[8707],{"type":998,"value":2944},{"type":993,"tag":1026,"props":8709,"children":8710},{"style":1041},[8711],{"type":998,"value":8712},"(self, include_timestamp",{"type":993,"tag":1026,"props":8714,"children":8715},{"style":1047},[8716],{"type":998,"value":1050},{"type":993,"tag":1026,"props":8718,"children":8719},{"style":1071},[8720],{"type":998,"value":8721},"True",{"type":993,"tag":1026,"props":8723,"children":8724},{"style":1041},[8725],{"type":998,"value":8726},", include_level",{"type":993,"tag":1026,"props":8728,"children":8729},{"style":1047},[8730],{"type":998,"value":1050},{"type":993,"tag":1026,"props":8732,"children":8733},{"style":1071},[8734],{"type":998,"value":8721},{"type":993,"tag":1026,"props":8736,"children":8737},{"style":1041},[8738],{"type":998,"value":4091},{"type":993,"tag":1026,"props":8740,"children":8741},{"class":1028,"line":72},[8742,8746,8751,8755],{"type":993,"tag":1026,"props":8743,"children":8744},{"style":1071},[8745],{"type":998,"value":2957},{"type":993,"tag":1026,"props":8747,"children":8748},{"style":1041},[8749],{"type":998,"value":8750},".include_timestamp ",{"type":993,"tag":1026,"props":8752,"children":8753},{"style":1047},[8754],{"type":998,"value":1050},{"type":993,"tag":1026,"props":8756,"children":8757},{"style":1041},[8758],{"type":998,"value":8759}," include_timestamp\n",{"type":993,"tag":1026,"props":8761,"children":8762},{"class":1028,"line":81},[8763,8767,8772,8776],{"type":993,"tag":1026,"props":8764,"children":8765},{"style":1071},[8766],{"type":998,"value":2957},{"type":993,"tag":1026,"props":8768,"children":8769},{"style":1041},[8770],{"type":998,"value":8771},".include_level ",{"type":993,"tag":1026,"props":8773,"children":8774},{"style":1047},[8775],{"type":998,"value":1050},{"type":993,"tag":1026,"props":8777,"children":8778},{"style":1041},[8779],{"type":998,"value":8780}," include_level\n",{"type":993,"tag":1026,"props":8782,"children":8783},{"class":1028,"line":91},[8784],{"type":993,"tag":1026,"props":8785,"children":8786},{"style":1041},[8787],{"type":998,"value":3000},{"type":993,"tag":1026,"props":8789,"children":8790},{"class":1028,"line":100},[8791,8795,8800,8805,8809,8813,8818,8822,8826],{"type":993,"tag":1026,"props":8792,"children":8793},{"style":1047},[8794],{"type":998,"value":2939},{"type":993,"tag":1026,"props":8796,"children":8797},{"style":2923},[8798],{"type":998,"value":8799}," format_log_entry",{"type":993,"tag":1026,"props":8801,"children":8802},{"style":1041},[8803],{"type":998,"value":8804},"(self, level, message, module",{"type":993,"tag":1026,"props":8806,"children":8807},{"style":1047},[8808],{"type":998,"value":1050},{"type":993,"tag":1026,"props":8810,"children":8811},{"style":1071},[8812],{"type":998,"value":5182},{"type":993,"tag":1026,"props":8814,"children":8815},{"style":1041},[8816],{"type":998,"value":8817},", details",{"type":993,"tag":1026,"props":8819,"children":8820},{"style":1047},[8821],{"type":998,"value":1050},{"type":993,"tag":1026,"props":8823,"children":8824},{"style":1071},[8825],{"type":998,"value":5182},{"type":993,"tag":1026,"props":8827,"children":8828},{"style":1041},[8829],{"type":998,"value":4091},{"type":993,"tag":1026,"props":8831,"children":8832},{"class":1028,"line":109},[8833],{"type":993,"tag":1026,"props":8834,"children":8835},{"style":1053},[8836],{"type":998,"value":8837},"        \"\"\"Format log entry with consistent structure\"\"\"\n",{"type":993,"tag":1026,"props":8839,"children":8840},{"class":1028,"line":118},[8841,8846,8850],{"type":993,"tag":1026,"props":8842,"children":8843},{"style":1041},[8844],{"type":998,"value":8845},"        parts ",{"type":993,"tag":1026,"props":8847,"children":8848},{"style":1047},[8849],{"type":998,"value":1050},{"type":993,"tag":1026,"props":8851,"children":8852},{"style":1041},[8853],{"type":998,"value":5245},{"type":993,"tag":1026,"props":8855,"children":8856},{"class":1028,"line":127},[8857],{"type":993,"tag":1026,"props":8858,"children":8859},{"style":1041},[8860],{"type":998,"value":6149},{"type":993,"tag":1026,"props":8862,"children":8863},{"class":1028,"line":136},[8864,8868,8872],{"type":993,"tag":1026,"props":8865,"children":8866},{"style":1047},[8867],{"type":998,"value":5624},{"type":993,"tag":1026,"props":8869,"children":8870},{"style":1071},[8871],{"type":998,"value":8101},{"type":993,"tag":1026,"props":8873,"children":8874},{"style":1041},[8875],{"type":998,"value":8876},".include_timestamp:\n",{"type":993,"tag":1026,"props":8878,"children":8879},{"class":1028,"line":146},[8880,8885,8889,8894,8899,8903,8908],{"type":993,"tag":1026,"props":8881,"children":8882},{"style":1041},[8883],{"type":998,"value":8884},"            timestamp ",{"type":993,"tag":1026,"props":8886,"children":8887},{"style":1047},[8888],{"type":998,"value":1050},{"type":993,"tag":1026,"props":8890,"children":8891},{"style":1041},[8892],{"type":998,"value":8893}," datetime.datetime.now().strftime(",{"type":993,"tag":1026,"props":8895,"children":8896},{"style":1053},[8897],{"type":998,"value":8898},"\"%Y-%m-",{"type":993,"tag":1026,"props":8900,"children":8901},{"style":1071},[8902],{"type":998,"value":2772},{"type":993,"tag":1026,"props":8904,"children":8905},{"style":1053},[8906],{"type":998,"value":8907}," %H:%M:%S\"",{"type":993,"tag":1026,"props":8909,"children":8910},{"style":1041},[8911],{"type":998,"value":1281},{"type":993,"tag":1026,"props":8913,"children":8914},{"class":1028,"line":155},[8915,8920,8924,8929,8933,8938,8942,8947],{"type":993,"tag":1026,"props":8916,"children":8917},{"style":1041},[8918],{"type":998,"value":8919},"            parts.append(",{"type":993,"tag":1026,"props":8921,"children":8922},{"style":1047},[8923],{"type":998,"value":1231},{"type":993,"tag":1026,"props":8925,"children":8926},{"style":1053},[8927],{"type":998,"value":8928},"\"[",{"type":993,"tag":1026,"props":8930,"children":8931},{"style":1071},[8932],{"type":998,"value":1168},{"type":993,"tag":1026,"props":8934,"children":8935},{"style":1041},[8936],{"type":998,"value":8937},"timestamp",{"type":993,"tag":1026,"props":8939,"children":8940},{"style":1071},[8941],{"type":998,"value":1178},{"type":993,"tag":1026,"props":8943,"children":8944},{"style":1053},[8945],{"type":998,"value":8946},"]\"",{"type":993,"tag":1026,"props":8948,"children":8949},{"style":1041},[8950],{"type":998,"value":1281},{"type":993,"tag":1026,"props":8952,"children":8953},{"class":1028,"line":164},[8954],{"type":993,"tag":1026,"props":8955,"children":8956},{"style":1041},[8957],{"type":998,"value":6149},{"type":993,"tag":1026,"props":8959,"children":8960},{"class":1028,"line":173},[8961,8965,8969],{"type":993,"tag":1026,"props":8962,"children":8963},{"style":1047},[8964],{"type":998,"value":5624},{"type":993,"tag":1026,"props":8966,"children":8967},{"style":1071},[8968],{"type":998,"value":8101},{"type":993,"tag":1026,"props":8970,"children":8971},{"style":1041},[8972],{"type":998,"value":8973},".include_level:\n",{"type":993,"tag":1026,"props":8975,"children":8976},{"class":1028,"line":182},[8977,8981,8985,8989,8993,8998,9003,9007,9011],{"type":993,"tag":1026,"props":8978,"children":8979},{"style":1041},[8980],{"type":998,"value":8919},{"type":993,"tag":1026,"props":8982,"children":8983},{"style":1047},[8984],{"type":998,"value":1231},{"type":993,"tag":1026,"props":8986,"children":8987},{"style":1053},[8988],{"type":998,"value":8928},{"type":993,"tag":1026,"props":8990,"children":8991},{"style":1071},[8992],{"type":998,"value":1168},{"type":993,"tag":1026,"props":8994,"children":8995},{"style":1041},[8996],{"type":998,"value":8997},"level.upper()",{"type":993,"tag":1026,"props":8999,"children":9000},{"style":1047},[9001],{"type":998,"value":9002},":>7",{"type":993,"tag":1026,"props":9004,"children":9005},{"style":1071},[9006],{"type":998,"value":1178},{"type":993,"tag":1026,"props":9008,"children":9009},{"style":1053},[9010],{"type":998,"value":8946},{"type":993,"tag":1026,"props":9012,"children":9013},{"style":1041},[9014],{"type":998,"value":1281},{"type":993,"tag":1026,"props":9016,"children":9017},{"class":1028,"line":191},[9018],{"type":993,"tag":1026,"props":9019,"children":9020},{"style":1041},[9021],{"type":998,"value":6149},{"type":993,"tag":1026,"props":9023,"children":9024},{"class":1028,"line":201},[9025,9029],{"type":993,"tag":1026,"props":9026,"children":9027},{"style":1047},[9028],{"type":998,"value":5624},{"type":993,"tag":1026,"props":9030,"children":9031},{"style":1041},[9032],{"type":998,"value":9033}," module:\n",{"type":993,"tag":1026,"props":9035,"children":9036},{"class":1028,"line":210},[9037,9041,9045,9049,9053,9058,9062,9066],{"type":993,"tag":1026,"props":9038,"children":9039},{"style":1041},[9040],{"type":998,"value":8919},{"type":993,"tag":1026,"props":9042,"children":9043},{"style":1047},[9044],{"type":998,"value":1231},{"type":993,"tag":1026,"props":9046,"children":9047},{"style":1053},[9048],{"type":998,"value":8928},{"type":993,"tag":1026,"props":9050,"children":9051},{"style":1071},[9052],{"type":998,"value":1168},{"type":993,"tag":1026,"props":9054,"children":9055},{"style":1041},[9056],{"type":998,"value":9057},"module",{"type":993,"tag":1026,"props":9059,"children":9060},{"style":1071},[9061],{"type":998,"value":1178},{"type":993,"tag":1026,"props":9063,"children":9064},{"style":1053},[9065],{"type":998,"value":8946},{"type":993,"tag":1026,"props":9067,"children":9068},{"style":1041},[9069],{"type":998,"value":1281},{"type":993,"tag":1026,"props":9071,"children":9072},{"class":1028,"line":219},[9073],{"type":993,"tag":1026,"props":9074,"children":9075},{"style":1041},[9076],{"type":998,"value":6149},{"type":993,"tag":1026,"props":9078,"children":9079},{"class":1028,"line":228},[9080],{"type":993,"tag":1026,"props":9081,"children":9082},{"style":1041},[9083],{"type":998,"value":9084},"        parts.append(message)\n",{"type":993,"tag":1026,"props":9086,"children":9087},{"class":1028,"line":238},[9088],{"type":993,"tag":1026,"props":9089,"children":9090},{"style":1041},[9091],{"type":998,"value":6149},{"type":993,"tag":1026,"props":9093,"children":9094},{"class":1028,"line":247},[9095,9100,9104,9109],{"type":993,"tag":1026,"props":9096,"children":9097},{"style":1041},[9098],{"type":998,"value":9099},"        log_line ",{"type":993,"tag":1026,"props":9101,"children":9102},{"style":1047},[9103],{"type":998,"value":1050},{"type":993,"tag":1026,"props":9105,"children":9106},{"style":1053},[9107],{"type":998,"value":9108}," \" \"",{"type":993,"tag":1026,"props":9110,"children":9111},{"style":1041},[9112],{"type":998,"value":9113},".join(parts)\n",{"type":993,"tag":1026,"props":9115,"children":9116},{"class":1028,"line":256},[9117],{"type":993,"tag":1026,"props":9118,"children":9119},{"style":1041},[9120],{"type":998,"value":6149},{"type":993,"tag":1026,"props":9122,"children":9123},{"class":1028,"line":265},[9124,9128],{"type":993,"tag":1026,"props":9125,"children":9126},{"style":1047},[9127],{"type":998,"value":5624},{"type":993,"tag":1026,"props":9129,"children":9130},{"style":1041},[9131],{"type":998,"value":9132}," details:\n",{"type":993,"tag":1026,"props":9134,"children":9135},{"class":1028,"line":274},[9136,9141,9145,9149,9153,9157,9162,9166,9171,9175],{"type":993,"tag":1026,"props":9137,"children":9138},{"style":1041},[9139],{"type":998,"value":9140},"            log_line ",{"type":993,"tag":1026,"props":9142,"children":9143},{"style":1047},[9144],{"type":998,"value":4516},{"type":993,"tag":1026,"props":9146,"children":9147},{"style":1047},[9148],{"type":998,"value":1158},{"type":993,"tag":1026,"props":9150,"children":9151},{"style":1053},[9152],{"type":998,"value":1301},{"type":993,"tag":1026,"props":9154,"children":9155},{"style":1071},[9156],{"type":998,"value":1843},{"type":993,"tag":1026,"props":9158,"children":9159},{"style":1053},[9160],{"type":998,"value":9161},"  Details: ",{"type":993,"tag":1026,"props":9163,"children":9164},{"style":1071},[9165],{"type":998,"value":1168},{"type":993,"tag":1026,"props":9167,"children":9168},{"style":1041},[9169],{"type":998,"value":9170},"details",{"type":993,"tag":1026,"props":9172,"children":9173},{"style":1071},[9174],{"type":998,"value":1178},{"type":993,"tag":1026,"props":9176,"children":9177},{"style":1053},[9178],{"type":998,"value":2696},{"type":993,"tag":1026,"props":9180,"children":9181},{"class":1028,"line":284},[9182],{"type":993,"tag":1026,"props":9183,"children":9184},{"style":1041},[9185],{"type":998,"value":6149},{"type":993,"tag":1026,"props":9187,"children":9188},{"class":1028,"line":293},[9189,9193],{"type":993,"tag":1026,"props":9190,"children":9191},{"style":1047},[9192],{"type":998,"value":3025},{"type":993,"tag":1026,"props":9194,"children":9195},{"style":1041},[9196],{"type":998,"value":9197}," log_line\n",{"type":993,"tag":1026,"props":9199,"children":9200},{"class":1028,"line":302},[9201],{"type":993,"tag":1026,"props":9202,"children":9203},{"style":1041},[9204],{"type":998,"value":3000},{"type":993,"tag":1026,"props":9206,"children":9207},{"class":1028,"line":311},[9208,9212,9217,9222,9226,9230,9235,9239,9243],{"type":993,"tag":1026,"props":9209,"children":9210},{"style":1047},[9211],{"type":998,"value":2939},{"type":993,"tag":1026,"props":9213,"children":9214},{"style":2923},[9215],{"type":998,"value":9216}," format_error",{"type":993,"tag":1026,"props":9218,"children":9219},{"style":1041},[9220],{"type":998,"value":9221},"(self, error_msg, error_code",{"type":993,"tag":1026,"props":9223,"children":9224},{"style":1047},[9225],{"type":998,"value":1050},{"type":993,"tag":1026,"props":9227,"children":9228},{"style":1071},[9229],{"type":998,"value":5182},{"type":993,"tag":1026,"props":9231,"children":9232},{"style":1041},[9233],{"type":998,"value":9234},", stack_trace",{"type":993,"tag":1026,"props":9236,"children":9237},{"style":1047},[9238],{"type":998,"value":1050},{"type":993,"tag":1026,"props":9240,"children":9241},{"style":1071},[9242],{"type":998,"value":5182},{"type":993,"tag":1026,"props":9244,"children":9245},{"style":1041},[9246],{"type":998,"value":4091},{"type":993,"tag":1026,"props":9248,"children":9249},{"class":1028,"line":320},[9250],{"type":993,"tag":1026,"props":9251,"children":9252},{"style":1053},[9253],{"type":998,"value":9254},"        \"\"\"Format error messages with additional context\"\"\"\n",{"type":993,"tag":1026,"props":9256,"children":9257},{"class":1028,"line":329},[9258,9262,9266,9270,9275],{"type":993,"tag":1026,"props":9259,"children":9260},{"style":1041},[9261],{"type":998,"value":8845},{"type":993,"tag":1026,"props":9263,"children":9264},{"style":1047},[9265],{"type":998,"value":1050},{"type":993,"tag":1026,"props":9267,"children":9268},{"style":1041},[9269],{"type":998,"value":6233},{"type":993,"tag":1026,"props":9271,"children":9272},{"style":1053},[9273],{"type":998,"value":9274},"\"ERROR:\"",{"type":993,"tag":1026,"props":9276,"children":9277},{"style":1041},[9278],{"type":998,"value":9279},", error_msg]\n",{"type":993,"tag":1026,"props":9281,"children":9282},{"class":1028,"line":338},[9283],{"type":993,"tag":1026,"props":9284,"children":9285},{"style":1041},[9286],{"type":998,"value":6149},{"type":993,"tag":1026,"props":9288,"children":9289},{"class":1028,"line":347},[9290,9294],{"type":993,"tag":1026,"props":9291,"children":9292},{"style":1047},[9293],{"type":998,"value":5624},{"type":993,"tag":1026,"props":9295,"children":9296},{"style":1041},[9297],{"type":998,"value":9298}," error_code:\n",{"type":993,"tag":1026,"props":9300,"children":9301},{"class":1028,"line":356},[9302,9306,9310,9315,9319,9324,9328,9333],{"type":993,"tag":1026,"props":9303,"children":9304},{"style":1041},[9305],{"type":998,"value":8919},{"type":993,"tag":1026,"props":9307,"children":9308},{"style":1047},[9309],{"type":998,"value":1231},{"type":993,"tag":1026,"props":9311,"children":9312},{"style":1053},[9313],{"type":998,"value":9314},"\"(Code: ",{"type":993,"tag":1026,"props":9316,"children":9317},{"style":1071},[9318],{"type":998,"value":1168},{"type":993,"tag":1026,"props":9320,"children":9321},{"style":1041},[9322],{"type":998,"value":9323},"error_code",{"type":993,"tag":1026,"props":9325,"children":9326},{"style":1071},[9327],{"type":998,"value":1178},{"type":993,"tag":1026,"props":9329,"children":9330},{"style":1053},[9331],{"type":998,"value":9332},")\"",{"type":993,"tag":1026,"props":9334,"children":9335},{"style":1041},[9336],{"type":998,"value":1281},{"type":993,"tag":1026,"props":9338,"children":9339},{"class":1028,"line":365},[9340],{"type":993,"tag":1026,"props":9341,"children":9342},{"style":1041},[9343],{"type":998,"value":6149},{"type":993,"tag":1026,"props":9345,"children":9346},{"class":1028,"line":374},[9347,9352,9356,9360],{"type":993,"tag":1026,"props":9348,"children":9349},{"style":1041},[9350],{"type":998,"value":9351},"        error_line ",{"type":993,"tag":1026,"props":9353,"children":9354},{"style":1047},[9355],{"type":998,"value":1050},{"type":993,"tag":1026,"props":9357,"children":9358},{"style":1053},[9359],{"type":998,"value":9108},{"type":993,"tag":1026,"props":9361,"children":9362},{"style":1041},[9363],{"type":998,"value":9113},{"type":993,"tag":1026,"props":9365,"children":9366},{"class":1028,"line":384},[9367],{"type":993,"tag":1026,"props":9368,"children":9369},{"style":1041},[9370],{"type":998,"value":6149},{"type":993,"tag":1026,"props":9372,"children":9373},{"class":1028,"line":393},[9374,9378],{"type":993,"tag":1026,"props":9375,"children":9376},{"style":1047},[9377],{"type":998,"value":5624},{"type":993,"tag":1026,"props":9379,"children":9380},{"style":1041},[9381],{"type":998,"value":9382}," stack_trace:\n",{"type":993,"tag":1026,"props":9384,"children":9385},{"class":1028,"line":402},[9386,9391,9395,9399,9403,9407,9412,9416,9421,9425],{"type":993,"tag":1026,"props":9387,"children":9388},{"style":1041},[9389],{"type":998,"value":9390},"            error_line ",{"type":993,"tag":1026,"props":9392,"children":9393},{"style":1047},[9394],{"type":998,"value":4516},{"type":993,"tag":1026,"props":9396,"children":9397},{"style":1047},[9398],{"type":998,"value":1158},{"type":993,"tag":1026,"props":9400,"children":9401},{"style":1053},[9402],{"type":998,"value":1301},{"type":993,"tag":1026,"props":9404,"children":9405},{"style":1071},[9406],{"type":998,"value":1843},{"type":993,"tag":1026,"props":9408,"children":9409},{"style":1053},[9410],{"type":998,"value":9411},"  Stack Trace:",{"type":993,"tag":1026,"props":9413,"children":9414},{"style":1071},[9415],{"type":998,"value":5490},{"type":993,"tag":1026,"props":9417,"children":9418},{"style":1041},[9419],{"type":998,"value":9420},"stack_trace",{"type":993,"tag":1026,"props":9422,"children":9423},{"style":1071},[9424],{"type":998,"value":1178},{"type":993,"tag":1026,"props":9426,"children":9427},{"style":1053},[9428],{"type":998,"value":2696},{"type":993,"tag":1026,"props":9430,"children":9431},{"class":1028,"line":411},[9432],{"type":993,"tag":1026,"props":9433,"children":9434},{"style":1041},[9435],{"type":998,"value":6149},{"type":993,"tag":1026,"props":9437,"children":9438},{"class":1028,"line":420},[9439,9443,9447,9452,9457],{"type":993,"tag":1026,"props":9440,"children":9441},{"style":1047},[9442],{"type":998,"value":3025},{"type":993,"tag":1026,"props":9444,"children":9445},{"style":1071},[9446],{"type":998,"value":8101},{"type":993,"tag":1026,"props":9448,"children":9449},{"style":1041},[9450],{"type":998,"value":9451},".format_log_entry(",{"type":993,"tag":1026,"props":9453,"children":9454},{"style":1053},[9455],{"type":998,"value":9456},"\"ERROR\"",{"type":993,"tag":1026,"props":9458,"children":9459},{"style":1041},[9460],{"type":998,"value":9461},", error_line)\n",{"type":993,"tag":1026,"props":9463,"children":9464},{"class":1028,"line":429},[9465],{"type":993,"tag":1026,"props":9466,"children":9467},{"emptyLinePlaceholder":13},[9468],{"type":998,"value":1133},{"type":993,"tag":1026,"props":9470,"children":9471},{"class":1028,"line":438},[9472],{"type":993,"tag":1026,"props":9473,"children":9474},{"style":1032},[9475],{"type":998,"value":9476},"# Usage examples\n",{"type":993,"tag":1026,"props":9478,"children":9479},{"class":1028,"line":447},[9480,9485,9489],{"type":993,"tag":1026,"props":9481,"children":9482},{"style":1041},[9483],{"type":998,"value":9484},"logger ",{"type":993,"tag":1026,"props":9486,"children":9487},{"style":1047},[9488],{"type":998,"value":1050},{"type":993,"tag":1026,"props":9490,"children":9491},{"style":1041},[9492],{"type":998,"value":9493}," LogFormatter()\n",{"type":993,"tag":1026,"props":9495,"children":9496},{"class":1028,"line":457},[9497],{"type":993,"tag":1026,"props":9498,"children":9499},{"emptyLinePlaceholder":13},[9500],{"type":998,"value":1133},{"type":993,"tag":1026,"props":9502,"children":9503},{"class":1028,"line":466},[9504,9508,9512,9517],{"type":993,"tag":1026,"props":9505,"children":9506},{"style":1071},[9507],{"type":998,"value":1209},{"type":993,"tag":1026,"props":9509,"children":9510},{"style":1041},[9511],{"type":998,"value":1226},{"type":993,"tag":1026,"props":9513,"children":9514},{"style":1053},[9515],{"type":998,"value":9516},"\"Application Log Entries:\"",{"type":993,"tag":1026,"props":9518,"children":9519},{"style":1041},[9520],{"type":998,"value":1281},{"type":993,"tag":1026,"props":9522,"children":9523},{"class":1028,"line":475},[9524,9528,9533,9538,9542,9547,9551,9556],{"type":993,"tag":1026,"props":9525,"children":9526},{"style":1071},[9527],{"type":998,"value":1209},{"type":993,"tag":1026,"props":9529,"children":9530},{"style":1041},[9531],{"type":998,"value":9532},"(logger.format_log_entry(",{"type":993,"tag":1026,"props":9534,"children":9535},{"style":1053},[9536],{"type":998,"value":9537},"\"INFO\"",{"type":993,"tag":1026,"props":9539,"children":9540},{"style":1041},[9541],{"type":998,"value":1723},{"type":993,"tag":1026,"props":9543,"children":9544},{"style":1053},[9545],{"type":998,"value":9546},"\"Application started successfully\"",{"type":993,"tag":1026,"props":9548,"children":9549},{"style":1041},[9550],{"type":998,"value":1723},{"type":993,"tag":1026,"props":9552,"children":9553},{"style":1053},[9554],{"type":998,"value":9555},"\"main\"",{"type":993,"tag":1026,"props":9557,"children":9558},{"style":1041},[9559],{"type":998,"value":8475},{"type":993,"tag":1026,"props":9561,"children":9562},{"class":1028,"line":484},[9563,9567,9571,9576,9580,9585,9589,9594,9598,9603],{"type":993,"tag":1026,"props":9564,"children":9565},{"style":1071},[9566],{"type":998,"value":1209},{"type":993,"tag":1026,"props":9568,"children":9569},{"style":1041},[9570],{"type":998,"value":9532},{"type":993,"tag":1026,"props":9572,"children":9573},{"style":1053},[9574],{"type":998,"value":9575},"\"DEBUG\"",{"type":993,"tag":1026,"props":9577,"children":9578},{"style":1041},[9579],{"type":998,"value":1723},{"type":993,"tag":1026,"props":9581,"children":9582},{"style":1053},[9583],{"type":998,"value":9584},"\"Database connection established\"",{"type":993,"tag":1026,"props":9586,"children":9587},{"style":1041},[9588],{"type":998,"value":1723},{"type":993,"tag":1026,"props":9590,"children":9591},{"style":1053},[9592],{"type":998,"value":9593},"\"db\"",{"type":993,"tag":1026,"props":9595,"children":9596},{"style":1041},[9597],{"type":998,"value":1723},{"type":993,"tag":1026,"props":9599,"children":9600},{"style":1053},[9601],{"type":998,"value":9602},"\"host=localhost:5432\"",{"type":993,"tag":1026,"props":9604,"children":9605},{"style":1041},[9606],{"type":998,"value":8475},{"type":993,"tag":1026,"props":9608,"children":9609},{"class":1028,"line":493},[9610,9614,9618,9623,9627,9632,9636,9641,9645,9650],{"type":993,"tag":1026,"props":9611,"children":9612},{"style":1071},[9613],{"type":998,"value":1209},{"type":993,"tag":1026,"props":9615,"children":9616},{"style":1041},[9617],{"type":998,"value":9532},{"type":993,"tag":1026,"props":9619,"children":9620},{"style":1053},[9621],{"type":998,"value":9622},"\"WARNING\"",{"type":993,"tag":1026,"props":9624,"children":9625},{"style":1041},[9626],{"type":998,"value":1723},{"type":993,"tag":1026,"props":9628,"children":9629},{"style":1053},[9630],{"type":998,"value":9631},"\"High memory usage detected\"",{"type":993,"tag":1026,"props":9633,"children":9634},{"style":1041},[9635],{"type":998,"value":1723},{"type":993,"tag":1026,"props":9637,"children":9638},{"style":1053},[9639],{"type":998,"value":9640},"\"monitor\"",{"type":993,"tag":1026,"props":9642,"children":9643},{"style":1041},[9644],{"type":998,"value":1723},{"type":993,"tag":1026,"props":9646,"children":9647},{"style":1053},[9648],{"type":998,"value":9649},"\"usage=87%\"",{"type":993,"tag":1026,"props":9651,"children":9652},{"style":1041},[9653],{"type":998,"value":8475},{"type":993,"tag":1026,"props":9655,"children":9656},{"class":1028,"line":502},[9657,9661,9666,9671,9675,9680,9684,9689],{"type":993,"tag":1026,"props":9658,"children":9659},{"style":1071},[9660],{"type":998,"value":1209},{"type":993,"tag":1026,"props":9662,"children":9663},{"style":1041},[9664],{"type":998,"value":9665},"(logger.format_error(",{"type":993,"tag":1026,"props":9667,"children":9668},{"style":1053},[9669],{"type":998,"value":9670},"\"Database connection failed\"",{"type":993,"tag":1026,"props":9672,"children":9673},{"style":1041},[9674],{"type":998,"value":1723},{"type":993,"tag":1026,"props":9676,"children":9677},{"style":1053},[9678],{"type":998,"value":9679},"\"DB001\"",{"type":993,"tag":1026,"props":9681,"children":9682},{"style":1041},[9683],{"type":998,"value":1723},{"type":993,"tag":1026,"props":9685,"children":9686},{"style":1053},[9687],{"type":998,"value":9688},"\"ConnectionError: timeout after 30s\"",{"type":993,"tag":1026,"props":9690,"children":9691},{"style":1041},[9692],{"type":998,"value":8475},{"type":993,"tag":1026,"props":9694,"children":9695},{"class":1028,"line":511},[9696],{"type":993,"tag":1026,"props":9697,"children":9698},{"emptyLinePlaceholder":13},[9699],{"type":998,"value":1133},{"type":993,"tag":1026,"props":9701,"children":9702},{"class":1028,"line":520},[9703],{"type":993,"tag":1026,"props":9704,"children":9705},{"style":1032},[9706],{"type":998,"value":9707},"# Configuration file generation\n",{"type":993,"tag":1026,"props":9709,"children":9710},{"class":1028,"line":530},[9711,9715,9720],{"type":993,"tag":1026,"props":9712,"children":9713},{"style":1047},[9714],{"type":998,"value":4067},{"type":993,"tag":1026,"props":9716,"children":9717},{"style":2923},[9718],{"type":998,"value":9719}," generate_config_file",{"type":993,"tag":1026,"props":9721,"children":9722},{"style":1041},[9723],{"type":998,"value":9724},"(settings):\n",{"type":993,"tag":1026,"props":9726,"children":9727},{"class":1028,"line":539},[9728],{"type":993,"tag":1026,"props":9729,"children":9730},{"style":1053},[9731],{"type":998,"value":9732},"    \"\"\"Generate formatted configuration file\"\"\"\n",{"type":993,"tag":1026,"props":9734,"children":9735},{"class":1028,"line":548},[9736],{"type":993,"tag":1026,"props":9737,"children":9738},{"style":1041},[9739],{"type":998,"value":3000},{"type":993,"tag":1026,"props":9741,"children":9742},{"class":1028,"line":557},[9743,9748,9752,9756],{"type":993,"tag":1026,"props":9744,"children":9745},{"style":1041},[9746],{"type":998,"value":9747},"    config_content ",{"type":993,"tag":1026,"props":9749,"children":9750},{"style":1047},[9751],{"type":998,"value":1050},{"type":993,"tag":1026,"props":9753,"children":9754},{"style":1047},[9755],{"type":998,"value":1158},{"type":993,"tag":1026,"props":9757,"children":9758},{"style":1053},[9759],{"type":998,"value":9760},"\"\"\"# Application Configuration\n",{"type":993,"tag":1026,"props":9762,"children":9763},{"class":1028,"line":566},[9764,9769,9773,9777,9781,9785,9790,9794],{"type":993,"tag":1026,"props":9765,"children":9766},{"style":1053},[9767],{"type":998,"value":9768},"# Generated on ",{"type":993,"tag":1026,"props":9770,"children":9771},{"style":1071},[9772],{"type":998,"value":1168},{"type":993,"tag":1026,"props":9774,"children":9775},{"style":1041},[9776],{"type":998,"value":4376},{"type":993,"tag":1026,"props":9778,"children":9779},{"style":1053},[9780],{"type":998,"value":2767},{"type":993,"tag":1026,"props":9782,"children":9783},{"style":1071},[9784],{"type":998,"value":2772},{"type":993,"tag":1026,"props":9786,"children":9787},{"style":1053},[9788],{"type":998,"value":9789}," %H:%M:%S'",{"type":993,"tag":1026,"props":9791,"children":9792},{"style":1041},[9793],{"type":998,"value":2782},{"type":993,"tag":1026,"props":9795,"children":9796},{"style":1071},[9797],{"type":998,"value":3786},{"type":993,"tag":1026,"props":9799,"children":9800},{"class":1028,"line":575},[9801],{"type":993,"tag":1026,"props":9802,"children":9803},{"emptyLinePlaceholder":13},[9804],{"type":998,"value":1133},{"type":993,"tag":1026,"props":9806,"children":9807},{"class":1028,"line":584},[9808],{"type":993,"tag":1026,"props":9809,"children":9810},{"style":1053},[9811],{"type":998,"value":4258},{"type":993,"tag":1026,"props":9813,"children":9814},{"class":1028,"line":593},[9815],{"type":993,"tag":1026,"props":9816,"children":9817},{"style":1041},[9818],{"type":998,"value":3000},{"type":993,"tag":1026,"props":9820,"children":9821},{"class":1028,"line":602},[9822,9826,9831,9835],{"type":993,"tag":1026,"props":9823,"children":9824},{"style":1047},[9825],{"type":998,"value":4451},{"type":993,"tag":1026,"props":9827,"children":9828},{"style":1041},[9829],{"type":998,"value":9830}," section, options ",{"type":993,"tag":1026,"props":9832,"children":9833},{"style":1047},[9834],{"type":998,"value":1907},{"type":993,"tag":1026,"props":9836,"children":9837},{"style":1041},[9838],{"type":998,"value":9839}," settings.items():\n",{"type":993,"tag":1026,"props":9841,"children":9842},{"class":1028,"line":611},[9843,9848,9852,9856,9860,9864,9869,9873,9877,9881],{"type":993,"tag":1026,"props":9844,"children":9845},{"style":1041},[9846],{"type":998,"value":9847},"        config_content ",{"type":993,"tag":1026,"props":9849,"children":9850},{"style":1047},[9851],{"type":998,"value":4516},{"type":993,"tag":1026,"props":9853,"children":9854},{"style":1047},[9855],{"type":998,"value":1158},{"type":993,"tag":1026,"props":9857,"children":9858},{"style":1053},[9859],{"type":998,"value":8928},{"type":993,"tag":1026,"props":9861,"children":9862},{"style":1071},[9863],{"type":998,"value":1168},{"type":993,"tag":1026,"props":9865,"children":9866},{"style":1041},[9867],{"type":998,"value":9868},"section.upper()",{"type":993,"tag":1026,"props":9870,"children":9871},{"style":1071},[9872],{"type":998,"value":1178},{"type":993,"tag":1026,"props":9874,"children":9875},{"style":1053},[9876],{"type":998,"value":3857},{"type":993,"tag":1026,"props":9878,"children":9879},{"style":1071},[9880],{"type":998,"value":1843},{"type":993,"tag":1026,"props":9882,"children":9883},{"style":1053},[9884],{"type":998,"value":2696},{"type":993,"tag":1026,"props":9886,"children":9887},{"class":1028,"line":621},[9888],{"type":993,"tag":1026,"props":9889,"children":9890},{"style":1041},[9891],{"type":998,"value":6149},{"type":993,"tag":1026,"props":9893,"children":9894},{"class":1028,"line":630},[9895,9899,9904,9908],{"type":993,"tag":1026,"props":9896,"children":9897},{"style":1047},[9898],{"type":998,"value":5331},{"type":993,"tag":1026,"props":9900,"children":9901},{"style":1041},[9902],{"type":998,"value":9903}," key, value ",{"type":993,"tag":1026,"props":9905,"children":9906},{"style":1047},[9907],{"type":998,"value":1907},{"type":993,"tag":1026,"props":9909,"children":9910},{"style":1041},[9911],{"type":998,"value":9912}," options.items():\n",{"type":993,"tag":1026,"props":9914,"children":9915},{"class":1028,"line":639},[9916],{"type":993,"tag":1026,"props":9917,"children":9918},{"style":1032},[9919],{"type":998,"value":9920},"            # Format different value types appropriately\n",{"type":993,"tag":1026,"props":9922,"children":9923},{"class":1028,"line":648},[9924,9928,9932,9936,9941],{"type":993,"tag":1026,"props":9925,"children":9926},{"style":1047},[9927],{"type":998,"value":5353},{"type":993,"tag":1026,"props":9929,"children":9930},{"style":1071},[9931],{"type":998,"value":5948},{"type":993,"tag":1026,"props":9933,"children":9934},{"style":1041},[9935],{"type":998,"value":7080},{"type":993,"tag":1026,"props":9937,"children":9938},{"style":1071},[9939],{"type":998,"value":9940},"bool",{"type":993,"tag":1026,"props":9942,"children":9943},{"style":1041},[9944],{"type":998,"value":4091},{"type":993,"tag":1026,"props":9946,"children":9947},{"class":1028,"line":657},[9948,9953,9957,9962],{"type":993,"tag":1026,"props":9949,"children":9950},{"style":1041},[9951],{"type":998,"value":9952},"                formatted_value ",{"type":993,"tag":1026,"props":9954,"children":9955},{"style":1047},[9956],{"type":998,"value":1050},{"type":993,"tag":1026,"props":9958,"children":9959},{"style":1071},[9960],{"type":998,"value":9961}," str",{"type":993,"tag":1026,"props":9963,"children":9964},{"style":1041},[9965],{"type":998,"value":9966},"(value).lower()\n",{"type":993,"tag":1026,"props":9968,"children":9969},{"class":1028,"line":666},[9970,9975,9979,9983,9987],{"type":993,"tag":1026,"props":9971,"children":9972},{"style":1047},[9973],{"type":998,"value":9974},"            elif",{"type":993,"tag":1026,"props":9976,"children":9977},{"style":1071},[9978],{"type":998,"value":5948},{"type":993,"tag":1026,"props":9980,"children":9981},{"style":1041},[9982],{"type":998,"value":7080},{"type":993,"tag":1026,"props":9984,"children":9985},{"style":1071},[9986],{"type":998,"value":5396},{"type":993,"tag":1026,"props":9988,"children":9989},{"style":1041},[9990],{"type":998,"value":4091},{"type":993,"tag":1026,"props":9992,"children":9993},{"class":1028,"line":675},[9994,9998,10002,10006,10011,10015,10019,10023],{"type":993,"tag":1026,"props":9995,"children":9996},{"style":1041},[9997],{"type":998,"value":9952},{"type":993,"tag":1026,"props":9999,"children":10000},{"style":1047},[10001],{"type":998,"value":1050},{"type":993,"tag":1026,"props":10003,"children":10004},{"style":1047},[10005],{"type":998,"value":1158},{"type":993,"tag":1026,"props":10007,"children":10008},{"style":1053},[10009],{"type":998,"value":10010},"'\"",{"type":993,"tag":1026,"props":10012,"children":10013},{"style":1071},[10014],{"type":998,"value":1168},{"type":993,"tag":1026,"props":10016,"children":10017},{"style":1041},[10018],{"type":998,"value":7141},{"type":993,"tag":1026,"props":10020,"children":10021},{"style":1071},[10022],{"type":998,"value":1178},{"type":993,"tag":1026,"props":10024,"children":10025},{"style":1053},[10026],{"type":998,"value":10027},"\"'\n",{"type":993,"tag":1026,"props":10029,"children":10030},{"class":1028,"line":685},[10031,10035],{"type":993,"tag":1026,"props":10032,"children":10033},{"style":1047},[10034],{"type":998,"value":6087},{"type":993,"tag":1026,"props":10036,"children":10037},{"style":1041},[10038],{"type":998,"value":2931},{"type":993,"tag":1026,"props":10040,"children":10041},{"class":1028,"line":694},[10042,10046,10050,10054],{"type":993,"tag":1026,"props":10043,"children":10044},{"style":1041},[10045],{"type":998,"value":9952},{"type":993,"tag":1026,"props":10047,"children":10048},{"style":1047},[10049],{"type":998,"value":1050},{"type":993,"tag":1026,"props":10051,"children":10052},{"style":1071},[10053],{"type":998,"value":9961},{"type":993,"tag":1026,"props":10055,"children":10056},{"style":1041},[10057],{"type":998,"value":7110},{"type":993,"tag":1026,"props":10059,"children":10060},{"class":1028,"line":703},[10061],{"type":993,"tag":1026,"props":10062,"children":10063},{"style":1041},[10064],{"type":998,"value":10065},"            \n",{"type":993,"tag":1026,"props":10067,"children":10068},{"class":1028,"line":712},[10069,10074,10078,10082,10086,10090,10094,10098,10103,10107,10112,10116],{"type":993,"tag":1026,"props":10070,"children":10071},{"style":1041},[10072],{"type":998,"value":10073},"            config_content ",{"type":993,"tag":1026,"props":10075,"children":10076},{"style":1047},[10077],{"type":998,"value":4516},{"type":993,"tag":1026,"props":10079,"children":10080},{"style":1047},[10081],{"type":998,"value":1158},{"type":993,"tag":1026,"props":10083,"children":10084},{"style":1053},[10085],{"type":998,"value":1301},{"type":993,"tag":1026,"props":10087,"children":10088},{"style":1071},[10089],{"type":998,"value":1168},{"type":993,"tag":1026,"props":10091,"children":10092},{"style":1041},[10093],{"type":998,"value":8378},{"type":993,"tag":1026,"props":10095,"children":10096},{"style":1071},[10097],{"type":998,"value":1178},{"type":993,"tag":1026,"props":10099,"children":10100},{"style":1053},[10101],{"type":998,"value":10102}," = ",{"type":993,"tag":1026,"props":10104,"children":10105},{"style":1071},[10106],{"type":998,"value":1168},{"type":993,"tag":1026,"props":10108,"children":10109},{"style":1041},[10110],{"type":998,"value":10111},"formatted_value",{"type":993,"tag":1026,"props":10113,"children":10114},{"style":1071},[10115],{"type":998,"value":5500},{"type":993,"tag":1026,"props":10117,"children":10118},{"style":1053},[10119],{"type":998,"value":2696},{"type":993,"tag":1026,"props":10121,"children":10122},{"class":1028,"line":721},[10123],{"type":993,"tag":1026,"props":10124,"children":10125},{"style":1041},[10126],{"type":998,"value":6149},{"type":993,"tag":1026,"props":10128,"children":10129},{"class":1028,"line":730},[10130,10134,10138,10142,10146],{"type":993,"tag":1026,"props":10131,"children":10132},{"style":1041},[10133],{"type":998,"value":9847},{"type":993,"tag":1026,"props":10135,"children":10136},{"style":1047},[10137],{"type":998,"value":4516},{"type":993,"tag":1026,"props":10139,"children":10140},{"style":1053},[10141],{"type":998,"value":5542},{"type":993,"tag":1026,"props":10143,"children":10144},{"style":1071},[10145],{"type":998,"value":1843},{"type":993,"tag":1026,"props":10147,"children":10148},{"style":1053},[10149],{"type":998,"value":2696},{"type":993,"tag":1026,"props":10151,"children":10152},{"class":1028,"line":739},[10153],{"type":993,"tag":1026,"props":10154,"children":10155},{"style":1041},[10156],{"type":998,"value":3000},{"type":993,"tag":1026,"props":10158,"children":10159},{"class":1028,"line":749},[10160,10164],{"type":993,"tag":1026,"props":10161,"children":10162},{"style":1047},[10163],{"type":998,"value":4810},{"type":993,"tag":1026,"props":10165,"children":10166},{"style":1041},[10167],{"type":998,"value":10168}," config_content\n",{"type":993,"tag":1026,"props":10170,"children":10171},{"class":1028,"line":758},[10172],{"type":993,"tag":1026,"props":10173,"children":10174},{"emptyLinePlaceholder":13},[10175],{"type":998,"value":1133},{"type":993,"tag":1026,"props":10177,"children":10178},{"class":1028,"line":767},[10179],{"type":993,"tag":1026,"props":10180,"children":10181},{"style":1032},[10182],{"type":998,"value":10183},"# Configuration example\n",{"type":993,"tag":1026,"props":10185,"children":10187},{"class":1028,"line":10186},84,[10188,10193,10197],{"type":993,"tag":1026,"props":10189,"children":10190},{"style":1041},[10191],{"type":998,"value":10192},"app_settings ",{"type":993,"tag":1026,"props":10194,"children":10195},{"style":1047},[10196],{"type":998,"value":1050},{"type":993,"tag":1026,"props":10198,"children":10199},{"style":1041},[10200],{"type":998,"value":4847},{"type":993,"tag":1026,"props":10202,"children":10203},{"class":1028,"line":776},[10204,10209],{"type":993,"tag":1026,"props":10205,"children":10206},{"style":1053},[10207],{"type":998,"value":10208},"    \"database\"",{"type":993,"tag":1026,"props":10210,"children":10211},{"style":1041},[10212],{"type":998,"value":10213},": {\n",{"type":993,"tag":1026,"props":10215,"children":10216},{"class":1028,"line":785},[10217,10222,10226,10231],{"type":993,"tag":1026,"props":10218,"children":10219},{"style":1053},[10220],{"type":998,"value":10221},"        \"host\"",{"type":993,"tag":1026,"props":10223,"children":10224},{"style":1041},[10225],{"type":998,"value":2168},{"type":993,"tag":1026,"props":10227,"children":10228},{"style":1053},[10229],{"type":998,"value":10230},"\"localhost\"",{"type":993,"tag":1026,"props":10232,"children":10233},{"style":1041},[10234],{"type":998,"value":4869},{"type":993,"tag":1026,"props":10236,"children":10237},{"class":1028,"line":794},[10238,10243,10247,10252],{"type":993,"tag":1026,"props":10239,"children":10240},{"style":1053},[10241],{"type":998,"value":10242},"        \"port\"",{"type":993,"tag":1026,"props":10244,"children":10245},{"style":1041},[10246],{"type":998,"value":2168},{"type":993,"tag":1026,"props":10248,"children":10249},{"style":1071},[10250],{"type":998,"value":10251},"5432",{"type":993,"tag":1026,"props":10253,"children":10254},{"style":1041},[10255],{"type":998,"value":4869},{"type":993,"tag":1026,"props":10257,"children":10258},{"class":1028,"line":803},[10259,10264,10268,10273],{"type":993,"tag":1026,"props":10260,"children":10261},{"style":1053},[10262],{"type":998,"value":10263},"        \"name\"",{"type":993,"tag":1026,"props":10265,"children":10266},{"style":1041},[10267],{"type":998,"value":2168},{"type":993,"tag":1026,"props":10269,"children":10270},{"style":1053},[10271],{"type":998,"value":10272},"\"myapp\"",{"type":993,"tag":1026,"props":10274,"children":10275},{"style":1041},[10276],{"type":998,"value":4869},{"type":993,"tag":1026,"props":10278,"children":10279},{"class":1028,"line":812},[10280,10285,10289],{"type":993,"tag":1026,"props":10281,"children":10282},{"style":1053},[10283],{"type":998,"value":10284},"        \"ssl_enabled\"",{"type":993,"tag":1026,"props":10286,"children":10287},{"style":1041},[10288],{"type":998,"value":2168},{"type":993,"tag":1026,"props":10290,"children":10291},{"style":1071},[10292],{"type":998,"value":10293},"True\n",{"type":993,"tag":1026,"props":10295,"children":10296},{"class":1028,"line":822},[10297],{"type":993,"tag":1026,"props":10298,"children":10299},{"style":1041},[10300],{"type":998,"value":10301},"    },\n",{"type":993,"tag":1026,"props":10303,"children":10304},{"class":1028,"line":831},[10305,10310],{"type":993,"tag":1026,"props":10306,"children":10307},{"style":1053},[10308],{"type":998,"value":10309},"    \"security\"",{"type":993,"tag":1026,"props":10311,"children":10312},{"style":1041},[10313],{"type":998,"value":10213},{"type":993,"tag":1026,"props":10315,"children":10316},{"class":1028,"line":840},[10317,10322,10326,10330],{"type":993,"tag":1026,"props":10318,"children":10319},{"style":1053},[10320],{"type":998,"value":10321},"        \"max_login_attempts\"",{"type":993,"tag":1026,"props":10323,"children":10324},{"style":1041},[10325],{"type":998,"value":2168},{"type":993,"tag":1026,"props":10327,"children":10328},{"style":1071},[10329],{"type":998,"value":5071},{"type":993,"tag":1026,"props":10331,"children":10332},{"style":1041},[10333],{"type":998,"value":4869},{"type":993,"tag":1026,"props":10335,"children":10336},{"class":1028,"line":849},[10337,10342,10346,10351],{"type":993,"tag":1026,"props":10338,"children":10339},{"style":1053},[10340],{"type":998,"value":10341},"        \"session_timeout\"",{"type":993,"tag":1026,"props":10343,"children":10344},{"style":1041},[10345],{"type":998,"value":2168},{"type":993,"tag":1026,"props":10347,"children":10348},{"style":1071},[10349],{"type":998,"value":10350},"1800",{"type":993,"tag":1026,"props":10352,"children":10353},{"style":1041},[10354],{"type":998,"value":4869},{"type":993,"tag":1026,"props":10356,"children":10357},{"class":1028,"line":858},[10358,10363,10367],{"type":993,"tag":1026,"props":10359,"children":10360},{"style":1053},[10361],{"type":998,"value":10362},"        \"encryption_enabled\"",{"type":993,"tag":1026,"props":10364,"children":10365},{"style":1041},[10366],{"type":998,"value":2168},{"type":993,"tag":1026,"props":10368,"children":10369},{"style":1071},[10370],{"type":998,"value":10293},{"type":993,"tag":1026,"props":10372,"children":10373},{"class":1028,"line":868},[10374],{"type":993,"tag":1026,"props":10375,"children":10376},{"style":1041},[10377],{"type":998,"value":10301},{"type":993,"tag":1026,"props":10379,"children":10380},{"class":1028,"line":877},[10381,10386],{"type":993,"tag":1026,"props":10382,"children":10383},{"style":1053},[10384],{"type":998,"value":10385},"    \"logging\"",{"type":993,"tag":1026,"props":10387,"children":10388},{"style":1041},[10389],{"type":998,"value":10213},{"type":993,"tag":1026,"props":10391,"children":10392},{"class":1028,"line":886},[10393,10398,10402,10406],{"type":993,"tag":1026,"props":10394,"children":10395},{"style":1053},[10396],{"type":998,"value":10397},"        \"level\"",{"type":993,"tag":1026,"props":10399,"children":10400},{"style":1041},[10401],{"type":998,"value":2168},{"type":993,"tag":1026,"props":10403,"children":10404},{"style":1053},[10405],{"type":998,"value":9537},{"type":993,"tag":1026,"props":10407,"children":10408},{"style":1041},[10409],{"type":998,"value":4869},{"type":993,"tag":1026,"props":10411,"children":10412},{"class":1028,"line":895},[10413,10418,10422,10427],{"type":993,"tag":1026,"props":10414,"children":10415},{"style":1053},[10416],{"type":998,"value":10417},"        \"file_path\"",{"type":993,"tag":1026,"props":10419,"children":10420},{"style":1041},[10421],{"type":998,"value":2168},{"type":993,"tag":1026,"props":10423,"children":10424},{"style":1053},[10425],{"type":998,"value":10426},"\"/var/log/myapp.log\"",{"type":993,"tag":1026,"props":10428,"children":10429},{"style":1041},[10430],{"type":998,"value":4869},{"type":993,"tag":1026,"props":10432,"children":10433},{"class":1028,"line":905},[10434,10439,10443],{"type":993,"tag":1026,"props":10435,"children":10436},{"style":1053},[10437],{"type":998,"value":10438},"        \"max_file_size\"",{"type":993,"tag":1026,"props":10440,"children":10441},{"style":1041},[10442],{"type":998,"value":2168},{"type":993,"tag":1026,"props":10444,"children":10445},{"style":1053},[10446],{"type":998,"value":10447},"\"10MB\"\n",{"type":993,"tag":1026,"props":10449,"children":10450},{"class":1028,"line":914},[10451],{"type":993,"tag":1026,"props":10452,"children":10453},{"style":1041},[10454],{"type":998,"value":10455},"    }\n",{"type":993,"tag":1026,"props":10457,"children":10458},{"class":1028,"line":923},[10459],{"type":993,"tag":1026,"props":10460,"children":10461},{"style":1041},[10462],{"type":998,"value":3786},{"type":993,"tag":1026,"props":10464,"children":10465},{"class":1028,"line":932},[10466],{"type":993,"tag":1026,"props":10467,"children":10468},{"emptyLinePlaceholder":13},[10469],{"type":998,"value":1133},{"type":993,"tag":1026,"props":10471,"children":10472},{"class":1028,"line":941},[10473,10478,10482],{"type":993,"tag":1026,"props":10474,"children":10475},{"style":1041},[10476],{"type":998,"value":10477},"config_file ",{"type":993,"tag":1026,"props":10479,"children":10480},{"style":1047},[10481],{"type":998,"value":1050},{"type":993,"tag":1026,"props":10483,"children":10484},{"style":1041},[10485],{"type":998,"value":10486}," generate_config_file(app_settings)\n",{"type":993,"tag":1026,"props":10488,"children":10489},{"class":1028,"line":949},[10490,10494,10498,10503],{"type":993,"tag":1026,"props":10491,"children":10492},{"style":1071},[10493],{"type":998,"value":1209},{"type":993,"tag":1026,"props":10495,"children":10496},{"style":1041},[10497],{"type":998,"value":1226},{"type":993,"tag":1026,"props":10499,"children":10500},{"style":1053},[10501],{"type":998,"value":10502},"\"Generated Configuration File:\"",{"type":993,"tag":1026,"props":10504,"children":10505},{"style":1041},[10506],{"type":998,"value":1281},{"type":993,"tag":1026,"props":10508,"children":10509},{"class":1028,"line":957},[10510,10514],{"type":993,"tag":1026,"props":10511,"children":10512},{"style":1071},[10513],{"type":998,"value":1209},{"type":993,"tag":1026,"props":10515,"children":10516},{"style":1041},[10517],{"type":998,"value":10518},"(config_file)\n",{"type":993,"tag":2131,"props":10520,"children":10524},{"emoji":10521,"title":10522,"type":10523},"✅","Best Practices","success",[10525,10533,10556,10564,10587,10595,10618,10626],{"type":993,"tag":1001,"props":10526,"children":10527},{},[10528],{"type":993,"tag":2141,"props":10529,"children":10530},{},[10531],{"type":998,"value":10532},"Text Formatting Guidelines:",{"type":993,"tag":2155,"props":10534,"children":10535},{},[10536,10541,10546,10551],{"type":993,"tag":2159,"props":10537,"children":10538},{},[10539],{"type":998,"value":10540},"Use f-strings for modern Python code (3.6+)",{"type":993,"tag":2159,"props":10542,"children":10543},{},[10544],{"type":998,"value":10545},"Choose appropriate precision for numeric displays",{"type":993,"tag":2159,"props":10547,"children":10548},{},[10549],{"type":998,"value":10550},"Align data consistently in tables and reports",{"type":993,"tag":2159,"props":10552,"children":10553},{},[10554],{"type":998,"value":10555},"Handle edge cases with safe formatting functions",{"type":993,"tag":1001,"props":10557,"children":10558},{},[10559],{"type":993,"tag":2141,"props":10560,"children":10561},{},[10562],{"type":998,"value":10563},"Performance Considerations:",{"type":993,"tag":2155,"props":10565,"children":10566},{},[10567,10572,10577,10582],{"type":993,"tag":2159,"props":10568,"children":10569},{},[10570],{"type":998,"value":10571},"F-strings are generally faster than other formatting methods",{"type":993,"tag":2159,"props":10573,"children":10574},{},[10575],{"type":998,"value":10576},"Avoid repeated string concatenation in loops",{"type":993,"tag":2159,"props":10578,"children":10579},{},[10580],{"type":998,"value":10581},"Use join() for combining multiple strings",{"type":993,"tag":2159,"props":10583,"children":10584},{},[10585],{"type":998,"value":10586},"Cache formatted templates when possible",{"type":993,"tag":1001,"props":10588,"children":10589},{},[10590],{"type":993,"tag":2141,"props":10591,"children":10592},{},[10593],{"type":998,"value":10594},"Readability Tips:",{"type":993,"tag":2155,"props":10596,"children":10597},{},[10598,10603,10608,10613],{"type":993,"tag":2159,"props":10599,"children":10600},{},[10601],{"type":998,"value":10602},"Use meaningful field widths for alignment",{"type":993,"tag":2159,"props":10604,"children":10605},{},[10606],{"type":998,"value":10607},"Include appropriate thousands separators for large numbers",{"type":993,"tag":2159,"props":10609,"children":10610},{},[10611],{"type":998,"value":10612},"Format dates and times consistently throughout applications",{"type":993,"tag":2159,"props":10614,"children":10615},{},[10616],{"type":998,"value":10617},"Use color coding or symbols for status indicators",{"type":993,"tag":1001,"props":10619,"children":10620},{},[10621],{"type":993,"tag":2141,"props":10622,"children":10623},{},[10624],{"type":998,"value":10625},"Professional Standards:",{"type":993,"tag":2155,"props":10627,"children":10628},{},[10629,10634,10639,10644],{"type":993,"tag":2159,"props":10630,"children":10631},{},[10632],{"type":998,"value":10633},"Follow consistent formatting patterns across applications",{"type":993,"tag":2159,"props":10635,"children":10636},{},[10637],{"type":998,"value":10638},"Document formatting specifications for team projects",{"type":993,"tag":2159,"props":10640,"children":10641},{},[10642],{"type":998,"value":10643},"Validate user input before formatting",{"type":993,"tag":2159,"props":10645,"children":10646},{},[10647],{"type":998,"value":10648},"Test formatting with edge cases and various data types",{"type":993,"tag":10650,"props":10651,"children":10653},"content-exercise",{":widget-view":10652,"category":6,"id":802},"true",[],{"type":993,"tag":10655,"props":10656,"children":10659},"exercise",{"hint":10657,"prompt":10658},"Use f-string formatting with alignment specifiers like {value:\u003C10} for left align, {value:>10} for right align, and {value:.2f} for 2 decimal places","Create a simple grade report formatter that displays student information in a neat, aligned table format. Use f-strings to format names, grades, and calculate averages with proper alignment and decimal places.",[10660],{"type":993,"tag":1016,"props":10661,"children":10663},{"className":1018,"code":10662,"language":6,"meta":8,"style":8},"def format_grade_report(students):\n    # TODO: Create header with proper alignment\n    # TODO: Format each student's data in aligned columns\n    # TODO: Calculate and display class average\n    # TODO: Use f-strings for formatting\n    pass\n\ndef format_student_row(name, math_grade, english_grade, science_grade):\n    # TODO: Calculate student average\n    # TODO: Format row with proper alignment\n    # TODO: Return formatted string\n    pass\n\n# TODO: Test your formatting\nstudents = [\n    {\"name\": \"Alice Johnson\", \"math\": 95, \"english\": 87, \"science\": 92},\n    {\"name\": \"Bob Smith\", \"math\": 78, \"english\": 82, \"science\": 85},\n    {\"name\": \"Carol Davis\", \"math\": 88, \"english\": 91, \"science\": 89},\n    {\"name\": \"David Wilson\", \"math\": 92, \"english\": 85, \"science\": 88}\n]\n\nprint(\"Student Grade Report\")\nprint(\"=\" * 60)\nformat_grade_report(students)\n",[10664],{"type":993,"tag":1022,"props":10665,"children":10666},{"__ignoreMap":8},[10667,10684,10702,10718,10734,10750,10758,10765,10782,10798,10814,10830,10837,10844,10861,10876,10950,11022,11094,11166,11173,11180,11200,11228],{"type":993,"tag":1026,"props":10668,"children":10669},{"class":1028,"line":12},[10670,10674,10679],{"type":993,"tag":1026,"props":10671,"children":10672},{"style":1047},[10673],{"type":998,"value":4067},{"type":993,"tag":1026,"props":10675,"children":10676},{"style":2923},[10677],{"type":998,"value":10678}," format_grade_report",{"type":993,"tag":1026,"props":10680,"children":10681},{"style":1041},[10682],{"type":998,"value":10683},"(students):\n",{"type":993,"tag":1026,"props":10685,"children":10686},{"class":1028,"line":27},[10687,10692,10697],{"type":993,"tag":1026,"props":10688,"children":10689},{"style":1032},[10690],{"type":998,"value":10691},"    # ",{"type":993,"tag":1026,"props":10693,"children":10694},{"style":1047},[10695],{"type":998,"value":10696},"TODO",{"type":993,"tag":1026,"props":10698,"children":10699},{"style":1032},[10700],{"type":998,"value":10701},": Create header with proper alignment\n",{"type":993,"tag":1026,"props":10703,"children":10704},{"class":1028,"line":36},[10705,10709,10713],{"type":993,"tag":1026,"props":10706,"children":10707},{"style":1032},[10708],{"type":998,"value":10691},{"type":993,"tag":1026,"props":10710,"children":10711},{"style":1047},[10712],{"type":998,"value":10696},{"type":993,"tag":1026,"props":10714,"children":10715},{"style":1032},[10716],{"type":998,"value":10717},": Format each student's data in aligned columns\n",{"type":993,"tag":1026,"props":10719,"children":10720},{"class":1028,"line":45},[10721,10725,10729],{"type":993,"tag":1026,"props":10722,"children":10723},{"style":1032},[10724],{"type":998,"value":10691},{"type":993,"tag":1026,"props":10726,"children":10727},{"style":1047},[10728],{"type":998,"value":10696},{"type":993,"tag":1026,"props":10730,"children":10731},{"style":1032},[10732],{"type":998,"value":10733},": Calculate and display class average\n",{"type":993,"tag":1026,"props":10735,"children":10736},{"class":1028,"line":54},[10737,10741,10745],{"type":993,"tag":1026,"props":10738,"children":10739},{"style":1032},[10740],{"type":998,"value":10691},{"type":993,"tag":1026,"props":10742,"children":10743},{"style":1047},[10744],{"type":998,"value":10696},{"type":993,"tag":1026,"props":10746,"children":10747},{"style":1032},[10748],{"type":998,"value":10749},": Use f-strings for formatting\n",{"type":993,"tag":1026,"props":10751,"children":10752},{"class":1028,"line":63},[10753],{"type":993,"tag":1026,"props":10754,"children":10755},{"style":1047},[10756],{"type":998,"value":10757},"    pass\n",{"type":993,"tag":1026,"props":10759,"children":10760},{"class":1028,"line":72},[10761],{"type":993,"tag":1026,"props":10762,"children":10763},{"emptyLinePlaceholder":13},[10764],{"type":998,"value":1133},{"type":993,"tag":1026,"props":10766,"children":10767},{"class":1028,"line":81},[10768,10772,10777],{"type":993,"tag":1026,"props":10769,"children":10770},{"style":1047},[10771],{"type":998,"value":4067},{"type":993,"tag":1026,"props":10773,"children":10774},{"style":2923},[10775],{"type":998,"value":10776}," format_student_row",{"type":993,"tag":1026,"props":10778,"children":10779},{"style":1041},[10780],{"type":998,"value":10781},"(name, math_grade, english_grade, science_grade):\n",{"type":993,"tag":1026,"props":10783,"children":10784},{"class":1028,"line":91},[10785,10789,10793],{"type":993,"tag":1026,"props":10786,"children":10787},{"style":1032},[10788],{"type":998,"value":10691},{"type":993,"tag":1026,"props":10790,"children":10791},{"style":1047},[10792],{"type":998,"value":10696},{"type":993,"tag":1026,"props":10794,"children":10795},{"style":1032},[10796],{"type":998,"value":10797},": Calculate student average\n",{"type":993,"tag":1026,"props":10799,"children":10800},{"class":1028,"line":100},[10801,10805,10809],{"type":993,"tag":1026,"props":10802,"children":10803},{"style":1032},[10804],{"type":998,"value":10691},{"type":993,"tag":1026,"props":10806,"children":10807},{"style":1047},[10808],{"type":998,"value":10696},{"type":993,"tag":1026,"props":10810,"children":10811},{"style":1032},[10812],{"type":998,"value":10813},": Format row with proper alignment\n",{"type":993,"tag":1026,"props":10815,"children":10816},{"class":1028,"line":109},[10817,10821,10825],{"type":993,"tag":1026,"props":10818,"children":10819},{"style":1032},[10820],{"type":998,"value":10691},{"type":993,"tag":1026,"props":10822,"children":10823},{"style":1047},[10824],{"type":998,"value":10696},{"type":993,"tag":1026,"props":10826,"children":10827},{"style":1032},[10828],{"type":998,"value":10829},": Return formatted string\n",{"type":993,"tag":1026,"props":10831,"children":10832},{"class":1028,"line":118},[10833],{"type":993,"tag":1026,"props":10834,"children":10835},{"style":1047},[10836],{"type":998,"value":10757},{"type":993,"tag":1026,"props":10838,"children":10839},{"class":1028,"line":127},[10840],{"type":993,"tag":1026,"props":10841,"children":10842},{"emptyLinePlaceholder":13},[10843],{"type":998,"value":1133},{"type":993,"tag":1026,"props":10845,"children":10846},{"class":1028,"line":136},[10847,10852,10856],{"type":993,"tag":1026,"props":10848,"children":10849},{"style":1032},[10850],{"type":998,"value":10851},"# ",{"type":993,"tag":1026,"props":10853,"children":10854},{"style":1047},[10855],{"type":998,"value":10696},{"type":993,"tag":1026,"props":10857,"children":10858},{"style":1032},[10859],{"type":998,"value":10860},": Test your formatting\n",{"type":993,"tag":1026,"props":10862,"children":10863},{"class":1028,"line":146},[10864,10868,10872],{"type":993,"tag":1026,"props":10865,"children":10866},{"style":1041},[10867],{"type":998,"value":3080},{"type":993,"tag":1026,"props":10869,"children":10870},{"style":1047},[10871],{"type":998,"value":1050},{"type":993,"tag":1026,"props":10873,"children":10874},{"style":1041},[10875],{"type":998,"value":1705},{"type":993,"tag":1026,"props":10877,"children":10878},{"class":1028,"line":155},[10879,10883,10887,10891,10895,10899,10904,10908,10912,10916,10921,10925,10929,10933,10938,10942,10946],{"type":993,"tag":1026,"props":10880,"children":10881},{"style":1041},[10882],{"type":998,"value":4924},{"type":993,"tag":1026,"props":10884,"children":10885},{"style":1053},[10886],{"type":998,"value":4929},{"type":993,"tag":1026,"props":10888,"children":10889},{"style":1041},[10890],{"type":998,"value":2168},{"type":993,"tag":1026,"props":10892,"children":10893},{"style":1053},[10894],{"type":998,"value":4864},{"type":993,"tag":1026,"props":10896,"children":10897},{"style":1041},[10898],{"type":998,"value":1723},{"type":993,"tag":1026,"props":10900,"children":10901},{"style":1053},[10902],{"type":998,"value":10903},"\"math\"",{"type":993,"tag":1026,"props":10905,"children":10906},{"style":1041},[10907],{"type":998,"value":2168},{"type":993,"tag":1026,"props":10909,"children":10910},{"style":1071},[10911],{"type":998,"value":3111},{"type":993,"tag":1026,"props":10913,"children":10914},{"style":1041},[10915],{"type":998,"value":1723},{"type":993,"tag":1026,"props":10917,"children":10918},{"style":1053},[10919],{"type":998,"value":10920},"\"english\"",{"type":993,"tag":1026,"props":10922,"children":10923},{"style":1041},[10924],{"type":998,"value":2168},{"type":993,"tag":1026,"props":10926,"children":10927},{"style":1071},[10928],{"type":998,"value":3120},{"type":993,"tag":1026,"props":10930,"children":10931},{"style":1041},[10932],{"type":998,"value":1723},{"type":993,"tag":1026,"props":10934,"children":10935},{"style":1053},[10936],{"type":998,"value":10937},"\"science\"",{"type":993,"tag":1026,"props":10939,"children":10940},{"style":1041},[10941],{"type":998,"value":2168},{"type":993,"tag":1026,"props":10943,"children":10944},{"style":1071},[10945],{"type":998,"value":3129},{"type":993,"tag":1026,"props":10947,"children":10948},{"style":1041},[10949],{"type":998,"value":4977},{"type":993,"tag":1026,"props":10951,"children":10952},{"class":1028,"line":164},[10953,10957,10961,10965,10970,10974,10978,10982,10986,10990,10994,10998,11002,11006,11010,11014,11018],{"type":993,"tag":1026,"props":10954,"children":10955},{"style":1041},[10956],{"type":998,"value":4924},{"type":993,"tag":1026,"props":10958,"children":10959},{"style":1053},[10960],{"type":998,"value":4929},{"type":993,"tag":1026,"props":10962,"children":10963},{"style":1041},[10964],{"type":998,"value":2168},{"type":993,"tag":1026,"props":10966,"children":10967},{"style":1053},[10968],{"type":998,"value":10969},"\"Bob Smith\"",{"type":993,"tag":1026,"props":10971,"children":10972},{"style":1041},[10973],{"type":998,"value":1723},{"type":993,"tag":1026,"props":10975,"children":10976},{"style":1053},[10977],{"type":998,"value":10903},{"type":993,"tag":1026,"props":10979,"children":10980},{"style":1041},[10981],{"type":998,"value":2168},{"type":993,"tag":1026,"props":10983,"children":10984},{"style":1071},[10985],{"type":998,"value":3164},{"type":993,"tag":1026,"props":10987,"children":10988},{"style":1041},[10989],{"type":998,"value":1723},{"type":993,"tag":1026,"props":10991,"children":10992},{"style":1053},[10993],{"type":998,"value":10920},{"type":993,"tag":1026,"props":10995,"children":10996},{"style":1041},[10997],{"type":998,"value":2168},{"type":993,"tag":1026,"props":10999,"children":11000},{"style":1071},[11001],{"type":998,"value":3182},{"type":993,"tag":1026,"props":11003,"children":11004},{"style":1041},[11005],{"type":998,"value":1723},{"type":993,"tag":1026,"props":11007,"children":11008},{"style":1053},[11009],{"type":998,"value":10937},{"type":993,"tag":1026,"props":11011,"children":11012},{"style":1041},[11013],{"type":998,"value":2168},{"type":993,"tag":1026,"props":11015,"children":11016},{"style":1071},[11017],{"type":998,"value":3173},{"type":993,"tag":1026,"props":11019,"children":11020},{"style":1041},[11021],{"type":998,"value":4977},{"type":993,"tag":1026,"props":11023,"children":11024},{"class":1028,"line":173},[11025,11029,11033,11037,11042,11046,11050,11054,11058,11062,11066,11070,11074,11078,11082,11086,11090],{"type":993,"tag":1026,"props":11026,"children":11027},{"style":1041},[11028],{"type":998,"value":4924},{"type":993,"tag":1026,"props":11030,"children":11031},{"style":1053},[11032],{"type":998,"value":4929},{"type":993,"tag":1026,"props":11034,"children":11035},{"style":1041},[11036],{"type":998,"value":2168},{"type":993,"tag":1026,"props":11038,"children":11039},{"style":1053},[11040],{"type":998,"value":11041},"\"Carol Davis\"",{"type":993,"tag":1026,"props":11043,"children":11044},{"style":1041},[11045],{"type":998,"value":1723},{"type":993,"tag":1026,"props":11047,"children":11048},{"style":1053},[11049],{"type":998,"value":10903},{"type":993,"tag":1026,"props":11051,"children":11052},{"style":1041},[11053],{"type":998,"value":2168},{"type":993,"tag":1026,"props":11055,"children":11056},{"style":1071},[11057],{"type":998,"value":3138},{"type":993,"tag":1026,"props":11059,"children":11060},{"style":1041},[11061],{"type":998,"value":1723},{"type":993,"tag":1026,"props":11063,"children":11064},{"style":1053},[11065],{"type":998,"value":10920},{"type":993,"tag":1026,"props":11067,"children":11068},{"style":1041},[11069],{"type":998,"value":2168},{"type":993,"tag":1026,"props":11071,"children":11072},{"style":1071},[11073],{"type":998,"value":3216},{"type":993,"tag":1026,"props":11075,"children":11076},{"style":1041},[11077],{"type":998,"value":1723},{"type":993,"tag":1026,"props":11079,"children":11080},{"style":1053},[11081],{"type":998,"value":10937},{"type":993,"tag":1026,"props":11083,"children":11084},{"style":1041},[11085],{"type":998,"value":2168},{"type":993,"tag":1026,"props":11087,"children":11088},{"style":1071},[11089],{"type":998,"value":3234},{"type":993,"tag":1026,"props":11091,"children":11092},{"style":1041},[11093],{"type":998,"value":4977},{"type":993,"tag":1026,"props":11095,"children":11096},{"class":1028,"line":182},[11097,11101,11105,11109,11114,11118,11122,11126,11130,11134,11138,11142,11146,11150,11154,11158,11162],{"type":993,"tag":1026,"props":11098,"children":11099},{"style":1041},[11100],{"type":998,"value":4924},{"type":993,"tag":1026,"props":11102,"children":11103},{"style":1053},[11104],{"type":998,"value":4929},{"type":993,"tag":1026,"props":11106,"children":11107},{"style":1041},[11108],{"type":998,"value":2168},{"type":993,"tag":1026,"props":11110,"children":11111},{"style":1053},[11112],{"type":998,"value":11113},"\"David Wilson\"",{"type":993,"tag":1026,"props":11115,"children":11116},{"style":1041},[11117],{"type":998,"value":1723},{"type":993,"tag":1026,"props":11119,"children":11120},{"style":1053},[11121],{"type":998,"value":10903},{"type":993,"tag":1026,"props":11123,"children":11124},{"style":1041},[11125],{"type":998,"value":2168},{"type":993,"tag":1026,"props":11127,"children":11128},{"style":1071},[11129],{"type":998,"value":3129},{"type":993,"tag":1026,"props":11131,"children":11132},{"style":1041},[11133],{"type":998,"value":1723},{"type":993,"tag":1026,"props":11135,"children":11136},{"style":1053},[11137],{"type":998,"value":10920},{"type":993,"tag":1026,"props":11139,"children":11140},{"style":1041},[11141],{"type":998,"value":2168},{"type":993,"tag":1026,"props":11143,"children":11144},{"style":1071},[11145],{"type":998,"value":3173},{"type":993,"tag":1026,"props":11147,"children":11148},{"style":1041},[11149],{"type":998,"value":1723},{"type":993,"tag":1026,"props":11151,"children":11152},{"style":1053},[11153],{"type":998,"value":10937},{"type":993,"tag":1026,"props":11155,"children":11156},{"style":1041},[11157],{"type":998,"value":2168},{"type":993,"tag":1026,"props":11159,"children":11160},{"style":1071},[11161],{"type":998,"value":3138},{"type":993,"tag":1026,"props":11163,"children":11164},{"style":1041},[11165],{"type":998,"value":3786},{"type":993,"tag":1026,"props":11167,"children":11168},{"class":1028,"line":191},[11169],{"type":993,"tag":1026,"props":11170,"children":11171},{"style":1041},[11172],{"type":998,"value":1816},{"type":993,"tag":1026,"props":11174,"children":11175},{"class":1028,"line":201},[11176],{"type":993,"tag":1026,"props":11177,"children":11178},{"emptyLinePlaceholder":13},[11179],{"type":998,"value":1133},{"type":993,"tag":1026,"props":11181,"children":11182},{"class":1028,"line":210},[11183,11187,11191,11196],{"type":993,"tag":1026,"props":11184,"children":11185},{"style":1071},[11186],{"type":998,"value":1209},{"type":993,"tag":1026,"props":11188,"children":11189},{"style":1041},[11190],{"type":998,"value":1226},{"type":993,"tag":1026,"props":11192,"children":11193},{"style":1053},[11194],{"type":998,"value":11195},"\"Student Grade Report\"",{"type":993,"tag":1026,"props":11197,"children":11198},{"style":1041},[11199],{"type":998,"value":1281},{"type":993,"tag":1026,"props":11201,"children":11202},{"class":1028,"line":219},[11203,11207,11211,11215,11219,11224],{"type":993,"tag":1026,"props":11204,"children":11205},{"style":1071},[11206],{"type":998,"value":1209},{"type":993,"tag":1026,"props":11208,"children":11209},{"style":1041},[11210],{"type":998,"value":1226},{"type":993,"tag":1026,"props":11212,"children":11213},{"style":1053},[11214],{"type":998,"value":3306},{"type":993,"tag":1026,"props":11216,"children":11217},{"style":1047},[11218],{"type":998,"value":1873},{"type":993,"tag":1026,"props":11220,"children":11221},{"style":1071},[11222],{"type":998,"value":11223}," 60",{"type":993,"tag":1026,"props":11225,"children":11226},{"style":1041},[11227],{"type":998,"value":1281},{"type":993,"tag":1026,"props":11229,"children":11230},{"class":1028,"line":228},[11231],{"type":993,"tag":1026,"props":11232,"children":11233},{"style":1041},[11234],{"type":998,"value":11235},"format_grade_report(students)\n",{"type":993,"tag":2513,"props":11237,"children":11239},{"id":11238},"solution-and-explanation",[11240],{"type":998,"value":11241},"Solution and Explanation 💡",{"type":993,"tag":9170,"props":11243,"children":11244},{},[11245,11253,13086,13094],{"type":993,"tag":11246,"props":11247,"children":11250},"summary",{"className":11248},[11249],"cursor-pointer",[11251],{"type":998,"value":11252},"Click to see the complete solution",{"type":993,"tag":1012,"props":11254,"children":11255},{},[11256],{"type":993,"tag":1016,"props":11257,"children":11259},{"className":1018,"code":11258,"language":6,"meta":8,"style":8},"def format_grade_report(students):\n    # Create header with proper alignment\n    print(f\"{'Name':\u003C15} {'Math':>6} {'English':>8} {'Science':>8} {'Average':>8}\")\n    print(\"-\" * 55)\n    \n    total_students = len(students)\n    class_total = 0\n    \n    # Format each student's data in aligned columns\n    for student in students:\n        row = format_student_row(\n            student[\"name\"], \n            student[\"math\"], \n            student[\"english\"], \n            student[\"science\"]\n        )\n        print(row)\n        \n        # Add to class total for average calculation\n        student_avg = (student[\"math\"] + student[\"english\"] + student[\"science\"]) / 3\n        class_total += student_avg\n    \n    # Calculate and display class average\n    if total_students > 0:\n        class_average = class_total / total_students\n        print(\"-\" * 55)\n        print(f\"{'Class Average:':\u003C15} {'':\u003C6} {'':\u003C8} {'':\u003C8} {class_average:>8.2f}\")\n\ndef format_student_row(name, math_grade, english_grade, science_grade):\n    # Calculate student average\n    average = (math_grade + english_grade + science_grade) / 3\n    \n    # Format row with proper alignment\n    # Name left-aligned, grades right-aligned with 2 decimal places for average\n    formatted_row = f\"{name:\u003C15} {math_grade:>6} {english_grade:>8} {science_grade:>8} {average:>8.2f}\"\n    \n    # Return formatted string\n    return formatted_row\n\n# Test your formatting\nstudents = [\n    {\"name\": \"Alice Johnson\", \"math\": 95, \"english\": 87, \"science\": 92},\n    {\"name\": \"Bob Smith\", \"math\": 78, \"english\": 82, \"science\": 85},\n    {\"name\": \"Carol Davis\", \"math\": 88, \"english\": 91, \"science\": 89},\n    {\"name\": \"David Wilson\", \"math\": 92, \"english\": 85, \"science\": 88}\n]\n\nprint(\"Student Grade Report\")\nprint(\"=\" * 60)\nformat_grade_report(students)\n\n# Additional formatting examples\nprint(\"\\n\" + \"=\" * 60)\nprint(\"Formatting Examples:\")\nprint(\"=\" * 60)\n\n# Number formatting examples\nprice = 1234.567\npercentage = 0.856\nlarge_number = 1234567\n\nprint(f\"Price with 2 decimals: ${price:.2f}\")\nprint(f\"Percentage: {percentage:.1%}\")\nprint(f\"Large number with commas: {large_number:,}\")\n\n# Alignment examples\nitems = [(\"Apples\", 5), (\"Bananas\", 12), (\"Cherries\", 8)]\nprint(f\"\\n{'Item':\u003C10} {'Quantity':>8}\")\nprint(\"-\" * 20)\nfor item, qty in items:\n    print(f\"{item:\u003C10} {qty:>8}\")\n",[11260],{"type":993,"tag":1022,"props":11261,"children":11262},{"__ignoreMap":8},[11263,11278,11286,11398,11426,11433,11454,11471,11478,11486,11505,11522,11539,11554,11569,11584,11592,11605,11612,11620,11687,11704,11711,11719,11743,11769,11796,11907,11914,11929,11937,11980,11987,11995,12003,12111,12118,12126,12138,12145,12153,12168,12239,12310,12381,12452,12459,12466,12485,12512,12519,12526,12534,12577,12597,12624,12631,12639,12655,12671,12688,12695,12739,12784,12829,12836,12844,12916,12977,13005,13025],{"type":993,"tag":1026,"props":11264,"children":11265},{"class":1028,"line":12},[11266,11270,11274],{"type":993,"tag":1026,"props":11267,"children":11268},{"style":1047},[11269],{"type":998,"value":4067},{"type":993,"tag":1026,"props":11271,"children":11272},{"style":2923},[11273],{"type":998,"value":10678},{"type":993,"tag":1026,"props":11275,"children":11276},{"style":1041},[11277],{"type":998,"value":10683},{"type":993,"tag":1026,"props":11279,"children":11280},{"class":1028,"line":27},[11281],{"type":993,"tag":1026,"props":11282,"children":11283},{"style":1032},[11284],{"type":998,"value":11285},"    # Create header with proper alignment\n",{"type":993,"tag":1026,"props":11287,"children":11288},{"class":1028,"line":36},[11289,11293,11297,11301,11305,11309,11313,11317,11321,11325,11330,11335,11339,11343,11348,11353,11357,11361,11366,11370,11374,11378,11382,11386,11390,11394],{"type":993,"tag":1026,"props":11290,"children":11291},{"style":1071},[11292],{"type":998,"value":1920},{"type":993,"tag":1026,"props":11294,"children":11295},{"style":1041},[11296],{"type":998,"value":1226},{"type":993,"tag":1026,"props":11298,"children":11299},{"style":1047},[11300],{"type":998,"value":1231},{"type":993,"tag":1026,"props":11302,"children":11303},{"style":1053},[11304],{"type":998,"value":1301},{"type":993,"tag":1026,"props":11306,"children":11307},{"style":1071},[11308],{"type":998,"value":1168},{"type":993,"tag":1026,"props":11310,"children":11311},{"style":1053},[11312],{"type":998,"value":3347},{"type":993,"tag":1026,"props":11314,"children":11315},{"style":1047},[11316],{"type":998,"value":3371},{"type":993,"tag":1026,"props":11318,"children":11319},{"style":1071},[11320],{"type":998,"value":1178},{"type":993,"tag":1026,"props":11322,"children":11323},{"style":1071},[11324],{"type":998,"value":3361},{"type":993,"tag":1026,"props":11326,"children":11327},{"style":1053},[11328],{"type":998,"value":11329},"'Math'",{"type":993,"tag":1026,"props":11331,"children":11332},{"style":1047},[11333],{"type":998,"value":11334},":>6",{"type":993,"tag":1026,"props":11336,"children":11337},{"style":1071},[11338],{"type":998,"value":1178},{"type":993,"tag":1026,"props":11340,"children":11341},{"style":1071},[11342],{"type":998,"value":3361},{"type":993,"tag":1026,"props":11344,"children":11345},{"style":1053},[11346],{"type":998,"value":11347},"'English'",{"type":993,"tag":1026,"props":11349,"children":11350},{"style":1047},[11351],{"type":998,"value":11352},":>8",{"type":993,"tag":1026,"props":11354,"children":11355},{"style":1071},[11356],{"type":998,"value":1178},{"type":993,"tag":1026,"props":11358,"children":11359},{"style":1071},[11360],{"type":998,"value":3361},{"type":993,"tag":1026,"props":11362,"children":11363},{"style":1053},[11364],{"type":998,"value":11365},"'Science'",{"type":993,"tag":1026,"props":11367,"children":11368},{"style":1047},[11369],{"type":998,"value":11352},{"type":993,"tag":1026,"props":11371,"children":11372},{"style":1071},[11373],{"type":998,"value":1178},{"type":993,"tag":1026,"props":11375,"children":11376},{"style":1071},[11377],{"type":998,"value":3361},{"type":993,"tag":1026,"props":11379,"children":11380},{"style":1053},[11381],{"type":998,"value":3384},{"type":993,"tag":1026,"props":11383,"children":11384},{"style":1047},[11385],{"type":998,"value":11352},{"type":993,"tag":1026,"props":11387,"children":11388},{"style":1071},[11389],{"type":998,"value":1178},{"type":993,"tag":1026,"props":11391,"children":11392},{"style":1053},[11393],{"type":998,"value":1301},{"type":993,"tag":1026,"props":11395,"children":11396},{"style":1041},[11397],{"type":998,"value":1281},{"type":993,"tag":1026,"props":11399,"children":11400},{"class":1028,"line":45},[11401,11405,11409,11413,11417,11422],{"type":993,"tag":1026,"props":11402,"children":11403},{"style":1071},[11404],{"type":998,"value":1920},{"type":993,"tag":1026,"props":11406,"children":11407},{"style":1041},[11408],{"type":998,"value":1226},{"type":993,"tag":1026,"props":11410,"children":11411},{"style":1053},[11412],{"type":998,"value":1868},{"type":993,"tag":1026,"props":11414,"children":11415},{"style":1047},[11416],{"type":998,"value":1873},{"type":993,"tag":1026,"props":11418,"children":11419},{"style":1071},[11420],{"type":998,"value":11421}," 55",{"type":993,"tag":1026,"props":11423,"children":11424},{"style":1041},[11425],{"type":998,"value":1281},{"type":993,"tag":1026,"props":11427,"children":11428},{"class":1028,"line":54},[11429],{"type":993,"tag":1026,"props":11430,"children":11431},{"style":1041},[11432],{"type":998,"value":3000},{"type":993,"tag":1026,"props":11434,"children":11435},{"class":1028,"line":63},[11436,11441,11445,11449],{"type":993,"tag":1026,"props":11437,"children":11438},{"style":1041},[11439],{"type":998,"value":11440},"    total_students ",{"type":993,"tag":1026,"props":11442,"children":11443},{"style":1047},[11444],{"type":998,"value":1050},{"type":993,"tag":1026,"props":11446,"children":11447},{"style":1071},[11448],{"type":998,"value":3052},{"type":993,"tag":1026,"props":11450,"children":11451},{"style":1041},[11452],{"type":998,"value":11453},"(students)\n",{"type":993,"tag":1026,"props":11455,"children":11456},{"class":1028,"line":72},[11457,11462,11466],{"type":993,"tag":1026,"props":11458,"children":11459},{"style":1041},[11460],{"type":998,"value":11461},"    class_total ",{"type":993,"tag":1026,"props":11463,"children":11464},{"style":1047},[11465],{"type":998,"value":1050},{"type":993,"tag":1026,"props":11467,"children":11468},{"style":1071},[11469],{"type":998,"value":11470}," 0\n",{"type":993,"tag":1026,"props":11472,"children":11473},{"class":1028,"line":81},[11474],{"type":993,"tag":1026,"props":11475,"children":11476},{"style":1041},[11477],{"type":998,"value":3000},{"type":993,"tag":1026,"props":11479,"children":11480},{"class":1028,"line":91},[11481],{"type":993,"tag":1026,"props":11482,"children":11483},{"style":1032},[11484],{"type":998,"value":11485},"    # Format each student's data in aligned columns\n",{"type":993,"tag":1026,"props":11487,"children":11488},{"class":1028,"line":100},[11489,11493,11497,11501],{"type":993,"tag":1026,"props":11490,"children":11491},{"style":1047},[11492],{"type":998,"value":4451},{"type":993,"tag":1026,"props":11494,"children":11495},{"style":1041},[11496],{"type":998,"value":3460},{"type":993,"tag":1026,"props":11498,"children":11499},{"style":1047},[11500],{"type":998,"value":1907},{"type":993,"tag":1026,"props":11502,"children":11503},{"style":1041},[11504],{"type":998,"value":3469},{"type":993,"tag":1026,"props":11506,"children":11507},{"class":1028,"line":109},[11508,11513,11517],{"type":993,"tag":1026,"props":11509,"children":11510},{"style":1041},[11511],{"type":998,"value":11512},"        row ",{"type":993,"tag":1026,"props":11514,"children":11515},{"style":1047},[11516],{"type":998,"value":1050},{"type":993,"tag":1026,"props":11518,"children":11519},{"style":1041},[11520],{"type":998,"value":11521}," format_student_row(\n",{"type":993,"tag":1026,"props":11523,"children":11524},{"class":1028,"line":118},[11525,11530,11534],{"type":993,"tag":1026,"props":11526,"children":11527},{"style":1041},[11528],{"type":998,"value":11529},"            student[",{"type":993,"tag":1026,"props":11531,"children":11532},{"style":1053},[11533],{"type":998,"value":4929},{"type":993,"tag":1026,"props":11535,"children":11536},{"style":1041},[11537],{"type":998,"value":11538},"], \n",{"type":993,"tag":1026,"props":11540,"children":11541},{"class":1028,"line":127},[11542,11546,11550],{"type":993,"tag":1026,"props":11543,"children":11544},{"style":1041},[11545],{"type":998,"value":11529},{"type":993,"tag":1026,"props":11547,"children":11548},{"style":1053},[11549],{"type":998,"value":10903},{"type":993,"tag":1026,"props":11551,"children":11552},{"style":1041},[11553],{"type":998,"value":11538},{"type":993,"tag":1026,"props":11555,"children":11556},{"class":1028,"line":136},[11557,11561,11565],{"type":993,"tag":1026,"props":11558,"children":11559},{"style":1041},[11560],{"type":998,"value":11529},{"type":993,"tag":1026,"props":11562,"children":11563},{"style":1053},[11564],{"type":998,"value":10920},{"type":993,"tag":1026,"props":11566,"children":11567},{"style":1041},[11568],{"type":998,"value":11538},{"type":993,"tag":1026,"props":11570,"children":11571},{"class":1028,"line":146},[11572,11576,11580],{"type":993,"tag":1026,"props":11573,"children":11574},{"style":1041},[11575],{"type":998,"value":11529},{"type":993,"tag":1026,"props":11577,"children":11578},{"style":1053},[11579],{"type":998,"value":10937},{"type":993,"tag":1026,"props":11581,"children":11582},{"style":1041},[11583],{"type":998,"value":1816},{"type":993,"tag":1026,"props":11585,"children":11586},{"class":1028,"line":155},[11587],{"type":993,"tag":1026,"props":11588,"children":11589},{"style":1041},[11590],{"type":998,"value":11591},"        )\n",{"type":993,"tag":1026,"props":11593,"children":11594},{"class":1028,"line":164},[11595,11600],{"type":993,"tag":1026,"props":11596,"children":11597},{"style":1071},[11598],{"type":998,"value":11599},"        print",{"type":993,"tag":1026,"props":11601,"children":11602},{"style":1041},[11603],{"type":998,"value":11604},"(row)\n",{"type":993,"tag":1026,"props":11606,"children":11607},{"class":1028,"line":173},[11608],{"type":993,"tag":1026,"props":11609,"children":11610},{"style":1041},[11611],{"type":998,"value":6149},{"type":993,"tag":1026,"props":11613,"children":11614},{"class":1028,"line":182},[11615],{"type":993,"tag":1026,"props":11616,"children":11617},{"style":1032},[11618],{"type":998,"value":11619},"        # Add to class total for average calculation\n",{"type":993,"tag":1026,"props":11621,"children":11622},{"class":1028,"line":191},[11623,11628,11632,11637,11641,11645,11649,11654,11658,11662,11666,11670,11674,11678,11682],{"type":993,"tag":1026,"props":11624,"children":11625},{"style":1041},[11626],{"type":998,"value":11627},"        student_avg ",{"type":993,"tag":1026,"props":11629,"children":11630},{"style":1047},[11631],{"type":998,"value":1050},{"type":993,"tag":1026,"props":11633,"children":11634},{"style":1041},[11635],{"type":998,"value":11636}," (student[",{"type":993,"tag":1026,"props":11638,"children":11639},{"style":1053},[11640],{"type":998,"value":10903},{"type":993,"tag":1026,"props":11642,"children":11643},{"style":1041},[11644],{"type":998,"value":3910},{"type":993,"tag":1026,"props":11646,"children":11647},{"style":1047},[11648],{"type":998,"value":1266},{"type":993,"tag":1026,"props":11650,"children":11651},{"style":1041},[11652],{"type":998,"value":11653}," student[",{"type":993,"tag":1026,"props":11655,"children":11656},{"style":1053},[11657],{"type":998,"value":10920},{"type":993,"tag":1026,"props":11659,"children":11660},{"style":1041},[11661],{"type":998,"value":3910},{"type":993,"tag":1026,"props":11663,"children":11664},{"style":1047},[11665],{"type":998,"value":1266},{"type":993,"tag":1026,"props":11667,"children":11668},{"style":1041},[11669],{"type":998,"value":11653},{"type":993,"tag":1026,"props":11671,"children":11672},{"style":1053},[11673],{"type":998,"value":10937},{"type":993,"tag":1026,"props":11675,"children":11676},{"style":1041},[11677],{"type":998,"value":3998},{"type":993,"tag":1026,"props":11679,"children":11680},{"style":1047},[11681],{"type":998,"value":2678},{"type":993,"tag":1026,"props":11683,"children":11684},{"style":1071},[11685],{"type":998,"value":11686}," 3\n",{"type":993,"tag":1026,"props":11688,"children":11689},{"class":1028,"line":201},[11690,11695,11699],{"type":993,"tag":1026,"props":11691,"children":11692},{"style":1041},[11693],{"type":998,"value":11694},"        class_total ",{"type":993,"tag":1026,"props":11696,"children":11697},{"style":1047},[11698],{"type":998,"value":4516},{"type":993,"tag":1026,"props":11700,"children":11701},{"style":1041},[11702],{"type":998,"value":11703}," student_avg\n",{"type":993,"tag":1026,"props":11705,"children":11706},{"class":1028,"line":210},[11707],{"type":993,"tag":1026,"props":11708,"children":11709},{"style":1041},[11710],{"type":998,"value":3000},{"type":993,"tag":1026,"props":11712,"children":11713},{"class":1028,"line":219},[11714],{"type":993,"tag":1026,"props":11715,"children":11716},{"style":1032},[11717],{"type":998,"value":11718},"    # Calculate and display class average\n",{"type":993,"tag":1026,"props":11720,"children":11721},{"class":1028,"line":228},[11722,11726,11731,11735,11739],{"type":993,"tag":1026,"props":11723,"children":11724},{"style":1047},[11725],{"type":998,"value":5209},{"type":993,"tag":1026,"props":11727,"children":11728},{"style":1041},[11729],{"type":998,"value":11730}," total_students ",{"type":993,"tag":1026,"props":11732,"children":11733},{"style":1047},[11734],{"type":998,"value":2300},{"type":993,"tag":1026,"props":11736,"children":11737},{"style":1071},[11738],{"type":998,"value":7349},{"type":993,"tag":1026,"props":11740,"children":11741},{"style":1041},[11742],{"type":998,"value":2931},{"type":993,"tag":1026,"props":11744,"children":11745},{"class":1028,"line":238},[11746,11751,11755,11760,11764],{"type":993,"tag":1026,"props":11747,"children":11748},{"style":1041},[11749],{"type":998,"value":11750},"        class_average ",{"type":993,"tag":1026,"props":11752,"children":11753},{"style":1047},[11754],{"type":998,"value":1050},{"type":993,"tag":1026,"props":11756,"children":11757},{"style":1041},[11758],{"type":998,"value":11759}," class_total ",{"type":993,"tag":1026,"props":11761,"children":11762},{"style":1047},[11763],{"type":998,"value":2678},{"type":993,"tag":1026,"props":11765,"children":11766},{"style":1041},[11767],{"type":998,"value":11768}," total_students\n",{"type":993,"tag":1026,"props":11770,"children":11771},{"class":1028,"line":247},[11772,11776,11780,11784,11788,11792],{"type":993,"tag":1026,"props":11773,"children":11774},{"style":1071},[11775],{"type":998,"value":11599},{"type":993,"tag":1026,"props":11777,"children":11778},{"style":1041},[11779],{"type":998,"value":1226},{"type":993,"tag":1026,"props":11781,"children":11782},{"style":1053},[11783],{"type":998,"value":1868},{"type":993,"tag":1026,"props":11785,"children":11786},{"style":1047},[11787],{"type":998,"value":1873},{"type":993,"tag":1026,"props":11789,"children":11790},{"style":1071},[11791],{"type":998,"value":11421},{"type":993,"tag":1026,"props":11793,"children":11794},{"style":1041},[11795],{"type":998,"value":1281},{"type":993,"tag":1026,"props":11797,"children":11798},{"class":1028,"line":256},[11799,11803,11807,11811,11815,11819,11824,11828,11832,11836,11841,11846,11850,11854,11858,11862,11866,11870,11874,11878,11882,11886,11891,11895,11899,11903],{"type":993,"tag":1026,"props":11800,"children":11801},{"style":1071},[11802],{"type":998,"value":11599},{"type":993,"tag":1026,"props":11804,"children":11805},{"style":1041},[11806],{"type":998,"value":1226},{"type":993,"tag":1026,"props":11808,"children":11809},{"style":1047},[11810],{"type":998,"value":1231},{"type":993,"tag":1026,"props":11812,"children":11813},{"style":1053},[11814],{"type":998,"value":1301},{"type":993,"tag":1026,"props":11816,"children":11817},{"style":1071},[11818],{"type":998,"value":1168},{"type":993,"tag":1026,"props":11820,"children":11821},{"style":1053},[11822],{"type":998,"value":11823},"'Class Average:'",{"type":993,"tag":1026,"props":11825,"children":11826},{"style":1047},[11827],{"type":998,"value":3371},{"type":993,"tag":1026,"props":11829,"children":11830},{"style":1071},[11831],{"type":998,"value":1178},{"type":993,"tag":1026,"props":11833,"children":11834},{"style":1071},[11835],{"type":998,"value":3361},{"type":993,"tag":1026,"props":11837,"children":11838},{"style":1053},[11839],{"type":998,"value":11840},"''",{"type":993,"tag":1026,"props":11842,"children":11843},{"style":1047},[11844],{"type":998,"value":11845},":\u003C6",{"type":993,"tag":1026,"props":11847,"children":11848},{"style":1071},[11849],{"type":998,"value":1178},{"type":993,"tag":1026,"props":11851,"children":11852},{"style":1071},[11853],{"type":998,"value":3361},{"type":993,"tag":1026,"props":11855,"children":11856},{"style":1053},[11857],{"type":998,"value":11840},{"type":993,"tag":1026,"props":11859,"children":11860},{"style":1047},[11861],{"type":998,"value":3389},{"type":993,"tag":1026,"props":11863,"children":11864},{"style":1071},[11865],{"type":998,"value":1178},{"type":993,"tag":1026,"props":11867,"children":11868},{"style":1071},[11869],{"type":998,"value":3361},{"type":993,"tag":1026,"props":11871,"children":11872},{"style":1053},[11873],{"type":998,"value":11840},{"type":993,"tag":1026,"props":11875,"children":11876},{"style":1047},[11877],{"type":998,"value":3389},{"type":993,"tag":1026,"props":11879,"children":11880},{"style":1071},[11881],{"type":998,"value":1178},{"type":993,"tag":1026,"props":11883,"children":11884},{"style":1071},[11885],{"type":998,"value":3361},{"type":993,"tag":1026,"props":11887,"children":11888},{"style":1041},[11889],{"type":998,"value":11890},"class_average",{"type":993,"tag":1026,"props":11892,"children":11893},{"style":1047},[11894],{"type":998,"value":1968},{"type":993,"tag":1026,"props":11896,"children":11897},{"style":1071},[11898],{"type":998,"value":1178},{"type":993,"tag":1026,"props":11900,"children":11901},{"style":1053},[11902],{"type":998,"value":1301},{"type":993,"tag":1026,"props":11904,"children":11905},{"style":1041},[11906],{"type":998,"value":1281},{"type":993,"tag":1026,"props":11908,"children":11909},{"class":1028,"line":265},[11910],{"type":993,"tag":1026,"props":11911,"children":11912},{"emptyLinePlaceholder":13},[11913],{"type":998,"value":1133},{"type":993,"tag":1026,"props":11915,"children":11916},{"class":1028,"line":274},[11917,11921,11925],{"type":993,"tag":1026,"props":11918,"children":11919},{"style":1047},[11920],{"type":998,"value":4067},{"type":993,"tag":1026,"props":11922,"children":11923},{"style":2923},[11924],{"type":998,"value":10776},{"type":993,"tag":1026,"props":11926,"children":11927},{"style":1041},[11928],{"type":998,"value":10781},{"type":993,"tag":1026,"props":11930,"children":11931},{"class":1028,"line":284},[11932],{"type":993,"tag":1026,"props":11933,"children":11934},{"style":1032},[11935],{"type":998,"value":11936},"    # Calculate student average\n",{"type":993,"tag":1026,"props":11938,"children":11939},{"class":1028,"line":293},[11940,11945,11949,11954,11958,11963,11967,11972,11976],{"type":993,"tag":1026,"props":11941,"children":11942},{"style":1041},[11943],{"type":998,"value":11944},"    average ",{"type":993,"tag":1026,"props":11946,"children":11947},{"style":1047},[11948],{"type":998,"value":1050},{"type":993,"tag":1026,"props":11950,"children":11951},{"style":1041},[11952],{"type":998,"value":11953}," (math_grade ",{"type":993,"tag":1026,"props":11955,"children":11956},{"style":1047},[11957],{"type":998,"value":1266},{"type":993,"tag":1026,"props":11959,"children":11960},{"style":1041},[11961],{"type":998,"value":11962}," english_grade ",{"type":993,"tag":1026,"props":11964,"children":11965},{"style":1047},[11966],{"type":998,"value":1266},{"type":993,"tag":1026,"props":11968,"children":11969},{"style":1041},[11970],{"type":998,"value":11971}," science_grade) ",{"type":993,"tag":1026,"props":11973,"children":11974},{"style":1047},[11975],{"type":998,"value":2678},{"type":993,"tag":1026,"props":11977,"children":11978},{"style":1071},[11979],{"type":998,"value":11686},{"type":993,"tag":1026,"props":11981,"children":11982},{"class":1028,"line":302},[11983],{"type":993,"tag":1026,"props":11984,"children":11985},{"style":1041},[11986],{"type":998,"value":3000},{"type":993,"tag":1026,"props":11988,"children":11989},{"class":1028,"line":311},[11990],{"type":993,"tag":1026,"props":11991,"children":11992},{"style":1032},[11993],{"type":998,"value":11994},"    # Format row with proper alignment\n",{"type":993,"tag":1026,"props":11996,"children":11997},{"class":1028,"line":320},[11998],{"type":993,"tag":1026,"props":11999,"children":12000},{"style":1032},[12001],{"type":998,"value":12002},"    # Name left-aligned, grades right-aligned with 2 decimal places for average\n",{"type":993,"tag":1026,"props":12004,"children":12005},{"class":1028,"line":329},[12006,12011,12015,12019,12023,12027,12031,12035,12039,12043,12048,12052,12056,12060,12065,12069,12073,12077,12082,12086,12090,12094,12099,12103,12107],{"type":993,"tag":1026,"props":12007,"children":12008},{"style":1041},[12009],{"type":998,"value":12010},"    formatted_row ",{"type":993,"tag":1026,"props":12012,"children":12013},{"style":1047},[12014],{"type":998,"value":1050},{"type":993,"tag":1026,"props":12016,"children":12017},{"style":1047},[12018],{"type":998,"value":1158},{"type":993,"tag":1026,"props":12020,"children":12021},{"style":1053},[12022],{"type":998,"value":1301},{"type":993,"tag":1026,"props":12024,"children":12025},{"style":1071},[12026],{"type":998,"value":1168},{"type":993,"tag":1026,"props":12028,"children":12029},{"style":1041},[12030],{"type":998,"value":1173},{"type":993,"tag":1026,"props":12032,"children":12033},{"style":1047},[12034],{"type":998,"value":3371},{"type":993,"tag":1026,"props":12036,"children":12037},{"style":1071},[12038],{"type":998,"value":1178},{"type":993,"tag":1026,"props":12040,"children":12041},{"style":1071},[12042],{"type":998,"value":3361},{"type":993,"tag":1026,"props":12044,"children":12045},{"style":1041},[12046],{"type":998,"value":12047},"math_grade",{"type":993,"tag":1026,"props":12049,"children":12050},{"style":1047},[12051],{"type":998,"value":11334},{"type":993,"tag":1026,"props":12053,"children":12054},{"style":1071},[12055],{"type":998,"value":1178},{"type":993,"tag":1026,"props":12057,"children":12058},{"style":1071},[12059],{"type":998,"value":3361},{"type":993,"tag":1026,"props":12061,"children":12062},{"style":1041},[12063],{"type":998,"value":12064},"english_grade",{"type":993,"tag":1026,"props":12066,"children":12067},{"style":1047},[12068],{"type":998,"value":11352},{"type":993,"tag":1026,"props":12070,"children":12071},{"style":1071},[12072],{"type":998,"value":1178},{"type":993,"tag":1026,"props":12074,"children":12075},{"style":1071},[12076],{"type":998,"value":3361},{"type":993,"tag":1026,"props":12078,"children":12079},{"style":1041},[12080],{"type":998,"value":12081},"science_grade",{"type":993,"tag":1026,"props":12083,"children":12084},{"style":1047},[12085],{"type":998,"value":11352},{"type":993,"tag":1026,"props":12087,"children":12088},{"style":1071},[12089],{"type":998,"value":1178},{"type":993,"tag":1026,"props":12091,"children":12092},{"style":1071},[12093],{"type":998,"value":3361},{"type":993,"tag":1026,"props":12095,"children":12096},{"style":1041},[12097],{"type":998,"value":12098},"average",{"type":993,"tag":1026,"props":12100,"children":12101},{"style":1047},[12102],{"type":998,"value":1968},{"type":993,"tag":1026,"props":12104,"children":12105},{"style":1071},[12106],{"type":998,"value":1178},{"type":993,"tag":1026,"props":12108,"children":12109},{"style":1053},[12110],{"type":998,"value":2696},{"type":993,"tag":1026,"props":12112,"children":12113},{"class":1028,"line":338},[12114],{"type":993,"tag":1026,"props":12115,"children":12116},{"style":1041},[12117],{"type":998,"value":3000},{"type":993,"tag":1026,"props":12119,"children":12120},{"class":1028,"line":347},[12121],{"type":993,"tag":1026,"props":12122,"children":12123},{"style":1032},[12124],{"type":998,"value":12125},"    # Return formatted string\n",{"type":993,"tag":1026,"props":12127,"children":12128},{"class":1028,"line":356},[12129,12133],{"type":993,"tag":1026,"props":12130,"children":12131},{"style":1047},[12132],{"type":998,"value":4810},{"type":993,"tag":1026,"props":12134,"children":12135},{"style":1041},[12136],{"type":998,"value":12137}," formatted_row\n",{"type":993,"tag":1026,"props":12139,"children":12140},{"class":1028,"line":365},[12141],{"type":993,"tag":1026,"props":12142,"children":12143},{"emptyLinePlaceholder":13},[12144],{"type":998,"value":1133},{"type":993,"tag":1026,"props":12146,"children":12147},{"class":1028,"line":374},[12148],{"type":993,"tag":1026,"props":12149,"children":12150},{"style":1032},[12151],{"type":998,"value":12152},"# Test your formatting\n",{"type":993,"tag":1026,"props":12154,"children":12155},{"class":1028,"line":384},[12156,12160,12164],{"type":993,"tag":1026,"props":12157,"children":12158},{"style":1041},[12159],{"type":998,"value":3080},{"type":993,"tag":1026,"props":12161,"children":12162},{"style":1047},[12163],{"type":998,"value":1050},{"type":993,"tag":1026,"props":12165,"children":12166},{"style":1041},[12167],{"type":998,"value":1705},{"type":993,"tag":1026,"props":12169,"children":12170},{"class":1028,"line":393},[12171,12175,12179,12183,12187,12191,12195,12199,12203,12207,12211,12215,12219,12223,12227,12231,12235],{"type":993,"tag":1026,"props":12172,"children":12173},{"style":1041},[12174],{"type":998,"value":4924},{"type":993,"tag":1026,"props":12176,"children":12177},{"style":1053},[12178],{"type":998,"value":4929},{"type":993,"tag":1026,"props":12180,"children":12181},{"style":1041},[12182],{"type":998,"value":2168},{"type":993,"tag":1026,"props":12184,"children":12185},{"style":1053},[12186],{"type":998,"value":4864},{"type":993,"tag":1026,"props":12188,"children":12189},{"style":1041},[12190],{"type":998,"value":1723},{"type":993,"tag":1026,"props":12192,"children":12193},{"style":1053},[12194],{"type":998,"value":10903},{"type":993,"tag":1026,"props":12196,"children":12197},{"style":1041},[12198],{"type":998,"value":2168},{"type":993,"tag":1026,"props":12200,"children":12201},{"style":1071},[12202],{"type":998,"value":3111},{"type":993,"tag":1026,"props":12204,"children":12205},{"style":1041},[12206],{"type":998,"value":1723},{"type":993,"tag":1026,"props":12208,"children":12209},{"style":1053},[12210],{"type":998,"value":10920},{"type":993,"tag":1026,"props":12212,"children":12213},{"style":1041},[12214],{"type":998,"value":2168},{"type":993,"tag":1026,"props":12216,"children":12217},{"style":1071},[12218],{"type":998,"value":3120},{"type":993,"tag":1026,"props":12220,"children":12221},{"style":1041},[12222],{"type":998,"value":1723},{"type":993,"tag":1026,"props":12224,"children":12225},{"style":1053},[12226],{"type":998,"value":10937},{"type":993,"tag":1026,"props":12228,"children":12229},{"style":1041},[12230],{"type":998,"value":2168},{"type":993,"tag":1026,"props":12232,"children":12233},{"style":1071},[12234],{"type":998,"value":3129},{"type":993,"tag":1026,"props":12236,"children":12237},{"style":1041},[12238],{"type":998,"value":4977},{"type":993,"tag":1026,"props":12240,"children":12241},{"class":1028,"line":402},[12242,12246,12250,12254,12258,12262,12266,12270,12274,12278,12282,12286,12290,12294,12298,12302,12306],{"type":993,"tag":1026,"props":12243,"children":12244},{"style":1041},[12245],{"type":998,"value":4924},{"type":993,"tag":1026,"props":12247,"children":12248},{"style":1053},[12249],{"type":998,"value":4929},{"type":993,"tag":1026,"props":12251,"children":12252},{"style":1041},[12253],{"type":998,"value":2168},{"type":993,"tag":1026,"props":12255,"children":12256},{"style":1053},[12257],{"type":998,"value":10969},{"type":993,"tag":1026,"props":12259,"children":12260},{"style":1041},[12261],{"type":998,"value":1723},{"type":993,"tag":1026,"props":12263,"children":12264},{"style":1053},[12265],{"type":998,"value":10903},{"type":993,"tag":1026,"props":12267,"children":12268},{"style":1041},[12269],{"type":998,"value":2168},{"type":993,"tag":1026,"props":12271,"children":12272},{"style":1071},[12273],{"type":998,"value":3164},{"type":993,"tag":1026,"props":12275,"children":12276},{"style":1041},[12277],{"type":998,"value":1723},{"type":993,"tag":1026,"props":12279,"children":12280},{"style":1053},[12281],{"type":998,"value":10920},{"type":993,"tag":1026,"props":12283,"children":12284},{"style":1041},[12285],{"type":998,"value":2168},{"type":993,"tag":1026,"props":12287,"children":12288},{"style":1071},[12289],{"type":998,"value":3182},{"type":993,"tag":1026,"props":12291,"children":12292},{"style":1041},[12293],{"type":998,"value":1723},{"type":993,"tag":1026,"props":12295,"children":12296},{"style":1053},[12297],{"type":998,"value":10937},{"type":993,"tag":1026,"props":12299,"children":12300},{"style":1041},[12301],{"type":998,"value":2168},{"type":993,"tag":1026,"props":12303,"children":12304},{"style":1071},[12305],{"type":998,"value":3173},{"type":993,"tag":1026,"props":12307,"children":12308},{"style":1041},[12309],{"type":998,"value":4977},{"type":993,"tag":1026,"props":12311,"children":12312},{"class":1028,"line":411},[12313,12317,12321,12325,12329,12333,12337,12341,12345,12349,12353,12357,12361,12365,12369,12373,12377],{"type":993,"tag":1026,"props":12314,"children":12315},{"style":1041},[12316],{"type":998,"value":4924},{"type":993,"tag":1026,"props":12318,"children":12319},{"style":1053},[12320],{"type":998,"value":4929},{"type":993,"tag":1026,"props":12322,"children":12323},{"style":1041},[12324],{"type":998,"value":2168},{"type":993,"tag":1026,"props":12326,"children":12327},{"style":1053},[12328],{"type":998,"value":11041},{"type":993,"tag":1026,"props":12330,"children":12331},{"style":1041},[12332],{"type":998,"value":1723},{"type":993,"tag":1026,"props":12334,"children":12335},{"style":1053},[12336],{"type":998,"value":10903},{"type":993,"tag":1026,"props":12338,"children":12339},{"style":1041},[12340],{"type":998,"value":2168},{"type":993,"tag":1026,"props":12342,"children":12343},{"style":1071},[12344],{"type":998,"value":3138},{"type":993,"tag":1026,"props":12346,"children":12347},{"style":1041},[12348],{"type":998,"value":1723},{"type":993,"tag":1026,"props":12350,"children":12351},{"style":1053},[12352],{"type":998,"value":10920},{"type":993,"tag":1026,"props":12354,"children":12355},{"style":1041},[12356],{"type":998,"value":2168},{"type":993,"tag":1026,"props":12358,"children":12359},{"style":1071},[12360],{"type":998,"value":3216},{"type":993,"tag":1026,"props":12362,"children":12363},{"style":1041},[12364],{"type":998,"value":1723},{"type":993,"tag":1026,"props":12366,"children":12367},{"style":1053},[12368],{"type":998,"value":10937},{"type":993,"tag":1026,"props":12370,"children":12371},{"style":1041},[12372],{"type":998,"value":2168},{"type":993,"tag":1026,"props":12374,"children":12375},{"style":1071},[12376],{"type":998,"value":3234},{"type":993,"tag":1026,"props":12378,"children":12379},{"style":1041},[12380],{"type":998,"value":4977},{"type":993,"tag":1026,"props":12382,"children":12383},{"class":1028,"line":420},[12384,12388,12392,12396,12400,12404,12408,12412,12416,12420,12424,12428,12432,12436,12440,12444,12448],{"type":993,"tag":1026,"props":12385,"children":12386},{"style":1041},[12387],{"type":998,"value":4924},{"type":993,"tag":1026,"props":12389,"children":12390},{"style":1053},[12391],{"type":998,"value":4929},{"type":993,"tag":1026,"props":12393,"children":12394},{"style":1041},[12395],{"type":998,"value":2168},{"type":993,"tag":1026,"props":12397,"children":12398},{"style":1053},[12399],{"type":998,"value":11113},{"type":993,"tag":1026,"props":12401,"children":12402},{"style":1041},[12403],{"type":998,"value":1723},{"type":993,"tag":1026,"props":12405,"children":12406},{"style":1053},[12407],{"type":998,"value":10903},{"type":993,"tag":1026,"props":12409,"children":12410},{"style":1041},[12411],{"type":998,"value":2168},{"type":993,"tag":1026,"props":12413,"children":12414},{"style":1071},[12415],{"type":998,"value":3129},{"type":993,"tag":1026,"props":12417,"children":12418},{"style":1041},[12419],{"type":998,"value":1723},{"type":993,"tag":1026,"props":12421,"children":12422},{"style":1053},[12423],{"type":998,"value":10920},{"type":993,"tag":1026,"props":12425,"children":12426},{"style":1041},[12427],{"type":998,"value":2168},{"type":993,"tag":1026,"props":12429,"children":12430},{"style":1071},[12431],{"type":998,"value":3173},{"type":993,"tag":1026,"props":12433,"children":12434},{"style":1041},[12435],{"type":998,"value":1723},{"type":993,"tag":1026,"props":12437,"children":12438},{"style":1053},[12439],{"type":998,"value":10937},{"type":993,"tag":1026,"props":12441,"children":12442},{"style":1041},[12443],{"type":998,"value":2168},{"type":993,"tag":1026,"props":12445,"children":12446},{"style":1071},[12447],{"type":998,"value":3138},{"type":993,"tag":1026,"props":12449,"children":12450},{"style":1041},[12451],{"type":998,"value":3786},{"type":993,"tag":1026,"props":12453,"children":12454},{"class":1028,"line":429},[12455],{"type":993,"tag":1026,"props":12456,"children":12457},{"style":1041},[12458],{"type":998,"value":1816},{"type":993,"tag":1026,"props":12460,"children":12461},{"class":1028,"line":438},[12462],{"type":993,"tag":1026,"props":12463,"children":12464},{"emptyLinePlaceholder":13},[12465],{"type":998,"value":1133},{"type":993,"tag":1026,"props":12467,"children":12468},{"class":1028,"line":447},[12469,12473,12477,12481],{"type":993,"tag":1026,"props":12470,"children":12471},{"style":1071},[12472],{"type":998,"value":1209},{"type":993,"tag":1026,"props":12474,"children":12475},{"style":1041},[12476],{"type":998,"value":1226},{"type":993,"tag":1026,"props":12478,"children":12479},{"style":1053},[12480],{"type":998,"value":11195},{"type":993,"tag":1026,"props":12482,"children":12483},{"style":1041},[12484],{"type":998,"value":1281},{"type":993,"tag":1026,"props":12486,"children":12487},{"class":1028,"line":457},[12488,12492,12496,12500,12504,12508],{"type":993,"tag":1026,"props":12489,"children":12490},{"style":1071},[12491],{"type":998,"value":1209},{"type":993,"tag":1026,"props":12493,"children":12494},{"style":1041},[12495],{"type":998,"value":1226},{"type":993,"tag":1026,"props":12497,"children":12498},{"style":1053},[12499],{"type":998,"value":3306},{"type":993,"tag":1026,"props":12501,"children":12502},{"style":1047},[12503],{"type":998,"value":1873},{"type":993,"tag":1026,"props":12505,"children":12506},{"style":1071},[12507],{"type":998,"value":11223},{"type":993,"tag":1026,"props":12509,"children":12510},{"style":1041},[12511],{"type":998,"value":1281},{"type":993,"tag":1026,"props":12513,"children":12514},{"class":1028,"line":466},[12515],{"type":993,"tag":1026,"props":12516,"children":12517},{"style":1041},[12518],{"type":998,"value":11235},{"type":993,"tag":1026,"props":12520,"children":12521},{"class":1028,"line":475},[12522],{"type":993,"tag":1026,"props":12523,"children":12524},{"emptyLinePlaceholder":13},[12525],{"type":998,"value":1133},{"type":993,"tag":1026,"props":12527,"children":12528},{"class":1028,"line":484},[12529],{"type":993,"tag":1026,"props":12530,"children":12531},{"style":1032},[12532],{"type":998,"value":12533},"# Additional formatting examples\n",{"type":993,"tag":1026,"props":12535,"children":12536},{"class":1028,"line":493},[12537,12541,12545,12549,12553,12557,12561,12565,12569,12573],{"type":993,"tag":1026,"props":12538,"children":12539},{"style":1071},[12540],{"type":998,"value":1209},{"type":993,"tag":1026,"props":12542,"children":12543},{"style":1041},[12544],{"type":998,"value":1226},{"type":993,"tag":1026,"props":12546,"children":12547},{"style":1053},[12548],{"type":998,"value":1301},{"type":993,"tag":1026,"props":12550,"children":12551},{"style":1071},[12552],{"type":998,"value":1843},{"type":993,"tag":1026,"props":12554,"children":12555},{"style":1053},[12556],{"type":998,"value":1301},{"type":993,"tag":1026,"props":12558,"children":12559},{"style":1047},[12560],{"type":998,"value":1408},{"type":993,"tag":1026,"props":12562,"children":12563},{"style":1053},[12564],{"type":998,"value":5520},{"type":993,"tag":1026,"props":12566,"children":12567},{"style":1047},[12568],{"type":998,"value":1873},{"type":993,"tag":1026,"props":12570,"children":12571},{"style":1071},[12572],{"type":998,"value":11223},{"type":993,"tag":1026,"props":12574,"children":12575},{"style":1041},[12576],{"type":998,"value":1281},{"type":993,"tag":1026,"props":12578,"children":12579},{"class":1028,"line":502},[12580,12584,12588,12593],{"type":993,"tag":1026,"props":12581,"children":12582},{"style":1071},[12583],{"type":998,"value":1209},{"type":993,"tag":1026,"props":12585,"children":12586},{"style":1041},[12587],{"type":998,"value":1226},{"type":993,"tag":1026,"props":12589,"children":12590},{"style":1053},[12591],{"type":998,"value":12592},"\"Formatting Examples:\"",{"type":993,"tag":1026,"props":12594,"children":12595},{"style":1041},[12596],{"type":998,"value":1281},{"type":993,"tag":1026,"props":12598,"children":12599},{"class":1028,"line":511},[12600,12604,12608,12612,12616,12620],{"type":993,"tag":1026,"props":12601,"children":12602},{"style":1071},[12603],{"type":998,"value":1209},{"type":993,"tag":1026,"props":12605,"children":12606},{"style":1041},[12607],{"type":998,"value":1226},{"type":993,"tag":1026,"props":12609,"children":12610},{"style":1053},[12611],{"type":998,"value":3306},{"type":993,"tag":1026,"props":12613,"children":12614},{"style":1047},[12615],{"type":998,"value":1873},{"type":993,"tag":1026,"props":12617,"children":12618},{"style":1071},[12619],{"type":998,"value":11223},{"type":993,"tag":1026,"props":12621,"children":12622},{"style":1041},[12623],{"type":998,"value":1281},{"type":993,"tag":1026,"props":12625,"children":12626},{"class":1028,"line":520},[12627],{"type":993,"tag":1026,"props":12628,"children":12629},{"emptyLinePlaceholder":13},[12630],{"type":998,"value":1133},{"type":993,"tag":1026,"props":12632,"children":12633},{"class":1028,"line":530},[12634],{"type":993,"tag":1026,"props":12635,"children":12636},{"style":1032},[12637],{"type":998,"value":12638},"# Number formatting examples\n",{"type":993,"tag":1026,"props":12640,"children":12641},{"class":1028,"line":539},[12642,12646,12650],{"type":993,"tag":1026,"props":12643,"children":12644},{"style":1041},[12645],{"type":998,"value":1099},{"type":993,"tag":1026,"props":12647,"children":12648},{"style":1047},[12649],{"type":998,"value":1050},{"type":993,"tag":1026,"props":12651,"children":12652},{"style":1071},[12653],{"type":998,"value":12654}," 1234.567\n",{"type":993,"tag":1026,"props":12656,"children":12657},{"class":1028,"line":548},[12658,12662,12666],{"type":993,"tag":1026,"props":12659,"children":12660},{"style":1041},[12661],{"type":998,"value":2651},{"type":993,"tag":1026,"props":12663,"children":12664},{"style":1047},[12665],{"type":998,"value":1050},{"type":993,"tag":1026,"props":12667,"children":12668},{"style":1071},[12669],{"type":998,"value":12670}," 0.856\n",{"type":993,"tag":1026,"props":12672,"children":12673},{"class":1028,"line":557},[12674,12679,12683],{"type":993,"tag":1026,"props":12675,"children":12676},{"style":1041},[12677],{"type":998,"value":12678},"large_number ",{"type":993,"tag":1026,"props":12680,"children":12681},{"style":1047},[12682],{"type":998,"value":1050},{"type":993,"tag":1026,"props":12684,"children":12685},{"style":1071},[12686],{"type":998,"value":12687}," 1234567\n",{"type":993,"tag":1026,"props":12689,"children":12690},{"class":1028,"line":566},[12691],{"type":993,"tag":1026,"props":12692,"children":12693},{"emptyLinePlaceholder":13},[12694],{"type":998,"value":1133},{"type":993,"tag":1026,"props":12696,"children":12697},{"class":1028,"line":575},[12698,12702,12706,12710,12715,12719,12723,12727,12731,12735],{"type":993,"tag":1026,"props":12699,"children":12700},{"style":1071},[12701],{"type":998,"value":1209},{"type":993,"tag":1026,"props":12703,"children":12704},{"style":1041},[12705],{"type":998,"value":1226},{"type":993,"tag":1026,"props":12707,"children":12708},{"style":1047},[12709],{"type":998,"value":1231},{"type":993,"tag":1026,"props":12711,"children":12712},{"style":1053},[12713],{"type":998,"value":12714},"\"Price with 2 decimals: $",{"type":993,"tag":1026,"props":12716,"children":12717},{"style":1071},[12718],{"type":998,"value":1168},{"type":993,"tag":1026,"props":12720,"children":12721},{"style":1041},[12722],{"type":998,"value":1442},{"type":993,"tag":1026,"props":12724,"children":12725},{"style":1047},[12726],{"type":998,"value":1447},{"type":993,"tag":1026,"props":12728,"children":12729},{"style":1071},[12730],{"type":998,"value":1178},{"type":993,"tag":1026,"props":12732,"children":12733},{"style":1053},[12734],{"type":998,"value":1301},{"type":993,"tag":1026,"props":12736,"children":12737},{"style":1041},[12738],{"type":998,"value":1281},{"type":993,"tag":1026,"props":12740,"children":12741},{"class":1028,"line":584},[12742,12746,12750,12754,12759,12763,12768,12772,12776,12780],{"type":993,"tag":1026,"props":12743,"children":12744},{"style":1071},[12745],{"type":998,"value":1209},{"type":993,"tag":1026,"props":12747,"children":12748},{"style":1041},[12749],{"type":998,"value":1226},{"type":993,"tag":1026,"props":12751,"children":12752},{"style":1047},[12753],{"type":998,"value":1231},{"type":993,"tag":1026,"props":12755,"children":12756},{"style":1053},[12757],{"type":998,"value":12758},"\"Percentage: ",{"type":993,"tag":1026,"props":12760,"children":12761},{"style":1071},[12762],{"type":998,"value":1168},{"type":993,"tag":1026,"props":12764,"children":12765},{"style":1041},[12766],{"type":998,"value":12767},"percentage",{"type":993,"tag":1026,"props":12769,"children":12770},{"style":1047},[12771],{"type":998,"value":1493},{"type":993,"tag":1026,"props":12773,"children":12774},{"style":1071},[12775],{"type":998,"value":1178},{"type":993,"tag":1026,"props":12777,"children":12778},{"style":1053},[12779],{"type":998,"value":1301},{"type":993,"tag":1026,"props":12781,"children":12782},{"style":1041},[12783],{"type":998,"value":1281},{"type":993,"tag":1026,"props":12785,"children":12786},{"class":1028,"line":593},[12787,12791,12795,12799,12804,12808,12813,12817,12821,12825],{"type":993,"tag":1026,"props":12788,"children":12789},{"style":1071},[12790],{"type":998,"value":1209},{"type":993,"tag":1026,"props":12792,"children":12793},{"style":1041},[12794],{"type":998,"value":1226},{"type":993,"tag":1026,"props":12796,"children":12797},{"style":1047},[12798],{"type":998,"value":1231},{"type":993,"tag":1026,"props":12800,"children":12801},{"style":1053},[12802],{"type":998,"value":12803},"\"Large number with commas: ",{"type":993,"tag":1026,"props":12805,"children":12806},{"style":1071},[12807],{"type":998,"value":1168},{"type":993,"tag":1026,"props":12809,"children":12810},{"style":1041},[12811],{"type":998,"value":12812},"large_number",{"type":993,"tag":1026,"props":12814,"children":12815},{"style":1047},[12816],{"type":998,"value":1616},{"type":993,"tag":1026,"props":12818,"children":12819},{"style":1071},[12820],{"type":998,"value":1178},{"type":993,"tag":1026,"props":12822,"children":12823},{"style":1053},[12824],{"type":998,"value":1301},{"type":993,"tag":1026,"props":12826,"children":12827},{"style":1041},[12828],{"type":998,"value":1281},{"type":993,"tag":1026,"props":12830,"children":12831},{"class":1028,"line":602},[12832],{"type":993,"tag":1026,"props":12833,"children":12834},{"emptyLinePlaceholder":13},[12835],{"type":998,"value":1133},{"type":993,"tag":1026,"props":12837,"children":12838},{"class":1028,"line":611},[12839],{"type":993,"tag":1026,"props":12840,"children":12841},{"style":1032},[12842],{"type":998,"value":12843},"# Alignment examples\n",{"type":993,"tag":1026,"props":12845,"children":12846},{"class":1028,"line":621},[12847,12851,12855,12860,12865,12869,12874,12879,12884,12888,12893,12897,12902,12906,12911],{"type":993,"tag":1026,"props":12848,"children":12849},{"style":1041},[12850],{"type":998,"value":1696},{"type":993,"tag":1026,"props":12852,"children":12853},{"style":1047},[12854],{"type":998,"value":1050},{"type":993,"tag":1026,"props":12856,"children":12857},{"style":1041},[12858],{"type":998,"value":12859}," [(",{"type":993,"tag":1026,"props":12861,"children":12862},{"style":1053},[12863],{"type":998,"value":12864},"\"Apples\"",{"type":993,"tag":1026,"props":12866,"children":12867},{"style":1041},[12868],{"type":998,"value":1723},{"type":993,"tag":1026,"props":12870,"children":12871},{"style":1071},[12872],{"type":998,"value":12873},"5",{"type":993,"tag":1026,"props":12875,"children":12876},{"style":1041},[12877],{"type":998,"value":12878},"), (",{"type":993,"tag":1026,"props":12880,"children":12881},{"style":1053},[12882],{"type":998,"value":12883},"\"Bananas\"",{"type":993,"tag":1026,"props":12885,"children":12886},{"style":1041},[12887],{"type":998,"value":1723},{"type":993,"tag":1026,"props":12889,"children":12890},{"style":1071},[12891],{"type":998,"value":12892},"12",{"type":993,"tag":1026,"props":12894,"children":12895},{"style":1041},[12896],{"type":998,"value":12878},{"type":993,"tag":1026,"props":12898,"children":12899},{"style":1053},[12900],{"type":998,"value":12901},"\"Cherries\"",{"type":993,"tag":1026,"props":12903,"children":12904},{"style":1041},[12905],{"type":998,"value":1723},{"type":993,"tag":1026,"props":12907,"children":12908},{"style":1071},[12909],{"type":998,"value":12910},"8",{"type":993,"tag":1026,"props":12912,"children":12913},{"style":1041},[12914],{"type":998,"value":12915},")]\n",{"type":993,"tag":1026,"props":12917,"children":12918},{"class":1028,"line":630},[12919,12923,12927,12931,12935,12939,12944,12948,12952,12956,12961,12965,12969,12973],{"type":993,"tag":1026,"props":12920,"children":12921},{"style":1071},[12922],{"type":998,"value":1209},{"type":993,"tag":1026,"props":12924,"children":12925},{"style":1041},[12926],{"type":998,"value":1226},{"type":993,"tag":1026,"props":12928,"children":12929},{"style":1047},[12930],{"type":998,"value":1231},{"type":993,"tag":1026,"props":12932,"children":12933},{"style":1053},[12934],{"type":998,"value":1301},{"type":993,"tag":1026,"props":12936,"children":12937},{"style":1071},[12938],{"type":998,"value":5490},{"type":993,"tag":1026,"props":12940,"children":12941},{"style":1053},[12942],{"type":998,"value":12943},"'Item'",{"type":993,"tag":1026,"props":12945,"children":12946},{"style":1047},[12947],{"type":998,"value":3352},{"type":993,"tag":1026,"props":12949,"children":12950},{"style":1071},[12951],{"type":998,"value":1178},{"type":993,"tag":1026,"props":12953,"children":12954},{"style":1071},[12955],{"type":998,"value":3361},{"type":993,"tag":1026,"props":12957,"children":12958},{"style":1053},[12959],{"type":998,"value":12960},"'Quantity'",{"type":993,"tag":1026,"props":12962,"children":12963},{"style":1047},[12964],{"type":998,"value":11352},{"type":993,"tag":1026,"props":12966,"children":12967},{"style":1071},[12968],{"type":998,"value":1178},{"type":993,"tag":1026,"props":12970,"children":12971},{"style":1053},[12972],{"type":998,"value":1301},{"type":993,"tag":1026,"props":12974,"children":12975},{"style":1041},[12976],{"type":998,"value":1281},{"type":993,"tag":1026,"props":12978,"children":12979},{"class":1028,"line":639},[12980,12984,12988,12992,12996,13001],{"type":993,"tag":1026,"props":12981,"children":12982},{"style":1071},[12983],{"type":998,"value":1209},{"type":993,"tag":1026,"props":12985,"children":12986},{"style":1041},[12987],{"type":998,"value":1226},{"type":993,"tag":1026,"props":12989,"children":12990},{"style":1053},[12991],{"type":998,"value":1868},{"type":993,"tag":1026,"props":12993,"children":12994},{"style":1047},[12995],{"type":998,"value":1873},{"type":993,"tag":1026,"props":12997,"children":12998},{"style":1071},[12999],{"type":998,"value":13000}," 20",{"type":993,"tag":1026,"props":13002,"children":13003},{"style":1041},[13004],{"type":998,"value":1281},{"type":993,"tag":1026,"props":13006,"children":13007},{"class":1028,"line":648},[13008,13012,13017,13021],{"type":993,"tag":1026,"props":13009,"children":13010},{"style":1047},[13011],{"type":998,"value":1897},{"type":993,"tag":1026,"props":13013,"children":13014},{"style":1041},[13015],{"type":998,"value":13016}," item, qty ",{"type":993,"tag":1026,"props":13018,"children":13019},{"style":1047},[13020],{"type":998,"value":1907},{"type":993,"tag":1026,"props":13022,"children":13023},{"style":1041},[13024],{"type":998,"value":1912},{"type":993,"tag":1026,"props":13026,"children":13027},{"class":1028,"line":657},[13028,13032,13036,13040,13044,13048,13053,13057,13061,13065,13070,13074,13078,13082],{"type":993,"tag":1026,"props":13029,"children":13030},{"style":1071},[13031],{"type":998,"value":1920},{"type":993,"tag":1026,"props":13033,"children":13034},{"style":1041},[13035],{"type":998,"value":1226},{"type":993,"tag":1026,"props":13037,"children":13038},{"style":1047},[13039],{"type":998,"value":1231},{"type":993,"tag":1026,"props":13041,"children":13042},{"style":1053},[13043],{"type":998,"value":1301},{"type":993,"tag":1026,"props":13045,"children":13046},{"style":1071},[13047],{"type":998,"value":1168},{"type":993,"tag":1026,"props":13049,"children":13050},{"style":1041},[13051],{"type":998,"value":13052},"item",{"type":993,"tag":1026,"props":13054,"children":13055},{"style":1047},[13056],{"type":998,"value":3352},{"type":993,"tag":1026,"props":13058,"children":13059},{"style":1071},[13060],{"type":998,"value":1178},{"type":993,"tag":1026,"props":13062,"children":13063},{"style":1071},[13064],{"type":998,"value":3361},{"type":993,"tag":1026,"props":13066,"children":13067},{"style":1041},[13068],{"type":998,"value":13069},"qty",{"type":993,"tag":1026,"props":13071,"children":13072},{"style":1047},[13073],{"type":998,"value":11352},{"type":993,"tag":1026,"props":13075,"children":13076},{"style":1071},[13077],{"type":998,"value":1178},{"type":993,"tag":1026,"props":13079,"children":13080},{"style":1053},[13081],{"type":998,"value":1301},{"type":993,"tag":1026,"props":13083,"children":13084},{"style":1041},[13085],{"type":998,"value":1281},{"type":993,"tag":1001,"props":13087,"children":13088},{},[13089],{"type":993,"tag":2141,"props":13090,"children":13091},{},[13092],{"type":998,"value":13093},"Key Learning Points:",{"type":993,"tag":2155,"props":13095,"children":13096},{},[13097,13130,13148,13166,13184],{"type":993,"tag":2159,"props":13098,"children":13099},{},[13100,13102,13107,13109,13114,13116,13121,13123,13128],{"type":998,"value":13101},"📌 ",{"type":993,"tag":2141,"props":13103,"children":13104},{},[13105],{"type":998,"value":13106},"f-string alignment",{"type":998,"value":13108},": Use ",{"type":993,"tag":1022,"props":13110,"children":13112},{"className":13111},[],[13113],{"type":998,"value":2292},{"type":998,"value":13115}," for left, ",{"type":993,"tag":1022,"props":13117,"children":13119},{"className":13118},[],[13120],{"type":998,"value":2300},{"type":998,"value":13122}," for right, ",{"type":993,"tag":1022,"props":13124,"children":13126},{"className":13125},[],[13127],{"type":998,"value":2308},{"type":998,"value":13129}," for center alignment",{"type":993,"tag":2159,"props":13131,"children":13132},{},[13133,13134,13139,13140,13146],{"type":998,"value":13101},{"type":993,"tag":2141,"props":13135,"children":13136},{},[13137],{"type":998,"value":13138},"Width specification",{"type":998,"value":2168},{"type":993,"tag":1022,"props":13141,"children":13143},{"className":13142},[],[13144],{"type":998,"value":13145},"{value:10}",{"type":998,"value":13147}," sets minimum width of 10 characters",{"type":993,"tag":2159,"props":13149,"children":13150},{},[13151,13152,13157,13158,13164],{"type":998,"value":13101},{"type":993,"tag":2141,"props":13153,"children":13154},{},[13155],{"type":998,"value":13156},"Decimal formatting",{"type":998,"value":2168},{"type":993,"tag":1022,"props":13159,"children":13161},{"className":13160},[],[13162],{"type":998,"value":13163},"{value:.2f}",{"type":998,"value":13165}," shows 2 decimal places",{"type":993,"tag":2159,"props":13167,"children":13168},{},[13169,13170,13175,13176,13182],{"type":998,"value":13101},{"type":993,"tag":2141,"props":13171,"children":13172},{},[13173],{"type":998,"value":13174},"Percentage formatting",{"type":998,"value":2168},{"type":993,"tag":1022,"props":13177,"children":13179},{"className":13178},[],[13180],{"type":998,"value":13181},"{value:.1%}",{"type":998,"value":13183}," converts decimal to percentage",{"type":993,"tag":2159,"props":13185,"children":13186},{},[13187,13188,13193,13194,13200],{"type":998,"value":13101},{"type":993,"tag":2141,"props":13189,"children":13190},{},[13191],{"type":998,"value":13192},"Number separators",{"type":998,"value":2168},{"type":993,"tag":1022,"props":13195,"children":13197},{"className":13196},[],[13198],{"type":998,"value":13199},"{value:,}",{"type":998,"value":13201}," adds commas to large numbers",{"type":993,"tag":2119,"props":13203,"children":13205},{"id":13204},"essential-text-formatting-methods-and-patterns",[13206],{"type":998,"value":13207},"Essential Text Formatting Methods and Patterns",{"type":993,"tag":1001,"props":13209,"children":13210},{},[13211],{"type":998,"value":13212},"Understanding core formatting techniques enables professional output creation and data presentation.",{"type":993,"tag":13214,"props":13215,"children":13216},"table",{},[13217,13245],{"type":993,"tag":13218,"props":13219,"children":13220},"thead",{},[13221],{"type":993,"tag":13222,"props":13223,"children":13224},"tr",{},[13225,13231,13236,13240],{"type":993,"tag":13226,"props":13227,"children":13228},"th",{},[13229],{"type":998,"value":13230},"Format Type",{"type":993,"tag":13226,"props":13232,"children":13233},{},[13234],{"type":998,"value":13235},"Purpose",{"type":993,"tag":13226,"props":13237,"children":13238},{},[13239],{"type":998,"value":2202},{"type":993,"tag":13226,"props":13241,"children":13242},{},[13243],{"type":998,"value":13244},"Result",{"type":993,"tag":13246,"props":13247,"children":13248},"tbody",{},[13249,13281,13316,13351,13385,13420,13454,13489,13523,13558,13588],{"type":993,"tag":13222,"props":13250,"children":13251},{},[13252,13262,13267,13276],{"type":993,"tag":13253,"props":13254,"children":13255},"td",{},[13256],{"type":993,"tag":1022,"props":13257,"children":13259},{"className":13258},[],[13260],{"type":998,"value":13261},"f\"{var}\"",{"type":993,"tag":13253,"props":13263,"children":13264},{},[13265],{"type":998,"value":13266},"F-string variable insertion",{"type":993,"tag":13253,"props":13268,"children":13269},{},[13270],{"type":993,"tag":1022,"props":13271,"children":13273},{"className":13272},[],[13274],{"type":998,"value":13275},"f\"Hello {name}\"",{"type":993,"tag":13253,"props":13277,"children":13278},{},[13279],{"type":998,"value":13280},"\"Hello Alice\"",{"type":993,"tag":13222,"props":13282,"children":13283},{},[13284,13293,13298,13307],{"type":993,"tag":13253,"props":13285,"children":13286},{},[13287],{"type":993,"tag":1022,"props":13288,"children":13290},{"className":13289},[],[13291],{"type":998,"value":13292},"f\"{value:.2f}\"",{"type":993,"tag":13253,"props":13294,"children":13295},{},[13296],{"type":998,"value":13297},"Decimal places",{"type":993,"tag":13253,"props":13299,"children":13300},{},[13301],{"type":993,"tag":1022,"props":13302,"children":13304},{"className":13303},[],[13305],{"type":998,"value":13306},"f\"{3.14159:.2f}\"",{"type":993,"tag":13253,"props":13308,"children":13309},{},[13310],{"type":993,"tag":1022,"props":13311,"children":13313},{"className":13312},[],[13314],{"type":998,"value":13315},"\"3.14\"",{"type":993,"tag":13222,"props":13317,"children":13318},{},[13319,13328,13333,13342],{"type":993,"tag":13253,"props":13320,"children":13321},{},[13322],{"type":993,"tag":1022,"props":13323,"children":13325},{"className":13324},[],[13326],{"type":998,"value":13327},"f\"{value:,}\"",{"type":993,"tag":13253,"props":13329,"children":13330},{},[13331],{"type":998,"value":13332},"Thousands separator",{"type":993,"tag":13253,"props":13334,"children":13335},{},[13336],{"type":993,"tag":1022,"props":13337,"children":13339},{"className":13338},[],[13340],{"type":998,"value":13341},"f\"{1234567:,}\"",{"type":993,"tag":13253,"props":13343,"children":13344},{},[13345],{"type":993,"tag":1022,"props":13346,"children":13348},{"className":13347},[],[13349],{"type":998,"value":13350},"\"1,234,567\"",{"type":993,"tag":13222,"props":13352,"children":13353},{},[13354,13363,13367,13376],{"type":993,"tag":13253,"props":13355,"children":13356},{},[13357],{"type":993,"tag":1022,"props":13358,"children":13360},{"className":13359},[],[13361],{"type":998,"value":13362},"f\"{value:.1%}\"",{"type":993,"tag":13253,"props":13364,"children":13365},{},[13366],{"type":998,"value":2452},{"type":993,"tag":13253,"props":13368,"children":13369},{},[13370],{"type":993,"tag":1022,"props":13371,"children":13373},{"className":13372},[],[13374],{"type":998,"value":13375},"f\"{0.123:.1%}\"",{"type":993,"tag":13253,"props":13377,"children":13378},{},[13379],{"type":993,"tag":1022,"props":13380,"children":13382},{"className":13381},[],[13383],{"type":998,"value":13384},"\"12.3%\"",{"type":993,"tag":13222,"props":13386,"children":13387},{},[13388,13397,13402,13411],{"type":993,"tag":13253,"props":13389,"children":13390},{},[13391],{"type":993,"tag":1022,"props":13392,"children":13394},{"className":13393},[],[13395],{"type":998,"value":13396},"f\"{text:\u003C10}\"",{"type":993,"tag":13253,"props":13398,"children":13399},{},[13400],{"type":998,"value":13401},"Left align",{"type":993,"tag":13253,"props":13403,"children":13404},{},[13405],{"type":993,"tag":1022,"props":13406,"children":13408},{"className":13407},[],[13409],{"type":998,"value":13410},"f\"{'hello':\u003C10}\"",{"type":993,"tag":13253,"props":13412,"children":13413},{},[13414],{"type":993,"tag":1022,"props":13415,"children":13417},{"className":13416},[],[13418],{"type":998,"value":13419},"\"hello     \"",{"type":993,"tag":13222,"props":13421,"children":13422},{},[13423,13431,13436,13445],{"type":993,"tag":13253,"props":13424,"children":13425},{},[13426],{"type":993,"tag":1022,"props":13427,"children":13429},{"className":13428},[],[13430],{"type":998,"value":2492},{"type":993,"tag":13253,"props":13432,"children":13433},{},[13434],{"type":998,"value":13435},"Right align",{"type":993,"tag":13253,"props":13437,"children":13438},{},[13439],{"type":993,"tag":1022,"props":13440,"children":13442},{"className":13441},[],[13443],{"type":998,"value":13444},"f\"{'hello':>10}\"",{"type":993,"tag":13253,"props":13446,"children":13447},{},[13448],{"type":993,"tag":1022,"props":13449,"children":13451},{"className":13450},[],[13452],{"type":998,"value":13453},"\"     hello\"",{"type":993,"tag":13222,"props":13455,"children":13456},{},[13457,13466,13471,13480],{"type":993,"tag":13253,"props":13458,"children":13459},{},[13460],{"type":993,"tag":1022,"props":13461,"children":13463},{"className":13462},[],[13464],{"type":998,"value":13465},"f\"{text:^10}\"",{"type":993,"tag":13253,"props":13467,"children":13468},{},[13469],{"type":998,"value":13470},"Center align",{"type":993,"tag":13253,"props":13472,"children":13473},{},[13474],{"type":993,"tag":1022,"props":13475,"children":13477},{"className":13476},[],[13478],{"type":998,"value":13479},"f\"{'hello':^10}\"",{"type":993,"tag":13253,"props":13481,"children":13482},{},[13483],{"type":993,"tag":1022,"props":13484,"children":13486},{"className":13485},[],[13487],{"type":998,"value":13488},"\"  hello   \"",{"type":993,"tag":13222,"props":13490,"children":13491},{},[13492,13500,13505,13514],{"type":993,"tag":13253,"props":13493,"children":13494},{},[13495],{"type":993,"tag":1022,"props":13496,"children":13498},{"className":13497},[],[13499],{"type":998,"value":2476},{"type":993,"tag":13253,"props":13501,"children":13502},{},[13503],{"type":998,"value":13504},"Zero padding",{"type":993,"tag":13253,"props":13506,"children":13507},{},[13508],{"type":993,"tag":1022,"props":13509,"children":13511},{"className":13510},[],[13512],{"type":998,"value":13513},"f\"{42:05d}\"",{"type":993,"tag":13253,"props":13515,"children":13516},{},[13517],{"type":993,"tag":1022,"props":13518,"children":13520},{"className":13519},[],[13521],{"type":998,"value":13522},"\"00042\"",{"type":993,"tag":13222,"props":13524,"children":13525},{},[13526,13535,13540,13549],{"type":993,"tag":13253,"props":13527,"children":13528},{},[13529],{"type":993,"tag":1022,"props":13530,"children":13532},{"className":13531},[],[13533],{"type":998,"value":13534},"f\"{value:.2e}\"",{"type":993,"tag":13253,"props":13536,"children":13537},{},[13538],{"type":998,"value":13539},"Scientific notation",{"type":993,"tag":13253,"props":13541,"children":13542},{},[13543],{"type":993,"tag":1022,"props":13544,"children":13546},{"className":13545},[],[13547],{"type":998,"value":13548},"f\"{1234567:.2e}\"",{"type":993,"tag":13253,"props":13550,"children":13551},{},[13552],{"type":993,"tag":1022,"props":13553,"children":13555},{"className":13554},[],[13556],{"type":998,"value":13557},"\"1.23e+06\"",{"type":993,"tag":13222,"props":13559,"children":13560},{},[13561,13570,13575,13584],{"type":993,"tag":13253,"props":13562,"children":13563},{},[13564],{"type":993,"tag":1022,"props":13565,"children":13567},{"className":13566},[],[13568],{"type":998,"value":13569},"\"{}\".format(var)",{"type":993,"tag":13253,"props":13571,"children":13572},{},[13573],{"type":998,"value":13574},"Format method",{"type":993,"tag":13253,"props":13576,"children":13577},{},[13578],{"type":993,"tag":1022,"props":13579,"children":13581},{"className":13580},[],[13582],{"type":998,"value":13583},"\"Hello {}\".format(name)",{"type":993,"tag":13253,"props":13585,"children":13586},{},[13587],{"type":998,"value":13280},{"type":993,"tag":13222,"props":13589,"children":13590},{},[13591,13600,13604,13612],{"type":993,"tag":13253,"props":13592,"children":13593},{},[13594],{"type":993,"tag":1022,"props":13595,"children":13597},{"className":13596},[],[13598],{"type":998,"value":13599},"f\"{var:05d}\"",{"type":993,"tag":13253,"props":13601,"children":13602},{},[13603],{"type":998,"value":13504},{"type":993,"tag":13253,"props":13605,"children":13606},{},[13607],{"type":993,"tag":1022,"props":13608,"children":13610},{"className":13609},[],[13611],{"type":998,"value":13513},{"type":993,"tag":13253,"props":13613,"children":13614},{},[13615],{"type":998,"value":13522},{"type":993,"tag":2119,"props":13617,"children":13619},{"id":13618},"test-your-knowledge",[13620],{"type":998,"value":13621},"Test Your Knowledge",{"type":993,"tag":1001,"props":13623,"children":13624},{},[13625],{"type":998,"value":13626},"Test what you've learned about text formatting:",{"type":993,"tag":13628,"props":13629,"children":13633},"redirect-button",{"icon":13630,"label":13631,"url":13632},"pi pi-send","Take Quiz","/tutorial-quiz/python/text-formatting",[],{"type":993,"tag":2119,"props":13635,"children":13637},{"id":13636},"whats-next",[13638],{"type":998,"value":13639},"What's Next?",{"type":993,"tag":1001,"props":13641,"children":13642},{},[13643],{"type":998,"value":13644},"Now that you can format text professionally, you're ready to explore file operations. Learn how to read from and write to files, manage file systems, and persist data for your applications.",{"type":993,"tag":1001,"props":13646,"children":13647},{},[13648,13650,13655],{"type":998,"value":13649},"Ready to continue? Check out our lesson on ",{"type":993,"tag":13651,"props":13652,"children":13653},"a",{"href":808},[13654],{"type":998,"value":809},{"type":998,"value":7440},{"type":993,"tag":13657,"props":13658,"children":13659},"style",{},[13660],{"type":998,"value":13661},"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":13663},[13664,13667,13671,13674,13678,13679,13680],{"id":2121,"depth":27,"text":2124,"children":13665},[13666],{"id":2515,"depth":36,"text":2518},{"id":4035,"depth":27,"text":4038,"children":13668},[13669,13670],{"id":4041,"depth":36,"text":4044},{"id":5138,"depth":36,"text":5141},{"id":6924,"depth":27,"text":6927,"children":13672},[13673],{"id":6930,"depth":36,"text":6933},{"id":8623,"depth":27,"text":8626,"children":13675},[13676,13677],{"id":8629,"depth":36,"text":8632},{"id":11238,"depth":36,"text":11241},{"id":13204,"depth":27,"text":13207},{"id":13618,"depth":27,"text":13621},{"id":13636,"depth":27,"text":13639},1782373749875]