[{"data":1,"prerenderedAt":6364},["ShallowReactive",2],{"tutorials-python":3,"category-items-python":987,"content-/python/math-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},"/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},"/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},"/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},"/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},"/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},"/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},"/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},"/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},"/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},"/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",[141],{"_path":142,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":143,"description":144,"slug":145,"parentId":132,"order":146,"body":989,"_type":15,"_id":147,"_source":17,"_file":148,"_stem":149,"_extension":20},{"type":990,"children":991,"toc":6350},"root",[992,1000,1006,1011,1474,1481,1486,1616,1992,1998,2003,2098,2451,2457,2462,2568,3060,3066,3071,3219,3731,3736,3751,4408,4414,4419,4557,5092,5097,5103,5108,5507,5514,5983,5989,6262,6306,6312,6319,6325,6330,6344],{"type":993,"tag":994,"props":995,"children":996},"element","h1",{"id":145},[997],{"type":998,"value":999},"text","➕ Math Operations",{"type":993,"tag":1001,"props":1002,"children":1003},"p",{},[1004],{"type":998,"value":1005},"Math operations in Python are straightforward and intuitive, using symbols you already know from basic mathematics. Whether you're calculating a tip at a restaurant, determining the area of a room, or processing financial data, Python's arithmetic operators make it easy to perform calculations in your programs.",{"type":993,"tag":1001,"props":1007,"children":1008},{},[1009],{"type":998,"value":1010},"Python handles math operations naturally, following the same rules you learned in school.",{"type":993,"tag":1012,"props":1013,"children":1014},"code-try",{},[1015],{"type":993,"tag":1016,"props":1017,"children":1020},"pre",{"className":1018,"code":1019,"language":6,"meta":8,"style":8},"language-python shiki shiki-themes github-light github-dark","# Basic math operations in Python\nprint(\"=== BASIC MATH ===\")\n\n# Simple calculations\na = 10\nb = 3\n\nprint(f\"{a} + {b} = {a + b}\")       # 13\nprint(f\"{a} - {b} = {a - b}\")       # 7\nprint(f\"{a} * {b} = {a * b}\")       # 30\nprint(f\"{a} / {b} = {a / b}\")       # 3.3333...\n",[1021],{"type":993,"tag":1022,"props":1023,"children":1024},"code",{"__ignoreMap":8},[1025,1036,1062,1070,1078,1097,1114,1121,1216,1302,1388],{"type":993,"tag":1026,"props":1027,"children":1029},"span",{"class":1028,"line":12},"line",[1030],{"type":993,"tag":1026,"props":1031,"children":1033},{"style":1032},"--shiki-default:#6A737D;--shiki-app-dark-mode:#6A737D",[1034],{"type":998,"value":1035},"# Basic math operations in Python\n",{"type":993,"tag":1026,"props":1037,"children":1038},{"class":1028,"line":27},[1039,1045,1051,1057],{"type":993,"tag":1026,"props":1040,"children":1042},{"style":1041},"--shiki-default:#005CC5;--shiki-app-dark-mode:#79B8FF",[1043],{"type":998,"value":1044},"print",{"type":993,"tag":1026,"props":1046,"children":1048},{"style":1047},"--shiki-default:#24292E;--shiki-app-dark-mode:#E1E4E8",[1049],{"type":998,"value":1050},"(",{"type":993,"tag":1026,"props":1052,"children":1054},{"style":1053},"--shiki-default:#032F62;--shiki-app-dark-mode:#9ECBFF",[1055],{"type":998,"value":1056},"\"=== BASIC MATH ===\"",{"type":993,"tag":1026,"props":1058,"children":1059},{"style":1047},[1060],{"type":998,"value":1061},")\n",{"type":993,"tag":1026,"props":1063,"children":1064},{"class":1028,"line":36},[1065],{"type":993,"tag":1026,"props":1066,"children":1067},{"emptyLinePlaceholder":13},[1068],{"type":998,"value":1069},"\n",{"type":993,"tag":1026,"props":1071,"children":1072},{"class":1028,"line":45},[1073],{"type":993,"tag":1026,"props":1074,"children":1075},{"style":1032},[1076],{"type":998,"value":1077},"# Simple calculations\n",{"type":993,"tag":1026,"props":1079,"children":1080},{"class":1028,"line":54},[1081,1086,1092],{"type":993,"tag":1026,"props":1082,"children":1083},{"style":1047},[1084],{"type":998,"value":1085},"a ",{"type":993,"tag":1026,"props":1087,"children":1089},{"style":1088},"--shiki-default:#D73A49;--shiki-app-dark-mode:#F97583",[1090],{"type":998,"value":1091},"=",{"type":993,"tag":1026,"props":1093,"children":1094},{"style":1041},[1095],{"type":998,"value":1096}," 10\n",{"type":993,"tag":1026,"props":1098,"children":1099},{"class":1028,"line":63},[1100,1105,1109],{"type":993,"tag":1026,"props":1101,"children":1102},{"style":1047},[1103],{"type":998,"value":1104},"b ",{"type":993,"tag":1026,"props":1106,"children":1107},{"style":1088},[1108],{"type":998,"value":1091},{"type":993,"tag":1026,"props":1110,"children":1111},{"style":1041},[1112],{"type":998,"value":1113}," 3\n",{"type":993,"tag":1026,"props":1115,"children":1116},{"class":1028,"line":72},[1117],{"type":993,"tag":1026,"props":1118,"children":1119},{"emptyLinePlaceholder":13},[1120],{"type":998,"value":1069},{"type":993,"tag":1026,"props":1122,"children":1123},{"class":1028,"line":81},[1124,1128,1132,1137,1142,1147,1152,1157,1162,1166,1171,1175,1180,1184,1188,1193,1198,1202,1206,1211],{"type":993,"tag":1026,"props":1125,"children":1126},{"style":1041},[1127],{"type":998,"value":1044},{"type":993,"tag":1026,"props":1129,"children":1130},{"style":1047},[1131],{"type":998,"value":1050},{"type":993,"tag":1026,"props":1133,"children":1134},{"style":1088},[1135],{"type":998,"value":1136},"f",{"type":993,"tag":1026,"props":1138,"children":1139},{"style":1053},[1140],{"type":998,"value":1141},"\"",{"type":993,"tag":1026,"props":1143,"children":1144},{"style":1041},[1145],{"type":998,"value":1146},"{",{"type":993,"tag":1026,"props":1148,"children":1149},{"style":1047},[1150],{"type":998,"value":1151},"a",{"type":993,"tag":1026,"props":1153,"children":1154},{"style":1041},[1155],{"type":998,"value":1156},"}",{"type":993,"tag":1026,"props":1158,"children":1159},{"style":1053},[1160],{"type":998,"value":1161}," + ",{"type":993,"tag":1026,"props":1163,"children":1164},{"style":1041},[1165],{"type":998,"value":1146},{"type":993,"tag":1026,"props":1167,"children":1168},{"style":1047},[1169],{"type":998,"value":1170},"b",{"type":993,"tag":1026,"props":1172,"children":1173},{"style":1041},[1174],{"type":998,"value":1156},{"type":993,"tag":1026,"props":1176,"children":1177},{"style":1053},[1178],{"type":998,"value":1179}," = ",{"type":993,"tag":1026,"props":1181,"children":1182},{"style":1041},[1183],{"type":998,"value":1146},{"type":993,"tag":1026,"props":1185,"children":1186},{"style":1047},[1187],{"type":998,"value":1085},{"type":993,"tag":1026,"props":1189,"children":1190},{"style":1088},[1191],{"type":998,"value":1192},"+",{"type":993,"tag":1026,"props":1194,"children":1195},{"style":1047},[1196],{"type":998,"value":1197}," b",{"type":993,"tag":1026,"props":1199,"children":1200},{"style":1041},[1201],{"type":998,"value":1156},{"type":993,"tag":1026,"props":1203,"children":1204},{"style":1053},[1205],{"type":998,"value":1141},{"type":993,"tag":1026,"props":1207,"children":1208},{"style":1047},[1209],{"type":998,"value":1210},")       ",{"type":993,"tag":1026,"props":1212,"children":1213},{"style":1032},[1214],{"type":998,"value":1215},"# 13\n",{"type":993,"tag":1026,"props":1217,"children":1218},{"class":1028,"line":91},[1219,1223,1227,1231,1235,1239,1243,1247,1252,1256,1260,1264,1268,1272,1276,1281,1285,1289,1293,1297],{"type":993,"tag":1026,"props":1220,"children":1221},{"style":1041},[1222],{"type":998,"value":1044},{"type":993,"tag":1026,"props":1224,"children":1225},{"style":1047},[1226],{"type":998,"value":1050},{"type":993,"tag":1026,"props":1228,"children":1229},{"style":1088},[1230],{"type":998,"value":1136},{"type":993,"tag":1026,"props":1232,"children":1233},{"style":1053},[1234],{"type":998,"value":1141},{"type":993,"tag":1026,"props":1236,"children":1237},{"style":1041},[1238],{"type":998,"value":1146},{"type":993,"tag":1026,"props":1240,"children":1241},{"style":1047},[1242],{"type":998,"value":1151},{"type":993,"tag":1026,"props":1244,"children":1245},{"style":1041},[1246],{"type":998,"value":1156},{"type":993,"tag":1026,"props":1248,"children":1249},{"style":1053},[1250],{"type":998,"value":1251}," - ",{"type":993,"tag":1026,"props":1253,"children":1254},{"style":1041},[1255],{"type":998,"value":1146},{"type":993,"tag":1026,"props":1257,"children":1258},{"style":1047},[1259],{"type":998,"value":1170},{"type":993,"tag":1026,"props":1261,"children":1262},{"style":1041},[1263],{"type":998,"value":1156},{"type":993,"tag":1026,"props":1265,"children":1266},{"style":1053},[1267],{"type":998,"value":1179},{"type":993,"tag":1026,"props":1269,"children":1270},{"style":1041},[1271],{"type":998,"value":1146},{"type":993,"tag":1026,"props":1273,"children":1274},{"style":1047},[1275],{"type":998,"value":1085},{"type":993,"tag":1026,"props":1277,"children":1278},{"style":1088},[1279],{"type":998,"value":1280},"-",{"type":993,"tag":1026,"props":1282,"children":1283},{"style":1047},[1284],{"type":998,"value":1197},{"type":993,"tag":1026,"props":1286,"children":1287},{"style":1041},[1288],{"type":998,"value":1156},{"type":993,"tag":1026,"props":1290,"children":1291},{"style":1053},[1292],{"type":998,"value":1141},{"type":993,"tag":1026,"props":1294,"children":1295},{"style":1047},[1296],{"type":998,"value":1210},{"type":993,"tag":1026,"props":1298,"children":1299},{"style":1032},[1300],{"type":998,"value":1301},"# 7\n",{"type":993,"tag":1026,"props":1303,"children":1304},{"class":1028,"line":100},[1305,1309,1313,1317,1321,1325,1329,1333,1338,1342,1346,1350,1354,1358,1362,1367,1371,1375,1379,1383],{"type":993,"tag":1026,"props":1306,"children":1307},{"style":1041},[1308],{"type":998,"value":1044},{"type":993,"tag":1026,"props":1310,"children":1311},{"style":1047},[1312],{"type":998,"value":1050},{"type":993,"tag":1026,"props":1314,"children":1315},{"style":1088},[1316],{"type":998,"value":1136},{"type":993,"tag":1026,"props":1318,"children":1319},{"style":1053},[1320],{"type":998,"value":1141},{"type":993,"tag":1026,"props":1322,"children":1323},{"style":1041},[1324],{"type":998,"value":1146},{"type":993,"tag":1026,"props":1326,"children":1327},{"style":1047},[1328],{"type":998,"value":1151},{"type":993,"tag":1026,"props":1330,"children":1331},{"style":1041},[1332],{"type":998,"value":1156},{"type":993,"tag":1026,"props":1334,"children":1335},{"style":1053},[1336],{"type":998,"value":1337}," * ",{"type":993,"tag":1026,"props":1339,"children":1340},{"style":1041},[1341],{"type":998,"value":1146},{"type":993,"tag":1026,"props":1343,"children":1344},{"style":1047},[1345],{"type":998,"value":1170},{"type":993,"tag":1026,"props":1347,"children":1348},{"style":1041},[1349],{"type":998,"value":1156},{"type":993,"tag":1026,"props":1351,"children":1352},{"style":1053},[1353],{"type":998,"value":1179},{"type":993,"tag":1026,"props":1355,"children":1356},{"style":1041},[1357],{"type":998,"value":1146},{"type":993,"tag":1026,"props":1359,"children":1360},{"style":1047},[1361],{"type":998,"value":1085},{"type":993,"tag":1026,"props":1363,"children":1364},{"style":1088},[1365],{"type":998,"value":1366},"*",{"type":993,"tag":1026,"props":1368,"children":1369},{"style":1047},[1370],{"type":998,"value":1197},{"type":993,"tag":1026,"props":1372,"children":1373},{"style":1041},[1374],{"type":998,"value":1156},{"type":993,"tag":1026,"props":1376,"children":1377},{"style":1053},[1378],{"type":998,"value":1141},{"type":993,"tag":1026,"props":1380,"children":1381},{"style":1047},[1382],{"type":998,"value":1210},{"type":993,"tag":1026,"props":1384,"children":1385},{"style":1032},[1386],{"type":998,"value":1387},"# 30\n",{"type":993,"tag":1026,"props":1389,"children":1390},{"class":1028,"line":109},[1391,1395,1399,1403,1407,1411,1415,1419,1424,1428,1432,1436,1440,1444,1448,1453,1457,1461,1465,1469],{"type":993,"tag":1026,"props":1392,"children":1393},{"style":1041},[1394],{"type":998,"value":1044},{"type":993,"tag":1026,"props":1396,"children":1397},{"style":1047},[1398],{"type":998,"value":1050},{"type":993,"tag":1026,"props":1400,"children":1401},{"style":1088},[1402],{"type":998,"value":1136},{"type":993,"tag":1026,"props":1404,"children":1405},{"style":1053},[1406],{"type":998,"value":1141},{"type":993,"tag":1026,"props":1408,"children":1409},{"style":1041},[1410],{"type":998,"value":1146},{"type":993,"tag":1026,"props":1412,"children":1413},{"style":1047},[1414],{"type":998,"value":1151},{"type":993,"tag":1026,"props":1416,"children":1417},{"style":1041},[1418],{"type":998,"value":1156},{"type":993,"tag":1026,"props":1420,"children":1421},{"style":1053},[1422],{"type":998,"value":1423}," / ",{"type":993,"tag":1026,"props":1425,"children":1426},{"style":1041},[1427],{"type":998,"value":1146},{"type":993,"tag":1026,"props":1429,"children":1430},{"style":1047},[1431],{"type":998,"value":1170},{"type":993,"tag":1026,"props":1433,"children":1434},{"style":1041},[1435],{"type":998,"value":1156},{"type":993,"tag":1026,"props":1437,"children":1438},{"style":1053},[1439],{"type":998,"value":1179},{"type":993,"tag":1026,"props":1441,"children":1442},{"style":1041},[1443],{"type":998,"value":1146},{"type":993,"tag":1026,"props":1445,"children":1446},{"style":1047},[1447],{"type":998,"value":1085},{"type":993,"tag":1026,"props":1449,"children":1450},{"style":1088},[1451],{"type":998,"value":1452},"/",{"type":993,"tag":1026,"props":1454,"children":1455},{"style":1047},[1456],{"type":998,"value":1197},{"type":993,"tag":1026,"props":1458,"children":1459},{"style":1041},[1460],{"type":998,"value":1156},{"type":993,"tag":1026,"props":1462,"children":1463},{"style":1053},[1464],{"type":998,"value":1141},{"type":993,"tag":1026,"props":1466,"children":1467},{"style":1047},[1468],{"type":998,"value":1210},{"type":993,"tag":1026,"props":1470,"children":1471},{"style":1032},[1472],{"type":998,"value":1473},"# 3.3333...\n",{"type":993,"tag":1475,"props":1476,"children":1478},"h2",{"id":1477},"basic-arithmetic-operators",[1479],{"type":998,"value":1480},"🔢 Basic Arithmetic Operators",{"type":993,"tag":1001,"props":1482,"children":1483},{},[1484],{"type":998,"value":1485},"Python provides all the standard arithmetic operators you need for mathematical calculations. These operators work with numbers and follow the mathematical rules you're familiar with.",{"type":993,"tag":1487,"props":1488,"children":1492},"info-box",{"emoji":1489,"title":1490,"type":1491},"🔢","Arithmetic Operators","info",[1493,1502,1580,1588,1606],{"type":993,"tag":1001,"props":1494,"children":1495},{},[1496],{"type":993,"tag":1497,"props":1498,"children":1499},"strong",{},[1500],{"type":998,"value":1501},"Core Operators:",{"type":993,"tag":1503,"props":1504,"children":1505},"ul",{},[1506,1517,1527,1537,1547,1558,1569],{"type":993,"tag":1507,"props":1508,"children":1509},"li",{},[1510,1515],{"type":993,"tag":1022,"props":1511,"children":1513},{"className":1512},[],[1514],{"type":998,"value":1192},{"type":998,"value":1516}," Addition: Combines numbers",{"type":993,"tag":1507,"props":1518,"children":1519},{},[1520,1525],{"type":993,"tag":1022,"props":1521,"children":1523},{"className":1522},[],[1524],{"type":998,"value":1280},{"type":998,"value":1526}," Subtraction: Finds difference",{"type":993,"tag":1507,"props":1528,"children":1529},{},[1530,1535],{"type":993,"tag":1022,"props":1531,"children":1533},{"className":1532},[],[1534],{"type":998,"value":1366},{"type":998,"value":1536}," Multiplication: Repeated addition",{"type":993,"tag":1507,"props":1538,"children":1539},{},[1540,1545],{"type":993,"tag":1022,"props":1541,"children":1543},{"className":1542},[],[1544],{"type":998,"value":1452},{"type":998,"value":1546}," Division: Creates decimal results",{"type":993,"tag":1507,"props":1548,"children":1549},{},[1550,1556],{"type":993,"tag":1022,"props":1551,"children":1553},{"className":1552},[],[1554],{"type":998,"value":1555},"//",{"type":998,"value":1557}," Floor Division: Integer division",{"type":993,"tag":1507,"props":1559,"children":1560},{},[1561,1567],{"type":993,"tag":1022,"props":1562,"children":1564},{"className":1563},[],[1565],{"type":998,"value":1566},"%",{"type":998,"value":1568}," Modulus: Remainder after division",{"type":993,"tag":1507,"props":1570,"children":1571},{},[1572,1578],{"type":993,"tag":1022,"props":1573,"children":1575},{"className":1574},[],[1576],{"type":998,"value":1577},"**",{"type":998,"value":1579}," Exponentiation: Power operations",{"type":993,"tag":1001,"props":1581,"children":1582},{},[1583],{"type":993,"tag":1497,"props":1584,"children":1585},{},[1586],{"type":998,"value":1587},"Data Type Compatibility:",{"type":993,"tag":1503,"props":1589,"children":1590},{},[1591,1596,1601],{"type":993,"tag":1507,"props":1592,"children":1593},{},[1594],{"type":998,"value":1595},"Works with integers and floats",{"type":993,"tag":1507,"props":1597,"children":1598},{},[1599],{"type":998,"value":1600},"Automatic type promotion (int + float = float)",{"type":993,"tag":1507,"props":1602,"children":1603},{},[1604],{"type":998,"value":1605},"Consistent mathematical behavior",{"type":993,"tag":1001,"props":1607,"children":1608},{},[1609,1614],{"type":993,"tag":1497,"props":1610,"children":1611},{},[1612],{"type":998,"value":1613},"Result Types:",{"type":998,"value":1615}," Operations return appropriate numeric types",{"type":993,"tag":1012,"props":1617,"children":1618},{},[1619],{"type":993,"tag":1016,"props":1620,"children":1622},{"className":1018,"code":1621,"language":6,"meta":8,"style":8},"# Working with different numbers\nprint(\"=== NUMBER TYPES ===\")\n\n# Integers (whole numbers)\nstudents = 25\ngroups = 5\nper_group = students / groups\nprint(f\"{students} students in {groups} groups = {per_group} per group\")\n\n# Decimals (floats)\nprice = 19.99\ntax_rate = 0.08\ntax = price * tax_rate\ntotal = price + tax\nprint(f\"Price: ${price}, Tax: ${tax:.2f}, Total: ${total:.2f}\")\n",[1623],{"type":993,"tag":1022,"props":1624,"children":1625},{"__ignoreMap":8},[1626,1634,1654,1661,1669,1686,1703,1729,1806,1813,1821,1838,1855,1881,1906],{"type":993,"tag":1026,"props":1627,"children":1628},{"class":1028,"line":12},[1629],{"type":993,"tag":1026,"props":1630,"children":1631},{"style":1032},[1632],{"type":998,"value":1633},"# Working with different numbers\n",{"type":993,"tag":1026,"props":1635,"children":1636},{"class":1028,"line":27},[1637,1641,1645,1650],{"type":993,"tag":1026,"props":1638,"children":1639},{"style":1041},[1640],{"type":998,"value":1044},{"type":993,"tag":1026,"props":1642,"children":1643},{"style":1047},[1644],{"type":998,"value":1050},{"type":993,"tag":1026,"props":1646,"children":1647},{"style":1053},[1648],{"type":998,"value":1649},"\"=== NUMBER TYPES ===\"",{"type":993,"tag":1026,"props":1651,"children":1652},{"style":1047},[1653],{"type":998,"value":1061},{"type":993,"tag":1026,"props":1655,"children":1656},{"class":1028,"line":36},[1657],{"type":993,"tag":1026,"props":1658,"children":1659},{"emptyLinePlaceholder":13},[1660],{"type":998,"value":1069},{"type":993,"tag":1026,"props":1662,"children":1663},{"class":1028,"line":45},[1664],{"type":993,"tag":1026,"props":1665,"children":1666},{"style":1032},[1667],{"type":998,"value":1668},"# Integers (whole numbers)\n",{"type":993,"tag":1026,"props":1670,"children":1671},{"class":1028,"line":54},[1672,1677,1681],{"type":993,"tag":1026,"props":1673,"children":1674},{"style":1047},[1675],{"type":998,"value":1676},"students ",{"type":993,"tag":1026,"props":1678,"children":1679},{"style":1088},[1680],{"type":998,"value":1091},{"type":993,"tag":1026,"props":1682,"children":1683},{"style":1041},[1684],{"type":998,"value":1685}," 25\n",{"type":993,"tag":1026,"props":1687,"children":1688},{"class":1028,"line":63},[1689,1694,1698],{"type":993,"tag":1026,"props":1690,"children":1691},{"style":1047},[1692],{"type":998,"value":1693},"groups ",{"type":993,"tag":1026,"props":1695,"children":1696},{"style":1088},[1697],{"type":998,"value":1091},{"type":993,"tag":1026,"props":1699,"children":1700},{"style":1041},[1701],{"type":998,"value":1702}," 5\n",{"type":993,"tag":1026,"props":1704,"children":1705},{"class":1028,"line":72},[1706,1711,1715,1720,1724],{"type":993,"tag":1026,"props":1707,"children":1708},{"style":1047},[1709],{"type":998,"value":1710},"per_group ",{"type":993,"tag":1026,"props":1712,"children":1713},{"style":1088},[1714],{"type":998,"value":1091},{"type":993,"tag":1026,"props":1716,"children":1717},{"style":1047},[1718],{"type":998,"value":1719}," students ",{"type":993,"tag":1026,"props":1721,"children":1722},{"style":1088},[1723],{"type":998,"value":1452},{"type":993,"tag":1026,"props":1725,"children":1726},{"style":1047},[1727],{"type":998,"value":1728}," groups\n",{"type":993,"tag":1026,"props":1730,"children":1731},{"class":1028,"line":81},[1732,1736,1740,1744,1748,1752,1757,1761,1766,1770,1775,1779,1784,1788,1793,1797,1802],{"type":993,"tag":1026,"props":1733,"children":1734},{"style":1041},[1735],{"type":998,"value":1044},{"type":993,"tag":1026,"props":1737,"children":1738},{"style":1047},[1739],{"type":998,"value":1050},{"type":993,"tag":1026,"props":1741,"children":1742},{"style":1088},[1743],{"type":998,"value":1136},{"type":993,"tag":1026,"props":1745,"children":1746},{"style":1053},[1747],{"type":998,"value":1141},{"type":993,"tag":1026,"props":1749,"children":1750},{"style":1041},[1751],{"type":998,"value":1146},{"type":993,"tag":1026,"props":1753,"children":1754},{"style":1047},[1755],{"type":998,"value":1756},"students",{"type":993,"tag":1026,"props":1758,"children":1759},{"style":1041},[1760],{"type":998,"value":1156},{"type":993,"tag":1026,"props":1762,"children":1763},{"style":1053},[1764],{"type":998,"value":1765}," students in ",{"type":993,"tag":1026,"props":1767,"children":1768},{"style":1041},[1769],{"type":998,"value":1146},{"type":993,"tag":1026,"props":1771,"children":1772},{"style":1047},[1773],{"type":998,"value":1774},"groups",{"type":993,"tag":1026,"props":1776,"children":1777},{"style":1041},[1778],{"type":998,"value":1156},{"type":993,"tag":1026,"props":1780,"children":1781},{"style":1053},[1782],{"type":998,"value":1783}," groups = ",{"type":993,"tag":1026,"props":1785,"children":1786},{"style":1041},[1787],{"type":998,"value":1146},{"type":993,"tag":1026,"props":1789,"children":1790},{"style":1047},[1791],{"type":998,"value":1792},"per_group",{"type":993,"tag":1026,"props":1794,"children":1795},{"style":1041},[1796],{"type":998,"value":1156},{"type":993,"tag":1026,"props":1798,"children":1799},{"style":1053},[1800],{"type":998,"value":1801}," per group\"",{"type":993,"tag":1026,"props":1803,"children":1804},{"style":1047},[1805],{"type":998,"value":1061},{"type":993,"tag":1026,"props":1807,"children":1808},{"class":1028,"line":91},[1809],{"type":993,"tag":1026,"props":1810,"children":1811},{"emptyLinePlaceholder":13},[1812],{"type":998,"value":1069},{"type":993,"tag":1026,"props":1814,"children":1815},{"class":1028,"line":100},[1816],{"type":993,"tag":1026,"props":1817,"children":1818},{"style":1032},[1819],{"type":998,"value":1820},"# Decimals (floats)\n",{"type":993,"tag":1026,"props":1822,"children":1823},{"class":1028,"line":109},[1824,1829,1833],{"type":993,"tag":1026,"props":1825,"children":1826},{"style":1047},[1827],{"type":998,"value":1828},"price ",{"type":993,"tag":1026,"props":1830,"children":1831},{"style":1088},[1832],{"type":998,"value":1091},{"type":993,"tag":1026,"props":1834,"children":1835},{"style":1041},[1836],{"type":998,"value":1837}," 19.99\n",{"type":993,"tag":1026,"props":1839,"children":1840},{"class":1028,"line":118},[1841,1846,1850],{"type":993,"tag":1026,"props":1842,"children":1843},{"style":1047},[1844],{"type":998,"value":1845},"tax_rate ",{"type":993,"tag":1026,"props":1847,"children":1848},{"style":1088},[1849],{"type":998,"value":1091},{"type":993,"tag":1026,"props":1851,"children":1852},{"style":1041},[1853],{"type":998,"value":1854}," 0.08\n",{"type":993,"tag":1026,"props":1856,"children":1857},{"class":1028,"line":127},[1858,1863,1867,1872,1876],{"type":993,"tag":1026,"props":1859,"children":1860},{"style":1047},[1861],{"type":998,"value":1862},"tax ",{"type":993,"tag":1026,"props":1864,"children":1865},{"style":1088},[1866],{"type":998,"value":1091},{"type":993,"tag":1026,"props":1868,"children":1869},{"style":1047},[1870],{"type":998,"value":1871}," price ",{"type":993,"tag":1026,"props":1873,"children":1874},{"style":1088},[1875],{"type":998,"value":1366},{"type":993,"tag":1026,"props":1877,"children":1878},{"style":1047},[1879],{"type":998,"value":1880}," tax_rate\n",{"type":993,"tag":1026,"props":1882,"children":1883},{"class":1028,"line":136},[1884,1889,1893,1897,1901],{"type":993,"tag":1026,"props":1885,"children":1886},{"style":1047},[1887],{"type":998,"value":1888},"total ",{"type":993,"tag":1026,"props":1890,"children":1891},{"style":1088},[1892],{"type":998,"value":1091},{"type":993,"tag":1026,"props":1894,"children":1895},{"style":1047},[1896],{"type":998,"value":1871},{"type":993,"tag":1026,"props":1898,"children":1899},{"style":1088},[1900],{"type":998,"value":1192},{"type":993,"tag":1026,"props":1902,"children":1903},{"style":1047},[1904],{"type":998,"value":1905}," tax\n",{"type":993,"tag":1026,"props":1907,"children":1908},{"class":1028,"line":146},[1909,1913,1917,1921,1926,1930,1935,1939,1944,1948,1953,1958,1962,1967,1971,1976,1980,1984,1988],{"type":993,"tag":1026,"props":1910,"children":1911},{"style":1041},[1912],{"type":998,"value":1044},{"type":993,"tag":1026,"props":1914,"children":1915},{"style":1047},[1916],{"type":998,"value":1050},{"type":993,"tag":1026,"props":1918,"children":1919},{"style":1088},[1920],{"type":998,"value":1136},{"type":993,"tag":1026,"props":1922,"children":1923},{"style":1053},[1924],{"type":998,"value":1925},"\"Price: $",{"type":993,"tag":1026,"props":1927,"children":1928},{"style":1041},[1929],{"type":998,"value":1146},{"type":993,"tag":1026,"props":1931,"children":1932},{"style":1047},[1933],{"type":998,"value":1934},"price",{"type":993,"tag":1026,"props":1936,"children":1937},{"style":1041},[1938],{"type":998,"value":1156},{"type":993,"tag":1026,"props":1940,"children":1941},{"style":1053},[1942],{"type":998,"value":1943},", Tax: $",{"type":993,"tag":1026,"props":1945,"children":1946},{"style":1041},[1947],{"type":998,"value":1146},{"type":993,"tag":1026,"props":1949,"children":1950},{"style":1047},[1951],{"type":998,"value":1952},"tax",{"type":993,"tag":1026,"props":1954,"children":1955},{"style":1088},[1956],{"type":998,"value":1957},":.2f",{"type":993,"tag":1026,"props":1959,"children":1960},{"style":1041},[1961],{"type":998,"value":1156},{"type":993,"tag":1026,"props":1963,"children":1964},{"style":1053},[1965],{"type":998,"value":1966},", Total: $",{"type":993,"tag":1026,"props":1968,"children":1969},{"style":1041},[1970],{"type":998,"value":1146},{"type":993,"tag":1026,"props":1972,"children":1973},{"style":1047},[1974],{"type":998,"value":1975},"total",{"type":993,"tag":1026,"props":1977,"children":1978},{"style":1088},[1979],{"type":998,"value":1957},{"type":993,"tag":1026,"props":1981,"children":1982},{"style":1041},[1983],{"type":998,"value":1156},{"type":993,"tag":1026,"props":1985,"children":1986},{"style":1053},[1987],{"type":998,"value":1141},{"type":993,"tag":1026,"props":1989,"children":1990},{"style":1047},[1991],{"type":998,"value":1061},{"type":993,"tag":1475,"props":1993,"children":1995},{"id":1994},"special-division-operations",[1996],{"type":998,"value":1997},"🔄 Special Division Operations",{"type":993,"tag":1001,"props":1999,"children":2000},{},[2001],{"type":998,"value":2002},"Python offers two types of division to handle different mathematical needs. Understanding when to use each type will help you get the exact results you want.",{"type":993,"tag":1487,"props":2004,"children":2008},{"emoji":2005,"title":2006,"type":2007},"🔄","Division Types","success",[2009,2017,2035,2043,2061,2069,2082],{"type":993,"tag":1001,"props":2010,"children":2011},{},[2012],{"type":993,"tag":1497,"props":2013,"children":2014},{},[2015],{"type":998,"value":2016},"Regular Division (/):",{"type":993,"tag":1503,"props":2018,"children":2019},{},[2020,2025,2030],{"type":993,"tag":1507,"props":2021,"children":2022},{},[2023],{"type":998,"value":2024},"Always returns float (decimal number)",{"type":993,"tag":1507,"props":2026,"children":2027},{},[2028],{"type":998,"value":2029},"Provides precise mathematical results",{"type":993,"tag":1507,"props":2031,"children":2032},{},[2033],{"type":998,"value":2034},"Use for: Averages, ratios, precise calculations",{"type":993,"tag":1001,"props":2036,"children":2037},{},[2038],{"type":993,"tag":1497,"props":2039,"children":2040},{},[2041],{"type":998,"value":2042},"Floor Division (//):",{"type":993,"tag":1503,"props":2044,"children":2045},{},[2046,2051,2056],{"type":993,"tag":1507,"props":2047,"children":2048},{},[2049],{"type":998,"value":2050},"Returns integer (whole number part only)",{"type":993,"tag":1507,"props":2052,"children":2053},{},[2054],{"type":998,"value":2055},"Discards decimal portion (truncates)",{"type":993,"tag":1507,"props":2057,"children":2058},{},[2059],{"type":998,"value":2060},"Use for: Counting complete units, pagination",{"type":993,"tag":1001,"props":2062,"children":2063},{},[2064],{"type":993,"tag":1497,"props":2065,"children":2066},{},[2067],{"type":998,"value":2068},"Modulus (%):",{"type":993,"tag":1503,"props":2070,"children":2071},{},[2072,2077],{"type":993,"tag":1507,"props":2073,"children":2074},{},[2075],{"type":998,"value":2076},"Returns remainder after division",{"type":993,"tag":1507,"props":2078,"children":2079},{},[2080],{"type":998,"value":2081},"Use for: Even/odd testing, cycling, validation",{"type":993,"tag":1001,"props":2083,"children":2084},{},[2085,2090,2092],{"type":993,"tag":1497,"props":2086,"children":2087},{},[2088],{"type":998,"value":2089},"Mathematical Relationship:",{"type":998,"value":2091}," ",{"type":993,"tag":1022,"props":2093,"children":2095},{"className":2094},[],[2096],{"type":998,"value":2097},"a = (a // b) * b + (a % b)",{"type":993,"tag":1012,"props":2099,"children":2100},{},[2101],{"type":993,"tag":1016,"props":2102,"children":2104},{"className":1018,"code":2103,"language":6,"meta":8,"style":8},"# Different types of division\nprint(\"=== DIVISION TYPES ===\")\n\ntotal_items = 17\nboxes = 5\n\n# Regular division - gives decimal result\naverage = total_items / boxes\nprint(f\"Average items per box: {average}\")        # 3.4\n\n# Floor division - gives whole number\nfull_boxes = total_items // boxes\nprint(f\"Full boxes: {full_boxes}\")               # 3\n\n# Remainder - what's left over\nleftover = total_items % boxes\nprint(f\"Items left over: {leftover}\")            # 2\n\n# Check: 17 = (3 * 5) + 2 ✓\n",[2105],{"type":993,"tag":1022,"props":2106,"children":2107},{"__ignoreMap":8},[2108,2116,2136,2143,2160,2176,2183,2191,2217,2264,2271,2279,2303,2350,2357,2365,2389,2436,2443],{"type":993,"tag":1026,"props":2109,"children":2110},{"class":1028,"line":12},[2111],{"type":993,"tag":1026,"props":2112,"children":2113},{"style":1032},[2114],{"type":998,"value":2115},"# Different types of division\n",{"type":993,"tag":1026,"props":2117,"children":2118},{"class":1028,"line":27},[2119,2123,2127,2132],{"type":993,"tag":1026,"props":2120,"children":2121},{"style":1041},[2122],{"type":998,"value":1044},{"type":993,"tag":1026,"props":2124,"children":2125},{"style":1047},[2126],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2128,"children":2129},{"style":1053},[2130],{"type":998,"value":2131},"\"=== DIVISION TYPES ===\"",{"type":993,"tag":1026,"props":2133,"children":2134},{"style":1047},[2135],{"type":998,"value":1061},{"type":993,"tag":1026,"props":2137,"children":2138},{"class":1028,"line":36},[2139],{"type":993,"tag":1026,"props":2140,"children":2141},{"emptyLinePlaceholder":13},[2142],{"type":998,"value":1069},{"type":993,"tag":1026,"props":2144,"children":2145},{"class":1028,"line":45},[2146,2151,2155],{"type":993,"tag":1026,"props":2147,"children":2148},{"style":1047},[2149],{"type":998,"value":2150},"total_items ",{"type":993,"tag":1026,"props":2152,"children":2153},{"style":1088},[2154],{"type":998,"value":1091},{"type":993,"tag":1026,"props":2156,"children":2157},{"style":1041},[2158],{"type":998,"value":2159}," 17\n",{"type":993,"tag":1026,"props":2161,"children":2162},{"class":1028,"line":54},[2163,2168,2172],{"type":993,"tag":1026,"props":2164,"children":2165},{"style":1047},[2166],{"type":998,"value":2167},"boxes ",{"type":993,"tag":1026,"props":2169,"children":2170},{"style":1088},[2171],{"type":998,"value":1091},{"type":993,"tag":1026,"props":2173,"children":2174},{"style":1041},[2175],{"type":998,"value":1702},{"type":993,"tag":1026,"props":2177,"children":2178},{"class":1028,"line":63},[2179],{"type":993,"tag":1026,"props":2180,"children":2181},{"emptyLinePlaceholder":13},[2182],{"type":998,"value":1069},{"type":993,"tag":1026,"props":2184,"children":2185},{"class":1028,"line":72},[2186],{"type":993,"tag":1026,"props":2187,"children":2188},{"style":1032},[2189],{"type":998,"value":2190},"# Regular division - gives decimal result\n",{"type":993,"tag":1026,"props":2192,"children":2193},{"class":1028,"line":81},[2194,2199,2203,2208,2212],{"type":993,"tag":1026,"props":2195,"children":2196},{"style":1047},[2197],{"type":998,"value":2198},"average ",{"type":993,"tag":1026,"props":2200,"children":2201},{"style":1088},[2202],{"type":998,"value":1091},{"type":993,"tag":1026,"props":2204,"children":2205},{"style":1047},[2206],{"type":998,"value":2207}," total_items ",{"type":993,"tag":1026,"props":2209,"children":2210},{"style":1088},[2211],{"type":998,"value":1452},{"type":993,"tag":1026,"props":2213,"children":2214},{"style":1047},[2215],{"type":998,"value":2216}," boxes\n",{"type":993,"tag":1026,"props":2218,"children":2219},{"class":1028,"line":91},[2220,2224,2228,2232,2237,2241,2246,2250,2254,2259],{"type":993,"tag":1026,"props":2221,"children":2222},{"style":1041},[2223],{"type":998,"value":1044},{"type":993,"tag":1026,"props":2225,"children":2226},{"style":1047},[2227],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2229,"children":2230},{"style":1088},[2231],{"type":998,"value":1136},{"type":993,"tag":1026,"props":2233,"children":2234},{"style":1053},[2235],{"type":998,"value":2236},"\"Average items per box: ",{"type":993,"tag":1026,"props":2238,"children":2239},{"style":1041},[2240],{"type":998,"value":1146},{"type":993,"tag":1026,"props":2242,"children":2243},{"style":1047},[2244],{"type":998,"value":2245},"average",{"type":993,"tag":1026,"props":2247,"children":2248},{"style":1041},[2249],{"type":998,"value":1156},{"type":993,"tag":1026,"props":2251,"children":2252},{"style":1053},[2253],{"type":998,"value":1141},{"type":993,"tag":1026,"props":2255,"children":2256},{"style":1047},[2257],{"type":998,"value":2258},")        ",{"type":993,"tag":1026,"props":2260,"children":2261},{"style":1032},[2262],{"type":998,"value":2263},"# 3.4\n",{"type":993,"tag":1026,"props":2265,"children":2266},{"class":1028,"line":100},[2267],{"type":993,"tag":1026,"props":2268,"children":2269},{"emptyLinePlaceholder":13},[2270],{"type":998,"value":1069},{"type":993,"tag":1026,"props":2272,"children":2273},{"class":1028,"line":109},[2274],{"type":993,"tag":1026,"props":2275,"children":2276},{"style":1032},[2277],{"type":998,"value":2278},"# Floor division - gives whole number\n",{"type":993,"tag":1026,"props":2280,"children":2281},{"class":1028,"line":118},[2282,2287,2291,2295,2299],{"type":993,"tag":1026,"props":2283,"children":2284},{"style":1047},[2285],{"type":998,"value":2286},"full_boxes ",{"type":993,"tag":1026,"props":2288,"children":2289},{"style":1088},[2290],{"type":998,"value":1091},{"type":993,"tag":1026,"props":2292,"children":2293},{"style":1047},[2294],{"type":998,"value":2207},{"type":993,"tag":1026,"props":2296,"children":2297},{"style":1088},[2298],{"type":998,"value":1555},{"type":993,"tag":1026,"props":2300,"children":2301},{"style":1047},[2302],{"type":998,"value":2216},{"type":993,"tag":1026,"props":2304,"children":2305},{"class":1028,"line":127},[2306,2310,2314,2318,2323,2327,2332,2336,2340,2345],{"type":993,"tag":1026,"props":2307,"children":2308},{"style":1041},[2309],{"type":998,"value":1044},{"type":993,"tag":1026,"props":2311,"children":2312},{"style":1047},[2313],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2315,"children":2316},{"style":1088},[2317],{"type":998,"value":1136},{"type":993,"tag":1026,"props":2319,"children":2320},{"style":1053},[2321],{"type":998,"value":2322},"\"Full boxes: ",{"type":993,"tag":1026,"props":2324,"children":2325},{"style":1041},[2326],{"type":998,"value":1146},{"type":993,"tag":1026,"props":2328,"children":2329},{"style":1047},[2330],{"type":998,"value":2331},"full_boxes",{"type":993,"tag":1026,"props":2333,"children":2334},{"style":1041},[2335],{"type":998,"value":1156},{"type":993,"tag":1026,"props":2337,"children":2338},{"style":1053},[2339],{"type":998,"value":1141},{"type":993,"tag":1026,"props":2341,"children":2342},{"style":1047},[2343],{"type":998,"value":2344},")               ",{"type":993,"tag":1026,"props":2346,"children":2347},{"style":1032},[2348],{"type":998,"value":2349},"# 3\n",{"type":993,"tag":1026,"props":2351,"children":2352},{"class":1028,"line":136},[2353],{"type":993,"tag":1026,"props":2354,"children":2355},{"emptyLinePlaceholder":13},[2356],{"type":998,"value":1069},{"type":993,"tag":1026,"props":2358,"children":2359},{"class":1028,"line":146},[2360],{"type":993,"tag":1026,"props":2361,"children":2362},{"style":1032},[2363],{"type":998,"value":2364},"# Remainder - what's left over\n",{"type":993,"tag":1026,"props":2366,"children":2367},{"class":1028,"line":155},[2368,2373,2377,2381,2385],{"type":993,"tag":1026,"props":2369,"children":2370},{"style":1047},[2371],{"type":998,"value":2372},"leftover ",{"type":993,"tag":1026,"props":2374,"children":2375},{"style":1088},[2376],{"type":998,"value":1091},{"type":993,"tag":1026,"props":2378,"children":2379},{"style":1047},[2380],{"type":998,"value":2207},{"type":993,"tag":1026,"props":2382,"children":2383},{"style":1088},[2384],{"type":998,"value":1566},{"type":993,"tag":1026,"props":2386,"children":2387},{"style":1047},[2388],{"type":998,"value":2216},{"type":993,"tag":1026,"props":2390,"children":2391},{"class":1028,"line":164},[2392,2396,2400,2404,2409,2413,2418,2422,2426,2431],{"type":993,"tag":1026,"props":2393,"children":2394},{"style":1041},[2395],{"type":998,"value":1044},{"type":993,"tag":1026,"props":2397,"children":2398},{"style":1047},[2399],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2401,"children":2402},{"style":1088},[2403],{"type":998,"value":1136},{"type":993,"tag":1026,"props":2405,"children":2406},{"style":1053},[2407],{"type":998,"value":2408},"\"Items left over: ",{"type":993,"tag":1026,"props":2410,"children":2411},{"style":1041},[2412],{"type":998,"value":1146},{"type":993,"tag":1026,"props":2414,"children":2415},{"style":1047},[2416],{"type":998,"value":2417},"leftover",{"type":993,"tag":1026,"props":2419,"children":2420},{"style":1041},[2421],{"type":998,"value":1156},{"type":993,"tag":1026,"props":2423,"children":2424},{"style":1053},[2425],{"type":998,"value":1141},{"type":993,"tag":1026,"props":2427,"children":2428},{"style":1047},[2429],{"type":998,"value":2430},")            ",{"type":993,"tag":1026,"props":2432,"children":2433},{"style":1032},[2434],{"type":998,"value":2435},"# 2\n",{"type":993,"tag":1026,"props":2437,"children":2438},{"class":1028,"line":173},[2439],{"type":993,"tag":1026,"props":2440,"children":2441},{"emptyLinePlaceholder":13},[2442],{"type":998,"value":1069},{"type":993,"tag":1026,"props":2444,"children":2445},{"class":1028,"line":182},[2446],{"type":993,"tag":1026,"props":2447,"children":2448},{"style":1032},[2449],{"type":998,"value":2450},"# Check: 17 = (3 * 5) + 2 ✓\n",{"type":993,"tag":1475,"props":2452,"children":2454},{"id":2453},"exponentiation",[2455],{"type":998,"value":2456},"⚡ Exponentiation",{"type":993,"tag":1001,"props":2458,"children":2459},{},[2460],{"type":998,"value":2461},"Python uses the double asterisk (**) for exponentiation (raising numbers to powers). This operator handles both simple squares and complex exponential calculations.",{"type":993,"tag":1487,"props":2463,"children":2467},{"emoji":2464,"title":2465,"type":2466},"⚡","Exponentiation Guidelines","warning",[2468,2483,2491,2538,2548,2558],{"type":993,"tag":1001,"props":2469,"children":2470},{},[2471,2476,2477],{"type":993,"tag":1497,"props":2472,"children":2473},{},[2474],{"type":998,"value":2475},"Syntax:",{"type":998,"value":2091},{"type":993,"tag":1022,"props":2478,"children":2480},{"className":2479},[],[2481],{"type":998,"value":2482},"base ** exponent",{"type":993,"tag":1001,"props":2484,"children":2485},{},[2486],{"type":993,"tag":1497,"props":2487,"children":2488},{},[2489],{"type":998,"value":2490},"Common Applications:",{"type":993,"tag":1503,"props":2492,"children":2493},{},[2494,2505,2516,2527],{"type":993,"tag":1507,"props":2495,"children":2496},{},[2497,2499],{"type":998,"value":2498},"Squares: ",{"type":993,"tag":1022,"props":2500,"children":2502},{"className":2501},[],[2503],{"type":998,"value":2504},"x ** 2",{"type":993,"tag":1507,"props":2506,"children":2507},{},[2508,2510],{"type":998,"value":2509},"Cubes: ",{"type":993,"tag":1022,"props":2511,"children":2513},{"className":2512},[],[2514],{"type":998,"value":2515},"x ** 3",{"type":993,"tag":1507,"props":2517,"children":2518},{},[2519,2521],{"type":998,"value":2520},"Square roots: ",{"type":993,"tag":1022,"props":2522,"children":2524},{"className":2523},[],[2525],{"type":998,"value":2526},"x ** 0.5",{"type":993,"tag":1507,"props":2528,"children":2529},{},[2530,2532],{"type":998,"value":2531},"Scientific notation: ",{"type":993,"tag":1022,"props":2533,"children":2535},{"className":2534},[],[2536],{"type":998,"value":2537},"10 ** 6",{"type":993,"tag":1001,"props":2539,"children":2540},{},[2541,2546],{"type":993,"tag":1497,"props":2542,"children":2543},{},[2544],{"type":998,"value":2545},"Performance:",{"type":998,"value":2547}," More efficient than repeated multiplication",{"type":993,"tag":1001,"props":2549,"children":2550},{},[2551,2556],{"type":993,"tag":1497,"props":2552,"children":2553},{},[2554],{"type":998,"value":2555},"Accuracy:",{"type":998,"value":2557}," Maintains precision for complex calculations",{"type":993,"tag":1001,"props":2559,"children":2560},{},[2561,2566],{"type":993,"tag":1497,"props":2562,"children":2563},{},[2564],{"type":998,"value":2565},"Flexibility:",{"type":998,"value":2567}," Handles fractional exponents for roots",{"type":993,"tag":1012,"props":2569,"children":2570},{},[2571],{"type":993,"tag":1016,"props":2572,"children":2574},{"className":1018,"code":2573,"language":6,"meta":8,"style":8},"# Working with exponents\nprint(\"=== EXPONENTS ===\")\n\n# Simple squares\nside = 5\narea = side ** 2\nprint(f\"Square with side {side} has area {area}\")     # 25\n\n# Cubes\nedge = 3\nvolume = edge ** 3\nprint(f\"Cube with edge {edge} has volume {volume}\")   # 27\n\n# Square roots (using fractional exponents)\nnumber = 16\nsquare_root = number ** 0.5\nprint(f\"Square root of {number} is {square_root}\")   # 4.0\n\n# 10 Powers of\nscientific = 10 ** 6\nprint(f\"10^6 = {scientific}\")                        # 1000000\n",[2575],{"type":993,"tag":1022,"props":2576,"children":2577},{"__ignoreMap":8},[2578,2586,2606,2613,2621,2637,2663,2728,2735,2743,2759,2784,2849,2856,2864,2881,2907,2971,2978,2986,3013],{"type":993,"tag":1026,"props":2579,"children":2580},{"class":1028,"line":12},[2581],{"type":993,"tag":1026,"props":2582,"children":2583},{"style":1032},[2584],{"type":998,"value":2585},"# Working with exponents\n",{"type":993,"tag":1026,"props":2587,"children":2588},{"class":1028,"line":27},[2589,2593,2597,2602],{"type":993,"tag":1026,"props":2590,"children":2591},{"style":1041},[2592],{"type":998,"value":1044},{"type":993,"tag":1026,"props":2594,"children":2595},{"style":1047},[2596],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2598,"children":2599},{"style":1053},[2600],{"type":998,"value":2601},"\"=== EXPONENTS ===\"",{"type":993,"tag":1026,"props":2603,"children":2604},{"style":1047},[2605],{"type":998,"value":1061},{"type":993,"tag":1026,"props":2607,"children":2608},{"class":1028,"line":36},[2609],{"type":993,"tag":1026,"props":2610,"children":2611},{"emptyLinePlaceholder":13},[2612],{"type":998,"value":1069},{"type":993,"tag":1026,"props":2614,"children":2615},{"class":1028,"line":45},[2616],{"type":993,"tag":1026,"props":2617,"children":2618},{"style":1032},[2619],{"type":998,"value":2620},"# Simple squares\n",{"type":993,"tag":1026,"props":2622,"children":2623},{"class":1028,"line":54},[2624,2629,2633],{"type":993,"tag":1026,"props":2625,"children":2626},{"style":1047},[2627],{"type":998,"value":2628},"side ",{"type":993,"tag":1026,"props":2630,"children":2631},{"style":1088},[2632],{"type":998,"value":1091},{"type":993,"tag":1026,"props":2634,"children":2635},{"style":1041},[2636],{"type":998,"value":1702},{"type":993,"tag":1026,"props":2638,"children":2639},{"class":1028,"line":63},[2640,2645,2649,2654,2658],{"type":993,"tag":1026,"props":2641,"children":2642},{"style":1047},[2643],{"type":998,"value":2644},"area ",{"type":993,"tag":1026,"props":2646,"children":2647},{"style":1088},[2648],{"type":998,"value":1091},{"type":993,"tag":1026,"props":2650,"children":2651},{"style":1047},[2652],{"type":998,"value":2653}," side ",{"type":993,"tag":1026,"props":2655,"children":2656},{"style":1088},[2657],{"type":998,"value":1577},{"type":993,"tag":1026,"props":2659,"children":2660},{"style":1041},[2661],{"type":998,"value":2662}," 2\n",{"type":993,"tag":1026,"props":2664,"children":2665},{"class":1028,"line":72},[2666,2670,2674,2678,2683,2687,2692,2696,2701,2705,2710,2714,2718,2723],{"type":993,"tag":1026,"props":2667,"children":2668},{"style":1041},[2669],{"type":998,"value":1044},{"type":993,"tag":1026,"props":2671,"children":2672},{"style":1047},[2673],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2675,"children":2676},{"style":1088},[2677],{"type":998,"value":1136},{"type":993,"tag":1026,"props":2679,"children":2680},{"style":1053},[2681],{"type":998,"value":2682},"\"Square with side ",{"type":993,"tag":1026,"props":2684,"children":2685},{"style":1041},[2686],{"type":998,"value":1146},{"type":993,"tag":1026,"props":2688,"children":2689},{"style":1047},[2690],{"type":998,"value":2691},"side",{"type":993,"tag":1026,"props":2693,"children":2694},{"style":1041},[2695],{"type":998,"value":1156},{"type":993,"tag":1026,"props":2697,"children":2698},{"style":1053},[2699],{"type":998,"value":2700}," has area ",{"type":993,"tag":1026,"props":2702,"children":2703},{"style":1041},[2704],{"type":998,"value":1146},{"type":993,"tag":1026,"props":2706,"children":2707},{"style":1047},[2708],{"type":998,"value":2709},"area",{"type":993,"tag":1026,"props":2711,"children":2712},{"style":1041},[2713],{"type":998,"value":1156},{"type":993,"tag":1026,"props":2715,"children":2716},{"style":1053},[2717],{"type":998,"value":1141},{"type":993,"tag":1026,"props":2719,"children":2720},{"style":1047},[2721],{"type":998,"value":2722},")     ",{"type":993,"tag":1026,"props":2724,"children":2725},{"style":1032},[2726],{"type":998,"value":2727},"# 25\n",{"type":993,"tag":1026,"props":2729,"children":2730},{"class":1028,"line":81},[2731],{"type":993,"tag":1026,"props":2732,"children":2733},{"emptyLinePlaceholder":13},[2734],{"type":998,"value":1069},{"type":993,"tag":1026,"props":2736,"children":2737},{"class":1028,"line":91},[2738],{"type":993,"tag":1026,"props":2739,"children":2740},{"style":1032},[2741],{"type":998,"value":2742},"# Cubes\n",{"type":993,"tag":1026,"props":2744,"children":2745},{"class":1028,"line":100},[2746,2751,2755],{"type":993,"tag":1026,"props":2747,"children":2748},{"style":1047},[2749],{"type":998,"value":2750},"edge ",{"type":993,"tag":1026,"props":2752,"children":2753},{"style":1088},[2754],{"type":998,"value":1091},{"type":993,"tag":1026,"props":2756,"children":2757},{"style":1041},[2758],{"type":998,"value":1113},{"type":993,"tag":1026,"props":2760,"children":2761},{"class":1028,"line":109},[2762,2767,2771,2776,2780],{"type":993,"tag":1026,"props":2763,"children":2764},{"style":1047},[2765],{"type":998,"value":2766},"volume ",{"type":993,"tag":1026,"props":2768,"children":2769},{"style":1088},[2770],{"type":998,"value":1091},{"type":993,"tag":1026,"props":2772,"children":2773},{"style":1047},[2774],{"type":998,"value":2775}," edge ",{"type":993,"tag":1026,"props":2777,"children":2778},{"style":1088},[2779],{"type":998,"value":1577},{"type":993,"tag":1026,"props":2781,"children":2782},{"style":1041},[2783],{"type":998,"value":1113},{"type":993,"tag":1026,"props":2785,"children":2786},{"class":1028,"line":118},[2787,2791,2795,2799,2804,2808,2813,2817,2822,2826,2831,2835,2839,2844],{"type":993,"tag":1026,"props":2788,"children":2789},{"style":1041},[2790],{"type":998,"value":1044},{"type":993,"tag":1026,"props":2792,"children":2793},{"style":1047},[2794],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2796,"children":2797},{"style":1088},[2798],{"type":998,"value":1136},{"type":993,"tag":1026,"props":2800,"children":2801},{"style":1053},[2802],{"type":998,"value":2803},"\"Cube with edge ",{"type":993,"tag":1026,"props":2805,"children":2806},{"style":1041},[2807],{"type":998,"value":1146},{"type":993,"tag":1026,"props":2809,"children":2810},{"style":1047},[2811],{"type":998,"value":2812},"edge",{"type":993,"tag":1026,"props":2814,"children":2815},{"style":1041},[2816],{"type":998,"value":1156},{"type":993,"tag":1026,"props":2818,"children":2819},{"style":1053},[2820],{"type":998,"value":2821}," has volume ",{"type":993,"tag":1026,"props":2823,"children":2824},{"style":1041},[2825],{"type":998,"value":1146},{"type":993,"tag":1026,"props":2827,"children":2828},{"style":1047},[2829],{"type":998,"value":2830},"volume",{"type":993,"tag":1026,"props":2832,"children":2833},{"style":1041},[2834],{"type":998,"value":1156},{"type":993,"tag":1026,"props":2836,"children":2837},{"style":1053},[2838],{"type":998,"value":1141},{"type":993,"tag":1026,"props":2840,"children":2841},{"style":1047},[2842],{"type":998,"value":2843},")   ",{"type":993,"tag":1026,"props":2845,"children":2846},{"style":1032},[2847],{"type":998,"value":2848},"# 27\n",{"type":993,"tag":1026,"props":2850,"children":2851},{"class":1028,"line":127},[2852],{"type":993,"tag":1026,"props":2853,"children":2854},{"emptyLinePlaceholder":13},[2855],{"type":998,"value":1069},{"type":993,"tag":1026,"props":2857,"children":2858},{"class":1028,"line":136},[2859],{"type":993,"tag":1026,"props":2860,"children":2861},{"style":1032},[2862],{"type":998,"value":2863},"# Square roots (using fractional exponents)\n",{"type":993,"tag":1026,"props":2865,"children":2866},{"class":1028,"line":146},[2867,2872,2876],{"type":993,"tag":1026,"props":2868,"children":2869},{"style":1047},[2870],{"type":998,"value":2871},"number ",{"type":993,"tag":1026,"props":2873,"children":2874},{"style":1088},[2875],{"type":998,"value":1091},{"type":993,"tag":1026,"props":2877,"children":2878},{"style":1041},[2879],{"type":998,"value":2880}," 16\n",{"type":993,"tag":1026,"props":2882,"children":2883},{"class":1028,"line":155},[2884,2889,2893,2898,2902],{"type":993,"tag":1026,"props":2885,"children":2886},{"style":1047},[2887],{"type":998,"value":2888},"square_root ",{"type":993,"tag":1026,"props":2890,"children":2891},{"style":1088},[2892],{"type":998,"value":1091},{"type":993,"tag":1026,"props":2894,"children":2895},{"style":1047},[2896],{"type":998,"value":2897}," number ",{"type":993,"tag":1026,"props":2899,"children":2900},{"style":1088},[2901],{"type":998,"value":1577},{"type":993,"tag":1026,"props":2903,"children":2904},{"style":1041},[2905],{"type":998,"value":2906}," 0.5\n",{"type":993,"tag":1026,"props":2908,"children":2909},{"class":1028,"line":164},[2910,2914,2918,2922,2927,2931,2936,2940,2945,2949,2954,2958,2962,2966],{"type":993,"tag":1026,"props":2911,"children":2912},{"style":1041},[2913],{"type":998,"value":1044},{"type":993,"tag":1026,"props":2915,"children":2916},{"style":1047},[2917],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2919,"children":2920},{"style":1088},[2921],{"type":998,"value":1136},{"type":993,"tag":1026,"props":2923,"children":2924},{"style":1053},[2925],{"type":998,"value":2926},"\"Square root of ",{"type":993,"tag":1026,"props":2928,"children":2929},{"style":1041},[2930],{"type":998,"value":1146},{"type":993,"tag":1026,"props":2932,"children":2933},{"style":1047},[2934],{"type":998,"value":2935},"number",{"type":993,"tag":1026,"props":2937,"children":2938},{"style":1041},[2939],{"type":998,"value":1156},{"type":993,"tag":1026,"props":2941,"children":2942},{"style":1053},[2943],{"type":998,"value":2944}," is ",{"type":993,"tag":1026,"props":2946,"children":2947},{"style":1041},[2948],{"type":998,"value":1146},{"type":993,"tag":1026,"props":2950,"children":2951},{"style":1047},[2952],{"type":998,"value":2953},"square_root",{"type":993,"tag":1026,"props":2955,"children":2956},{"style":1041},[2957],{"type":998,"value":1156},{"type":993,"tag":1026,"props":2959,"children":2960},{"style":1053},[2961],{"type":998,"value":1141},{"type":993,"tag":1026,"props":2963,"children":2964},{"style":1047},[2965],{"type":998,"value":2843},{"type":993,"tag":1026,"props":2967,"children":2968},{"style":1032},[2969],{"type":998,"value":2970},"# 4.0\n",{"type":993,"tag":1026,"props":2972,"children":2973},{"class":1028,"line":173},[2974],{"type":993,"tag":1026,"props":2975,"children":2976},{"emptyLinePlaceholder":13},[2977],{"type":998,"value":1069},{"type":993,"tag":1026,"props":2979,"children":2980},{"class":1028,"line":182},[2981],{"type":993,"tag":1026,"props":2982,"children":2983},{"style":1032},[2984],{"type":998,"value":2985},"# 10 Powers of\n",{"type":993,"tag":1026,"props":2987,"children":2988},{"class":1028,"line":191},[2989,2994,2998,3003,3008],{"type":993,"tag":1026,"props":2990,"children":2991},{"style":1047},[2992],{"type":998,"value":2993},"scientific ",{"type":993,"tag":1026,"props":2995,"children":2996},{"style":1088},[2997],{"type":998,"value":1091},{"type":993,"tag":1026,"props":2999,"children":3000},{"style":1041},[3001],{"type":998,"value":3002}," 10",{"type":993,"tag":1026,"props":3004,"children":3005},{"style":1088},[3006],{"type":998,"value":3007}," **",{"type":993,"tag":1026,"props":3009,"children":3010},{"style":1041},[3011],{"type":998,"value":3012}," 6\n",{"type":993,"tag":1026,"props":3014,"children":3015},{"class":1028,"line":201},[3016,3020,3024,3028,3033,3037,3042,3046,3050,3055],{"type":993,"tag":1026,"props":3017,"children":3018},{"style":1041},[3019],{"type":998,"value":1044},{"type":993,"tag":1026,"props":3021,"children":3022},{"style":1047},[3023],{"type":998,"value":1050},{"type":993,"tag":1026,"props":3025,"children":3026},{"style":1088},[3027],{"type":998,"value":1136},{"type":993,"tag":1026,"props":3029,"children":3030},{"style":1053},[3031],{"type":998,"value":3032},"\"10^6 = ",{"type":993,"tag":1026,"props":3034,"children":3035},{"style":1041},[3036],{"type":998,"value":1146},{"type":993,"tag":1026,"props":3038,"children":3039},{"style":1047},[3040],{"type":998,"value":3041},"scientific",{"type":993,"tag":1026,"props":3043,"children":3044},{"style":1041},[3045],{"type":998,"value":1156},{"type":993,"tag":1026,"props":3047,"children":3048},{"style":1053},[3049],{"type":998,"value":1141},{"type":993,"tag":1026,"props":3051,"children":3052},{"style":1047},[3053],{"type":998,"value":3054},")                        ",{"type":993,"tag":1026,"props":3056,"children":3057},{"style":1032},[3058],{"type":998,"value":3059},"# 1000000\n",{"type":993,"tag":1475,"props":3061,"children":3063},{"id":3062},"order-of-operations",[3064],{"type":998,"value":3065},"📐 Order of Operations",{"type":993,"tag":1001,"props":3067,"children":3068},{},[3069],{"type":998,"value":3070},"Python follows the standard mathematical order of operations (PEMDAS): Parentheses, Exponents, Multiplication/Division, Addition/Subtraction. Understanding this order helps you write expressions that calculate correctly.",{"type":993,"tag":1487,"props":3072,"children":3075},{"emoji":3073,"title":3074,"type":1491},"📐","Mathematical Precedence (PEMDAS)",[3076,3084,3178,3186,3209],{"type":993,"tag":1001,"props":3077,"children":3078},{},[3079],{"type":993,"tag":1497,"props":3080,"children":3081},{},[3082],{"type":998,"value":3083},"Order of Operations:",{"type":993,"tag":3085,"props":3086,"children":3087},"ol",{},[3088,3106,3122,3157],{"type":993,"tag":1507,"props":3089,"children":3090},{},[3091,3096,3098,3104],{"type":993,"tag":1497,"props":3092,"children":3093},{},[3094],{"type":998,"value":3095},"Parentheses",{"type":998,"value":3097},": ",{"type":993,"tag":1022,"props":3099,"children":3101},{"className":3100},[],[3102],{"type":998,"value":3103},"()",{"type":998,"value":3105}," - Highest priority",{"type":993,"tag":1507,"props":3107,"children":3108},{},[3109,3114,3115,3120],{"type":993,"tag":1497,"props":3110,"children":3111},{},[3112],{"type":998,"value":3113},"Exponents",{"type":998,"value":3097},{"type":993,"tag":1022,"props":3116,"children":3118},{"className":3117},[],[3119],{"type":998,"value":1577},{"type":998,"value":3121}," - Power operations",{"type":993,"tag":1507,"props":3123,"children":3124},{},[3125,3130,3131,3136,3138,3143,3144,3149,3150,3155],{"type":993,"tag":1497,"props":3126,"children":3127},{},[3128],{"type":998,"value":3129},"Multiplication/Division",{"type":998,"value":3097},{"type":993,"tag":1022,"props":3132,"children":3134},{"className":3133},[],[3135],{"type":998,"value":1366},{"type":998,"value":3137},", ",{"type":993,"tag":1022,"props":3139,"children":3141},{"className":3140},[],[3142],{"type":998,"value":1452},{"type":998,"value":3137},{"type":993,"tag":1022,"props":3145,"children":3147},{"className":3146},[],[3148],{"type":998,"value":1555},{"type":998,"value":3137},{"type":993,"tag":1022,"props":3151,"children":3153},{"className":3152},[],[3154],{"type":998,"value":1566},{"type":998,"value":3156}," - Left to right",{"type":993,"tag":1507,"props":3158,"children":3159},{},[3160,3165,3166,3171,3172,3177],{"type":993,"tag":1497,"props":3161,"children":3162},{},[3163],{"type":998,"value":3164},"Addition/Subtraction",{"type":998,"value":3097},{"type":993,"tag":1022,"props":3167,"children":3169},{"className":3168},[],[3170],{"type":998,"value":1192},{"type":998,"value":3137},{"type":993,"tag":1022,"props":3173,"children":3175},{"className":3174},[],[3176],{"type":998,"value":1280},{"type":998,"value":3156},{"type":993,"tag":1001,"props":3179,"children":3180},{},[3181],{"type":993,"tag":1497,"props":3182,"children":3183},{},[3184],{"type":998,"value":3185},"Best Practices:",{"type":993,"tag":1503,"props":3187,"children":3188},{},[3189,3194,3199,3204],{"type":993,"tag":1507,"props":3190,"children":3191},{},[3192],{"type":998,"value":3193},"Use parentheses for clarity",{"type":993,"tag":1507,"props":3195,"children":3196},{},[3197],{"type":998,"value":3198},"Break complex expressions into steps",{"type":993,"tag":1507,"props":3200,"children":3201},{},[3202],{"type":998,"value":3203},"Group related operations together",{"type":993,"tag":1507,"props":3205,"children":3206},{},[3207],{"type":998,"value":3208},"Document complex mathematical formulas",{"type":993,"tag":1001,"props":3210,"children":3211},{},[3212,3217],{"type":993,"tag":1497,"props":3213,"children":3214},{},[3215],{"type":998,"value":3216},"Readability:",{"type":998,"value":3218}," Clear expressions prevent calculation errors",{"type":993,"tag":1012,"props":3220,"children":3221},{},[3222],{"type":993,"tag":1016,"props":3223,"children":3225},{"className":1018,"code":3224,"language":6,"meta":8,"style":8},"# Order of operations examples\nprint(\"=== ORDER OF OPERATIONS ===\")\n\n# Without parentheses - follows PEMDAS\nresult1 = 2 + 3 * 4\nprint(f\"2 + 3 * 4 = {result1}\")              # 14 (multiplication first)\n\n# With parentheses - forces addition first\nresult2 = (2 + 3) * 4\nprint(f\"(2 + 3) * 4 = {result2}\")            # 20 (addition first)\n\n# Complex calculation with precedence\nresult3 = 2 + 3 * 4 ** 2\nprint(f\"2 + 3 * 4 ** 2 = {result3}\")         # 50 (4^2=16, 3*16=48, 2+48=50)\n\n# Practical example: discount and tax calculation\nprice = 100\ndiscount = 0.20\ntax = 0.08\nfinal_price = price * (1 - discount) * (1 + tax)\nprint(f\"Final price after 20% discount + 8% tax: ${final_price:.2f}\")\n",[3226],{"type":993,"tag":1022,"props":3227,"children":3228},{"__ignoreMap":8},[3229,3237,3257,3264,3272,3309,3356,3363,3371,3414,3460,3467,3475,3516,3563,3570,3578,3594,3611,3626,3686],{"type":993,"tag":1026,"props":3230,"children":3231},{"class":1028,"line":12},[3232],{"type":993,"tag":1026,"props":3233,"children":3234},{"style":1032},[3235],{"type":998,"value":3236},"# Order of operations examples\n",{"type":993,"tag":1026,"props":3238,"children":3239},{"class":1028,"line":27},[3240,3244,3248,3253],{"type":993,"tag":1026,"props":3241,"children":3242},{"style":1041},[3243],{"type":998,"value":1044},{"type":993,"tag":1026,"props":3245,"children":3246},{"style":1047},[3247],{"type":998,"value":1050},{"type":993,"tag":1026,"props":3249,"children":3250},{"style":1053},[3251],{"type":998,"value":3252},"\"=== ORDER OF OPERATIONS ===\"",{"type":993,"tag":1026,"props":3254,"children":3255},{"style":1047},[3256],{"type":998,"value":1061},{"type":993,"tag":1026,"props":3258,"children":3259},{"class":1028,"line":36},[3260],{"type":993,"tag":1026,"props":3261,"children":3262},{"emptyLinePlaceholder":13},[3263],{"type":998,"value":1069},{"type":993,"tag":1026,"props":3265,"children":3266},{"class":1028,"line":45},[3267],{"type":993,"tag":1026,"props":3268,"children":3269},{"style":1032},[3270],{"type":998,"value":3271},"# Without parentheses - follows PEMDAS\n",{"type":993,"tag":1026,"props":3273,"children":3274},{"class":1028,"line":54},[3275,3280,3284,3289,3294,3299,3304],{"type":993,"tag":1026,"props":3276,"children":3277},{"style":1047},[3278],{"type":998,"value":3279},"result1 ",{"type":993,"tag":1026,"props":3281,"children":3282},{"style":1088},[3283],{"type":998,"value":1091},{"type":993,"tag":1026,"props":3285,"children":3286},{"style":1041},[3287],{"type":998,"value":3288}," 2",{"type":993,"tag":1026,"props":3290,"children":3291},{"style":1088},[3292],{"type":998,"value":3293}," +",{"type":993,"tag":1026,"props":3295,"children":3296},{"style":1041},[3297],{"type":998,"value":3298}," 3",{"type":993,"tag":1026,"props":3300,"children":3301},{"style":1088},[3302],{"type":998,"value":3303}," *",{"type":993,"tag":1026,"props":3305,"children":3306},{"style":1041},[3307],{"type":998,"value":3308}," 4\n",{"type":993,"tag":1026,"props":3310,"children":3311},{"class":1028,"line":63},[3312,3316,3320,3324,3329,3333,3338,3342,3346,3351],{"type":993,"tag":1026,"props":3313,"children":3314},{"style":1041},[3315],{"type":998,"value":1044},{"type":993,"tag":1026,"props":3317,"children":3318},{"style":1047},[3319],{"type":998,"value":1050},{"type":993,"tag":1026,"props":3321,"children":3322},{"style":1088},[3323],{"type":998,"value":1136},{"type":993,"tag":1026,"props":3325,"children":3326},{"style":1053},[3327],{"type":998,"value":3328},"\"2 + 3 * 4 = ",{"type":993,"tag":1026,"props":3330,"children":3331},{"style":1041},[3332],{"type":998,"value":1146},{"type":993,"tag":1026,"props":3334,"children":3335},{"style":1047},[3336],{"type":998,"value":3337},"result1",{"type":993,"tag":1026,"props":3339,"children":3340},{"style":1041},[3341],{"type":998,"value":1156},{"type":993,"tag":1026,"props":3343,"children":3344},{"style":1053},[3345],{"type":998,"value":1141},{"type":993,"tag":1026,"props":3347,"children":3348},{"style":1047},[3349],{"type":998,"value":3350},")              ",{"type":993,"tag":1026,"props":3352,"children":3353},{"style":1032},[3354],{"type":998,"value":3355},"# 14 (multiplication first)\n",{"type":993,"tag":1026,"props":3357,"children":3358},{"class":1028,"line":72},[3359],{"type":993,"tag":1026,"props":3360,"children":3361},{"emptyLinePlaceholder":13},[3362],{"type":998,"value":1069},{"type":993,"tag":1026,"props":3364,"children":3365},{"class":1028,"line":81},[3366],{"type":993,"tag":1026,"props":3367,"children":3368},{"style":1032},[3369],{"type":998,"value":3370},"# With parentheses - forces addition first\n",{"type":993,"tag":1026,"props":3372,"children":3373},{"class":1028,"line":91},[3374,3379,3383,3388,3393,3397,3401,3406,3410],{"type":993,"tag":1026,"props":3375,"children":3376},{"style":1047},[3377],{"type":998,"value":3378},"result2 ",{"type":993,"tag":1026,"props":3380,"children":3381},{"style":1088},[3382],{"type":998,"value":1091},{"type":993,"tag":1026,"props":3384,"children":3385},{"style":1047},[3386],{"type":998,"value":3387}," (",{"type":993,"tag":1026,"props":3389,"children":3390},{"style":1041},[3391],{"type":998,"value":3392},"2",{"type":993,"tag":1026,"props":3394,"children":3395},{"style":1088},[3396],{"type":998,"value":3293},{"type":993,"tag":1026,"props":3398,"children":3399},{"style":1041},[3400],{"type":998,"value":3298},{"type":993,"tag":1026,"props":3402,"children":3403},{"style":1047},[3404],{"type":998,"value":3405},") ",{"type":993,"tag":1026,"props":3407,"children":3408},{"style":1088},[3409],{"type":998,"value":1366},{"type":993,"tag":1026,"props":3411,"children":3412},{"style":1041},[3413],{"type":998,"value":3308},{"type":993,"tag":1026,"props":3415,"children":3416},{"class":1028,"line":100},[3417,3421,3425,3429,3434,3438,3443,3447,3451,3455],{"type":993,"tag":1026,"props":3418,"children":3419},{"style":1041},[3420],{"type":998,"value":1044},{"type":993,"tag":1026,"props":3422,"children":3423},{"style":1047},[3424],{"type":998,"value":1050},{"type":993,"tag":1026,"props":3426,"children":3427},{"style":1088},[3428],{"type":998,"value":1136},{"type":993,"tag":1026,"props":3430,"children":3431},{"style":1053},[3432],{"type":998,"value":3433},"\"(2 + 3) * 4 = ",{"type":993,"tag":1026,"props":3435,"children":3436},{"style":1041},[3437],{"type":998,"value":1146},{"type":993,"tag":1026,"props":3439,"children":3440},{"style":1047},[3441],{"type":998,"value":3442},"result2",{"type":993,"tag":1026,"props":3444,"children":3445},{"style":1041},[3446],{"type":998,"value":1156},{"type":993,"tag":1026,"props":3448,"children":3449},{"style":1053},[3450],{"type":998,"value":1141},{"type":993,"tag":1026,"props":3452,"children":3453},{"style":1047},[3454],{"type":998,"value":2430},{"type":993,"tag":1026,"props":3456,"children":3457},{"style":1032},[3458],{"type":998,"value":3459},"# 20 (addition first)\n",{"type":993,"tag":1026,"props":3461,"children":3462},{"class":1028,"line":109},[3463],{"type":993,"tag":1026,"props":3464,"children":3465},{"emptyLinePlaceholder":13},[3466],{"type":998,"value":1069},{"type":993,"tag":1026,"props":3468,"children":3469},{"class":1028,"line":118},[3470],{"type":993,"tag":1026,"props":3471,"children":3472},{"style":1032},[3473],{"type":998,"value":3474},"# Complex calculation with precedence\n",{"type":993,"tag":1026,"props":3476,"children":3477},{"class":1028,"line":127},[3478,3483,3487,3491,3495,3499,3503,3508,3512],{"type":993,"tag":1026,"props":3479,"children":3480},{"style":1047},[3481],{"type":998,"value":3482},"result3 ",{"type":993,"tag":1026,"props":3484,"children":3485},{"style":1088},[3486],{"type":998,"value":1091},{"type":993,"tag":1026,"props":3488,"children":3489},{"style":1041},[3490],{"type":998,"value":3288},{"type":993,"tag":1026,"props":3492,"children":3493},{"style":1088},[3494],{"type":998,"value":3293},{"type":993,"tag":1026,"props":3496,"children":3497},{"style":1041},[3498],{"type":998,"value":3298},{"type":993,"tag":1026,"props":3500,"children":3501},{"style":1088},[3502],{"type":998,"value":3303},{"type":993,"tag":1026,"props":3504,"children":3505},{"style":1041},[3506],{"type":998,"value":3507}," 4",{"type":993,"tag":1026,"props":3509,"children":3510},{"style":1088},[3511],{"type":998,"value":3007},{"type":993,"tag":1026,"props":3513,"children":3514},{"style":1041},[3515],{"type":998,"value":2662},{"type":993,"tag":1026,"props":3517,"children":3518},{"class":1028,"line":136},[3519,3523,3527,3531,3536,3540,3545,3549,3553,3558],{"type":993,"tag":1026,"props":3520,"children":3521},{"style":1041},[3522],{"type":998,"value":1044},{"type":993,"tag":1026,"props":3524,"children":3525},{"style":1047},[3526],{"type":998,"value":1050},{"type":993,"tag":1026,"props":3528,"children":3529},{"style":1088},[3530],{"type":998,"value":1136},{"type":993,"tag":1026,"props":3532,"children":3533},{"style":1053},[3534],{"type":998,"value":3535},"\"2 + 3 * 4 ** 2 = ",{"type":993,"tag":1026,"props":3537,"children":3538},{"style":1041},[3539],{"type":998,"value":1146},{"type":993,"tag":1026,"props":3541,"children":3542},{"style":1047},[3543],{"type":998,"value":3544},"result3",{"type":993,"tag":1026,"props":3546,"children":3547},{"style":1041},[3548],{"type":998,"value":1156},{"type":993,"tag":1026,"props":3550,"children":3551},{"style":1053},[3552],{"type":998,"value":1141},{"type":993,"tag":1026,"props":3554,"children":3555},{"style":1047},[3556],{"type":998,"value":3557},")         ",{"type":993,"tag":1026,"props":3559,"children":3560},{"style":1032},[3561],{"type":998,"value":3562},"# 50 (4^2=16, 3*16=48, 2+48=50)\n",{"type":993,"tag":1026,"props":3564,"children":3565},{"class":1028,"line":146},[3566],{"type":993,"tag":1026,"props":3567,"children":3568},{"emptyLinePlaceholder":13},[3569],{"type":998,"value":1069},{"type":993,"tag":1026,"props":3571,"children":3572},{"class":1028,"line":155},[3573],{"type":993,"tag":1026,"props":3574,"children":3575},{"style":1032},[3576],{"type":998,"value":3577},"# Practical example: discount and tax calculation\n",{"type":993,"tag":1026,"props":3579,"children":3580},{"class":1028,"line":164},[3581,3585,3589],{"type":993,"tag":1026,"props":3582,"children":3583},{"style":1047},[3584],{"type":998,"value":1828},{"type":993,"tag":1026,"props":3586,"children":3587},{"style":1088},[3588],{"type":998,"value":1091},{"type":993,"tag":1026,"props":3590,"children":3591},{"style":1041},[3592],{"type":998,"value":3593}," 100\n",{"type":993,"tag":1026,"props":3595,"children":3596},{"class":1028,"line":173},[3597,3602,3606],{"type":993,"tag":1026,"props":3598,"children":3599},{"style":1047},[3600],{"type":998,"value":3601},"discount ",{"type":993,"tag":1026,"props":3603,"children":3604},{"style":1088},[3605],{"type":998,"value":1091},{"type":993,"tag":1026,"props":3607,"children":3608},{"style":1041},[3609],{"type":998,"value":3610}," 0.20\n",{"type":993,"tag":1026,"props":3612,"children":3613},{"class":1028,"line":182},[3614,3618,3622],{"type":993,"tag":1026,"props":3615,"children":3616},{"style":1047},[3617],{"type":998,"value":1862},{"type":993,"tag":1026,"props":3619,"children":3620},{"style":1088},[3621],{"type":998,"value":1091},{"type":993,"tag":1026,"props":3623,"children":3624},{"style":1041},[3625],{"type":998,"value":1854},{"type":993,"tag":1026,"props":3627,"children":3628},{"class":1028,"line":191},[3629,3634,3638,3642,3646,3650,3655,3660,3665,3669,3673,3677,3681],{"type":993,"tag":1026,"props":3630,"children":3631},{"style":1047},[3632],{"type":998,"value":3633},"final_price ",{"type":993,"tag":1026,"props":3635,"children":3636},{"style":1088},[3637],{"type":998,"value":1091},{"type":993,"tag":1026,"props":3639,"children":3640},{"style":1047},[3641],{"type":998,"value":1871},{"type":993,"tag":1026,"props":3643,"children":3644},{"style":1088},[3645],{"type":998,"value":1366},{"type":993,"tag":1026,"props":3647,"children":3648},{"style":1047},[3649],{"type":998,"value":3387},{"type":993,"tag":1026,"props":3651,"children":3652},{"style":1041},[3653],{"type":998,"value":3654},"1",{"type":993,"tag":1026,"props":3656,"children":3657},{"style":1088},[3658],{"type":998,"value":3659}," -",{"type":993,"tag":1026,"props":3661,"children":3662},{"style":1047},[3663],{"type":998,"value":3664}," discount) ",{"type":993,"tag":1026,"props":3666,"children":3667},{"style":1088},[3668],{"type":998,"value":1366},{"type":993,"tag":1026,"props":3670,"children":3671},{"style":1047},[3672],{"type":998,"value":3387},{"type":993,"tag":1026,"props":3674,"children":3675},{"style":1041},[3676],{"type":998,"value":3654},{"type":993,"tag":1026,"props":3678,"children":3679},{"style":1088},[3680],{"type":998,"value":3293},{"type":993,"tag":1026,"props":3682,"children":3683},{"style":1047},[3684],{"type":998,"value":3685}," tax)\n",{"type":993,"tag":1026,"props":3687,"children":3688},{"class":1028,"line":201},[3689,3693,3697,3701,3706,3710,3715,3719,3723,3727],{"type":993,"tag":1026,"props":3690,"children":3691},{"style":1041},[3692],{"type":998,"value":1044},{"type":993,"tag":1026,"props":3694,"children":3695},{"style":1047},[3696],{"type":998,"value":1050},{"type":993,"tag":1026,"props":3698,"children":3699},{"style":1088},[3700],{"type":998,"value":1136},{"type":993,"tag":1026,"props":3702,"children":3703},{"style":1053},[3704],{"type":998,"value":3705},"\"Final price after 20% discount + 8% tax: $",{"type":993,"tag":1026,"props":3707,"children":3708},{"style":1041},[3709],{"type":998,"value":1146},{"type":993,"tag":1026,"props":3711,"children":3712},{"style":1047},[3713],{"type":998,"value":3714},"final_price",{"type":993,"tag":1026,"props":3716,"children":3717},{"style":1088},[3718],{"type":998,"value":1957},{"type":993,"tag":1026,"props":3720,"children":3721},{"style":1041},[3722],{"type":998,"value":1156},{"type":993,"tag":1026,"props":3724,"children":3725},{"style":1053},[3726],{"type":998,"value":1141},{"type":993,"tag":1026,"props":3728,"children":3729},{"style":1047},[3730],{"type":998,"value":1061},{"type":993,"tag":1475,"props":3732,"children":3733},{"id":71},[3734],{"type":998,"value":3735},"📊 Working with Variables",{"type":993,"tag":1001,"props":3737,"children":3738},{},[3739,3741,3749],{"type":998,"value":3740},"Math operations become powerful when combined with ",{"type":993,"tag":1497,"props":3742,"children":3743},{},[3744],{"type":993,"tag":1151,"props":3745,"children":3746},{"href":68},[3747],{"type":998,"value":3748},"variables",{"type":998,"value":3750},". You can store numbers in variables and perform calculations using those variables, making your code flexible and reusable.",{"type":993,"tag":1012,"props":3752,"children":3753},{},[3754],{"type":993,"tag":1016,"props":3755,"children":3757},{"className":1018,"code":3756,"language":6,"meta":8,"style":8},"# Math with variables\nprint(\"=== VARIABLES IN MATH ===\")\n\n# Circle calculations\nradius = 7\npi = 3.14159\n\ncircumference = 2 * pi * radius\narea = pi * radius ** 2\n\nprint(f\"Circle with radius {radius}:\")\nprint(f\"  Circumference: {circumference:.2f}\")\nprint(f\"  Area: {area:.2f}\")\n\n# Temperature conversion\ncelsius = 25\nfahrenheit = (celsius * 9/5) + 32\nprint(f\"{celsius}°C = {fahrenheit}°F\")\n\n# Compound interest calculation\nprincipal = 1000\nrate = 0.05  # 5% annual rate\nyears = 2\namount = principal * (1 + rate) ** years\nprint(f\"${principal} at {rate*100}% for {years} years = ${amount:.2f}\")\n",[3758],{"type":993,"tag":1022,"props":3759,"children":3760},{"__ignoreMap":8},[3761,3769,3789,3796,3804,3821,3838,3845,3879,3911,3918,3960,4005,4049,4056,4064,4080,4128,4187,4194,4202,4219,4241,4257,4304],{"type":993,"tag":1026,"props":3762,"children":3763},{"class":1028,"line":12},[3764],{"type":993,"tag":1026,"props":3765,"children":3766},{"style":1032},[3767],{"type":998,"value":3768},"# Math with variables\n",{"type":993,"tag":1026,"props":3770,"children":3771},{"class":1028,"line":27},[3772,3776,3780,3785],{"type":993,"tag":1026,"props":3773,"children":3774},{"style":1041},[3775],{"type":998,"value":1044},{"type":993,"tag":1026,"props":3777,"children":3778},{"style":1047},[3779],{"type":998,"value":1050},{"type":993,"tag":1026,"props":3781,"children":3782},{"style":1053},[3783],{"type":998,"value":3784},"\"=== VARIABLES IN MATH ===\"",{"type":993,"tag":1026,"props":3786,"children":3787},{"style":1047},[3788],{"type":998,"value":1061},{"type":993,"tag":1026,"props":3790,"children":3791},{"class":1028,"line":36},[3792],{"type":993,"tag":1026,"props":3793,"children":3794},{"emptyLinePlaceholder":13},[3795],{"type":998,"value":1069},{"type":993,"tag":1026,"props":3797,"children":3798},{"class":1028,"line":45},[3799],{"type":993,"tag":1026,"props":3800,"children":3801},{"style":1032},[3802],{"type":998,"value":3803},"# Circle calculations\n",{"type":993,"tag":1026,"props":3805,"children":3806},{"class":1028,"line":54},[3807,3812,3816],{"type":993,"tag":1026,"props":3808,"children":3809},{"style":1047},[3810],{"type":998,"value":3811},"radius ",{"type":993,"tag":1026,"props":3813,"children":3814},{"style":1088},[3815],{"type":998,"value":1091},{"type":993,"tag":1026,"props":3817,"children":3818},{"style":1041},[3819],{"type":998,"value":3820}," 7\n",{"type":993,"tag":1026,"props":3822,"children":3823},{"class":1028,"line":63},[3824,3829,3833],{"type":993,"tag":1026,"props":3825,"children":3826},{"style":1047},[3827],{"type":998,"value":3828},"pi ",{"type":993,"tag":1026,"props":3830,"children":3831},{"style":1088},[3832],{"type":998,"value":1091},{"type":993,"tag":1026,"props":3834,"children":3835},{"style":1041},[3836],{"type":998,"value":3837}," 3.14159\n",{"type":993,"tag":1026,"props":3839,"children":3840},{"class":1028,"line":72},[3841],{"type":993,"tag":1026,"props":3842,"children":3843},{"emptyLinePlaceholder":13},[3844],{"type":998,"value":1069},{"type":993,"tag":1026,"props":3846,"children":3847},{"class":1028,"line":81},[3848,3853,3857,3861,3865,3870,3874],{"type":993,"tag":1026,"props":3849,"children":3850},{"style":1047},[3851],{"type":998,"value":3852},"circumference ",{"type":993,"tag":1026,"props":3854,"children":3855},{"style":1088},[3856],{"type":998,"value":1091},{"type":993,"tag":1026,"props":3858,"children":3859},{"style":1041},[3860],{"type":998,"value":3288},{"type":993,"tag":1026,"props":3862,"children":3863},{"style":1088},[3864],{"type":998,"value":3303},{"type":993,"tag":1026,"props":3866,"children":3867},{"style":1047},[3868],{"type":998,"value":3869}," pi ",{"type":993,"tag":1026,"props":3871,"children":3872},{"style":1088},[3873],{"type":998,"value":1366},{"type":993,"tag":1026,"props":3875,"children":3876},{"style":1047},[3877],{"type":998,"value":3878}," radius\n",{"type":993,"tag":1026,"props":3880,"children":3881},{"class":1028,"line":91},[3882,3886,3890,3894,3898,3903,3907],{"type":993,"tag":1026,"props":3883,"children":3884},{"style":1047},[3885],{"type":998,"value":2644},{"type":993,"tag":1026,"props":3887,"children":3888},{"style":1088},[3889],{"type":998,"value":1091},{"type":993,"tag":1026,"props":3891,"children":3892},{"style":1047},[3893],{"type":998,"value":3869},{"type":993,"tag":1026,"props":3895,"children":3896},{"style":1088},[3897],{"type":998,"value":1366},{"type":993,"tag":1026,"props":3899,"children":3900},{"style":1047},[3901],{"type":998,"value":3902}," radius ",{"type":993,"tag":1026,"props":3904,"children":3905},{"style":1088},[3906],{"type":998,"value":1577},{"type":993,"tag":1026,"props":3908,"children":3909},{"style":1041},[3910],{"type":998,"value":2662},{"type":993,"tag":1026,"props":3912,"children":3913},{"class":1028,"line":100},[3914],{"type":993,"tag":1026,"props":3915,"children":3916},{"emptyLinePlaceholder":13},[3917],{"type":998,"value":1069},{"type":993,"tag":1026,"props":3919,"children":3920},{"class":1028,"line":109},[3921,3925,3929,3933,3938,3942,3947,3951,3956],{"type":993,"tag":1026,"props":3922,"children":3923},{"style":1041},[3924],{"type":998,"value":1044},{"type":993,"tag":1026,"props":3926,"children":3927},{"style":1047},[3928],{"type":998,"value":1050},{"type":993,"tag":1026,"props":3930,"children":3931},{"style":1088},[3932],{"type":998,"value":1136},{"type":993,"tag":1026,"props":3934,"children":3935},{"style":1053},[3936],{"type":998,"value":3937},"\"Circle with radius ",{"type":993,"tag":1026,"props":3939,"children":3940},{"style":1041},[3941],{"type":998,"value":1146},{"type":993,"tag":1026,"props":3943,"children":3944},{"style":1047},[3945],{"type":998,"value":3946},"radius",{"type":993,"tag":1026,"props":3948,"children":3949},{"style":1041},[3950],{"type":998,"value":1156},{"type":993,"tag":1026,"props":3952,"children":3953},{"style":1053},[3954],{"type":998,"value":3955},":\"",{"type":993,"tag":1026,"props":3957,"children":3958},{"style":1047},[3959],{"type":998,"value":1061},{"type":993,"tag":1026,"props":3961,"children":3962},{"class":1028,"line":118},[3963,3967,3971,3975,3980,3984,3989,3993,3997,4001],{"type":993,"tag":1026,"props":3964,"children":3965},{"style":1041},[3966],{"type":998,"value":1044},{"type":993,"tag":1026,"props":3968,"children":3969},{"style":1047},[3970],{"type":998,"value":1050},{"type":993,"tag":1026,"props":3972,"children":3973},{"style":1088},[3974],{"type":998,"value":1136},{"type":993,"tag":1026,"props":3976,"children":3977},{"style":1053},[3978],{"type":998,"value":3979},"\"  Circumference: ",{"type":993,"tag":1026,"props":3981,"children":3982},{"style":1041},[3983],{"type":998,"value":1146},{"type":993,"tag":1026,"props":3985,"children":3986},{"style":1047},[3987],{"type":998,"value":3988},"circumference",{"type":993,"tag":1026,"props":3990,"children":3991},{"style":1088},[3992],{"type":998,"value":1957},{"type":993,"tag":1026,"props":3994,"children":3995},{"style":1041},[3996],{"type":998,"value":1156},{"type":993,"tag":1026,"props":3998,"children":3999},{"style":1053},[4000],{"type":998,"value":1141},{"type":993,"tag":1026,"props":4002,"children":4003},{"style":1047},[4004],{"type":998,"value":1061},{"type":993,"tag":1026,"props":4006,"children":4007},{"class":1028,"line":127},[4008,4012,4016,4020,4025,4029,4033,4037,4041,4045],{"type":993,"tag":1026,"props":4009,"children":4010},{"style":1041},[4011],{"type":998,"value":1044},{"type":993,"tag":1026,"props":4013,"children":4014},{"style":1047},[4015],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4017,"children":4018},{"style":1088},[4019],{"type":998,"value":1136},{"type":993,"tag":1026,"props":4021,"children":4022},{"style":1053},[4023],{"type":998,"value":4024},"\"  Area: ",{"type":993,"tag":1026,"props":4026,"children":4027},{"style":1041},[4028],{"type":998,"value":1146},{"type":993,"tag":1026,"props":4030,"children":4031},{"style":1047},[4032],{"type":998,"value":2709},{"type":993,"tag":1026,"props":4034,"children":4035},{"style":1088},[4036],{"type":998,"value":1957},{"type":993,"tag":1026,"props":4038,"children":4039},{"style":1041},[4040],{"type":998,"value":1156},{"type":993,"tag":1026,"props":4042,"children":4043},{"style":1053},[4044],{"type":998,"value":1141},{"type":993,"tag":1026,"props":4046,"children":4047},{"style":1047},[4048],{"type":998,"value":1061},{"type":993,"tag":1026,"props":4050,"children":4051},{"class":1028,"line":136},[4052],{"type":993,"tag":1026,"props":4053,"children":4054},{"emptyLinePlaceholder":13},[4055],{"type":998,"value":1069},{"type":993,"tag":1026,"props":4057,"children":4058},{"class":1028,"line":146},[4059],{"type":993,"tag":1026,"props":4060,"children":4061},{"style":1032},[4062],{"type":998,"value":4063},"# Temperature conversion\n",{"type":993,"tag":1026,"props":4065,"children":4066},{"class":1028,"line":155},[4067,4072,4076],{"type":993,"tag":1026,"props":4068,"children":4069},{"style":1047},[4070],{"type":998,"value":4071},"celsius ",{"type":993,"tag":1026,"props":4073,"children":4074},{"style":1088},[4075],{"type":998,"value":1091},{"type":993,"tag":1026,"props":4077,"children":4078},{"style":1041},[4079],{"type":998,"value":1685},{"type":993,"tag":1026,"props":4081,"children":4082},{"class":1028,"line":164},[4083,4088,4092,4097,4101,4106,4110,4115,4119,4123],{"type":993,"tag":1026,"props":4084,"children":4085},{"style":1047},[4086],{"type":998,"value":4087},"fahrenheit ",{"type":993,"tag":1026,"props":4089,"children":4090},{"style":1088},[4091],{"type":998,"value":1091},{"type":993,"tag":1026,"props":4093,"children":4094},{"style":1047},[4095],{"type":998,"value":4096}," (celsius ",{"type":993,"tag":1026,"props":4098,"children":4099},{"style":1088},[4100],{"type":998,"value":1366},{"type":993,"tag":1026,"props":4102,"children":4103},{"style":1041},[4104],{"type":998,"value":4105}," 9",{"type":993,"tag":1026,"props":4107,"children":4108},{"style":1088},[4109],{"type":998,"value":1452},{"type":993,"tag":1026,"props":4111,"children":4112},{"style":1041},[4113],{"type":998,"value":4114},"5",{"type":993,"tag":1026,"props":4116,"children":4117},{"style":1047},[4118],{"type":998,"value":3405},{"type":993,"tag":1026,"props":4120,"children":4121},{"style":1088},[4122],{"type":998,"value":1192},{"type":993,"tag":1026,"props":4124,"children":4125},{"style":1041},[4126],{"type":998,"value":4127}," 32\n",{"type":993,"tag":1026,"props":4129,"children":4130},{"class":1028,"line":173},[4131,4135,4139,4143,4147,4151,4156,4160,4165,4169,4174,4178,4183],{"type":993,"tag":1026,"props":4132,"children":4133},{"style":1041},[4134],{"type":998,"value":1044},{"type":993,"tag":1026,"props":4136,"children":4137},{"style":1047},[4138],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4140,"children":4141},{"style":1088},[4142],{"type":998,"value":1136},{"type":993,"tag":1026,"props":4144,"children":4145},{"style":1053},[4146],{"type":998,"value":1141},{"type":993,"tag":1026,"props":4148,"children":4149},{"style":1041},[4150],{"type":998,"value":1146},{"type":993,"tag":1026,"props":4152,"children":4153},{"style":1047},[4154],{"type":998,"value":4155},"celsius",{"type":993,"tag":1026,"props":4157,"children":4158},{"style":1041},[4159],{"type":998,"value":1156},{"type":993,"tag":1026,"props":4161,"children":4162},{"style":1053},[4163],{"type":998,"value":4164},"°C = ",{"type":993,"tag":1026,"props":4166,"children":4167},{"style":1041},[4168],{"type":998,"value":1146},{"type":993,"tag":1026,"props":4170,"children":4171},{"style":1047},[4172],{"type":998,"value":4173},"fahrenheit",{"type":993,"tag":1026,"props":4175,"children":4176},{"style":1041},[4177],{"type":998,"value":1156},{"type":993,"tag":1026,"props":4179,"children":4180},{"style":1053},[4181],{"type":998,"value":4182},"°F\"",{"type":993,"tag":1026,"props":4184,"children":4185},{"style":1047},[4186],{"type":998,"value":1061},{"type":993,"tag":1026,"props":4188,"children":4189},{"class":1028,"line":182},[4190],{"type":993,"tag":1026,"props":4191,"children":4192},{"emptyLinePlaceholder":13},[4193],{"type":998,"value":1069},{"type":993,"tag":1026,"props":4195,"children":4196},{"class":1028,"line":191},[4197],{"type":993,"tag":1026,"props":4198,"children":4199},{"style":1032},[4200],{"type":998,"value":4201},"# Compound interest calculation\n",{"type":993,"tag":1026,"props":4203,"children":4204},{"class":1028,"line":201},[4205,4210,4214],{"type":993,"tag":1026,"props":4206,"children":4207},{"style":1047},[4208],{"type":998,"value":4209},"principal ",{"type":993,"tag":1026,"props":4211,"children":4212},{"style":1088},[4213],{"type":998,"value":1091},{"type":993,"tag":1026,"props":4215,"children":4216},{"style":1041},[4217],{"type":998,"value":4218}," 1000\n",{"type":993,"tag":1026,"props":4220,"children":4221},{"class":1028,"line":210},[4222,4227,4231,4236],{"type":993,"tag":1026,"props":4223,"children":4224},{"style":1047},[4225],{"type":998,"value":4226},"rate ",{"type":993,"tag":1026,"props":4228,"children":4229},{"style":1088},[4230],{"type":998,"value":1091},{"type":993,"tag":1026,"props":4232,"children":4233},{"style":1041},[4234],{"type":998,"value":4235}," 0.05",{"type":993,"tag":1026,"props":4237,"children":4238},{"style":1032},[4239],{"type":998,"value":4240},"  # 5% annual rate\n",{"type":993,"tag":1026,"props":4242,"children":4243},{"class":1028,"line":219},[4244,4249,4253],{"type":993,"tag":1026,"props":4245,"children":4246},{"style":1047},[4247],{"type":998,"value":4248},"years ",{"type":993,"tag":1026,"props":4250,"children":4251},{"style":1088},[4252],{"type":998,"value":1091},{"type":993,"tag":1026,"props":4254,"children":4255},{"style":1041},[4256],{"type":998,"value":2662},{"type":993,"tag":1026,"props":4258,"children":4259},{"class":1028,"line":228},[4260,4265,4269,4274,4278,4282,4286,4290,4295,4299],{"type":993,"tag":1026,"props":4261,"children":4262},{"style":1047},[4263],{"type":998,"value":4264},"amount ",{"type":993,"tag":1026,"props":4266,"children":4267},{"style":1088},[4268],{"type":998,"value":1091},{"type":993,"tag":1026,"props":4270,"children":4271},{"style":1047},[4272],{"type":998,"value":4273}," principal ",{"type":993,"tag":1026,"props":4275,"children":4276},{"style":1088},[4277],{"type":998,"value":1366},{"type":993,"tag":1026,"props":4279,"children":4280},{"style":1047},[4281],{"type":998,"value":3387},{"type":993,"tag":1026,"props":4283,"children":4284},{"style":1041},[4285],{"type":998,"value":3654},{"type":993,"tag":1026,"props":4287,"children":4288},{"style":1088},[4289],{"type":998,"value":3293},{"type":993,"tag":1026,"props":4291,"children":4292},{"style":1047},[4293],{"type":998,"value":4294}," rate) ",{"type":993,"tag":1026,"props":4296,"children":4297},{"style":1088},[4298],{"type":998,"value":1577},{"type":993,"tag":1026,"props":4300,"children":4301},{"style":1047},[4302],{"type":998,"value":4303}," years\n",{"type":993,"tag":1026,"props":4305,"children":4306},{"class":1028,"line":238},[4307,4311,4315,4319,4324,4328,4333,4337,4342,4346,4351,4355,4360,4365,4369,4374,4378,4383,4387,4392,4396,4400,4404],{"type":993,"tag":1026,"props":4308,"children":4309},{"style":1041},[4310],{"type":998,"value":1044},{"type":993,"tag":1026,"props":4312,"children":4313},{"style":1047},[4314],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4316,"children":4317},{"style":1088},[4318],{"type":998,"value":1136},{"type":993,"tag":1026,"props":4320,"children":4321},{"style":1053},[4322],{"type":998,"value":4323},"\"$",{"type":993,"tag":1026,"props":4325,"children":4326},{"style":1041},[4327],{"type":998,"value":1146},{"type":993,"tag":1026,"props":4329,"children":4330},{"style":1047},[4331],{"type":998,"value":4332},"principal",{"type":993,"tag":1026,"props":4334,"children":4335},{"style":1041},[4336],{"type":998,"value":1156},{"type":993,"tag":1026,"props":4338,"children":4339},{"style":1053},[4340],{"type":998,"value":4341}," at ",{"type":993,"tag":1026,"props":4343,"children":4344},{"style":1041},[4345],{"type":998,"value":1146},{"type":993,"tag":1026,"props":4347,"children":4348},{"style":1047},[4349],{"type":998,"value":4350},"rate",{"type":993,"tag":1026,"props":4352,"children":4353},{"style":1088},[4354],{"type":998,"value":1366},{"type":993,"tag":1026,"props":4356,"children":4357},{"style":1041},[4358],{"type":998,"value":4359},"100}",{"type":993,"tag":1026,"props":4361,"children":4362},{"style":1053},[4363],{"type":998,"value":4364},"% for ",{"type":993,"tag":1026,"props":4366,"children":4367},{"style":1041},[4368],{"type":998,"value":1146},{"type":993,"tag":1026,"props":4370,"children":4371},{"style":1047},[4372],{"type":998,"value":4373},"years",{"type":993,"tag":1026,"props":4375,"children":4376},{"style":1041},[4377],{"type":998,"value":1156},{"type":993,"tag":1026,"props":4379,"children":4380},{"style":1053},[4381],{"type":998,"value":4382}," years = $",{"type":993,"tag":1026,"props":4384,"children":4385},{"style":1041},[4386],{"type":998,"value":1146},{"type":993,"tag":1026,"props":4388,"children":4389},{"style":1047},[4390],{"type":998,"value":4391},"amount",{"type":993,"tag":1026,"props":4393,"children":4394},{"style":1088},[4395],{"type":998,"value":1957},{"type":993,"tag":1026,"props":4397,"children":4398},{"style":1041},[4399],{"type":998,"value":1156},{"type":993,"tag":1026,"props":4401,"children":4402},{"style":1053},[4403],{"type":998,"value":1141},{"type":993,"tag":1026,"props":4405,"children":4406},{"style":1047},[4407],{"type":998,"value":1061},{"type":993,"tag":1475,"props":4409,"children":4411},{"id":4410},"common-math-patterns",[4412],{"type":998,"value":4413},"🔄 Common Math Patterns",{"type":993,"tag":1001,"props":4415,"children":4416},{},[4417],{"type":998,"value":4418},"Certain mathematical patterns appear frequently in programming. Learning these patterns will help you recognize and implement common calculations more efficiently.",{"type":993,"tag":1487,"props":4420,"children":4422},{"emoji":2005,"title":4421,"type":2007},"Essential Math Patterns",[4423,4431,4516,4524,4547],{"type":993,"tag":1001,"props":4424,"children":4425},{},[4426],{"type":993,"tag":1497,"props":4427,"children":4428},{},[4429],{"type":998,"value":4430},"Frequent Calculations:",{"type":993,"tag":1503,"props":4432,"children":4433},{},[4434,4456,4471,4486,4501],{"type":993,"tag":1507,"props":4435,"children":4436},{},[4437,4442,4443,4449,4450],{"type":993,"tag":1497,"props":4438,"children":4439},{},[4440],{"type":998,"value":4441},"Value Updates",{"type":998,"value":3097},{"type":993,"tag":1022,"props":4444,"children":4446},{"className":4445},[],[4447],{"type":998,"value":4448},"score += points",{"type":998,"value":3137},{"type":993,"tag":1022,"props":4451,"children":4453},{"className":4452},[],[4454],{"type":998,"value":4455},"total *= multiplier",{"type":993,"tag":1507,"props":4457,"children":4458},{},[4459,4464,4465],{"type":993,"tag":1497,"props":4460,"children":4461},{},[4462],{"type":998,"value":4463},"Percentage Calculations",{"type":998,"value":3097},{"type":993,"tag":1022,"props":4466,"children":4468},{"className":4467},[],[4469],{"type":998,"value":4470},"(part / whole) * 100",{"type":993,"tag":1507,"props":4472,"children":4473},{},[4474,4479,4480],{"type":993,"tag":1497,"props":4475,"children":4476},{},[4477],{"type":998,"value":4478},"Unit Conversions",{"type":998,"value":3097},{"type":993,"tag":1022,"props":4481,"children":4483},{"className":4482},[],[4484],{"type":998,"value":4485},"value * conversion_factor",{"type":993,"tag":1507,"props":4487,"children":4488},{},[4489,4494,4495],{"type":993,"tag":1497,"props":4490,"children":4491},{},[4492],{"type":998,"value":4493},"Average Calculations",{"type":998,"value":3097},{"type":993,"tag":1022,"props":4496,"children":4498},{"className":4497},[],[4499],{"type":998,"value":4500},"sum(values) / len(values)",{"type":993,"tag":1507,"props":4502,"children":4503},{},[4504,4509,4510],{"type":993,"tag":1497,"props":4505,"children":4506},{},[4507],{"type":998,"value":4508},"Compound Operations",{"type":998,"value":3097},{"type":993,"tag":1022,"props":4511,"children":4513},{"className":4512},[],[4514],{"type":998,"value":4515},"principal * (1 + rate) ** time",{"type":993,"tag":1001,"props":4517,"children":4518},{},[4519],{"type":993,"tag":1497,"props":4520,"children":4521},{},[4522],{"type":998,"value":4523},"Programming Benefits:",{"type":993,"tag":1503,"props":4525,"children":4526},{},[4527,4532,4537,4542],{"type":993,"tag":1507,"props":4528,"children":4529},{},[4530],{"type":998,"value":4531},"Reduce code complexity",{"type":993,"tag":1507,"props":4533,"children":4534},{},[4535],{"type":998,"value":4536},"Improve calculation accuracy",{"type":993,"tag":1507,"props":4538,"children":4539},{},[4540],{"type":998,"value":4541},"Enable formula reuse",{"type":993,"tag":1507,"props":4543,"children":4544},{},[4545],{"type":998,"value":4546},"Support data processing workflows",{"type":993,"tag":1001,"props":4548,"children":4549},{},[4550,4555],{"type":993,"tag":1497,"props":4551,"children":4552},{},[4553],{"type":998,"value":4554},"Real-World Applications:",{"type":998,"value":4556}," Financial calculations, scientific computing, data analysis",{"type":993,"tag":1012,"props":4558,"children":4559},{},[4560],{"type":993,"tag":1016,"props":4561,"children":4563},{"className":1018,"code":4562,"language":6,"meta":8,"style":8},"# Common math patterns\nprint(\"=== COMMON PATTERNS ===\")\n\n# Updating values with shortcuts\nscore = 100\nscore += 25      # Add bonus points\nscore *= 1.1     # 10% bonus multiplier\nprint(f\"Final score: {score:.1f}\")\n\n# Percentage calculations\ntotal_questions = 50\ncorrect_answers = 42\npercentage = (correct_answers / total_questions) * 100\nprint(f\"Grade: {percentage:.1f}%\")\n\n# Unit conversion\nmiles = 26.2  # Marathon distance\nkilometers = miles * 1.60934\nprint(f\"{miles} miles = {kilometers:.1f} kilometers\")\n\n# Check if number is even using modulus\nnumber = 42\nis_even = number % 2 == 0\nprint(f\"{number} is even: {is_even}\")\n",[4564],{"type":993,"tag":1022,"props":4565,"children":4566},{"__ignoreMap":8},[4567,4575,4595,4602,4610,4626,4648,4670,4716,4723,4731,4748,4765,4799,4845,4852,4860,4882,4908,4971,4978,4986,5001,5035],{"type":993,"tag":1026,"props":4568,"children":4569},{"class":1028,"line":12},[4570],{"type":993,"tag":1026,"props":4571,"children":4572},{"style":1032},[4573],{"type":998,"value":4574},"# Common math patterns\n",{"type":993,"tag":1026,"props":4576,"children":4577},{"class":1028,"line":27},[4578,4582,4586,4591],{"type":993,"tag":1026,"props":4579,"children":4580},{"style":1041},[4581],{"type":998,"value":1044},{"type":993,"tag":1026,"props":4583,"children":4584},{"style":1047},[4585],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4587,"children":4588},{"style":1053},[4589],{"type":998,"value":4590},"\"=== COMMON PATTERNS ===\"",{"type":993,"tag":1026,"props":4592,"children":4593},{"style":1047},[4594],{"type":998,"value":1061},{"type":993,"tag":1026,"props":4596,"children":4597},{"class":1028,"line":36},[4598],{"type":993,"tag":1026,"props":4599,"children":4600},{"emptyLinePlaceholder":13},[4601],{"type":998,"value":1069},{"type":993,"tag":1026,"props":4603,"children":4604},{"class":1028,"line":45},[4605],{"type":993,"tag":1026,"props":4606,"children":4607},{"style":1032},[4608],{"type":998,"value":4609},"# Updating values with shortcuts\n",{"type":993,"tag":1026,"props":4611,"children":4612},{"class":1028,"line":54},[4613,4618,4622],{"type":993,"tag":1026,"props":4614,"children":4615},{"style":1047},[4616],{"type":998,"value":4617},"score ",{"type":993,"tag":1026,"props":4619,"children":4620},{"style":1088},[4621],{"type":998,"value":1091},{"type":993,"tag":1026,"props":4623,"children":4624},{"style":1041},[4625],{"type":998,"value":3593},{"type":993,"tag":1026,"props":4627,"children":4628},{"class":1028,"line":63},[4629,4633,4638,4643],{"type":993,"tag":1026,"props":4630,"children":4631},{"style":1047},[4632],{"type":998,"value":4617},{"type":993,"tag":1026,"props":4634,"children":4635},{"style":1088},[4636],{"type":998,"value":4637},"+=",{"type":993,"tag":1026,"props":4639,"children":4640},{"style":1041},[4641],{"type":998,"value":4642}," 25",{"type":993,"tag":1026,"props":4644,"children":4645},{"style":1032},[4646],{"type":998,"value":4647},"      # Add bonus points\n",{"type":993,"tag":1026,"props":4649,"children":4650},{"class":1028,"line":72},[4651,4655,4660,4665],{"type":993,"tag":1026,"props":4652,"children":4653},{"style":1047},[4654],{"type":998,"value":4617},{"type":993,"tag":1026,"props":4656,"children":4657},{"style":1088},[4658],{"type":998,"value":4659},"*=",{"type":993,"tag":1026,"props":4661,"children":4662},{"style":1041},[4663],{"type":998,"value":4664}," 1.1",{"type":993,"tag":1026,"props":4666,"children":4667},{"style":1032},[4668],{"type":998,"value":4669},"     # 10% bonus multiplier\n",{"type":993,"tag":1026,"props":4671,"children":4672},{"class":1028,"line":81},[4673,4677,4681,4685,4690,4694,4699,4704,4708,4712],{"type":993,"tag":1026,"props":4674,"children":4675},{"style":1041},[4676],{"type":998,"value":1044},{"type":993,"tag":1026,"props":4678,"children":4679},{"style":1047},[4680],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4682,"children":4683},{"style":1088},[4684],{"type":998,"value":1136},{"type":993,"tag":1026,"props":4686,"children":4687},{"style":1053},[4688],{"type":998,"value":4689},"\"Final score: ",{"type":993,"tag":1026,"props":4691,"children":4692},{"style":1041},[4693],{"type":998,"value":1146},{"type":993,"tag":1026,"props":4695,"children":4696},{"style":1047},[4697],{"type":998,"value":4698},"score",{"type":993,"tag":1026,"props":4700,"children":4701},{"style":1088},[4702],{"type":998,"value":4703},":.1f",{"type":993,"tag":1026,"props":4705,"children":4706},{"style":1041},[4707],{"type":998,"value":1156},{"type":993,"tag":1026,"props":4709,"children":4710},{"style":1053},[4711],{"type":998,"value":1141},{"type":993,"tag":1026,"props":4713,"children":4714},{"style":1047},[4715],{"type":998,"value":1061},{"type":993,"tag":1026,"props":4717,"children":4718},{"class":1028,"line":91},[4719],{"type":993,"tag":1026,"props":4720,"children":4721},{"emptyLinePlaceholder":13},[4722],{"type":998,"value":1069},{"type":993,"tag":1026,"props":4724,"children":4725},{"class":1028,"line":100},[4726],{"type":993,"tag":1026,"props":4727,"children":4728},{"style":1032},[4729],{"type":998,"value":4730},"# Percentage calculations\n",{"type":993,"tag":1026,"props":4732,"children":4733},{"class":1028,"line":109},[4734,4739,4743],{"type":993,"tag":1026,"props":4735,"children":4736},{"style":1047},[4737],{"type":998,"value":4738},"total_questions ",{"type":993,"tag":1026,"props":4740,"children":4741},{"style":1088},[4742],{"type":998,"value":1091},{"type":993,"tag":1026,"props":4744,"children":4745},{"style":1041},[4746],{"type":998,"value":4747}," 50\n",{"type":993,"tag":1026,"props":4749,"children":4750},{"class":1028,"line":118},[4751,4756,4760],{"type":993,"tag":1026,"props":4752,"children":4753},{"style":1047},[4754],{"type":998,"value":4755},"correct_answers ",{"type":993,"tag":1026,"props":4757,"children":4758},{"style":1088},[4759],{"type":998,"value":1091},{"type":993,"tag":1026,"props":4761,"children":4762},{"style":1041},[4763],{"type":998,"value":4764}," 42\n",{"type":993,"tag":1026,"props":4766,"children":4767},{"class":1028,"line":127},[4768,4773,4777,4782,4786,4791,4795],{"type":993,"tag":1026,"props":4769,"children":4770},{"style":1047},[4771],{"type":998,"value":4772},"percentage ",{"type":993,"tag":1026,"props":4774,"children":4775},{"style":1088},[4776],{"type":998,"value":1091},{"type":993,"tag":1026,"props":4778,"children":4779},{"style":1047},[4780],{"type":998,"value":4781}," (correct_answers ",{"type":993,"tag":1026,"props":4783,"children":4784},{"style":1088},[4785],{"type":998,"value":1452},{"type":993,"tag":1026,"props":4787,"children":4788},{"style":1047},[4789],{"type":998,"value":4790}," total_questions) ",{"type":993,"tag":1026,"props":4792,"children":4793},{"style":1088},[4794],{"type":998,"value":1366},{"type":993,"tag":1026,"props":4796,"children":4797},{"style":1041},[4798],{"type":998,"value":3593},{"type":993,"tag":1026,"props":4800,"children":4801},{"class":1028,"line":136},[4802,4806,4810,4814,4819,4823,4828,4832,4836,4841],{"type":993,"tag":1026,"props":4803,"children":4804},{"style":1041},[4805],{"type":998,"value":1044},{"type":993,"tag":1026,"props":4807,"children":4808},{"style":1047},[4809],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4811,"children":4812},{"style":1088},[4813],{"type":998,"value":1136},{"type":993,"tag":1026,"props":4815,"children":4816},{"style":1053},[4817],{"type":998,"value":4818},"\"Grade: ",{"type":993,"tag":1026,"props":4820,"children":4821},{"style":1041},[4822],{"type":998,"value":1146},{"type":993,"tag":1026,"props":4824,"children":4825},{"style":1047},[4826],{"type":998,"value":4827},"percentage",{"type":993,"tag":1026,"props":4829,"children":4830},{"style":1088},[4831],{"type":998,"value":4703},{"type":993,"tag":1026,"props":4833,"children":4834},{"style":1041},[4835],{"type":998,"value":1156},{"type":993,"tag":1026,"props":4837,"children":4838},{"style":1053},[4839],{"type":998,"value":4840},"%\"",{"type":993,"tag":1026,"props":4842,"children":4843},{"style":1047},[4844],{"type":998,"value":1061},{"type":993,"tag":1026,"props":4846,"children":4847},{"class":1028,"line":146},[4848],{"type":993,"tag":1026,"props":4849,"children":4850},{"emptyLinePlaceholder":13},[4851],{"type":998,"value":1069},{"type":993,"tag":1026,"props":4853,"children":4854},{"class":1028,"line":155},[4855],{"type":993,"tag":1026,"props":4856,"children":4857},{"style":1032},[4858],{"type":998,"value":4859},"# Unit conversion\n",{"type":993,"tag":1026,"props":4861,"children":4862},{"class":1028,"line":164},[4863,4868,4872,4877],{"type":993,"tag":1026,"props":4864,"children":4865},{"style":1047},[4866],{"type":998,"value":4867},"miles ",{"type":993,"tag":1026,"props":4869,"children":4870},{"style":1088},[4871],{"type":998,"value":1091},{"type":993,"tag":1026,"props":4873,"children":4874},{"style":1041},[4875],{"type":998,"value":4876}," 26.2",{"type":993,"tag":1026,"props":4878,"children":4879},{"style":1032},[4880],{"type":998,"value":4881},"  # Marathon distance\n",{"type":993,"tag":1026,"props":4883,"children":4884},{"class":1028,"line":173},[4885,4890,4894,4899,4903],{"type":993,"tag":1026,"props":4886,"children":4887},{"style":1047},[4888],{"type":998,"value":4889},"kilometers ",{"type":993,"tag":1026,"props":4891,"children":4892},{"style":1088},[4893],{"type":998,"value":1091},{"type":993,"tag":1026,"props":4895,"children":4896},{"style":1047},[4897],{"type":998,"value":4898}," miles ",{"type":993,"tag":1026,"props":4900,"children":4901},{"style":1088},[4902],{"type":998,"value":1366},{"type":993,"tag":1026,"props":4904,"children":4905},{"style":1041},[4906],{"type":998,"value":4907}," 1.60934\n",{"type":993,"tag":1026,"props":4909,"children":4910},{"class":1028,"line":182},[4911,4915,4919,4923,4927,4931,4936,4940,4945,4949,4954,4958,4962,4967],{"type":993,"tag":1026,"props":4912,"children":4913},{"style":1041},[4914],{"type":998,"value":1044},{"type":993,"tag":1026,"props":4916,"children":4917},{"style":1047},[4918],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4920,"children":4921},{"style":1088},[4922],{"type":998,"value":1136},{"type":993,"tag":1026,"props":4924,"children":4925},{"style":1053},[4926],{"type":998,"value":1141},{"type":993,"tag":1026,"props":4928,"children":4929},{"style":1041},[4930],{"type":998,"value":1146},{"type":993,"tag":1026,"props":4932,"children":4933},{"style":1047},[4934],{"type":998,"value":4935},"miles",{"type":993,"tag":1026,"props":4937,"children":4938},{"style":1041},[4939],{"type":998,"value":1156},{"type":993,"tag":1026,"props":4941,"children":4942},{"style":1053},[4943],{"type":998,"value":4944}," miles = ",{"type":993,"tag":1026,"props":4946,"children":4947},{"style":1041},[4948],{"type":998,"value":1146},{"type":993,"tag":1026,"props":4950,"children":4951},{"style":1047},[4952],{"type":998,"value":4953},"kilometers",{"type":993,"tag":1026,"props":4955,"children":4956},{"style":1088},[4957],{"type":998,"value":4703},{"type":993,"tag":1026,"props":4959,"children":4960},{"style":1041},[4961],{"type":998,"value":1156},{"type":993,"tag":1026,"props":4963,"children":4964},{"style":1053},[4965],{"type":998,"value":4966}," kilometers\"",{"type":993,"tag":1026,"props":4968,"children":4969},{"style":1047},[4970],{"type":998,"value":1061},{"type":993,"tag":1026,"props":4972,"children":4973},{"class":1028,"line":191},[4974],{"type":993,"tag":1026,"props":4975,"children":4976},{"emptyLinePlaceholder":13},[4977],{"type":998,"value":1069},{"type":993,"tag":1026,"props":4979,"children":4980},{"class":1028,"line":201},[4981],{"type":993,"tag":1026,"props":4982,"children":4983},{"style":1032},[4984],{"type":998,"value":4985},"# Check if number is even using modulus\n",{"type":993,"tag":1026,"props":4987,"children":4988},{"class":1028,"line":210},[4989,4993,4997],{"type":993,"tag":1026,"props":4990,"children":4991},{"style":1047},[4992],{"type":998,"value":2871},{"type":993,"tag":1026,"props":4994,"children":4995},{"style":1088},[4996],{"type":998,"value":1091},{"type":993,"tag":1026,"props":4998,"children":4999},{"style":1041},[5000],{"type":998,"value":4764},{"type":993,"tag":1026,"props":5002,"children":5003},{"class":1028,"line":219},[5004,5009,5013,5017,5021,5025,5030],{"type":993,"tag":1026,"props":5005,"children":5006},{"style":1047},[5007],{"type":998,"value":5008},"is_even ",{"type":993,"tag":1026,"props":5010,"children":5011},{"style":1088},[5012],{"type":998,"value":1091},{"type":993,"tag":1026,"props":5014,"children":5015},{"style":1047},[5016],{"type":998,"value":2897},{"type":993,"tag":1026,"props":5018,"children":5019},{"style":1088},[5020],{"type":998,"value":1566},{"type":993,"tag":1026,"props":5022,"children":5023},{"style":1041},[5024],{"type":998,"value":3288},{"type":993,"tag":1026,"props":5026,"children":5027},{"style":1088},[5028],{"type":998,"value":5029}," ==",{"type":993,"tag":1026,"props":5031,"children":5032},{"style":1041},[5033],{"type":998,"value":5034}," 0\n",{"type":993,"tag":1026,"props":5036,"children":5037},{"class":1028,"line":228},[5038,5042,5046,5050,5054,5058,5062,5066,5071,5075,5080,5084,5088],{"type":993,"tag":1026,"props":5039,"children":5040},{"style":1041},[5041],{"type":998,"value":1044},{"type":993,"tag":1026,"props":5043,"children":5044},{"style":1047},[5045],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5047,"children":5048},{"style":1088},[5049],{"type":998,"value":1136},{"type":993,"tag":1026,"props":5051,"children":5052},{"style":1053},[5053],{"type":998,"value":1141},{"type":993,"tag":1026,"props":5055,"children":5056},{"style":1041},[5057],{"type":998,"value":1146},{"type":993,"tag":1026,"props":5059,"children":5060},{"style":1047},[5061],{"type":998,"value":2935},{"type":993,"tag":1026,"props":5063,"children":5064},{"style":1041},[5065],{"type":998,"value":1156},{"type":993,"tag":1026,"props":5067,"children":5068},{"style":1053},[5069],{"type":998,"value":5070}," is even: ",{"type":993,"tag":1026,"props":5072,"children":5073},{"style":1041},[5074],{"type":998,"value":1146},{"type":993,"tag":1026,"props":5076,"children":5077},{"style":1047},[5078],{"type":998,"value":5079},"is_even",{"type":993,"tag":1026,"props":5081,"children":5082},{"style":1041},[5083],{"type":998,"value":1156},{"type":993,"tag":1026,"props":5085,"children":5086},{"style":1053},[5087],{"type":998,"value":1141},{"type":993,"tag":1026,"props":5089,"children":5090},{"style":1047},[5091],{"type":998,"value":1061},{"type":993,"tag":5093,"props":5094,"children":5096},"content-exercise",{":widget-view":5095,"category":6,"id":145},"true",[],{"type":993,"tag":1475,"props":5098,"children":5100},{"id":5099},"quick-math-practice",[5101],{"type":998,"value":5102},"➕ Quick Math Practice",{"type":993,"tag":1001,"props":5104,"children":5105},{},[5106],{"type":998,"value":5107},"Let's practice using Python's arithmetic operators with simple calculations!",{"type":993,"tag":5109,"props":5110,"children":5113},"exercise",{"hint":5111,"prompt":5112},"Try +, -, *, /, and ** operators!","Practice basic arithmetic operations including addition, subtraction, multiplication, division, and exponents.",[5114],{"type":993,"tag":1016,"props":5115,"children":5117},{"className":1018,"code":5116,"language":6,"meta":8,"style":8},"# Math Practice - Simple calculations!\n\n# Calculate a pizza order\npizza_price = 12.99\nnum_pizzas = 3\ntax_rate = 0.08\n\n# Calculate costs\nsubtotal = # TODO: Your code here (pizza_price * num_pizzas)\ntax = # TODO: Your code here (subtotal * tax_rate)\ntotal = # TODO: Your code here (subtotal + tax)\n\n# Calculate how much each person pays (4 people)\nper_person = # TODO: Your code here (total / 4)\n\nprint(f\"Subtotal: ${subtotal:.2f}\")\nprint(f\"Tax: ${tax:.2f}\")\nprint(f\"Total: ${total:.2f}\")\nprint(f\"Per person: ${per_person:.2f}\")\n",[5118],{"type":993,"tag":1022,"props":5119,"children":5120},{"__ignoreMap":8},[5121,5129,5136,5144,5161,5177,5192,5199,5207,5234,5258,5282,5289,5297,5322,5329,5374,5418,5462],{"type":993,"tag":1026,"props":5122,"children":5123},{"class":1028,"line":12},[5124],{"type":993,"tag":1026,"props":5125,"children":5126},{"style":1032},[5127],{"type":998,"value":5128},"# Math Practice - Simple calculations!\n",{"type":993,"tag":1026,"props":5130,"children":5131},{"class":1028,"line":27},[5132],{"type":993,"tag":1026,"props":5133,"children":5134},{"emptyLinePlaceholder":13},[5135],{"type":998,"value":1069},{"type":993,"tag":1026,"props":5137,"children":5138},{"class":1028,"line":36},[5139],{"type":993,"tag":1026,"props":5140,"children":5141},{"style":1032},[5142],{"type":998,"value":5143},"# Calculate a pizza order\n",{"type":993,"tag":1026,"props":5145,"children":5146},{"class":1028,"line":45},[5147,5152,5156],{"type":993,"tag":1026,"props":5148,"children":5149},{"style":1047},[5150],{"type":998,"value":5151},"pizza_price ",{"type":993,"tag":1026,"props":5153,"children":5154},{"style":1088},[5155],{"type":998,"value":1091},{"type":993,"tag":1026,"props":5157,"children":5158},{"style":1041},[5159],{"type":998,"value":5160}," 12.99\n",{"type":993,"tag":1026,"props":5162,"children":5163},{"class":1028,"line":54},[5164,5169,5173],{"type":993,"tag":1026,"props":5165,"children":5166},{"style":1047},[5167],{"type":998,"value":5168},"num_pizzas ",{"type":993,"tag":1026,"props":5170,"children":5171},{"style":1088},[5172],{"type":998,"value":1091},{"type":993,"tag":1026,"props":5174,"children":5175},{"style":1041},[5176],{"type":998,"value":1113},{"type":993,"tag":1026,"props":5178,"children":5179},{"class":1028,"line":63},[5180,5184,5188],{"type":993,"tag":1026,"props":5181,"children":5182},{"style":1047},[5183],{"type":998,"value":1845},{"type":993,"tag":1026,"props":5185,"children":5186},{"style":1088},[5187],{"type":998,"value":1091},{"type":993,"tag":1026,"props":5189,"children":5190},{"style":1041},[5191],{"type":998,"value":1854},{"type":993,"tag":1026,"props":5193,"children":5194},{"class":1028,"line":72},[5195],{"type":993,"tag":1026,"props":5196,"children":5197},{"emptyLinePlaceholder":13},[5198],{"type":998,"value":1069},{"type":993,"tag":1026,"props":5200,"children":5201},{"class":1028,"line":81},[5202],{"type":993,"tag":1026,"props":5203,"children":5204},{"style":1032},[5205],{"type":998,"value":5206},"# Calculate costs\n",{"type":993,"tag":1026,"props":5208,"children":5209},{"class":1028,"line":91},[5210,5215,5219,5224,5229],{"type":993,"tag":1026,"props":5211,"children":5212},{"style":1047},[5213],{"type":998,"value":5214},"subtotal ",{"type":993,"tag":1026,"props":5216,"children":5217},{"style":1088},[5218],{"type":998,"value":1091},{"type":993,"tag":1026,"props":5220,"children":5221},{"style":1032},[5222],{"type":998,"value":5223}," # ",{"type":993,"tag":1026,"props":5225,"children":5226},{"style":1088},[5227],{"type":998,"value":5228},"TODO",{"type":993,"tag":1026,"props":5230,"children":5231},{"style":1032},[5232],{"type":998,"value":5233},": Your code here (pizza_price * num_pizzas)\n",{"type":993,"tag":1026,"props":5235,"children":5236},{"class":1028,"line":100},[5237,5241,5245,5249,5253],{"type":993,"tag":1026,"props":5238,"children":5239},{"style":1047},[5240],{"type":998,"value":1862},{"type":993,"tag":1026,"props":5242,"children":5243},{"style":1088},[5244],{"type":998,"value":1091},{"type":993,"tag":1026,"props":5246,"children":5247},{"style":1032},[5248],{"type":998,"value":5223},{"type":993,"tag":1026,"props":5250,"children":5251},{"style":1088},[5252],{"type":998,"value":5228},{"type":993,"tag":1026,"props":5254,"children":5255},{"style":1032},[5256],{"type":998,"value":5257},": Your code here (subtotal * tax_rate)\n",{"type":993,"tag":1026,"props":5259,"children":5260},{"class":1028,"line":109},[5261,5265,5269,5273,5277],{"type":993,"tag":1026,"props":5262,"children":5263},{"style":1047},[5264],{"type":998,"value":1888},{"type":993,"tag":1026,"props":5266,"children":5267},{"style":1088},[5268],{"type":998,"value":1091},{"type":993,"tag":1026,"props":5270,"children":5271},{"style":1032},[5272],{"type":998,"value":5223},{"type":993,"tag":1026,"props":5274,"children":5275},{"style":1088},[5276],{"type":998,"value":5228},{"type":993,"tag":1026,"props":5278,"children":5279},{"style":1032},[5280],{"type":998,"value":5281},": Your code here (subtotal + tax)\n",{"type":993,"tag":1026,"props":5283,"children":5284},{"class":1028,"line":118},[5285],{"type":993,"tag":1026,"props":5286,"children":5287},{"emptyLinePlaceholder":13},[5288],{"type":998,"value":1069},{"type":993,"tag":1026,"props":5290,"children":5291},{"class":1028,"line":127},[5292],{"type":993,"tag":1026,"props":5293,"children":5294},{"style":1032},[5295],{"type":998,"value":5296},"# Calculate how much each person pays (4 people)\n",{"type":993,"tag":1026,"props":5298,"children":5299},{"class":1028,"line":136},[5300,5305,5309,5313,5317],{"type":993,"tag":1026,"props":5301,"children":5302},{"style":1047},[5303],{"type":998,"value":5304},"per_person ",{"type":993,"tag":1026,"props":5306,"children":5307},{"style":1088},[5308],{"type":998,"value":1091},{"type":993,"tag":1026,"props":5310,"children":5311},{"style":1032},[5312],{"type":998,"value":5223},{"type":993,"tag":1026,"props":5314,"children":5315},{"style":1088},[5316],{"type":998,"value":5228},{"type":993,"tag":1026,"props":5318,"children":5319},{"style":1032},[5320],{"type":998,"value":5321},": Your code here (total / 4)\n",{"type":993,"tag":1026,"props":5323,"children":5324},{"class":1028,"line":146},[5325],{"type":993,"tag":1026,"props":5326,"children":5327},{"emptyLinePlaceholder":13},[5328],{"type":998,"value":1069},{"type":993,"tag":1026,"props":5330,"children":5331},{"class":1028,"line":155},[5332,5336,5340,5344,5349,5353,5358,5362,5366,5370],{"type":993,"tag":1026,"props":5333,"children":5334},{"style":1041},[5335],{"type":998,"value":1044},{"type":993,"tag":1026,"props":5337,"children":5338},{"style":1047},[5339],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5341,"children":5342},{"style":1088},[5343],{"type":998,"value":1136},{"type":993,"tag":1026,"props":5345,"children":5346},{"style":1053},[5347],{"type":998,"value":5348},"\"Subtotal: $",{"type":993,"tag":1026,"props":5350,"children":5351},{"style":1041},[5352],{"type":998,"value":1146},{"type":993,"tag":1026,"props":5354,"children":5355},{"style":1047},[5356],{"type":998,"value":5357},"subtotal",{"type":993,"tag":1026,"props":5359,"children":5360},{"style":1088},[5361],{"type":998,"value":1957},{"type":993,"tag":1026,"props":5363,"children":5364},{"style":1041},[5365],{"type":998,"value":1156},{"type":993,"tag":1026,"props":5367,"children":5368},{"style":1053},[5369],{"type":998,"value":1141},{"type":993,"tag":1026,"props":5371,"children":5372},{"style":1047},[5373],{"type":998,"value":1061},{"type":993,"tag":1026,"props":5375,"children":5376},{"class":1028,"line":164},[5377,5381,5385,5389,5394,5398,5402,5406,5410,5414],{"type":993,"tag":1026,"props":5378,"children":5379},{"style":1041},[5380],{"type":998,"value":1044},{"type":993,"tag":1026,"props":5382,"children":5383},{"style":1047},[5384],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5386,"children":5387},{"style":1088},[5388],{"type":998,"value":1136},{"type":993,"tag":1026,"props":5390,"children":5391},{"style":1053},[5392],{"type":998,"value":5393},"\"Tax: $",{"type":993,"tag":1026,"props":5395,"children":5396},{"style":1041},[5397],{"type":998,"value":1146},{"type":993,"tag":1026,"props":5399,"children":5400},{"style":1047},[5401],{"type":998,"value":1952},{"type":993,"tag":1026,"props":5403,"children":5404},{"style":1088},[5405],{"type":998,"value":1957},{"type":993,"tag":1026,"props":5407,"children":5408},{"style":1041},[5409],{"type":998,"value":1156},{"type":993,"tag":1026,"props":5411,"children":5412},{"style":1053},[5413],{"type":998,"value":1141},{"type":993,"tag":1026,"props":5415,"children":5416},{"style":1047},[5417],{"type":998,"value":1061},{"type":993,"tag":1026,"props":5419,"children":5420},{"class":1028,"line":173},[5421,5425,5429,5433,5438,5442,5446,5450,5454,5458],{"type":993,"tag":1026,"props":5422,"children":5423},{"style":1041},[5424],{"type":998,"value":1044},{"type":993,"tag":1026,"props":5426,"children":5427},{"style":1047},[5428],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5430,"children":5431},{"style":1088},[5432],{"type":998,"value":1136},{"type":993,"tag":1026,"props":5434,"children":5435},{"style":1053},[5436],{"type":998,"value":5437},"\"Total: $",{"type":993,"tag":1026,"props":5439,"children":5440},{"style":1041},[5441],{"type":998,"value":1146},{"type":993,"tag":1026,"props":5443,"children":5444},{"style":1047},[5445],{"type":998,"value":1975},{"type":993,"tag":1026,"props":5447,"children":5448},{"style":1088},[5449],{"type":998,"value":1957},{"type":993,"tag":1026,"props":5451,"children":5452},{"style":1041},[5453],{"type":998,"value":1156},{"type":993,"tag":1026,"props":5455,"children":5456},{"style":1053},[5457],{"type":998,"value":1141},{"type":993,"tag":1026,"props":5459,"children":5460},{"style":1047},[5461],{"type":998,"value":1061},{"type":993,"tag":1026,"props":5463,"children":5464},{"class":1028,"line":182},[5465,5469,5473,5477,5482,5486,5491,5495,5499,5503],{"type":993,"tag":1026,"props":5466,"children":5467},{"style":1041},[5468],{"type":998,"value":1044},{"type":993,"tag":1026,"props":5470,"children":5471},{"style":1047},[5472],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5474,"children":5475},{"style":1088},[5476],{"type":998,"value":1136},{"type":993,"tag":1026,"props":5478,"children":5479},{"style":1053},[5480],{"type":998,"value":5481},"\"Per person: $",{"type":993,"tag":1026,"props":5483,"children":5484},{"style":1041},[5485],{"type":998,"value":1146},{"type":993,"tag":1026,"props":5487,"children":5488},{"style":1047},[5489],{"type":998,"value":5490},"per_person",{"type":993,"tag":1026,"props":5492,"children":5493},{"style":1088},[5494],{"type":998,"value":1957},{"type":993,"tag":1026,"props":5496,"children":5497},{"style":1041},[5498],{"type":998,"value":1156},{"type":993,"tag":1026,"props":5500,"children":5501},{"style":1053},[5502],{"type":998,"value":1141},{"type":993,"tag":1026,"props":5504,"children":5505},{"style":1047},[5506],{"type":998,"value":1061},{"type":993,"tag":5508,"props":5509,"children":5511},"h3",{"id":5510},"solution-and-explanation",[5512],{"type":998,"value":5513},"Solution and Explanation 💡",{"type":993,"tag":5515,"props":5516,"children":5517},"details",{},[5518,5526,5927,5935],{"type":993,"tag":5519,"props":5520,"children":5523},"summary",{"className":5521},[5522],"cursor-pointer",[5524],{"type":998,"value":5525},"Click to see the complete solution",{"type":993,"tag":1012,"props":5527,"children":5528},{},[5529],{"type":993,"tag":1016,"props":5530,"children":5532},{"className":1018,"code":5531,"language":6,"meta":8,"style":8},"# Math Practice - Simple solution\n\n# Calculate a pizza order\npizza_price = 12.99\nnum_pizzas = 3\ntax_rate = 0.08\n\n# Calculate costs\nsubtotal = pizza_price * num_pizzas    # Multiplication\ntax = subtotal * tax_rate              # Multiplication\ntotal = subtotal + tax                 # Addition\n\n# Calculate how much each person pays (4 people)\nper_person = total / 4                 # Division\n\nprint(f\"Subtotal: ${subtotal:.2f}\")\nprint(f\"Tax: ${tax:.2f}\")\nprint(f\"Total: ${total:.2f}\")\nprint(f\"Per person: ${per_person:.2f}\")\n",[5533],{"type":993,"tag":1022,"props":5534,"children":5535},{"__ignoreMap":8},[5536,5544,5551,5558,5573,5588,5603,5610,5617,5647,5676,5705,5712,5719,5748,5755,5798,5841,5884],{"type":993,"tag":1026,"props":5537,"children":5538},{"class":1028,"line":12},[5539],{"type":993,"tag":1026,"props":5540,"children":5541},{"style":1032},[5542],{"type":998,"value":5543},"# Math Practice - Simple solution\n",{"type":993,"tag":1026,"props":5545,"children":5546},{"class":1028,"line":27},[5547],{"type":993,"tag":1026,"props":5548,"children":5549},{"emptyLinePlaceholder":13},[5550],{"type":998,"value":1069},{"type":993,"tag":1026,"props":5552,"children":5553},{"class":1028,"line":36},[5554],{"type":993,"tag":1026,"props":5555,"children":5556},{"style":1032},[5557],{"type":998,"value":5143},{"type":993,"tag":1026,"props":5559,"children":5560},{"class":1028,"line":45},[5561,5565,5569],{"type":993,"tag":1026,"props":5562,"children":5563},{"style":1047},[5564],{"type":998,"value":5151},{"type":993,"tag":1026,"props":5566,"children":5567},{"style":1088},[5568],{"type":998,"value":1091},{"type":993,"tag":1026,"props":5570,"children":5571},{"style":1041},[5572],{"type":998,"value":5160},{"type":993,"tag":1026,"props":5574,"children":5575},{"class":1028,"line":54},[5576,5580,5584],{"type":993,"tag":1026,"props":5577,"children":5578},{"style":1047},[5579],{"type":998,"value":5168},{"type":993,"tag":1026,"props":5581,"children":5582},{"style":1088},[5583],{"type":998,"value":1091},{"type":993,"tag":1026,"props":5585,"children":5586},{"style":1041},[5587],{"type":998,"value":1113},{"type":993,"tag":1026,"props":5589,"children":5590},{"class":1028,"line":63},[5591,5595,5599],{"type":993,"tag":1026,"props":5592,"children":5593},{"style":1047},[5594],{"type":998,"value":1845},{"type":993,"tag":1026,"props":5596,"children":5597},{"style":1088},[5598],{"type":998,"value":1091},{"type":993,"tag":1026,"props":5600,"children":5601},{"style":1041},[5602],{"type":998,"value":1854},{"type":993,"tag":1026,"props":5604,"children":5605},{"class":1028,"line":72},[5606],{"type":993,"tag":1026,"props":5607,"children":5608},{"emptyLinePlaceholder":13},[5609],{"type":998,"value":1069},{"type":993,"tag":1026,"props":5611,"children":5612},{"class":1028,"line":81},[5613],{"type":993,"tag":1026,"props":5614,"children":5615},{"style":1032},[5616],{"type":998,"value":5206},{"type":993,"tag":1026,"props":5618,"children":5619},{"class":1028,"line":91},[5620,5624,5628,5633,5637,5642],{"type":993,"tag":1026,"props":5621,"children":5622},{"style":1047},[5623],{"type":998,"value":5214},{"type":993,"tag":1026,"props":5625,"children":5626},{"style":1088},[5627],{"type":998,"value":1091},{"type":993,"tag":1026,"props":5629,"children":5630},{"style":1047},[5631],{"type":998,"value":5632}," pizza_price ",{"type":993,"tag":1026,"props":5634,"children":5635},{"style":1088},[5636],{"type":998,"value":1366},{"type":993,"tag":1026,"props":5638,"children":5639},{"style":1047},[5640],{"type":998,"value":5641}," num_pizzas    ",{"type":993,"tag":1026,"props":5643,"children":5644},{"style":1032},[5645],{"type":998,"value":5646},"# Multiplication\n",{"type":993,"tag":1026,"props":5648,"children":5649},{"class":1028,"line":100},[5650,5654,5658,5663,5667,5672],{"type":993,"tag":1026,"props":5651,"children":5652},{"style":1047},[5653],{"type":998,"value":1862},{"type":993,"tag":1026,"props":5655,"children":5656},{"style":1088},[5657],{"type":998,"value":1091},{"type":993,"tag":1026,"props":5659,"children":5660},{"style":1047},[5661],{"type":998,"value":5662}," subtotal ",{"type":993,"tag":1026,"props":5664,"children":5665},{"style":1088},[5666],{"type":998,"value":1366},{"type":993,"tag":1026,"props":5668,"children":5669},{"style":1047},[5670],{"type":998,"value":5671}," tax_rate              ",{"type":993,"tag":1026,"props":5673,"children":5674},{"style":1032},[5675],{"type":998,"value":5646},{"type":993,"tag":1026,"props":5677,"children":5678},{"class":1028,"line":109},[5679,5683,5687,5691,5695,5700],{"type":993,"tag":1026,"props":5680,"children":5681},{"style":1047},[5682],{"type":998,"value":1888},{"type":993,"tag":1026,"props":5684,"children":5685},{"style":1088},[5686],{"type":998,"value":1091},{"type":993,"tag":1026,"props":5688,"children":5689},{"style":1047},[5690],{"type":998,"value":5662},{"type":993,"tag":1026,"props":5692,"children":5693},{"style":1088},[5694],{"type":998,"value":1192},{"type":993,"tag":1026,"props":5696,"children":5697},{"style":1047},[5698],{"type":998,"value":5699}," tax                 ",{"type":993,"tag":1026,"props":5701,"children":5702},{"style":1032},[5703],{"type":998,"value":5704},"# Addition\n",{"type":993,"tag":1026,"props":5706,"children":5707},{"class":1028,"line":118},[5708],{"type":993,"tag":1026,"props":5709,"children":5710},{"emptyLinePlaceholder":13},[5711],{"type":998,"value":1069},{"type":993,"tag":1026,"props":5713,"children":5714},{"class":1028,"line":127},[5715],{"type":993,"tag":1026,"props":5716,"children":5717},{"style":1032},[5718],{"type":998,"value":5296},{"type":993,"tag":1026,"props":5720,"children":5721},{"class":1028,"line":136},[5722,5726,5730,5735,5739,5743],{"type":993,"tag":1026,"props":5723,"children":5724},{"style":1047},[5725],{"type":998,"value":5304},{"type":993,"tag":1026,"props":5727,"children":5728},{"style":1088},[5729],{"type":998,"value":1091},{"type":993,"tag":1026,"props":5731,"children":5732},{"style":1047},[5733],{"type":998,"value":5734}," total ",{"type":993,"tag":1026,"props":5736,"children":5737},{"style":1088},[5738],{"type":998,"value":1452},{"type":993,"tag":1026,"props":5740,"children":5741},{"style":1041},[5742],{"type":998,"value":3507},{"type":993,"tag":1026,"props":5744,"children":5745},{"style":1032},[5746],{"type":998,"value":5747},"                 # Division\n",{"type":993,"tag":1026,"props":5749,"children":5750},{"class":1028,"line":146},[5751],{"type":993,"tag":1026,"props":5752,"children":5753},{"emptyLinePlaceholder":13},[5754],{"type":998,"value":1069},{"type":993,"tag":1026,"props":5756,"children":5757},{"class":1028,"line":155},[5758,5762,5766,5770,5774,5778,5782,5786,5790,5794],{"type":993,"tag":1026,"props":5759,"children":5760},{"style":1041},[5761],{"type":998,"value":1044},{"type":993,"tag":1026,"props":5763,"children":5764},{"style":1047},[5765],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5767,"children":5768},{"style":1088},[5769],{"type":998,"value":1136},{"type":993,"tag":1026,"props":5771,"children":5772},{"style":1053},[5773],{"type":998,"value":5348},{"type":993,"tag":1026,"props":5775,"children":5776},{"style":1041},[5777],{"type":998,"value":1146},{"type":993,"tag":1026,"props":5779,"children":5780},{"style":1047},[5781],{"type":998,"value":5357},{"type":993,"tag":1026,"props":5783,"children":5784},{"style":1088},[5785],{"type":998,"value":1957},{"type":993,"tag":1026,"props":5787,"children":5788},{"style":1041},[5789],{"type":998,"value":1156},{"type":993,"tag":1026,"props":5791,"children":5792},{"style":1053},[5793],{"type":998,"value":1141},{"type":993,"tag":1026,"props":5795,"children":5796},{"style":1047},[5797],{"type":998,"value":1061},{"type":993,"tag":1026,"props":5799,"children":5800},{"class":1028,"line":164},[5801,5805,5809,5813,5817,5821,5825,5829,5833,5837],{"type":993,"tag":1026,"props":5802,"children":5803},{"style":1041},[5804],{"type":998,"value":1044},{"type":993,"tag":1026,"props":5806,"children":5807},{"style":1047},[5808],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5810,"children":5811},{"style":1088},[5812],{"type":998,"value":1136},{"type":993,"tag":1026,"props":5814,"children":5815},{"style":1053},[5816],{"type":998,"value":5393},{"type":993,"tag":1026,"props":5818,"children":5819},{"style":1041},[5820],{"type":998,"value":1146},{"type":993,"tag":1026,"props":5822,"children":5823},{"style":1047},[5824],{"type":998,"value":1952},{"type":993,"tag":1026,"props":5826,"children":5827},{"style":1088},[5828],{"type":998,"value":1957},{"type":993,"tag":1026,"props":5830,"children":5831},{"style":1041},[5832],{"type":998,"value":1156},{"type":993,"tag":1026,"props":5834,"children":5835},{"style":1053},[5836],{"type":998,"value":1141},{"type":993,"tag":1026,"props":5838,"children":5839},{"style":1047},[5840],{"type":998,"value":1061},{"type":993,"tag":1026,"props":5842,"children":5843},{"class":1028,"line":173},[5844,5848,5852,5856,5860,5864,5868,5872,5876,5880],{"type":993,"tag":1026,"props":5845,"children":5846},{"style":1041},[5847],{"type":998,"value":1044},{"type":993,"tag":1026,"props":5849,"children":5850},{"style":1047},[5851],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5853,"children":5854},{"style":1088},[5855],{"type":998,"value":1136},{"type":993,"tag":1026,"props":5857,"children":5858},{"style":1053},[5859],{"type":998,"value":5437},{"type":993,"tag":1026,"props":5861,"children":5862},{"style":1041},[5863],{"type":998,"value":1146},{"type":993,"tag":1026,"props":5865,"children":5866},{"style":1047},[5867],{"type":998,"value":1975},{"type":993,"tag":1026,"props":5869,"children":5870},{"style":1088},[5871],{"type":998,"value":1957},{"type":993,"tag":1026,"props":5873,"children":5874},{"style":1041},[5875],{"type":998,"value":1156},{"type":993,"tag":1026,"props":5877,"children":5878},{"style":1053},[5879],{"type":998,"value":1141},{"type":993,"tag":1026,"props":5881,"children":5882},{"style":1047},[5883],{"type":998,"value":1061},{"type":993,"tag":1026,"props":5885,"children":5886},{"class":1028,"line":182},[5887,5891,5895,5899,5903,5907,5911,5915,5919,5923],{"type":993,"tag":1026,"props":5888,"children":5889},{"style":1041},[5890],{"type":998,"value":1044},{"type":993,"tag":1026,"props":5892,"children":5893},{"style":1047},[5894],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5896,"children":5897},{"style":1088},[5898],{"type":998,"value":1136},{"type":993,"tag":1026,"props":5900,"children":5901},{"style":1053},[5902],{"type":998,"value":5481},{"type":993,"tag":1026,"props":5904,"children":5905},{"style":1041},[5906],{"type":998,"value":1146},{"type":993,"tag":1026,"props":5908,"children":5909},{"style":1047},[5910],{"type":998,"value":5490},{"type":993,"tag":1026,"props":5912,"children":5913},{"style":1088},[5914],{"type":998,"value":1957},{"type":993,"tag":1026,"props":5916,"children":5917},{"style":1041},[5918],{"type":998,"value":1156},{"type":993,"tag":1026,"props":5920,"children":5921},{"style":1053},[5922],{"type":998,"value":1141},{"type":993,"tag":1026,"props":5924,"children":5925},{"style":1047},[5926],{"type":998,"value":1061},{"type":993,"tag":1001,"props":5928,"children":5929},{},[5930],{"type":993,"tag":1497,"props":5931,"children":5932},{},[5933],{"type":998,"value":5934},"Key Learning Points:",{"type":993,"tag":1503,"props":5936,"children":5937},{},[5938,5950,5961,5972],{"type":993,"tag":1507,"props":5939,"children":5940},{},[5941,5943,5948],{"type":998,"value":5942},"📌 ",{"type":993,"tag":1497,"props":5944,"children":5945},{},[5946],{"type":998,"value":5947},"Multiplication (*)",{"type":998,"value":5949},": Used to calculate costs",{"type":993,"tag":1507,"props":5951,"children":5952},{},[5953,5954,5959],{"type":998,"value":5942},{"type":993,"tag":1497,"props":5955,"children":5956},{},[5957],{"type":998,"value":5958},"Addition (+)",{"type":998,"value":5960},": Used to add subtotal and tax",{"type":993,"tag":1507,"props":5962,"children":5963},{},[5964,5965,5970],{"type":998,"value":5942},{"type":993,"tag":1497,"props":5966,"children":5967},{},[5968],{"type":998,"value":5969},"Division (/)",{"type":998,"value":5971},": Used to split costs equally",{"type":993,"tag":1507,"props":5973,"children":5974},{},[5975,5976,5981],{"type":998,"value":5942},{"type":993,"tag":1497,"props":5977,"children":5978},{},[5979],{"type":998,"value":5980},"Order of operations",{"type":998,"value":5982},": Python follows math rules automatically",{"type":993,"tag":1475,"props":5984,"children":5986},{"id":5985},"math-operations-reference",[5987],{"type":998,"value":5988},"📚 Math Operations Reference",{"type":993,"tag":5990,"props":5991,"children":5992},"table",{},[5993,6022],{"type":993,"tag":5994,"props":5995,"children":5996},"thead",{},[5997],{"type":993,"tag":5998,"props":5999,"children":6000},"tr",{},[6001,6007,6012,6017],{"type":993,"tag":6002,"props":6003,"children":6004},"th",{},[6005],{"type":998,"value":6006},"Operator",{"type":993,"tag":6002,"props":6008,"children":6009},{},[6010],{"type":998,"value":6011},"Name",{"type":993,"tag":6002,"props":6013,"children":6014},{},[6015],{"type":998,"value":6016},"Example",{"type":993,"tag":6002,"props":6018,"children":6019},{},[6020],{"type":998,"value":6021},"Result",{"type":993,"tag":6023,"props":6024,"children":6025},"tbody",{},[6026,6061,6094,6128,6162,6195,6228],{"type":993,"tag":5998,"props":6027,"children":6028},{},[6029,6038,6043,6052],{"type":993,"tag":6030,"props":6031,"children":6032},"td",{},[6033],{"type":993,"tag":1022,"props":6034,"children":6036},{"className":6035},[],[6037],{"type":998,"value":1192},{"type":993,"tag":6030,"props":6039,"children":6040},{},[6041],{"type":998,"value":6042},"Addition",{"type":993,"tag":6030,"props":6044,"children":6045},{},[6046],{"type":993,"tag":1022,"props":6047,"children":6049},{"className":6048},[],[6050],{"type":998,"value":6051},"5 + 3",{"type":993,"tag":6030,"props":6053,"children":6054},{},[6055],{"type":993,"tag":1022,"props":6056,"children":6058},{"className":6057},[],[6059],{"type":998,"value":6060},"8",{"type":993,"tag":5998,"props":6062,"children":6063},{},[6064,6072,6077,6086],{"type":993,"tag":6030,"props":6065,"children":6066},{},[6067],{"type":993,"tag":1022,"props":6068,"children":6070},{"className":6069},[],[6071],{"type":998,"value":1280},{"type":993,"tag":6030,"props":6073,"children":6074},{},[6075],{"type":998,"value":6076},"Subtraction",{"type":993,"tag":6030,"props":6078,"children":6079},{},[6080],{"type":993,"tag":1022,"props":6081,"children":6083},{"className":6082},[],[6084],{"type":998,"value":6085},"5 - 3",{"type":993,"tag":6030,"props":6087,"children":6088},{},[6089],{"type":993,"tag":1022,"props":6090,"children":6092},{"className":6091},[],[6093],{"type":998,"value":3392},{"type":993,"tag":5998,"props":6095,"children":6096},{},[6097,6105,6110,6119],{"type":993,"tag":6030,"props":6098,"children":6099},{},[6100],{"type":993,"tag":1022,"props":6101,"children":6103},{"className":6102},[],[6104],{"type":998,"value":1366},{"type":993,"tag":6030,"props":6106,"children":6107},{},[6108],{"type":998,"value":6109},"Multiplication",{"type":993,"tag":6030,"props":6111,"children":6112},{},[6113],{"type":993,"tag":1022,"props":6114,"children":6116},{"className":6115},[],[6117],{"type":998,"value":6118},"5 * 3",{"type":993,"tag":6030,"props":6120,"children":6121},{},[6122],{"type":993,"tag":1022,"props":6123,"children":6125},{"className":6124},[],[6126],{"type":998,"value":6127},"15",{"type":993,"tag":5998,"props":6129,"children":6130},{},[6131,6139,6144,6153],{"type":993,"tag":6030,"props":6132,"children":6133},{},[6134],{"type":993,"tag":1022,"props":6135,"children":6137},{"className":6136},[],[6138],{"type":998,"value":1452},{"type":993,"tag":6030,"props":6140,"children":6141},{},[6142],{"type":998,"value":6143},"Division",{"type":993,"tag":6030,"props":6145,"children":6146},{},[6147],{"type":993,"tag":1022,"props":6148,"children":6150},{"className":6149},[],[6151],{"type":998,"value":6152},"5 / 3",{"type":993,"tag":6030,"props":6154,"children":6155},{},[6156],{"type":993,"tag":1022,"props":6157,"children":6159},{"className":6158},[],[6160],{"type":998,"value":6161},"1.6667",{"type":993,"tag":5998,"props":6163,"children":6164},{},[6165,6173,6178,6187],{"type":993,"tag":6030,"props":6166,"children":6167},{},[6168],{"type":993,"tag":1022,"props":6169,"children":6171},{"className":6170},[],[6172],{"type":998,"value":1555},{"type":993,"tag":6030,"props":6174,"children":6175},{},[6176],{"type":998,"value":6177},"Floor Division",{"type":993,"tag":6030,"props":6179,"children":6180},{},[6181],{"type":993,"tag":1022,"props":6182,"children":6184},{"className":6183},[],[6185],{"type":998,"value":6186},"5 // 3",{"type":993,"tag":6030,"props":6188,"children":6189},{},[6190],{"type":993,"tag":1022,"props":6191,"children":6193},{"className":6192},[],[6194],{"type":998,"value":3654},{"type":993,"tag":5998,"props":6196,"children":6197},{},[6198,6206,6211,6220],{"type":993,"tag":6030,"props":6199,"children":6200},{},[6201],{"type":993,"tag":1022,"props":6202,"children":6204},{"className":6203},[],[6205],{"type":998,"value":1566},{"type":993,"tag":6030,"props":6207,"children":6208},{},[6209],{"type":998,"value":6210},"Modulus",{"type":993,"tag":6030,"props":6212,"children":6213},{},[6214],{"type":993,"tag":1022,"props":6215,"children":6217},{"className":6216},[],[6218],{"type":998,"value":6219},"5 % 3",{"type":993,"tag":6030,"props":6221,"children":6222},{},[6223],{"type":993,"tag":1022,"props":6224,"children":6226},{"className":6225},[],[6227],{"type":998,"value":3392},{"type":993,"tag":5998,"props":6229,"children":6230},{},[6231,6239,6244,6253],{"type":993,"tag":6030,"props":6232,"children":6233},{},[6234],{"type":993,"tag":1022,"props":6235,"children":6237},{"className":6236},[],[6238],{"type":998,"value":1577},{"type":993,"tag":6030,"props":6240,"children":6241},{},[6242],{"type":998,"value":6243},"Exponentiation",{"type":993,"tag":6030,"props":6245,"children":6246},{},[6247],{"type":993,"tag":1022,"props":6248,"children":6250},{"className":6249},[],[6251],{"type":998,"value":6252},"5 ** 3",{"type":993,"tag":6030,"props":6254,"children":6255},{},[6256],{"type":993,"tag":1022,"props":6257,"children":6259},{"className":6258},[],[6260],{"type":998,"value":6261},"125",{"type":993,"tag":1001,"props":6263,"children":6264},{},[6265,6267,6275,6277,6285,6287,6295,6296,6304],{"type":998,"value":6266},"Understanding these basic math operations prepares you for ",{"type":993,"tag":1497,"props":6268,"children":6269},{},[6270],{"type":993,"tag":1151,"props":6271,"children":6272},{"href":151},[6273],{"type":998,"value":6274},"comparing values",{"type":998,"value":6276}," and ",{"type":993,"tag":1497,"props":6278,"children":6279},{},[6280],{"type":993,"tag":1151,"props":6281,"children":6282},{"href":123},[6283],{"type":998,"value":6284},"converting types",{"type":998,"value":6286},". Math operations are also fundamental to ",{"type":993,"tag":1497,"props":6288,"children":6289},{},[6290],{"type":993,"tag":1151,"props":6291,"children":6292},{"href":280},[6293],{"type":998,"value":6294},"working with lists",{"type":998,"value":6276},{"type":993,"tag":1497,"props":6297,"children":6298},{},[6299],{"type":993,"tag":1151,"props":6300,"children":6301},{"href":617},[6302],{"type":998,"value":6303},"function development",{"type":998,"value":6305},".",{"type":993,"tag":1475,"props":6307,"children":6309},{"id":6308},"test-your-knowledge",[6310],{"type":998,"value":6311},"Test Your Knowledge",{"type":993,"tag":6313,"props":6314,"children":6318},"redirect-button",{"icon":6315,"label":6316,"url":6317},"pi pi-send","Take Quiz","/tutorial-quiz/python/math-operations",[],{"type":993,"tag":1475,"props":6320,"children":6322},{"id":6321},"whats-next",[6323],{"type":998,"value":6324},"🚀 What's Next?",{"type":993,"tag":1001,"props":6326,"children":6327},{},[6328],{"type":998,"value":6329},"Now that you've mastered basic math operations, you're ready to learn about making comparisons between values. Math operations often work together with comparison operators to create powerful decision-making logic.",{"type":993,"tag":1001,"props":6331,"children":6332},{},[6333,6335,6342],{"type":998,"value":6334},"In the next lesson, we'll explore ",{"type":993,"tag":1497,"props":6336,"children":6337},{},[6338],{"type":993,"tag":1151,"props":6339,"children":6340},{"href":151},[6341],{"type":998,"value":152},{"type":998,"value":6343},", where you'll learn how to compare numbers and make decisions based on mathematical relationships.",{"type":993,"tag":6345,"props":6346,"children":6347},"style",{},[6348],{"type":998,"value":6349},"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":6351},[6352,6353,6354,6355,6356,6357,6358,6361,6362,6363],{"id":1477,"depth":27,"text":1480},{"id":1994,"depth":27,"text":1997},{"id":2453,"depth":27,"text":2456},{"id":3062,"depth":27,"text":3065},{"id":71,"depth":27,"text":3735},{"id":4410,"depth":27,"text":4413},{"id":5099,"depth":27,"text":5102,"children":6359},[6360],{"id":5510,"depth":36,"text":5513},{"id":5985,"depth":27,"text":5988},{"id":6308,"depth":27,"text":6311},{"id":6321,"depth":27,"text":6324},1782373732339]