[{"data":1,"prerenderedAt":13978},["ShallowReactive",2],{"tutorials-python":3,"category-items-python":987,"content-/python/mathematical-operations":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",[753],{"_path":754,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":755,"description":756,"slug":757,"parentId":735,"order":758,"body":989,"_type":15,"_id":759,"_source":17,"_file":760,"_stem":761,"_extension":20},{"type":990,"children":991,"toc":13961},"root",[992,1000,1015,1020,1856,1863,1868,2382,2389,2394,3708,3714,3719,4949,4955,4960,6471,6477,6482,6488,6493,7929,7935,7940,9921,9927,9933,9938,12117,12222,12227,12792,12798,13903,13915,13921,13926,13933,13939,13944,13955],{"type":993,"tag":994,"props":995,"children":996},"element","h1",{"id":757},[997],{"type":998,"value":999},"text","🧮 Mathematical Operations",{"type":993,"tag":1001,"props":1002,"children":1003},"p",{},[1004,1006,1013],{"type":998,"value":1005},"Python provides extensive mathematical capabilities through built-in functions and the ",{"type":993,"tag":1007,"props":1008,"children":1010},"code",{"className":1009},[],[1011],{"type":998,"value":1012},"math",{"type":998,"value":1014}," module, enabling you to perform complex calculations, statistical analysis, and scientific computing. These tools are essential for data analysis, financial calculations, scientific research, and many other applications.",{"type":993,"tag":1001,"props":1016,"children":1017},{},[1018],{"type":998,"value":1019},"Think of Python's mathematical functions as a comprehensive scientific calculator - from basic trigonometry to advanced statistical operations, you have powerful computational tools at your fingertips for solving real-world problems.",{"type":993,"tag":1021,"props":1022,"children":1023},"code-try",{},[1024],{"type":993,"tag":1025,"props":1026,"children":1029},"pre",{"className":1027,"code":1028,"language":6,"meta":8,"style":8},"language-python shiki shiki-themes github-light github-dark","import math\nimport statistics\n\n# Basic mathematical functions\nnumbers = [10, 15, 20, 25, 30]\n\n# Statistical calculations\nmean_value = statistics.mean(numbers)\nmedian_value = statistics.median(numbers)\nstd_dev = statistics.stdev(numbers)\n\nprint(f\"Data: {numbers}\")\nprint(f\"Mean: {mean_value}\")\nprint(f\"Median: {median_value}\")\nprint(f\"Standard Deviation: {std_dev:.2f}\")\n\n# Advanced math functions\nangle = math.pi / 4  # 45 degrees in radians\nprint(f\"\\nTrigonometry for {math.degrees(angle)} degrees:\")\nprint(f\"Sine: {math.sin(angle):.3f}\")\nprint(f\"Cosine: {math.cos(angle):.3f}\")\nprint(f\"Tangent: {math.tan(angle):.3f}\")\n\n# Logarithmic and exponential\nvalue = 100\nprint(f\"\\nLogarithmic operations for {value}:\")\nprint(f\"Natural log: {math.log(value):.3f}\")\nprint(f\"Log base 10: {math.log10(value):.3f}\")\nprint(f\"Exponential: {math.exp(2):.3f}\")\n",[1030],{"type":993,"tag":1007,"props":1031,"children":1032},{"__ignoreMap":8},[1033,1050,1062,1070,1079,1145,1152,1160,1177,1194,1211,1218,1267,1308,1349,1395,1402,1410,1442,1493,1539,1584,1629,1636,1644,1661,1711,1756,1801],{"type":993,"tag":1034,"props":1035,"children":1037},"span",{"class":1036,"line":12},"line",[1038,1044],{"type":993,"tag":1034,"props":1039,"children":1041},{"style":1040},"--shiki-default:#D73A49;--shiki-app-dark-mode:#F97583",[1042],{"type":998,"value":1043},"import",{"type":993,"tag":1034,"props":1045,"children":1047},{"style":1046},"--shiki-default:#24292E;--shiki-app-dark-mode:#E1E4E8",[1048],{"type":998,"value":1049}," math\n",{"type":993,"tag":1034,"props":1051,"children":1052},{"class":1036,"line":27},[1053,1057],{"type":993,"tag":1034,"props":1054,"children":1055},{"style":1040},[1056],{"type":998,"value":1043},{"type":993,"tag":1034,"props":1058,"children":1059},{"style":1046},[1060],{"type":998,"value":1061}," statistics\n",{"type":993,"tag":1034,"props":1063,"children":1064},{"class":1036,"line":36},[1065],{"type":993,"tag":1034,"props":1066,"children":1067},{"emptyLinePlaceholder":13},[1068],{"type":998,"value":1069},"\n",{"type":993,"tag":1034,"props":1071,"children":1072},{"class":1036,"line":45},[1073],{"type":993,"tag":1034,"props":1074,"children":1076},{"style":1075},"--shiki-default:#6A737D;--shiki-app-dark-mode:#6A737D",[1077],{"type":998,"value":1078},"# Basic mathematical functions\n",{"type":993,"tag":1034,"props":1080,"children":1081},{"class":1036,"line":54},[1082,1087,1092,1097,1103,1108,1113,1117,1122,1126,1131,1135,1140],{"type":993,"tag":1034,"props":1083,"children":1084},{"style":1046},[1085],{"type":998,"value":1086},"numbers ",{"type":993,"tag":1034,"props":1088,"children":1089},{"style":1040},[1090],{"type":998,"value":1091},"=",{"type":993,"tag":1034,"props":1093,"children":1094},{"style":1046},[1095],{"type":998,"value":1096}," [",{"type":993,"tag":1034,"props":1098,"children":1100},{"style":1099},"--shiki-default:#005CC5;--shiki-app-dark-mode:#79B8FF",[1101],{"type":998,"value":1102},"10",{"type":993,"tag":1034,"props":1104,"children":1105},{"style":1046},[1106],{"type":998,"value":1107},", ",{"type":993,"tag":1034,"props":1109,"children":1110},{"style":1099},[1111],{"type":998,"value":1112},"15",{"type":993,"tag":1034,"props":1114,"children":1115},{"style":1046},[1116],{"type":998,"value":1107},{"type":993,"tag":1034,"props":1118,"children":1119},{"style":1099},[1120],{"type":998,"value":1121},"20",{"type":993,"tag":1034,"props":1123,"children":1124},{"style":1046},[1125],{"type":998,"value":1107},{"type":993,"tag":1034,"props":1127,"children":1128},{"style":1099},[1129],{"type":998,"value":1130},"25",{"type":993,"tag":1034,"props":1132,"children":1133},{"style":1046},[1134],{"type":998,"value":1107},{"type":993,"tag":1034,"props":1136,"children":1137},{"style":1099},[1138],{"type":998,"value":1139},"30",{"type":993,"tag":1034,"props":1141,"children":1142},{"style":1046},[1143],{"type":998,"value":1144},"]\n",{"type":993,"tag":1034,"props":1146,"children":1147},{"class":1036,"line":63},[1148],{"type":993,"tag":1034,"props":1149,"children":1150},{"emptyLinePlaceholder":13},[1151],{"type":998,"value":1069},{"type":993,"tag":1034,"props":1153,"children":1154},{"class":1036,"line":72},[1155],{"type":993,"tag":1034,"props":1156,"children":1157},{"style":1075},[1158],{"type":998,"value":1159},"# Statistical calculations\n",{"type":993,"tag":1034,"props":1161,"children":1162},{"class":1036,"line":81},[1163,1168,1172],{"type":993,"tag":1034,"props":1164,"children":1165},{"style":1046},[1166],{"type":998,"value":1167},"mean_value ",{"type":993,"tag":1034,"props":1169,"children":1170},{"style":1040},[1171],{"type":998,"value":1091},{"type":993,"tag":1034,"props":1173,"children":1174},{"style":1046},[1175],{"type":998,"value":1176}," statistics.mean(numbers)\n",{"type":993,"tag":1034,"props":1178,"children":1179},{"class":1036,"line":91},[1180,1185,1189],{"type":993,"tag":1034,"props":1181,"children":1182},{"style":1046},[1183],{"type":998,"value":1184},"median_value ",{"type":993,"tag":1034,"props":1186,"children":1187},{"style":1040},[1188],{"type":998,"value":1091},{"type":993,"tag":1034,"props":1190,"children":1191},{"style":1046},[1192],{"type":998,"value":1193}," statistics.median(numbers)\n",{"type":993,"tag":1034,"props":1195,"children":1196},{"class":1036,"line":100},[1197,1202,1206],{"type":993,"tag":1034,"props":1198,"children":1199},{"style":1046},[1200],{"type":998,"value":1201},"std_dev ",{"type":993,"tag":1034,"props":1203,"children":1204},{"style":1040},[1205],{"type":998,"value":1091},{"type":993,"tag":1034,"props":1207,"children":1208},{"style":1046},[1209],{"type":998,"value":1210}," statistics.stdev(numbers)\n",{"type":993,"tag":1034,"props":1212,"children":1213},{"class":1036,"line":109},[1214],{"type":993,"tag":1034,"props":1215,"children":1216},{"emptyLinePlaceholder":13},[1217],{"type":998,"value":1069},{"type":993,"tag":1034,"props":1219,"children":1220},{"class":1036,"line":118},[1221,1226,1231,1236,1242,1247,1252,1257,1262],{"type":993,"tag":1034,"props":1222,"children":1223},{"style":1099},[1224],{"type":998,"value":1225},"print",{"type":993,"tag":1034,"props":1227,"children":1228},{"style":1046},[1229],{"type":998,"value":1230},"(",{"type":993,"tag":1034,"props":1232,"children":1233},{"style":1040},[1234],{"type":998,"value":1235},"f",{"type":993,"tag":1034,"props":1237,"children":1239},{"style":1238},"--shiki-default:#032F62;--shiki-app-dark-mode:#9ECBFF",[1240],{"type":998,"value":1241},"\"Data: ",{"type":993,"tag":1034,"props":1243,"children":1244},{"style":1099},[1245],{"type":998,"value":1246},"{",{"type":993,"tag":1034,"props":1248,"children":1249},{"style":1046},[1250],{"type":998,"value":1251},"numbers",{"type":993,"tag":1034,"props":1253,"children":1254},{"style":1099},[1255],{"type":998,"value":1256},"}",{"type":993,"tag":1034,"props":1258,"children":1259},{"style":1238},[1260],{"type":998,"value":1261},"\"",{"type":993,"tag":1034,"props":1263,"children":1264},{"style":1046},[1265],{"type":998,"value":1266},")\n",{"type":993,"tag":1034,"props":1268,"children":1269},{"class":1036,"line":127},[1270,1274,1278,1282,1287,1291,1296,1300,1304],{"type":993,"tag":1034,"props":1271,"children":1272},{"style":1099},[1273],{"type":998,"value":1225},{"type":993,"tag":1034,"props":1275,"children":1276},{"style":1046},[1277],{"type":998,"value":1230},{"type":993,"tag":1034,"props":1279,"children":1280},{"style":1040},[1281],{"type":998,"value":1235},{"type":993,"tag":1034,"props":1283,"children":1284},{"style":1238},[1285],{"type":998,"value":1286},"\"Mean: ",{"type":993,"tag":1034,"props":1288,"children":1289},{"style":1099},[1290],{"type":998,"value":1246},{"type":993,"tag":1034,"props":1292,"children":1293},{"style":1046},[1294],{"type":998,"value":1295},"mean_value",{"type":993,"tag":1034,"props":1297,"children":1298},{"style":1099},[1299],{"type":998,"value":1256},{"type":993,"tag":1034,"props":1301,"children":1302},{"style":1238},[1303],{"type":998,"value":1261},{"type":993,"tag":1034,"props":1305,"children":1306},{"style":1046},[1307],{"type":998,"value":1266},{"type":993,"tag":1034,"props":1309,"children":1310},{"class":1036,"line":136},[1311,1315,1319,1323,1328,1332,1337,1341,1345],{"type":993,"tag":1034,"props":1312,"children":1313},{"style":1099},[1314],{"type":998,"value":1225},{"type":993,"tag":1034,"props":1316,"children":1317},{"style":1046},[1318],{"type":998,"value":1230},{"type":993,"tag":1034,"props":1320,"children":1321},{"style":1040},[1322],{"type":998,"value":1235},{"type":993,"tag":1034,"props":1324,"children":1325},{"style":1238},[1326],{"type":998,"value":1327},"\"Median: ",{"type":993,"tag":1034,"props":1329,"children":1330},{"style":1099},[1331],{"type":998,"value":1246},{"type":993,"tag":1034,"props":1333,"children":1334},{"style":1046},[1335],{"type":998,"value":1336},"median_value",{"type":993,"tag":1034,"props":1338,"children":1339},{"style":1099},[1340],{"type":998,"value":1256},{"type":993,"tag":1034,"props":1342,"children":1343},{"style":1238},[1344],{"type":998,"value":1261},{"type":993,"tag":1034,"props":1346,"children":1347},{"style":1046},[1348],{"type":998,"value":1266},{"type":993,"tag":1034,"props":1350,"children":1351},{"class":1036,"line":146},[1352,1356,1360,1364,1369,1373,1378,1383,1387,1391],{"type":993,"tag":1034,"props":1353,"children":1354},{"style":1099},[1355],{"type":998,"value":1225},{"type":993,"tag":1034,"props":1357,"children":1358},{"style":1046},[1359],{"type":998,"value":1230},{"type":993,"tag":1034,"props":1361,"children":1362},{"style":1040},[1363],{"type":998,"value":1235},{"type":993,"tag":1034,"props":1365,"children":1366},{"style":1238},[1367],{"type":998,"value":1368},"\"Standard Deviation: ",{"type":993,"tag":1034,"props":1370,"children":1371},{"style":1099},[1372],{"type":998,"value":1246},{"type":993,"tag":1034,"props":1374,"children":1375},{"style":1046},[1376],{"type":998,"value":1377},"std_dev",{"type":993,"tag":1034,"props":1379,"children":1380},{"style":1040},[1381],{"type":998,"value":1382},":.2f",{"type":993,"tag":1034,"props":1384,"children":1385},{"style":1099},[1386],{"type":998,"value":1256},{"type":993,"tag":1034,"props":1388,"children":1389},{"style":1238},[1390],{"type":998,"value":1261},{"type":993,"tag":1034,"props":1392,"children":1393},{"style":1046},[1394],{"type":998,"value":1266},{"type":993,"tag":1034,"props":1396,"children":1397},{"class":1036,"line":155},[1398],{"type":993,"tag":1034,"props":1399,"children":1400},{"emptyLinePlaceholder":13},[1401],{"type":998,"value":1069},{"type":993,"tag":1034,"props":1403,"children":1404},{"class":1036,"line":164},[1405],{"type":993,"tag":1034,"props":1406,"children":1407},{"style":1075},[1408],{"type":998,"value":1409},"# Advanced math functions\n",{"type":993,"tag":1034,"props":1411,"children":1412},{"class":1036,"line":173},[1413,1418,1422,1427,1432,1437],{"type":993,"tag":1034,"props":1414,"children":1415},{"style":1046},[1416],{"type":998,"value":1417},"angle ",{"type":993,"tag":1034,"props":1419,"children":1420},{"style":1040},[1421],{"type":998,"value":1091},{"type":993,"tag":1034,"props":1423,"children":1424},{"style":1046},[1425],{"type":998,"value":1426}," math.pi ",{"type":993,"tag":1034,"props":1428,"children":1429},{"style":1040},[1430],{"type":998,"value":1431},"/",{"type":993,"tag":1034,"props":1433,"children":1434},{"style":1099},[1435],{"type":998,"value":1436}," 4",{"type":993,"tag":1034,"props":1438,"children":1439},{"style":1075},[1440],{"type":998,"value":1441},"  # 45 degrees in radians\n",{"type":993,"tag":1034,"props":1443,"children":1444},{"class":1036,"line":182},[1445,1449,1453,1457,1461,1466,1471,1475,1480,1484,1489],{"type":993,"tag":1034,"props":1446,"children":1447},{"style":1099},[1448],{"type":998,"value":1225},{"type":993,"tag":1034,"props":1450,"children":1451},{"style":1046},[1452],{"type":998,"value":1230},{"type":993,"tag":1034,"props":1454,"children":1455},{"style":1040},[1456],{"type":998,"value":1235},{"type":993,"tag":1034,"props":1458,"children":1459},{"style":1238},[1460],{"type":998,"value":1261},{"type":993,"tag":1034,"props":1462,"children":1463},{"style":1099},[1464],{"type":998,"value":1465},"\\n",{"type":993,"tag":1034,"props":1467,"children":1468},{"style":1238},[1469],{"type":998,"value":1470},"Trigonometry for ",{"type":993,"tag":1034,"props":1472,"children":1473},{"style":1099},[1474],{"type":998,"value":1246},{"type":993,"tag":1034,"props":1476,"children":1477},{"style":1046},[1478],{"type":998,"value":1479},"math.degrees(angle)",{"type":993,"tag":1034,"props":1481,"children":1482},{"style":1099},[1483],{"type":998,"value":1256},{"type":993,"tag":1034,"props":1485,"children":1486},{"style":1238},[1487],{"type":998,"value":1488}," degrees:\"",{"type":993,"tag":1034,"props":1490,"children":1491},{"style":1046},[1492],{"type":998,"value":1266},{"type":993,"tag":1034,"props":1494,"children":1495},{"class":1036,"line":191},[1496,1500,1504,1508,1513,1517,1522,1527,1531,1535],{"type":993,"tag":1034,"props":1497,"children":1498},{"style":1099},[1499],{"type":998,"value":1225},{"type":993,"tag":1034,"props":1501,"children":1502},{"style":1046},[1503],{"type":998,"value":1230},{"type":993,"tag":1034,"props":1505,"children":1506},{"style":1040},[1507],{"type":998,"value":1235},{"type":993,"tag":1034,"props":1509,"children":1510},{"style":1238},[1511],{"type":998,"value":1512},"\"Sine: ",{"type":993,"tag":1034,"props":1514,"children":1515},{"style":1099},[1516],{"type":998,"value":1246},{"type":993,"tag":1034,"props":1518,"children":1519},{"style":1046},[1520],{"type":998,"value":1521},"math.sin(angle)",{"type":993,"tag":1034,"props":1523,"children":1524},{"style":1040},[1525],{"type":998,"value":1526},":.3f",{"type":993,"tag":1034,"props":1528,"children":1529},{"style":1099},[1530],{"type":998,"value":1256},{"type":993,"tag":1034,"props":1532,"children":1533},{"style":1238},[1534],{"type":998,"value":1261},{"type":993,"tag":1034,"props":1536,"children":1537},{"style":1046},[1538],{"type":998,"value":1266},{"type":993,"tag":1034,"props":1540,"children":1541},{"class":1036,"line":201},[1542,1546,1550,1554,1559,1563,1568,1572,1576,1580],{"type":993,"tag":1034,"props":1543,"children":1544},{"style":1099},[1545],{"type":998,"value":1225},{"type":993,"tag":1034,"props":1547,"children":1548},{"style":1046},[1549],{"type":998,"value":1230},{"type":993,"tag":1034,"props":1551,"children":1552},{"style":1040},[1553],{"type":998,"value":1235},{"type":993,"tag":1034,"props":1555,"children":1556},{"style":1238},[1557],{"type":998,"value":1558},"\"Cosine: ",{"type":993,"tag":1034,"props":1560,"children":1561},{"style":1099},[1562],{"type":998,"value":1246},{"type":993,"tag":1034,"props":1564,"children":1565},{"style":1046},[1566],{"type":998,"value":1567},"math.cos(angle)",{"type":993,"tag":1034,"props":1569,"children":1570},{"style":1040},[1571],{"type":998,"value":1526},{"type":993,"tag":1034,"props":1573,"children":1574},{"style":1099},[1575],{"type":998,"value":1256},{"type":993,"tag":1034,"props":1577,"children":1578},{"style":1238},[1579],{"type":998,"value":1261},{"type":993,"tag":1034,"props":1581,"children":1582},{"style":1046},[1583],{"type":998,"value":1266},{"type":993,"tag":1034,"props":1585,"children":1586},{"class":1036,"line":210},[1587,1591,1595,1599,1604,1608,1613,1617,1621,1625],{"type":993,"tag":1034,"props":1588,"children":1589},{"style":1099},[1590],{"type":998,"value":1225},{"type":993,"tag":1034,"props":1592,"children":1593},{"style":1046},[1594],{"type":998,"value":1230},{"type":993,"tag":1034,"props":1596,"children":1597},{"style":1040},[1598],{"type":998,"value":1235},{"type":993,"tag":1034,"props":1600,"children":1601},{"style":1238},[1602],{"type":998,"value":1603},"\"Tangent: ",{"type":993,"tag":1034,"props":1605,"children":1606},{"style":1099},[1607],{"type":998,"value":1246},{"type":993,"tag":1034,"props":1609,"children":1610},{"style":1046},[1611],{"type":998,"value":1612},"math.tan(angle)",{"type":993,"tag":1034,"props":1614,"children":1615},{"style":1040},[1616],{"type":998,"value":1526},{"type":993,"tag":1034,"props":1618,"children":1619},{"style":1099},[1620],{"type":998,"value":1256},{"type":993,"tag":1034,"props":1622,"children":1623},{"style":1238},[1624],{"type":998,"value":1261},{"type":993,"tag":1034,"props":1626,"children":1627},{"style":1046},[1628],{"type":998,"value":1266},{"type":993,"tag":1034,"props":1630,"children":1631},{"class":1036,"line":219},[1632],{"type":993,"tag":1034,"props":1633,"children":1634},{"emptyLinePlaceholder":13},[1635],{"type":998,"value":1069},{"type":993,"tag":1034,"props":1637,"children":1638},{"class":1036,"line":228},[1639],{"type":993,"tag":1034,"props":1640,"children":1641},{"style":1075},[1642],{"type":998,"value":1643},"# Logarithmic and exponential\n",{"type":993,"tag":1034,"props":1645,"children":1646},{"class":1036,"line":238},[1647,1652,1656],{"type":993,"tag":1034,"props":1648,"children":1649},{"style":1046},[1650],{"type":998,"value":1651},"value ",{"type":993,"tag":1034,"props":1653,"children":1654},{"style":1040},[1655],{"type":998,"value":1091},{"type":993,"tag":1034,"props":1657,"children":1658},{"style":1099},[1659],{"type":998,"value":1660}," 100\n",{"type":993,"tag":1034,"props":1662,"children":1663},{"class":1036,"line":247},[1664,1668,1672,1676,1680,1684,1689,1693,1698,1702,1707],{"type":993,"tag":1034,"props":1665,"children":1666},{"style":1099},[1667],{"type":998,"value":1225},{"type":993,"tag":1034,"props":1669,"children":1670},{"style":1046},[1671],{"type":998,"value":1230},{"type":993,"tag":1034,"props":1673,"children":1674},{"style":1040},[1675],{"type":998,"value":1235},{"type":993,"tag":1034,"props":1677,"children":1678},{"style":1238},[1679],{"type":998,"value":1261},{"type":993,"tag":1034,"props":1681,"children":1682},{"style":1099},[1683],{"type":998,"value":1465},{"type":993,"tag":1034,"props":1685,"children":1686},{"style":1238},[1687],{"type":998,"value":1688},"Logarithmic operations for ",{"type":993,"tag":1034,"props":1690,"children":1691},{"style":1099},[1692],{"type":998,"value":1246},{"type":993,"tag":1034,"props":1694,"children":1695},{"style":1046},[1696],{"type":998,"value":1697},"value",{"type":993,"tag":1034,"props":1699,"children":1700},{"style":1099},[1701],{"type":998,"value":1256},{"type":993,"tag":1034,"props":1703,"children":1704},{"style":1238},[1705],{"type":998,"value":1706},":\"",{"type":993,"tag":1034,"props":1708,"children":1709},{"style":1046},[1710],{"type":998,"value":1266},{"type":993,"tag":1034,"props":1712,"children":1713},{"class":1036,"line":256},[1714,1718,1722,1726,1731,1735,1740,1744,1748,1752],{"type":993,"tag":1034,"props":1715,"children":1716},{"style":1099},[1717],{"type":998,"value":1225},{"type":993,"tag":1034,"props":1719,"children":1720},{"style":1046},[1721],{"type":998,"value":1230},{"type":993,"tag":1034,"props":1723,"children":1724},{"style":1040},[1725],{"type":998,"value":1235},{"type":993,"tag":1034,"props":1727,"children":1728},{"style":1238},[1729],{"type":998,"value":1730},"\"Natural log: ",{"type":993,"tag":1034,"props":1732,"children":1733},{"style":1099},[1734],{"type":998,"value":1246},{"type":993,"tag":1034,"props":1736,"children":1737},{"style":1046},[1738],{"type":998,"value":1739},"math.log(value)",{"type":993,"tag":1034,"props":1741,"children":1742},{"style":1040},[1743],{"type":998,"value":1526},{"type":993,"tag":1034,"props":1745,"children":1746},{"style":1099},[1747],{"type":998,"value":1256},{"type":993,"tag":1034,"props":1749,"children":1750},{"style":1238},[1751],{"type":998,"value":1261},{"type":993,"tag":1034,"props":1753,"children":1754},{"style":1046},[1755],{"type":998,"value":1266},{"type":993,"tag":1034,"props":1757,"children":1758},{"class":1036,"line":265},[1759,1763,1767,1771,1776,1780,1785,1789,1793,1797],{"type":993,"tag":1034,"props":1760,"children":1761},{"style":1099},[1762],{"type":998,"value":1225},{"type":993,"tag":1034,"props":1764,"children":1765},{"style":1046},[1766],{"type":998,"value":1230},{"type":993,"tag":1034,"props":1768,"children":1769},{"style":1040},[1770],{"type":998,"value":1235},{"type":993,"tag":1034,"props":1772,"children":1773},{"style":1238},[1774],{"type":998,"value":1775},"\"Log base 10: ",{"type":993,"tag":1034,"props":1777,"children":1778},{"style":1099},[1779],{"type":998,"value":1246},{"type":993,"tag":1034,"props":1781,"children":1782},{"style":1046},[1783],{"type":998,"value":1784},"math.log10(value)",{"type":993,"tag":1034,"props":1786,"children":1787},{"style":1040},[1788],{"type":998,"value":1526},{"type":993,"tag":1034,"props":1790,"children":1791},{"style":1099},[1792],{"type":998,"value":1256},{"type":993,"tag":1034,"props":1794,"children":1795},{"style":1238},[1796],{"type":998,"value":1261},{"type":993,"tag":1034,"props":1798,"children":1799},{"style":1046},[1800],{"type":998,"value":1266},{"type":993,"tag":1034,"props":1802,"children":1803},{"class":1036,"line":274},[1804,1808,1812,1816,1821,1825,1830,1835,1840,1844,1848,1852],{"type":993,"tag":1034,"props":1805,"children":1806},{"style":1099},[1807],{"type":998,"value":1225},{"type":993,"tag":1034,"props":1809,"children":1810},{"style":1046},[1811],{"type":998,"value":1230},{"type":993,"tag":1034,"props":1813,"children":1814},{"style":1040},[1815],{"type":998,"value":1235},{"type":993,"tag":1034,"props":1817,"children":1818},{"style":1238},[1819],{"type":998,"value":1820},"\"Exponential: ",{"type":993,"tag":1034,"props":1822,"children":1823},{"style":1099},[1824],{"type":998,"value":1246},{"type":993,"tag":1034,"props":1826,"children":1827},{"style":1046},[1828],{"type":998,"value":1829},"math.exp(",{"type":993,"tag":1034,"props":1831,"children":1832},{"style":1099},[1833],{"type":998,"value":1834},"2",{"type":993,"tag":1034,"props":1836,"children":1837},{"style":1046},[1838],{"type":998,"value":1839},")",{"type":993,"tag":1034,"props":1841,"children":1842},{"style":1040},[1843],{"type":998,"value":1526},{"type":993,"tag":1034,"props":1845,"children":1846},{"style":1099},[1847],{"type":998,"value":1256},{"type":993,"tag":1034,"props":1849,"children":1850},{"style":1238},[1851],{"type":998,"value":1261},{"type":993,"tag":1034,"props":1853,"children":1854},{"style":1046},[1855],{"type":998,"value":1266},{"type":993,"tag":1857,"props":1858,"children":1860},"h2",{"id":1859},"pythons-mathematical-ecosystem",[1861],{"type":998,"value":1862},"🎯 Python's Mathematical Ecosystem",{"type":993,"tag":1001,"props":1864,"children":1865},{},[1866],{"type":998,"value":1867},"Python offers multiple layers of mathematical functionality, from basic arithmetic to advanced scientific computing libraries.",{"type":993,"tag":1869,"props":1870,"children":1874},"info-box",{"emoji":1871,"title":1872,"type":1873},"🔢","Mathematical Tools in Python","info",[1875,1884,2006,2014,2159,2167,2252,2260,2331,2339],{"type":993,"tag":1001,"props":1876,"children":1877},{},[1878],{"type":993,"tag":1879,"props":1880,"children":1881},"strong",{},[1882],{"type":998,"value":1883},"Built-in Functions:",{"type":993,"tag":1885,"props":1886,"children":1887},"ul",{},[1888,1942,1981],{"type":993,"tag":1889,"props":1890,"children":1891},"li",{},[1892,1894,1900,1901,1907,1908,1914,1915,1920,1921,1927,1928,1934,1935,1941],{"type":998,"value":1893},"Basic arithmetic operators (",{"type":993,"tag":1007,"props":1895,"children":1897},{"className":1896},[],[1898],{"type":998,"value":1899},"+",{"type":998,"value":1107},{"type":993,"tag":1007,"props":1902,"children":1904},{"className":1903},[],[1905],{"type":998,"value":1906},"-",{"type":998,"value":1107},{"type":993,"tag":1007,"props":1909,"children":1911},{"className":1910},[],[1912],{"type":998,"value":1913},"*",{"type":998,"value":1107},{"type":993,"tag":1007,"props":1916,"children":1918},{"className":1917},[],[1919],{"type":998,"value":1431},{"type":998,"value":1107},{"type":993,"tag":1007,"props":1922,"children":1924},{"className":1923},[],[1925],{"type":998,"value":1926},"**",{"type":998,"value":1107},{"type":993,"tag":1007,"props":1929,"children":1931},{"className":1930},[],[1932],{"type":998,"value":1933},"//",{"type":998,"value":1107},{"type":993,"tag":1007,"props":1936,"children":1938},{"className":1937},[],[1939],{"type":998,"value":1940},"%",{"type":998,"value":1839},{"type":993,"tag":1889,"props":1943,"children":1944},{},[1945,1947,1953,1954,1960,1961,1967,1968,1974,1975],{"type":998,"value":1946},"Built-in functions: ",{"type":993,"tag":1007,"props":1948,"children":1950},{"className":1949},[],[1951],{"type":998,"value":1952},"abs()",{"type":998,"value":1107},{"type":993,"tag":1007,"props":1955,"children":1957},{"className":1956},[],[1958],{"type":998,"value":1959},"round()",{"type":998,"value":1107},{"type":993,"tag":1007,"props":1962,"children":1964},{"className":1963},[],[1965],{"type":998,"value":1966},"min()",{"type":998,"value":1107},{"type":993,"tag":1007,"props":1969,"children":1971},{"className":1970},[],[1972],{"type":998,"value":1973},"max()",{"type":998,"value":1107},{"type":993,"tag":1007,"props":1976,"children":1978},{"className":1977},[],[1979],{"type":998,"value":1980},"sum()",{"type":993,"tag":1889,"props":1982,"children":1983},{},[1984,1986,1992,1993,1999,2000],{"type":998,"value":1985},"Type conversion: ",{"type":993,"tag":1007,"props":1987,"children":1989},{"className":1988},[],[1990],{"type":998,"value":1991},"int()",{"type":998,"value":1107},{"type":993,"tag":1007,"props":1994,"children":1996},{"className":1995},[],[1997],{"type":998,"value":1998},"float()",{"type":998,"value":1107},{"type":993,"tag":1007,"props":2001,"children":2003},{"className":2002},[],[2004],{"type":998,"value":2005},"complex()",{"type":993,"tag":1001,"props":2007,"children":2008},{},[2009],{"type":993,"tag":1879,"props":2010,"children":2011},{},[2012],{"type":998,"value":2013},"Math Module:",{"type":993,"tag":1885,"props":2015,"children":2016},{},[2017,2056,2102,2134],{"type":993,"tag":1889,"props":2018,"children":2019},{},[2020,2022,2028,2029,2035,2036,2042,2043,2049,2050],{"type":998,"value":2021},"Mathematical constants: ",{"type":993,"tag":1007,"props":2023,"children":2025},{"className":2024},[],[2026],{"type":998,"value":2027},"pi",{"type":998,"value":1107},{"type":993,"tag":1007,"props":2030,"children":2032},{"className":2031},[],[2033],{"type":998,"value":2034},"e",{"type":998,"value":1107},{"type":993,"tag":1007,"props":2037,"children":2039},{"className":2038},[],[2040],{"type":998,"value":2041},"tau",{"type":998,"value":1107},{"type":993,"tag":1007,"props":2044,"children":2046},{"className":2045},[],[2047],{"type":998,"value":2048},"inf",{"type":998,"value":1107},{"type":993,"tag":1007,"props":2051,"children":2053},{"className":2052},[],[2054],{"type":998,"value":2055},"nan",{"type":993,"tag":1889,"props":2057,"children":2058},{},[2059,2061,2067,2068,2074,2075,2081,2082,2088,2089,2095,2096],{"type":998,"value":2060},"Trigonometric functions: ",{"type":993,"tag":1007,"props":2062,"children":2064},{"className":2063},[],[2065],{"type":998,"value":2066},"sin()",{"type":998,"value":1107},{"type":993,"tag":1007,"props":2069,"children":2071},{"className":2070},[],[2072],{"type":998,"value":2073},"cos()",{"type":998,"value":1107},{"type":993,"tag":1007,"props":2076,"children":2078},{"className":2077},[],[2079],{"type":998,"value":2080},"tan()",{"type":998,"value":1107},{"type":993,"tag":1007,"props":2083,"children":2085},{"className":2084},[],[2086],{"type":998,"value":2087},"asin()",{"type":998,"value":1107},{"type":993,"tag":1007,"props":2090,"children":2092},{"className":2091},[],[2093],{"type":998,"value":2094},"acos()",{"type":998,"value":1107},{"type":993,"tag":1007,"props":2097,"children":2099},{"className":2098},[],[2100],{"type":998,"value":2101},"atan()",{"type":993,"tag":1889,"props":2103,"children":2104},{},[2105,2107,2113,2114,2120,2121,2127,2128],{"type":998,"value":2106},"Logarithmic functions: ",{"type":993,"tag":1007,"props":2108,"children":2110},{"className":2109},[],[2111],{"type":998,"value":2112},"log()",{"type":998,"value":1107},{"type":993,"tag":1007,"props":2115,"children":2117},{"className":2116},[],[2118],{"type":998,"value":2119},"log10()",{"type":998,"value":1107},{"type":993,"tag":1007,"props":2122,"children":2124},{"className":2123},[],[2125],{"type":998,"value":2126},"log2()",{"type":998,"value":1107},{"type":993,"tag":1007,"props":2129,"children":2131},{"className":2130},[],[2132],{"type":998,"value":2133},"exp()",{"type":993,"tag":1889,"props":2135,"children":2136},{},[2137,2139,2145,2146,2152,2153],{"type":998,"value":2138},"Power and root functions: ",{"type":993,"tag":1007,"props":2140,"children":2142},{"className":2141},[],[2143],{"type":998,"value":2144},"sqrt()",{"type":998,"value":1107},{"type":993,"tag":1007,"props":2147,"children":2149},{"className":2148},[],[2150],{"type":998,"value":2151},"pow()",{"type":998,"value":1107},{"type":993,"tag":1007,"props":2154,"children":2156},{"className":2155},[],[2157],{"type":998,"value":2158},"cbrt()",{"type":993,"tag":1001,"props":2160,"children":2161},{},[2162],{"type":993,"tag":1879,"props":2163,"children":2164},{},[2165],{"type":998,"value":2166},"Statistics Module:",{"type":993,"tag":1885,"props":2168,"children":2169},{},[2170,2195,2227],{"type":993,"tag":1889,"props":2171,"children":2172},{},[2173,2175,2181,2182,2188,2189],{"type":998,"value":2174},"Measures of central tendency: ",{"type":993,"tag":1007,"props":2176,"children":2178},{"className":2177},[],[2179],{"type":998,"value":2180},"mean()",{"type":998,"value":1107},{"type":993,"tag":1007,"props":2183,"children":2185},{"className":2184},[],[2186],{"type":998,"value":2187},"median()",{"type":998,"value":1107},{"type":993,"tag":1007,"props":2190,"children":2192},{"className":2191},[],[2193],{"type":998,"value":2194},"mode()",{"type":993,"tag":1889,"props":2196,"children":2197},{},[2198,2200,2206,2207,2213,2214,2220,2221],{"type":998,"value":2199},"Measures of spread: ",{"type":993,"tag":1007,"props":2201,"children":2203},{"className":2202},[],[2204],{"type":998,"value":2205},"stdev()",{"type":998,"value":1107},{"type":993,"tag":1007,"props":2208,"children":2210},{"className":2209},[],[2211],{"type":998,"value":2212},"variance()",{"type":998,"value":1107},{"type":993,"tag":1007,"props":2215,"children":2217},{"className":2216},[],[2218],{"type":998,"value":2219},"pstdev()",{"type":998,"value":1107},{"type":993,"tag":1007,"props":2222,"children":2224},{"className":2223},[],[2225],{"type":998,"value":2226},"pvariance()",{"type":993,"tag":1889,"props":2228,"children":2229},{},[2230,2232,2238,2239,2245,2246],{"type":998,"value":2231},"Data analysis functions: ",{"type":993,"tag":1007,"props":2233,"children":2235},{"className":2234},[],[2236],{"type":998,"value":2237},"quantiles()",{"type":998,"value":1107},{"type":993,"tag":1007,"props":2240,"children":2242},{"className":2241},[],[2243],{"type":998,"value":2244},"correlation()",{"type":998,"value":1107},{"type":993,"tag":1007,"props":2247,"children":2249},{"className":2248},[],[2250],{"type":998,"value":2251},"covariance()",{"type":993,"tag":1001,"props":2253,"children":2254},{},[2255],{"type":993,"tag":1879,"props":2256,"children":2257},{},[2258],{"type":998,"value":2259},"Random Module:",{"type":993,"tag":1885,"props":2261,"children":2262},{},[2263,2288,2313],{"type":993,"tag":1889,"props":2264,"children":2265},{},[2266,2268,2274,2275,2281,2282],{"type":998,"value":2267},"Random number generation: ",{"type":993,"tag":1007,"props":2269,"children":2271},{"className":2270},[],[2272],{"type":998,"value":2273},"random()",{"type":998,"value":1107},{"type":993,"tag":1007,"props":2276,"children":2278},{"className":2277},[],[2279],{"type":998,"value":2280},"randint()",{"type":998,"value":1107},{"type":993,"tag":1007,"props":2283,"children":2285},{"className":2284},[],[2286],{"type":998,"value":2287},"choice()",{"type":993,"tag":1889,"props":2289,"children":2290},{},[2291,2293,2299,2300,2306,2307],{"type":998,"value":2292},"Statistical distributions: ",{"type":993,"tag":1007,"props":2294,"children":2296},{"className":2295},[],[2297],{"type":998,"value":2298},"gauss()",{"type":998,"value":1107},{"type":993,"tag":1007,"props":2301,"children":2303},{"className":2302},[],[2304],{"type":998,"value":2305},"uniform()",{"type":998,"value":1107},{"type":993,"tag":1007,"props":2308,"children":2310},{"className":2309},[],[2311],{"type":998,"value":2312},"triangular()",{"type":993,"tag":1889,"props":2314,"children":2315},{},[2316,2318,2324,2325],{"type":998,"value":2317},"Sampling and shuffling: ",{"type":993,"tag":1007,"props":2319,"children":2321},{"className":2320},[],[2322],{"type":998,"value":2323},"sample()",{"type":998,"value":1107},{"type":993,"tag":1007,"props":2326,"children":2328},{"className":2327},[],[2329],{"type":998,"value":2330},"shuffle()",{"type":993,"tag":1001,"props":2332,"children":2333},{},[2334],{"type":993,"tag":1879,"props":2335,"children":2336},{},[2337],{"type":998,"value":2338},"Key Applications:",{"type":993,"tag":1885,"props":2340,"children":2341},{},[2342,2352,2362,2372],{"type":993,"tag":1889,"props":2343,"children":2344},{},[2345,2350],{"type":993,"tag":1879,"props":2346,"children":2347},{},[2348],{"type":998,"value":2349},"Scientific Computing",{"type":998,"value":2351},": Research calculations and modeling",{"type":993,"tag":1889,"props":2353,"children":2354},{},[2355,2360],{"type":993,"tag":1879,"props":2356,"children":2357},{},[2358],{"type":998,"value":2359},"Data Analysis",{"type":998,"value":2361},": Statistical analysis and visualization",{"type":993,"tag":1889,"props":2363,"children":2364},{},[2365,2370],{"type":993,"tag":1879,"props":2366,"children":2367},{},[2368],{"type":998,"value":2369},"Financial Modeling",{"type":998,"value":2371},": Investment calculations and risk analysis",{"type":993,"tag":1889,"props":2373,"children":2374},{},[2375,2380],{"type":993,"tag":1879,"props":2376,"children":2377},{},[2378],{"type":998,"value":2379},"Engineering",{"type":998,"value":2381},": Mathematical modeling and simulation",{"type":993,"tag":2383,"props":2384,"children":2386},"h3",{"id":2385},"basic-mathematical-functions",[2387],{"type":998,"value":2388},"Basic Mathematical Functions",{"type":993,"tag":1001,"props":2390,"children":2391},{},[2392],{"type":998,"value":2393},"Built-in functions and operators provide the foundation for mathematical operations in Python.",{"type":993,"tag":1021,"props":2395,"children":2396},{},[2397],{"type":993,"tag":1025,"props":2398,"children":2400},{"className":1027,"code":2399,"language":6,"meta":8,"style":8},"import math\n\n# Basic arithmetic and built-in functions\nnumbers = [4.7, -3.2, 8.9, -1.5, 6.3]\n\nprint(\"Basic Operations:\")\nprint(f\"Numbers: {numbers}\")\nprint(f\"Sum: {sum(numbers)}\")\nprint(f\"Max: {max(numbers)}\")\nprint(f\"Min: {min(numbers)}\")\nprint(f\"Absolute values: {[abs(x) for x in numbers]}\")\n\n# Rounding and precision\nvalue = 3.14159265359\nprint(f\"\\nRounding operations for {value}:\")\nprint(f\"Round to 2 decimals: {round(value, 2)}\")\nprint(f\"Round to nearest integer: {round(value)}\")\nprint(f\"Floor (round down): {math.floor(value)}\")\nprint(f\"Ceiling (round up): {math.ceil(value)}\")\nprint(f\"Truncate (remove decimals): {math.trunc(value)}\")\n\n# Power and root operations\nbase = 16\nprint(f\"\\nPower and root operations for {base}:\")\nprint(f\"Square: {base ** 2}\")\nprint(f\"Cube: {base ** 3}\")\nprint(f\"Square root: {math.sqrt(base)}\")\nprint(f\"Cube root: {base ** (1/3):.3f}\")\nprint(f\"4th root: {base ** (1/4):.3f}\")\n\n# Modulo and division\ndividend = 17\ndivisor = 5\nprint(f\"\\nDivision operations: {dividend} ÷ {divisor}\")\nprint(f\"Regular division: {dividend / divisor}\")\nprint(f\"Floor division: {dividend // divisor}\")\nprint(f\"Modulo (remainder): {dividend % divisor}\")\nprint(f\"Divmod (quotient, remainder): {divmod(dividend, divisor)}\")\n",[2401],{"type":993,"tag":1007,"props":2402,"children":2403},{"__ignoreMap":8},[2404,2415,2422,2430,2498,2505,2525,2565,2607,2648,2689,2760,2767,2775,2791,2839,2889,2930,2971,3012,3053,3060,3068,3085,3134,3179,3224,3265,3336,3405,3412,3420,3437,3454,3521,3570,3618,3666],{"type":993,"tag":1034,"props":2405,"children":2406},{"class":1036,"line":12},[2407,2411],{"type":993,"tag":1034,"props":2408,"children":2409},{"style":1040},[2410],{"type":998,"value":1043},{"type":993,"tag":1034,"props":2412,"children":2413},{"style":1046},[2414],{"type":998,"value":1049},{"type":993,"tag":1034,"props":2416,"children":2417},{"class":1036,"line":27},[2418],{"type":993,"tag":1034,"props":2419,"children":2420},{"emptyLinePlaceholder":13},[2421],{"type":998,"value":1069},{"type":993,"tag":1034,"props":2423,"children":2424},{"class":1036,"line":36},[2425],{"type":993,"tag":1034,"props":2426,"children":2427},{"style":1075},[2428],{"type":998,"value":2429},"# Basic arithmetic and built-in functions\n",{"type":993,"tag":1034,"props":2431,"children":2432},{"class":1036,"line":45},[2433,2437,2441,2445,2450,2454,2458,2463,2467,2472,2476,2480,2485,2489,2494],{"type":993,"tag":1034,"props":2434,"children":2435},{"style":1046},[2436],{"type":998,"value":1086},{"type":993,"tag":1034,"props":2438,"children":2439},{"style":1040},[2440],{"type":998,"value":1091},{"type":993,"tag":1034,"props":2442,"children":2443},{"style":1046},[2444],{"type":998,"value":1096},{"type":993,"tag":1034,"props":2446,"children":2447},{"style":1099},[2448],{"type":998,"value":2449},"4.7",{"type":993,"tag":1034,"props":2451,"children":2452},{"style":1046},[2453],{"type":998,"value":1107},{"type":993,"tag":1034,"props":2455,"children":2456},{"style":1040},[2457],{"type":998,"value":1906},{"type":993,"tag":1034,"props":2459,"children":2460},{"style":1099},[2461],{"type":998,"value":2462},"3.2",{"type":993,"tag":1034,"props":2464,"children":2465},{"style":1046},[2466],{"type":998,"value":1107},{"type":993,"tag":1034,"props":2468,"children":2469},{"style":1099},[2470],{"type":998,"value":2471},"8.9",{"type":993,"tag":1034,"props":2473,"children":2474},{"style":1046},[2475],{"type":998,"value":1107},{"type":993,"tag":1034,"props":2477,"children":2478},{"style":1040},[2479],{"type":998,"value":1906},{"type":993,"tag":1034,"props":2481,"children":2482},{"style":1099},[2483],{"type":998,"value":2484},"1.5",{"type":993,"tag":1034,"props":2486,"children":2487},{"style":1046},[2488],{"type":998,"value":1107},{"type":993,"tag":1034,"props":2490,"children":2491},{"style":1099},[2492],{"type":998,"value":2493},"6.3",{"type":993,"tag":1034,"props":2495,"children":2496},{"style":1046},[2497],{"type":998,"value":1144},{"type":993,"tag":1034,"props":2499,"children":2500},{"class":1036,"line":54},[2501],{"type":993,"tag":1034,"props":2502,"children":2503},{"emptyLinePlaceholder":13},[2504],{"type":998,"value":1069},{"type":993,"tag":1034,"props":2506,"children":2507},{"class":1036,"line":63},[2508,2512,2516,2521],{"type":993,"tag":1034,"props":2509,"children":2510},{"style":1099},[2511],{"type":998,"value":1225},{"type":993,"tag":1034,"props":2513,"children":2514},{"style":1046},[2515],{"type":998,"value":1230},{"type":993,"tag":1034,"props":2517,"children":2518},{"style":1238},[2519],{"type":998,"value":2520},"\"Basic Operations:\"",{"type":993,"tag":1034,"props":2522,"children":2523},{"style":1046},[2524],{"type":998,"value":1266},{"type":993,"tag":1034,"props":2526,"children":2527},{"class":1036,"line":72},[2528,2532,2536,2540,2545,2549,2553,2557,2561],{"type":993,"tag":1034,"props":2529,"children":2530},{"style":1099},[2531],{"type":998,"value":1225},{"type":993,"tag":1034,"props":2533,"children":2534},{"style":1046},[2535],{"type":998,"value":1230},{"type":993,"tag":1034,"props":2537,"children":2538},{"style":1040},[2539],{"type":998,"value":1235},{"type":993,"tag":1034,"props":2541,"children":2542},{"style":1238},[2543],{"type":998,"value":2544},"\"Numbers: ",{"type":993,"tag":1034,"props":2546,"children":2547},{"style":1099},[2548],{"type":998,"value":1246},{"type":993,"tag":1034,"props":2550,"children":2551},{"style":1046},[2552],{"type":998,"value":1251},{"type":993,"tag":1034,"props":2554,"children":2555},{"style":1099},[2556],{"type":998,"value":1256},{"type":993,"tag":1034,"props":2558,"children":2559},{"style":1238},[2560],{"type":998,"value":1261},{"type":993,"tag":1034,"props":2562,"children":2563},{"style":1046},[2564],{"type":998,"value":1266},{"type":993,"tag":1034,"props":2566,"children":2567},{"class":1036,"line":81},[2568,2572,2576,2580,2585,2590,2595,2599,2603],{"type":993,"tag":1034,"props":2569,"children":2570},{"style":1099},[2571],{"type":998,"value":1225},{"type":993,"tag":1034,"props":2573,"children":2574},{"style":1046},[2575],{"type":998,"value":1230},{"type":993,"tag":1034,"props":2577,"children":2578},{"style":1040},[2579],{"type":998,"value":1235},{"type":993,"tag":1034,"props":2581,"children":2582},{"style":1238},[2583],{"type":998,"value":2584},"\"Sum: ",{"type":993,"tag":1034,"props":2586,"children":2587},{"style":1099},[2588],{"type":998,"value":2589},"{sum",{"type":993,"tag":1034,"props":2591,"children":2592},{"style":1046},[2593],{"type":998,"value":2594},"(numbers)",{"type":993,"tag":1034,"props":2596,"children":2597},{"style":1099},[2598],{"type":998,"value":1256},{"type":993,"tag":1034,"props":2600,"children":2601},{"style":1238},[2602],{"type":998,"value":1261},{"type":993,"tag":1034,"props":2604,"children":2605},{"style":1046},[2606],{"type":998,"value":1266},{"type":993,"tag":1034,"props":2608,"children":2609},{"class":1036,"line":91},[2610,2614,2618,2622,2627,2632,2636,2640,2644],{"type":993,"tag":1034,"props":2611,"children":2612},{"style":1099},[2613],{"type":998,"value":1225},{"type":993,"tag":1034,"props":2615,"children":2616},{"style":1046},[2617],{"type":998,"value":1230},{"type":993,"tag":1034,"props":2619,"children":2620},{"style":1040},[2621],{"type":998,"value":1235},{"type":993,"tag":1034,"props":2623,"children":2624},{"style":1238},[2625],{"type":998,"value":2626},"\"Max: ",{"type":993,"tag":1034,"props":2628,"children":2629},{"style":1099},[2630],{"type":998,"value":2631},"{max",{"type":993,"tag":1034,"props":2633,"children":2634},{"style":1046},[2635],{"type":998,"value":2594},{"type":993,"tag":1034,"props":2637,"children":2638},{"style":1099},[2639],{"type":998,"value":1256},{"type":993,"tag":1034,"props":2641,"children":2642},{"style":1238},[2643],{"type":998,"value":1261},{"type":993,"tag":1034,"props":2645,"children":2646},{"style":1046},[2647],{"type":998,"value":1266},{"type":993,"tag":1034,"props":2649,"children":2650},{"class":1036,"line":100},[2651,2655,2659,2663,2668,2673,2677,2681,2685],{"type":993,"tag":1034,"props":2652,"children":2653},{"style":1099},[2654],{"type":998,"value":1225},{"type":993,"tag":1034,"props":2656,"children":2657},{"style":1046},[2658],{"type":998,"value":1230},{"type":993,"tag":1034,"props":2660,"children":2661},{"style":1040},[2662],{"type":998,"value":1235},{"type":993,"tag":1034,"props":2664,"children":2665},{"style":1238},[2666],{"type":998,"value":2667},"\"Min: ",{"type":993,"tag":1034,"props":2669,"children":2670},{"style":1099},[2671],{"type":998,"value":2672},"{min",{"type":993,"tag":1034,"props":2674,"children":2675},{"style":1046},[2676],{"type":998,"value":2594},{"type":993,"tag":1034,"props":2678,"children":2679},{"style":1099},[2680],{"type":998,"value":1256},{"type":993,"tag":1034,"props":2682,"children":2683},{"style":1238},[2684],{"type":998,"value":1261},{"type":993,"tag":1034,"props":2686,"children":2687},{"style":1046},[2688],{"type":998,"value":1266},{"type":993,"tag":1034,"props":2690,"children":2691},{"class":1036,"line":109},[2692,2696,2700,2704,2709,2713,2718,2723,2728,2733,2738,2743,2748,2752,2756],{"type":993,"tag":1034,"props":2693,"children":2694},{"style":1099},[2695],{"type":998,"value":1225},{"type":993,"tag":1034,"props":2697,"children":2698},{"style":1046},[2699],{"type":998,"value":1230},{"type":993,"tag":1034,"props":2701,"children":2702},{"style":1040},[2703],{"type":998,"value":1235},{"type":993,"tag":1034,"props":2705,"children":2706},{"style":1238},[2707],{"type":998,"value":2708},"\"Absolute values: ",{"type":993,"tag":1034,"props":2710,"children":2711},{"style":1099},[2712],{"type":998,"value":1246},{"type":993,"tag":1034,"props":2714,"children":2715},{"style":1046},[2716],{"type":998,"value":2717},"[",{"type":993,"tag":1034,"props":2719,"children":2720},{"style":1099},[2721],{"type":998,"value":2722},"abs",{"type":993,"tag":1034,"props":2724,"children":2725},{"style":1046},[2726],{"type":998,"value":2727},"(x) ",{"type":993,"tag":1034,"props":2729,"children":2730},{"style":1040},[2731],{"type":998,"value":2732},"for",{"type":993,"tag":1034,"props":2734,"children":2735},{"style":1046},[2736],{"type":998,"value":2737}," x ",{"type":993,"tag":1034,"props":2739,"children":2740},{"style":1040},[2741],{"type":998,"value":2742},"in",{"type":993,"tag":1034,"props":2744,"children":2745},{"style":1046},[2746],{"type":998,"value":2747}," numbers]",{"type":993,"tag":1034,"props":2749,"children":2750},{"style":1099},[2751],{"type":998,"value":1256},{"type":993,"tag":1034,"props":2753,"children":2754},{"style":1238},[2755],{"type":998,"value":1261},{"type":993,"tag":1034,"props":2757,"children":2758},{"style":1046},[2759],{"type":998,"value":1266},{"type":993,"tag":1034,"props":2761,"children":2762},{"class":1036,"line":118},[2763],{"type":993,"tag":1034,"props":2764,"children":2765},{"emptyLinePlaceholder":13},[2766],{"type":998,"value":1069},{"type":993,"tag":1034,"props":2768,"children":2769},{"class":1036,"line":127},[2770],{"type":993,"tag":1034,"props":2771,"children":2772},{"style":1075},[2773],{"type":998,"value":2774},"# Rounding and precision\n",{"type":993,"tag":1034,"props":2776,"children":2777},{"class":1036,"line":136},[2778,2782,2786],{"type":993,"tag":1034,"props":2779,"children":2780},{"style":1046},[2781],{"type":998,"value":1651},{"type":993,"tag":1034,"props":2783,"children":2784},{"style":1040},[2785],{"type":998,"value":1091},{"type":993,"tag":1034,"props":2787,"children":2788},{"style":1099},[2789],{"type":998,"value":2790}," 3.14159265359\n",{"type":993,"tag":1034,"props":2792,"children":2793},{"class":1036,"line":146},[2794,2798,2802,2806,2810,2814,2819,2823,2827,2831,2835],{"type":993,"tag":1034,"props":2795,"children":2796},{"style":1099},[2797],{"type":998,"value":1225},{"type":993,"tag":1034,"props":2799,"children":2800},{"style":1046},[2801],{"type":998,"value":1230},{"type":993,"tag":1034,"props":2803,"children":2804},{"style":1040},[2805],{"type":998,"value":1235},{"type":993,"tag":1034,"props":2807,"children":2808},{"style":1238},[2809],{"type":998,"value":1261},{"type":993,"tag":1034,"props":2811,"children":2812},{"style":1099},[2813],{"type":998,"value":1465},{"type":993,"tag":1034,"props":2815,"children":2816},{"style":1238},[2817],{"type":998,"value":2818},"Rounding operations for ",{"type":993,"tag":1034,"props":2820,"children":2821},{"style":1099},[2822],{"type":998,"value":1246},{"type":993,"tag":1034,"props":2824,"children":2825},{"style":1046},[2826],{"type":998,"value":1697},{"type":993,"tag":1034,"props":2828,"children":2829},{"style":1099},[2830],{"type":998,"value":1256},{"type":993,"tag":1034,"props":2832,"children":2833},{"style":1238},[2834],{"type":998,"value":1706},{"type":993,"tag":1034,"props":2836,"children":2837},{"style":1046},[2838],{"type":998,"value":1266},{"type":993,"tag":1034,"props":2840,"children":2841},{"class":1036,"line":155},[2842,2846,2850,2854,2859,2864,2869,2873,2877,2881,2885],{"type":993,"tag":1034,"props":2843,"children":2844},{"style":1099},[2845],{"type":998,"value":1225},{"type":993,"tag":1034,"props":2847,"children":2848},{"style":1046},[2849],{"type":998,"value":1230},{"type":993,"tag":1034,"props":2851,"children":2852},{"style":1040},[2853],{"type":998,"value":1235},{"type":993,"tag":1034,"props":2855,"children":2856},{"style":1238},[2857],{"type":998,"value":2858},"\"Round to 2 decimals: ",{"type":993,"tag":1034,"props":2860,"children":2861},{"style":1099},[2862],{"type":998,"value":2863},"{round",{"type":993,"tag":1034,"props":2865,"children":2866},{"style":1046},[2867],{"type":998,"value":2868},"(value, ",{"type":993,"tag":1034,"props":2870,"children":2871},{"style":1099},[2872],{"type":998,"value":1834},{"type":993,"tag":1034,"props":2874,"children":2875},{"style":1046},[2876],{"type":998,"value":1839},{"type":993,"tag":1034,"props":2878,"children":2879},{"style":1099},[2880],{"type":998,"value":1256},{"type":993,"tag":1034,"props":2882,"children":2883},{"style":1238},[2884],{"type":998,"value":1261},{"type":993,"tag":1034,"props":2886,"children":2887},{"style":1046},[2888],{"type":998,"value":1266},{"type":993,"tag":1034,"props":2890,"children":2891},{"class":1036,"line":164},[2892,2896,2900,2904,2909,2913,2918,2922,2926],{"type":993,"tag":1034,"props":2893,"children":2894},{"style":1099},[2895],{"type":998,"value":1225},{"type":993,"tag":1034,"props":2897,"children":2898},{"style":1046},[2899],{"type":998,"value":1230},{"type":993,"tag":1034,"props":2901,"children":2902},{"style":1040},[2903],{"type":998,"value":1235},{"type":993,"tag":1034,"props":2905,"children":2906},{"style":1238},[2907],{"type":998,"value":2908},"\"Round to nearest integer: ",{"type":993,"tag":1034,"props":2910,"children":2911},{"style":1099},[2912],{"type":998,"value":2863},{"type":993,"tag":1034,"props":2914,"children":2915},{"style":1046},[2916],{"type":998,"value":2917},"(value)",{"type":993,"tag":1034,"props":2919,"children":2920},{"style":1099},[2921],{"type":998,"value":1256},{"type":993,"tag":1034,"props":2923,"children":2924},{"style":1238},[2925],{"type":998,"value":1261},{"type":993,"tag":1034,"props":2927,"children":2928},{"style":1046},[2929],{"type":998,"value":1266},{"type":993,"tag":1034,"props":2931,"children":2932},{"class":1036,"line":173},[2933,2937,2941,2945,2950,2954,2959,2963,2967],{"type":993,"tag":1034,"props":2934,"children":2935},{"style":1099},[2936],{"type":998,"value":1225},{"type":993,"tag":1034,"props":2938,"children":2939},{"style":1046},[2940],{"type":998,"value":1230},{"type":993,"tag":1034,"props":2942,"children":2943},{"style":1040},[2944],{"type":998,"value":1235},{"type":993,"tag":1034,"props":2946,"children":2947},{"style":1238},[2948],{"type":998,"value":2949},"\"Floor (round down): ",{"type":993,"tag":1034,"props":2951,"children":2952},{"style":1099},[2953],{"type":998,"value":1246},{"type":993,"tag":1034,"props":2955,"children":2956},{"style":1046},[2957],{"type":998,"value":2958},"math.floor(value)",{"type":993,"tag":1034,"props":2960,"children":2961},{"style":1099},[2962],{"type":998,"value":1256},{"type":993,"tag":1034,"props":2964,"children":2965},{"style":1238},[2966],{"type":998,"value":1261},{"type":993,"tag":1034,"props":2968,"children":2969},{"style":1046},[2970],{"type":998,"value":1266},{"type":993,"tag":1034,"props":2972,"children":2973},{"class":1036,"line":182},[2974,2978,2982,2986,2991,2995,3000,3004,3008],{"type":993,"tag":1034,"props":2975,"children":2976},{"style":1099},[2977],{"type":998,"value":1225},{"type":993,"tag":1034,"props":2979,"children":2980},{"style":1046},[2981],{"type":998,"value":1230},{"type":993,"tag":1034,"props":2983,"children":2984},{"style":1040},[2985],{"type":998,"value":1235},{"type":993,"tag":1034,"props":2987,"children":2988},{"style":1238},[2989],{"type":998,"value":2990},"\"Ceiling (round up): ",{"type":993,"tag":1034,"props":2992,"children":2993},{"style":1099},[2994],{"type":998,"value":1246},{"type":993,"tag":1034,"props":2996,"children":2997},{"style":1046},[2998],{"type":998,"value":2999},"math.ceil(value)",{"type":993,"tag":1034,"props":3001,"children":3002},{"style":1099},[3003],{"type":998,"value":1256},{"type":993,"tag":1034,"props":3005,"children":3006},{"style":1238},[3007],{"type":998,"value":1261},{"type":993,"tag":1034,"props":3009,"children":3010},{"style":1046},[3011],{"type":998,"value":1266},{"type":993,"tag":1034,"props":3013,"children":3014},{"class":1036,"line":191},[3015,3019,3023,3027,3032,3036,3041,3045,3049],{"type":993,"tag":1034,"props":3016,"children":3017},{"style":1099},[3018],{"type":998,"value":1225},{"type":993,"tag":1034,"props":3020,"children":3021},{"style":1046},[3022],{"type":998,"value":1230},{"type":993,"tag":1034,"props":3024,"children":3025},{"style":1040},[3026],{"type":998,"value":1235},{"type":993,"tag":1034,"props":3028,"children":3029},{"style":1238},[3030],{"type":998,"value":3031},"\"Truncate (remove decimals): ",{"type":993,"tag":1034,"props":3033,"children":3034},{"style":1099},[3035],{"type":998,"value":1246},{"type":993,"tag":1034,"props":3037,"children":3038},{"style":1046},[3039],{"type":998,"value":3040},"math.trunc(value)",{"type":993,"tag":1034,"props":3042,"children":3043},{"style":1099},[3044],{"type":998,"value":1256},{"type":993,"tag":1034,"props":3046,"children":3047},{"style":1238},[3048],{"type":998,"value":1261},{"type":993,"tag":1034,"props":3050,"children":3051},{"style":1046},[3052],{"type":998,"value":1266},{"type":993,"tag":1034,"props":3054,"children":3055},{"class":1036,"line":201},[3056],{"type":993,"tag":1034,"props":3057,"children":3058},{"emptyLinePlaceholder":13},[3059],{"type":998,"value":1069},{"type":993,"tag":1034,"props":3061,"children":3062},{"class":1036,"line":210},[3063],{"type":993,"tag":1034,"props":3064,"children":3065},{"style":1075},[3066],{"type":998,"value":3067},"# Power and root operations\n",{"type":993,"tag":1034,"props":3069,"children":3070},{"class":1036,"line":219},[3071,3076,3080],{"type":993,"tag":1034,"props":3072,"children":3073},{"style":1046},[3074],{"type":998,"value":3075},"base ",{"type":993,"tag":1034,"props":3077,"children":3078},{"style":1040},[3079],{"type":998,"value":1091},{"type":993,"tag":1034,"props":3081,"children":3082},{"style":1099},[3083],{"type":998,"value":3084}," 16\n",{"type":993,"tag":1034,"props":3086,"children":3087},{"class":1036,"line":228},[3088,3092,3096,3100,3104,3108,3113,3117,3122,3126,3130],{"type":993,"tag":1034,"props":3089,"children":3090},{"style":1099},[3091],{"type":998,"value":1225},{"type":993,"tag":1034,"props":3093,"children":3094},{"style":1046},[3095],{"type":998,"value":1230},{"type":993,"tag":1034,"props":3097,"children":3098},{"style":1040},[3099],{"type":998,"value":1235},{"type":993,"tag":1034,"props":3101,"children":3102},{"style":1238},[3103],{"type":998,"value":1261},{"type":993,"tag":1034,"props":3105,"children":3106},{"style":1099},[3107],{"type":998,"value":1465},{"type":993,"tag":1034,"props":3109,"children":3110},{"style":1238},[3111],{"type":998,"value":3112},"Power and root operations for ",{"type":993,"tag":1034,"props":3114,"children":3115},{"style":1099},[3116],{"type":998,"value":1246},{"type":993,"tag":1034,"props":3118,"children":3119},{"style":1046},[3120],{"type":998,"value":3121},"base",{"type":993,"tag":1034,"props":3123,"children":3124},{"style":1099},[3125],{"type":998,"value":1256},{"type":993,"tag":1034,"props":3127,"children":3128},{"style":1238},[3129],{"type":998,"value":1706},{"type":993,"tag":1034,"props":3131,"children":3132},{"style":1046},[3133],{"type":998,"value":1266},{"type":993,"tag":1034,"props":3135,"children":3136},{"class":1036,"line":238},[3137,3141,3145,3149,3154,3158,3162,3166,3171,3175],{"type":993,"tag":1034,"props":3138,"children":3139},{"style":1099},[3140],{"type":998,"value":1225},{"type":993,"tag":1034,"props":3142,"children":3143},{"style":1046},[3144],{"type":998,"value":1230},{"type":993,"tag":1034,"props":3146,"children":3147},{"style":1040},[3148],{"type":998,"value":1235},{"type":993,"tag":1034,"props":3150,"children":3151},{"style":1238},[3152],{"type":998,"value":3153},"\"Square: ",{"type":993,"tag":1034,"props":3155,"children":3156},{"style":1099},[3157],{"type":998,"value":1246},{"type":993,"tag":1034,"props":3159,"children":3160},{"style":1046},[3161],{"type":998,"value":3075},{"type":993,"tag":1034,"props":3163,"children":3164},{"style":1040},[3165],{"type":998,"value":1926},{"type":993,"tag":1034,"props":3167,"children":3168},{"style":1099},[3169],{"type":998,"value":3170}," 2}",{"type":993,"tag":1034,"props":3172,"children":3173},{"style":1238},[3174],{"type":998,"value":1261},{"type":993,"tag":1034,"props":3176,"children":3177},{"style":1046},[3178],{"type":998,"value":1266},{"type":993,"tag":1034,"props":3180,"children":3181},{"class":1036,"line":247},[3182,3186,3190,3194,3199,3203,3207,3211,3216,3220],{"type":993,"tag":1034,"props":3183,"children":3184},{"style":1099},[3185],{"type":998,"value":1225},{"type":993,"tag":1034,"props":3187,"children":3188},{"style":1046},[3189],{"type":998,"value":1230},{"type":993,"tag":1034,"props":3191,"children":3192},{"style":1040},[3193],{"type":998,"value":1235},{"type":993,"tag":1034,"props":3195,"children":3196},{"style":1238},[3197],{"type":998,"value":3198},"\"Cube: ",{"type":993,"tag":1034,"props":3200,"children":3201},{"style":1099},[3202],{"type":998,"value":1246},{"type":993,"tag":1034,"props":3204,"children":3205},{"style":1046},[3206],{"type":998,"value":3075},{"type":993,"tag":1034,"props":3208,"children":3209},{"style":1040},[3210],{"type":998,"value":1926},{"type":993,"tag":1034,"props":3212,"children":3213},{"style":1099},[3214],{"type":998,"value":3215}," 3}",{"type":993,"tag":1034,"props":3217,"children":3218},{"style":1238},[3219],{"type":998,"value":1261},{"type":993,"tag":1034,"props":3221,"children":3222},{"style":1046},[3223],{"type":998,"value":1266},{"type":993,"tag":1034,"props":3225,"children":3226},{"class":1036,"line":256},[3227,3231,3235,3239,3244,3248,3253,3257,3261],{"type":993,"tag":1034,"props":3228,"children":3229},{"style":1099},[3230],{"type":998,"value":1225},{"type":993,"tag":1034,"props":3232,"children":3233},{"style":1046},[3234],{"type":998,"value":1230},{"type":993,"tag":1034,"props":3236,"children":3237},{"style":1040},[3238],{"type":998,"value":1235},{"type":993,"tag":1034,"props":3240,"children":3241},{"style":1238},[3242],{"type":998,"value":3243},"\"Square root: ",{"type":993,"tag":1034,"props":3245,"children":3246},{"style":1099},[3247],{"type":998,"value":1246},{"type":993,"tag":1034,"props":3249,"children":3250},{"style":1046},[3251],{"type":998,"value":3252},"math.sqrt(base)",{"type":993,"tag":1034,"props":3254,"children":3255},{"style":1099},[3256],{"type":998,"value":1256},{"type":993,"tag":1034,"props":3258,"children":3259},{"style":1238},[3260],{"type":998,"value":1261},{"type":993,"tag":1034,"props":3262,"children":3263},{"style":1046},[3264],{"type":998,"value":1266},{"type":993,"tag":1034,"props":3266,"children":3267},{"class":1036,"line":265},[3268,3272,3276,3280,3285,3289,3293,3297,3302,3307,3311,3316,3320,3324,3328,3332],{"type":993,"tag":1034,"props":3269,"children":3270},{"style":1099},[3271],{"type":998,"value":1225},{"type":993,"tag":1034,"props":3273,"children":3274},{"style":1046},[3275],{"type":998,"value":1230},{"type":993,"tag":1034,"props":3277,"children":3278},{"style":1040},[3279],{"type":998,"value":1235},{"type":993,"tag":1034,"props":3281,"children":3282},{"style":1238},[3283],{"type":998,"value":3284},"\"Cube root: ",{"type":993,"tag":1034,"props":3286,"children":3287},{"style":1099},[3288],{"type":998,"value":1246},{"type":993,"tag":1034,"props":3290,"children":3291},{"style":1046},[3292],{"type":998,"value":3075},{"type":993,"tag":1034,"props":3294,"children":3295},{"style":1040},[3296],{"type":998,"value":1926},{"type":993,"tag":1034,"props":3298,"children":3299},{"style":1046},[3300],{"type":998,"value":3301}," (",{"type":993,"tag":1034,"props":3303,"children":3304},{"style":1099},[3305],{"type":998,"value":3306},"1",{"type":993,"tag":1034,"props":3308,"children":3309},{"style":1040},[3310],{"type":998,"value":1431},{"type":993,"tag":1034,"props":3312,"children":3313},{"style":1099},[3314],{"type":998,"value":3315},"3",{"type":993,"tag":1034,"props":3317,"children":3318},{"style":1046},[3319],{"type":998,"value":1839},{"type":993,"tag":1034,"props":3321,"children":3322},{"style":1040},[3323],{"type":998,"value":1526},{"type":993,"tag":1034,"props":3325,"children":3326},{"style":1099},[3327],{"type":998,"value":1256},{"type":993,"tag":1034,"props":3329,"children":3330},{"style":1238},[3331],{"type":998,"value":1261},{"type":993,"tag":1034,"props":3333,"children":3334},{"style":1046},[3335],{"type":998,"value":1266},{"type":993,"tag":1034,"props":3337,"children":3338},{"class":1036,"line":274},[3339,3343,3347,3351,3356,3360,3364,3368,3372,3376,3380,3385,3389,3393,3397,3401],{"type":993,"tag":1034,"props":3340,"children":3341},{"style":1099},[3342],{"type":998,"value":1225},{"type":993,"tag":1034,"props":3344,"children":3345},{"style":1046},[3346],{"type":998,"value":1230},{"type":993,"tag":1034,"props":3348,"children":3349},{"style":1040},[3350],{"type":998,"value":1235},{"type":993,"tag":1034,"props":3352,"children":3353},{"style":1238},[3354],{"type":998,"value":3355},"\"4th root: ",{"type":993,"tag":1034,"props":3357,"children":3358},{"style":1099},[3359],{"type":998,"value":1246},{"type":993,"tag":1034,"props":3361,"children":3362},{"style":1046},[3363],{"type":998,"value":3075},{"type":993,"tag":1034,"props":3365,"children":3366},{"style":1040},[3367],{"type":998,"value":1926},{"type":993,"tag":1034,"props":3369,"children":3370},{"style":1046},[3371],{"type":998,"value":3301},{"type":993,"tag":1034,"props":3373,"children":3374},{"style":1099},[3375],{"type":998,"value":3306},{"type":993,"tag":1034,"props":3377,"children":3378},{"style":1040},[3379],{"type":998,"value":1431},{"type":993,"tag":1034,"props":3381,"children":3382},{"style":1099},[3383],{"type":998,"value":3384},"4",{"type":993,"tag":1034,"props":3386,"children":3387},{"style":1046},[3388],{"type":998,"value":1839},{"type":993,"tag":1034,"props":3390,"children":3391},{"style":1040},[3392],{"type":998,"value":1526},{"type":993,"tag":1034,"props":3394,"children":3395},{"style":1099},[3396],{"type":998,"value":1256},{"type":993,"tag":1034,"props":3398,"children":3399},{"style":1238},[3400],{"type":998,"value":1261},{"type":993,"tag":1034,"props":3402,"children":3403},{"style":1046},[3404],{"type":998,"value":1266},{"type":993,"tag":1034,"props":3406,"children":3407},{"class":1036,"line":284},[3408],{"type":993,"tag":1034,"props":3409,"children":3410},{"emptyLinePlaceholder":13},[3411],{"type":998,"value":1069},{"type":993,"tag":1034,"props":3413,"children":3414},{"class":1036,"line":293},[3415],{"type":993,"tag":1034,"props":3416,"children":3417},{"style":1075},[3418],{"type":998,"value":3419},"# Modulo and division\n",{"type":993,"tag":1034,"props":3421,"children":3422},{"class":1036,"line":302},[3423,3428,3432],{"type":993,"tag":1034,"props":3424,"children":3425},{"style":1046},[3426],{"type":998,"value":3427},"dividend ",{"type":993,"tag":1034,"props":3429,"children":3430},{"style":1040},[3431],{"type":998,"value":1091},{"type":993,"tag":1034,"props":3433,"children":3434},{"style":1099},[3435],{"type":998,"value":3436}," 17\n",{"type":993,"tag":1034,"props":3438,"children":3439},{"class":1036,"line":311},[3440,3445,3449],{"type":993,"tag":1034,"props":3441,"children":3442},{"style":1046},[3443],{"type":998,"value":3444},"divisor ",{"type":993,"tag":1034,"props":3446,"children":3447},{"style":1040},[3448],{"type":998,"value":1091},{"type":993,"tag":1034,"props":3450,"children":3451},{"style":1099},[3452],{"type":998,"value":3453}," 5\n",{"type":993,"tag":1034,"props":3455,"children":3456},{"class":1036,"line":320},[3457,3461,3465,3469,3473,3477,3482,3486,3491,3495,3500,3504,3509,3513,3517],{"type":993,"tag":1034,"props":3458,"children":3459},{"style":1099},[3460],{"type":998,"value":1225},{"type":993,"tag":1034,"props":3462,"children":3463},{"style":1046},[3464],{"type":998,"value":1230},{"type":993,"tag":1034,"props":3466,"children":3467},{"style":1040},[3468],{"type":998,"value":1235},{"type":993,"tag":1034,"props":3470,"children":3471},{"style":1238},[3472],{"type":998,"value":1261},{"type":993,"tag":1034,"props":3474,"children":3475},{"style":1099},[3476],{"type":998,"value":1465},{"type":993,"tag":1034,"props":3478,"children":3479},{"style":1238},[3480],{"type":998,"value":3481},"Division operations: ",{"type":993,"tag":1034,"props":3483,"children":3484},{"style":1099},[3485],{"type":998,"value":1246},{"type":993,"tag":1034,"props":3487,"children":3488},{"style":1046},[3489],{"type":998,"value":3490},"dividend",{"type":993,"tag":1034,"props":3492,"children":3493},{"style":1099},[3494],{"type":998,"value":1256},{"type":993,"tag":1034,"props":3496,"children":3497},{"style":1238},[3498],{"type":998,"value":3499}," ÷ ",{"type":993,"tag":1034,"props":3501,"children":3502},{"style":1099},[3503],{"type":998,"value":1246},{"type":993,"tag":1034,"props":3505,"children":3506},{"style":1046},[3507],{"type":998,"value":3508},"divisor",{"type":993,"tag":1034,"props":3510,"children":3511},{"style":1099},[3512],{"type":998,"value":1256},{"type":993,"tag":1034,"props":3514,"children":3515},{"style":1238},[3516],{"type":998,"value":1261},{"type":993,"tag":1034,"props":3518,"children":3519},{"style":1046},[3520],{"type":998,"value":1266},{"type":993,"tag":1034,"props":3522,"children":3523},{"class":1036,"line":329},[3524,3528,3532,3536,3541,3545,3549,3553,3558,3562,3566],{"type":993,"tag":1034,"props":3525,"children":3526},{"style":1099},[3527],{"type":998,"value":1225},{"type":993,"tag":1034,"props":3529,"children":3530},{"style":1046},[3531],{"type":998,"value":1230},{"type":993,"tag":1034,"props":3533,"children":3534},{"style":1040},[3535],{"type":998,"value":1235},{"type":993,"tag":1034,"props":3537,"children":3538},{"style":1238},[3539],{"type":998,"value":3540},"\"Regular division: ",{"type":993,"tag":1034,"props":3542,"children":3543},{"style":1099},[3544],{"type":998,"value":1246},{"type":993,"tag":1034,"props":3546,"children":3547},{"style":1046},[3548],{"type":998,"value":3427},{"type":993,"tag":1034,"props":3550,"children":3551},{"style":1040},[3552],{"type":998,"value":1431},{"type":993,"tag":1034,"props":3554,"children":3555},{"style":1046},[3556],{"type":998,"value":3557}," divisor",{"type":993,"tag":1034,"props":3559,"children":3560},{"style":1099},[3561],{"type":998,"value":1256},{"type":993,"tag":1034,"props":3563,"children":3564},{"style":1238},[3565],{"type":998,"value":1261},{"type":993,"tag":1034,"props":3567,"children":3568},{"style":1046},[3569],{"type":998,"value":1266},{"type":993,"tag":1034,"props":3571,"children":3572},{"class":1036,"line":338},[3573,3577,3581,3585,3590,3594,3598,3602,3606,3610,3614],{"type":993,"tag":1034,"props":3574,"children":3575},{"style":1099},[3576],{"type":998,"value":1225},{"type":993,"tag":1034,"props":3578,"children":3579},{"style":1046},[3580],{"type":998,"value":1230},{"type":993,"tag":1034,"props":3582,"children":3583},{"style":1040},[3584],{"type":998,"value":1235},{"type":993,"tag":1034,"props":3586,"children":3587},{"style":1238},[3588],{"type":998,"value":3589},"\"Floor division: ",{"type":993,"tag":1034,"props":3591,"children":3592},{"style":1099},[3593],{"type":998,"value":1246},{"type":993,"tag":1034,"props":3595,"children":3596},{"style":1046},[3597],{"type":998,"value":3427},{"type":993,"tag":1034,"props":3599,"children":3600},{"style":1040},[3601],{"type":998,"value":1933},{"type":993,"tag":1034,"props":3603,"children":3604},{"style":1046},[3605],{"type":998,"value":3557},{"type":993,"tag":1034,"props":3607,"children":3608},{"style":1099},[3609],{"type":998,"value":1256},{"type":993,"tag":1034,"props":3611,"children":3612},{"style":1238},[3613],{"type":998,"value":1261},{"type":993,"tag":1034,"props":3615,"children":3616},{"style":1046},[3617],{"type":998,"value":1266},{"type":993,"tag":1034,"props":3619,"children":3620},{"class":1036,"line":347},[3621,3625,3629,3633,3638,3642,3646,3650,3654,3658,3662],{"type":993,"tag":1034,"props":3622,"children":3623},{"style":1099},[3624],{"type":998,"value":1225},{"type":993,"tag":1034,"props":3626,"children":3627},{"style":1046},[3628],{"type":998,"value":1230},{"type":993,"tag":1034,"props":3630,"children":3631},{"style":1040},[3632],{"type":998,"value":1235},{"type":993,"tag":1034,"props":3634,"children":3635},{"style":1238},[3636],{"type":998,"value":3637},"\"Modulo (remainder): ",{"type":993,"tag":1034,"props":3639,"children":3640},{"style":1099},[3641],{"type":998,"value":1246},{"type":993,"tag":1034,"props":3643,"children":3644},{"style":1046},[3645],{"type":998,"value":3427},{"type":993,"tag":1034,"props":3647,"children":3648},{"style":1040},[3649],{"type":998,"value":1940},{"type":993,"tag":1034,"props":3651,"children":3652},{"style":1046},[3653],{"type":998,"value":3557},{"type":993,"tag":1034,"props":3655,"children":3656},{"style":1099},[3657],{"type":998,"value":1256},{"type":993,"tag":1034,"props":3659,"children":3660},{"style":1238},[3661],{"type":998,"value":1261},{"type":993,"tag":1034,"props":3663,"children":3664},{"style":1046},[3665],{"type":998,"value":1266},{"type":993,"tag":1034,"props":3667,"children":3668},{"class":1036,"line":356},[3669,3673,3677,3681,3686,3691,3696,3700,3704],{"type":993,"tag":1034,"props":3670,"children":3671},{"style":1099},[3672],{"type":998,"value":1225},{"type":993,"tag":1034,"props":3674,"children":3675},{"style":1046},[3676],{"type":998,"value":1230},{"type":993,"tag":1034,"props":3678,"children":3679},{"style":1040},[3680],{"type":998,"value":1235},{"type":993,"tag":1034,"props":3682,"children":3683},{"style":1238},[3684],{"type":998,"value":3685},"\"Divmod (quotient, remainder): ",{"type":993,"tag":1034,"props":3687,"children":3688},{"style":1099},[3689],{"type":998,"value":3690},"{divmod",{"type":993,"tag":1034,"props":3692,"children":3693},{"style":1046},[3694],{"type":998,"value":3695},"(dividend, divisor)",{"type":993,"tag":1034,"props":3697,"children":3698},{"style":1099},[3699],{"type":998,"value":1256},{"type":993,"tag":1034,"props":3701,"children":3702},{"style":1238},[3703],{"type":998,"value":1261},{"type":993,"tag":1034,"props":3705,"children":3706},{"style":1046},[3707],{"type":998,"value":1266},{"type":993,"tag":1857,"props":3709,"children":3711},{"id":3710},"trigonometric-functions",[3712],{"type":998,"value":3713},"⚡ Trigonometric Functions",{"type":993,"tag":1001,"props":3715,"children":3716},{},[3717],{"type":998,"value":3718},"Trigonometric functions are essential for geometry, physics, engineering, and many scientific applications.",{"type":993,"tag":1021,"props":3720,"children":3721},{},[3722],{"type":993,"tag":1025,"props":3723,"children":3725},{"className":1027,"code":3724,"language":6,"meta":8,"style":8},"import math\n\n# Convert between degrees and radians\ndef degrees_to_radians(degrees):\n    return math.radians(degrees)\n\ndef radians_to_degrees(radians):\n    return math.degrees(radians)\n\n# Common angles in degrees and their trigonometric values\nangles_degrees = [0, 30, 45, 60, 90, 180, 270, 360]\n\nprint(\"Trigonometric Functions:\")\nprint(\"Angle (°) | Radians | Sin     | Cos     | Tan\")\nprint(\"-\" * 50)\n\nfor degrees in angles_degrees:\n    radians = degrees_to_radians(degrees)\n    \n    # Handle special cases for tangent\n    if degrees in [90, 270]:\n        tan_value = \"undefined\"\n    else:\n        tan_value = f\"{math.tan(radians):7.3f}\"\n    \n    print(f\"{degrees:7} | {radians:7.3f} | {math.sin(radians):7.3f} | \"\n          f\"{math.cos(radians):7.3f} | {tan_value}\")\n\n# Inverse trigonometric functions\nprint(\"\\nInverse Trigonometric Functions:\")\nvalue = 0.5\nprint(f\"arcsin({value}) = {math.degrees(math.asin(value)):.1f}°\")\nprint(f\"arccos({value}) = {math.degrees(math.acos(value)):.1f}°\")\nprint(f\"arctan({value}) = {math.degrees(math.atan(value)):.1f}°\")\n\n# Practical example: Calculate distance using Law of Cosines\ndef calculate_distance(a, b, angle_degrees):\n    \"\"\"Calculate the third side of a triangle using Law of Cosines\"\"\"\n    angle_radians = math.radians(angle_degrees)\n    c_squared = a**2 + b**2 - 2*a*b*math.cos(angle_radians)\n    return math.sqrt(c_squared)\n\n# Find distance between two points\nside_a = 10  # meters\nside_b = 15  # meters\nangle = 120  # degrees\n\ndistance = calculate_distance(side_a, side_b, angle)\nprint(f\"\\nTriangle with sides {side_a}m and {side_b}m, angle {angle}°:\")\nprint(f\"Third side length: {distance:.2f}m\")\n",[3726],{"type":993,"tag":1007,"props":3727,"children":3728},{"__ignoreMap":8},[3729,3740,3747,3755,3774,3787,3794,3811,3823,3830,3838,3925,3932,3952,3972,4002,4009,4030,4047,4055,4063,4100,4117,4130,4173,4180,4266,4320,4327,4335,4363,4379,4443,4504,4565,4572,4580,4597,4605,4622,4702,4714,4721,4729,4751,4772,4793,4800,4817,4903],{"type":993,"tag":1034,"props":3730,"children":3731},{"class":1036,"line":12},[3732,3736],{"type":993,"tag":1034,"props":3733,"children":3734},{"style":1040},[3735],{"type":998,"value":1043},{"type":993,"tag":1034,"props":3737,"children":3738},{"style":1046},[3739],{"type":998,"value":1049},{"type":993,"tag":1034,"props":3741,"children":3742},{"class":1036,"line":27},[3743],{"type":993,"tag":1034,"props":3744,"children":3745},{"emptyLinePlaceholder":13},[3746],{"type":998,"value":1069},{"type":993,"tag":1034,"props":3748,"children":3749},{"class":1036,"line":36},[3750],{"type":993,"tag":1034,"props":3751,"children":3752},{"style":1075},[3753],{"type":998,"value":3754},"# Convert between degrees and radians\n",{"type":993,"tag":1034,"props":3756,"children":3757},{"class":1036,"line":45},[3758,3763,3769],{"type":993,"tag":1034,"props":3759,"children":3760},{"style":1040},[3761],{"type":998,"value":3762},"def",{"type":993,"tag":1034,"props":3764,"children":3766},{"style":3765},"--shiki-default:#6F42C1;--shiki-app-dark-mode:#B392F0",[3767],{"type":998,"value":3768}," degrees_to_radians",{"type":993,"tag":1034,"props":3770,"children":3771},{"style":1046},[3772],{"type":998,"value":3773},"(degrees):\n",{"type":993,"tag":1034,"props":3775,"children":3776},{"class":1036,"line":54},[3777,3782],{"type":993,"tag":1034,"props":3778,"children":3779},{"style":1040},[3780],{"type":998,"value":3781},"    return",{"type":993,"tag":1034,"props":3783,"children":3784},{"style":1046},[3785],{"type":998,"value":3786}," math.radians(degrees)\n",{"type":993,"tag":1034,"props":3788,"children":3789},{"class":1036,"line":63},[3790],{"type":993,"tag":1034,"props":3791,"children":3792},{"emptyLinePlaceholder":13},[3793],{"type":998,"value":1069},{"type":993,"tag":1034,"props":3795,"children":3796},{"class":1036,"line":72},[3797,3801,3806],{"type":993,"tag":1034,"props":3798,"children":3799},{"style":1040},[3800],{"type":998,"value":3762},{"type":993,"tag":1034,"props":3802,"children":3803},{"style":3765},[3804],{"type":998,"value":3805}," radians_to_degrees",{"type":993,"tag":1034,"props":3807,"children":3808},{"style":1046},[3809],{"type":998,"value":3810},"(radians):\n",{"type":993,"tag":1034,"props":3812,"children":3813},{"class":1036,"line":81},[3814,3818],{"type":993,"tag":1034,"props":3815,"children":3816},{"style":1040},[3817],{"type":998,"value":3781},{"type":993,"tag":1034,"props":3819,"children":3820},{"style":1046},[3821],{"type":998,"value":3822}," math.degrees(radians)\n",{"type":993,"tag":1034,"props":3824,"children":3825},{"class":1036,"line":91},[3826],{"type":993,"tag":1034,"props":3827,"children":3828},{"emptyLinePlaceholder":13},[3829],{"type":998,"value":1069},{"type":993,"tag":1034,"props":3831,"children":3832},{"class":1036,"line":100},[3833],{"type":993,"tag":1034,"props":3834,"children":3835},{"style":1075},[3836],{"type":998,"value":3837},"# Common angles in degrees and their trigonometric values\n",{"type":993,"tag":1034,"props":3839,"children":3840},{"class":1036,"line":109},[3841,3846,3850,3854,3859,3863,3867,3871,3876,3880,3885,3889,3894,3898,3903,3907,3912,3916,3921],{"type":993,"tag":1034,"props":3842,"children":3843},{"style":1046},[3844],{"type":998,"value":3845},"angles_degrees ",{"type":993,"tag":1034,"props":3847,"children":3848},{"style":1040},[3849],{"type":998,"value":1091},{"type":993,"tag":1034,"props":3851,"children":3852},{"style":1046},[3853],{"type":998,"value":1096},{"type":993,"tag":1034,"props":3855,"children":3856},{"style":1099},[3857],{"type":998,"value":3858},"0",{"type":993,"tag":1034,"props":3860,"children":3861},{"style":1046},[3862],{"type":998,"value":1107},{"type":993,"tag":1034,"props":3864,"children":3865},{"style":1099},[3866],{"type":998,"value":1139},{"type":993,"tag":1034,"props":3868,"children":3869},{"style":1046},[3870],{"type":998,"value":1107},{"type":993,"tag":1034,"props":3872,"children":3873},{"style":1099},[3874],{"type":998,"value":3875},"45",{"type":993,"tag":1034,"props":3877,"children":3878},{"style":1046},[3879],{"type":998,"value":1107},{"type":993,"tag":1034,"props":3881,"children":3882},{"style":1099},[3883],{"type":998,"value":3884},"60",{"type":993,"tag":1034,"props":3886,"children":3887},{"style":1046},[3888],{"type":998,"value":1107},{"type":993,"tag":1034,"props":3890,"children":3891},{"style":1099},[3892],{"type":998,"value":3893},"90",{"type":993,"tag":1034,"props":3895,"children":3896},{"style":1046},[3897],{"type":998,"value":1107},{"type":993,"tag":1034,"props":3899,"children":3900},{"style":1099},[3901],{"type":998,"value":3902},"180",{"type":993,"tag":1034,"props":3904,"children":3905},{"style":1046},[3906],{"type":998,"value":1107},{"type":993,"tag":1034,"props":3908,"children":3909},{"style":1099},[3910],{"type":998,"value":3911},"270",{"type":993,"tag":1034,"props":3913,"children":3914},{"style":1046},[3915],{"type":998,"value":1107},{"type":993,"tag":1034,"props":3917,"children":3918},{"style":1099},[3919],{"type":998,"value":3920},"360",{"type":993,"tag":1034,"props":3922,"children":3923},{"style":1046},[3924],{"type":998,"value":1144},{"type":993,"tag":1034,"props":3926,"children":3927},{"class":1036,"line":118},[3928],{"type":993,"tag":1034,"props":3929,"children":3930},{"emptyLinePlaceholder":13},[3931],{"type":998,"value":1069},{"type":993,"tag":1034,"props":3933,"children":3934},{"class":1036,"line":127},[3935,3939,3943,3948],{"type":993,"tag":1034,"props":3936,"children":3937},{"style":1099},[3938],{"type":998,"value":1225},{"type":993,"tag":1034,"props":3940,"children":3941},{"style":1046},[3942],{"type":998,"value":1230},{"type":993,"tag":1034,"props":3944,"children":3945},{"style":1238},[3946],{"type":998,"value":3947},"\"Trigonometric Functions:\"",{"type":993,"tag":1034,"props":3949,"children":3950},{"style":1046},[3951],{"type":998,"value":1266},{"type":993,"tag":1034,"props":3953,"children":3954},{"class":1036,"line":136},[3955,3959,3963,3968],{"type":993,"tag":1034,"props":3956,"children":3957},{"style":1099},[3958],{"type":998,"value":1225},{"type":993,"tag":1034,"props":3960,"children":3961},{"style":1046},[3962],{"type":998,"value":1230},{"type":993,"tag":1034,"props":3964,"children":3965},{"style":1238},[3966],{"type":998,"value":3967},"\"Angle (°) | Radians | Sin     | Cos     | Tan\"",{"type":993,"tag":1034,"props":3969,"children":3970},{"style":1046},[3971],{"type":998,"value":1266},{"type":993,"tag":1034,"props":3973,"children":3974},{"class":1036,"line":146},[3975,3979,3983,3988,3993,3998],{"type":993,"tag":1034,"props":3976,"children":3977},{"style":1099},[3978],{"type":998,"value":1225},{"type":993,"tag":1034,"props":3980,"children":3981},{"style":1046},[3982],{"type":998,"value":1230},{"type":993,"tag":1034,"props":3984,"children":3985},{"style":1238},[3986],{"type":998,"value":3987},"\"-\"",{"type":993,"tag":1034,"props":3989,"children":3990},{"style":1040},[3991],{"type":998,"value":3992}," *",{"type":993,"tag":1034,"props":3994,"children":3995},{"style":1099},[3996],{"type":998,"value":3997}," 50",{"type":993,"tag":1034,"props":3999,"children":4000},{"style":1046},[4001],{"type":998,"value":1266},{"type":993,"tag":1034,"props":4003,"children":4004},{"class":1036,"line":155},[4005],{"type":993,"tag":1034,"props":4006,"children":4007},{"emptyLinePlaceholder":13},[4008],{"type":998,"value":1069},{"type":993,"tag":1034,"props":4010,"children":4011},{"class":1036,"line":164},[4012,4016,4021,4025],{"type":993,"tag":1034,"props":4013,"children":4014},{"style":1040},[4015],{"type":998,"value":2732},{"type":993,"tag":1034,"props":4017,"children":4018},{"style":1046},[4019],{"type":998,"value":4020}," degrees ",{"type":993,"tag":1034,"props":4022,"children":4023},{"style":1040},[4024],{"type":998,"value":2742},{"type":993,"tag":1034,"props":4026,"children":4027},{"style":1046},[4028],{"type":998,"value":4029}," angles_degrees:\n",{"type":993,"tag":1034,"props":4031,"children":4032},{"class":1036,"line":173},[4033,4038,4042],{"type":993,"tag":1034,"props":4034,"children":4035},{"style":1046},[4036],{"type":998,"value":4037},"    radians ",{"type":993,"tag":1034,"props":4039,"children":4040},{"style":1040},[4041],{"type":998,"value":1091},{"type":993,"tag":1034,"props":4043,"children":4044},{"style":1046},[4045],{"type":998,"value":4046}," degrees_to_radians(degrees)\n",{"type":993,"tag":1034,"props":4048,"children":4049},{"class":1036,"line":182},[4050],{"type":993,"tag":1034,"props":4051,"children":4052},{"style":1046},[4053],{"type":998,"value":4054},"    \n",{"type":993,"tag":1034,"props":4056,"children":4057},{"class":1036,"line":191},[4058],{"type":993,"tag":1034,"props":4059,"children":4060},{"style":1075},[4061],{"type":998,"value":4062},"    # Handle special cases for tangent\n",{"type":993,"tag":1034,"props":4064,"children":4065},{"class":1036,"line":201},[4066,4071,4075,4079,4083,4087,4091,4095],{"type":993,"tag":1034,"props":4067,"children":4068},{"style":1040},[4069],{"type":998,"value":4070},"    if",{"type":993,"tag":1034,"props":4072,"children":4073},{"style":1046},[4074],{"type":998,"value":4020},{"type":993,"tag":1034,"props":4076,"children":4077},{"style":1040},[4078],{"type":998,"value":2742},{"type":993,"tag":1034,"props":4080,"children":4081},{"style":1046},[4082],{"type":998,"value":1096},{"type":993,"tag":1034,"props":4084,"children":4085},{"style":1099},[4086],{"type":998,"value":3893},{"type":993,"tag":1034,"props":4088,"children":4089},{"style":1046},[4090],{"type":998,"value":1107},{"type":993,"tag":1034,"props":4092,"children":4093},{"style":1099},[4094],{"type":998,"value":3911},{"type":993,"tag":1034,"props":4096,"children":4097},{"style":1046},[4098],{"type":998,"value":4099},"]:\n",{"type":993,"tag":1034,"props":4101,"children":4102},{"class":1036,"line":210},[4103,4108,4112],{"type":993,"tag":1034,"props":4104,"children":4105},{"style":1046},[4106],{"type":998,"value":4107},"        tan_value ",{"type":993,"tag":1034,"props":4109,"children":4110},{"style":1040},[4111],{"type":998,"value":1091},{"type":993,"tag":1034,"props":4113,"children":4114},{"style":1238},[4115],{"type":998,"value":4116}," \"undefined\"\n",{"type":993,"tag":1034,"props":4118,"children":4119},{"class":1036,"line":219},[4120,4125],{"type":993,"tag":1034,"props":4121,"children":4122},{"style":1040},[4123],{"type":998,"value":4124},"    else",{"type":993,"tag":1034,"props":4126,"children":4127},{"style":1046},[4128],{"type":998,"value":4129},":\n",{"type":993,"tag":1034,"props":4131,"children":4132},{"class":1036,"line":228},[4133,4137,4141,4146,4150,4154,4159,4164,4168],{"type":993,"tag":1034,"props":4134,"children":4135},{"style":1046},[4136],{"type":998,"value":4107},{"type":993,"tag":1034,"props":4138,"children":4139},{"style":1040},[4140],{"type":998,"value":1091},{"type":993,"tag":1034,"props":4142,"children":4143},{"style":1040},[4144],{"type":998,"value":4145}," f",{"type":993,"tag":1034,"props":4147,"children":4148},{"style":1238},[4149],{"type":998,"value":1261},{"type":993,"tag":1034,"props":4151,"children":4152},{"style":1099},[4153],{"type":998,"value":1246},{"type":993,"tag":1034,"props":4155,"children":4156},{"style":1046},[4157],{"type":998,"value":4158},"math.tan(radians)",{"type":993,"tag":1034,"props":4160,"children":4161},{"style":1040},[4162],{"type":998,"value":4163},":7.3f",{"type":993,"tag":1034,"props":4165,"children":4166},{"style":1099},[4167],{"type":998,"value":1256},{"type":993,"tag":1034,"props":4169,"children":4170},{"style":1238},[4171],{"type":998,"value":4172},"\"\n",{"type":993,"tag":1034,"props":4174,"children":4175},{"class":1036,"line":238},[4176],{"type":993,"tag":1034,"props":4177,"children":4178},{"style":1046},[4179],{"type":998,"value":4054},{"type":993,"tag":1034,"props":4181,"children":4182},{"class":1036,"line":247},[4183,4188,4192,4196,4200,4204,4209,4214,4218,4223,4227,4232,4236,4240,4244,4248,4253,4257,4261],{"type":993,"tag":1034,"props":4184,"children":4185},{"style":1099},[4186],{"type":998,"value":4187},"    print",{"type":993,"tag":1034,"props":4189,"children":4190},{"style":1046},[4191],{"type":998,"value":1230},{"type":993,"tag":1034,"props":4193,"children":4194},{"style":1040},[4195],{"type":998,"value":1235},{"type":993,"tag":1034,"props":4197,"children":4198},{"style":1238},[4199],{"type":998,"value":1261},{"type":993,"tag":1034,"props":4201,"children":4202},{"style":1099},[4203],{"type":998,"value":1246},{"type":993,"tag":1034,"props":4205,"children":4206},{"style":1046},[4207],{"type":998,"value":4208},"degrees",{"type":993,"tag":1034,"props":4210,"children":4211},{"style":1040},[4212],{"type":998,"value":4213},":7",{"type":993,"tag":1034,"props":4215,"children":4216},{"style":1099},[4217],{"type":998,"value":1256},{"type":993,"tag":1034,"props":4219,"children":4220},{"style":1238},[4221],{"type":998,"value":4222}," | ",{"type":993,"tag":1034,"props":4224,"children":4225},{"style":1099},[4226],{"type":998,"value":1246},{"type":993,"tag":1034,"props":4228,"children":4229},{"style":1046},[4230],{"type":998,"value":4231},"radians",{"type":993,"tag":1034,"props":4233,"children":4234},{"style":1040},[4235],{"type":998,"value":4163},{"type":993,"tag":1034,"props":4237,"children":4238},{"style":1099},[4239],{"type":998,"value":1256},{"type":993,"tag":1034,"props":4241,"children":4242},{"style":1238},[4243],{"type":998,"value":4222},{"type":993,"tag":1034,"props":4245,"children":4246},{"style":1099},[4247],{"type":998,"value":1246},{"type":993,"tag":1034,"props":4249,"children":4250},{"style":1046},[4251],{"type":998,"value":4252},"math.sin(radians)",{"type":993,"tag":1034,"props":4254,"children":4255},{"style":1040},[4256],{"type":998,"value":4163},{"type":993,"tag":1034,"props":4258,"children":4259},{"style":1099},[4260],{"type":998,"value":1256},{"type":993,"tag":1034,"props":4262,"children":4263},{"style":1238},[4264],{"type":998,"value":4265}," | \"\n",{"type":993,"tag":1034,"props":4267,"children":4268},{"class":1036,"line":256},[4269,4274,4278,4282,4287,4291,4295,4299,4303,4308,4312,4316],{"type":993,"tag":1034,"props":4270,"children":4271},{"style":1040},[4272],{"type":998,"value":4273},"          f",{"type":993,"tag":1034,"props":4275,"children":4276},{"style":1238},[4277],{"type":998,"value":1261},{"type":993,"tag":1034,"props":4279,"children":4280},{"style":1099},[4281],{"type":998,"value":1246},{"type":993,"tag":1034,"props":4283,"children":4284},{"style":1046},[4285],{"type":998,"value":4286},"math.cos(radians)",{"type":993,"tag":1034,"props":4288,"children":4289},{"style":1040},[4290],{"type":998,"value":4163},{"type":993,"tag":1034,"props":4292,"children":4293},{"style":1099},[4294],{"type":998,"value":1256},{"type":993,"tag":1034,"props":4296,"children":4297},{"style":1238},[4298],{"type":998,"value":4222},{"type":993,"tag":1034,"props":4300,"children":4301},{"style":1099},[4302],{"type":998,"value":1246},{"type":993,"tag":1034,"props":4304,"children":4305},{"style":1046},[4306],{"type":998,"value":4307},"tan_value",{"type":993,"tag":1034,"props":4309,"children":4310},{"style":1099},[4311],{"type":998,"value":1256},{"type":993,"tag":1034,"props":4313,"children":4314},{"style":1238},[4315],{"type":998,"value":1261},{"type":993,"tag":1034,"props":4317,"children":4318},{"style":1046},[4319],{"type":998,"value":1266},{"type":993,"tag":1034,"props":4321,"children":4322},{"class":1036,"line":265},[4323],{"type":993,"tag":1034,"props":4324,"children":4325},{"emptyLinePlaceholder":13},[4326],{"type":998,"value":1069},{"type":993,"tag":1034,"props":4328,"children":4329},{"class":1036,"line":274},[4330],{"type":993,"tag":1034,"props":4331,"children":4332},{"style":1075},[4333],{"type":998,"value":4334},"# Inverse trigonometric functions\n",{"type":993,"tag":1034,"props":4336,"children":4337},{"class":1036,"line":284},[4338,4342,4346,4350,4354,4359],{"type":993,"tag":1034,"props":4339,"children":4340},{"style":1099},[4341],{"type":998,"value":1225},{"type":993,"tag":1034,"props":4343,"children":4344},{"style":1046},[4345],{"type":998,"value":1230},{"type":993,"tag":1034,"props":4347,"children":4348},{"style":1238},[4349],{"type":998,"value":1261},{"type":993,"tag":1034,"props":4351,"children":4352},{"style":1099},[4353],{"type":998,"value":1465},{"type":993,"tag":1034,"props":4355,"children":4356},{"style":1238},[4357],{"type":998,"value":4358},"Inverse Trigonometric Functions:\"",{"type":993,"tag":1034,"props":4360,"children":4361},{"style":1046},[4362],{"type":998,"value":1266},{"type":993,"tag":1034,"props":4364,"children":4365},{"class":1036,"line":293},[4366,4370,4374],{"type":993,"tag":1034,"props":4367,"children":4368},{"style":1046},[4369],{"type":998,"value":1651},{"type":993,"tag":1034,"props":4371,"children":4372},{"style":1040},[4373],{"type":998,"value":1091},{"type":993,"tag":1034,"props":4375,"children":4376},{"style":1099},[4377],{"type":998,"value":4378}," 0.5\n",{"type":993,"tag":1034,"props":4380,"children":4381},{"class":1036,"line":302},[4382,4386,4390,4394,4399,4403,4407,4411,4416,4420,4425,4430,4434,4439],{"type":993,"tag":1034,"props":4383,"children":4384},{"style":1099},[4385],{"type":998,"value":1225},{"type":993,"tag":1034,"props":4387,"children":4388},{"style":1046},[4389],{"type":998,"value":1230},{"type":993,"tag":1034,"props":4391,"children":4392},{"style":1040},[4393],{"type":998,"value":1235},{"type":993,"tag":1034,"props":4395,"children":4396},{"style":1238},[4397],{"type":998,"value":4398},"\"arcsin(",{"type":993,"tag":1034,"props":4400,"children":4401},{"style":1099},[4402],{"type":998,"value":1246},{"type":993,"tag":1034,"props":4404,"children":4405},{"style":1046},[4406],{"type":998,"value":1697},{"type":993,"tag":1034,"props":4408,"children":4409},{"style":1099},[4410],{"type":998,"value":1256},{"type":993,"tag":1034,"props":4412,"children":4413},{"style":1238},[4414],{"type":998,"value":4415},") = ",{"type":993,"tag":1034,"props":4417,"children":4418},{"style":1099},[4419],{"type":998,"value":1246},{"type":993,"tag":1034,"props":4421,"children":4422},{"style":1046},[4423],{"type":998,"value":4424},"math.degrees(math.asin(value))",{"type":993,"tag":1034,"props":4426,"children":4427},{"style":1040},[4428],{"type":998,"value":4429},":.1f",{"type":993,"tag":1034,"props":4431,"children":4432},{"style":1099},[4433],{"type":998,"value":1256},{"type":993,"tag":1034,"props":4435,"children":4436},{"style":1238},[4437],{"type":998,"value":4438},"°\"",{"type":993,"tag":1034,"props":4440,"children":4441},{"style":1046},[4442],{"type":998,"value":1266},{"type":993,"tag":1034,"props":4444,"children":4445},{"class":1036,"line":311},[4446,4450,4454,4458,4463,4467,4471,4475,4479,4483,4488,4492,4496,4500],{"type":993,"tag":1034,"props":4447,"children":4448},{"style":1099},[4449],{"type":998,"value":1225},{"type":993,"tag":1034,"props":4451,"children":4452},{"style":1046},[4453],{"type":998,"value":1230},{"type":993,"tag":1034,"props":4455,"children":4456},{"style":1040},[4457],{"type":998,"value":1235},{"type":993,"tag":1034,"props":4459,"children":4460},{"style":1238},[4461],{"type":998,"value":4462},"\"arccos(",{"type":993,"tag":1034,"props":4464,"children":4465},{"style":1099},[4466],{"type":998,"value":1246},{"type":993,"tag":1034,"props":4468,"children":4469},{"style":1046},[4470],{"type":998,"value":1697},{"type":993,"tag":1034,"props":4472,"children":4473},{"style":1099},[4474],{"type":998,"value":1256},{"type":993,"tag":1034,"props":4476,"children":4477},{"style":1238},[4478],{"type":998,"value":4415},{"type":993,"tag":1034,"props":4480,"children":4481},{"style":1099},[4482],{"type":998,"value":1246},{"type":993,"tag":1034,"props":4484,"children":4485},{"style":1046},[4486],{"type":998,"value":4487},"math.degrees(math.acos(value))",{"type":993,"tag":1034,"props":4489,"children":4490},{"style":1040},[4491],{"type":998,"value":4429},{"type":993,"tag":1034,"props":4493,"children":4494},{"style":1099},[4495],{"type":998,"value":1256},{"type":993,"tag":1034,"props":4497,"children":4498},{"style":1238},[4499],{"type":998,"value":4438},{"type":993,"tag":1034,"props":4501,"children":4502},{"style":1046},[4503],{"type":998,"value":1266},{"type":993,"tag":1034,"props":4505,"children":4506},{"class":1036,"line":320},[4507,4511,4515,4519,4524,4528,4532,4536,4540,4544,4549,4553,4557,4561],{"type":993,"tag":1034,"props":4508,"children":4509},{"style":1099},[4510],{"type":998,"value":1225},{"type":993,"tag":1034,"props":4512,"children":4513},{"style":1046},[4514],{"type":998,"value":1230},{"type":993,"tag":1034,"props":4516,"children":4517},{"style":1040},[4518],{"type":998,"value":1235},{"type":993,"tag":1034,"props":4520,"children":4521},{"style":1238},[4522],{"type":998,"value":4523},"\"arctan(",{"type":993,"tag":1034,"props":4525,"children":4526},{"style":1099},[4527],{"type":998,"value":1246},{"type":993,"tag":1034,"props":4529,"children":4530},{"style":1046},[4531],{"type":998,"value":1697},{"type":993,"tag":1034,"props":4533,"children":4534},{"style":1099},[4535],{"type":998,"value":1256},{"type":993,"tag":1034,"props":4537,"children":4538},{"style":1238},[4539],{"type":998,"value":4415},{"type":993,"tag":1034,"props":4541,"children":4542},{"style":1099},[4543],{"type":998,"value":1246},{"type":993,"tag":1034,"props":4545,"children":4546},{"style":1046},[4547],{"type":998,"value":4548},"math.degrees(math.atan(value))",{"type":993,"tag":1034,"props":4550,"children":4551},{"style":1040},[4552],{"type":998,"value":4429},{"type":993,"tag":1034,"props":4554,"children":4555},{"style":1099},[4556],{"type":998,"value":1256},{"type":993,"tag":1034,"props":4558,"children":4559},{"style":1238},[4560],{"type":998,"value":4438},{"type":993,"tag":1034,"props":4562,"children":4563},{"style":1046},[4564],{"type":998,"value":1266},{"type":993,"tag":1034,"props":4566,"children":4567},{"class":1036,"line":329},[4568],{"type":993,"tag":1034,"props":4569,"children":4570},{"emptyLinePlaceholder":13},[4571],{"type":998,"value":1069},{"type":993,"tag":1034,"props":4573,"children":4574},{"class":1036,"line":338},[4575],{"type":993,"tag":1034,"props":4576,"children":4577},{"style":1075},[4578],{"type":998,"value":4579},"# Practical example: Calculate distance using Law of Cosines\n",{"type":993,"tag":1034,"props":4581,"children":4582},{"class":1036,"line":347},[4583,4587,4592],{"type":993,"tag":1034,"props":4584,"children":4585},{"style":1040},[4586],{"type":998,"value":3762},{"type":993,"tag":1034,"props":4588,"children":4589},{"style":3765},[4590],{"type":998,"value":4591}," calculate_distance",{"type":993,"tag":1034,"props":4593,"children":4594},{"style":1046},[4595],{"type":998,"value":4596},"(a, b, angle_degrees):\n",{"type":993,"tag":1034,"props":4598,"children":4599},{"class":1036,"line":356},[4600],{"type":993,"tag":1034,"props":4601,"children":4602},{"style":1238},[4603],{"type":998,"value":4604},"    \"\"\"Calculate the third side of a triangle using Law of Cosines\"\"\"\n",{"type":993,"tag":1034,"props":4606,"children":4607},{"class":1036,"line":365},[4608,4613,4617],{"type":993,"tag":1034,"props":4609,"children":4610},{"style":1046},[4611],{"type":998,"value":4612},"    angle_radians ",{"type":993,"tag":1034,"props":4614,"children":4615},{"style":1040},[4616],{"type":998,"value":1091},{"type":993,"tag":1034,"props":4618,"children":4619},{"style":1046},[4620],{"type":998,"value":4621}," math.radians(angle_degrees)\n",{"type":993,"tag":1034,"props":4623,"children":4624},{"class":1036,"line":374},[4625,4630,4634,4639,4643,4647,4652,4657,4661,4665,4670,4675,4679,4684,4688,4693,4697],{"type":993,"tag":1034,"props":4626,"children":4627},{"style":1046},[4628],{"type":998,"value":4629},"    c_squared ",{"type":993,"tag":1034,"props":4631,"children":4632},{"style":1040},[4633],{"type":998,"value":1091},{"type":993,"tag":1034,"props":4635,"children":4636},{"style":1046},[4637],{"type":998,"value":4638}," a",{"type":993,"tag":1034,"props":4640,"children":4641},{"style":1040},[4642],{"type":998,"value":1926},{"type":993,"tag":1034,"props":4644,"children":4645},{"style":1099},[4646],{"type":998,"value":1834},{"type":993,"tag":1034,"props":4648,"children":4649},{"style":1040},[4650],{"type":998,"value":4651}," +",{"type":993,"tag":1034,"props":4653,"children":4654},{"style":1046},[4655],{"type":998,"value":4656}," b",{"type":993,"tag":1034,"props":4658,"children":4659},{"style":1040},[4660],{"type":998,"value":1926},{"type":993,"tag":1034,"props":4662,"children":4663},{"style":1099},[4664],{"type":998,"value":1834},{"type":993,"tag":1034,"props":4666,"children":4667},{"style":1040},[4668],{"type":998,"value":4669}," -",{"type":993,"tag":1034,"props":4671,"children":4672},{"style":1099},[4673],{"type":998,"value":4674}," 2",{"type":993,"tag":1034,"props":4676,"children":4677},{"style":1040},[4678],{"type":998,"value":1913},{"type":993,"tag":1034,"props":4680,"children":4681},{"style":1046},[4682],{"type":998,"value":4683},"a",{"type":993,"tag":1034,"props":4685,"children":4686},{"style":1040},[4687],{"type":998,"value":1913},{"type":993,"tag":1034,"props":4689,"children":4690},{"style":1046},[4691],{"type":998,"value":4692},"b",{"type":993,"tag":1034,"props":4694,"children":4695},{"style":1040},[4696],{"type":998,"value":1913},{"type":993,"tag":1034,"props":4698,"children":4699},{"style":1046},[4700],{"type":998,"value":4701},"math.cos(angle_radians)\n",{"type":993,"tag":1034,"props":4703,"children":4704},{"class":1036,"line":384},[4705,4709],{"type":993,"tag":1034,"props":4706,"children":4707},{"style":1040},[4708],{"type":998,"value":3781},{"type":993,"tag":1034,"props":4710,"children":4711},{"style":1046},[4712],{"type":998,"value":4713}," math.sqrt(c_squared)\n",{"type":993,"tag":1034,"props":4715,"children":4716},{"class":1036,"line":393},[4717],{"type":993,"tag":1034,"props":4718,"children":4719},{"emptyLinePlaceholder":13},[4720],{"type":998,"value":1069},{"type":993,"tag":1034,"props":4722,"children":4723},{"class":1036,"line":402},[4724],{"type":993,"tag":1034,"props":4725,"children":4726},{"style":1075},[4727],{"type":998,"value":4728},"# Find distance between two points\n",{"type":993,"tag":1034,"props":4730,"children":4731},{"class":1036,"line":411},[4732,4737,4741,4746],{"type":993,"tag":1034,"props":4733,"children":4734},{"style":1046},[4735],{"type":998,"value":4736},"side_a ",{"type":993,"tag":1034,"props":4738,"children":4739},{"style":1040},[4740],{"type":998,"value":1091},{"type":993,"tag":1034,"props":4742,"children":4743},{"style":1099},[4744],{"type":998,"value":4745}," 10",{"type":993,"tag":1034,"props":4747,"children":4748},{"style":1075},[4749],{"type":998,"value":4750},"  # meters\n",{"type":993,"tag":1034,"props":4752,"children":4753},{"class":1036,"line":420},[4754,4759,4763,4768],{"type":993,"tag":1034,"props":4755,"children":4756},{"style":1046},[4757],{"type":998,"value":4758},"side_b ",{"type":993,"tag":1034,"props":4760,"children":4761},{"style":1040},[4762],{"type":998,"value":1091},{"type":993,"tag":1034,"props":4764,"children":4765},{"style":1099},[4766],{"type":998,"value":4767}," 15",{"type":993,"tag":1034,"props":4769,"children":4770},{"style":1075},[4771],{"type":998,"value":4750},{"type":993,"tag":1034,"props":4773,"children":4774},{"class":1036,"line":429},[4775,4779,4783,4788],{"type":993,"tag":1034,"props":4776,"children":4777},{"style":1046},[4778],{"type":998,"value":1417},{"type":993,"tag":1034,"props":4780,"children":4781},{"style":1040},[4782],{"type":998,"value":1091},{"type":993,"tag":1034,"props":4784,"children":4785},{"style":1099},[4786],{"type":998,"value":4787}," 120",{"type":993,"tag":1034,"props":4789,"children":4790},{"style":1075},[4791],{"type":998,"value":4792},"  # degrees\n",{"type":993,"tag":1034,"props":4794,"children":4795},{"class":1036,"line":438},[4796],{"type":993,"tag":1034,"props":4797,"children":4798},{"emptyLinePlaceholder":13},[4799],{"type":998,"value":1069},{"type":993,"tag":1034,"props":4801,"children":4802},{"class":1036,"line":447},[4803,4808,4812],{"type":993,"tag":1034,"props":4804,"children":4805},{"style":1046},[4806],{"type":998,"value":4807},"distance ",{"type":993,"tag":1034,"props":4809,"children":4810},{"style":1040},[4811],{"type":998,"value":1091},{"type":993,"tag":1034,"props":4813,"children":4814},{"style":1046},[4815],{"type":998,"value":4816}," calculate_distance(side_a, side_b, angle)\n",{"type":993,"tag":1034,"props":4818,"children":4819},{"class":1036,"line":457},[4820,4824,4828,4832,4836,4840,4845,4849,4854,4858,4863,4867,4872,4876,4881,4885,4890,4894,4899],{"type":993,"tag":1034,"props":4821,"children":4822},{"style":1099},[4823],{"type":998,"value":1225},{"type":993,"tag":1034,"props":4825,"children":4826},{"style":1046},[4827],{"type":998,"value":1230},{"type":993,"tag":1034,"props":4829,"children":4830},{"style":1040},[4831],{"type":998,"value":1235},{"type":993,"tag":1034,"props":4833,"children":4834},{"style":1238},[4835],{"type":998,"value":1261},{"type":993,"tag":1034,"props":4837,"children":4838},{"style":1099},[4839],{"type":998,"value":1465},{"type":993,"tag":1034,"props":4841,"children":4842},{"style":1238},[4843],{"type":998,"value":4844},"Triangle with sides ",{"type":993,"tag":1034,"props":4846,"children":4847},{"style":1099},[4848],{"type":998,"value":1246},{"type":993,"tag":1034,"props":4850,"children":4851},{"style":1046},[4852],{"type":998,"value":4853},"side_a",{"type":993,"tag":1034,"props":4855,"children":4856},{"style":1099},[4857],{"type":998,"value":1256},{"type":993,"tag":1034,"props":4859,"children":4860},{"style":1238},[4861],{"type":998,"value":4862},"m and ",{"type":993,"tag":1034,"props":4864,"children":4865},{"style":1099},[4866],{"type":998,"value":1246},{"type":993,"tag":1034,"props":4868,"children":4869},{"style":1046},[4870],{"type":998,"value":4871},"side_b",{"type":993,"tag":1034,"props":4873,"children":4874},{"style":1099},[4875],{"type":998,"value":1256},{"type":993,"tag":1034,"props":4877,"children":4878},{"style":1238},[4879],{"type":998,"value":4880},"m, angle ",{"type":993,"tag":1034,"props":4882,"children":4883},{"style":1099},[4884],{"type":998,"value":1246},{"type":993,"tag":1034,"props":4886,"children":4887},{"style":1046},[4888],{"type":998,"value":4889},"angle",{"type":993,"tag":1034,"props":4891,"children":4892},{"style":1099},[4893],{"type":998,"value":1256},{"type":993,"tag":1034,"props":4895,"children":4896},{"style":1238},[4897],{"type":998,"value":4898},"°:\"",{"type":993,"tag":1034,"props":4900,"children":4901},{"style":1046},[4902],{"type":998,"value":1266},{"type":993,"tag":1034,"props":4904,"children":4905},{"class":1036,"line":466},[4906,4910,4914,4918,4923,4927,4932,4936,4940,4945],{"type":993,"tag":1034,"props":4907,"children":4908},{"style":1099},[4909],{"type":998,"value":1225},{"type":993,"tag":1034,"props":4911,"children":4912},{"style":1046},[4913],{"type":998,"value":1230},{"type":993,"tag":1034,"props":4915,"children":4916},{"style":1040},[4917],{"type":998,"value":1235},{"type":993,"tag":1034,"props":4919,"children":4920},{"style":1238},[4921],{"type":998,"value":4922},"\"Third side length: ",{"type":993,"tag":1034,"props":4924,"children":4925},{"style":1099},[4926],{"type":998,"value":1246},{"type":993,"tag":1034,"props":4928,"children":4929},{"style":1046},[4930],{"type":998,"value":4931},"distance",{"type":993,"tag":1034,"props":4933,"children":4934},{"style":1040},[4935],{"type":998,"value":1382},{"type":993,"tag":1034,"props":4937,"children":4938},{"style":1099},[4939],{"type":998,"value":1256},{"type":993,"tag":1034,"props":4941,"children":4942},{"style":1238},[4943],{"type":998,"value":4944},"m\"",{"type":993,"tag":1034,"props":4946,"children":4947},{"style":1046},[4948],{"type":998,"value":1266},{"type":993,"tag":1857,"props":4950,"children":4952},{"id":4951},"logarithmic-and-exponential-functions",[4953],{"type":998,"value":4954},"🚀 Logarithmic and Exponential Functions",{"type":993,"tag":1001,"props":4956,"children":4957},{},[4958],{"type":998,"value":4959},"Logarithmic and exponential functions are crucial for growth calculations, data analysis, and scientific modeling.",{"type":993,"tag":1021,"props":4961,"children":4962},{},[4963],{"type":993,"tag":1025,"props":4964,"children":4966},{"className":1027,"code":4965,"language":6,"meta":8,"style":8},"import math\n\n# Exponential functions\nprint(\"Exponential Functions:\")\nfor x in [0, 1, 2, 3]:\n    print(f\"e^{x} = {math.exp(x):.3f}\")\n\nprint(f\"\\nEuler's number (e): {math.e:.6f}\")\n\n# Logarithmic functions\nvalues = [1, 2, 10, 100, 1000]\nprint(\"\\nLogarithmic Functions:\")\nprint(\"Value | ln(x)   | log10(x) | log2(x)\")\nprint(\"-\" * 40)\n\nfor value in values:\n    ln_x = math.log(value)\n    log10_x = math.log10(value)\n    log2_x = math.log2(value)\n    print(f\"{value:5} | {ln_x:7.3f} | {log10_x:8.3f} | {log2_x:7.3f}\")\n\n# Practical applications\ndef compound_interest(principal, rate, time, n=1):\n    \"\"\"Calculate compound interest: A = P(1 + r/n)^(nt)\"\"\"\n    amount = principal * math.pow((1 + rate/n), n * time)\n    return amount\n\ndef exponential_growth(initial, growth_rate, time):\n    \"\"\"Calculate exponential growth: N(t) = N0 * e^(rt)\"\"\"\n    return initial * math.exp(growth_rate * time)\n\ndef half_life_decay(initial, half_life, time):\n    \"\"\"Calculate radioactive decay using half-life\"\"\"\n    decay_constant = math.log(2) / half_life\n    return initial * math.exp(-decay_constant * time)\n\n# Financial calculation\nprincipal = 1000  # Initial investment\nrate = 0.05      # 5% annual interest\ntime = 10        # 10 years\nfinal_amount = compound_interest(principal, rate, time, 12)  # Monthly compounding\n\nprint(f\"\\nCompound Interest Calculation:\")\nprint(f\"Initial investment: ${principal}\")\nprint(f\"Interest rate: {rate*100}% annually\")\nprint(f\"Time: {time} years\")\nprint(f\"Final amount: ${final_amount:.2f}\")\nprint(f\"Total interest: ${final_amount - principal:.2f}\")\n\n# Population growth\ninitial_population = 1000\ngrowth_rate = 0.02  # 2% per year\nyears = 20\nfuture_population = exponential_growth(initial_population, growth_rate, years)\n\nprint(f\"\\nPopulation Growth:\")\nprint(f\"Initial population: {initial_population}\")\nprint(f\"Growth rate: {growth_rate*100}% per year\")\nprint(f\"Population after {years} years: {future_population:.0f}\")\n",[4967],{"type":993,"tag":1007,"props":4968,"children":4969},{"__ignoreMap":8},[4970,4981,4988,4996,5016,5067,5130,5137,5191,5198,5206,5264,5292,5312,5340,5347,5368,5385,5402,5419,5527,5534,5542,5572,5580,5637,5649,5656,5673,5681,5710,5717,5734,5742,5777,5814,5821,5829,5851,5873,5894,5926,5933,5965,6006,6053,6095,6140,6193,6200,6208,6225,6247,6264,6281,6288,6320,6361,6407],{"type":993,"tag":1034,"props":4971,"children":4972},{"class":1036,"line":12},[4973,4977],{"type":993,"tag":1034,"props":4974,"children":4975},{"style":1040},[4976],{"type":998,"value":1043},{"type":993,"tag":1034,"props":4978,"children":4979},{"style":1046},[4980],{"type":998,"value":1049},{"type":993,"tag":1034,"props":4982,"children":4983},{"class":1036,"line":27},[4984],{"type":993,"tag":1034,"props":4985,"children":4986},{"emptyLinePlaceholder":13},[4987],{"type":998,"value":1069},{"type":993,"tag":1034,"props":4989,"children":4990},{"class":1036,"line":36},[4991],{"type":993,"tag":1034,"props":4992,"children":4993},{"style":1075},[4994],{"type":998,"value":4995},"# Exponential functions\n",{"type":993,"tag":1034,"props":4997,"children":4998},{"class":1036,"line":45},[4999,5003,5007,5012],{"type":993,"tag":1034,"props":5000,"children":5001},{"style":1099},[5002],{"type":998,"value":1225},{"type":993,"tag":1034,"props":5004,"children":5005},{"style":1046},[5006],{"type":998,"value":1230},{"type":993,"tag":1034,"props":5008,"children":5009},{"style":1238},[5010],{"type":998,"value":5011},"\"Exponential Functions:\"",{"type":993,"tag":1034,"props":5013,"children":5014},{"style":1046},[5015],{"type":998,"value":1266},{"type":993,"tag":1034,"props":5017,"children":5018},{"class":1036,"line":54},[5019,5023,5027,5031,5035,5039,5043,5047,5051,5055,5059,5063],{"type":993,"tag":1034,"props":5020,"children":5021},{"style":1040},[5022],{"type":998,"value":2732},{"type":993,"tag":1034,"props":5024,"children":5025},{"style":1046},[5026],{"type":998,"value":2737},{"type":993,"tag":1034,"props":5028,"children":5029},{"style":1040},[5030],{"type":998,"value":2742},{"type":993,"tag":1034,"props":5032,"children":5033},{"style":1046},[5034],{"type":998,"value":1096},{"type":993,"tag":1034,"props":5036,"children":5037},{"style":1099},[5038],{"type":998,"value":3858},{"type":993,"tag":1034,"props":5040,"children":5041},{"style":1046},[5042],{"type":998,"value":1107},{"type":993,"tag":1034,"props":5044,"children":5045},{"style":1099},[5046],{"type":998,"value":3306},{"type":993,"tag":1034,"props":5048,"children":5049},{"style":1046},[5050],{"type":998,"value":1107},{"type":993,"tag":1034,"props":5052,"children":5053},{"style":1099},[5054],{"type":998,"value":1834},{"type":993,"tag":1034,"props":5056,"children":5057},{"style":1046},[5058],{"type":998,"value":1107},{"type":993,"tag":1034,"props":5060,"children":5061},{"style":1099},[5062],{"type":998,"value":3315},{"type":993,"tag":1034,"props":5064,"children":5065},{"style":1046},[5066],{"type":998,"value":4099},{"type":993,"tag":1034,"props":5068,"children":5069},{"class":1036,"line":63},[5070,5074,5078,5082,5087,5091,5096,5100,5105,5109,5114,5118,5122,5126],{"type":993,"tag":1034,"props":5071,"children":5072},{"style":1099},[5073],{"type":998,"value":4187},{"type":993,"tag":1034,"props":5075,"children":5076},{"style":1046},[5077],{"type":998,"value":1230},{"type":993,"tag":1034,"props":5079,"children":5080},{"style":1040},[5081],{"type":998,"value":1235},{"type":993,"tag":1034,"props":5083,"children":5084},{"style":1238},[5085],{"type":998,"value":5086},"\"e^",{"type":993,"tag":1034,"props":5088,"children":5089},{"style":1099},[5090],{"type":998,"value":1246},{"type":993,"tag":1034,"props":5092,"children":5093},{"style":1046},[5094],{"type":998,"value":5095},"x",{"type":993,"tag":1034,"props":5097,"children":5098},{"style":1099},[5099],{"type":998,"value":1256},{"type":993,"tag":1034,"props":5101,"children":5102},{"style":1238},[5103],{"type":998,"value":5104}," = ",{"type":993,"tag":1034,"props":5106,"children":5107},{"style":1099},[5108],{"type":998,"value":1246},{"type":993,"tag":1034,"props":5110,"children":5111},{"style":1046},[5112],{"type":998,"value":5113},"math.exp(x)",{"type":993,"tag":1034,"props":5115,"children":5116},{"style":1040},[5117],{"type":998,"value":1526},{"type":993,"tag":1034,"props":5119,"children":5120},{"style":1099},[5121],{"type":998,"value":1256},{"type":993,"tag":1034,"props":5123,"children":5124},{"style":1238},[5125],{"type":998,"value":1261},{"type":993,"tag":1034,"props":5127,"children":5128},{"style":1046},[5129],{"type":998,"value":1266},{"type":993,"tag":1034,"props":5131,"children":5132},{"class":1036,"line":72},[5133],{"type":993,"tag":1034,"props":5134,"children":5135},{"emptyLinePlaceholder":13},[5136],{"type":998,"value":1069},{"type":993,"tag":1034,"props":5138,"children":5139},{"class":1036,"line":81},[5140,5144,5148,5152,5156,5160,5165,5169,5174,5179,5183,5187],{"type":993,"tag":1034,"props":5141,"children":5142},{"style":1099},[5143],{"type":998,"value":1225},{"type":993,"tag":1034,"props":5145,"children":5146},{"style":1046},[5147],{"type":998,"value":1230},{"type":993,"tag":1034,"props":5149,"children":5150},{"style":1040},[5151],{"type":998,"value":1235},{"type":993,"tag":1034,"props":5153,"children":5154},{"style":1238},[5155],{"type":998,"value":1261},{"type":993,"tag":1034,"props":5157,"children":5158},{"style":1099},[5159],{"type":998,"value":1465},{"type":993,"tag":1034,"props":5161,"children":5162},{"style":1238},[5163],{"type":998,"value":5164},"Euler's number (e): ",{"type":993,"tag":1034,"props":5166,"children":5167},{"style":1099},[5168],{"type":998,"value":1246},{"type":993,"tag":1034,"props":5170,"children":5171},{"style":1046},[5172],{"type":998,"value":5173},"math.e",{"type":993,"tag":1034,"props":5175,"children":5176},{"style":1040},[5177],{"type":998,"value":5178},":.6f",{"type":993,"tag":1034,"props":5180,"children":5181},{"style":1099},[5182],{"type":998,"value":1256},{"type":993,"tag":1034,"props":5184,"children":5185},{"style":1238},[5186],{"type":998,"value":1261},{"type":993,"tag":1034,"props":5188,"children":5189},{"style":1046},[5190],{"type":998,"value":1266},{"type":993,"tag":1034,"props":5192,"children":5193},{"class":1036,"line":91},[5194],{"type":993,"tag":1034,"props":5195,"children":5196},{"emptyLinePlaceholder":13},[5197],{"type":998,"value":1069},{"type":993,"tag":1034,"props":5199,"children":5200},{"class":1036,"line":100},[5201],{"type":993,"tag":1034,"props":5202,"children":5203},{"style":1075},[5204],{"type":998,"value":5205},"# Logarithmic functions\n",{"type":993,"tag":1034,"props":5207,"children":5208},{"class":1036,"line":109},[5209,5214,5218,5222,5226,5230,5234,5238,5242,5246,5251,5255,5260],{"type":993,"tag":1034,"props":5210,"children":5211},{"style":1046},[5212],{"type":998,"value":5213},"values ",{"type":993,"tag":1034,"props":5215,"children":5216},{"style":1040},[5217],{"type":998,"value":1091},{"type":993,"tag":1034,"props":5219,"children":5220},{"style":1046},[5221],{"type":998,"value":1096},{"type":993,"tag":1034,"props":5223,"children":5224},{"style":1099},[5225],{"type":998,"value":3306},{"type":993,"tag":1034,"props":5227,"children":5228},{"style":1046},[5229],{"type":998,"value":1107},{"type":993,"tag":1034,"props":5231,"children":5232},{"style":1099},[5233],{"type":998,"value":1834},{"type":993,"tag":1034,"props":5235,"children":5236},{"style":1046},[5237],{"type":998,"value":1107},{"type":993,"tag":1034,"props":5239,"children":5240},{"style":1099},[5241],{"type":998,"value":1102},{"type":993,"tag":1034,"props":5243,"children":5244},{"style":1046},[5245],{"type":998,"value":1107},{"type":993,"tag":1034,"props":5247,"children":5248},{"style":1099},[5249],{"type":998,"value":5250},"100",{"type":993,"tag":1034,"props":5252,"children":5253},{"style":1046},[5254],{"type":998,"value":1107},{"type":993,"tag":1034,"props":5256,"children":5257},{"style":1099},[5258],{"type":998,"value":5259},"1000",{"type":993,"tag":1034,"props":5261,"children":5262},{"style":1046},[5263],{"type":998,"value":1144},{"type":993,"tag":1034,"props":5265,"children":5266},{"class":1036,"line":118},[5267,5271,5275,5279,5283,5288],{"type":993,"tag":1034,"props":5268,"children":5269},{"style":1099},[5270],{"type":998,"value":1225},{"type":993,"tag":1034,"props":5272,"children":5273},{"style":1046},[5274],{"type":998,"value":1230},{"type":993,"tag":1034,"props":5276,"children":5277},{"style":1238},[5278],{"type":998,"value":1261},{"type":993,"tag":1034,"props":5280,"children":5281},{"style":1099},[5282],{"type":998,"value":1465},{"type":993,"tag":1034,"props":5284,"children":5285},{"style":1238},[5286],{"type":998,"value":5287},"Logarithmic Functions:\"",{"type":993,"tag":1034,"props":5289,"children":5290},{"style":1046},[5291],{"type":998,"value":1266},{"type":993,"tag":1034,"props":5293,"children":5294},{"class":1036,"line":127},[5295,5299,5303,5308],{"type":993,"tag":1034,"props":5296,"children":5297},{"style":1099},[5298],{"type":998,"value":1225},{"type":993,"tag":1034,"props":5300,"children":5301},{"style":1046},[5302],{"type":998,"value":1230},{"type":993,"tag":1034,"props":5304,"children":5305},{"style":1238},[5306],{"type":998,"value":5307},"\"Value | ln(x)   | log10(x) | log2(x)\"",{"type":993,"tag":1034,"props":5309,"children":5310},{"style":1046},[5311],{"type":998,"value":1266},{"type":993,"tag":1034,"props":5313,"children":5314},{"class":1036,"line":136},[5315,5319,5323,5327,5331,5336],{"type":993,"tag":1034,"props":5316,"children":5317},{"style":1099},[5318],{"type":998,"value":1225},{"type":993,"tag":1034,"props":5320,"children":5321},{"style":1046},[5322],{"type":998,"value":1230},{"type":993,"tag":1034,"props":5324,"children":5325},{"style":1238},[5326],{"type":998,"value":3987},{"type":993,"tag":1034,"props":5328,"children":5329},{"style":1040},[5330],{"type":998,"value":3992},{"type":993,"tag":1034,"props":5332,"children":5333},{"style":1099},[5334],{"type":998,"value":5335}," 40",{"type":993,"tag":1034,"props":5337,"children":5338},{"style":1046},[5339],{"type":998,"value":1266},{"type":993,"tag":1034,"props":5341,"children":5342},{"class":1036,"line":146},[5343],{"type":993,"tag":1034,"props":5344,"children":5345},{"emptyLinePlaceholder":13},[5346],{"type":998,"value":1069},{"type":993,"tag":1034,"props":5348,"children":5349},{"class":1036,"line":155},[5350,5354,5359,5363],{"type":993,"tag":1034,"props":5351,"children":5352},{"style":1040},[5353],{"type":998,"value":2732},{"type":993,"tag":1034,"props":5355,"children":5356},{"style":1046},[5357],{"type":998,"value":5358}," value ",{"type":993,"tag":1034,"props":5360,"children":5361},{"style":1040},[5362],{"type":998,"value":2742},{"type":993,"tag":1034,"props":5364,"children":5365},{"style":1046},[5366],{"type":998,"value":5367}," values:\n",{"type":993,"tag":1034,"props":5369,"children":5370},{"class":1036,"line":164},[5371,5376,5380],{"type":993,"tag":1034,"props":5372,"children":5373},{"style":1046},[5374],{"type":998,"value":5375},"    ln_x ",{"type":993,"tag":1034,"props":5377,"children":5378},{"style":1040},[5379],{"type":998,"value":1091},{"type":993,"tag":1034,"props":5381,"children":5382},{"style":1046},[5383],{"type":998,"value":5384}," math.log(value)\n",{"type":993,"tag":1034,"props":5386,"children":5387},{"class":1036,"line":173},[5388,5393,5397],{"type":993,"tag":1034,"props":5389,"children":5390},{"style":1046},[5391],{"type":998,"value":5392},"    log10_x ",{"type":993,"tag":1034,"props":5394,"children":5395},{"style":1040},[5396],{"type":998,"value":1091},{"type":993,"tag":1034,"props":5398,"children":5399},{"style":1046},[5400],{"type":998,"value":5401}," math.log10(value)\n",{"type":993,"tag":1034,"props":5403,"children":5404},{"class":1036,"line":182},[5405,5410,5414],{"type":993,"tag":1034,"props":5406,"children":5407},{"style":1046},[5408],{"type":998,"value":5409},"    log2_x ",{"type":993,"tag":1034,"props":5411,"children":5412},{"style":1040},[5413],{"type":998,"value":1091},{"type":993,"tag":1034,"props":5415,"children":5416},{"style":1046},[5417],{"type":998,"value":5418}," math.log2(value)\n",{"type":993,"tag":1034,"props":5420,"children":5421},{"class":1036,"line":191},[5422,5426,5430,5434,5438,5442,5446,5451,5455,5459,5463,5468,5472,5476,5480,5484,5489,5494,5498,5502,5506,5511,5515,5519,5523],{"type":993,"tag":1034,"props":5423,"children":5424},{"style":1099},[5425],{"type":998,"value":4187},{"type":993,"tag":1034,"props":5427,"children":5428},{"style":1046},[5429],{"type":998,"value":1230},{"type":993,"tag":1034,"props":5431,"children":5432},{"style":1040},[5433],{"type":998,"value":1235},{"type":993,"tag":1034,"props":5435,"children":5436},{"style":1238},[5437],{"type":998,"value":1261},{"type":993,"tag":1034,"props":5439,"children":5440},{"style":1099},[5441],{"type":998,"value":1246},{"type":993,"tag":1034,"props":5443,"children":5444},{"style":1046},[5445],{"type":998,"value":1697},{"type":993,"tag":1034,"props":5447,"children":5448},{"style":1040},[5449],{"type":998,"value":5450},":5",{"type":993,"tag":1034,"props":5452,"children":5453},{"style":1099},[5454],{"type":998,"value":1256},{"type":993,"tag":1034,"props":5456,"children":5457},{"style":1238},[5458],{"type":998,"value":4222},{"type":993,"tag":1034,"props":5460,"children":5461},{"style":1099},[5462],{"type":998,"value":1246},{"type":993,"tag":1034,"props":5464,"children":5465},{"style":1046},[5466],{"type":998,"value":5467},"ln_x",{"type":993,"tag":1034,"props":5469,"children":5470},{"style":1040},[5471],{"type":998,"value":4163},{"type":993,"tag":1034,"props":5473,"children":5474},{"style":1099},[5475],{"type":998,"value":1256},{"type":993,"tag":1034,"props":5477,"children":5478},{"style":1238},[5479],{"type":998,"value":4222},{"type":993,"tag":1034,"props":5481,"children":5482},{"style":1099},[5483],{"type":998,"value":1246},{"type":993,"tag":1034,"props":5485,"children":5486},{"style":1046},[5487],{"type":998,"value":5488},"log10_x",{"type":993,"tag":1034,"props":5490,"children":5491},{"style":1040},[5492],{"type":998,"value":5493},":8.3f",{"type":993,"tag":1034,"props":5495,"children":5496},{"style":1099},[5497],{"type":998,"value":1256},{"type":993,"tag":1034,"props":5499,"children":5500},{"style":1238},[5501],{"type":998,"value":4222},{"type":993,"tag":1034,"props":5503,"children":5504},{"style":1099},[5505],{"type":998,"value":1246},{"type":993,"tag":1034,"props":5507,"children":5508},{"style":1046},[5509],{"type":998,"value":5510},"log2_x",{"type":993,"tag":1034,"props":5512,"children":5513},{"style":1040},[5514],{"type":998,"value":4163},{"type":993,"tag":1034,"props":5516,"children":5517},{"style":1099},[5518],{"type":998,"value":1256},{"type":993,"tag":1034,"props":5520,"children":5521},{"style":1238},[5522],{"type":998,"value":1261},{"type":993,"tag":1034,"props":5524,"children":5525},{"style":1046},[5526],{"type":998,"value":1266},{"type":993,"tag":1034,"props":5528,"children":5529},{"class":1036,"line":201},[5530],{"type":993,"tag":1034,"props":5531,"children":5532},{"emptyLinePlaceholder":13},[5533],{"type":998,"value":1069},{"type":993,"tag":1034,"props":5535,"children":5536},{"class":1036,"line":210},[5537],{"type":993,"tag":1034,"props":5538,"children":5539},{"style":1075},[5540],{"type":998,"value":5541},"# Practical applications\n",{"type":993,"tag":1034,"props":5543,"children":5544},{"class":1036,"line":219},[5545,5549,5554,5559,5563,5567],{"type":993,"tag":1034,"props":5546,"children":5547},{"style":1040},[5548],{"type":998,"value":3762},{"type":993,"tag":1034,"props":5550,"children":5551},{"style":3765},[5552],{"type":998,"value":5553}," compound_interest",{"type":993,"tag":1034,"props":5555,"children":5556},{"style":1046},[5557],{"type":998,"value":5558},"(principal, rate, time, n",{"type":993,"tag":1034,"props":5560,"children":5561},{"style":1040},[5562],{"type":998,"value":1091},{"type":993,"tag":1034,"props":5564,"children":5565},{"style":1099},[5566],{"type":998,"value":3306},{"type":993,"tag":1034,"props":5568,"children":5569},{"style":1046},[5570],{"type":998,"value":5571},"):\n",{"type":993,"tag":1034,"props":5573,"children":5574},{"class":1036,"line":228},[5575],{"type":993,"tag":1034,"props":5576,"children":5577},{"style":1238},[5578],{"type":998,"value":5579},"    \"\"\"Calculate compound interest: A = P(1 + r/n)^(nt)\"\"\"\n",{"type":993,"tag":1034,"props":5581,"children":5582},{"class":1036,"line":238},[5583,5588,5592,5597,5601,5606,5610,5614,5619,5623,5628,5632],{"type":993,"tag":1034,"props":5584,"children":5585},{"style":1046},[5586],{"type":998,"value":5587},"    amount ",{"type":993,"tag":1034,"props":5589,"children":5590},{"style":1040},[5591],{"type":998,"value":1091},{"type":993,"tag":1034,"props":5593,"children":5594},{"style":1046},[5595],{"type":998,"value":5596}," principal ",{"type":993,"tag":1034,"props":5598,"children":5599},{"style":1040},[5600],{"type":998,"value":1913},{"type":993,"tag":1034,"props":5602,"children":5603},{"style":1046},[5604],{"type":998,"value":5605}," math.pow((",{"type":993,"tag":1034,"props":5607,"children":5608},{"style":1099},[5609],{"type":998,"value":3306},{"type":993,"tag":1034,"props":5611,"children":5612},{"style":1040},[5613],{"type":998,"value":4651},{"type":993,"tag":1034,"props":5615,"children":5616},{"style":1046},[5617],{"type":998,"value":5618}," rate",{"type":993,"tag":1034,"props":5620,"children":5621},{"style":1040},[5622],{"type":998,"value":1431},{"type":993,"tag":1034,"props":5624,"children":5625},{"style":1046},[5626],{"type":998,"value":5627},"n), n ",{"type":993,"tag":1034,"props":5629,"children":5630},{"style":1040},[5631],{"type":998,"value":1913},{"type":993,"tag":1034,"props":5633,"children":5634},{"style":1046},[5635],{"type":998,"value":5636}," time)\n",{"type":993,"tag":1034,"props":5638,"children":5639},{"class":1036,"line":247},[5640,5644],{"type":993,"tag":1034,"props":5641,"children":5642},{"style":1040},[5643],{"type":998,"value":3781},{"type":993,"tag":1034,"props":5645,"children":5646},{"style":1046},[5647],{"type":998,"value":5648}," amount\n",{"type":993,"tag":1034,"props":5650,"children":5651},{"class":1036,"line":256},[5652],{"type":993,"tag":1034,"props":5653,"children":5654},{"emptyLinePlaceholder":13},[5655],{"type":998,"value":1069},{"type":993,"tag":1034,"props":5657,"children":5658},{"class":1036,"line":265},[5659,5663,5668],{"type":993,"tag":1034,"props":5660,"children":5661},{"style":1040},[5662],{"type":998,"value":3762},{"type":993,"tag":1034,"props":5664,"children":5665},{"style":3765},[5666],{"type":998,"value":5667}," exponential_growth",{"type":993,"tag":1034,"props":5669,"children":5670},{"style":1046},[5671],{"type":998,"value":5672},"(initial, growth_rate, time):\n",{"type":993,"tag":1034,"props":5674,"children":5675},{"class":1036,"line":274},[5676],{"type":993,"tag":1034,"props":5677,"children":5678},{"style":1238},[5679],{"type":998,"value":5680},"    \"\"\"Calculate exponential growth: N(t) = N0 * e^(rt)\"\"\"\n",{"type":993,"tag":1034,"props":5682,"children":5683},{"class":1036,"line":284},[5684,5688,5693,5697,5702,5706],{"type":993,"tag":1034,"props":5685,"children":5686},{"style":1040},[5687],{"type":998,"value":3781},{"type":993,"tag":1034,"props":5689,"children":5690},{"style":1046},[5691],{"type":998,"value":5692}," initial ",{"type":993,"tag":1034,"props":5694,"children":5695},{"style":1040},[5696],{"type":998,"value":1913},{"type":993,"tag":1034,"props":5698,"children":5699},{"style":1046},[5700],{"type":998,"value":5701}," math.exp(growth_rate ",{"type":993,"tag":1034,"props":5703,"children":5704},{"style":1040},[5705],{"type":998,"value":1913},{"type":993,"tag":1034,"props":5707,"children":5708},{"style":1046},[5709],{"type":998,"value":5636},{"type":993,"tag":1034,"props":5711,"children":5712},{"class":1036,"line":293},[5713],{"type":993,"tag":1034,"props":5714,"children":5715},{"emptyLinePlaceholder":13},[5716],{"type":998,"value":1069},{"type":993,"tag":1034,"props":5718,"children":5719},{"class":1036,"line":302},[5720,5724,5729],{"type":993,"tag":1034,"props":5721,"children":5722},{"style":1040},[5723],{"type":998,"value":3762},{"type":993,"tag":1034,"props":5725,"children":5726},{"style":3765},[5727],{"type":998,"value":5728}," half_life_decay",{"type":993,"tag":1034,"props":5730,"children":5731},{"style":1046},[5732],{"type":998,"value":5733},"(initial, half_life, time):\n",{"type":993,"tag":1034,"props":5735,"children":5736},{"class":1036,"line":311},[5737],{"type":993,"tag":1034,"props":5738,"children":5739},{"style":1238},[5740],{"type":998,"value":5741},"    \"\"\"Calculate radioactive decay using half-life\"\"\"\n",{"type":993,"tag":1034,"props":5743,"children":5744},{"class":1036,"line":320},[5745,5750,5754,5759,5763,5768,5772],{"type":993,"tag":1034,"props":5746,"children":5747},{"style":1046},[5748],{"type":998,"value":5749},"    decay_constant ",{"type":993,"tag":1034,"props":5751,"children":5752},{"style":1040},[5753],{"type":998,"value":1091},{"type":993,"tag":1034,"props":5755,"children":5756},{"style":1046},[5757],{"type":998,"value":5758}," math.log(",{"type":993,"tag":1034,"props":5760,"children":5761},{"style":1099},[5762],{"type":998,"value":1834},{"type":993,"tag":1034,"props":5764,"children":5765},{"style":1046},[5766],{"type":998,"value":5767},") ",{"type":993,"tag":1034,"props":5769,"children":5770},{"style":1040},[5771],{"type":998,"value":1431},{"type":993,"tag":1034,"props":5773,"children":5774},{"style":1046},[5775],{"type":998,"value":5776}," half_life\n",{"type":993,"tag":1034,"props":5778,"children":5779},{"class":1036,"line":329},[5780,5784,5788,5792,5797,5801,5806,5810],{"type":993,"tag":1034,"props":5781,"children":5782},{"style":1040},[5783],{"type":998,"value":3781},{"type":993,"tag":1034,"props":5785,"children":5786},{"style":1046},[5787],{"type":998,"value":5692},{"type":993,"tag":1034,"props":5789,"children":5790},{"style":1040},[5791],{"type":998,"value":1913},{"type":993,"tag":1034,"props":5793,"children":5794},{"style":1046},[5795],{"type":998,"value":5796}," math.exp(",{"type":993,"tag":1034,"props":5798,"children":5799},{"style":1040},[5800],{"type":998,"value":1906},{"type":993,"tag":1034,"props":5802,"children":5803},{"style":1046},[5804],{"type":998,"value":5805},"decay_constant ",{"type":993,"tag":1034,"props":5807,"children":5808},{"style":1040},[5809],{"type":998,"value":1913},{"type":993,"tag":1034,"props":5811,"children":5812},{"style":1046},[5813],{"type":998,"value":5636},{"type":993,"tag":1034,"props":5815,"children":5816},{"class":1036,"line":338},[5817],{"type":993,"tag":1034,"props":5818,"children":5819},{"emptyLinePlaceholder":13},[5820],{"type":998,"value":1069},{"type":993,"tag":1034,"props":5822,"children":5823},{"class":1036,"line":347},[5824],{"type":993,"tag":1034,"props":5825,"children":5826},{"style":1075},[5827],{"type":998,"value":5828},"# Financial calculation\n",{"type":993,"tag":1034,"props":5830,"children":5831},{"class":1036,"line":356},[5832,5837,5841,5846],{"type":993,"tag":1034,"props":5833,"children":5834},{"style":1046},[5835],{"type":998,"value":5836},"principal ",{"type":993,"tag":1034,"props":5838,"children":5839},{"style":1040},[5840],{"type":998,"value":1091},{"type":993,"tag":1034,"props":5842,"children":5843},{"style":1099},[5844],{"type":998,"value":5845}," 1000",{"type":993,"tag":1034,"props":5847,"children":5848},{"style":1075},[5849],{"type":998,"value":5850},"  # Initial investment\n",{"type":993,"tag":1034,"props":5852,"children":5853},{"class":1036,"line":365},[5854,5859,5863,5868],{"type":993,"tag":1034,"props":5855,"children":5856},{"style":1046},[5857],{"type":998,"value":5858},"rate ",{"type":993,"tag":1034,"props":5860,"children":5861},{"style":1040},[5862],{"type":998,"value":1091},{"type":993,"tag":1034,"props":5864,"children":5865},{"style":1099},[5866],{"type":998,"value":5867}," 0.05",{"type":993,"tag":1034,"props":5869,"children":5870},{"style":1075},[5871],{"type":998,"value":5872},"      # 5% annual interest\n",{"type":993,"tag":1034,"props":5874,"children":5875},{"class":1036,"line":374},[5876,5881,5885,5889],{"type":993,"tag":1034,"props":5877,"children":5878},{"style":1046},[5879],{"type":998,"value":5880},"time ",{"type":993,"tag":1034,"props":5882,"children":5883},{"style":1040},[5884],{"type":998,"value":1091},{"type":993,"tag":1034,"props":5886,"children":5887},{"style":1099},[5888],{"type":998,"value":4745},{"type":993,"tag":1034,"props":5890,"children":5891},{"style":1075},[5892],{"type":998,"value":5893},"        # 10 years\n",{"type":993,"tag":1034,"props":5895,"children":5896},{"class":1036,"line":384},[5897,5902,5906,5911,5916,5921],{"type":993,"tag":1034,"props":5898,"children":5899},{"style":1046},[5900],{"type":998,"value":5901},"final_amount ",{"type":993,"tag":1034,"props":5903,"children":5904},{"style":1040},[5905],{"type":998,"value":1091},{"type":993,"tag":1034,"props":5907,"children":5908},{"style":1046},[5909],{"type":998,"value":5910}," compound_interest(principal, rate, time, ",{"type":993,"tag":1034,"props":5912,"children":5913},{"style":1099},[5914],{"type":998,"value":5915},"12",{"type":993,"tag":1034,"props":5917,"children":5918},{"style":1046},[5919],{"type":998,"value":5920},")  ",{"type":993,"tag":1034,"props":5922,"children":5923},{"style":1075},[5924],{"type":998,"value":5925},"# Monthly compounding\n",{"type":993,"tag":1034,"props":5927,"children":5928},{"class":1036,"line":393},[5929],{"type":993,"tag":1034,"props":5930,"children":5931},{"emptyLinePlaceholder":13},[5932],{"type":998,"value":1069},{"type":993,"tag":1034,"props":5934,"children":5935},{"class":1036,"line":402},[5936,5940,5944,5948,5952,5956,5961],{"type":993,"tag":1034,"props":5937,"children":5938},{"style":1099},[5939],{"type":998,"value":1225},{"type":993,"tag":1034,"props":5941,"children":5942},{"style":1046},[5943],{"type":998,"value":1230},{"type":993,"tag":1034,"props":5945,"children":5946},{"style":1040},[5947],{"type":998,"value":1235},{"type":993,"tag":1034,"props":5949,"children":5950},{"style":1238},[5951],{"type":998,"value":1261},{"type":993,"tag":1034,"props":5953,"children":5954},{"style":1099},[5955],{"type":998,"value":1465},{"type":993,"tag":1034,"props":5957,"children":5958},{"style":1238},[5959],{"type":998,"value":5960},"Compound Interest Calculation:\"",{"type":993,"tag":1034,"props":5962,"children":5963},{"style":1046},[5964],{"type":998,"value":1266},{"type":993,"tag":1034,"props":5966,"children":5967},{"class":1036,"line":411},[5968,5972,5976,5980,5985,5989,5994,5998,6002],{"type":993,"tag":1034,"props":5969,"children":5970},{"style":1099},[5971],{"type":998,"value":1225},{"type":993,"tag":1034,"props":5973,"children":5974},{"style":1046},[5975],{"type":998,"value":1230},{"type":993,"tag":1034,"props":5977,"children":5978},{"style":1040},[5979],{"type":998,"value":1235},{"type":993,"tag":1034,"props":5981,"children":5982},{"style":1238},[5983],{"type":998,"value":5984},"\"Initial investment: $",{"type":993,"tag":1034,"props":5986,"children":5987},{"style":1099},[5988],{"type":998,"value":1246},{"type":993,"tag":1034,"props":5990,"children":5991},{"style":1046},[5992],{"type":998,"value":5993},"principal",{"type":993,"tag":1034,"props":5995,"children":5996},{"style":1099},[5997],{"type":998,"value":1256},{"type":993,"tag":1034,"props":5999,"children":6000},{"style":1238},[6001],{"type":998,"value":1261},{"type":993,"tag":1034,"props":6003,"children":6004},{"style":1046},[6005],{"type":998,"value":1266},{"type":993,"tag":1034,"props":6007,"children":6008},{"class":1036,"line":420},[6009,6013,6017,6021,6026,6030,6035,6039,6044,6049],{"type":993,"tag":1034,"props":6010,"children":6011},{"style":1099},[6012],{"type":998,"value":1225},{"type":993,"tag":1034,"props":6014,"children":6015},{"style":1046},[6016],{"type":998,"value":1230},{"type":993,"tag":1034,"props":6018,"children":6019},{"style":1040},[6020],{"type":998,"value":1235},{"type":993,"tag":1034,"props":6022,"children":6023},{"style":1238},[6024],{"type":998,"value":6025},"\"Interest rate: ",{"type":993,"tag":1034,"props":6027,"children":6028},{"style":1099},[6029],{"type":998,"value":1246},{"type":993,"tag":1034,"props":6031,"children":6032},{"style":1046},[6033],{"type":998,"value":6034},"rate",{"type":993,"tag":1034,"props":6036,"children":6037},{"style":1040},[6038],{"type":998,"value":1913},{"type":993,"tag":1034,"props":6040,"children":6041},{"style":1099},[6042],{"type":998,"value":6043},"100}",{"type":993,"tag":1034,"props":6045,"children":6046},{"style":1238},[6047],{"type":998,"value":6048},"% annually\"",{"type":993,"tag":1034,"props":6050,"children":6051},{"style":1046},[6052],{"type":998,"value":1266},{"type":993,"tag":1034,"props":6054,"children":6055},{"class":1036,"line":429},[6056,6060,6064,6068,6073,6077,6082,6086,6091],{"type":993,"tag":1034,"props":6057,"children":6058},{"style":1099},[6059],{"type":998,"value":1225},{"type":993,"tag":1034,"props":6061,"children":6062},{"style":1046},[6063],{"type":998,"value":1230},{"type":993,"tag":1034,"props":6065,"children":6066},{"style":1040},[6067],{"type":998,"value":1235},{"type":993,"tag":1034,"props":6069,"children":6070},{"style":1238},[6071],{"type":998,"value":6072},"\"Time: ",{"type":993,"tag":1034,"props":6074,"children":6075},{"style":1099},[6076],{"type":998,"value":1246},{"type":993,"tag":1034,"props":6078,"children":6079},{"style":1046},[6080],{"type":998,"value":6081},"time",{"type":993,"tag":1034,"props":6083,"children":6084},{"style":1099},[6085],{"type":998,"value":1256},{"type":993,"tag":1034,"props":6087,"children":6088},{"style":1238},[6089],{"type":998,"value":6090}," years\"",{"type":993,"tag":1034,"props":6092,"children":6093},{"style":1046},[6094],{"type":998,"value":1266},{"type":993,"tag":1034,"props":6096,"children":6097},{"class":1036,"line":438},[6098,6102,6106,6110,6115,6119,6124,6128,6132,6136],{"type":993,"tag":1034,"props":6099,"children":6100},{"style":1099},[6101],{"type":998,"value":1225},{"type":993,"tag":1034,"props":6103,"children":6104},{"style":1046},[6105],{"type":998,"value":1230},{"type":993,"tag":1034,"props":6107,"children":6108},{"style":1040},[6109],{"type":998,"value":1235},{"type":993,"tag":1034,"props":6111,"children":6112},{"style":1238},[6113],{"type":998,"value":6114},"\"Final amount: $",{"type":993,"tag":1034,"props":6116,"children":6117},{"style":1099},[6118],{"type":998,"value":1246},{"type":993,"tag":1034,"props":6120,"children":6121},{"style":1046},[6122],{"type":998,"value":6123},"final_amount",{"type":993,"tag":1034,"props":6125,"children":6126},{"style":1040},[6127],{"type":998,"value":1382},{"type":993,"tag":1034,"props":6129,"children":6130},{"style":1099},[6131],{"type":998,"value":1256},{"type":993,"tag":1034,"props":6133,"children":6134},{"style":1238},[6135],{"type":998,"value":1261},{"type":993,"tag":1034,"props":6137,"children":6138},{"style":1046},[6139],{"type":998,"value":1266},{"type":993,"tag":1034,"props":6141,"children":6142},{"class":1036,"line":447},[6143,6147,6151,6155,6160,6164,6168,6172,6177,6181,6185,6189],{"type":993,"tag":1034,"props":6144,"children":6145},{"style":1099},[6146],{"type":998,"value":1225},{"type":993,"tag":1034,"props":6148,"children":6149},{"style":1046},[6150],{"type":998,"value":1230},{"type":993,"tag":1034,"props":6152,"children":6153},{"style":1040},[6154],{"type":998,"value":1235},{"type":993,"tag":1034,"props":6156,"children":6157},{"style":1238},[6158],{"type":998,"value":6159},"\"Total interest: $",{"type":993,"tag":1034,"props":6161,"children":6162},{"style":1099},[6163],{"type":998,"value":1246},{"type":993,"tag":1034,"props":6165,"children":6166},{"style":1046},[6167],{"type":998,"value":5901},{"type":993,"tag":1034,"props":6169,"children":6170},{"style":1040},[6171],{"type":998,"value":1906},{"type":993,"tag":1034,"props":6173,"children":6174},{"style":1046},[6175],{"type":998,"value":6176}," principal",{"type":993,"tag":1034,"props":6178,"children":6179},{"style":1040},[6180],{"type":998,"value":1382},{"type":993,"tag":1034,"props":6182,"children":6183},{"style":1099},[6184],{"type":998,"value":1256},{"type":993,"tag":1034,"props":6186,"children":6187},{"style":1238},[6188],{"type":998,"value":1261},{"type":993,"tag":1034,"props":6190,"children":6191},{"style":1046},[6192],{"type":998,"value":1266},{"type":993,"tag":1034,"props":6194,"children":6195},{"class":1036,"line":457},[6196],{"type":993,"tag":1034,"props":6197,"children":6198},{"emptyLinePlaceholder":13},[6199],{"type":998,"value":1069},{"type":993,"tag":1034,"props":6201,"children":6202},{"class":1036,"line":466},[6203],{"type":993,"tag":1034,"props":6204,"children":6205},{"style":1075},[6206],{"type":998,"value":6207},"# Population growth\n",{"type":993,"tag":1034,"props":6209,"children":6210},{"class":1036,"line":475},[6211,6216,6220],{"type":993,"tag":1034,"props":6212,"children":6213},{"style":1046},[6214],{"type":998,"value":6215},"initial_population ",{"type":993,"tag":1034,"props":6217,"children":6218},{"style":1040},[6219],{"type":998,"value":1091},{"type":993,"tag":1034,"props":6221,"children":6222},{"style":1099},[6223],{"type":998,"value":6224}," 1000\n",{"type":993,"tag":1034,"props":6226,"children":6227},{"class":1036,"line":484},[6228,6233,6237,6242],{"type":993,"tag":1034,"props":6229,"children":6230},{"style":1046},[6231],{"type":998,"value":6232},"growth_rate ",{"type":993,"tag":1034,"props":6234,"children":6235},{"style":1040},[6236],{"type":998,"value":1091},{"type":993,"tag":1034,"props":6238,"children":6239},{"style":1099},[6240],{"type":998,"value":6241}," 0.02",{"type":993,"tag":1034,"props":6243,"children":6244},{"style":1075},[6245],{"type":998,"value":6246},"  # 2% per year\n",{"type":993,"tag":1034,"props":6248,"children":6249},{"class":1036,"line":493},[6250,6255,6259],{"type":993,"tag":1034,"props":6251,"children":6252},{"style":1046},[6253],{"type":998,"value":6254},"years ",{"type":993,"tag":1034,"props":6256,"children":6257},{"style":1040},[6258],{"type":998,"value":1091},{"type":993,"tag":1034,"props":6260,"children":6261},{"style":1099},[6262],{"type":998,"value":6263}," 20\n",{"type":993,"tag":1034,"props":6265,"children":6266},{"class":1036,"line":502},[6267,6272,6276],{"type":993,"tag":1034,"props":6268,"children":6269},{"style":1046},[6270],{"type":998,"value":6271},"future_population ",{"type":993,"tag":1034,"props":6273,"children":6274},{"style":1040},[6275],{"type":998,"value":1091},{"type":993,"tag":1034,"props":6277,"children":6278},{"style":1046},[6279],{"type":998,"value":6280}," exponential_growth(initial_population, growth_rate, years)\n",{"type":993,"tag":1034,"props":6282,"children":6283},{"class":1036,"line":511},[6284],{"type":993,"tag":1034,"props":6285,"children":6286},{"emptyLinePlaceholder":13},[6287],{"type":998,"value":1069},{"type":993,"tag":1034,"props":6289,"children":6290},{"class":1036,"line":520},[6291,6295,6299,6303,6307,6311,6316],{"type":993,"tag":1034,"props":6292,"children":6293},{"style":1099},[6294],{"type":998,"value":1225},{"type":993,"tag":1034,"props":6296,"children":6297},{"style":1046},[6298],{"type":998,"value":1230},{"type":993,"tag":1034,"props":6300,"children":6301},{"style":1040},[6302],{"type":998,"value":1235},{"type":993,"tag":1034,"props":6304,"children":6305},{"style":1238},[6306],{"type":998,"value":1261},{"type":993,"tag":1034,"props":6308,"children":6309},{"style":1099},[6310],{"type":998,"value":1465},{"type":993,"tag":1034,"props":6312,"children":6313},{"style":1238},[6314],{"type":998,"value":6315},"Population Growth:\"",{"type":993,"tag":1034,"props":6317,"children":6318},{"style":1046},[6319],{"type":998,"value":1266},{"type":993,"tag":1034,"props":6321,"children":6322},{"class":1036,"line":530},[6323,6327,6331,6335,6340,6344,6349,6353,6357],{"type":993,"tag":1034,"props":6324,"children":6325},{"style":1099},[6326],{"type":998,"value":1225},{"type":993,"tag":1034,"props":6328,"children":6329},{"style":1046},[6330],{"type":998,"value":1230},{"type":993,"tag":1034,"props":6332,"children":6333},{"style":1040},[6334],{"type":998,"value":1235},{"type":993,"tag":1034,"props":6336,"children":6337},{"style":1238},[6338],{"type":998,"value":6339},"\"Initial population: ",{"type":993,"tag":1034,"props":6341,"children":6342},{"style":1099},[6343],{"type":998,"value":1246},{"type":993,"tag":1034,"props":6345,"children":6346},{"style":1046},[6347],{"type":998,"value":6348},"initial_population",{"type":993,"tag":1034,"props":6350,"children":6351},{"style":1099},[6352],{"type":998,"value":1256},{"type":993,"tag":1034,"props":6354,"children":6355},{"style":1238},[6356],{"type":998,"value":1261},{"type":993,"tag":1034,"props":6358,"children":6359},{"style":1046},[6360],{"type":998,"value":1266},{"type":993,"tag":1034,"props":6362,"children":6363},{"class":1036,"line":539},[6364,6368,6372,6376,6381,6385,6390,6394,6398,6403],{"type":993,"tag":1034,"props":6365,"children":6366},{"style":1099},[6367],{"type":998,"value":1225},{"type":993,"tag":1034,"props":6369,"children":6370},{"style":1046},[6371],{"type":998,"value":1230},{"type":993,"tag":1034,"props":6373,"children":6374},{"style":1040},[6375],{"type":998,"value":1235},{"type":993,"tag":1034,"props":6377,"children":6378},{"style":1238},[6379],{"type":998,"value":6380},"\"Growth rate: ",{"type":993,"tag":1034,"props":6382,"children":6383},{"style":1099},[6384],{"type":998,"value":1246},{"type":993,"tag":1034,"props":6386,"children":6387},{"style":1046},[6388],{"type":998,"value":6389},"growth_rate",{"type":993,"tag":1034,"props":6391,"children":6392},{"style":1040},[6393],{"type":998,"value":1913},{"type":993,"tag":1034,"props":6395,"children":6396},{"style":1099},[6397],{"type":998,"value":6043},{"type":993,"tag":1034,"props":6399,"children":6400},{"style":1238},[6401],{"type":998,"value":6402},"% per year\"",{"type":993,"tag":1034,"props":6404,"children":6405},{"style":1046},[6406],{"type":998,"value":1266},{"type":993,"tag":1034,"props":6408,"children":6409},{"class":1036,"line":548},[6410,6414,6418,6422,6427,6431,6436,6440,6445,6449,6454,6459,6463,6467],{"type":993,"tag":1034,"props":6411,"children":6412},{"style":1099},[6413],{"type":998,"value":1225},{"type":993,"tag":1034,"props":6415,"children":6416},{"style":1046},[6417],{"type":998,"value":1230},{"type":993,"tag":1034,"props":6419,"children":6420},{"style":1040},[6421],{"type":998,"value":1235},{"type":993,"tag":1034,"props":6423,"children":6424},{"style":1238},[6425],{"type":998,"value":6426},"\"Population after ",{"type":993,"tag":1034,"props":6428,"children":6429},{"style":1099},[6430],{"type":998,"value":1246},{"type":993,"tag":1034,"props":6432,"children":6433},{"style":1046},[6434],{"type":998,"value":6435},"years",{"type":993,"tag":1034,"props":6437,"children":6438},{"style":1099},[6439],{"type":998,"value":1256},{"type":993,"tag":1034,"props":6441,"children":6442},{"style":1238},[6443],{"type":998,"value":6444}," years: ",{"type":993,"tag":1034,"props":6446,"children":6447},{"style":1099},[6448],{"type":998,"value":1246},{"type":993,"tag":1034,"props":6450,"children":6451},{"style":1046},[6452],{"type":998,"value":6453},"future_population",{"type":993,"tag":1034,"props":6455,"children":6456},{"style":1040},[6457],{"type":998,"value":6458},":.0f",{"type":993,"tag":1034,"props":6460,"children":6461},{"style":1099},[6462],{"type":998,"value":1256},{"type":993,"tag":1034,"props":6464,"children":6465},{"style":1238},[6466],{"type":998,"value":1261},{"type":993,"tag":1034,"props":6468,"children":6469},{"style":1046},[6470],{"type":998,"value":1266},{"type":993,"tag":1857,"props":6472,"children":6474},{"id":6473},"statistical-analysis",[6475],{"type":998,"value":6476},"🌟 Statistical Analysis",{"type":993,"tag":1001,"props":6478,"children":6479},{},[6480],{"type":998,"value":6481},"Python's statistics module provides powerful tools for data analysis and statistical calculations.",{"type":993,"tag":2383,"props":6483,"children":6485},{"id":6484},"central-tendency-and-spread",[6486],{"type":998,"value":6487},"Central Tendency and Spread",{"type":993,"tag":1001,"props":6489,"children":6490},{},[6491],{"type":998,"value":6492},"Measure the center and variability of your data with built-in statistical functions.",{"type":993,"tag":1021,"props":6494,"children":6495},{},[6496],{"type":993,"tag":1025,"props":6497,"children":6499},{"className":1027,"code":6498,"language":6,"meta":8,"style":8},"import statistics\nimport math\n\n# Sample data: test scores\ntest_scores = [85, 92, 78, 96, 88, 83, 91, 87, 94, 89, 82, 95]\nsales_data = [150, 200, 175, 300, 225, 180, 195, 210, 165, 240]\n\nprint(\"Test Scores Analysis:\")\nprint(f\"Data: {test_scores}\")\nprint(f\"Mean: {statistics.mean(test_scores):.1f}\")\nprint(f\"Median: {statistics.median(test_scores)}\")\nprint(f\"Mode: {statistics.mode(test_scores)}\")\n\n# Measures of spread\nprint(f\"\\nMeasures of Spread:\")\nprint(f\"Standard Deviation: {statistics.stdev(test_scores):.2f}\")\nprint(f\"Variance: {statistics.variance(test_scores):.2f}\")\nprint(f\"Range: {max(test_scores) - min(test_scores)}\")\n\n# Quartiles and percentiles\nprint(f\"\\nQuartiles:\")\nquartiles = statistics.quantiles(test_scores, n=4)\nprint(f\"Q1 (25th percentile): {quartiles[0]:.1f}\")\nprint(f\"Q2 (50th percentile): {statistics.median(test_scores):.1f}\")\nprint(f\"Q3 (75th percentile): {quartiles[2]:.1f}\")\n\n# Custom statistical functions\ndef coefficient_of_variation(data):\n    \"\"\"Calculate coefficient of variation (CV)\"\"\"\n    mean = statistics.mean(data)\n    stdev = statistics.stdev(data)\n    return (stdev / mean) * 100\n\ndef z_score(value, data):\n    \"\"\"Calculate z-score for a value in a dataset\"\"\"\n    mean = statistics.mean(data)\n    stdev = statistics.stdev(data)\n    return (value - mean) / stdev\n\nprint(f\"\\nAdvanced Statistics:\")\nprint(f\"Coefficient of Variation: {coefficient_of_variation(test_scores):.1f}%\")\nprint(f\"Z-score for 95: {z_score(95, test_scores):.2f}\")\n\n# Compare two datasets\nprint(f\"\\nComparison with Sales Data:\")\nprint(f\"Sales CV: {coefficient_of_variation(sales_data):.1f}%\")\nprint(f\"Test Scores CV: {coefficient_of_variation(test_scores):.1f}%\")\nprint(\"Sales data has\" + (\" more\" if coefficient_of_variation(sales_data) > coefficient_of_variation(test_scores) else \" less\") + \" variability\")\n",[6500],{"type":993,"tag":1007,"props":6501,"children":6502},{"__ignoreMap":8},[6503,6514,6525,6532,6540,6664,6769,6776,6796,6836,6880,6920,6961,6968,6976,7008,7052,7097,7152,7159,7167,7199,7234,7288,7332,7384,7391,7399,7416,7424,7441,7458,7487,7494,7511,7519,7534,7549,7578,7585,7617,7663,7717,7724,7732,7764,7809,7853],{"type":993,"tag":1034,"props":6504,"children":6505},{"class":1036,"line":12},[6506,6510],{"type":993,"tag":1034,"props":6507,"children":6508},{"style":1040},[6509],{"type":998,"value":1043},{"type":993,"tag":1034,"props":6511,"children":6512},{"style":1046},[6513],{"type":998,"value":1061},{"type":993,"tag":1034,"props":6515,"children":6516},{"class":1036,"line":27},[6517,6521],{"type":993,"tag":1034,"props":6518,"children":6519},{"style":1040},[6520],{"type":998,"value":1043},{"type":993,"tag":1034,"props":6522,"children":6523},{"style":1046},[6524],{"type":998,"value":1049},{"type":993,"tag":1034,"props":6526,"children":6527},{"class":1036,"line":36},[6528],{"type":993,"tag":1034,"props":6529,"children":6530},{"emptyLinePlaceholder":13},[6531],{"type":998,"value":1069},{"type":993,"tag":1034,"props":6533,"children":6534},{"class":1036,"line":45},[6535],{"type":993,"tag":1034,"props":6536,"children":6537},{"style":1075},[6538],{"type":998,"value":6539},"# Sample data: test scores\n",{"type":993,"tag":1034,"props":6541,"children":6542},{"class":1036,"line":54},[6543,6548,6552,6556,6561,6565,6570,6574,6579,6583,6588,6592,6597,6601,6606,6610,6615,6619,6624,6628,6633,6637,6642,6646,6651,6655,6660],{"type":993,"tag":1034,"props":6544,"children":6545},{"style":1046},[6546],{"type":998,"value":6547},"test_scores ",{"type":993,"tag":1034,"props":6549,"children":6550},{"style":1040},[6551],{"type":998,"value":1091},{"type":993,"tag":1034,"props":6553,"children":6554},{"style":1046},[6555],{"type":998,"value":1096},{"type":993,"tag":1034,"props":6557,"children":6558},{"style":1099},[6559],{"type":998,"value":6560},"85",{"type":993,"tag":1034,"props":6562,"children":6563},{"style":1046},[6564],{"type":998,"value":1107},{"type":993,"tag":1034,"props":6566,"children":6567},{"style":1099},[6568],{"type":998,"value":6569},"92",{"type":993,"tag":1034,"props":6571,"children":6572},{"style":1046},[6573],{"type":998,"value":1107},{"type":993,"tag":1034,"props":6575,"children":6576},{"style":1099},[6577],{"type":998,"value":6578},"78",{"type":993,"tag":1034,"props":6580,"children":6581},{"style":1046},[6582],{"type":998,"value":1107},{"type":993,"tag":1034,"props":6584,"children":6585},{"style":1099},[6586],{"type":998,"value":6587},"96",{"type":993,"tag":1034,"props":6589,"children":6590},{"style":1046},[6591],{"type":998,"value":1107},{"type":993,"tag":1034,"props":6593,"children":6594},{"style":1099},[6595],{"type":998,"value":6596},"88",{"type":993,"tag":1034,"props":6598,"children":6599},{"style":1046},[6600],{"type":998,"value":1107},{"type":993,"tag":1034,"props":6602,"children":6603},{"style":1099},[6604],{"type":998,"value":6605},"83",{"type":993,"tag":1034,"props":6607,"children":6608},{"style":1046},[6609],{"type":998,"value":1107},{"type":993,"tag":1034,"props":6611,"children":6612},{"style":1099},[6613],{"type":998,"value":6614},"91",{"type":993,"tag":1034,"props":6616,"children":6617},{"style":1046},[6618],{"type":998,"value":1107},{"type":993,"tag":1034,"props":6620,"children":6621},{"style":1099},[6622],{"type":998,"value":6623},"87",{"type":993,"tag":1034,"props":6625,"children":6626},{"style":1046},[6627],{"type":998,"value":1107},{"type":993,"tag":1034,"props":6629,"children":6630},{"style":1099},[6631],{"type":998,"value":6632},"94",{"type":993,"tag":1034,"props":6634,"children":6635},{"style":1046},[6636],{"type":998,"value":1107},{"type":993,"tag":1034,"props":6638,"children":6639},{"style":1099},[6640],{"type":998,"value":6641},"89",{"type":993,"tag":1034,"props":6643,"children":6644},{"style":1046},[6645],{"type":998,"value":1107},{"type":993,"tag":1034,"props":6647,"children":6648},{"style":1099},[6649],{"type":998,"value":6650},"82",{"type":993,"tag":1034,"props":6652,"children":6653},{"style":1046},[6654],{"type":998,"value":1107},{"type":993,"tag":1034,"props":6656,"children":6657},{"style":1099},[6658],{"type":998,"value":6659},"95",{"type":993,"tag":1034,"props":6661,"children":6662},{"style":1046},[6663],{"type":998,"value":1144},{"type":993,"tag":1034,"props":6665,"children":6666},{"class":1036,"line":63},[6667,6672,6676,6680,6685,6689,6694,6698,6703,6707,6712,6716,6721,6725,6729,6733,6738,6742,6747,6751,6756,6760,6765],{"type":993,"tag":1034,"props":6668,"children":6669},{"style":1046},[6670],{"type":998,"value":6671},"sales_data ",{"type":993,"tag":1034,"props":6673,"children":6674},{"style":1040},[6675],{"type":998,"value":1091},{"type":993,"tag":1034,"props":6677,"children":6678},{"style":1046},[6679],{"type":998,"value":1096},{"type":993,"tag":1034,"props":6681,"children":6682},{"style":1099},[6683],{"type":998,"value":6684},"150",{"type":993,"tag":1034,"props":6686,"children":6687},{"style":1046},[6688],{"type":998,"value":1107},{"type":993,"tag":1034,"props":6690,"children":6691},{"style":1099},[6692],{"type":998,"value":6693},"200",{"type":993,"tag":1034,"props":6695,"children":6696},{"style":1046},[6697],{"type":998,"value":1107},{"type":993,"tag":1034,"props":6699,"children":6700},{"style":1099},[6701],{"type":998,"value":6702},"175",{"type":993,"tag":1034,"props":6704,"children":6705},{"style":1046},[6706],{"type":998,"value":1107},{"type":993,"tag":1034,"props":6708,"children":6709},{"style":1099},[6710],{"type":998,"value":6711},"300",{"type":993,"tag":1034,"props":6713,"children":6714},{"style":1046},[6715],{"type":998,"value":1107},{"type":993,"tag":1034,"props":6717,"children":6718},{"style":1099},[6719],{"type":998,"value":6720},"225",{"type":993,"tag":1034,"props":6722,"children":6723},{"style":1046},[6724],{"type":998,"value":1107},{"type":993,"tag":1034,"props":6726,"children":6727},{"style":1099},[6728],{"type":998,"value":3902},{"type":993,"tag":1034,"props":6730,"children":6731},{"style":1046},[6732],{"type":998,"value":1107},{"type":993,"tag":1034,"props":6734,"children":6735},{"style":1099},[6736],{"type":998,"value":6737},"195",{"type":993,"tag":1034,"props":6739,"children":6740},{"style":1046},[6741],{"type":998,"value":1107},{"type":993,"tag":1034,"props":6743,"children":6744},{"style":1099},[6745],{"type":998,"value":6746},"210",{"type":993,"tag":1034,"props":6748,"children":6749},{"style":1046},[6750],{"type":998,"value":1107},{"type":993,"tag":1034,"props":6752,"children":6753},{"style":1099},[6754],{"type":998,"value":6755},"165",{"type":993,"tag":1034,"props":6757,"children":6758},{"style":1046},[6759],{"type":998,"value":1107},{"type":993,"tag":1034,"props":6761,"children":6762},{"style":1099},[6763],{"type":998,"value":6764},"240",{"type":993,"tag":1034,"props":6766,"children":6767},{"style":1046},[6768],{"type":998,"value":1144},{"type":993,"tag":1034,"props":6770,"children":6771},{"class":1036,"line":72},[6772],{"type":993,"tag":1034,"props":6773,"children":6774},{"emptyLinePlaceholder":13},[6775],{"type":998,"value":1069},{"type":993,"tag":1034,"props":6777,"children":6778},{"class":1036,"line":81},[6779,6783,6787,6792],{"type":993,"tag":1034,"props":6780,"children":6781},{"style":1099},[6782],{"type":998,"value":1225},{"type":993,"tag":1034,"props":6784,"children":6785},{"style":1046},[6786],{"type":998,"value":1230},{"type":993,"tag":1034,"props":6788,"children":6789},{"style":1238},[6790],{"type":998,"value":6791},"\"Test Scores Analysis:\"",{"type":993,"tag":1034,"props":6793,"children":6794},{"style":1046},[6795],{"type":998,"value":1266},{"type":993,"tag":1034,"props":6797,"children":6798},{"class":1036,"line":91},[6799,6803,6807,6811,6815,6819,6824,6828,6832],{"type":993,"tag":1034,"props":6800,"children":6801},{"style":1099},[6802],{"type":998,"value":1225},{"type":993,"tag":1034,"props":6804,"children":6805},{"style":1046},[6806],{"type":998,"value":1230},{"type":993,"tag":1034,"props":6808,"children":6809},{"style":1040},[6810],{"type":998,"value":1235},{"type":993,"tag":1034,"props":6812,"children":6813},{"style":1238},[6814],{"type":998,"value":1241},{"type":993,"tag":1034,"props":6816,"children":6817},{"style":1099},[6818],{"type":998,"value":1246},{"type":993,"tag":1034,"props":6820,"children":6821},{"style":1046},[6822],{"type":998,"value":6823},"test_scores",{"type":993,"tag":1034,"props":6825,"children":6826},{"style":1099},[6827],{"type":998,"value":1256},{"type":993,"tag":1034,"props":6829,"children":6830},{"style":1238},[6831],{"type":998,"value":1261},{"type":993,"tag":1034,"props":6833,"children":6834},{"style":1046},[6835],{"type":998,"value":1266},{"type":993,"tag":1034,"props":6837,"children":6838},{"class":1036,"line":100},[6839,6843,6847,6851,6855,6859,6864,6868,6872,6876],{"type":993,"tag":1034,"props":6840,"children":6841},{"style":1099},[6842],{"type":998,"value":1225},{"type":993,"tag":1034,"props":6844,"children":6845},{"style":1046},[6846],{"type":998,"value":1230},{"type":993,"tag":1034,"props":6848,"children":6849},{"style":1040},[6850],{"type":998,"value":1235},{"type":993,"tag":1034,"props":6852,"children":6853},{"style":1238},[6854],{"type":998,"value":1286},{"type":993,"tag":1034,"props":6856,"children":6857},{"style":1099},[6858],{"type":998,"value":1246},{"type":993,"tag":1034,"props":6860,"children":6861},{"style":1046},[6862],{"type":998,"value":6863},"statistics.mean(test_scores)",{"type":993,"tag":1034,"props":6865,"children":6866},{"style":1040},[6867],{"type":998,"value":4429},{"type":993,"tag":1034,"props":6869,"children":6870},{"style":1099},[6871],{"type":998,"value":1256},{"type":993,"tag":1034,"props":6873,"children":6874},{"style":1238},[6875],{"type":998,"value":1261},{"type":993,"tag":1034,"props":6877,"children":6878},{"style":1046},[6879],{"type":998,"value":1266},{"type":993,"tag":1034,"props":6881,"children":6882},{"class":1036,"line":109},[6883,6887,6891,6895,6899,6903,6908,6912,6916],{"type":993,"tag":1034,"props":6884,"children":6885},{"style":1099},[6886],{"type":998,"value":1225},{"type":993,"tag":1034,"props":6888,"children":6889},{"style":1046},[6890],{"type":998,"value":1230},{"type":993,"tag":1034,"props":6892,"children":6893},{"style":1040},[6894],{"type":998,"value":1235},{"type":993,"tag":1034,"props":6896,"children":6897},{"style":1238},[6898],{"type":998,"value":1327},{"type":993,"tag":1034,"props":6900,"children":6901},{"style":1099},[6902],{"type":998,"value":1246},{"type":993,"tag":1034,"props":6904,"children":6905},{"style":1046},[6906],{"type":998,"value":6907},"statistics.median(test_scores)",{"type":993,"tag":1034,"props":6909,"children":6910},{"style":1099},[6911],{"type":998,"value":1256},{"type":993,"tag":1034,"props":6913,"children":6914},{"style":1238},[6915],{"type":998,"value":1261},{"type":993,"tag":1034,"props":6917,"children":6918},{"style":1046},[6919],{"type":998,"value":1266},{"type":993,"tag":1034,"props":6921,"children":6922},{"class":1036,"line":118},[6923,6927,6931,6935,6940,6944,6949,6953,6957],{"type":993,"tag":1034,"props":6924,"children":6925},{"style":1099},[6926],{"type":998,"value":1225},{"type":993,"tag":1034,"props":6928,"children":6929},{"style":1046},[6930],{"type":998,"value":1230},{"type":993,"tag":1034,"props":6932,"children":6933},{"style":1040},[6934],{"type":998,"value":1235},{"type":993,"tag":1034,"props":6936,"children":6937},{"style":1238},[6938],{"type":998,"value":6939},"\"Mode: ",{"type":993,"tag":1034,"props":6941,"children":6942},{"style":1099},[6943],{"type":998,"value":1246},{"type":993,"tag":1034,"props":6945,"children":6946},{"style":1046},[6947],{"type":998,"value":6948},"statistics.mode(test_scores)",{"type":993,"tag":1034,"props":6950,"children":6951},{"style":1099},[6952],{"type":998,"value":1256},{"type":993,"tag":1034,"props":6954,"children":6955},{"style":1238},[6956],{"type":998,"value":1261},{"type":993,"tag":1034,"props":6958,"children":6959},{"style":1046},[6960],{"type":998,"value":1266},{"type":993,"tag":1034,"props":6962,"children":6963},{"class":1036,"line":127},[6964],{"type":993,"tag":1034,"props":6965,"children":6966},{"emptyLinePlaceholder":13},[6967],{"type":998,"value":1069},{"type":993,"tag":1034,"props":6969,"children":6970},{"class":1036,"line":136},[6971],{"type":993,"tag":1034,"props":6972,"children":6973},{"style":1075},[6974],{"type":998,"value":6975},"# Measures of spread\n",{"type":993,"tag":1034,"props":6977,"children":6978},{"class":1036,"line":146},[6979,6983,6987,6991,6995,6999,7004],{"type":993,"tag":1034,"props":6980,"children":6981},{"style":1099},[6982],{"type":998,"value":1225},{"type":993,"tag":1034,"props":6984,"children":6985},{"style":1046},[6986],{"type":998,"value":1230},{"type":993,"tag":1034,"props":6988,"children":6989},{"style":1040},[6990],{"type":998,"value":1235},{"type":993,"tag":1034,"props":6992,"children":6993},{"style":1238},[6994],{"type":998,"value":1261},{"type":993,"tag":1034,"props":6996,"children":6997},{"style":1099},[6998],{"type":998,"value":1465},{"type":993,"tag":1034,"props":7000,"children":7001},{"style":1238},[7002],{"type":998,"value":7003},"Measures of Spread:\"",{"type":993,"tag":1034,"props":7005,"children":7006},{"style":1046},[7007],{"type":998,"value":1266},{"type":993,"tag":1034,"props":7009,"children":7010},{"class":1036,"line":155},[7011,7015,7019,7023,7027,7031,7036,7040,7044,7048],{"type":993,"tag":1034,"props":7012,"children":7013},{"style":1099},[7014],{"type":998,"value":1225},{"type":993,"tag":1034,"props":7016,"children":7017},{"style":1046},[7018],{"type":998,"value":1230},{"type":993,"tag":1034,"props":7020,"children":7021},{"style":1040},[7022],{"type":998,"value":1235},{"type":993,"tag":1034,"props":7024,"children":7025},{"style":1238},[7026],{"type":998,"value":1368},{"type":993,"tag":1034,"props":7028,"children":7029},{"style":1099},[7030],{"type":998,"value":1246},{"type":993,"tag":1034,"props":7032,"children":7033},{"style":1046},[7034],{"type":998,"value":7035},"statistics.stdev(test_scores)",{"type":993,"tag":1034,"props":7037,"children":7038},{"style":1040},[7039],{"type":998,"value":1382},{"type":993,"tag":1034,"props":7041,"children":7042},{"style":1099},[7043],{"type":998,"value":1256},{"type":993,"tag":1034,"props":7045,"children":7046},{"style":1238},[7047],{"type":998,"value":1261},{"type":993,"tag":1034,"props":7049,"children":7050},{"style":1046},[7051],{"type":998,"value":1266},{"type":993,"tag":1034,"props":7053,"children":7054},{"class":1036,"line":164},[7055,7059,7063,7067,7072,7076,7081,7085,7089,7093],{"type":993,"tag":1034,"props":7056,"children":7057},{"style":1099},[7058],{"type":998,"value":1225},{"type":993,"tag":1034,"props":7060,"children":7061},{"style":1046},[7062],{"type":998,"value":1230},{"type":993,"tag":1034,"props":7064,"children":7065},{"style":1040},[7066],{"type":998,"value":1235},{"type":993,"tag":1034,"props":7068,"children":7069},{"style":1238},[7070],{"type":998,"value":7071},"\"Variance: ",{"type":993,"tag":1034,"props":7073,"children":7074},{"style":1099},[7075],{"type":998,"value":1246},{"type":993,"tag":1034,"props":7077,"children":7078},{"style":1046},[7079],{"type":998,"value":7080},"statistics.variance(test_scores)",{"type":993,"tag":1034,"props":7082,"children":7083},{"style":1040},[7084],{"type":998,"value":1382},{"type":993,"tag":1034,"props":7086,"children":7087},{"style":1099},[7088],{"type":998,"value":1256},{"type":993,"tag":1034,"props":7090,"children":7091},{"style":1238},[7092],{"type":998,"value":1261},{"type":993,"tag":1034,"props":7094,"children":7095},{"style":1046},[7096],{"type":998,"value":1266},{"type":993,"tag":1034,"props":7098,"children":7099},{"class":1036,"line":173},[7100,7104,7108,7112,7117,7121,7126,7130,7135,7140,7144,7148],{"type":993,"tag":1034,"props":7101,"children":7102},{"style":1099},[7103],{"type":998,"value":1225},{"type":993,"tag":1034,"props":7105,"children":7106},{"style":1046},[7107],{"type":998,"value":1230},{"type":993,"tag":1034,"props":7109,"children":7110},{"style":1040},[7111],{"type":998,"value":1235},{"type":993,"tag":1034,"props":7113,"children":7114},{"style":1238},[7115],{"type":998,"value":7116},"\"Range: ",{"type":993,"tag":1034,"props":7118,"children":7119},{"style":1099},[7120],{"type":998,"value":2631},{"type":993,"tag":1034,"props":7122,"children":7123},{"style":1046},[7124],{"type":998,"value":7125},"(test_scores) ",{"type":993,"tag":1034,"props":7127,"children":7128},{"style":1040},[7129],{"type":998,"value":1906},{"type":993,"tag":1034,"props":7131,"children":7132},{"style":1099},[7133],{"type":998,"value":7134}," min",{"type":993,"tag":1034,"props":7136,"children":7137},{"style":1046},[7138],{"type":998,"value":7139},"(test_scores)",{"type":993,"tag":1034,"props":7141,"children":7142},{"style":1099},[7143],{"type":998,"value":1256},{"type":993,"tag":1034,"props":7145,"children":7146},{"style":1238},[7147],{"type":998,"value":1261},{"type":993,"tag":1034,"props":7149,"children":7150},{"style":1046},[7151],{"type":998,"value":1266},{"type":993,"tag":1034,"props":7153,"children":7154},{"class":1036,"line":182},[7155],{"type":993,"tag":1034,"props":7156,"children":7157},{"emptyLinePlaceholder":13},[7158],{"type":998,"value":1069},{"type":993,"tag":1034,"props":7160,"children":7161},{"class":1036,"line":191},[7162],{"type":993,"tag":1034,"props":7163,"children":7164},{"style":1075},[7165],{"type":998,"value":7166},"# Quartiles and percentiles\n",{"type":993,"tag":1034,"props":7168,"children":7169},{"class":1036,"line":201},[7170,7174,7178,7182,7186,7190,7195],{"type":993,"tag":1034,"props":7171,"children":7172},{"style":1099},[7173],{"type":998,"value":1225},{"type":993,"tag":1034,"props":7175,"children":7176},{"style":1046},[7177],{"type":998,"value":1230},{"type":993,"tag":1034,"props":7179,"children":7180},{"style":1040},[7181],{"type":998,"value":1235},{"type":993,"tag":1034,"props":7183,"children":7184},{"style":1238},[7185],{"type":998,"value":1261},{"type":993,"tag":1034,"props":7187,"children":7188},{"style":1099},[7189],{"type":998,"value":1465},{"type":993,"tag":1034,"props":7191,"children":7192},{"style":1238},[7193],{"type":998,"value":7194},"Quartiles:\"",{"type":993,"tag":1034,"props":7196,"children":7197},{"style":1046},[7198],{"type":998,"value":1266},{"type":993,"tag":1034,"props":7200,"children":7201},{"class":1036,"line":210},[7202,7207,7211,7216,7222,7226,7230],{"type":993,"tag":1034,"props":7203,"children":7204},{"style":1046},[7205],{"type":998,"value":7206},"quartiles ",{"type":993,"tag":1034,"props":7208,"children":7209},{"style":1040},[7210],{"type":998,"value":1091},{"type":993,"tag":1034,"props":7212,"children":7213},{"style":1046},[7214],{"type":998,"value":7215}," statistics.quantiles(test_scores, ",{"type":993,"tag":1034,"props":7217,"children":7219},{"style":7218},"--shiki-default:#E36209;--shiki-app-dark-mode:#FFAB70",[7220],{"type":998,"value":7221},"n",{"type":993,"tag":1034,"props":7223,"children":7224},{"style":1040},[7225],{"type":998,"value":1091},{"type":993,"tag":1034,"props":7227,"children":7228},{"style":1099},[7229],{"type":998,"value":3384},{"type":993,"tag":1034,"props":7231,"children":7232},{"style":1046},[7233],{"type":998,"value":1266},{"type":993,"tag":1034,"props":7235,"children":7236},{"class":1036,"line":219},[7237,7241,7245,7249,7254,7258,7263,7267,7272,7276,7280,7284],{"type":993,"tag":1034,"props":7238,"children":7239},{"style":1099},[7240],{"type":998,"value":1225},{"type":993,"tag":1034,"props":7242,"children":7243},{"style":1046},[7244],{"type":998,"value":1230},{"type":993,"tag":1034,"props":7246,"children":7247},{"style":1040},[7248],{"type":998,"value":1235},{"type":993,"tag":1034,"props":7250,"children":7251},{"style":1238},[7252],{"type":998,"value":7253},"\"Q1 (25th percentile): ",{"type":993,"tag":1034,"props":7255,"children":7256},{"style":1099},[7257],{"type":998,"value":1246},{"type":993,"tag":1034,"props":7259,"children":7260},{"style":1046},[7261],{"type":998,"value":7262},"quartiles[",{"type":993,"tag":1034,"props":7264,"children":7265},{"style":1099},[7266],{"type":998,"value":3858},{"type":993,"tag":1034,"props":7268,"children":7269},{"style":1046},[7270],{"type":998,"value":7271},"]",{"type":993,"tag":1034,"props":7273,"children":7274},{"style":1040},[7275],{"type":998,"value":4429},{"type":993,"tag":1034,"props":7277,"children":7278},{"style":1099},[7279],{"type":998,"value":1256},{"type":993,"tag":1034,"props":7281,"children":7282},{"style":1238},[7283],{"type":998,"value":1261},{"type":993,"tag":1034,"props":7285,"children":7286},{"style":1046},[7287],{"type":998,"value":1266},{"type":993,"tag":1034,"props":7289,"children":7290},{"class":1036,"line":228},[7291,7295,7299,7303,7308,7312,7316,7320,7324,7328],{"type":993,"tag":1034,"props":7292,"children":7293},{"style":1099},[7294],{"type":998,"value":1225},{"type":993,"tag":1034,"props":7296,"children":7297},{"style":1046},[7298],{"type":998,"value":1230},{"type":993,"tag":1034,"props":7300,"children":7301},{"style":1040},[7302],{"type":998,"value":1235},{"type":993,"tag":1034,"props":7304,"children":7305},{"style":1238},[7306],{"type":998,"value":7307},"\"Q2 (50th percentile): ",{"type":993,"tag":1034,"props":7309,"children":7310},{"style":1099},[7311],{"type":998,"value":1246},{"type":993,"tag":1034,"props":7313,"children":7314},{"style":1046},[7315],{"type":998,"value":6907},{"type":993,"tag":1034,"props":7317,"children":7318},{"style":1040},[7319],{"type":998,"value":4429},{"type":993,"tag":1034,"props":7321,"children":7322},{"style":1099},[7323],{"type":998,"value":1256},{"type":993,"tag":1034,"props":7325,"children":7326},{"style":1238},[7327],{"type":998,"value":1261},{"type":993,"tag":1034,"props":7329,"children":7330},{"style":1046},[7331],{"type":998,"value":1266},{"type":993,"tag":1034,"props":7333,"children":7334},{"class":1036,"line":238},[7335,7339,7343,7347,7352,7356,7360,7364,7368,7372,7376,7380],{"type":993,"tag":1034,"props":7336,"children":7337},{"style":1099},[7338],{"type":998,"value":1225},{"type":993,"tag":1034,"props":7340,"children":7341},{"style":1046},[7342],{"type":998,"value":1230},{"type":993,"tag":1034,"props":7344,"children":7345},{"style":1040},[7346],{"type":998,"value":1235},{"type":993,"tag":1034,"props":7348,"children":7349},{"style":1238},[7350],{"type":998,"value":7351},"\"Q3 (75th percentile): ",{"type":993,"tag":1034,"props":7353,"children":7354},{"style":1099},[7355],{"type":998,"value":1246},{"type":993,"tag":1034,"props":7357,"children":7358},{"style":1046},[7359],{"type":998,"value":7262},{"type":993,"tag":1034,"props":7361,"children":7362},{"style":1099},[7363],{"type":998,"value":1834},{"type":993,"tag":1034,"props":7365,"children":7366},{"style":1046},[7367],{"type":998,"value":7271},{"type":993,"tag":1034,"props":7369,"children":7370},{"style":1040},[7371],{"type":998,"value":4429},{"type":993,"tag":1034,"props":7373,"children":7374},{"style":1099},[7375],{"type":998,"value":1256},{"type":993,"tag":1034,"props":7377,"children":7378},{"style":1238},[7379],{"type":998,"value":1261},{"type":993,"tag":1034,"props":7381,"children":7382},{"style":1046},[7383],{"type":998,"value":1266},{"type":993,"tag":1034,"props":7385,"children":7386},{"class":1036,"line":247},[7387],{"type":993,"tag":1034,"props":7388,"children":7389},{"emptyLinePlaceholder":13},[7390],{"type":998,"value":1069},{"type":993,"tag":1034,"props":7392,"children":7393},{"class":1036,"line":256},[7394],{"type":993,"tag":1034,"props":7395,"children":7396},{"style":1075},[7397],{"type":998,"value":7398},"# Custom statistical functions\n",{"type":993,"tag":1034,"props":7400,"children":7401},{"class":1036,"line":265},[7402,7406,7411],{"type":993,"tag":1034,"props":7403,"children":7404},{"style":1040},[7405],{"type":998,"value":3762},{"type":993,"tag":1034,"props":7407,"children":7408},{"style":3765},[7409],{"type":998,"value":7410}," coefficient_of_variation",{"type":993,"tag":1034,"props":7412,"children":7413},{"style":1046},[7414],{"type":998,"value":7415},"(data):\n",{"type":993,"tag":1034,"props":7417,"children":7418},{"class":1036,"line":274},[7419],{"type":993,"tag":1034,"props":7420,"children":7421},{"style":1238},[7422],{"type":998,"value":7423},"    \"\"\"Calculate coefficient of variation (CV)\"\"\"\n",{"type":993,"tag":1034,"props":7425,"children":7426},{"class":1036,"line":284},[7427,7432,7436],{"type":993,"tag":1034,"props":7428,"children":7429},{"style":1046},[7430],{"type":998,"value":7431},"    mean ",{"type":993,"tag":1034,"props":7433,"children":7434},{"style":1040},[7435],{"type":998,"value":1091},{"type":993,"tag":1034,"props":7437,"children":7438},{"style":1046},[7439],{"type":998,"value":7440}," statistics.mean(data)\n",{"type":993,"tag":1034,"props":7442,"children":7443},{"class":1036,"line":293},[7444,7449,7453],{"type":993,"tag":1034,"props":7445,"children":7446},{"style":1046},[7447],{"type":998,"value":7448},"    stdev ",{"type":993,"tag":1034,"props":7450,"children":7451},{"style":1040},[7452],{"type":998,"value":1091},{"type":993,"tag":1034,"props":7454,"children":7455},{"style":1046},[7456],{"type":998,"value":7457}," statistics.stdev(data)\n",{"type":993,"tag":1034,"props":7459,"children":7460},{"class":1036,"line":302},[7461,7465,7470,7474,7479,7483],{"type":993,"tag":1034,"props":7462,"children":7463},{"style":1040},[7464],{"type":998,"value":3781},{"type":993,"tag":1034,"props":7466,"children":7467},{"style":1046},[7468],{"type":998,"value":7469}," (stdev ",{"type":993,"tag":1034,"props":7471,"children":7472},{"style":1040},[7473],{"type":998,"value":1431},{"type":993,"tag":1034,"props":7475,"children":7476},{"style":1046},[7477],{"type":998,"value":7478}," mean) ",{"type":993,"tag":1034,"props":7480,"children":7481},{"style":1040},[7482],{"type":998,"value":1913},{"type":993,"tag":1034,"props":7484,"children":7485},{"style":1099},[7486],{"type":998,"value":1660},{"type":993,"tag":1034,"props":7488,"children":7489},{"class":1036,"line":311},[7490],{"type":993,"tag":1034,"props":7491,"children":7492},{"emptyLinePlaceholder":13},[7493],{"type":998,"value":1069},{"type":993,"tag":1034,"props":7495,"children":7496},{"class":1036,"line":320},[7497,7501,7506],{"type":993,"tag":1034,"props":7498,"children":7499},{"style":1040},[7500],{"type":998,"value":3762},{"type":993,"tag":1034,"props":7502,"children":7503},{"style":3765},[7504],{"type":998,"value":7505}," z_score",{"type":993,"tag":1034,"props":7507,"children":7508},{"style":1046},[7509],{"type":998,"value":7510},"(value, data):\n",{"type":993,"tag":1034,"props":7512,"children":7513},{"class":1036,"line":329},[7514],{"type":993,"tag":1034,"props":7515,"children":7516},{"style":1238},[7517],{"type":998,"value":7518},"    \"\"\"Calculate z-score for a value in a dataset\"\"\"\n",{"type":993,"tag":1034,"props":7520,"children":7521},{"class":1036,"line":338},[7522,7526,7530],{"type":993,"tag":1034,"props":7523,"children":7524},{"style":1046},[7525],{"type":998,"value":7431},{"type":993,"tag":1034,"props":7527,"children":7528},{"style":1040},[7529],{"type":998,"value":1091},{"type":993,"tag":1034,"props":7531,"children":7532},{"style":1046},[7533],{"type":998,"value":7440},{"type":993,"tag":1034,"props":7535,"children":7536},{"class":1036,"line":347},[7537,7541,7545],{"type":993,"tag":1034,"props":7538,"children":7539},{"style":1046},[7540],{"type":998,"value":7448},{"type":993,"tag":1034,"props":7542,"children":7543},{"style":1040},[7544],{"type":998,"value":1091},{"type":993,"tag":1034,"props":7546,"children":7547},{"style":1046},[7548],{"type":998,"value":7457},{"type":993,"tag":1034,"props":7550,"children":7551},{"class":1036,"line":356},[7552,7556,7561,7565,7569,7573],{"type":993,"tag":1034,"props":7553,"children":7554},{"style":1040},[7555],{"type":998,"value":3781},{"type":993,"tag":1034,"props":7557,"children":7558},{"style":1046},[7559],{"type":998,"value":7560}," (value ",{"type":993,"tag":1034,"props":7562,"children":7563},{"style":1040},[7564],{"type":998,"value":1906},{"type":993,"tag":1034,"props":7566,"children":7567},{"style":1046},[7568],{"type":998,"value":7478},{"type":993,"tag":1034,"props":7570,"children":7571},{"style":1040},[7572],{"type":998,"value":1431},{"type":993,"tag":1034,"props":7574,"children":7575},{"style":1046},[7576],{"type":998,"value":7577}," stdev\n",{"type":993,"tag":1034,"props":7579,"children":7580},{"class":1036,"line":365},[7581],{"type":993,"tag":1034,"props":7582,"children":7583},{"emptyLinePlaceholder":13},[7584],{"type":998,"value":1069},{"type":993,"tag":1034,"props":7586,"children":7587},{"class":1036,"line":374},[7588,7592,7596,7600,7604,7608,7613],{"type":993,"tag":1034,"props":7589,"children":7590},{"style":1099},[7591],{"type":998,"value":1225},{"type":993,"tag":1034,"props":7593,"children":7594},{"style":1046},[7595],{"type":998,"value":1230},{"type":993,"tag":1034,"props":7597,"children":7598},{"style":1040},[7599],{"type":998,"value":1235},{"type":993,"tag":1034,"props":7601,"children":7602},{"style":1238},[7603],{"type":998,"value":1261},{"type":993,"tag":1034,"props":7605,"children":7606},{"style":1099},[7607],{"type":998,"value":1465},{"type":993,"tag":1034,"props":7609,"children":7610},{"style":1238},[7611],{"type":998,"value":7612},"Advanced Statistics:\"",{"type":993,"tag":1034,"props":7614,"children":7615},{"style":1046},[7616],{"type":998,"value":1266},{"type":993,"tag":1034,"props":7618,"children":7619},{"class":1036,"line":384},[7620,7624,7628,7632,7637,7641,7646,7650,7654,7659],{"type":993,"tag":1034,"props":7621,"children":7622},{"style":1099},[7623],{"type":998,"value":1225},{"type":993,"tag":1034,"props":7625,"children":7626},{"style":1046},[7627],{"type":998,"value":1230},{"type":993,"tag":1034,"props":7629,"children":7630},{"style":1040},[7631],{"type":998,"value":1235},{"type":993,"tag":1034,"props":7633,"children":7634},{"style":1238},[7635],{"type":998,"value":7636},"\"Coefficient of Variation: ",{"type":993,"tag":1034,"props":7638,"children":7639},{"style":1099},[7640],{"type":998,"value":1246},{"type":993,"tag":1034,"props":7642,"children":7643},{"style":1046},[7644],{"type":998,"value":7645},"coefficient_of_variation(test_scores)",{"type":993,"tag":1034,"props":7647,"children":7648},{"style":1040},[7649],{"type":998,"value":4429},{"type":993,"tag":1034,"props":7651,"children":7652},{"style":1099},[7653],{"type":998,"value":1256},{"type":993,"tag":1034,"props":7655,"children":7656},{"style":1238},[7657],{"type":998,"value":7658},"%\"",{"type":993,"tag":1034,"props":7660,"children":7661},{"style":1046},[7662],{"type":998,"value":1266},{"type":993,"tag":1034,"props":7664,"children":7665},{"class":1036,"line":393},[7666,7670,7674,7678,7683,7687,7692,7696,7701,7705,7709,7713],{"type":993,"tag":1034,"props":7667,"children":7668},{"style":1099},[7669],{"type":998,"value":1225},{"type":993,"tag":1034,"props":7671,"children":7672},{"style":1046},[7673],{"type":998,"value":1230},{"type":993,"tag":1034,"props":7675,"children":7676},{"style":1040},[7677],{"type":998,"value":1235},{"type":993,"tag":1034,"props":7679,"children":7680},{"style":1238},[7681],{"type":998,"value":7682},"\"Z-score for 95: ",{"type":993,"tag":1034,"props":7684,"children":7685},{"style":1099},[7686],{"type":998,"value":1246},{"type":993,"tag":1034,"props":7688,"children":7689},{"style":1046},[7690],{"type":998,"value":7691},"z_score(",{"type":993,"tag":1034,"props":7693,"children":7694},{"style":1099},[7695],{"type":998,"value":6659},{"type":993,"tag":1034,"props":7697,"children":7698},{"style":1046},[7699],{"type":998,"value":7700},", test_scores)",{"type":993,"tag":1034,"props":7702,"children":7703},{"style":1040},[7704],{"type":998,"value":1382},{"type":993,"tag":1034,"props":7706,"children":7707},{"style":1099},[7708],{"type":998,"value":1256},{"type":993,"tag":1034,"props":7710,"children":7711},{"style":1238},[7712],{"type":998,"value":1261},{"type":993,"tag":1034,"props":7714,"children":7715},{"style":1046},[7716],{"type":998,"value":1266},{"type":993,"tag":1034,"props":7718,"children":7719},{"class":1036,"line":402},[7720],{"type":993,"tag":1034,"props":7721,"children":7722},{"emptyLinePlaceholder":13},[7723],{"type":998,"value":1069},{"type":993,"tag":1034,"props":7725,"children":7726},{"class":1036,"line":411},[7727],{"type":993,"tag":1034,"props":7728,"children":7729},{"style":1075},[7730],{"type":998,"value":7731},"# Compare two datasets\n",{"type":993,"tag":1034,"props":7733,"children":7734},{"class":1036,"line":420},[7735,7739,7743,7747,7751,7755,7760],{"type":993,"tag":1034,"props":7736,"children":7737},{"style":1099},[7738],{"type":998,"value":1225},{"type":993,"tag":1034,"props":7740,"children":7741},{"style":1046},[7742],{"type":998,"value":1230},{"type":993,"tag":1034,"props":7744,"children":7745},{"style":1040},[7746],{"type":998,"value":1235},{"type":993,"tag":1034,"props":7748,"children":7749},{"style":1238},[7750],{"type":998,"value":1261},{"type":993,"tag":1034,"props":7752,"children":7753},{"style":1099},[7754],{"type":998,"value":1465},{"type":993,"tag":1034,"props":7756,"children":7757},{"style":1238},[7758],{"type":998,"value":7759},"Comparison with Sales Data:\"",{"type":993,"tag":1034,"props":7761,"children":7762},{"style":1046},[7763],{"type":998,"value":1266},{"type":993,"tag":1034,"props":7765,"children":7766},{"class":1036,"line":429},[7767,7771,7775,7779,7784,7788,7793,7797,7801,7805],{"type":993,"tag":1034,"props":7768,"children":7769},{"style":1099},[7770],{"type":998,"value":1225},{"type":993,"tag":1034,"props":7772,"children":7773},{"style":1046},[7774],{"type":998,"value":1230},{"type":993,"tag":1034,"props":7776,"children":7777},{"style":1040},[7778],{"type":998,"value":1235},{"type":993,"tag":1034,"props":7780,"children":7781},{"style":1238},[7782],{"type":998,"value":7783},"\"Sales CV: ",{"type":993,"tag":1034,"props":7785,"children":7786},{"style":1099},[7787],{"type":998,"value":1246},{"type":993,"tag":1034,"props":7789,"children":7790},{"style":1046},[7791],{"type":998,"value":7792},"coefficient_of_variation(sales_data)",{"type":993,"tag":1034,"props":7794,"children":7795},{"style":1040},[7796],{"type":998,"value":4429},{"type":993,"tag":1034,"props":7798,"children":7799},{"style":1099},[7800],{"type":998,"value":1256},{"type":993,"tag":1034,"props":7802,"children":7803},{"style":1238},[7804],{"type":998,"value":7658},{"type":993,"tag":1034,"props":7806,"children":7807},{"style":1046},[7808],{"type":998,"value":1266},{"type":993,"tag":1034,"props":7810,"children":7811},{"class":1036,"line":438},[7812,7816,7820,7824,7829,7833,7837,7841,7845,7849],{"type":993,"tag":1034,"props":7813,"children":7814},{"style":1099},[7815],{"type":998,"value":1225},{"type":993,"tag":1034,"props":7817,"children":7818},{"style":1046},[7819],{"type":998,"value":1230},{"type":993,"tag":1034,"props":7821,"children":7822},{"style":1040},[7823],{"type":998,"value":1235},{"type":993,"tag":1034,"props":7825,"children":7826},{"style":1238},[7827],{"type":998,"value":7828},"\"Test Scores CV: ",{"type":993,"tag":1034,"props":7830,"children":7831},{"style":1099},[7832],{"type":998,"value":1246},{"type":993,"tag":1034,"props":7834,"children":7835},{"style":1046},[7836],{"type":998,"value":7645},{"type":993,"tag":1034,"props":7838,"children":7839},{"style":1040},[7840],{"type":998,"value":4429},{"type":993,"tag":1034,"props":7842,"children":7843},{"style":1099},[7844],{"type":998,"value":1256},{"type":993,"tag":1034,"props":7846,"children":7847},{"style":1238},[7848],{"type":998,"value":7658},{"type":993,"tag":1034,"props":7850,"children":7851},{"style":1046},[7852],{"type":998,"value":1266},{"type":993,"tag":1034,"props":7854,"children":7855},{"class":1036,"line":447},[7856,7860,7864,7869,7873,7877,7882,7887,7892,7897,7902,7907,7912,7916,7920,7925],{"type":993,"tag":1034,"props":7857,"children":7858},{"style":1099},[7859],{"type":998,"value":1225},{"type":993,"tag":1034,"props":7861,"children":7862},{"style":1046},[7863],{"type":998,"value":1230},{"type":993,"tag":1034,"props":7865,"children":7866},{"style":1238},[7867],{"type":998,"value":7868},"\"Sales data has\"",{"type":993,"tag":1034,"props":7870,"children":7871},{"style":1040},[7872],{"type":998,"value":4651},{"type":993,"tag":1034,"props":7874,"children":7875},{"style":1046},[7876],{"type":998,"value":3301},{"type":993,"tag":1034,"props":7878,"children":7879},{"style":1238},[7880],{"type":998,"value":7881},"\" more\"",{"type":993,"tag":1034,"props":7883,"children":7884},{"style":1040},[7885],{"type":998,"value":7886}," if",{"type":993,"tag":1034,"props":7888,"children":7889},{"style":1046},[7890],{"type":998,"value":7891}," coefficient_of_variation(sales_data) ",{"type":993,"tag":1034,"props":7893,"children":7894},{"style":1040},[7895],{"type":998,"value":7896},">",{"type":993,"tag":1034,"props":7898,"children":7899},{"style":1046},[7900],{"type":998,"value":7901}," coefficient_of_variation(test_scores) ",{"type":993,"tag":1034,"props":7903,"children":7904},{"style":1040},[7905],{"type":998,"value":7906},"else",{"type":993,"tag":1034,"props":7908,"children":7909},{"style":1238},[7910],{"type":998,"value":7911}," \" less\"",{"type":993,"tag":1034,"props":7913,"children":7914},{"style":1046},[7915],{"type":998,"value":5767},{"type":993,"tag":1034,"props":7917,"children":7918},{"style":1040},[7919],{"type":998,"value":1899},{"type":993,"tag":1034,"props":7921,"children":7922},{"style":1238},[7923],{"type":998,"value":7924}," \" variability\"",{"type":993,"tag":1034,"props":7926,"children":7927},{"style":1046},[7928],{"type":998,"value":1266},{"type":993,"tag":2383,"props":7930,"children":7932},{"id":7931},"correlation-and-regression",[7933],{"type":998,"value":7934},"Correlation and Regression",{"type":993,"tag":1001,"props":7936,"children":7937},{},[7938],{"type":998,"value":7939},"Analyze relationships between variables using correlation and basic regression techniques.",{"type":993,"tag":1021,"props":7941,"children":7942},{},[7943],{"type":993,"tag":1025,"props":7944,"children":7946},{"className":1027,"code":7945,"language":6,"meta":8,"style":8},"import statistics\nimport math\n\ndef correlation(x_data, y_data):\n    \"\"\"Calculate Pearson correlation coefficient\"\"\"\n    if len(x_data) != len(y_data):\n        raise ValueError(\"Data sets must have the same length\")\n    \n    n = len(x_data)\n    if n \u003C 2:\n        raise ValueError(\"Need at least 2 data points\")\n    \n    # Calculate means\n    x_mean = statistics.mean(x_data)\n    y_mean = statistics.mean(y_data)\n    \n    # Calculate correlation coefficient\n    numerator = sum((x - x_mean) * (y - y_mean) for x, y in zip(x_data, y_data))\n    x_variance = sum((x - x_mean) ** 2 for x in x_data)\n    y_variance = sum((y - y_mean) ** 2 for y in y_data)\n    \n    denominator = math.sqrt(x_variance * y_variance)\n    \n    if denominator == 0:\n        return 0  # No correlation if no variance\n    \n    return numerator / denominator\n\ndef linear_regression(x_data, y_data):\n    \"\"\"Calculate linear regression slope and intercept\"\"\"\n    if len(x_data) != len(y_data):\n        raise ValueError(\"Data sets must have the same length\")\n    \n    n = len(x_data)\n    x_mean = statistics.mean(x_data)\n    y_mean = statistics.mean(y_data)\n    \n    # Calculate slope (m) and intercept (b) for y = mx + b\n    numerator = sum((x - x_mean) * (y - y_mean) for x, y in zip(x_data, y_data))\n    denominator = sum((x - x_mean) ** 2 for x in x_data)\n    \n    if denominator == 0:\n        raise ValueError(\"Cannot calculate regression - no variance in x\")\n    \n    slope = numerator / denominator\n    intercept = y_mean - slope * x_mean\n    \n    return slope, intercept\n\n# Example: Study hours vs test scores\nstudy_hours = [2, 4, 6, 8, 10, 12, 14, 16, 18, 20]\ntest_scores = [65, 70, 75, 80, 85, 88, 92, 95, 97, 99]\n\n# Calculate correlation\ncorr = correlation(study_hours, test_scores)\nprint(f\"Study Hours vs Test Scores Analysis:\")\nprint(f\"Study Hours: {study_hours}\")\nprint(f\"Test Scores: {test_scores}\")\nprint(f\"Correlation: {corr:.3f}\")\n\n# Interpret correlation\nif abs(corr) > 0.8:\n    strength = \"strong\"\nelif abs(corr) > 0.5:\n    strength = \"moderate\"\nelse:\n    strength = \"weak\"\n\ndirection = \"positive\" if corr > 0 else \"negative\"\nprint(f\"This indicates a {strength} {direction} relationship\")\n\n# Linear regression\nslope, intercept = linear_regression(study_hours, test_scores)\nprint(f\"\\nLinear Regression:\")\nprint(f\"Equation: y = {slope:.2f}x + {intercept:.2f}\")\nprint(f\"For every additional hour of study, scores increase by {slope:.2f} points\")\n\n# Predict scores for new study hours\nnew_hours = [5, 15, 22]\nprint(f\"\\nPredictions:\")\nfor hours in new_hours:\n    predicted_score = slope * hours + intercept\n    print(f\"{hours} hours of study: {predicted_score:.1f} points\")\n",[7947],{"type":993,"tag":1007,"props":7948,"children":7949},{"__ignoreMap":8},[7950,7961,7972,7979,7996,8004,8035,8061,8068,8089,8114,8138,8145,8153,8170,8187,8194,8202,8274,8328,8383,8390,8416,8423,8449,8466,8473,8494,8501,8517,8525,8552,8575,8582,8601,8616,8631,8638,8646,8709,8760,8767,8790,8814,8821,8845,8880,8887,8899,8906,8914,9015,9116,9123,9131,9148,9172,9213,9253,9298,9305,9313,9344,9361,9390,9406,9417,9433,9440,9484,9540,9547,9555,9572,9604,9671,9716,9723,9731,9773,9805,9826,9859],{"type":993,"tag":1034,"props":7951,"children":7952},{"class":1036,"line":12},[7953,7957],{"type":993,"tag":1034,"props":7954,"children":7955},{"style":1040},[7956],{"type":998,"value":1043},{"type":993,"tag":1034,"props":7958,"children":7959},{"style":1046},[7960],{"type":998,"value":1061},{"type":993,"tag":1034,"props":7962,"children":7963},{"class":1036,"line":27},[7964,7968],{"type":993,"tag":1034,"props":7965,"children":7966},{"style":1040},[7967],{"type":998,"value":1043},{"type":993,"tag":1034,"props":7969,"children":7970},{"style":1046},[7971],{"type":998,"value":1049},{"type":993,"tag":1034,"props":7973,"children":7974},{"class":1036,"line":36},[7975],{"type":993,"tag":1034,"props":7976,"children":7977},{"emptyLinePlaceholder":13},[7978],{"type":998,"value":1069},{"type":993,"tag":1034,"props":7980,"children":7981},{"class":1036,"line":45},[7982,7986,7991],{"type":993,"tag":1034,"props":7983,"children":7984},{"style":1040},[7985],{"type":998,"value":3762},{"type":993,"tag":1034,"props":7987,"children":7988},{"style":3765},[7989],{"type":998,"value":7990}," correlation",{"type":993,"tag":1034,"props":7992,"children":7993},{"style":1046},[7994],{"type":998,"value":7995},"(x_data, y_data):\n",{"type":993,"tag":1034,"props":7997,"children":7998},{"class":1036,"line":54},[7999],{"type":993,"tag":1034,"props":8000,"children":8001},{"style":1238},[8002],{"type":998,"value":8003},"    \"\"\"Calculate Pearson correlation coefficient\"\"\"\n",{"type":993,"tag":1034,"props":8005,"children":8006},{"class":1036,"line":63},[8007,8011,8016,8021,8026,8030],{"type":993,"tag":1034,"props":8008,"children":8009},{"style":1040},[8010],{"type":998,"value":4070},{"type":993,"tag":1034,"props":8012,"children":8013},{"style":1099},[8014],{"type":998,"value":8015}," len",{"type":993,"tag":1034,"props":8017,"children":8018},{"style":1046},[8019],{"type":998,"value":8020},"(x_data) ",{"type":993,"tag":1034,"props":8022,"children":8023},{"style":1040},[8024],{"type":998,"value":8025},"!=",{"type":993,"tag":1034,"props":8027,"children":8028},{"style":1099},[8029],{"type":998,"value":8015},{"type":993,"tag":1034,"props":8031,"children":8032},{"style":1046},[8033],{"type":998,"value":8034},"(y_data):\n",{"type":993,"tag":1034,"props":8036,"children":8037},{"class":1036,"line":72},[8038,8043,8048,8052,8057],{"type":993,"tag":1034,"props":8039,"children":8040},{"style":1040},[8041],{"type":998,"value":8042},"        raise",{"type":993,"tag":1034,"props":8044,"children":8045},{"style":1099},[8046],{"type":998,"value":8047}," ValueError",{"type":993,"tag":1034,"props":8049,"children":8050},{"style":1046},[8051],{"type":998,"value":1230},{"type":993,"tag":1034,"props":8053,"children":8054},{"style":1238},[8055],{"type":998,"value":8056},"\"Data sets must have the same length\"",{"type":993,"tag":1034,"props":8058,"children":8059},{"style":1046},[8060],{"type":998,"value":1266},{"type":993,"tag":1034,"props":8062,"children":8063},{"class":1036,"line":81},[8064],{"type":993,"tag":1034,"props":8065,"children":8066},{"style":1046},[8067],{"type":998,"value":4054},{"type":993,"tag":1034,"props":8069,"children":8070},{"class":1036,"line":91},[8071,8076,8080,8084],{"type":993,"tag":1034,"props":8072,"children":8073},{"style":1046},[8074],{"type":998,"value":8075},"    n ",{"type":993,"tag":1034,"props":8077,"children":8078},{"style":1040},[8079],{"type":998,"value":1091},{"type":993,"tag":1034,"props":8081,"children":8082},{"style":1099},[8083],{"type":998,"value":8015},{"type":993,"tag":1034,"props":8085,"children":8086},{"style":1046},[8087],{"type":998,"value":8088},"(x_data)\n",{"type":993,"tag":1034,"props":8090,"children":8091},{"class":1036,"line":100},[8092,8096,8101,8106,8110],{"type":993,"tag":1034,"props":8093,"children":8094},{"style":1040},[8095],{"type":998,"value":4070},{"type":993,"tag":1034,"props":8097,"children":8098},{"style":1046},[8099],{"type":998,"value":8100}," n ",{"type":993,"tag":1034,"props":8102,"children":8103},{"style":1040},[8104],{"type":998,"value":8105},"\u003C",{"type":993,"tag":1034,"props":8107,"children":8108},{"style":1099},[8109],{"type":998,"value":4674},{"type":993,"tag":1034,"props":8111,"children":8112},{"style":1046},[8113],{"type":998,"value":4129},{"type":993,"tag":1034,"props":8115,"children":8116},{"class":1036,"line":109},[8117,8121,8125,8129,8134],{"type":993,"tag":1034,"props":8118,"children":8119},{"style":1040},[8120],{"type":998,"value":8042},{"type":993,"tag":1034,"props":8122,"children":8123},{"style":1099},[8124],{"type":998,"value":8047},{"type":993,"tag":1034,"props":8126,"children":8127},{"style":1046},[8128],{"type":998,"value":1230},{"type":993,"tag":1034,"props":8130,"children":8131},{"style":1238},[8132],{"type":998,"value":8133},"\"Need at least 2 data points\"",{"type":993,"tag":1034,"props":8135,"children":8136},{"style":1046},[8137],{"type":998,"value":1266},{"type":993,"tag":1034,"props":8139,"children":8140},{"class":1036,"line":118},[8141],{"type":993,"tag":1034,"props":8142,"children":8143},{"style":1046},[8144],{"type":998,"value":4054},{"type":993,"tag":1034,"props":8146,"children":8147},{"class":1036,"line":127},[8148],{"type":993,"tag":1034,"props":8149,"children":8150},{"style":1075},[8151],{"type":998,"value":8152},"    # Calculate means\n",{"type":993,"tag":1034,"props":8154,"children":8155},{"class":1036,"line":136},[8156,8161,8165],{"type":993,"tag":1034,"props":8157,"children":8158},{"style":1046},[8159],{"type":998,"value":8160},"    x_mean ",{"type":993,"tag":1034,"props":8162,"children":8163},{"style":1040},[8164],{"type":998,"value":1091},{"type":993,"tag":1034,"props":8166,"children":8167},{"style":1046},[8168],{"type":998,"value":8169}," statistics.mean(x_data)\n",{"type":993,"tag":1034,"props":8171,"children":8172},{"class":1036,"line":146},[8173,8178,8182],{"type":993,"tag":1034,"props":8174,"children":8175},{"style":1046},[8176],{"type":998,"value":8177},"    y_mean ",{"type":993,"tag":1034,"props":8179,"children":8180},{"style":1040},[8181],{"type":998,"value":1091},{"type":993,"tag":1034,"props":8183,"children":8184},{"style":1046},[8185],{"type":998,"value":8186}," statistics.mean(y_data)\n",{"type":993,"tag":1034,"props":8188,"children":8189},{"class":1036,"line":155},[8190],{"type":993,"tag":1034,"props":8191,"children":8192},{"style":1046},[8193],{"type":998,"value":4054},{"type":993,"tag":1034,"props":8195,"children":8196},{"class":1036,"line":164},[8197],{"type":993,"tag":1034,"props":8198,"children":8199},{"style":1075},[8200],{"type":998,"value":8201},"    # Calculate correlation coefficient\n",{"type":993,"tag":1034,"props":8203,"children":8204},{"class":1036,"line":173},[8205,8210,8214,8219,8224,8228,8233,8237,8242,8246,8251,8255,8260,8264,8269],{"type":993,"tag":1034,"props":8206,"children":8207},{"style":1046},[8208],{"type":998,"value":8209},"    numerator ",{"type":993,"tag":1034,"props":8211,"children":8212},{"style":1040},[8213],{"type":998,"value":1091},{"type":993,"tag":1034,"props":8215,"children":8216},{"style":1099},[8217],{"type":998,"value":8218}," sum",{"type":993,"tag":1034,"props":8220,"children":8221},{"style":1046},[8222],{"type":998,"value":8223},"((x ",{"type":993,"tag":1034,"props":8225,"children":8226},{"style":1040},[8227],{"type":998,"value":1906},{"type":993,"tag":1034,"props":8229,"children":8230},{"style":1046},[8231],{"type":998,"value":8232}," x_mean) ",{"type":993,"tag":1034,"props":8234,"children":8235},{"style":1040},[8236],{"type":998,"value":1913},{"type":993,"tag":1034,"props":8238,"children":8239},{"style":1046},[8240],{"type":998,"value":8241}," (y ",{"type":993,"tag":1034,"props":8243,"children":8244},{"style":1040},[8245],{"type":998,"value":1906},{"type":993,"tag":1034,"props":8247,"children":8248},{"style":1046},[8249],{"type":998,"value":8250}," y_mean) ",{"type":993,"tag":1034,"props":8252,"children":8253},{"style":1040},[8254],{"type":998,"value":2732},{"type":993,"tag":1034,"props":8256,"children":8257},{"style":1046},[8258],{"type":998,"value":8259}," x, y ",{"type":993,"tag":1034,"props":8261,"children":8262},{"style":1040},[8263],{"type":998,"value":2742},{"type":993,"tag":1034,"props":8265,"children":8266},{"style":1099},[8267],{"type":998,"value":8268}," zip",{"type":993,"tag":1034,"props":8270,"children":8271},{"style":1046},[8272],{"type":998,"value":8273},"(x_data, y_data))\n",{"type":993,"tag":1034,"props":8275,"children":8276},{"class":1036,"line":182},[8277,8282,8286,8290,8294,8298,8302,8306,8310,8315,8319,8323],{"type":993,"tag":1034,"props":8278,"children":8279},{"style":1046},[8280],{"type":998,"value":8281},"    x_variance ",{"type":993,"tag":1034,"props":8283,"children":8284},{"style":1040},[8285],{"type":998,"value":1091},{"type":993,"tag":1034,"props":8287,"children":8288},{"style":1099},[8289],{"type":998,"value":8218},{"type":993,"tag":1034,"props":8291,"children":8292},{"style":1046},[8293],{"type":998,"value":8223},{"type":993,"tag":1034,"props":8295,"children":8296},{"style":1040},[8297],{"type":998,"value":1906},{"type":993,"tag":1034,"props":8299,"children":8300},{"style":1046},[8301],{"type":998,"value":8232},{"type":993,"tag":1034,"props":8303,"children":8304},{"style":1040},[8305],{"type":998,"value":1926},{"type":993,"tag":1034,"props":8307,"children":8308},{"style":1099},[8309],{"type":998,"value":4674},{"type":993,"tag":1034,"props":8311,"children":8312},{"style":1040},[8313],{"type":998,"value":8314}," for",{"type":993,"tag":1034,"props":8316,"children":8317},{"style":1046},[8318],{"type":998,"value":2737},{"type":993,"tag":1034,"props":8320,"children":8321},{"style":1040},[8322],{"type":998,"value":2742},{"type":993,"tag":1034,"props":8324,"children":8325},{"style":1046},[8326],{"type":998,"value":8327}," x_data)\n",{"type":993,"tag":1034,"props":8329,"children":8330},{"class":1036,"line":191},[8331,8336,8340,8344,8349,8353,8357,8361,8365,8369,8374,8378],{"type":993,"tag":1034,"props":8332,"children":8333},{"style":1046},[8334],{"type":998,"value":8335},"    y_variance ",{"type":993,"tag":1034,"props":8337,"children":8338},{"style":1040},[8339],{"type":998,"value":1091},{"type":993,"tag":1034,"props":8341,"children":8342},{"style":1099},[8343],{"type":998,"value":8218},{"type":993,"tag":1034,"props":8345,"children":8346},{"style":1046},[8347],{"type":998,"value":8348},"((y ",{"type":993,"tag":1034,"props":8350,"children":8351},{"style":1040},[8352],{"type":998,"value":1906},{"type":993,"tag":1034,"props":8354,"children":8355},{"style":1046},[8356],{"type":998,"value":8250},{"type":993,"tag":1034,"props":8358,"children":8359},{"style":1040},[8360],{"type":998,"value":1926},{"type":993,"tag":1034,"props":8362,"children":8363},{"style":1099},[8364],{"type":998,"value":4674},{"type":993,"tag":1034,"props":8366,"children":8367},{"style":1040},[8368],{"type":998,"value":8314},{"type":993,"tag":1034,"props":8370,"children":8371},{"style":1046},[8372],{"type":998,"value":8373}," y ",{"type":993,"tag":1034,"props":8375,"children":8376},{"style":1040},[8377],{"type":998,"value":2742},{"type":993,"tag":1034,"props":8379,"children":8380},{"style":1046},[8381],{"type":998,"value":8382}," y_data)\n",{"type":993,"tag":1034,"props":8384,"children":8385},{"class":1036,"line":201},[8386],{"type":993,"tag":1034,"props":8387,"children":8388},{"style":1046},[8389],{"type":998,"value":4054},{"type":993,"tag":1034,"props":8391,"children":8392},{"class":1036,"line":210},[8393,8398,8402,8407,8411],{"type":993,"tag":1034,"props":8394,"children":8395},{"style":1046},[8396],{"type":998,"value":8397},"    denominator ",{"type":993,"tag":1034,"props":8399,"children":8400},{"style":1040},[8401],{"type":998,"value":1091},{"type":993,"tag":1034,"props":8403,"children":8404},{"style":1046},[8405],{"type":998,"value":8406}," math.sqrt(x_variance ",{"type":993,"tag":1034,"props":8408,"children":8409},{"style":1040},[8410],{"type":998,"value":1913},{"type":993,"tag":1034,"props":8412,"children":8413},{"style":1046},[8414],{"type":998,"value":8415}," y_variance)\n",{"type":993,"tag":1034,"props":8417,"children":8418},{"class":1036,"line":219},[8419],{"type":993,"tag":1034,"props":8420,"children":8421},{"style":1046},[8422],{"type":998,"value":4054},{"type":993,"tag":1034,"props":8424,"children":8425},{"class":1036,"line":228},[8426,8430,8435,8440,8445],{"type":993,"tag":1034,"props":8427,"children":8428},{"style":1040},[8429],{"type":998,"value":4070},{"type":993,"tag":1034,"props":8431,"children":8432},{"style":1046},[8433],{"type":998,"value":8434}," denominator ",{"type":993,"tag":1034,"props":8436,"children":8437},{"style":1040},[8438],{"type":998,"value":8439},"==",{"type":993,"tag":1034,"props":8441,"children":8442},{"style":1099},[8443],{"type":998,"value":8444}," 0",{"type":993,"tag":1034,"props":8446,"children":8447},{"style":1046},[8448],{"type":998,"value":4129},{"type":993,"tag":1034,"props":8450,"children":8451},{"class":1036,"line":238},[8452,8457,8461],{"type":993,"tag":1034,"props":8453,"children":8454},{"style":1040},[8455],{"type":998,"value":8456},"        return",{"type":993,"tag":1034,"props":8458,"children":8459},{"style":1099},[8460],{"type":998,"value":8444},{"type":993,"tag":1034,"props":8462,"children":8463},{"style":1075},[8464],{"type":998,"value":8465},"  # No correlation if no variance\n",{"type":993,"tag":1034,"props":8467,"children":8468},{"class":1036,"line":247},[8469],{"type":993,"tag":1034,"props":8470,"children":8471},{"style":1046},[8472],{"type":998,"value":4054},{"type":993,"tag":1034,"props":8474,"children":8475},{"class":1036,"line":256},[8476,8480,8485,8489],{"type":993,"tag":1034,"props":8477,"children":8478},{"style":1040},[8479],{"type":998,"value":3781},{"type":993,"tag":1034,"props":8481,"children":8482},{"style":1046},[8483],{"type":998,"value":8484}," numerator ",{"type":993,"tag":1034,"props":8486,"children":8487},{"style":1040},[8488],{"type":998,"value":1431},{"type":993,"tag":1034,"props":8490,"children":8491},{"style":1046},[8492],{"type":998,"value":8493}," denominator\n",{"type":993,"tag":1034,"props":8495,"children":8496},{"class":1036,"line":265},[8497],{"type":993,"tag":1034,"props":8498,"children":8499},{"emptyLinePlaceholder":13},[8500],{"type":998,"value":1069},{"type":993,"tag":1034,"props":8502,"children":8503},{"class":1036,"line":274},[8504,8508,8513],{"type":993,"tag":1034,"props":8505,"children":8506},{"style":1040},[8507],{"type":998,"value":3762},{"type":993,"tag":1034,"props":8509,"children":8510},{"style":3765},[8511],{"type":998,"value":8512}," linear_regression",{"type":993,"tag":1034,"props":8514,"children":8515},{"style":1046},[8516],{"type":998,"value":7995},{"type":993,"tag":1034,"props":8518,"children":8519},{"class":1036,"line":284},[8520],{"type":993,"tag":1034,"props":8521,"children":8522},{"style":1238},[8523],{"type":998,"value":8524},"    \"\"\"Calculate linear regression slope and intercept\"\"\"\n",{"type":993,"tag":1034,"props":8526,"children":8527},{"class":1036,"line":293},[8528,8532,8536,8540,8544,8548],{"type":993,"tag":1034,"props":8529,"children":8530},{"style":1040},[8531],{"type":998,"value":4070},{"type":993,"tag":1034,"props":8533,"children":8534},{"style":1099},[8535],{"type":998,"value":8015},{"type":993,"tag":1034,"props":8537,"children":8538},{"style":1046},[8539],{"type":998,"value":8020},{"type":993,"tag":1034,"props":8541,"children":8542},{"style":1040},[8543],{"type":998,"value":8025},{"type":993,"tag":1034,"props":8545,"children":8546},{"style":1099},[8547],{"type":998,"value":8015},{"type":993,"tag":1034,"props":8549,"children":8550},{"style":1046},[8551],{"type":998,"value":8034},{"type":993,"tag":1034,"props":8553,"children":8554},{"class":1036,"line":302},[8555,8559,8563,8567,8571],{"type":993,"tag":1034,"props":8556,"children":8557},{"style":1040},[8558],{"type":998,"value":8042},{"type":993,"tag":1034,"props":8560,"children":8561},{"style":1099},[8562],{"type":998,"value":8047},{"type":993,"tag":1034,"props":8564,"children":8565},{"style":1046},[8566],{"type":998,"value":1230},{"type":993,"tag":1034,"props":8568,"children":8569},{"style":1238},[8570],{"type":998,"value":8056},{"type":993,"tag":1034,"props":8572,"children":8573},{"style":1046},[8574],{"type":998,"value":1266},{"type":993,"tag":1034,"props":8576,"children":8577},{"class":1036,"line":311},[8578],{"type":993,"tag":1034,"props":8579,"children":8580},{"style":1046},[8581],{"type":998,"value":4054},{"type":993,"tag":1034,"props":8583,"children":8584},{"class":1036,"line":320},[8585,8589,8593,8597],{"type":993,"tag":1034,"props":8586,"children":8587},{"style":1046},[8588],{"type":998,"value":8075},{"type":993,"tag":1034,"props":8590,"children":8591},{"style":1040},[8592],{"type":998,"value":1091},{"type":993,"tag":1034,"props":8594,"children":8595},{"style":1099},[8596],{"type":998,"value":8015},{"type":993,"tag":1034,"props":8598,"children":8599},{"style":1046},[8600],{"type":998,"value":8088},{"type":993,"tag":1034,"props":8602,"children":8603},{"class":1036,"line":329},[8604,8608,8612],{"type":993,"tag":1034,"props":8605,"children":8606},{"style":1046},[8607],{"type":998,"value":8160},{"type":993,"tag":1034,"props":8609,"children":8610},{"style":1040},[8611],{"type":998,"value":1091},{"type":993,"tag":1034,"props":8613,"children":8614},{"style":1046},[8615],{"type":998,"value":8169},{"type":993,"tag":1034,"props":8617,"children":8618},{"class":1036,"line":338},[8619,8623,8627],{"type":993,"tag":1034,"props":8620,"children":8621},{"style":1046},[8622],{"type":998,"value":8177},{"type":993,"tag":1034,"props":8624,"children":8625},{"style":1040},[8626],{"type":998,"value":1091},{"type":993,"tag":1034,"props":8628,"children":8629},{"style":1046},[8630],{"type":998,"value":8186},{"type":993,"tag":1034,"props":8632,"children":8633},{"class":1036,"line":347},[8634],{"type":993,"tag":1034,"props":8635,"children":8636},{"style":1046},[8637],{"type":998,"value":4054},{"type":993,"tag":1034,"props":8639,"children":8640},{"class":1036,"line":356},[8641],{"type":993,"tag":1034,"props":8642,"children":8643},{"style":1075},[8644],{"type":998,"value":8645},"    # Calculate slope (m) and intercept (b) for y = mx + b\n",{"type":993,"tag":1034,"props":8647,"children":8648},{"class":1036,"line":365},[8649,8653,8657,8661,8665,8669,8673,8677,8681,8685,8689,8693,8697,8701,8705],{"type":993,"tag":1034,"props":8650,"children":8651},{"style":1046},[8652],{"type":998,"value":8209},{"type":993,"tag":1034,"props":8654,"children":8655},{"style":1040},[8656],{"type":998,"value":1091},{"type":993,"tag":1034,"props":8658,"children":8659},{"style":1099},[8660],{"type":998,"value":8218},{"type":993,"tag":1034,"props":8662,"children":8663},{"style":1046},[8664],{"type":998,"value":8223},{"type":993,"tag":1034,"props":8666,"children":8667},{"style":1040},[8668],{"type":998,"value":1906},{"type":993,"tag":1034,"props":8670,"children":8671},{"style":1046},[8672],{"type":998,"value":8232},{"type":993,"tag":1034,"props":8674,"children":8675},{"style":1040},[8676],{"type":998,"value":1913},{"type":993,"tag":1034,"props":8678,"children":8679},{"style":1046},[8680],{"type":998,"value":8241},{"type":993,"tag":1034,"props":8682,"children":8683},{"style":1040},[8684],{"type":998,"value":1906},{"type":993,"tag":1034,"props":8686,"children":8687},{"style":1046},[8688],{"type":998,"value":8250},{"type":993,"tag":1034,"props":8690,"children":8691},{"style":1040},[8692],{"type":998,"value":2732},{"type":993,"tag":1034,"props":8694,"children":8695},{"style":1046},[8696],{"type":998,"value":8259},{"type":993,"tag":1034,"props":8698,"children":8699},{"style":1040},[8700],{"type":998,"value":2742},{"type":993,"tag":1034,"props":8702,"children":8703},{"style":1099},[8704],{"type":998,"value":8268},{"type":993,"tag":1034,"props":8706,"children":8707},{"style":1046},[8708],{"type":998,"value":8273},{"type":993,"tag":1034,"props":8710,"children":8711},{"class":1036,"line":374},[8712,8716,8720,8724,8728,8732,8736,8740,8744,8748,8752,8756],{"type":993,"tag":1034,"props":8713,"children":8714},{"style":1046},[8715],{"type":998,"value":8397},{"type":993,"tag":1034,"props":8717,"children":8718},{"style":1040},[8719],{"type":998,"value":1091},{"type":993,"tag":1034,"props":8721,"children":8722},{"style":1099},[8723],{"type":998,"value":8218},{"type":993,"tag":1034,"props":8725,"children":8726},{"style":1046},[8727],{"type":998,"value":8223},{"type":993,"tag":1034,"props":8729,"children":8730},{"style":1040},[8731],{"type":998,"value":1906},{"type":993,"tag":1034,"props":8733,"children":8734},{"style":1046},[8735],{"type":998,"value":8232},{"type":993,"tag":1034,"props":8737,"children":8738},{"style":1040},[8739],{"type":998,"value":1926},{"type":993,"tag":1034,"props":8741,"children":8742},{"style":1099},[8743],{"type":998,"value":4674},{"type":993,"tag":1034,"props":8745,"children":8746},{"style":1040},[8747],{"type":998,"value":8314},{"type":993,"tag":1034,"props":8749,"children":8750},{"style":1046},[8751],{"type":998,"value":2737},{"type":993,"tag":1034,"props":8753,"children":8754},{"style":1040},[8755],{"type":998,"value":2742},{"type":993,"tag":1034,"props":8757,"children":8758},{"style":1046},[8759],{"type":998,"value":8327},{"type":993,"tag":1034,"props":8761,"children":8762},{"class":1036,"line":384},[8763],{"type":993,"tag":1034,"props":8764,"children":8765},{"style":1046},[8766],{"type":998,"value":4054},{"type":993,"tag":1034,"props":8768,"children":8769},{"class":1036,"line":393},[8770,8774,8778,8782,8786],{"type":993,"tag":1034,"props":8771,"children":8772},{"style":1040},[8773],{"type":998,"value":4070},{"type":993,"tag":1034,"props":8775,"children":8776},{"style":1046},[8777],{"type":998,"value":8434},{"type":993,"tag":1034,"props":8779,"children":8780},{"style":1040},[8781],{"type":998,"value":8439},{"type":993,"tag":1034,"props":8783,"children":8784},{"style":1099},[8785],{"type":998,"value":8444},{"type":993,"tag":1034,"props":8787,"children":8788},{"style":1046},[8789],{"type":998,"value":4129},{"type":993,"tag":1034,"props":8791,"children":8792},{"class":1036,"line":402},[8793,8797,8801,8805,8810],{"type":993,"tag":1034,"props":8794,"children":8795},{"style":1040},[8796],{"type":998,"value":8042},{"type":993,"tag":1034,"props":8798,"children":8799},{"style":1099},[8800],{"type":998,"value":8047},{"type":993,"tag":1034,"props":8802,"children":8803},{"style":1046},[8804],{"type":998,"value":1230},{"type":993,"tag":1034,"props":8806,"children":8807},{"style":1238},[8808],{"type":998,"value":8809},"\"Cannot calculate regression - no variance in x\"",{"type":993,"tag":1034,"props":8811,"children":8812},{"style":1046},[8813],{"type":998,"value":1266},{"type":993,"tag":1034,"props":8815,"children":8816},{"class":1036,"line":411},[8817],{"type":993,"tag":1034,"props":8818,"children":8819},{"style":1046},[8820],{"type":998,"value":4054},{"type":993,"tag":1034,"props":8822,"children":8823},{"class":1036,"line":420},[8824,8829,8833,8837,8841],{"type":993,"tag":1034,"props":8825,"children":8826},{"style":1046},[8827],{"type":998,"value":8828},"    slope ",{"type":993,"tag":1034,"props":8830,"children":8831},{"style":1040},[8832],{"type":998,"value":1091},{"type":993,"tag":1034,"props":8834,"children":8835},{"style":1046},[8836],{"type":998,"value":8484},{"type":993,"tag":1034,"props":8838,"children":8839},{"style":1040},[8840],{"type":998,"value":1431},{"type":993,"tag":1034,"props":8842,"children":8843},{"style":1046},[8844],{"type":998,"value":8493},{"type":993,"tag":1034,"props":8846,"children":8847},{"class":1036,"line":429},[8848,8853,8857,8862,8866,8871,8875],{"type":993,"tag":1034,"props":8849,"children":8850},{"style":1046},[8851],{"type":998,"value":8852},"    intercept ",{"type":993,"tag":1034,"props":8854,"children":8855},{"style":1040},[8856],{"type":998,"value":1091},{"type":993,"tag":1034,"props":8858,"children":8859},{"style":1046},[8860],{"type":998,"value":8861}," y_mean ",{"type":993,"tag":1034,"props":8863,"children":8864},{"style":1040},[8865],{"type":998,"value":1906},{"type":993,"tag":1034,"props":8867,"children":8868},{"style":1046},[8869],{"type":998,"value":8870}," slope ",{"type":993,"tag":1034,"props":8872,"children":8873},{"style":1040},[8874],{"type":998,"value":1913},{"type":993,"tag":1034,"props":8876,"children":8877},{"style":1046},[8878],{"type":998,"value":8879}," x_mean\n",{"type":993,"tag":1034,"props":8881,"children":8882},{"class":1036,"line":438},[8883],{"type":993,"tag":1034,"props":8884,"children":8885},{"style":1046},[8886],{"type":998,"value":4054},{"type":993,"tag":1034,"props":8888,"children":8889},{"class":1036,"line":447},[8890,8894],{"type":993,"tag":1034,"props":8891,"children":8892},{"style":1040},[8893],{"type":998,"value":3781},{"type":993,"tag":1034,"props":8895,"children":8896},{"style":1046},[8897],{"type":998,"value":8898}," slope, intercept\n",{"type":993,"tag":1034,"props":8900,"children":8901},{"class":1036,"line":457},[8902],{"type":993,"tag":1034,"props":8903,"children":8904},{"emptyLinePlaceholder":13},[8905],{"type":998,"value":1069},{"type":993,"tag":1034,"props":8907,"children":8908},{"class":1036,"line":466},[8909],{"type":993,"tag":1034,"props":8910,"children":8911},{"style":1075},[8912],{"type":998,"value":8913},"# Example: Study hours vs test scores\n",{"type":993,"tag":1034,"props":8915,"children":8916},{"class":1036,"line":475},[8917,8922,8926,8930,8934,8938,8942,8946,8951,8955,8960,8964,8968,8972,8976,8980,8985,8989,8994,8998,9003,9007,9011],{"type":993,"tag":1034,"props":8918,"children":8919},{"style":1046},[8920],{"type":998,"value":8921},"study_hours ",{"type":993,"tag":1034,"props":8923,"children":8924},{"style":1040},[8925],{"type":998,"value":1091},{"type":993,"tag":1034,"props":8927,"children":8928},{"style":1046},[8929],{"type":998,"value":1096},{"type":993,"tag":1034,"props":8931,"children":8932},{"style":1099},[8933],{"type":998,"value":1834},{"type":993,"tag":1034,"props":8935,"children":8936},{"style":1046},[8937],{"type":998,"value":1107},{"type":993,"tag":1034,"props":8939,"children":8940},{"style":1099},[8941],{"type":998,"value":3384},{"type":993,"tag":1034,"props":8943,"children":8944},{"style":1046},[8945],{"type":998,"value":1107},{"type":993,"tag":1034,"props":8947,"children":8948},{"style":1099},[8949],{"type":998,"value":8950},"6",{"type":993,"tag":1034,"props":8952,"children":8953},{"style":1046},[8954],{"type":998,"value":1107},{"type":993,"tag":1034,"props":8956,"children":8957},{"style":1099},[8958],{"type":998,"value":8959},"8",{"type":993,"tag":1034,"props":8961,"children":8962},{"style":1046},[8963],{"type":998,"value":1107},{"type":993,"tag":1034,"props":8965,"children":8966},{"style":1099},[8967],{"type":998,"value":1102},{"type":993,"tag":1034,"props":8969,"children":8970},{"style":1046},[8971],{"type":998,"value":1107},{"type":993,"tag":1034,"props":8973,"children":8974},{"style":1099},[8975],{"type":998,"value":5915},{"type":993,"tag":1034,"props":8977,"children":8978},{"style":1046},[8979],{"type":998,"value":1107},{"type":993,"tag":1034,"props":8981,"children":8982},{"style":1099},[8983],{"type":998,"value":8984},"14",{"type":993,"tag":1034,"props":8986,"children":8987},{"style":1046},[8988],{"type":998,"value":1107},{"type":993,"tag":1034,"props":8990,"children":8991},{"style":1099},[8992],{"type":998,"value":8993},"16",{"type":993,"tag":1034,"props":8995,"children":8996},{"style":1046},[8997],{"type":998,"value":1107},{"type":993,"tag":1034,"props":8999,"children":9000},{"style":1099},[9001],{"type":998,"value":9002},"18",{"type":993,"tag":1034,"props":9004,"children":9005},{"style":1046},[9006],{"type":998,"value":1107},{"type":993,"tag":1034,"props":9008,"children":9009},{"style":1099},[9010],{"type":998,"value":1121},{"type":993,"tag":1034,"props":9012,"children":9013},{"style":1046},[9014],{"type":998,"value":1144},{"type":993,"tag":1034,"props":9016,"children":9017},{"class":1036,"line":484},[9018,9022,9026,9030,9035,9039,9044,9048,9053,9057,9062,9066,9070,9074,9078,9082,9086,9090,9094,9098,9103,9107,9112],{"type":993,"tag":1034,"props":9019,"children":9020},{"style":1046},[9021],{"type":998,"value":6547},{"type":993,"tag":1034,"props":9023,"children":9024},{"style":1040},[9025],{"type":998,"value":1091},{"type":993,"tag":1034,"props":9027,"children":9028},{"style":1046},[9029],{"type":998,"value":1096},{"type":993,"tag":1034,"props":9031,"children":9032},{"style":1099},[9033],{"type":998,"value":9034},"65",{"type":993,"tag":1034,"props":9036,"children":9037},{"style":1046},[9038],{"type":998,"value":1107},{"type":993,"tag":1034,"props":9040,"children":9041},{"style":1099},[9042],{"type":998,"value":9043},"70",{"type":993,"tag":1034,"props":9045,"children":9046},{"style":1046},[9047],{"type":998,"value":1107},{"type":993,"tag":1034,"props":9049,"children":9050},{"style":1099},[9051],{"type":998,"value":9052},"75",{"type":993,"tag":1034,"props":9054,"children":9055},{"style":1046},[9056],{"type":998,"value":1107},{"type":993,"tag":1034,"props":9058,"children":9059},{"style":1099},[9060],{"type":998,"value":9061},"80",{"type":993,"tag":1034,"props":9063,"children":9064},{"style":1046},[9065],{"type":998,"value":1107},{"type":993,"tag":1034,"props":9067,"children":9068},{"style":1099},[9069],{"type":998,"value":6560},{"type":993,"tag":1034,"props":9071,"children":9072},{"style":1046},[9073],{"type":998,"value":1107},{"type":993,"tag":1034,"props":9075,"children":9076},{"style":1099},[9077],{"type":998,"value":6596},{"type":993,"tag":1034,"props":9079,"children":9080},{"style":1046},[9081],{"type":998,"value":1107},{"type":993,"tag":1034,"props":9083,"children":9084},{"style":1099},[9085],{"type":998,"value":6569},{"type":993,"tag":1034,"props":9087,"children":9088},{"style":1046},[9089],{"type":998,"value":1107},{"type":993,"tag":1034,"props":9091,"children":9092},{"style":1099},[9093],{"type":998,"value":6659},{"type":993,"tag":1034,"props":9095,"children":9096},{"style":1046},[9097],{"type":998,"value":1107},{"type":993,"tag":1034,"props":9099,"children":9100},{"style":1099},[9101],{"type":998,"value":9102},"97",{"type":993,"tag":1034,"props":9104,"children":9105},{"style":1046},[9106],{"type":998,"value":1107},{"type":993,"tag":1034,"props":9108,"children":9109},{"style":1099},[9110],{"type":998,"value":9111},"99",{"type":993,"tag":1034,"props":9113,"children":9114},{"style":1046},[9115],{"type":998,"value":1144},{"type":993,"tag":1034,"props":9117,"children":9118},{"class":1036,"line":493},[9119],{"type":993,"tag":1034,"props":9120,"children":9121},{"emptyLinePlaceholder":13},[9122],{"type":998,"value":1069},{"type":993,"tag":1034,"props":9124,"children":9125},{"class":1036,"line":502},[9126],{"type":993,"tag":1034,"props":9127,"children":9128},{"style":1075},[9129],{"type":998,"value":9130},"# Calculate correlation\n",{"type":993,"tag":1034,"props":9132,"children":9133},{"class":1036,"line":511},[9134,9139,9143],{"type":993,"tag":1034,"props":9135,"children":9136},{"style":1046},[9137],{"type":998,"value":9138},"corr ",{"type":993,"tag":1034,"props":9140,"children":9141},{"style":1040},[9142],{"type":998,"value":1091},{"type":993,"tag":1034,"props":9144,"children":9145},{"style":1046},[9146],{"type":998,"value":9147}," correlation(study_hours, test_scores)\n",{"type":993,"tag":1034,"props":9149,"children":9150},{"class":1036,"line":520},[9151,9155,9159,9163,9168],{"type":993,"tag":1034,"props":9152,"children":9153},{"style":1099},[9154],{"type":998,"value":1225},{"type":993,"tag":1034,"props":9156,"children":9157},{"style":1046},[9158],{"type":998,"value":1230},{"type":993,"tag":1034,"props":9160,"children":9161},{"style":1040},[9162],{"type":998,"value":1235},{"type":993,"tag":1034,"props":9164,"children":9165},{"style":1238},[9166],{"type":998,"value":9167},"\"Study Hours vs Test Scores Analysis:\"",{"type":993,"tag":1034,"props":9169,"children":9170},{"style":1046},[9171],{"type":998,"value":1266},{"type":993,"tag":1034,"props":9173,"children":9174},{"class":1036,"line":530},[9175,9179,9183,9187,9192,9196,9201,9205,9209],{"type":993,"tag":1034,"props":9176,"children":9177},{"style":1099},[9178],{"type":998,"value":1225},{"type":993,"tag":1034,"props":9180,"children":9181},{"style":1046},[9182],{"type":998,"value":1230},{"type":993,"tag":1034,"props":9184,"children":9185},{"style":1040},[9186],{"type":998,"value":1235},{"type":993,"tag":1034,"props":9188,"children":9189},{"style":1238},[9190],{"type":998,"value":9191},"\"Study Hours: ",{"type":993,"tag":1034,"props":9193,"children":9194},{"style":1099},[9195],{"type":998,"value":1246},{"type":993,"tag":1034,"props":9197,"children":9198},{"style":1046},[9199],{"type":998,"value":9200},"study_hours",{"type":993,"tag":1034,"props":9202,"children":9203},{"style":1099},[9204],{"type":998,"value":1256},{"type":993,"tag":1034,"props":9206,"children":9207},{"style":1238},[9208],{"type":998,"value":1261},{"type":993,"tag":1034,"props":9210,"children":9211},{"style":1046},[9212],{"type":998,"value":1266},{"type":993,"tag":1034,"props":9214,"children":9215},{"class":1036,"line":539},[9216,9220,9224,9228,9233,9237,9241,9245,9249],{"type":993,"tag":1034,"props":9217,"children":9218},{"style":1099},[9219],{"type":998,"value":1225},{"type":993,"tag":1034,"props":9221,"children":9222},{"style":1046},[9223],{"type":998,"value":1230},{"type":993,"tag":1034,"props":9225,"children":9226},{"style":1040},[9227],{"type":998,"value":1235},{"type":993,"tag":1034,"props":9229,"children":9230},{"style":1238},[9231],{"type":998,"value":9232},"\"Test Scores: ",{"type":993,"tag":1034,"props":9234,"children":9235},{"style":1099},[9236],{"type":998,"value":1246},{"type":993,"tag":1034,"props":9238,"children":9239},{"style":1046},[9240],{"type":998,"value":6823},{"type":993,"tag":1034,"props":9242,"children":9243},{"style":1099},[9244],{"type":998,"value":1256},{"type":993,"tag":1034,"props":9246,"children":9247},{"style":1238},[9248],{"type":998,"value":1261},{"type":993,"tag":1034,"props":9250,"children":9251},{"style":1046},[9252],{"type":998,"value":1266},{"type":993,"tag":1034,"props":9254,"children":9255},{"class":1036,"line":548},[9256,9260,9264,9268,9273,9277,9282,9286,9290,9294],{"type":993,"tag":1034,"props":9257,"children":9258},{"style":1099},[9259],{"type":998,"value":1225},{"type":993,"tag":1034,"props":9261,"children":9262},{"style":1046},[9263],{"type":998,"value":1230},{"type":993,"tag":1034,"props":9265,"children":9266},{"style":1040},[9267],{"type":998,"value":1235},{"type":993,"tag":1034,"props":9269,"children":9270},{"style":1238},[9271],{"type":998,"value":9272},"\"Correlation: ",{"type":993,"tag":1034,"props":9274,"children":9275},{"style":1099},[9276],{"type":998,"value":1246},{"type":993,"tag":1034,"props":9278,"children":9279},{"style":1046},[9280],{"type":998,"value":9281},"corr",{"type":993,"tag":1034,"props":9283,"children":9284},{"style":1040},[9285],{"type":998,"value":1526},{"type":993,"tag":1034,"props":9287,"children":9288},{"style":1099},[9289],{"type":998,"value":1256},{"type":993,"tag":1034,"props":9291,"children":9292},{"style":1238},[9293],{"type":998,"value":1261},{"type":993,"tag":1034,"props":9295,"children":9296},{"style":1046},[9297],{"type":998,"value":1266},{"type":993,"tag":1034,"props":9299,"children":9300},{"class":1036,"line":557},[9301],{"type":993,"tag":1034,"props":9302,"children":9303},{"emptyLinePlaceholder":13},[9304],{"type":998,"value":1069},{"type":993,"tag":1034,"props":9306,"children":9307},{"class":1036,"line":566},[9308],{"type":993,"tag":1034,"props":9309,"children":9310},{"style":1075},[9311],{"type":998,"value":9312},"# Interpret correlation\n",{"type":993,"tag":1034,"props":9314,"children":9315},{"class":1036,"line":575},[9316,9321,9326,9331,9335,9340],{"type":993,"tag":1034,"props":9317,"children":9318},{"style":1040},[9319],{"type":998,"value":9320},"if",{"type":993,"tag":1034,"props":9322,"children":9323},{"style":1099},[9324],{"type":998,"value":9325}," abs",{"type":993,"tag":1034,"props":9327,"children":9328},{"style":1046},[9329],{"type":998,"value":9330},"(corr) ",{"type":993,"tag":1034,"props":9332,"children":9333},{"style":1040},[9334],{"type":998,"value":7896},{"type":993,"tag":1034,"props":9336,"children":9337},{"style":1099},[9338],{"type":998,"value":9339}," 0.8",{"type":993,"tag":1034,"props":9341,"children":9342},{"style":1046},[9343],{"type":998,"value":4129},{"type":993,"tag":1034,"props":9345,"children":9346},{"class":1036,"line":584},[9347,9352,9356],{"type":993,"tag":1034,"props":9348,"children":9349},{"style":1046},[9350],{"type":998,"value":9351},"    strength ",{"type":993,"tag":1034,"props":9353,"children":9354},{"style":1040},[9355],{"type":998,"value":1091},{"type":993,"tag":1034,"props":9357,"children":9358},{"style":1238},[9359],{"type":998,"value":9360}," \"strong\"\n",{"type":993,"tag":1034,"props":9362,"children":9363},{"class":1036,"line":593},[9364,9369,9373,9377,9381,9386],{"type":993,"tag":1034,"props":9365,"children":9366},{"style":1040},[9367],{"type":998,"value":9368},"elif",{"type":993,"tag":1034,"props":9370,"children":9371},{"style":1099},[9372],{"type":998,"value":9325},{"type":993,"tag":1034,"props":9374,"children":9375},{"style":1046},[9376],{"type":998,"value":9330},{"type":993,"tag":1034,"props":9378,"children":9379},{"style":1040},[9380],{"type":998,"value":7896},{"type":993,"tag":1034,"props":9382,"children":9383},{"style":1099},[9384],{"type":998,"value":9385}," 0.5",{"type":993,"tag":1034,"props":9387,"children":9388},{"style":1046},[9389],{"type":998,"value":4129},{"type":993,"tag":1034,"props":9391,"children":9392},{"class":1036,"line":602},[9393,9397,9401],{"type":993,"tag":1034,"props":9394,"children":9395},{"style":1046},[9396],{"type":998,"value":9351},{"type":993,"tag":1034,"props":9398,"children":9399},{"style":1040},[9400],{"type":998,"value":1091},{"type":993,"tag":1034,"props":9402,"children":9403},{"style":1238},[9404],{"type":998,"value":9405}," \"moderate\"\n",{"type":993,"tag":1034,"props":9407,"children":9408},{"class":1036,"line":611},[9409,9413],{"type":993,"tag":1034,"props":9410,"children":9411},{"style":1040},[9412],{"type":998,"value":7906},{"type":993,"tag":1034,"props":9414,"children":9415},{"style":1046},[9416],{"type":998,"value":4129},{"type":993,"tag":1034,"props":9418,"children":9419},{"class":1036,"line":621},[9420,9424,9428],{"type":993,"tag":1034,"props":9421,"children":9422},{"style":1046},[9423],{"type":998,"value":9351},{"type":993,"tag":1034,"props":9425,"children":9426},{"style":1040},[9427],{"type":998,"value":1091},{"type":993,"tag":1034,"props":9429,"children":9430},{"style":1238},[9431],{"type":998,"value":9432}," \"weak\"\n",{"type":993,"tag":1034,"props":9434,"children":9435},{"class":1036,"line":630},[9436],{"type":993,"tag":1034,"props":9437,"children":9438},{"emptyLinePlaceholder":13},[9439],{"type":998,"value":1069},{"type":993,"tag":1034,"props":9441,"children":9442},{"class":1036,"line":639},[9443,9448,9452,9457,9461,9466,9470,9474,9479],{"type":993,"tag":1034,"props":9444,"children":9445},{"style":1046},[9446],{"type":998,"value":9447},"direction ",{"type":993,"tag":1034,"props":9449,"children":9450},{"style":1040},[9451],{"type":998,"value":1091},{"type":993,"tag":1034,"props":9453,"children":9454},{"style":1238},[9455],{"type":998,"value":9456}," \"positive\"",{"type":993,"tag":1034,"props":9458,"children":9459},{"style":1040},[9460],{"type":998,"value":7886},{"type":993,"tag":1034,"props":9462,"children":9463},{"style":1046},[9464],{"type":998,"value":9465}," corr ",{"type":993,"tag":1034,"props":9467,"children":9468},{"style":1040},[9469],{"type":998,"value":7896},{"type":993,"tag":1034,"props":9471,"children":9472},{"style":1099},[9473],{"type":998,"value":8444},{"type":993,"tag":1034,"props":9475,"children":9476},{"style":1040},[9477],{"type":998,"value":9478}," else",{"type":993,"tag":1034,"props":9480,"children":9481},{"style":1238},[9482],{"type":998,"value":9483}," \"negative\"\n",{"type":993,"tag":1034,"props":9485,"children":9486},{"class":1036,"line":648},[9487,9491,9495,9499,9504,9508,9513,9517,9522,9527,9531,9536],{"type":993,"tag":1034,"props":9488,"children":9489},{"style":1099},[9490],{"type":998,"value":1225},{"type":993,"tag":1034,"props":9492,"children":9493},{"style":1046},[9494],{"type":998,"value":1230},{"type":993,"tag":1034,"props":9496,"children":9497},{"style":1040},[9498],{"type":998,"value":1235},{"type":993,"tag":1034,"props":9500,"children":9501},{"style":1238},[9502],{"type":998,"value":9503},"\"This indicates a ",{"type":993,"tag":1034,"props":9505,"children":9506},{"style":1099},[9507],{"type":998,"value":1246},{"type":993,"tag":1034,"props":9509,"children":9510},{"style":1046},[9511],{"type":998,"value":9512},"strength",{"type":993,"tag":1034,"props":9514,"children":9515},{"style":1099},[9516],{"type":998,"value":1256},{"type":993,"tag":1034,"props":9518,"children":9519},{"style":1099},[9520],{"type":998,"value":9521}," {",{"type":993,"tag":1034,"props":9523,"children":9524},{"style":1046},[9525],{"type":998,"value":9526},"direction",{"type":993,"tag":1034,"props":9528,"children":9529},{"style":1099},[9530],{"type":998,"value":1256},{"type":993,"tag":1034,"props":9532,"children":9533},{"style":1238},[9534],{"type":998,"value":9535}," relationship\"",{"type":993,"tag":1034,"props":9537,"children":9538},{"style":1046},[9539],{"type":998,"value":1266},{"type":993,"tag":1034,"props":9541,"children":9542},{"class":1036,"line":657},[9543],{"type":993,"tag":1034,"props":9544,"children":9545},{"emptyLinePlaceholder":13},[9546],{"type":998,"value":1069},{"type":993,"tag":1034,"props":9548,"children":9549},{"class":1036,"line":666},[9550],{"type":993,"tag":1034,"props":9551,"children":9552},{"style":1075},[9553],{"type":998,"value":9554},"# Linear regression\n",{"type":993,"tag":1034,"props":9556,"children":9557},{"class":1036,"line":675},[9558,9563,9567],{"type":993,"tag":1034,"props":9559,"children":9560},{"style":1046},[9561],{"type":998,"value":9562},"slope, intercept ",{"type":993,"tag":1034,"props":9564,"children":9565},{"style":1040},[9566],{"type":998,"value":1091},{"type":993,"tag":1034,"props":9568,"children":9569},{"style":1046},[9570],{"type":998,"value":9571}," linear_regression(study_hours, test_scores)\n",{"type":993,"tag":1034,"props":9573,"children":9574},{"class":1036,"line":685},[9575,9579,9583,9587,9591,9595,9600],{"type":993,"tag":1034,"props":9576,"children":9577},{"style":1099},[9578],{"type":998,"value":1225},{"type":993,"tag":1034,"props":9580,"children":9581},{"style":1046},[9582],{"type":998,"value":1230},{"type":993,"tag":1034,"props":9584,"children":9585},{"style":1040},[9586],{"type":998,"value":1235},{"type":993,"tag":1034,"props":9588,"children":9589},{"style":1238},[9590],{"type":998,"value":1261},{"type":993,"tag":1034,"props":9592,"children":9593},{"style":1099},[9594],{"type":998,"value":1465},{"type":993,"tag":1034,"props":9596,"children":9597},{"style":1238},[9598],{"type":998,"value":9599},"Linear Regression:\"",{"type":993,"tag":1034,"props":9601,"children":9602},{"style":1046},[9603],{"type":998,"value":1266},{"type":993,"tag":1034,"props":9605,"children":9606},{"class":1036,"line":694},[9607,9611,9615,9619,9624,9628,9633,9637,9641,9646,9650,9655,9659,9663,9667],{"type":993,"tag":1034,"props":9608,"children":9609},{"style":1099},[9610],{"type":998,"value":1225},{"type":993,"tag":1034,"props":9612,"children":9613},{"style":1046},[9614],{"type":998,"value":1230},{"type":993,"tag":1034,"props":9616,"children":9617},{"style":1040},[9618],{"type":998,"value":1235},{"type":993,"tag":1034,"props":9620,"children":9621},{"style":1238},[9622],{"type":998,"value":9623},"\"Equation: y = ",{"type":993,"tag":1034,"props":9625,"children":9626},{"style":1099},[9627],{"type":998,"value":1246},{"type":993,"tag":1034,"props":9629,"children":9630},{"style":1046},[9631],{"type":998,"value":9632},"slope",{"type":993,"tag":1034,"props":9634,"children":9635},{"style":1040},[9636],{"type":998,"value":1382},{"type":993,"tag":1034,"props":9638,"children":9639},{"style":1099},[9640],{"type":998,"value":1256},{"type":993,"tag":1034,"props":9642,"children":9643},{"style":1238},[9644],{"type":998,"value":9645},"x + ",{"type":993,"tag":1034,"props":9647,"children":9648},{"style":1099},[9649],{"type":998,"value":1246},{"type":993,"tag":1034,"props":9651,"children":9652},{"style":1046},[9653],{"type":998,"value":9654},"intercept",{"type":993,"tag":1034,"props":9656,"children":9657},{"style":1040},[9658],{"type":998,"value":1382},{"type":993,"tag":1034,"props":9660,"children":9661},{"style":1099},[9662],{"type":998,"value":1256},{"type":993,"tag":1034,"props":9664,"children":9665},{"style":1238},[9666],{"type":998,"value":1261},{"type":993,"tag":1034,"props":9668,"children":9669},{"style":1046},[9670],{"type":998,"value":1266},{"type":993,"tag":1034,"props":9672,"children":9673},{"class":1036,"line":703},[9674,9678,9682,9686,9691,9695,9699,9703,9707,9712],{"type":993,"tag":1034,"props":9675,"children":9676},{"style":1099},[9677],{"type":998,"value":1225},{"type":993,"tag":1034,"props":9679,"children":9680},{"style":1046},[9681],{"type":998,"value":1230},{"type":993,"tag":1034,"props":9683,"children":9684},{"style":1040},[9685],{"type":998,"value":1235},{"type":993,"tag":1034,"props":9687,"children":9688},{"style":1238},[9689],{"type":998,"value":9690},"\"For every additional hour of study, scores increase by ",{"type":993,"tag":1034,"props":9692,"children":9693},{"style":1099},[9694],{"type":998,"value":1246},{"type":993,"tag":1034,"props":9696,"children":9697},{"style":1046},[9698],{"type":998,"value":9632},{"type":993,"tag":1034,"props":9700,"children":9701},{"style":1040},[9702],{"type":998,"value":1382},{"type":993,"tag":1034,"props":9704,"children":9705},{"style":1099},[9706],{"type":998,"value":1256},{"type":993,"tag":1034,"props":9708,"children":9709},{"style":1238},[9710],{"type":998,"value":9711}," points\"",{"type":993,"tag":1034,"props":9713,"children":9714},{"style":1046},[9715],{"type":998,"value":1266},{"type":993,"tag":1034,"props":9717,"children":9718},{"class":1036,"line":712},[9719],{"type":993,"tag":1034,"props":9720,"children":9721},{"emptyLinePlaceholder":13},[9722],{"type":998,"value":1069},{"type":993,"tag":1034,"props":9724,"children":9725},{"class":1036,"line":721},[9726],{"type":993,"tag":1034,"props":9727,"children":9728},{"style":1075},[9729],{"type":998,"value":9730},"# Predict scores for new study hours\n",{"type":993,"tag":1034,"props":9732,"children":9733},{"class":1036,"line":730},[9734,9739,9743,9747,9752,9756,9760,9764,9769],{"type":993,"tag":1034,"props":9735,"children":9736},{"style":1046},[9737],{"type":998,"value":9738},"new_hours ",{"type":993,"tag":1034,"props":9740,"children":9741},{"style":1040},[9742],{"type":998,"value":1091},{"type":993,"tag":1034,"props":9744,"children":9745},{"style":1046},[9746],{"type":998,"value":1096},{"type":993,"tag":1034,"props":9748,"children":9749},{"style":1099},[9750],{"type":998,"value":9751},"5",{"type":993,"tag":1034,"props":9753,"children":9754},{"style":1046},[9755],{"type":998,"value":1107},{"type":993,"tag":1034,"props":9757,"children":9758},{"style":1099},[9759],{"type":998,"value":1112},{"type":993,"tag":1034,"props":9761,"children":9762},{"style":1046},[9763],{"type":998,"value":1107},{"type":993,"tag":1034,"props":9765,"children":9766},{"style":1099},[9767],{"type":998,"value":9768},"22",{"type":993,"tag":1034,"props":9770,"children":9771},{"style":1046},[9772],{"type":998,"value":1144},{"type":993,"tag":1034,"props":9774,"children":9775},{"class":1036,"line":739},[9776,9780,9784,9788,9792,9796,9801],{"type":993,"tag":1034,"props":9777,"children":9778},{"style":1099},[9779],{"type":998,"value":1225},{"type":993,"tag":1034,"props":9781,"children":9782},{"style":1046},[9783],{"type":998,"value":1230},{"type":993,"tag":1034,"props":9785,"children":9786},{"style":1040},[9787],{"type":998,"value":1235},{"type":993,"tag":1034,"props":9789,"children":9790},{"style":1238},[9791],{"type":998,"value":1261},{"type":993,"tag":1034,"props":9793,"children":9794},{"style":1099},[9795],{"type":998,"value":1465},{"type":993,"tag":1034,"props":9797,"children":9798},{"style":1238},[9799],{"type":998,"value":9800},"Predictions:\"",{"type":993,"tag":1034,"props":9802,"children":9803},{"style":1046},[9804],{"type":998,"value":1266},{"type":993,"tag":1034,"props":9806,"children":9807},{"class":1036,"line":749},[9808,9812,9817,9821],{"type":993,"tag":1034,"props":9809,"children":9810},{"style":1040},[9811],{"type":998,"value":2732},{"type":993,"tag":1034,"props":9813,"children":9814},{"style":1046},[9815],{"type":998,"value":9816}," hours ",{"type":993,"tag":1034,"props":9818,"children":9819},{"style":1040},[9820],{"type":998,"value":2742},{"type":993,"tag":1034,"props":9822,"children":9823},{"style":1046},[9824],{"type":998,"value":9825}," new_hours:\n",{"type":993,"tag":1034,"props":9827,"children":9828},{"class":1036,"line":758},[9829,9834,9838,9842,9846,9850,9854],{"type":993,"tag":1034,"props":9830,"children":9831},{"style":1046},[9832],{"type":998,"value":9833},"    predicted_score ",{"type":993,"tag":1034,"props":9835,"children":9836},{"style":1040},[9837],{"type":998,"value":1091},{"type":993,"tag":1034,"props":9839,"children":9840},{"style":1046},[9841],{"type":998,"value":8870},{"type":993,"tag":1034,"props":9843,"children":9844},{"style":1040},[9845],{"type":998,"value":1913},{"type":993,"tag":1034,"props":9847,"children":9848},{"style":1046},[9849],{"type":998,"value":9816},{"type":993,"tag":1034,"props":9851,"children":9852},{"style":1040},[9853],{"type":998,"value":1899},{"type":993,"tag":1034,"props":9855,"children":9856},{"style":1046},[9857],{"type":998,"value":9858}," intercept\n",{"type":993,"tag":1034,"props":9860,"children":9861},{"class":1036,"line":767},[9862,9866,9870,9874,9878,9882,9887,9891,9896,9900,9905,9909,9913,9917],{"type":993,"tag":1034,"props":9863,"children":9864},{"style":1099},[9865],{"type":998,"value":4187},{"type":993,"tag":1034,"props":9867,"children":9868},{"style":1046},[9869],{"type":998,"value":1230},{"type":993,"tag":1034,"props":9871,"children":9872},{"style":1040},[9873],{"type":998,"value":1235},{"type":993,"tag":1034,"props":9875,"children":9876},{"style":1238},[9877],{"type":998,"value":1261},{"type":993,"tag":1034,"props":9879,"children":9880},{"style":1099},[9881],{"type":998,"value":1246},{"type":993,"tag":1034,"props":9883,"children":9884},{"style":1046},[9885],{"type":998,"value":9886},"hours",{"type":993,"tag":1034,"props":9888,"children":9889},{"style":1099},[9890],{"type":998,"value":1256},{"type":993,"tag":1034,"props":9892,"children":9893},{"style":1238},[9894],{"type":998,"value":9895}," hours of study: ",{"type":993,"tag":1034,"props":9897,"children":9898},{"style":1099},[9899],{"type":998,"value":1246},{"type":993,"tag":1034,"props":9901,"children":9902},{"style":1046},[9903],{"type":998,"value":9904},"predicted_score",{"type":993,"tag":1034,"props":9906,"children":9907},{"style":1040},[9908],{"type":998,"value":4429},{"type":993,"tag":1034,"props":9910,"children":9911},{"style":1099},[9912],{"type":998,"value":1256},{"type":993,"tag":1034,"props":9914,"children":9915},{"style":1238},[9916],{"type":998,"value":9711},{"type":993,"tag":1034,"props":9918,"children":9919},{"style":1046},[9920],{"type":998,"value":1266},{"type":993,"tag":1857,"props":9922,"children":9924},{"id":9923},"real-world-mathematical-applications",[9925],{"type":998,"value":9926},"💡 Real-World Mathematical Applications",{"type":993,"tag":2383,"props":9928,"children":9930},{"id":9929},"financial-calculations",[9931],{"type":998,"value":9932},"Financial Calculations",{"type":993,"tag":1001,"props":9934,"children":9935},{},[9936],{"type":998,"value":9937},"Apply mathematical functions to solve practical financial problems.",{"type":993,"tag":1021,"props":9939,"children":9940},{},[9941],{"type":993,"tag":1025,"props":9942,"children":9944},{"className":1027,"code":9943,"language":6,"meta":8,"style":8},"import math\n\nclass FinancialCalculator:\n    \"\"\"A comprehensive financial calculator using mathematical operations\"\"\"\n    \n    @staticmethod\n    def compound_interest(principal, annual_rate, years, compounds_per_year=1):\n        \"\"\"Calculate compound interest with flexible compounding periods\"\"\"\n        amount = principal * math.pow((1 + annual_rate/compounds_per_year), \n                                    compounds_per_year * years)\n        return round(amount, 2)\n    \n    @staticmethod\n    def loan_payment(principal, annual_rate, years):\n        \"\"\"Calculate monthly loan payment using present value formula\"\"\"\n        monthly_rate = annual_rate / 12\n        num_payments = years * 12\n        \n        if monthly_rate == 0:  # Handle 0% interest rate\n            return principal / num_payments\n        \n        payment = principal * (monthly_rate * math.pow(1 + monthly_rate, num_payments)) / \\\n                 (math.pow(1 + monthly_rate, num_payments) - 1)\n        return round(payment, 2)\n    \n    @staticmethod\n    def future_value_annuity(payment, annual_rate, years):\n        \"\"\"Calculate future value of regular payments\"\"\"\n        monthly_rate = annual_rate / 12\n        num_payments = years * 12\n        \n        if monthly_rate == 0:\n            return payment * num_payments\n        \n        fv = payment * ((math.pow(1 + monthly_rate, num_payments) - 1) / monthly_rate)\n        return round(fv, 2)\n    \n    @staticmethod\n    def retirement_planning(current_age, retirement_age, current_savings, \n                          monthly_contribution, annual_return):\n        \"\"\"Calculate retirement savings projection\"\"\"\n        years_to_retirement = retirement_age - current_age\n        \n        # Future value of current savings\n        current_savings_fv = current_savings * math.pow(1 + annual_return, years_to_retirement)\n        \n        # Future value of monthly contributions\n        contributions_fv = FinancialCalculator.future_value_annuity(\n            monthly_contribution, annual_return, years_to_retirement)\n        \n        total_retirement_fund = current_savings_fv + contributions_fv\n        return round(total_retirement_fund, 2)\n\n# Financial planning examples\ncalc = FinancialCalculator()\n\nprint(\"Financial Planning Calculations:\")\n\n# Investment comparison\nprincipal = 10000\nrate = 0.07  # 7% annual return\nyears = 30\n\n# Different compounding frequencies\nannual_compound = calc.compound_interest(principal, rate, years, 1)\nmonthly_compound = calc.compound_interest(principal, rate, years, 12)\ndaily_compound = calc.compound_interest(principal, rate, years, 365)\n\nprint(f\"\\nInvestment of ${principal:,} at {rate*100}% for {years} years:\")\nprint(f\"Annual compounding: ${annual_compound:,}\")\nprint(f\"Monthly compounding: ${monthly_compound:,}\")\nprint(f\"Daily compounding: ${daily_compound:,}\")\nprint(f\"Difference (daily vs annual): ${daily_compound - annual_compound:,}\")\n\n# Loan analysis\nloan_amount = 250000  # Home loan\nloan_rate = 0.045     # 4.5% annual rate\nloan_years = 30\n\nmonthly_payment = calc.loan_payment(loan_amount, loan_rate, loan_years)\ntotal_paid = monthly_payment * 12 * loan_years\ntotal_interest = total_paid - loan_amount\n\nprint(f\"\\nHome Loan Analysis:\")\nprint(f\"Loan amount: ${loan_amount:,}\")\nprint(f\"Interest rate: {loan_rate*100}%\")\nprint(f\"Term: {loan_years} years\")\nprint(f\"Monthly payment: ${monthly_payment:,}\")\nprint(f\"Total interest: ${total_interest:,}\")\n\n# Retirement planning\nretirement_fund = calc.retirement_planning(\n    current_age=30,\n    retirement_age=65,\n    current_savings=25000,\n    monthly_contribution=1000,\n    annual_return=0.08\n)\n\nprint(f\"\\nRetirement Planning:\")\nprint(f\"Starting at age 30 with ${25000:,}\")\nprint(f\"Contributing ${1000:,}/month until age 65\")\nprint(f\"Expected 8% annual return\")\nprint(f\"Projected retirement fund: ${retirement_fund:,}\")\n",[9945],{"type":993,"tag":1007,"props":9946,"children":9947},{"__ignoreMap":8},[9948,9959,9966,9983,9991,9998,10011,10040,10048,10094,10111,10136,10143,10154,10171,10179,10205,10230,10238,10269,10290,10297,10353,10387,10411,10418,10429,10446,10454,10477,10500,10507,10530,10550,10557,10615,10639,10646,10657,10674,10682,10690,10716,10723,10731,10769,10776,10784,10801,10809,10816,10842,10866,10873,10881,10898,10905,10925,10932,10940,10956,10977,10993,11000,11008,11033,11057,11082,11089,11181,11226,11271,11316,11369,11376,11384,11406,11428,11444,11451,11468,11503,11529,11536,11569,11614,11658,11699,11744,11788,11795,11803,11820,11841,11861,11882,11902,11919,11926,11933,11965,12006,12048,12072],{"type":993,"tag":1034,"props":9949,"children":9950},{"class":1036,"line":12},[9951,9955],{"type":993,"tag":1034,"props":9952,"children":9953},{"style":1040},[9954],{"type":998,"value":1043},{"type":993,"tag":1034,"props":9956,"children":9957},{"style":1046},[9958],{"type":998,"value":1049},{"type":993,"tag":1034,"props":9960,"children":9961},{"class":1036,"line":27},[9962],{"type":993,"tag":1034,"props":9963,"children":9964},{"emptyLinePlaceholder":13},[9965],{"type":998,"value":1069},{"type":993,"tag":1034,"props":9967,"children":9968},{"class":1036,"line":36},[9969,9974,9979],{"type":993,"tag":1034,"props":9970,"children":9971},{"style":1040},[9972],{"type":998,"value":9973},"class",{"type":993,"tag":1034,"props":9975,"children":9976},{"style":3765},[9977],{"type":998,"value":9978}," FinancialCalculator",{"type":993,"tag":1034,"props":9980,"children":9981},{"style":1046},[9982],{"type":998,"value":4129},{"type":993,"tag":1034,"props":9984,"children":9985},{"class":1036,"line":45},[9986],{"type":993,"tag":1034,"props":9987,"children":9988},{"style":1238},[9989],{"type":998,"value":9990},"    \"\"\"A comprehensive financial calculator using mathematical operations\"\"\"\n",{"type":993,"tag":1034,"props":9992,"children":9993},{"class":1036,"line":54},[9994],{"type":993,"tag":1034,"props":9995,"children":9996},{"style":1046},[9997],{"type":998,"value":4054},{"type":993,"tag":1034,"props":9999,"children":10000},{"class":1036,"line":63},[10001,10006],{"type":993,"tag":1034,"props":10002,"children":10003},{"style":3765},[10004],{"type":998,"value":10005},"    @",{"type":993,"tag":1034,"props":10007,"children":10008},{"style":1099},[10009],{"type":998,"value":10010},"staticmethod\n",{"type":993,"tag":1034,"props":10012,"children":10013},{"class":1036,"line":72},[10014,10019,10023,10028,10032,10036],{"type":993,"tag":1034,"props":10015,"children":10016},{"style":1040},[10017],{"type":998,"value":10018},"    def",{"type":993,"tag":1034,"props":10020,"children":10021},{"style":3765},[10022],{"type":998,"value":5553},{"type":993,"tag":1034,"props":10024,"children":10025},{"style":1046},[10026],{"type":998,"value":10027},"(principal, annual_rate, years, compounds_per_year",{"type":993,"tag":1034,"props":10029,"children":10030},{"style":1040},[10031],{"type":998,"value":1091},{"type":993,"tag":1034,"props":10033,"children":10034},{"style":1099},[10035],{"type":998,"value":3306},{"type":993,"tag":1034,"props":10037,"children":10038},{"style":1046},[10039],{"type":998,"value":5571},{"type":993,"tag":1034,"props":10041,"children":10042},{"class":1036,"line":81},[10043],{"type":993,"tag":1034,"props":10044,"children":10045},{"style":1238},[10046],{"type":998,"value":10047},"        \"\"\"Calculate compound interest with flexible compounding periods\"\"\"\n",{"type":993,"tag":1034,"props":10049,"children":10050},{"class":1036,"line":91},[10051,10056,10060,10064,10068,10072,10076,10080,10085,10089],{"type":993,"tag":1034,"props":10052,"children":10053},{"style":1046},[10054],{"type":998,"value":10055},"        amount ",{"type":993,"tag":1034,"props":10057,"children":10058},{"style":1040},[10059],{"type":998,"value":1091},{"type":993,"tag":1034,"props":10061,"children":10062},{"style":1046},[10063],{"type":998,"value":5596},{"type":993,"tag":1034,"props":10065,"children":10066},{"style":1040},[10067],{"type":998,"value":1913},{"type":993,"tag":1034,"props":10069,"children":10070},{"style":1046},[10071],{"type":998,"value":5605},{"type":993,"tag":1034,"props":10073,"children":10074},{"style":1099},[10075],{"type":998,"value":3306},{"type":993,"tag":1034,"props":10077,"children":10078},{"style":1040},[10079],{"type":998,"value":4651},{"type":993,"tag":1034,"props":10081,"children":10082},{"style":1046},[10083],{"type":998,"value":10084}," annual_rate",{"type":993,"tag":1034,"props":10086,"children":10087},{"style":1040},[10088],{"type":998,"value":1431},{"type":993,"tag":1034,"props":10090,"children":10091},{"style":1046},[10092],{"type":998,"value":10093},"compounds_per_year), \n",{"type":993,"tag":1034,"props":10095,"children":10096},{"class":1036,"line":100},[10097,10102,10106],{"type":993,"tag":1034,"props":10098,"children":10099},{"style":1046},[10100],{"type":998,"value":10101},"                                    compounds_per_year ",{"type":993,"tag":1034,"props":10103,"children":10104},{"style":1040},[10105],{"type":998,"value":1913},{"type":993,"tag":1034,"props":10107,"children":10108},{"style":1046},[10109],{"type":998,"value":10110}," years)\n",{"type":993,"tag":1034,"props":10112,"children":10113},{"class":1036,"line":109},[10114,10118,10123,10128,10132],{"type":993,"tag":1034,"props":10115,"children":10116},{"style":1040},[10117],{"type":998,"value":8456},{"type":993,"tag":1034,"props":10119,"children":10120},{"style":1099},[10121],{"type":998,"value":10122}," round",{"type":993,"tag":1034,"props":10124,"children":10125},{"style":1046},[10126],{"type":998,"value":10127},"(amount, ",{"type":993,"tag":1034,"props":10129,"children":10130},{"style":1099},[10131],{"type":998,"value":1834},{"type":993,"tag":1034,"props":10133,"children":10134},{"style":1046},[10135],{"type":998,"value":1266},{"type":993,"tag":1034,"props":10137,"children":10138},{"class":1036,"line":118},[10139],{"type":993,"tag":1034,"props":10140,"children":10141},{"style":1046},[10142],{"type":998,"value":4054},{"type":993,"tag":1034,"props":10144,"children":10145},{"class":1036,"line":127},[10146,10150],{"type":993,"tag":1034,"props":10147,"children":10148},{"style":3765},[10149],{"type":998,"value":10005},{"type":993,"tag":1034,"props":10151,"children":10152},{"style":1099},[10153],{"type":998,"value":10010},{"type":993,"tag":1034,"props":10155,"children":10156},{"class":1036,"line":136},[10157,10161,10166],{"type":993,"tag":1034,"props":10158,"children":10159},{"style":1040},[10160],{"type":998,"value":10018},{"type":993,"tag":1034,"props":10162,"children":10163},{"style":3765},[10164],{"type":998,"value":10165}," loan_payment",{"type":993,"tag":1034,"props":10167,"children":10168},{"style":1046},[10169],{"type":998,"value":10170},"(principal, annual_rate, years):\n",{"type":993,"tag":1034,"props":10172,"children":10173},{"class":1036,"line":146},[10174],{"type":993,"tag":1034,"props":10175,"children":10176},{"style":1238},[10177],{"type":998,"value":10178},"        \"\"\"Calculate monthly loan payment using present value formula\"\"\"\n",{"type":993,"tag":1034,"props":10180,"children":10181},{"class":1036,"line":155},[10182,10187,10191,10196,10200],{"type":993,"tag":1034,"props":10183,"children":10184},{"style":1046},[10185],{"type":998,"value":10186},"        monthly_rate ",{"type":993,"tag":1034,"props":10188,"children":10189},{"style":1040},[10190],{"type":998,"value":1091},{"type":993,"tag":1034,"props":10192,"children":10193},{"style":1046},[10194],{"type":998,"value":10195}," annual_rate ",{"type":993,"tag":1034,"props":10197,"children":10198},{"style":1040},[10199],{"type":998,"value":1431},{"type":993,"tag":1034,"props":10201,"children":10202},{"style":1099},[10203],{"type":998,"value":10204}," 12\n",{"type":993,"tag":1034,"props":10206,"children":10207},{"class":1036,"line":164},[10208,10213,10217,10222,10226],{"type":993,"tag":1034,"props":10209,"children":10210},{"style":1046},[10211],{"type":998,"value":10212},"        num_payments ",{"type":993,"tag":1034,"props":10214,"children":10215},{"style":1040},[10216],{"type":998,"value":1091},{"type":993,"tag":1034,"props":10218,"children":10219},{"style":1046},[10220],{"type":998,"value":10221}," years ",{"type":993,"tag":1034,"props":10223,"children":10224},{"style":1040},[10225],{"type":998,"value":1913},{"type":993,"tag":1034,"props":10227,"children":10228},{"style":1099},[10229],{"type":998,"value":10204},{"type":993,"tag":1034,"props":10231,"children":10232},{"class":1036,"line":173},[10233],{"type":993,"tag":1034,"props":10234,"children":10235},{"style":1046},[10236],{"type":998,"value":10237},"        \n",{"type":993,"tag":1034,"props":10239,"children":10240},{"class":1036,"line":182},[10241,10246,10251,10255,10259,10264],{"type":993,"tag":1034,"props":10242,"children":10243},{"style":1040},[10244],{"type":998,"value":10245},"        if",{"type":993,"tag":1034,"props":10247,"children":10248},{"style":1046},[10249],{"type":998,"value":10250}," monthly_rate ",{"type":993,"tag":1034,"props":10252,"children":10253},{"style":1040},[10254],{"type":998,"value":8439},{"type":993,"tag":1034,"props":10256,"children":10257},{"style":1099},[10258],{"type":998,"value":8444},{"type":993,"tag":1034,"props":10260,"children":10261},{"style":1046},[10262],{"type":998,"value":10263},":  ",{"type":993,"tag":1034,"props":10265,"children":10266},{"style":1075},[10267],{"type":998,"value":10268},"# Handle 0% interest rate\n",{"type":993,"tag":1034,"props":10270,"children":10271},{"class":1036,"line":191},[10272,10277,10281,10285],{"type":993,"tag":1034,"props":10273,"children":10274},{"style":1040},[10275],{"type":998,"value":10276},"            return",{"type":993,"tag":1034,"props":10278,"children":10279},{"style":1046},[10280],{"type":998,"value":5596},{"type":993,"tag":1034,"props":10282,"children":10283},{"style":1040},[10284],{"type":998,"value":1431},{"type":993,"tag":1034,"props":10286,"children":10287},{"style":1046},[10288],{"type":998,"value":10289}," num_payments\n",{"type":993,"tag":1034,"props":10291,"children":10292},{"class":1036,"line":201},[10293],{"type":993,"tag":1034,"props":10294,"children":10295},{"style":1046},[10296],{"type":998,"value":10237},{"type":993,"tag":1034,"props":10298,"children":10299},{"class":1036,"line":210},[10300,10305,10309,10313,10317,10322,10326,10331,10335,10339,10344,10348],{"type":993,"tag":1034,"props":10301,"children":10302},{"style":1046},[10303],{"type":998,"value":10304},"        payment ",{"type":993,"tag":1034,"props":10306,"children":10307},{"style":1040},[10308],{"type":998,"value":1091},{"type":993,"tag":1034,"props":10310,"children":10311},{"style":1046},[10312],{"type":998,"value":5596},{"type":993,"tag":1034,"props":10314,"children":10315},{"style":1040},[10316],{"type":998,"value":1913},{"type":993,"tag":1034,"props":10318,"children":10319},{"style":1046},[10320],{"type":998,"value":10321}," (monthly_rate ",{"type":993,"tag":1034,"props":10323,"children":10324},{"style":1040},[10325],{"type":998,"value":1913},{"type":993,"tag":1034,"props":10327,"children":10328},{"style":1046},[10329],{"type":998,"value":10330}," math.pow(",{"type":993,"tag":1034,"props":10332,"children":10333},{"style":1099},[10334],{"type":998,"value":3306},{"type":993,"tag":1034,"props":10336,"children":10337},{"style":1040},[10338],{"type":998,"value":4651},{"type":993,"tag":1034,"props":10340,"children":10341},{"style":1046},[10342],{"type":998,"value":10343}," monthly_rate, num_payments)) ",{"type":993,"tag":1034,"props":10345,"children":10346},{"style":1040},[10347],{"type":998,"value":1431},{"type":993,"tag":1034,"props":10349,"children":10350},{"style":1046},[10351],{"type":998,"value":10352}," \\\n",{"type":993,"tag":1034,"props":10354,"children":10355},{"class":1036,"line":219},[10356,10361,10365,10369,10374,10378,10383],{"type":993,"tag":1034,"props":10357,"children":10358},{"style":1046},[10359],{"type":998,"value":10360},"                 (math.pow(",{"type":993,"tag":1034,"props":10362,"children":10363},{"style":1099},[10364],{"type":998,"value":3306},{"type":993,"tag":1034,"props":10366,"children":10367},{"style":1040},[10368],{"type":998,"value":4651},{"type":993,"tag":1034,"props":10370,"children":10371},{"style":1046},[10372],{"type":998,"value":10373}," monthly_rate, num_payments) ",{"type":993,"tag":1034,"props":10375,"children":10376},{"style":1040},[10377],{"type":998,"value":1906},{"type":993,"tag":1034,"props":10379,"children":10380},{"style":1099},[10381],{"type":998,"value":10382}," 1",{"type":993,"tag":1034,"props":10384,"children":10385},{"style":1046},[10386],{"type":998,"value":1266},{"type":993,"tag":1034,"props":10388,"children":10389},{"class":1036,"line":228},[10390,10394,10398,10403,10407],{"type":993,"tag":1034,"props":10391,"children":10392},{"style":1040},[10393],{"type":998,"value":8456},{"type":993,"tag":1034,"props":10395,"children":10396},{"style":1099},[10397],{"type":998,"value":10122},{"type":993,"tag":1034,"props":10399,"children":10400},{"style":1046},[10401],{"type":998,"value":10402},"(payment, ",{"type":993,"tag":1034,"props":10404,"children":10405},{"style":1099},[10406],{"type":998,"value":1834},{"type":993,"tag":1034,"props":10408,"children":10409},{"style":1046},[10410],{"type":998,"value":1266},{"type":993,"tag":1034,"props":10412,"children":10413},{"class":1036,"line":238},[10414],{"type":993,"tag":1034,"props":10415,"children":10416},{"style":1046},[10417],{"type":998,"value":4054},{"type":993,"tag":1034,"props":10419,"children":10420},{"class":1036,"line":247},[10421,10425],{"type":993,"tag":1034,"props":10422,"children":10423},{"style":3765},[10424],{"type":998,"value":10005},{"type":993,"tag":1034,"props":10426,"children":10427},{"style":1099},[10428],{"type":998,"value":10010},{"type":993,"tag":1034,"props":10430,"children":10431},{"class":1036,"line":256},[10432,10436,10441],{"type":993,"tag":1034,"props":10433,"children":10434},{"style":1040},[10435],{"type":998,"value":10018},{"type":993,"tag":1034,"props":10437,"children":10438},{"style":3765},[10439],{"type":998,"value":10440}," future_value_annuity",{"type":993,"tag":1034,"props":10442,"children":10443},{"style":1046},[10444],{"type":998,"value":10445},"(payment, annual_rate, years):\n",{"type":993,"tag":1034,"props":10447,"children":10448},{"class":1036,"line":265},[10449],{"type":993,"tag":1034,"props":10450,"children":10451},{"style":1238},[10452],{"type":998,"value":10453},"        \"\"\"Calculate future value of regular payments\"\"\"\n",{"type":993,"tag":1034,"props":10455,"children":10456},{"class":1036,"line":274},[10457,10461,10465,10469,10473],{"type":993,"tag":1034,"props":10458,"children":10459},{"style":1046},[10460],{"type":998,"value":10186},{"type":993,"tag":1034,"props":10462,"children":10463},{"style":1040},[10464],{"type":998,"value":1091},{"type":993,"tag":1034,"props":10466,"children":10467},{"style":1046},[10468],{"type":998,"value":10195},{"type":993,"tag":1034,"props":10470,"children":10471},{"style":1040},[10472],{"type":998,"value":1431},{"type":993,"tag":1034,"props":10474,"children":10475},{"style":1099},[10476],{"type":998,"value":10204},{"type":993,"tag":1034,"props":10478,"children":10479},{"class":1036,"line":284},[10480,10484,10488,10492,10496],{"type":993,"tag":1034,"props":10481,"children":10482},{"style":1046},[10483],{"type":998,"value":10212},{"type":993,"tag":1034,"props":10485,"children":10486},{"style":1040},[10487],{"type":998,"value":1091},{"type":993,"tag":1034,"props":10489,"children":10490},{"style":1046},[10491],{"type":998,"value":10221},{"type":993,"tag":1034,"props":10493,"children":10494},{"style":1040},[10495],{"type":998,"value":1913},{"type":993,"tag":1034,"props":10497,"children":10498},{"style":1099},[10499],{"type":998,"value":10204},{"type":993,"tag":1034,"props":10501,"children":10502},{"class":1036,"line":293},[10503],{"type":993,"tag":1034,"props":10504,"children":10505},{"style":1046},[10506],{"type":998,"value":10237},{"type":993,"tag":1034,"props":10508,"children":10509},{"class":1036,"line":302},[10510,10514,10518,10522,10526],{"type":993,"tag":1034,"props":10511,"children":10512},{"style":1040},[10513],{"type":998,"value":10245},{"type":993,"tag":1034,"props":10515,"children":10516},{"style":1046},[10517],{"type":998,"value":10250},{"type":993,"tag":1034,"props":10519,"children":10520},{"style":1040},[10521],{"type":998,"value":8439},{"type":993,"tag":1034,"props":10523,"children":10524},{"style":1099},[10525],{"type":998,"value":8444},{"type":993,"tag":1034,"props":10527,"children":10528},{"style":1046},[10529],{"type":998,"value":4129},{"type":993,"tag":1034,"props":10531,"children":10532},{"class":1036,"line":311},[10533,10537,10542,10546],{"type":993,"tag":1034,"props":10534,"children":10535},{"style":1040},[10536],{"type":998,"value":10276},{"type":993,"tag":1034,"props":10538,"children":10539},{"style":1046},[10540],{"type":998,"value":10541}," payment ",{"type":993,"tag":1034,"props":10543,"children":10544},{"style":1040},[10545],{"type":998,"value":1913},{"type":993,"tag":1034,"props":10547,"children":10548},{"style":1046},[10549],{"type":998,"value":10289},{"type":993,"tag":1034,"props":10551,"children":10552},{"class":1036,"line":320},[10553],{"type":993,"tag":1034,"props":10554,"children":10555},{"style":1046},[10556],{"type":998,"value":10237},{"type":993,"tag":1034,"props":10558,"children":10559},{"class":1036,"line":329},[10560,10565,10569,10573,10577,10582,10586,10590,10594,10598,10602,10606,10610],{"type":993,"tag":1034,"props":10561,"children":10562},{"style":1046},[10563],{"type":998,"value":10564},"        fv ",{"type":993,"tag":1034,"props":10566,"children":10567},{"style":1040},[10568],{"type":998,"value":1091},{"type":993,"tag":1034,"props":10570,"children":10571},{"style":1046},[10572],{"type":998,"value":10541},{"type":993,"tag":1034,"props":10574,"children":10575},{"style":1040},[10576],{"type":998,"value":1913},{"type":993,"tag":1034,"props":10578,"children":10579},{"style":1046},[10580],{"type":998,"value":10581}," ((math.pow(",{"type":993,"tag":1034,"props":10583,"children":10584},{"style":1099},[10585],{"type":998,"value":3306},{"type":993,"tag":1034,"props":10587,"children":10588},{"style":1040},[10589],{"type":998,"value":4651},{"type":993,"tag":1034,"props":10591,"children":10592},{"style":1046},[10593],{"type":998,"value":10373},{"type":993,"tag":1034,"props":10595,"children":10596},{"style":1040},[10597],{"type":998,"value":1906},{"type":993,"tag":1034,"props":10599,"children":10600},{"style":1099},[10601],{"type":998,"value":10382},{"type":993,"tag":1034,"props":10603,"children":10604},{"style":1046},[10605],{"type":998,"value":5767},{"type":993,"tag":1034,"props":10607,"children":10608},{"style":1040},[10609],{"type":998,"value":1431},{"type":993,"tag":1034,"props":10611,"children":10612},{"style":1046},[10613],{"type":998,"value":10614}," monthly_rate)\n",{"type":993,"tag":1034,"props":10616,"children":10617},{"class":1036,"line":338},[10618,10622,10626,10631,10635],{"type":993,"tag":1034,"props":10619,"children":10620},{"style":1040},[10621],{"type":998,"value":8456},{"type":993,"tag":1034,"props":10623,"children":10624},{"style":1099},[10625],{"type":998,"value":10122},{"type":993,"tag":1034,"props":10627,"children":10628},{"style":1046},[10629],{"type":998,"value":10630},"(fv, ",{"type":993,"tag":1034,"props":10632,"children":10633},{"style":1099},[10634],{"type":998,"value":1834},{"type":993,"tag":1034,"props":10636,"children":10637},{"style":1046},[10638],{"type":998,"value":1266},{"type":993,"tag":1034,"props":10640,"children":10641},{"class":1036,"line":347},[10642],{"type":993,"tag":1034,"props":10643,"children":10644},{"style":1046},[10645],{"type":998,"value":4054},{"type":993,"tag":1034,"props":10647,"children":10648},{"class":1036,"line":356},[10649,10653],{"type":993,"tag":1034,"props":10650,"children":10651},{"style":3765},[10652],{"type":998,"value":10005},{"type":993,"tag":1034,"props":10654,"children":10655},{"style":1099},[10656],{"type":998,"value":10010},{"type":993,"tag":1034,"props":10658,"children":10659},{"class":1036,"line":365},[10660,10664,10669],{"type":993,"tag":1034,"props":10661,"children":10662},{"style":1040},[10663],{"type":998,"value":10018},{"type":993,"tag":1034,"props":10665,"children":10666},{"style":3765},[10667],{"type":998,"value":10668}," retirement_planning",{"type":993,"tag":1034,"props":10670,"children":10671},{"style":1046},[10672],{"type":998,"value":10673},"(current_age, retirement_age, current_savings, \n",{"type":993,"tag":1034,"props":10675,"children":10676},{"class":1036,"line":374},[10677],{"type":993,"tag":1034,"props":10678,"children":10679},{"style":1046},[10680],{"type":998,"value":10681},"                          monthly_contribution, annual_return):\n",{"type":993,"tag":1034,"props":10683,"children":10684},{"class":1036,"line":384},[10685],{"type":993,"tag":1034,"props":10686,"children":10687},{"style":1238},[10688],{"type":998,"value":10689},"        \"\"\"Calculate retirement savings projection\"\"\"\n",{"type":993,"tag":1034,"props":10691,"children":10692},{"class":1036,"line":393},[10693,10698,10702,10707,10711],{"type":993,"tag":1034,"props":10694,"children":10695},{"style":1046},[10696],{"type":998,"value":10697},"        years_to_retirement ",{"type":993,"tag":1034,"props":10699,"children":10700},{"style":1040},[10701],{"type":998,"value":1091},{"type":993,"tag":1034,"props":10703,"children":10704},{"style":1046},[10705],{"type":998,"value":10706}," retirement_age ",{"type":993,"tag":1034,"props":10708,"children":10709},{"style":1040},[10710],{"type":998,"value":1906},{"type":993,"tag":1034,"props":10712,"children":10713},{"style":1046},[10714],{"type":998,"value":10715}," current_age\n",{"type":993,"tag":1034,"props":10717,"children":10718},{"class":1036,"line":402},[10719],{"type":993,"tag":1034,"props":10720,"children":10721},{"style":1046},[10722],{"type":998,"value":10237},{"type":993,"tag":1034,"props":10724,"children":10725},{"class":1036,"line":411},[10726],{"type":993,"tag":1034,"props":10727,"children":10728},{"style":1075},[10729],{"type":998,"value":10730},"        # Future value of current savings\n",{"type":993,"tag":1034,"props":10732,"children":10733},{"class":1036,"line":420},[10734,10739,10743,10748,10752,10756,10760,10764],{"type":993,"tag":1034,"props":10735,"children":10736},{"style":1046},[10737],{"type":998,"value":10738},"        current_savings_fv ",{"type":993,"tag":1034,"props":10740,"children":10741},{"style":1040},[10742],{"type":998,"value":1091},{"type":993,"tag":1034,"props":10744,"children":10745},{"style":1046},[10746],{"type":998,"value":10747}," current_savings ",{"type":993,"tag":1034,"props":10749,"children":10750},{"style":1040},[10751],{"type":998,"value":1913},{"type":993,"tag":1034,"props":10753,"children":10754},{"style":1046},[10755],{"type":998,"value":10330},{"type":993,"tag":1034,"props":10757,"children":10758},{"style":1099},[10759],{"type":998,"value":3306},{"type":993,"tag":1034,"props":10761,"children":10762},{"style":1040},[10763],{"type":998,"value":4651},{"type":993,"tag":1034,"props":10765,"children":10766},{"style":1046},[10767],{"type":998,"value":10768}," annual_return, years_to_retirement)\n",{"type":993,"tag":1034,"props":10770,"children":10771},{"class":1036,"line":429},[10772],{"type":993,"tag":1034,"props":10773,"children":10774},{"style":1046},[10775],{"type":998,"value":10237},{"type":993,"tag":1034,"props":10777,"children":10778},{"class":1036,"line":438},[10779],{"type":993,"tag":1034,"props":10780,"children":10781},{"style":1075},[10782],{"type":998,"value":10783},"        # Future value of monthly contributions\n",{"type":993,"tag":1034,"props":10785,"children":10786},{"class":1036,"line":447},[10787,10792,10796],{"type":993,"tag":1034,"props":10788,"children":10789},{"style":1046},[10790],{"type":998,"value":10791},"        contributions_fv ",{"type":993,"tag":1034,"props":10793,"children":10794},{"style":1040},[10795],{"type":998,"value":1091},{"type":993,"tag":1034,"props":10797,"children":10798},{"style":1046},[10799],{"type":998,"value":10800}," FinancialCalculator.future_value_annuity(\n",{"type":993,"tag":1034,"props":10802,"children":10803},{"class":1036,"line":457},[10804],{"type":993,"tag":1034,"props":10805,"children":10806},{"style":1046},[10807],{"type":998,"value":10808},"            monthly_contribution, annual_return, years_to_retirement)\n",{"type":993,"tag":1034,"props":10810,"children":10811},{"class":1036,"line":466},[10812],{"type":993,"tag":1034,"props":10813,"children":10814},{"style":1046},[10815],{"type":998,"value":10237},{"type":993,"tag":1034,"props":10817,"children":10818},{"class":1036,"line":475},[10819,10824,10828,10833,10837],{"type":993,"tag":1034,"props":10820,"children":10821},{"style":1046},[10822],{"type":998,"value":10823},"        total_retirement_fund ",{"type":993,"tag":1034,"props":10825,"children":10826},{"style":1040},[10827],{"type":998,"value":1091},{"type":993,"tag":1034,"props":10829,"children":10830},{"style":1046},[10831],{"type":998,"value":10832}," current_savings_fv ",{"type":993,"tag":1034,"props":10834,"children":10835},{"style":1040},[10836],{"type":998,"value":1899},{"type":993,"tag":1034,"props":10838,"children":10839},{"style":1046},[10840],{"type":998,"value":10841}," contributions_fv\n",{"type":993,"tag":1034,"props":10843,"children":10844},{"class":1036,"line":484},[10845,10849,10853,10858,10862],{"type":993,"tag":1034,"props":10846,"children":10847},{"style":1040},[10848],{"type":998,"value":8456},{"type":993,"tag":1034,"props":10850,"children":10851},{"style":1099},[10852],{"type":998,"value":10122},{"type":993,"tag":1034,"props":10854,"children":10855},{"style":1046},[10856],{"type":998,"value":10857},"(total_retirement_fund, ",{"type":993,"tag":1034,"props":10859,"children":10860},{"style":1099},[10861],{"type":998,"value":1834},{"type":993,"tag":1034,"props":10863,"children":10864},{"style":1046},[10865],{"type":998,"value":1266},{"type":993,"tag":1034,"props":10867,"children":10868},{"class":1036,"line":493},[10869],{"type":993,"tag":1034,"props":10870,"children":10871},{"emptyLinePlaceholder":13},[10872],{"type":998,"value":1069},{"type":993,"tag":1034,"props":10874,"children":10875},{"class":1036,"line":502},[10876],{"type":993,"tag":1034,"props":10877,"children":10878},{"style":1075},[10879],{"type":998,"value":10880},"# Financial planning examples\n",{"type":993,"tag":1034,"props":10882,"children":10883},{"class":1036,"line":511},[10884,10889,10893],{"type":993,"tag":1034,"props":10885,"children":10886},{"style":1046},[10887],{"type":998,"value":10888},"calc ",{"type":993,"tag":1034,"props":10890,"children":10891},{"style":1040},[10892],{"type":998,"value":1091},{"type":993,"tag":1034,"props":10894,"children":10895},{"style":1046},[10896],{"type":998,"value":10897}," FinancialCalculator()\n",{"type":993,"tag":1034,"props":10899,"children":10900},{"class":1036,"line":520},[10901],{"type":993,"tag":1034,"props":10902,"children":10903},{"emptyLinePlaceholder":13},[10904],{"type":998,"value":1069},{"type":993,"tag":1034,"props":10906,"children":10907},{"class":1036,"line":530},[10908,10912,10916,10921],{"type":993,"tag":1034,"props":10909,"children":10910},{"style":1099},[10911],{"type":998,"value":1225},{"type":993,"tag":1034,"props":10913,"children":10914},{"style":1046},[10915],{"type":998,"value":1230},{"type":993,"tag":1034,"props":10917,"children":10918},{"style":1238},[10919],{"type":998,"value":10920},"\"Financial Planning Calculations:\"",{"type":993,"tag":1034,"props":10922,"children":10923},{"style":1046},[10924],{"type":998,"value":1266},{"type":993,"tag":1034,"props":10926,"children":10927},{"class":1036,"line":539},[10928],{"type":993,"tag":1034,"props":10929,"children":10930},{"emptyLinePlaceholder":13},[10931],{"type":998,"value":1069},{"type":993,"tag":1034,"props":10933,"children":10934},{"class":1036,"line":548},[10935],{"type":993,"tag":1034,"props":10936,"children":10937},{"style":1075},[10938],{"type":998,"value":10939},"# Investment comparison\n",{"type":993,"tag":1034,"props":10941,"children":10942},{"class":1036,"line":557},[10943,10947,10951],{"type":993,"tag":1034,"props":10944,"children":10945},{"style":1046},[10946],{"type":998,"value":5836},{"type":993,"tag":1034,"props":10948,"children":10949},{"style":1040},[10950],{"type":998,"value":1091},{"type":993,"tag":1034,"props":10952,"children":10953},{"style":1099},[10954],{"type":998,"value":10955}," 10000\n",{"type":993,"tag":1034,"props":10957,"children":10958},{"class":1036,"line":566},[10959,10963,10967,10972],{"type":993,"tag":1034,"props":10960,"children":10961},{"style":1046},[10962],{"type":998,"value":5858},{"type":993,"tag":1034,"props":10964,"children":10965},{"style":1040},[10966],{"type":998,"value":1091},{"type":993,"tag":1034,"props":10968,"children":10969},{"style":1099},[10970],{"type":998,"value":10971}," 0.07",{"type":993,"tag":1034,"props":10973,"children":10974},{"style":1075},[10975],{"type":998,"value":10976},"  # 7% annual return\n",{"type":993,"tag":1034,"props":10978,"children":10979},{"class":1036,"line":575},[10980,10984,10988],{"type":993,"tag":1034,"props":10981,"children":10982},{"style":1046},[10983],{"type":998,"value":6254},{"type":993,"tag":1034,"props":10985,"children":10986},{"style":1040},[10987],{"type":998,"value":1091},{"type":993,"tag":1034,"props":10989,"children":10990},{"style":1099},[10991],{"type":998,"value":10992}," 30\n",{"type":993,"tag":1034,"props":10994,"children":10995},{"class":1036,"line":584},[10996],{"type":993,"tag":1034,"props":10997,"children":10998},{"emptyLinePlaceholder":13},[10999],{"type":998,"value":1069},{"type":993,"tag":1034,"props":11001,"children":11002},{"class":1036,"line":593},[11003],{"type":993,"tag":1034,"props":11004,"children":11005},{"style":1075},[11006],{"type":998,"value":11007},"# Different compounding frequencies\n",{"type":993,"tag":1034,"props":11009,"children":11010},{"class":1036,"line":602},[11011,11016,11020,11025,11029],{"type":993,"tag":1034,"props":11012,"children":11013},{"style":1046},[11014],{"type":998,"value":11015},"annual_compound ",{"type":993,"tag":1034,"props":11017,"children":11018},{"style":1040},[11019],{"type":998,"value":1091},{"type":993,"tag":1034,"props":11021,"children":11022},{"style":1046},[11023],{"type":998,"value":11024}," calc.compound_interest(principal, rate, years, ",{"type":993,"tag":1034,"props":11026,"children":11027},{"style":1099},[11028],{"type":998,"value":3306},{"type":993,"tag":1034,"props":11030,"children":11031},{"style":1046},[11032],{"type":998,"value":1266},{"type":993,"tag":1034,"props":11034,"children":11035},{"class":1036,"line":611},[11036,11041,11045,11049,11053],{"type":993,"tag":1034,"props":11037,"children":11038},{"style":1046},[11039],{"type":998,"value":11040},"monthly_compound ",{"type":993,"tag":1034,"props":11042,"children":11043},{"style":1040},[11044],{"type":998,"value":1091},{"type":993,"tag":1034,"props":11046,"children":11047},{"style":1046},[11048],{"type":998,"value":11024},{"type":993,"tag":1034,"props":11050,"children":11051},{"style":1099},[11052],{"type":998,"value":5915},{"type":993,"tag":1034,"props":11054,"children":11055},{"style":1046},[11056],{"type":998,"value":1266},{"type":993,"tag":1034,"props":11058,"children":11059},{"class":1036,"line":621},[11060,11065,11069,11073,11078],{"type":993,"tag":1034,"props":11061,"children":11062},{"style":1046},[11063],{"type":998,"value":11064},"daily_compound ",{"type":993,"tag":1034,"props":11066,"children":11067},{"style":1040},[11068],{"type":998,"value":1091},{"type":993,"tag":1034,"props":11070,"children":11071},{"style":1046},[11072],{"type":998,"value":11024},{"type":993,"tag":1034,"props":11074,"children":11075},{"style":1099},[11076],{"type":998,"value":11077},"365",{"type":993,"tag":1034,"props":11079,"children":11080},{"style":1046},[11081],{"type":998,"value":1266},{"type":993,"tag":1034,"props":11083,"children":11084},{"class":1036,"line":630},[11085],{"type":993,"tag":1034,"props":11086,"children":11087},{"emptyLinePlaceholder":13},[11088],{"type":998,"value":1069},{"type":993,"tag":1034,"props":11090,"children":11091},{"class":1036,"line":639},[11092,11096,11100,11104,11108,11112,11117,11121,11125,11130,11134,11139,11143,11147,11151,11155,11160,11164,11168,11172,11177],{"type":993,"tag":1034,"props":11093,"children":11094},{"style":1099},[11095],{"type":998,"value":1225},{"type":993,"tag":1034,"props":11097,"children":11098},{"style":1046},[11099],{"type":998,"value":1230},{"type":993,"tag":1034,"props":11101,"children":11102},{"style":1040},[11103],{"type":998,"value":1235},{"type":993,"tag":1034,"props":11105,"children":11106},{"style":1238},[11107],{"type":998,"value":1261},{"type":993,"tag":1034,"props":11109,"children":11110},{"style":1099},[11111],{"type":998,"value":1465},{"type":993,"tag":1034,"props":11113,"children":11114},{"style":1238},[11115],{"type":998,"value":11116},"Investment of $",{"type":993,"tag":1034,"props":11118,"children":11119},{"style":1099},[11120],{"type":998,"value":1246},{"type":993,"tag":1034,"props":11122,"children":11123},{"style":1046},[11124],{"type":998,"value":5993},{"type":993,"tag":1034,"props":11126,"children":11127},{"style":1040},[11128],{"type":998,"value":11129},":,",{"type":993,"tag":1034,"props":11131,"children":11132},{"style":1099},[11133],{"type":998,"value":1256},{"type":993,"tag":1034,"props":11135,"children":11136},{"style":1238},[11137],{"type":998,"value":11138}," at ",{"type":993,"tag":1034,"props":11140,"children":11141},{"style":1099},[11142],{"type":998,"value":1246},{"type":993,"tag":1034,"props":11144,"children":11145},{"style":1046},[11146],{"type":998,"value":6034},{"type":993,"tag":1034,"props":11148,"children":11149},{"style":1040},[11150],{"type":998,"value":1913},{"type":993,"tag":1034,"props":11152,"children":11153},{"style":1099},[11154],{"type":998,"value":6043},{"type":993,"tag":1034,"props":11156,"children":11157},{"style":1238},[11158],{"type":998,"value":11159},"% for ",{"type":993,"tag":1034,"props":11161,"children":11162},{"style":1099},[11163],{"type":998,"value":1246},{"type":993,"tag":1034,"props":11165,"children":11166},{"style":1046},[11167],{"type":998,"value":6435},{"type":993,"tag":1034,"props":11169,"children":11170},{"style":1099},[11171],{"type":998,"value":1256},{"type":993,"tag":1034,"props":11173,"children":11174},{"style":1238},[11175],{"type":998,"value":11176}," years:\"",{"type":993,"tag":1034,"props":11178,"children":11179},{"style":1046},[11180],{"type":998,"value":1266},{"type":993,"tag":1034,"props":11182,"children":11183},{"class":1036,"line":648},[11184,11188,11192,11196,11201,11205,11210,11214,11218,11222],{"type":993,"tag":1034,"props":11185,"children":11186},{"style":1099},[11187],{"type":998,"value":1225},{"type":993,"tag":1034,"props":11189,"children":11190},{"style":1046},[11191],{"type":998,"value":1230},{"type":993,"tag":1034,"props":11193,"children":11194},{"style":1040},[11195],{"type":998,"value":1235},{"type":993,"tag":1034,"props":11197,"children":11198},{"style":1238},[11199],{"type":998,"value":11200},"\"Annual compounding: $",{"type":993,"tag":1034,"props":11202,"children":11203},{"style":1099},[11204],{"type":998,"value":1246},{"type":993,"tag":1034,"props":11206,"children":11207},{"style":1046},[11208],{"type":998,"value":11209},"annual_compound",{"type":993,"tag":1034,"props":11211,"children":11212},{"style":1040},[11213],{"type":998,"value":11129},{"type":993,"tag":1034,"props":11215,"children":11216},{"style":1099},[11217],{"type":998,"value":1256},{"type":993,"tag":1034,"props":11219,"children":11220},{"style":1238},[11221],{"type":998,"value":1261},{"type":993,"tag":1034,"props":11223,"children":11224},{"style":1046},[11225],{"type":998,"value":1266},{"type":993,"tag":1034,"props":11227,"children":11228},{"class":1036,"line":657},[11229,11233,11237,11241,11246,11250,11255,11259,11263,11267],{"type":993,"tag":1034,"props":11230,"children":11231},{"style":1099},[11232],{"type":998,"value":1225},{"type":993,"tag":1034,"props":11234,"children":11235},{"style":1046},[11236],{"type":998,"value":1230},{"type":993,"tag":1034,"props":11238,"children":11239},{"style":1040},[11240],{"type":998,"value":1235},{"type":993,"tag":1034,"props":11242,"children":11243},{"style":1238},[11244],{"type":998,"value":11245},"\"Monthly compounding: $",{"type":993,"tag":1034,"props":11247,"children":11248},{"style":1099},[11249],{"type":998,"value":1246},{"type":993,"tag":1034,"props":11251,"children":11252},{"style":1046},[11253],{"type":998,"value":11254},"monthly_compound",{"type":993,"tag":1034,"props":11256,"children":11257},{"style":1040},[11258],{"type":998,"value":11129},{"type":993,"tag":1034,"props":11260,"children":11261},{"style":1099},[11262],{"type":998,"value":1256},{"type":993,"tag":1034,"props":11264,"children":11265},{"style":1238},[11266],{"type":998,"value":1261},{"type":993,"tag":1034,"props":11268,"children":11269},{"style":1046},[11270],{"type":998,"value":1266},{"type":993,"tag":1034,"props":11272,"children":11273},{"class":1036,"line":666},[11274,11278,11282,11286,11291,11295,11300,11304,11308,11312],{"type":993,"tag":1034,"props":11275,"children":11276},{"style":1099},[11277],{"type":998,"value":1225},{"type":993,"tag":1034,"props":11279,"children":11280},{"style":1046},[11281],{"type":998,"value":1230},{"type":993,"tag":1034,"props":11283,"children":11284},{"style":1040},[11285],{"type":998,"value":1235},{"type":993,"tag":1034,"props":11287,"children":11288},{"style":1238},[11289],{"type":998,"value":11290},"\"Daily compounding: $",{"type":993,"tag":1034,"props":11292,"children":11293},{"style":1099},[11294],{"type":998,"value":1246},{"type":993,"tag":1034,"props":11296,"children":11297},{"style":1046},[11298],{"type":998,"value":11299},"daily_compound",{"type":993,"tag":1034,"props":11301,"children":11302},{"style":1040},[11303],{"type":998,"value":11129},{"type":993,"tag":1034,"props":11305,"children":11306},{"style":1099},[11307],{"type":998,"value":1256},{"type":993,"tag":1034,"props":11309,"children":11310},{"style":1238},[11311],{"type":998,"value":1261},{"type":993,"tag":1034,"props":11313,"children":11314},{"style":1046},[11315],{"type":998,"value":1266},{"type":993,"tag":1034,"props":11317,"children":11318},{"class":1036,"line":675},[11319,11323,11327,11331,11336,11340,11344,11348,11353,11357,11361,11365],{"type":993,"tag":1034,"props":11320,"children":11321},{"style":1099},[11322],{"type":998,"value":1225},{"type":993,"tag":1034,"props":11324,"children":11325},{"style":1046},[11326],{"type":998,"value":1230},{"type":993,"tag":1034,"props":11328,"children":11329},{"style":1040},[11330],{"type":998,"value":1235},{"type":993,"tag":1034,"props":11332,"children":11333},{"style":1238},[11334],{"type":998,"value":11335},"\"Difference (daily vs annual): $",{"type":993,"tag":1034,"props":11337,"children":11338},{"style":1099},[11339],{"type":998,"value":1246},{"type":993,"tag":1034,"props":11341,"children":11342},{"style":1046},[11343],{"type":998,"value":11064},{"type":993,"tag":1034,"props":11345,"children":11346},{"style":1040},[11347],{"type":998,"value":1906},{"type":993,"tag":1034,"props":11349,"children":11350},{"style":1046},[11351],{"type":998,"value":11352}," annual_compound",{"type":993,"tag":1034,"props":11354,"children":11355},{"style":1040},[11356],{"type":998,"value":11129},{"type":993,"tag":1034,"props":11358,"children":11359},{"style":1099},[11360],{"type":998,"value":1256},{"type":993,"tag":1034,"props":11362,"children":11363},{"style":1238},[11364],{"type":998,"value":1261},{"type":993,"tag":1034,"props":11366,"children":11367},{"style":1046},[11368],{"type":998,"value":1266},{"type":993,"tag":1034,"props":11370,"children":11371},{"class":1036,"line":685},[11372],{"type":993,"tag":1034,"props":11373,"children":11374},{"emptyLinePlaceholder":13},[11375],{"type":998,"value":1069},{"type":993,"tag":1034,"props":11377,"children":11378},{"class":1036,"line":694},[11379],{"type":993,"tag":1034,"props":11380,"children":11381},{"style":1075},[11382],{"type":998,"value":11383},"# Loan analysis\n",{"type":993,"tag":1034,"props":11385,"children":11386},{"class":1036,"line":703},[11387,11392,11396,11401],{"type":993,"tag":1034,"props":11388,"children":11389},{"style":1046},[11390],{"type":998,"value":11391},"loan_amount ",{"type":993,"tag":1034,"props":11393,"children":11394},{"style":1040},[11395],{"type":998,"value":1091},{"type":993,"tag":1034,"props":11397,"children":11398},{"style":1099},[11399],{"type":998,"value":11400}," 250000",{"type":993,"tag":1034,"props":11402,"children":11403},{"style":1075},[11404],{"type":998,"value":11405},"  # Home loan\n",{"type":993,"tag":1034,"props":11407,"children":11408},{"class":1036,"line":712},[11409,11414,11418,11423],{"type":993,"tag":1034,"props":11410,"children":11411},{"style":1046},[11412],{"type":998,"value":11413},"loan_rate ",{"type":993,"tag":1034,"props":11415,"children":11416},{"style":1040},[11417],{"type":998,"value":1091},{"type":993,"tag":1034,"props":11419,"children":11420},{"style":1099},[11421],{"type":998,"value":11422}," 0.045",{"type":993,"tag":1034,"props":11424,"children":11425},{"style":1075},[11426],{"type":998,"value":11427},"     # 4.5% annual rate\n",{"type":993,"tag":1034,"props":11429,"children":11430},{"class":1036,"line":721},[11431,11436,11440],{"type":993,"tag":1034,"props":11432,"children":11433},{"style":1046},[11434],{"type":998,"value":11435},"loan_years ",{"type":993,"tag":1034,"props":11437,"children":11438},{"style":1040},[11439],{"type":998,"value":1091},{"type":993,"tag":1034,"props":11441,"children":11442},{"style":1099},[11443],{"type":998,"value":10992},{"type":993,"tag":1034,"props":11445,"children":11446},{"class":1036,"line":730},[11447],{"type":993,"tag":1034,"props":11448,"children":11449},{"emptyLinePlaceholder":13},[11450],{"type":998,"value":1069},{"type":993,"tag":1034,"props":11452,"children":11453},{"class":1036,"line":739},[11454,11459,11463],{"type":993,"tag":1034,"props":11455,"children":11456},{"style":1046},[11457],{"type":998,"value":11458},"monthly_payment ",{"type":993,"tag":1034,"props":11460,"children":11461},{"style":1040},[11462],{"type":998,"value":1091},{"type":993,"tag":1034,"props":11464,"children":11465},{"style":1046},[11466],{"type":998,"value":11467}," calc.loan_payment(loan_amount, loan_rate, loan_years)\n",{"type":993,"tag":1034,"props":11469,"children":11470},{"class":1036,"line":749},[11471,11476,11480,11485,11489,11494,11498],{"type":993,"tag":1034,"props":11472,"children":11473},{"style":1046},[11474],{"type":998,"value":11475},"total_paid ",{"type":993,"tag":1034,"props":11477,"children":11478},{"style":1040},[11479],{"type":998,"value":1091},{"type":993,"tag":1034,"props":11481,"children":11482},{"style":1046},[11483],{"type":998,"value":11484}," monthly_payment ",{"type":993,"tag":1034,"props":11486,"children":11487},{"style":1040},[11488],{"type":998,"value":1913},{"type":993,"tag":1034,"props":11490,"children":11491},{"style":1099},[11492],{"type":998,"value":11493}," 12",{"type":993,"tag":1034,"props":11495,"children":11496},{"style":1040},[11497],{"type":998,"value":3992},{"type":993,"tag":1034,"props":11499,"children":11500},{"style":1046},[11501],{"type":998,"value":11502}," loan_years\n",{"type":993,"tag":1034,"props":11504,"children":11505},{"class":1036,"line":758},[11506,11511,11515,11520,11524],{"type":993,"tag":1034,"props":11507,"children":11508},{"style":1046},[11509],{"type":998,"value":11510},"total_interest ",{"type":993,"tag":1034,"props":11512,"children":11513},{"style":1040},[11514],{"type":998,"value":1091},{"type":993,"tag":1034,"props":11516,"children":11517},{"style":1046},[11518],{"type":998,"value":11519}," total_paid ",{"type":993,"tag":1034,"props":11521,"children":11522},{"style":1040},[11523],{"type":998,"value":1906},{"type":993,"tag":1034,"props":11525,"children":11526},{"style":1046},[11527],{"type":998,"value":11528}," loan_amount\n",{"type":993,"tag":1034,"props":11530,"children":11531},{"class":1036,"line":767},[11532],{"type":993,"tag":1034,"props":11533,"children":11534},{"emptyLinePlaceholder":13},[11535],{"type":998,"value":1069},{"type":993,"tag":1034,"props":11537,"children":11539},{"class":1036,"line":11538},84,[11540,11544,11548,11552,11556,11560,11565],{"type":993,"tag":1034,"props":11541,"children":11542},{"style":1099},[11543],{"type":998,"value":1225},{"type":993,"tag":1034,"props":11545,"children":11546},{"style":1046},[11547],{"type":998,"value":1230},{"type":993,"tag":1034,"props":11549,"children":11550},{"style":1040},[11551],{"type":998,"value":1235},{"type":993,"tag":1034,"props":11553,"children":11554},{"style":1238},[11555],{"type":998,"value":1261},{"type":993,"tag":1034,"props":11557,"children":11558},{"style":1099},[11559],{"type":998,"value":1465},{"type":993,"tag":1034,"props":11561,"children":11562},{"style":1238},[11563],{"type":998,"value":11564},"Home Loan Analysis:\"",{"type":993,"tag":1034,"props":11566,"children":11567},{"style":1046},[11568],{"type":998,"value":1266},{"type":993,"tag":1034,"props":11570,"children":11571},{"class":1036,"line":776},[11572,11576,11580,11584,11589,11593,11598,11602,11606,11610],{"type":993,"tag":1034,"props":11573,"children":11574},{"style":1099},[11575],{"type":998,"value":1225},{"type":993,"tag":1034,"props":11577,"children":11578},{"style":1046},[11579],{"type":998,"value":1230},{"type":993,"tag":1034,"props":11581,"children":11582},{"style":1040},[11583],{"type":998,"value":1235},{"type":993,"tag":1034,"props":11585,"children":11586},{"style":1238},[11587],{"type":998,"value":11588},"\"Loan amount: $",{"type":993,"tag":1034,"props":11590,"children":11591},{"style":1099},[11592],{"type":998,"value":1246},{"type":993,"tag":1034,"props":11594,"children":11595},{"style":1046},[11596],{"type":998,"value":11597},"loan_amount",{"type":993,"tag":1034,"props":11599,"children":11600},{"style":1040},[11601],{"type":998,"value":11129},{"type":993,"tag":1034,"props":11603,"children":11604},{"style":1099},[11605],{"type":998,"value":1256},{"type":993,"tag":1034,"props":11607,"children":11608},{"style":1238},[11609],{"type":998,"value":1261},{"type":993,"tag":1034,"props":11611,"children":11612},{"style":1046},[11613],{"type":998,"value":1266},{"type":993,"tag":1034,"props":11615,"children":11616},{"class":1036,"line":785},[11617,11621,11625,11629,11633,11637,11642,11646,11650,11654],{"type":993,"tag":1034,"props":11618,"children":11619},{"style":1099},[11620],{"type":998,"value":1225},{"type":993,"tag":1034,"props":11622,"children":11623},{"style":1046},[11624],{"type":998,"value":1230},{"type":993,"tag":1034,"props":11626,"children":11627},{"style":1040},[11628],{"type":998,"value":1235},{"type":993,"tag":1034,"props":11630,"children":11631},{"style":1238},[11632],{"type":998,"value":6025},{"type":993,"tag":1034,"props":11634,"children":11635},{"style":1099},[11636],{"type":998,"value":1246},{"type":993,"tag":1034,"props":11638,"children":11639},{"style":1046},[11640],{"type":998,"value":11641},"loan_rate",{"type":993,"tag":1034,"props":11643,"children":11644},{"style":1040},[11645],{"type":998,"value":1913},{"type":993,"tag":1034,"props":11647,"children":11648},{"style":1099},[11649],{"type":998,"value":6043},{"type":993,"tag":1034,"props":11651,"children":11652},{"style":1238},[11653],{"type":998,"value":7658},{"type":993,"tag":1034,"props":11655,"children":11656},{"style":1046},[11657],{"type":998,"value":1266},{"type":993,"tag":1034,"props":11659,"children":11660},{"class":1036,"line":794},[11661,11665,11669,11673,11678,11682,11687,11691,11695],{"type":993,"tag":1034,"props":11662,"children":11663},{"style":1099},[11664],{"type":998,"value":1225},{"type":993,"tag":1034,"props":11666,"children":11667},{"style":1046},[11668],{"type":998,"value":1230},{"type":993,"tag":1034,"props":11670,"children":11671},{"style":1040},[11672],{"type":998,"value":1235},{"type":993,"tag":1034,"props":11674,"children":11675},{"style":1238},[11676],{"type":998,"value":11677},"\"Term: ",{"type":993,"tag":1034,"props":11679,"children":11680},{"style":1099},[11681],{"type":998,"value":1246},{"type":993,"tag":1034,"props":11683,"children":11684},{"style":1046},[11685],{"type":998,"value":11686},"loan_years",{"type":993,"tag":1034,"props":11688,"children":11689},{"style":1099},[11690],{"type":998,"value":1256},{"type":993,"tag":1034,"props":11692,"children":11693},{"style":1238},[11694],{"type":998,"value":6090},{"type":993,"tag":1034,"props":11696,"children":11697},{"style":1046},[11698],{"type":998,"value":1266},{"type":993,"tag":1034,"props":11700,"children":11701},{"class":1036,"line":803},[11702,11706,11710,11714,11719,11723,11728,11732,11736,11740],{"type":993,"tag":1034,"props":11703,"children":11704},{"style":1099},[11705],{"type":998,"value":1225},{"type":993,"tag":1034,"props":11707,"children":11708},{"style":1046},[11709],{"type":998,"value":1230},{"type":993,"tag":1034,"props":11711,"children":11712},{"style":1040},[11713],{"type":998,"value":1235},{"type":993,"tag":1034,"props":11715,"children":11716},{"style":1238},[11717],{"type":998,"value":11718},"\"Monthly payment: $",{"type":993,"tag":1034,"props":11720,"children":11721},{"style":1099},[11722],{"type":998,"value":1246},{"type":993,"tag":1034,"props":11724,"children":11725},{"style":1046},[11726],{"type":998,"value":11727},"monthly_payment",{"type":993,"tag":1034,"props":11729,"children":11730},{"style":1040},[11731],{"type":998,"value":11129},{"type":993,"tag":1034,"props":11733,"children":11734},{"style":1099},[11735],{"type":998,"value":1256},{"type":993,"tag":1034,"props":11737,"children":11738},{"style":1238},[11739],{"type":998,"value":1261},{"type":993,"tag":1034,"props":11741,"children":11742},{"style":1046},[11743],{"type":998,"value":1266},{"type":993,"tag":1034,"props":11745,"children":11746},{"class":1036,"line":812},[11747,11751,11755,11759,11763,11767,11772,11776,11780,11784],{"type":993,"tag":1034,"props":11748,"children":11749},{"style":1099},[11750],{"type":998,"value":1225},{"type":993,"tag":1034,"props":11752,"children":11753},{"style":1046},[11754],{"type":998,"value":1230},{"type":993,"tag":1034,"props":11756,"children":11757},{"style":1040},[11758],{"type":998,"value":1235},{"type":993,"tag":1034,"props":11760,"children":11761},{"style":1238},[11762],{"type":998,"value":6159},{"type":993,"tag":1034,"props":11764,"children":11765},{"style":1099},[11766],{"type":998,"value":1246},{"type":993,"tag":1034,"props":11768,"children":11769},{"style":1046},[11770],{"type":998,"value":11771},"total_interest",{"type":993,"tag":1034,"props":11773,"children":11774},{"style":1040},[11775],{"type":998,"value":11129},{"type":993,"tag":1034,"props":11777,"children":11778},{"style":1099},[11779],{"type":998,"value":1256},{"type":993,"tag":1034,"props":11781,"children":11782},{"style":1238},[11783],{"type":998,"value":1261},{"type":993,"tag":1034,"props":11785,"children":11786},{"style":1046},[11787],{"type":998,"value":1266},{"type":993,"tag":1034,"props":11789,"children":11790},{"class":1036,"line":822},[11791],{"type":993,"tag":1034,"props":11792,"children":11793},{"emptyLinePlaceholder":13},[11794],{"type":998,"value":1069},{"type":993,"tag":1034,"props":11796,"children":11797},{"class":1036,"line":831},[11798],{"type":993,"tag":1034,"props":11799,"children":11800},{"style":1075},[11801],{"type":998,"value":11802},"# Retirement planning\n",{"type":993,"tag":1034,"props":11804,"children":11805},{"class":1036,"line":840},[11806,11811,11815],{"type":993,"tag":1034,"props":11807,"children":11808},{"style":1046},[11809],{"type":998,"value":11810},"retirement_fund ",{"type":993,"tag":1034,"props":11812,"children":11813},{"style":1040},[11814],{"type":998,"value":1091},{"type":993,"tag":1034,"props":11816,"children":11817},{"style":1046},[11818],{"type":998,"value":11819}," calc.retirement_planning(\n",{"type":993,"tag":1034,"props":11821,"children":11822},{"class":1036,"line":849},[11823,11828,11832,11836],{"type":993,"tag":1034,"props":11824,"children":11825},{"style":7218},[11826],{"type":998,"value":11827},"    current_age",{"type":993,"tag":1034,"props":11829,"children":11830},{"style":1040},[11831],{"type":998,"value":1091},{"type":993,"tag":1034,"props":11833,"children":11834},{"style":1099},[11835],{"type":998,"value":1139},{"type":993,"tag":1034,"props":11837,"children":11838},{"style":1046},[11839],{"type":998,"value":11840},",\n",{"type":993,"tag":1034,"props":11842,"children":11843},{"class":1036,"line":858},[11844,11849,11853,11857],{"type":993,"tag":1034,"props":11845,"children":11846},{"style":7218},[11847],{"type":998,"value":11848},"    retirement_age",{"type":993,"tag":1034,"props":11850,"children":11851},{"style":1040},[11852],{"type":998,"value":1091},{"type":993,"tag":1034,"props":11854,"children":11855},{"style":1099},[11856],{"type":998,"value":9034},{"type":993,"tag":1034,"props":11858,"children":11859},{"style":1046},[11860],{"type":998,"value":11840},{"type":993,"tag":1034,"props":11862,"children":11863},{"class":1036,"line":868},[11864,11869,11873,11878],{"type":993,"tag":1034,"props":11865,"children":11866},{"style":7218},[11867],{"type":998,"value":11868},"    current_savings",{"type":993,"tag":1034,"props":11870,"children":11871},{"style":1040},[11872],{"type":998,"value":1091},{"type":993,"tag":1034,"props":11874,"children":11875},{"style":1099},[11876],{"type":998,"value":11877},"25000",{"type":993,"tag":1034,"props":11879,"children":11880},{"style":1046},[11881],{"type":998,"value":11840},{"type":993,"tag":1034,"props":11883,"children":11884},{"class":1036,"line":877},[11885,11890,11894,11898],{"type":993,"tag":1034,"props":11886,"children":11887},{"style":7218},[11888],{"type":998,"value":11889},"    monthly_contribution",{"type":993,"tag":1034,"props":11891,"children":11892},{"style":1040},[11893],{"type":998,"value":1091},{"type":993,"tag":1034,"props":11895,"children":11896},{"style":1099},[11897],{"type":998,"value":5259},{"type":993,"tag":1034,"props":11899,"children":11900},{"style":1046},[11901],{"type":998,"value":11840},{"type":993,"tag":1034,"props":11903,"children":11904},{"class":1036,"line":886},[11905,11910,11914],{"type":993,"tag":1034,"props":11906,"children":11907},{"style":7218},[11908],{"type":998,"value":11909},"    annual_return",{"type":993,"tag":1034,"props":11911,"children":11912},{"style":1040},[11913],{"type":998,"value":1091},{"type":993,"tag":1034,"props":11915,"children":11916},{"style":1099},[11917],{"type":998,"value":11918},"0.08\n",{"type":993,"tag":1034,"props":11920,"children":11921},{"class":1036,"line":895},[11922],{"type":993,"tag":1034,"props":11923,"children":11924},{"style":1046},[11925],{"type":998,"value":1266},{"type":993,"tag":1034,"props":11927,"children":11928},{"class":1036,"line":905},[11929],{"type":993,"tag":1034,"props":11930,"children":11931},{"emptyLinePlaceholder":13},[11932],{"type":998,"value":1069},{"type":993,"tag":1034,"props":11934,"children":11935},{"class":1036,"line":914},[11936,11940,11944,11948,11952,11956,11961],{"type":993,"tag":1034,"props":11937,"children":11938},{"style":1099},[11939],{"type":998,"value":1225},{"type":993,"tag":1034,"props":11941,"children":11942},{"style":1046},[11943],{"type":998,"value":1230},{"type":993,"tag":1034,"props":11945,"children":11946},{"style":1040},[11947],{"type":998,"value":1235},{"type":993,"tag":1034,"props":11949,"children":11950},{"style":1238},[11951],{"type":998,"value":1261},{"type":993,"tag":1034,"props":11953,"children":11954},{"style":1099},[11955],{"type":998,"value":1465},{"type":993,"tag":1034,"props":11957,"children":11958},{"style":1238},[11959],{"type":998,"value":11960},"Retirement Planning:\"",{"type":993,"tag":1034,"props":11962,"children":11963},{"style":1046},[11964],{"type":998,"value":1266},{"type":993,"tag":1034,"props":11966,"children":11967},{"class":1036,"line":923},[11968,11972,11976,11980,11985,11990,11994,11998,12002],{"type":993,"tag":1034,"props":11969,"children":11970},{"style":1099},[11971],{"type":998,"value":1225},{"type":993,"tag":1034,"props":11973,"children":11974},{"style":1046},[11975],{"type":998,"value":1230},{"type":993,"tag":1034,"props":11977,"children":11978},{"style":1040},[11979],{"type":998,"value":1235},{"type":993,"tag":1034,"props":11981,"children":11982},{"style":1238},[11983],{"type":998,"value":11984},"\"Starting at age 30 with $",{"type":993,"tag":1034,"props":11986,"children":11987},{"style":1099},[11988],{"type":998,"value":11989},"{25000",{"type":993,"tag":1034,"props":11991,"children":11992},{"style":1040},[11993],{"type":998,"value":11129},{"type":993,"tag":1034,"props":11995,"children":11996},{"style":1099},[11997],{"type":998,"value":1256},{"type":993,"tag":1034,"props":11999,"children":12000},{"style":1238},[12001],{"type":998,"value":1261},{"type":993,"tag":1034,"props":12003,"children":12004},{"style":1046},[12005],{"type":998,"value":1266},{"type":993,"tag":1034,"props":12007,"children":12008},{"class":1036,"line":932},[12009,12013,12017,12021,12026,12031,12035,12039,12044],{"type":993,"tag":1034,"props":12010,"children":12011},{"style":1099},[12012],{"type":998,"value":1225},{"type":993,"tag":1034,"props":12014,"children":12015},{"style":1046},[12016],{"type":998,"value":1230},{"type":993,"tag":1034,"props":12018,"children":12019},{"style":1040},[12020],{"type":998,"value":1235},{"type":993,"tag":1034,"props":12022,"children":12023},{"style":1238},[12024],{"type":998,"value":12025},"\"Contributing $",{"type":993,"tag":1034,"props":12027,"children":12028},{"style":1099},[12029],{"type":998,"value":12030},"{1000",{"type":993,"tag":1034,"props":12032,"children":12033},{"style":1040},[12034],{"type":998,"value":11129},{"type":993,"tag":1034,"props":12036,"children":12037},{"style":1099},[12038],{"type":998,"value":1256},{"type":993,"tag":1034,"props":12040,"children":12041},{"style":1238},[12042],{"type":998,"value":12043},"/month until age 65\"",{"type":993,"tag":1034,"props":12045,"children":12046},{"style":1046},[12047],{"type":998,"value":1266},{"type":993,"tag":1034,"props":12049,"children":12050},{"class":1036,"line":941},[12051,12055,12059,12063,12068],{"type":993,"tag":1034,"props":12052,"children":12053},{"style":1099},[12054],{"type":998,"value":1225},{"type":993,"tag":1034,"props":12056,"children":12057},{"style":1046},[12058],{"type":998,"value":1230},{"type":993,"tag":1034,"props":12060,"children":12061},{"style":1040},[12062],{"type":998,"value":1235},{"type":993,"tag":1034,"props":12064,"children":12065},{"style":1238},[12066],{"type":998,"value":12067},"\"Expected 8% annual return\"",{"type":993,"tag":1034,"props":12069,"children":12070},{"style":1046},[12071],{"type":998,"value":1266},{"type":993,"tag":1034,"props":12073,"children":12074},{"class":1036,"line":949},[12075,12079,12083,12087,12092,12096,12101,12105,12109,12113],{"type":993,"tag":1034,"props":12076,"children":12077},{"style":1099},[12078],{"type":998,"value":1225},{"type":993,"tag":1034,"props":12080,"children":12081},{"style":1046},[12082],{"type":998,"value":1230},{"type":993,"tag":1034,"props":12084,"children":12085},{"style":1040},[12086],{"type":998,"value":1235},{"type":993,"tag":1034,"props":12088,"children":12089},{"style":1238},[12090],{"type":998,"value":12091},"\"Projected retirement fund: $",{"type":993,"tag":1034,"props":12093,"children":12094},{"style":1099},[12095],{"type":998,"value":1246},{"type":993,"tag":1034,"props":12097,"children":12098},{"style":1046},[12099],{"type":998,"value":12100},"retirement_fund",{"type":993,"tag":1034,"props":12102,"children":12103},{"style":1040},[12104],{"type":998,"value":11129},{"type":993,"tag":1034,"props":12106,"children":12107},{"style":1099},[12108],{"type":998,"value":1256},{"type":993,"tag":1034,"props":12110,"children":12111},{"style":1238},[12112],{"type":998,"value":1261},{"type":993,"tag":1034,"props":12114,"children":12115},{"style":1046},[12116],{"type":998,"value":1266},{"type":993,"tag":1869,"props":12118,"children":12122},{"emoji":12119,"title":12120,"type":12121},"✅","Best Practices","success",[12123,12131,12154,12162,12191,12199],{"type":993,"tag":1001,"props":12124,"children":12125},{},[12126],{"type":993,"tag":1879,"props":12127,"children":12128},{},[12129],{"type":998,"value":12130},"Mathematical Computing Guidelines:",{"type":993,"tag":1885,"props":12132,"children":12133},{},[12134,12139,12144,12149],{"type":993,"tag":1889,"props":12135,"children":12136},{},[12137],{"type":998,"value":12138},"Use appropriate precision for your calculations (consider rounding errors)",{"type":993,"tag":1889,"props":12140,"children":12141},{},[12142],{"type":998,"value":12143},"Handle edge cases like division by zero and domain errors",{"type":993,"tag":1889,"props":12145,"children":12146},{},[12147],{"type":998,"value":12148},"Choose the right mathematical approach for your problem domain",{"type":993,"tag":1889,"props":12150,"children":12151},{},[12152],{"type":998,"value":12153},"Validate input data before performing calculations",{"type":993,"tag":1001,"props":12155,"children":12156},{},[12157],{"type":993,"tag":1879,"props":12158,"children":12159},{},[12160],{"type":998,"value":12161},"Common Patterns:",{"type":993,"tag":1885,"props":12163,"children":12164},{},[12165,12170,12181,12186],{"type":993,"tag":1889,"props":12166,"children":12167},{},[12168],{"type":998,"value":12169},"Use math.isclose() for floating-point comparisons",{"type":993,"tag":1889,"props":12171,"children":12172},{},[12173,12175],{"type":998,"value":12174},"Import specific functions for better performance: ",{"type":993,"tag":1007,"props":12176,"children":12178},{"className":12177},[],[12179],{"type":998,"value":12180},"from math import sqrt, sin, cos",{"type":993,"tag":1889,"props":12182,"children":12183},{},[12184],{"type":998,"value":12185},"Use statistics module for data analysis tasks",{"type":993,"tag":1889,"props":12187,"children":12188},{},[12189],{"type":998,"value":12190},"Consider numpy for large-scale numerical computing",{"type":993,"tag":1001,"props":12192,"children":12193},{},[12194],{"type":993,"tag":1879,"props":12195,"children":12196},{},[12197],{"type":998,"value":12198},"Performance Tips:",{"type":993,"tag":1885,"props":12200,"children":12201},{},[12202,12207,12212,12217],{"type":993,"tag":1889,"props":12203,"children":12204},{},[12205],{"type":998,"value":12206},"Cache expensive calculations when possible",{"type":993,"tag":1889,"props":12208,"children":12209},{},[12210],{"type":998,"value":12211},"Use built-in functions rather than implementing your own",{"type":993,"tag":1889,"props":12213,"children":12214},{},[12215],{"type":998,"value":12216},"Consider using decimal module for financial calculations requiring exact precision",{"type":993,"tag":1889,"props":12218,"children":12219},{},[12220],{"type":998,"value":12221},"Profile mathematical operations in performance-critical applications",{"type":993,"tag":12223,"props":12224,"children":12226},"content-exercise",{":widget-view":12225,"category":6,"id":757},"true",[],{"type":993,"tag":12228,"props":12229,"children":12232},"exercise",{"hint":12230,"prompt":12231},"Use sum() and len() to calculate average, round() to format results, and if/elif statements for grade assignment","Create a simple grade calculator that calculates the average of test scores and determines the letter grade. Use mathematical operations to find the mean, round to appropriate decimal places, and assign letter grades based on score ranges.",[12233],{"type":993,"tag":1025,"props":12234,"children":12236},{"className":1027,"code":12235,"language":6,"meta":8,"style":8},"import math\n\ndef calculate_grade_info(test_scores):\n    # TODO: Calculate the average score\n    # TODO: Round to 2 decimal places\n    # TODO: Determine letter grade based on average\n    # TODO: Find highest and lowest scores\n    # TODO: Calculate the standard deviation (optional)\n    # TODO: Return all information\n    pass\n\ndef assign_letter_grade(average):\n    # TODO: Assign letter grade based on score ranges\n    # A: 90-100, B: 80-89, C: 70-79, D: 60-69, F: below 60\n    pass\n\n# TODO: Test with sample scores\ntest_scores = [85, 92, 78, 96, 88, 91, 82]\n\nresult = calculate_grade_info(test_scores)\nprint(f\"Test scores: {test_scores}\")\nprint(f\"Average: {result['average']}\")\nprint(f\"Letter grade: {result['letter_grade']}\")\nprint(f\"Highest score: {result['highest']}\")\nprint(f\"Lowest score: {result['lowest']}\")\n",[12237],{"type":993,"tag":1007,"props":12238,"children":12239},{"__ignoreMap":8},[12240,12251,12258,12275,12293,12309,12325,12341,12357,12373,12381,12388,12405,12421,12429,12436,12443,12460,12531,12538,12555,12595,12645,12694,12743],{"type":993,"tag":1034,"props":12241,"children":12242},{"class":1036,"line":12},[12243,12247],{"type":993,"tag":1034,"props":12244,"children":12245},{"style":1040},[12246],{"type":998,"value":1043},{"type":993,"tag":1034,"props":12248,"children":12249},{"style":1046},[12250],{"type":998,"value":1049},{"type":993,"tag":1034,"props":12252,"children":12253},{"class":1036,"line":27},[12254],{"type":993,"tag":1034,"props":12255,"children":12256},{"emptyLinePlaceholder":13},[12257],{"type":998,"value":1069},{"type":993,"tag":1034,"props":12259,"children":12260},{"class":1036,"line":36},[12261,12265,12270],{"type":993,"tag":1034,"props":12262,"children":12263},{"style":1040},[12264],{"type":998,"value":3762},{"type":993,"tag":1034,"props":12266,"children":12267},{"style":3765},[12268],{"type":998,"value":12269}," calculate_grade_info",{"type":993,"tag":1034,"props":12271,"children":12272},{"style":1046},[12273],{"type":998,"value":12274},"(test_scores):\n",{"type":993,"tag":1034,"props":12276,"children":12277},{"class":1036,"line":45},[12278,12283,12288],{"type":993,"tag":1034,"props":12279,"children":12280},{"style":1075},[12281],{"type":998,"value":12282},"    # ",{"type":993,"tag":1034,"props":12284,"children":12285},{"style":1040},[12286],{"type":998,"value":12287},"TODO",{"type":993,"tag":1034,"props":12289,"children":12290},{"style":1075},[12291],{"type":998,"value":12292},": Calculate the average score\n",{"type":993,"tag":1034,"props":12294,"children":12295},{"class":1036,"line":54},[12296,12300,12304],{"type":993,"tag":1034,"props":12297,"children":12298},{"style":1075},[12299],{"type":998,"value":12282},{"type":993,"tag":1034,"props":12301,"children":12302},{"style":1040},[12303],{"type":998,"value":12287},{"type":993,"tag":1034,"props":12305,"children":12306},{"style":1075},[12307],{"type":998,"value":12308},": Round to 2 decimal places\n",{"type":993,"tag":1034,"props":12310,"children":12311},{"class":1036,"line":63},[12312,12316,12320],{"type":993,"tag":1034,"props":12313,"children":12314},{"style":1075},[12315],{"type":998,"value":12282},{"type":993,"tag":1034,"props":12317,"children":12318},{"style":1040},[12319],{"type":998,"value":12287},{"type":993,"tag":1034,"props":12321,"children":12322},{"style":1075},[12323],{"type":998,"value":12324},": Determine letter grade based on average\n",{"type":993,"tag":1034,"props":12326,"children":12327},{"class":1036,"line":72},[12328,12332,12336],{"type":993,"tag":1034,"props":12329,"children":12330},{"style":1075},[12331],{"type":998,"value":12282},{"type":993,"tag":1034,"props":12333,"children":12334},{"style":1040},[12335],{"type":998,"value":12287},{"type":993,"tag":1034,"props":12337,"children":12338},{"style":1075},[12339],{"type":998,"value":12340},": Find highest and lowest scores\n",{"type":993,"tag":1034,"props":12342,"children":12343},{"class":1036,"line":81},[12344,12348,12352],{"type":993,"tag":1034,"props":12345,"children":12346},{"style":1075},[12347],{"type":998,"value":12282},{"type":993,"tag":1034,"props":12349,"children":12350},{"style":1040},[12351],{"type":998,"value":12287},{"type":993,"tag":1034,"props":12353,"children":12354},{"style":1075},[12355],{"type":998,"value":12356},": Calculate the standard deviation (optional)\n",{"type":993,"tag":1034,"props":12358,"children":12359},{"class":1036,"line":91},[12360,12364,12368],{"type":993,"tag":1034,"props":12361,"children":12362},{"style":1075},[12363],{"type":998,"value":12282},{"type":993,"tag":1034,"props":12365,"children":12366},{"style":1040},[12367],{"type":998,"value":12287},{"type":993,"tag":1034,"props":12369,"children":12370},{"style":1075},[12371],{"type":998,"value":12372},": Return all information\n",{"type":993,"tag":1034,"props":12374,"children":12375},{"class":1036,"line":100},[12376],{"type":993,"tag":1034,"props":12377,"children":12378},{"style":1040},[12379],{"type":998,"value":12380},"    pass\n",{"type":993,"tag":1034,"props":12382,"children":12383},{"class":1036,"line":109},[12384],{"type":993,"tag":1034,"props":12385,"children":12386},{"emptyLinePlaceholder":13},[12387],{"type":998,"value":1069},{"type":993,"tag":1034,"props":12389,"children":12390},{"class":1036,"line":118},[12391,12395,12400],{"type":993,"tag":1034,"props":12392,"children":12393},{"style":1040},[12394],{"type":998,"value":3762},{"type":993,"tag":1034,"props":12396,"children":12397},{"style":3765},[12398],{"type":998,"value":12399}," assign_letter_grade",{"type":993,"tag":1034,"props":12401,"children":12402},{"style":1046},[12403],{"type":998,"value":12404},"(average):\n",{"type":993,"tag":1034,"props":12406,"children":12407},{"class":1036,"line":127},[12408,12412,12416],{"type":993,"tag":1034,"props":12409,"children":12410},{"style":1075},[12411],{"type":998,"value":12282},{"type":993,"tag":1034,"props":12413,"children":12414},{"style":1040},[12415],{"type":998,"value":12287},{"type":993,"tag":1034,"props":12417,"children":12418},{"style":1075},[12419],{"type":998,"value":12420},": Assign letter grade based on score ranges\n",{"type":993,"tag":1034,"props":12422,"children":12423},{"class":1036,"line":136},[12424],{"type":993,"tag":1034,"props":12425,"children":12426},{"style":1075},[12427],{"type":998,"value":12428},"    # A: 90-100, B: 80-89, C: 70-79, D: 60-69, F: below 60\n",{"type":993,"tag":1034,"props":12430,"children":12431},{"class":1036,"line":146},[12432],{"type":993,"tag":1034,"props":12433,"children":12434},{"style":1040},[12435],{"type":998,"value":12380},{"type":993,"tag":1034,"props":12437,"children":12438},{"class":1036,"line":155},[12439],{"type":993,"tag":1034,"props":12440,"children":12441},{"emptyLinePlaceholder":13},[12442],{"type":998,"value":1069},{"type":993,"tag":1034,"props":12444,"children":12445},{"class":1036,"line":164},[12446,12451,12455],{"type":993,"tag":1034,"props":12447,"children":12448},{"style":1075},[12449],{"type":998,"value":12450},"# ",{"type":993,"tag":1034,"props":12452,"children":12453},{"style":1040},[12454],{"type":998,"value":12287},{"type":993,"tag":1034,"props":12456,"children":12457},{"style":1075},[12458],{"type":998,"value":12459},": Test with sample scores\n",{"type":993,"tag":1034,"props":12461,"children":12462},{"class":1036,"line":173},[12463,12467,12471,12475,12479,12483,12487,12491,12495,12499,12503,12507,12511,12515,12519,12523,12527],{"type":993,"tag":1034,"props":12464,"children":12465},{"style":1046},[12466],{"type":998,"value":6547},{"type":993,"tag":1034,"props":12468,"children":12469},{"style":1040},[12470],{"type":998,"value":1091},{"type":993,"tag":1034,"props":12472,"children":12473},{"style":1046},[12474],{"type":998,"value":1096},{"type":993,"tag":1034,"props":12476,"children":12477},{"style":1099},[12478],{"type":998,"value":6560},{"type":993,"tag":1034,"props":12480,"children":12481},{"style":1046},[12482],{"type":998,"value":1107},{"type":993,"tag":1034,"props":12484,"children":12485},{"style":1099},[12486],{"type":998,"value":6569},{"type":993,"tag":1034,"props":12488,"children":12489},{"style":1046},[12490],{"type":998,"value":1107},{"type":993,"tag":1034,"props":12492,"children":12493},{"style":1099},[12494],{"type":998,"value":6578},{"type":993,"tag":1034,"props":12496,"children":12497},{"style":1046},[12498],{"type":998,"value":1107},{"type":993,"tag":1034,"props":12500,"children":12501},{"style":1099},[12502],{"type":998,"value":6587},{"type":993,"tag":1034,"props":12504,"children":12505},{"style":1046},[12506],{"type":998,"value":1107},{"type":993,"tag":1034,"props":12508,"children":12509},{"style":1099},[12510],{"type":998,"value":6596},{"type":993,"tag":1034,"props":12512,"children":12513},{"style":1046},[12514],{"type":998,"value":1107},{"type":993,"tag":1034,"props":12516,"children":12517},{"style":1099},[12518],{"type":998,"value":6614},{"type":993,"tag":1034,"props":12520,"children":12521},{"style":1046},[12522],{"type":998,"value":1107},{"type":993,"tag":1034,"props":12524,"children":12525},{"style":1099},[12526],{"type":998,"value":6650},{"type":993,"tag":1034,"props":12528,"children":12529},{"style":1046},[12530],{"type":998,"value":1144},{"type":993,"tag":1034,"props":12532,"children":12533},{"class":1036,"line":182},[12534],{"type":993,"tag":1034,"props":12535,"children":12536},{"emptyLinePlaceholder":13},[12537],{"type":998,"value":1069},{"type":993,"tag":1034,"props":12539,"children":12540},{"class":1036,"line":191},[12541,12546,12550],{"type":993,"tag":1034,"props":12542,"children":12543},{"style":1046},[12544],{"type":998,"value":12545},"result ",{"type":993,"tag":1034,"props":12547,"children":12548},{"style":1040},[12549],{"type":998,"value":1091},{"type":993,"tag":1034,"props":12551,"children":12552},{"style":1046},[12553],{"type":998,"value":12554}," calculate_grade_info(test_scores)\n",{"type":993,"tag":1034,"props":12556,"children":12557},{"class":1036,"line":201},[12558,12562,12566,12570,12575,12579,12583,12587,12591],{"type":993,"tag":1034,"props":12559,"children":12560},{"style":1099},[12561],{"type":998,"value":1225},{"type":993,"tag":1034,"props":12563,"children":12564},{"style":1046},[12565],{"type":998,"value":1230},{"type":993,"tag":1034,"props":12567,"children":12568},{"style":1040},[12569],{"type":998,"value":1235},{"type":993,"tag":1034,"props":12571,"children":12572},{"style":1238},[12573],{"type":998,"value":12574},"\"Test scores: ",{"type":993,"tag":1034,"props":12576,"children":12577},{"style":1099},[12578],{"type":998,"value":1246},{"type":993,"tag":1034,"props":12580,"children":12581},{"style":1046},[12582],{"type":998,"value":6823},{"type":993,"tag":1034,"props":12584,"children":12585},{"style":1099},[12586],{"type":998,"value":1256},{"type":993,"tag":1034,"props":12588,"children":12589},{"style":1238},[12590],{"type":998,"value":1261},{"type":993,"tag":1034,"props":12592,"children":12593},{"style":1046},[12594],{"type":998,"value":1266},{"type":993,"tag":1034,"props":12596,"children":12597},{"class":1036,"line":210},[12598,12602,12606,12610,12615,12619,12624,12629,12633,12637,12641],{"type":993,"tag":1034,"props":12599,"children":12600},{"style":1099},[12601],{"type":998,"value":1225},{"type":993,"tag":1034,"props":12603,"children":12604},{"style":1046},[12605],{"type":998,"value":1230},{"type":993,"tag":1034,"props":12607,"children":12608},{"style":1040},[12609],{"type":998,"value":1235},{"type":993,"tag":1034,"props":12611,"children":12612},{"style":1238},[12613],{"type":998,"value":12614},"\"Average: ",{"type":993,"tag":1034,"props":12616,"children":12617},{"style":1099},[12618],{"type":998,"value":1246},{"type":993,"tag":1034,"props":12620,"children":12621},{"style":1046},[12622],{"type":998,"value":12623},"result[",{"type":993,"tag":1034,"props":12625,"children":12626},{"style":1238},[12627],{"type":998,"value":12628},"'average'",{"type":993,"tag":1034,"props":12630,"children":12631},{"style":1046},[12632],{"type":998,"value":7271},{"type":993,"tag":1034,"props":12634,"children":12635},{"style":1099},[12636],{"type":998,"value":1256},{"type":993,"tag":1034,"props":12638,"children":12639},{"style":1238},[12640],{"type":998,"value":1261},{"type":993,"tag":1034,"props":12642,"children":12643},{"style":1046},[12644],{"type":998,"value":1266},{"type":993,"tag":1034,"props":12646,"children":12647},{"class":1036,"line":219},[12648,12652,12656,12660,12665,12669,12673,12678,12682,12686,12690],{"type":993,"tag":1034,"props":12649,"children":12650},{"style":1099},[12651],{"type":998,"value":1225},{"type":993,"tag":1034,"props":12653,"children":12654},{"style":1046},[12655],{"type":998,"value":1230},{"type":993,"tag":1034,"props":12657,"children":12658},{"style":1040},[12659],{"type":998,"value":1235},{"type":993,"tag":1034,"props":12661,"children":12662},{"style":1238},[12663],{"type":998,"value":12664},"\"Letter grade: ",{"type":993,"tag":1034,"props":12666,"children":12667},{"style":1099},[12668],{"type":998,"value":1246},{"type":993,"tag":1034,"props":12670,"children":12671},{"style":1046},[12672],{"type":998,"value":12623},{"type":993,"tag":1034,"props":12674,"children":12675},{"style":1238},[12676],{"type":998,"value":12677},"'letter_grade'",{"type":993,"tag":1034,"props":12679,"children":12680},{"style":1046},[12681],{"type":998,"value":7271},{"type":993,"tag":1034,"props":12683,"children":12684},{"style":1099},[12685],{"type":998,"value":1256},{"type":993,"tag":1034,"props":12687,"children":12688},{"style":1238},[12689],{"type":998,"value":1261},{"type":993,"tag":1034,"props":12691,"children":12692},{"style":1046},[12693],{"type":998,"value":1266},{"type":993,"tag":1034,"props":12695,"children":12696},{"class":1036,"line":228},[12697,12701,12705,12709,12714,12718,12722,12727,12731,12735,12739],{"type":993,"tag":1034,"props":12698,"children":12699},{"style":1099},[12700],{"type":998,"value":1225},{"type":993,"tag":1034,"props":12702,"children":12703},{"style":1046},[12704],{"type":998,"value":1230},{"type":993,"tag":1034,"props":12706,"children":12707},{"style":1040},[12708],{"type":998,"value":1235},{"type":993,"tag":1034,"props":12710,"children":12711},{"style":1238},[12712],{"type":998,"value":12713},"\"Highest score: ",{"type":993,"tag":1034,"props":12715,"children":12716},{"style":1099},[12717],{"type":998,"value":1246},{"type":993,"tag":1034,"props":12719,"children":12720},{"style":1046},[12721],{"type":998,"value":12623},{"type":993,"tag":1034,"props":12723,"children":12724},{"style":1238},[12725],{"type":998,"value":12726},"'highest'",{"type":993,"tag":1034,"props":12728,"children":12729},{"style":1046},[12730],{"type":998,"value":7271},{"type":993,"tag":1034,"props":12732,"children":12733},{"style":1099},[12734],{"type":998,"value":1256},{"type":993,"tag":1034,"props":12736,"children":12737},{"style":1238},[12738],{"type":998,"value":1261},{"type":993,"tag":1034,"props":12740,"children":12741},{"style":1046},[12742],{"type":998,"value":1266},{"type":993,"tag":1034,"props":12744,"children":12745},{"class":1036,"line":238},[12746,12750,12754,12758,12763,12767,12771,12776,12780,12784,12788],{"type":993,"tag":1034,"props":12747,"children":12748},{"style":1099},[12749],{"type":998,"value":1225},{"type":993,"tag":1034,"props":12751,"children":12752},{"style":1046},[12753],{"type":998,"value":1230},{"type":993,"tag":1034,"props":12755,"children":12756},{"style":1040},[12757],{"type":998,"value":1235},{"type":993,"tag":1034,"props":12759,"children":12760},{"style":1238},[12761],{"type":998,"value":12762},"\"Lowest score: ",{"type":993,"tag":1034,"props":12764,"children":12765},{"style":1099},[12766],{"type":998,"value":1246},{"type":993,"tag":1034,"props":12768,"children":12769},{"style":1046},[12770],{"type":998,"value":12623},{"type":993,"tag":1034,"props":12772,"children":12773},{"style":1238},[12774],{"type":998,"value":12775},"'lowest'",{"type":993,"tag":1034,"props":12777,"children":12778},{"style":1046},[12779],{"type":998,"value":7271},{"type":993,"tag":1034,"props":12781,"children":12782},{"style":1099},[12783],{"type":998,"value":1256},{"type":993,"tag":1034,"props":12785,"children":12786},{"style":1238},[12787],{"type":998,"value":1261},{"type":993,"tag":1034,"props":12789,"children":12790},{"style":1046},[12791],{"type":998,"value":1266},{"type":993,"tag":2383,"props":12793,"children":12795},{"id":12794},"solution-and-explanation",[12796],{"type":998,"value":12797},"Solution and Explanation 💡",{"type":993,"tag":12799,"props":12800,"children":12801},"details",{},[12802,12810,13836,13844],{"type":993,"tag":12803,"props":12804,"children":12807},"summary",{"className":12805},[12806],"cursor-pointer",[12808],{"type":998,"value":12809},"Click to see the complete solution",{"type":993,"tag":1021,"props":12811,"children":12812},{},[12813],{"type":993,"tag":1025,"props":12814,"children":12816},{"className":1027,"code":12815,"language":6,"meta":8,"style":8},"import math\n\ndef calculate_grade_info(test_scores):\n    # Calculate the average score\n    average = sum(test_scores) / len(test_scores)\n    \n    # Round to 2 decimal places\n    average = round(average, 2)\n    \n    # Determine letter grade based on average\n    letter_grade = assign_letter_grade(average)\n    \n    # Find highest and lowest scores\n    highest = max(test_scores)\n    lowest = min(test_scores)\n    \n    # Calculate the standard deviation (bonus)\n    mean = average\n    variance = sum((score - mean) ** 2 for score in test_scores) / len(test_scores)\n    std_deviation = round(math.sqrt(variance), 2)\n    \n    # Return all information\n    return {\n        'average': average,\n        'letter_grade': letter_grade,\n        'highest': highest,\n        'lowest': lowest,\n        'std_deviation': std_deviation\n    }\n\ndef assign_letter_grade(average):\n    # Assign letter grade based on score ranges\n    if average >= 90:\n        return 'A'\n    elif average >= 80:\n        return 'B'\n    elif average >= 70:\n        return 'C'\n    elif average >= 60:\n        return 'D'\n    else:\n        return 'F'\n\n# Test with sample scores\ntest_scores = [85, 92, 78, 96, 88, 91, 82]\n\nresult = calculate_grade_info(test_scores)\nprint(f\"Test scores: {test_scores}\")\nprint(f\"Average: {result['average']}\")\nprint(f\"Letter grade: {result['letter_grade']}\")\nprint(f\"Highest score: {result['highest']}\")\nprint(f\"Lowest score: {result['lowest']}\")\nprint(f\"Standard deviation: {result['std_deviation']}\")\n",[12817],{"type":993,"tag":1007,"props":12818,"children":12819},{"__ignoreMap":8},[12820,12831,12838,12853,12861,12894,12901,12909,12937,12944,12952,12969,12976,12984,13005,13025,13032,13040,13056,13123,13152,13159,13167,13179,13192,13205,13218,13231,13244,13252,13259,13274,13282,13308,13320,13345,13357,13381,13393,13417,13429,13440,13452,13459,13467,13538,13545,13560,13599,13646,13693,13740,13787],{"type":993,"tag":1034,"props":12821,"children":12822},{"class":1036,"line":12},[12823,12827],{"type":993,"tag":1034,"props":12824,"children":12825},{"style":1040},[12826],{"type":998,"value":1043},{"type":993,"tag":1034,"props":12828,"children":12829},{"style":1046},[12830],{"type":998,"value":1049},{"type":993,"tag":1034,"props":12832,"children":12833},{"class":1036,"line":27},[12834],{"type":993,"tag":1034,"props":12835,"children":12836},{"emptyLinePlaceholder":13},[12837],{"type":998,"value":1069},{"type":993,"tag":1034,"props":12839,"children":12840},{"class":1036,"line":36},[12841,12845,12849],{"type":993,"tag":1034,"props":12842,"children":12843},{"style":1040},[12844],{"type":998,"value":3762},{"type":993,"tag":1034,"props":12846,"children":12847},{"style":3765},[12848],{"type":998,"value":12269},{"type":993,"tag":1034,"props":12850,"children":12851},{"style":1046},[12852],{"type":998,"value":12274},{"type":993,"tag":1034,"props":12854,"children":12855},{"class":1036,"line":45},[12856],{"type":993,"tag":1034,"props":12857,"children":12858},{"style":1075},[12859],{"type":998,"value":12860},"    # Calculate the average score\n",{"type":993,"tag":1034,"props":12862,"children":12863},{"class":1036,"line":54},[12864,12869,12873,12877,12881,12885,12889],{"type":993,"tag":1034,"props":12865,"children":12866},{"style":1046},[12867],{"type":998,"value":12868},"    average ",{"type":993,"tag":1034,"props":12870,"children":12871},{"style":1040},[12872],{"type":998,"value":1091},{"type":993,"tag":1034,"props":12874,"children":12875},{"style":1099},[12876],{"type":998,"value":8218},{"type":993,"tag":1034,"props":12878,"children":12879},{"style":1046},[12880],{"type":998,"value":7125},{"type":993,"tag":1034,"props":12882,"children":12883},{"style":1040},[12884],{"type":998,"value":1431},{"type":993,"tag":1034,"props":12886,"children":12887},{"style":1099},[12888],{"type":998,"value":8015},{"type":993,"tag":1034,"props":12890,"children":12891},{"style":1046},[12892],{"type":998,"value":12893},"(test_scores)\n",{"type":993,"tag":1034,"props":12895,"children":12896},{"class":1036,"line":63},[12897],{"type":993,"tag":1034,"props":12898,"children":12899},{"style":1046},[12900],{"type":998,"value":4054},{"type":993,"tag":1034,"props":12902,"children":12903},{"class":1036,"line":72},[12904],{"type":993,"tag":1034,"props":12905,"children":12906},{"style":1075},[12907],{"type":998,"value":12908},"    # Round to 2 decimal places\n",{"type":993,"tag":1034,"props":12910,"children":12911},{"class":1036,"line":81},[12912,12916,12920,12924,12929,12933],{"type":993,"tag":1034,"props":12913,"children":12914},{"style":1046},[12915],{"type":998,"value":12868},{"type":993,"tag":1034,"props":12917,"children":12918},{"style":1040},[12919],{"type":998,"value":1091},{"type":993,"tag":1034,"props":12921,"children":12922},{"style":1099},[12923],{"type":998,"value":10122},{"type":993,"tag":1034,"props":12925,"children":12926},{"style":1046},[12927],{"type":998,"value":12928},"(average, ",{"type":993,"tag":1034,"props":12930,"children":12931},{"style":1099},[12932],{"type":998,"value":1834},{"type":993,"tag":1034,"props":12934,"children":12935},{"style":1046},[12936],{"type":998,"value":1266},{"type":993,"tag":1034,"props":12938,"children":12939},{"class":1036,"line":91},[12940],{"type":993,"tag":1034,"props":12941,"children":12942},{"style":1046},[12943],{"type":998,"value":4054},{"type":993,"tag":1034,"props":12945,"children":12946},{"class":1036,"line":100},[12947],{"type":993,"tag":1034,"props":12948,"children":12949},{"style":1075},[12950],{"type":998,"value":12951},"    # Determine letter grade based on average\n",{"type":993,"tag":1034,"props":12953,"children":12954},{"class":1036,"line":109},[12955,12960,12964],{"type":993,"tag":1034,"props":12956,"children":12957},{"style":1046},[12958],{"type":998,"value":12959},"    letter_grade ",{"type":993,"tag":1034,"props":12961,"children":12962},{"style":1040},[12963],{"type":998,"value":1091},{"type":993,"tag":1034,"props":12965,"children":12966},{"style":1046},[12967],{"type":998,"value":12968}," assign_letter_grade(average)\n",{"type":993,"tag":1034,"props":12970,"children":12971},{"class":1036,"line":118},[12972],{"type":993,"tag":1034,"props":12973,"children":12974},{"style":1046},[12975],{"type":998,"value":4054},{"type":993,"tag":1034,"props":12977,"children":12978},{"class":1036,"line":127},[12979],{"type":993,"tag":1034,"props":12980,"children":12981},{"style":1075},[12982],{"type":998,"value":12983},"    # Find highest and lowest scores\n",{"type":993,"tag":1034,"props":12985,"children":12986},{"class":1036,"line":136},[12987,12992,12996,13001],{"type":993,"tag":1034,"props":12988,"children":12989},{"style":1046},[12990],{"type":998,"value":12991},"    highest ",{"type":993,"tag":1034,"props":12993,"children":12994},{"style":1040},[12995],{"type":998,"value":1091},{"type":993,"tag":1034,"props":12997,"children":12998},{"style":1099},[12999],{"type":998,"value":13000}," max",{"type":993,"tag":1034,"props":13002,"children":13003},{"style":1046},[13004],{"type":998,"value":12893},{"type":993,"tag":1034,"props":13006,"children":13007},{"class":1036,"line":146},[13008,13013,13017,13021],{"type":993,"tag":1034,"props":13009,"children":13010},{"style":1046},[13011],{"type":998,"value":13012},"    lowest ",{"type":993,"tag":1034,"props":13014,"children":13015},{"style":1040},[13016],{"type":998,"value":1091},{"type":993,"tag":1034,"props":13018,"children":13019},{"style":1099},[13020],{"type":998,"value":7134},{"type":993,"tag":1034,"props":13022,"children":13023},{"style":1046},[13024],{"type":998,"value":12893},{"type":993,"tag":1034,"props":13026,"children":13027},{"class":1036,"line":155},[13028],{"type":993,"tag":1034,"props":13029,"children":13030},{"style":1046},[13031],{"type":998,"value":4054},{"type":993,"tag":1034,"props":13033,"children":13034},{"class":1036,"line":164},[13035],{"type":993,"tag":1034,"props":13036,"children":13037},{"style":1075},[13038],{"type":998,"value":13039},"    # Calculate the standard deviation (bonus)\n",{"type":993,"tag":1034,"props":13041,"children":13042},{"class":1036,"line":173},[13043,13047,13051],{"type":993,"tag":1034,"props":13044,"children":13045},{"style":1046},[13046],{"type":998,"value":7431},{"type":993,"tag":1034,"props":13048,"children":13049},{"style":1040},[13050],{"type":998,"value":1091},{"type":993,"tag":1034,"props":13052,"children":13053},{"style":1046},[13054],{"type":998,"value":13055}," average\n",{"type":993,"tag":1034,"props":13057,"children":13058},{"class":1036,"line":182},[13059,13064,13068,13072,13077,13081,13085,13089,13093,13097,13102,13106,13111,13115,13119],{"type":993,"tag":1034,"props":13060,"children":13061},{"style":1046},[13062],{"type":998,"value":13063},"    variance ",{"type":993,"tag":1034,"props":13065,"children":13066},{"style":1040},[13067],{"type":998,"value":1091},{"type":993,"tag":1034,"props":13069,"children":13070},{"style":1099},[13071],{"type":998,"value":8218},{"type":993,"tag":1034,"props":13073,"children":13074},{"style":1046},[13075],{"type":998,"value":13076},"((score ",{"type":993,"tag":1034,"props":13078,"children":13079},{"style":1040},[13080],{"type":998,"value":1906},{"type":993,"tag":1034,"props":13082,"children":13083},{"style":1046},[13084],{"type":998,"value":7478},{"type":993,"tag":1034,"props":13086,"children":13087},{"style":1040},[13088],{"type":998,"value":1926},{"type":993,"tag":1034,"props":13090,"children":13091},{"style":1099},[13092],{"type":998,"value":4674},{"type":993,"tag":1034,"props":13094,"children":13095},{"style":1040},[13096],{"type":998,"value":8314},{"type":993,"tag":1034,"props":13098,"children":13099},{"style":1046},[13100],{"type":998,"value":13101}," score ",{"type":993,"tag":1034,"props":13103,"children":13104},{"style":1040},[13105],{"type":998,"value":2742},{"type":993,"tag":1034,"props":13107,"children":13108},{"style":1046},[13109],{"type":998,"value":13110}," test_scores) ",{"type":993,"tag":1034,"props":13112,"children":13113},{"style":1040},[13114],{"type":998,"value":1431},{"type":993,"tag":1034,"props":13116,"children":13117},{"style":1099},[13118],{"type":998,"value":8015},{"type":993,"tag":1034,"props":13120,"children":13121},{"style":1046},[13122],{"type":998,"value":12893},{"type":993,"tag":1034,"props":13124,"children":13125},{"class":1036,"line":191},[13126,13131,13135,13139,13144,13148],{"type":993,"tag":1034,"props":13127,"children":13128},{"style":1046},[13129],{"type":998,"value":13130},"    std_deviation ",{"type":993,"tag":1034,"props":13132,"children":13133},{"style":1040},[13134],{"type":998,"value":1091},{"type":993,"tag":1034,"props":13136,"children":13137},{"style":1099},[13138],{"type":998,"value":10122},{"type":993,"tag":1034,"props":13140,"children":13141},{"style":1046},[13142],{"type":998,"value":13143},"(math.sqrt(variance), ",{"type":993,"tag":1034,"props":13145,"children":13146},{"style":1099},[13147],{"type":998,"value":1834},{"type":993,"tag":1034,"props":13149,"children":13150},{"style":1046},[13151],{"type":998,"value":1266},{"type":993,"tag":1034,"props":13153,"children":13154},{"class":1036,"line":201},[13155],{"type":993,"tag":1034,"props":13156,"children":13157},{"style":1046},[13158],{"type":998,"value":4054},{"type":993,"tag":1034,"props":13160,"children":13161},{"class":1036,"line":210},[13162],{"type":993,"tag":1034,"props":13163,"children":13164},{"style":1075},[13165],{"type":998,"value":13166},"    # Return all information\n",{"type":993,"tag":1034,"props":13168,"children":13169},{"class":1036,"line":219},[13170,13174],{"type":993,"tag":1034,"props":13171,"children":13172},{"style":1040},[13173],{"type":998,"value":3781},{"type":993,"tag":1034,"props":13175,"children":13176},{"style":1046},[13177],{"type":998,"value":13178}," {\n",{"type":993,"tag":1034,"props":13180,"children":13181},{"class":1036,"line":228},[13182,13187],{"type":993,"tag":1034,"props":13183,"children":13184},{"style":1238},[13185],{"type":998,"value":13186},"        'average'",{"type":993,"tag":1034,"props":13188,"children":13189},{"style":1046},[13190],{"type":998,"value":13191},": average,\n",{"type":993,"tag":1034,"props":13193,"children":13194},{"class":1036,"line":238},[13195,13200],{"type":993,"tag":1034,"props":13196,"children":13197},{"style":1238},[13198],{"type":998,"value":13199},"        'letter_grade'",{"type":993,"tag":1034,"props":13201,"children":13202},{"style":1046},[13203],{"type":998,"value":13204},": letter_grade,\n",{"type":993,"tag":1034,"props":13206,"children":13207},{"class":1036,"line":247},[13208,13213],{"type":993,"tag":1034,"props":13209,"children":13210},{"style":1238},[13211],{"type":998,"value":13212},"        'highest'",{"type":993,"tag":1034,"props":13214,"children":13215},{"style":1046},[13216],{"type":998,"value":13217},": highest,\n",{"type":993,"tag":1034,"props":13219,"children":13220},{"class":1036,"line":256},[13221,13226],{"type":993,"tag":1034,"props":13222,"children":13223},{"style":1238},[13224],{"type":998,"value":13225},"        'lowest'",{"type":993,"tag":1034,"props":13227,"children":13228},{"style":1046},[13229],{"type":998,"value":13230},": lowest,\n",{"type":993,"tag":1034,"props":13232,"children":13233},{"class":1036,"line":265},[13234,13239],{"type":993,"tag":1034,"props":13235,"children":13236},{"style":1238},[13237],{"type":998,"value":13238},"        'std_deviation'",{"type":993,"tag":1034,"props":13240,"children":13241},{"style":1046},[13242],{"type":998,"value":13243},": std_deviation\n",{"type":993,"tag":1034,"props":13245,"children":13246},{"class":1036,"line":274},[13247],{"type":993,"tag":1034,"props":13248,"children":13249},{"style":1046},[13250],{"type":998,"value":13251},"    }\n",{"type":993,"tag":1034,"props":13253,"children":13254},{"class":1036,"line":284},[13255],{"type":993,"tag":1034,"props":13256,"children":13257},{"emptyLinePlaceholder":13},[13258],{"type":998,"value":1069},{"type":993,"tag":1034,"props":13260,"children":13261},{"class":1036,"line":293},[13262,13266,13270],{"type":993,"tag":1034,"props":13263,"children":13264},{"style":1040},[13265],{"type":998,"value":3762},{"type":993,"tag":1034,"props":13267,"children":13268},{"style":3765},[13269],{"type":998,"value":12399},{"type":993,"tag":1034,"props":13271,"children":13272},{"style":1046},[13273],{"type":998,"value":12404},{"type":993,"tag":1034,"props":13275,"children":13276},{"class":1036,"line":302},[13277],{"type":993,"tag":1034,"props":13278,"children":13279},{"style":1075},[13280],{"type":998,"value":13281},"    # Assign letter grade based on score ranges\n",{"type":993,"tag":1034,"props":13283,"children":13284},{"class":1036,"line":311},[13285,13289,13294,13299,13304],{"type":993,"tag":1034,"props":13286,"children":13287},{"style":1040},[13288],{"type":998,"value":4070},{"type":993,"tag":1034,"props":13290,"children":13291},{"style":1046},[13292],{"type":998,"value":13293}," average ",{"type":993,"tag":1034,"props":13295,"children":13296},{"style":1040},[13297],{"type":998,"value":13298},">=",{"type":993,"tag":1034,"props":13300,"children":13301},{"style":1099},[13302],{"type":998,"value":13303}," 90",{"type":993,"tag":1034,"props":13305,"children":13306},{"style":1046},[13307],{"type":998,"value":4129},{"type":993,"tag":1034,"props":13309,"children":13310},{"class":1036,"line":320},[13311,13315],{"type":993,"tag":1034,"props":13312,"children":13313},{"style":1040},[13314],{"type":998,"value":8456},{"type":993,"tag":1034,"props":13316,"children":13317},{"style":1238},[13318],{"type":998,"value":13319}," 'A'\n",{"type":993,"tag":1034,"props":13321,"children":13322},{"class":1036,"line":329},[13323,13328,13332,13336,13341],{"type":993,"tag":1034,"props":13324,"children":13325},{"style":1040},[13326],{"type":998,"value":13327},"    elif",{"type":993,"tag":1034,"props":13329,"children":13330},{"style":1046},[13331],{"type":998,"value":13293},{"type":993,"tag":1034,"props":13333,"children":13334},{"style":1040},[13335],{"type":998,"value":13298},{"type":993,"tag":1034,"props":13337,"children":13338},{"style":1099},[13339],{"type":998,"value":13340}," 80",{"type":993,"tag":1034,"props":13342,"children":13343},{"style":1046},[13344],{"type":998,"value":4129},{"type":993,"tag":1034,"props":13346,"children":13347},{"class":1036,"line":338},[13348,13352],{"type":993,"tag":1034,"props":13349,"children":13350},{"style":1040},[13351],{"type":998,"value":8456},{"type":993,"tag":1034,"props":13353,"children":13354},{"style":1238},[13355],{"type":998,"value":13356}," 'B'\n",{"type":993,"tag":1034,"props":13358,"children":13359},{"class":1036,"line":347},[13360,13364,13368,13372,13377],{"type":993,"tag":1034,"props":13361,"children":13362},{"style":1040},[13363],{"type":998,"value":13327},{"type":993,"tag":1034,"props":13365,"children":13366},{"style":1046},[13367],{"type":998,"value":13293},{"type":993,"tag":1034,"props":13369,"children":13370},{"style":1040},[13371],{"type":998,"value":13298},{"type":993,"tag":1034,"props":13373,"children":13374},{"style":1099},[13375],{"type":998,"value":13376}," 70",{"type":993,"tag":1034,"props":13378,"children":13379},{"style":1046},[13380],{"type":998,"value":4129},{"type":993,"tag":1034,"props":13382,"children":13383},{"class":1036,"line":356},[13384,13388],{"type":993,"tag":1034,"props":13385,"children":13386},{"style":1040},[13387],{"type":998,"value":8456},{"type":993,"tag":1034,"props":13389,"children":13390},{"style":1238},[13391],{"type":998,"value":13392}," 'C'\n",{"type":993,"tag":1034,"props":13394,"children":13395},{"class":1036,"line":365},[13396,13400,13404,13408,13413],{"type":993,"tag":1034,"props":13397,"children":13398},{"style":1040},[13399],{"type":998,"value":13327},{"type":993,"tag":1034,"props":13401,"children":13402},{"style":1046},[13403],{"type":998,"value":13293},{"type":993,"tag":1034,"props":13405,"children":13406},{"style":1040},[13407],{"type":998,"value":13298},{"type":993,"tag":1034,"props":13409,"children":13410},{"style":1099},[13411],{"type":998,"value":13412}," 60",{"type":993,"tag":1034,"props":13414,"children":13415},{"style":1046},[13416],{"type":998,"value":4129},{"type":993,"tag":1034,"props":13418,"children":13419},{"class":1036,"line":374},[13420,13424],{"type":993,"tag":1034,"props":13421,"children":13422},{"style":1040},[13423],{"type":998,"value":8456},{"type":993,"tag":1034,"props":13425,"children":13426},{"style":1238},[13427],{"type":998,"value":13428}," 'D'\n",{"type":993,"tag":1034,"props":13430,"children":13431},{"class":1036,"line":384},[13432,13436],{"type":993,"tag":1034,"props":13433,"children":13434},{"style":1040},[13435],{"type":998,"value":4124},{"type":993,"tag":1034,"props":13437,"children":13438},{"style":1046},[13439],{"type":998,"value":4129},{"type":993,"tag":1034,"props":13441,"children":13442},{"class":1036,"line":393},[13443,13447],{"type":993,"tag":1034,"props":13444,"children":13445},{"style":1040},[13446],{"type":998,"value":8456},{"type":993,"tag":1034,"props":13448,"children":13449},{"style":1238},[13450],{"type":998,"value":13451}," 'F'\n",{"type":993,"tag":1034,"props":13453,"children":13454},{"class":1036,"line":402},[13455],{"type":993,"tag":1034,"props":13456,"children":13457},{"emptyLinePlaceholder":13},[13458],{"type":998,"value":1069},{"type":993,"tag":1034,"props":13460,"children":13461},{"class":1036,"line":411},[13462],{"type":993,"tag":1034,"props":13463,"children":13464},{"style":1075},[13465],{"type":998,"value":13466},"# Test with sample scores\n",{"type":993,"tag":1034,"props":13468,"children":13469},{"class":1036,"line":420},[13470,13474,13478,13482,13486,13490,13494,13498,13502,13506,13510,13514,13518,13522,13526,13530,13534],{"type":993,"tag":1034,"props":13471,"children":13472},{"style":1046},[13473],{"type":998,"value":6547},{"type":993,"tag":1034,"props":13475,"children":13476},{"style":1040},[13477],{"type":998,"value":1091},{"type":993,"tag":1034,"props":13479,"children":13480},{"style":1046},[13481],{"type":998,"value":1096},{"type":993,"tag":1034,"props":13483,"children":13484},{"style":1099},[13485],{"type":998,"value":6560},{"type":993,"tag":1034,"props":13487,"children":13488},{"style":1046},[13489],{"type":998,"value":1107},{"type":993,"tag":1034,"props":13491,"children":13492},{"style":1099},[13493],{"type":998,"value":6569},{"type":993,"tag":1034,"props":13495,"children":13496},{"style":1046},[13497],{"type":998,"value":1107},{"type":993,"tag":1034,"props":13499,"children":13500},{"style":1099},[13501],{"type":998,"value":6578},{"type":993,"tag":1034,"props":13503,"children":13504},{"style":1046},[13505],{"type":998,"value":1107},{"type":993,"tag":1034,"props":13507,"children":13508},{"style":1099},[13509],{"type":998,"value":6587},{"type":993,"tag":1034,"props":13511,"children":13512},{"style":1046},[13513],{"type":998,"value":1107},{"type":993,"tag":1034,"props":13515,"children":13516},{"style":1099},[13517],{"type":998,"value":6596},{"type":993,"tag":1034,"props":13519,"children":13520},{"style":1046},[13521],{"type":998,"value":1107},{"type":993,"tag":1034,"props":13523,"children":13524},{"style":1099},[13525],{"type":998,"value":6614},{"type":993,"tag":1034,"props":13527,"children":13528},{"style":1046},[13529],{"type":998,"value":1107},{"type":993,"tag":1034,"props":13531,"children":13532},{"style":1099},[13533],{"type":998,"value":6650},{"type":993,"tag":1034,"props":13535,"children":13536},{"style":1046},[13537],{"type":998,"value":1144},{"type":993,"tag":1034,"props":13539,"children":13540},{"class":1036,"line":429},[13541],{"type":993,"tag":1034,"props":13542,"children":13543},{"emptyLinePlaceholder":13},[13544],{"type":998,"value":1069},{"type":993,"tag":1034,"props":13546,"children":13547},{"class":1036,"line":438},[13548,13552,13556],{"type":993,"tag":1034,"props":13549,"children":13550},{"style":1046},[13551],{"type":998,"value":12545},{"type":993,"tag":1034,"props":13553,"children":13554},{"style":1040},[13555],{"type":998,"value":1091},{"type":993,"tag":1034,"props":13557,"children":13558},{"style":1046},[13559],{"type":998,"value":12554},{"type":993,"tag":1034,"props":13561,"children":13562},{"class":1036,"line":447},[13563,13567,13571,13575,13579,13583,13587,13591,13595],{"type":993,"tag":1034,"props":13564,"children":13565},{"style":1099},[13566],{"type":998,"value":1225},{"type":993,"tag":1034,"props":13568,"children":13569},{"style":1046},[13570],{"type":998,"value":1230},{"type":993,"tag":1034,"props":13572,"children":13573},{"style":1040},[13574],{"type":998,"value":1235},{"type":993,"tag":1034,"props":13576,"children":13577},{"style":1238},[13578],{"type":998,"value":12574},{"type":993,"tag":1034,"props":13580,"children":13581},{"style":1099},[13582],{"type":998,"value":1246},{"type":993,"tag":1034,"props":13584,"children":13585},{"style":1046},[13586],{"type":998,"value":6823},{"type":993,"tag":1034,"props":13588,"children":13589},{"style":1099},[13590],{"type":998,"value":1256},{"type":993,"tag":1034,"props":13592,"children":13593},{"style":1238},[13594],{"type":998,"value":1261},{"type":993,"tag":1034,"props":13596,"children":13597},{"style":1046},[13598],{"type":998,"value":1266},{"type":993,"tag":1034,"props":13600,"children":13601},{"class":1036,"line":457},[13602,13606,13610,13614,13618,13622,13626,13630,13634,13638,13642],{"type":993,"tag":1034,"props":13603,"children":13604},{"style":1099},[13605],{"type":998,"value":1225},{"type":993,"tag":1034,"props":13607,"children":13608},{"style":1046},[13609],{"type":998,"value":1230},{"type":993,"tag":1034,"props":13611,"children":13612},{"style":1040},[13613],{"type":998,"value":1235},{"type":993,"tag":1034,"props":13615,"children":13616},{"style":1238},[13617],{"type":998,"value":12614},{"type":993,"tag":1034,"props":13619,"children":13620},{"style":1099},[13621],{"type":998,"value":1246},{"type":993,"tag":1034,"props":13623,"children":13624},{"style":1046},[13625],{"type":998,"value":12623},{"type":993,"tag":1034,"props":13627,"children":13628},{"style":1238},[13629],{"type":998,"value":12628},{"type":993,"tag":1034,"props":13631,"children":13632},{"style":1046},[13633],{"type":998,"value":7271},{"type":993,"tag":1034,"props":13635,"children":13636},{"style":1099},[13637],{"type":998,"value":1256},{"type":993,"tag":1034,"props":13639,"children":13640},{"style":1238},[13641],{"type":998,"value":1261},{"type":993,"tag":1034,"props":13643,"children":13644},{"style":1046},[13645],{"type":998,"value":1266},{"type":993,"tag":1034,"props":13647,"children":13648},{"class":1036,"line":466},[13649,13653,13657,13661,13665,13669,13673,13677,13681,13685,13689],{"type":993,"tag":1034,"props":13650,"children":13651},{"style":1099},[13652],{"type":998,"value":1225},{"type":993,"tag":1034,"props":13654,"children":13655},{"style":1046},[13656],{"type":998,"value":1230},{"type":993,"tag":1034,"props":13658,"children":13659},{"style":1040},[13660],{"type":998,"value":1235},{"type":993,"tag":1034,"props":13662,"children":13663},{"style":1238},[13664],{"type":998,"value":12664},{"type":993,"tag":1034,"props":13666,"children":13667},{"style":1099},[13668],{"type":998,"value":1246},{"type":993,"tag":1034,"props":13670,"children":13671},{"style":1046},[13672],{"type":998,"value":12623},{"type":993,"tag":1034,"props":13674,"children":13675},{"style":1238},[13676],{"type":998,"value":12677},{"type":993,"tag":1034,"props":13678,"children":13679},{"style":1046},[13680],{"type":998,"value":7271},{"type":993,"tag":1034,"props":13682,"children":13683},{"style":1099},[13684],{"type":998,"value":1256},{"type":993,"tag":1034,"props":13686,"children":13687},{"style":1238},[13688],{"type":998,"value":1261},{"type":993,"tag":1034,"props":13690,"children":13691},{"style":1046},[13692],{"type":998,"value":1266},{"type":993,"tag":1034,"props":13694,"children":13695},{"class":1036,"line":475},[13696,13700,13704,13708,13712,13716,13720,13724,13728,13732,13736],{"type":993,"tag":1034,"props":13697,"children":13698},{"style":1099},[13699],{"type":998,"value":1225},{"type":993,"tag":1034,"props":13701,"children":13702},{"style":1046},[13703],{"type":998,"value":1230},{"type":993,"tag":1034,"props":13705,"children":13706},{"style":1040},[13707],{"type":998,"value":1235},{"type":993,"tag":1034,"props":13709,"children":13710},{"style":1238},[13711],{"type":998,"value":12713},{"type":993,"tag":1034,"props":13713,"children":13714},{"style":1099},[13715],{"type":998,"value":1246},{"type":993,"tag":1034,"props":13717,"children":13718},{"style":1046},[13719],{"type":998,"value":12623},{"type":993,"tag":1034,"props":13721,"children":13722},{"style":1238},[13723],{"type":998,"value":12726},{"type":993,"tag":1034,"props":13725,"children":13726},{"style":1046},[13727],{"type":998,"value":7271},{"type":993,"tag":1034,"props":13729,"children":13730},{"style":1099},[13731],{"type":998,"value":1256},{"type":993,"tag":1034,"props":13733,"children":13734},{"style":1238},[13735],{"type":998,"value":1261},{"type":993,"tag":1034,"props":13737,"children":13738},{"style":1046},[13739],{"type":998,"value":1266},{"type":993,"tag":1034,"props":13741,"children":13742},{"class":1036,"line":484},[13743,13747,13751,13755,13759,13763,13767,13771,13775,13779,13783],{"type":993,"tag":1034,"props":13744,"children":13745},{"style":1099},[13746],{"type":998,"value":1225},{"type":993,"tag":1034,"props":13748,"children":13749},{"style":1046},[13750],{"type":998,"value":1230},{"type":993,"tag":1034,"props":13752,"children":13753},{"style":1040},[13754],{"type":998,"value":1235},{"type":993,"tag":1034,"props":13756,"children":13757},{"style":1238},[13758],{"type":998,"value":12762},{"type":993,"tag":1034,"props":13760,"children":13761},{"style":1099},[13762],{"type":998,"value":1246},{"type":993,"tag":1034,"props":13764,"children":13765},{"style":1046},[13766],{"type":998,"value":12623},{"type":993,"tag":1034,"props":13768,"children":13769},{"style":1238},[13770],{"type":998,"value":12775},{"type":993,"tag":1034,"props":13772,"children":13773},{"style":1046},[13774],{"type":998,"value":7271},{"type":993,"tag":1034,"props":13776,"children":13777},{"style":1099},[13778],{"type":998,"value":1256},{"type":993,"tag":1034,"props":13780,"children":13781},{"style":1238},[13782],{"type":998,"value":1261},{"type":993,"tag":1034,"props":13784,"children":13785},{"style":1046},[13786],{"type":998,"value":1266},{"type":993,"tag":1034,"props":13788,"children":13789},{"class":1036,"line":493},[13790,13794,13798,13802,13807,13811,13815,13820,13824,13828,13832],{"type":993,"tag":1034,"props":13791,"children":13792},{"style":1099},[13793],{"type":998,"value":1225},{"type":993,"tag":1034,"props":13795,"children":13796},{"style":1046},[13797],{"type":998,"value":1230},{"type":993,"tag":1034,"props":13799,"children":13800},{"style":1040},[13801],{"type":998,"value":1235},{"type":993,"tag":1034,"props":13803,"children":13804},{"style":1238},[13805],{"type":998,"value":13806},"\"Standard deviation: ",{"type":993,"tag":1034,"props":13808,"children":13809},{"style":1099},[13810],{"type":998,"value":1246},{"type":993,"tag":1034,"props":13812,"children":13813},{"style":1046},[13814],{"type":998,"value":12623},{"type":993,"tag":1034,"props":13816,"children":13817},{"style":1238},[13818],{"type":998,"value":13819},"'std_deviation'",{"type":993,"tag":1034,"props":13821,"children":13822},{"style":1046},[13823],{"type":998,"value":7271},{"type":993,"tag":1034,"props":13825,"children":13826},{"style":1099},[13827],{"type":998,"value":1256},{"type":993,"tag":1034,"props":13829,"children":13830},{"style":1238},[13831],{"type":998,"value":1261},{"type":993,"tag":1034,"props":13833,"children":13834},{"style":1046},[13835],{"type":998,"value":1266},{"type":993,"tag":1001,"props":13837,"children":13838},{},[13839],{"type":993,"tag":1879,"props":13840,"children":13841},{},[13842],{"type":998,"value":13843},"Key Learning Points:",{"type":993,"tag":1885,"props":13845,"children":13846},{},[13847,13859,13870,13881,13892],{"type":993,"tag":1889,"props":13848,"children":13849},{},[13850,13852,13857],{"type":998,"value":13851},"📌 ",{"type":993,"tag":1879,"props":13853,"children":13854},{},[13855],{"type":998,"value":13856},"Basic arithmetic",{"type":998,"value":13858},": Use sum(), len(), max(), min() for calculations",{"type":993,"tag":1889,"props":13860,"children":13861},{},[13862,13863,13868],{"type":998,"value":13851},{"type":993,"tag":1879,"props":13864,"children":13865},{},[13866],{"type":998,"value":13867},"Division and averages",{"type":998,"value":13869},": Simple division gives precise average",{"type":993,"tag":1889,"props":13871,"children":13872},{},[13873,13874,13879],{"type":998,"value":13851},{"type":993,"tag":1879,"props":13875,"children":13876},{},[13877],{"type":998,"value":13878},"Rounding",{"type":998,"value":13880},": Use round() function to control decimal places",{"type":993,"tag":1889,"props":13882,"children":13883},{},[13884,13885,13890],{"type":998,"value":13851},{"type":993,"tag":1879,"props":13886,"children":13887},{},[13888],{"type":998,"value":13889},"Math module",{"type":998,"value":13891},": Use math.sqrt() for square root calculations",{"type":993,"tag":1889,"props":13893,"children":13894},{},[13895,13896,13901],{"type":998,"value":13851},{"type":993,"tag":1879,"props":13897,"children":13898},{},[13899],{"type":998,"value":13900},"Conditional logic",{"type":998,"value":13902},": Use if/elif statements for grade assignment",{"type":993,"tag":1001,"props":13904,"children":13905},{},[13906,13908,13913],{"type":998,"value":13907},"Learn more about ",{"type":993,"tag":4683,"props":13909,"children":13910},{"href":763},[13911],{"type":998,"value":13912},"JSON data",{"type":998,"value":13914}," to handle structured data in your mathematical applications.",{"type":993,"tag":1857,"props":13916,"children":13918},{"id":13917},"test-your-knowledge",[13919],{"type":998,"value":13920},"Test Your Knowledge",{"type":993,"tag":1001,"props":13922,"children":13923},{},[13924],{"type":998,"value":13925},"Test what you've learned about mathematical operations:",{"type":993,"tag":13927,"props":13928,"children":13932},"redirect-button",{"icon":13929,"label":13930,"url":13931},"pi pi-send","Take Quiz","/tutorial-quiz/python/mathematical-operations",[],{"type":993,"tag":1857,"props":13934,"children":13936},{"id":13935},"whats-next",[13937],{"type":998,"value":13938},"What's Next?",{"type":993,"tag":1001,"props":13940,"children":13941},{},[13942],{"type":998,"value":13943},"Now that you can perform complex mathematical operations, you're ready to explore JSON data handling. Learn how to work with structured data formats that are essential for APIs, configuration files, and data exchange in modern applications.",{"type":993,"tag":1001,"props":13945,"children":13946},{},[13947,13949,13953],{"type":998,"value":13948},"Ready to continue? Check out our lesson on ",{"type":993,"tag":4683,"props":13950,"children":13951},{"href":763},[13952],{"type":998,"value":764},{"type":998,"value":13954},".",{"type":993,"tag":13956,"props":13957,"children":13958},"style",{},[13959],{"type":998,"value":13960},"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":13962},[13963,13966,13967,13968,13972,13976,13977],{"id":1859,"depth":27,"text":1862,"children":13964},[13965],{"id":2385,"depth":36,"text":2388},{"id":3710,"depth":27,"text":3713},{"id":4951,"depth":27,"text":4954},{"id":6473,"depth":27,"text":6476,"children":13969},[13970,13971],{"id":6484,"depth":36,"text":6487},{"id":7931,"depth":36,"text":7934},{"id":9923,"depth":27,"text":9926,"children":13973},[13974,13975],{"id":9929,"depth":36,"text":9932},{"id":12794,"depth":36,"text":12797},{"id":13917,"depth":27,"text":13920},{"id":13935,"depth":27,"text":13938},1782373748747]