[{"data":1,"prerenderedAt":8345},["ShallowReactive",2],{"tutorials-python":3,"category-items-python":987,"content-/python/working-with-numbers":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},"/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},"/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",[95],{"_path":96,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":97,"description":98,"slug":99,"parentId":77,"order":100,"body":989,"_type":15,"_id":101,"_source":17,"_file":102,"_stem":103,"_extension":20},{"type":990,"children":991,"toc":8312},"root",[992,1000,1006,1026,1319,1326,1336,1341,1620,1627,1919,1925,1935,1948,2271,2277,2297,2567,2724,2730,2735,3393,3399,3404,3724,3730,3735,3741,3957,3963,4212,4390,4396,4401,4407,4696,4702,5103,5109,5370,5376,5381,5780,5786,6284,6290,6295,6656,6662,6668,7074,7080,7303,7309,7642,7648,7959,7965,8184,8259,8265,8270,8277,8283,8288,8301,8306],{"type":993,"tag":994,"props":995,"children":996},"element","h1",{"id":99},[997],{"type":998,"value":999},"text","🔢 Working with Numbers",{"type":993,"tag":1001,"props":1002,"children":1003},"p",{},[1004],{"type":998,"value":1005},"Numbers are everywhere in programming! From counting items to calculating prices, from measuring distances to tracking scores—numbers are essential for making your programs useful and interactive.",{"type":993,"tag":1001,"props":1007,"children":1008},{},[1009,1011,1017,1019,1024],{"type":998,"value":1010},"Python makes working with numbers easy and powerful. It has two main number types: ",{"type":993,"tag":1012,"props":1013,"children":1014},"strong",{},[1015],{"type":998,"value":1016},"integers",{"type":998,"value":1018}," for whole numbers and ",{"type":993,"tag":1012,"props":1020,"children":1021},{},[1022],{"type":998,"value":1023},"floats",{"type":998,"value":1025}," for decimal numbers. Understanding both types helps you choose the right one for each situation.",{"type":993,"tag":1027,"props":1028,"children":1029},"code-try",{},[1030],{"type":993,"tag":1031,"props":1032,"children":1035},"pre",{"className":1033,"code":1034,"language":6,"meta":8,"style":8},"language-python shiki shiki-themes github-light github-dark","# Basic number examples\nage = 25           # Integer (whole number)\nprice = 19.99      # Float (decimal number)\ntemperature = -5   # Negative integer\n\nprint(f\"Age: {age} (type: {type(age)})\")\nprint(f\"Price: ${price} (type: {type(price)})\")\nprint(f\"Temperature: {temperature}°C (type: {type(temperature)})\")\n",[1036],{"type":993,"tag":1037,"props":1038,"children":1039},"code",{"__ignoreMap":8},[1040,1051,1077,1099,1126,1134,1202,1260],{"type":993,"tag":1041,"props":1042,"children":1044},"span",{"class":1043,"line":12},"line",[1045],{"type":993,"tag":1041,"props":1046,"children":1048},{"style":1047},"--shiki-default:#6A737D;--shiki-app-dark-mode:#6A737D",[1049],{"type":998,"value":1050},"# Basic number examples\n",{"type":993,"tag":1041,"props":1052,"children":1053},{"class":1043,"line":27},[1054,1060,1066,1072],{"type":993,"tag":1041,"props":1055,"children":1057},{"style":1056},"--shiki-default:#24292E;--shiki-app-dark-mode:#E1E4E8",[1058],{"type":998,"value":1059},"age ",{"type":993,"tag":1041,"props":1061,"children":1063},{"style":1062},"--shiki-default:#D73A49;--shiki-app-dark-mode:#F97583",[1064],{"type":998,"value":1065},"=",{"type":993,"tag":1041,"props":1067,"children":1069},{"style":1068},"--shiki-default:#005CC5;--shiki-app-dark-mode:#79B8FF",[1070],{"type":998,"value":1071}," 25",{"type":993,"tag":1041,"props":1073,"children":1074},{"style":1047},[1075],{"type":998,"value":1076},"           # Integer (whole number)\n",{"type":993,"tag":1041,"props":1078,"children":1079},{"class":1043,"line":36},[1080,1085,1089,1094],{"type":993,"tag":1041,"props":1081,"children":1082},{"style":1056},[1083],{"type":998,"value":1084},"price ",{"type":993,"tag":1041,"props":1086,"children":1087},{"style":1062},[1088],{"type":998,"value":1065},{"type":993,"tag":1041,"props":1090,"children":1091},{"style":1068},[1092],{"type":998,"value":1093}," 19.99",{"type":993,"tag":1041,"props":1095,"children":1096},{"style":1047},[1097],{"type":998,"value":1098},"      # Float (decimal number)\n",{"type":993,"tag":1041,"props":1100,"children":1101},{"class":1043,"line":45},[1102,1107,1111,1116,1121],{"type":993,"tag":1041,"props":1103,"children":1104},{"style":1056},[1105],{"type":998,"value":1106},"temperature ",{"type":993,"tag":1041,"props":1108,"children":1109},{"style":1062},[1110],{"type":998,"value":1065},{"type":993,"tag":1041,"props":1112,"children":1113},{"style":1062},[1114],{"type":998,"value":1115}," -",{"type":993,"tag":1041,"props":1117,"children":1118},{"style":1068},[1119],{"type":998,"value":1120},"5",{"type":993,"tag":1041,"props":1122,"children":1123},{"style":1047},[1124],{"type":998,"value":1125},"   # Negative integer\n",{"type":993,"tag":1041,"props":1127,"children":1128},{"class":1043,"line":54},[1129],{"type":993,"tag":1041,"props":1130,"children":1131},{"emptyLinePlaceholder":13},[1132],{"type":998,"value":1133},"\n",{"type":993,"tag":1041,"props":1135,"children":1136},{"class":1043,"line":63},[1137,1142,1147,1152,1158,1163,1168,1173,1178,1183,1188,1192,1197],{"type":993,"tag":1041,"props":1138,"children":1139},{"style":1068},[1140],{"type":998,"value":1141},"print",{"type":993,"tag":1041,"props":1143,"children":1144},{"style":1056},[1145],{"type":998,"value":1146},"(",{"type":993,"tag":1041,"props":1148,"children":1149},{"style":1062},[1150],{"type":998,"value":1151},"f",{"type":993,"tag":1041,"props":1153,"children":1155},{"style":1154},"--shiki-default:#032F62;--shiki-app-dark-mode:#9ECBFF",[1156],{"type":998,"value":1157},"\"Age: ",{"type":993,"tag":1041,"props":1159,"children":1160},{"style":1068},[1161],{"type":998,"value":1162},"{",{"type":993,"tag":1041,"props":1164,"children":1165},{"style":1056},[1166],{"type":998,"value":1167},"age",{"type":993,"tag":1041,"props":1169,"children":1170},{"style":1068},[1171],{"type":998,"value":1172},"}",{"type":993,"tag":1041,"props":1174,"children":1175},{"style":1154},[1176],{"type":998,"value":1177}," (type: ",{"type":993,"tag":1041,"props":1179,"children":1180},{"style":1068},[1181],{"type":998,"value":1182},"{type",{"type":993,"tag":1041,"props":1184,"children":1185},{"style":1056},[1186],{"type":998,"value":1187},"(age)",{"type":993,"tag":1041,"props":1189,"children":1190},{"style":1068},[1191],{"type":998,"value":1172},{"type":993,"tag":1041,"props":1193,"children":1194},{"style":1154},[1195],{"type":998,"value":1196},")\"",{"type":993,"tag":1041,"props":1198,"children":1199},{"style":1056},[1200],{"type":998,"value":1201},")\n",{"type":993,"tag":1041,"props":1203,"children":1204},{"class":1043,"line":72},[1205,1209,1213,1217,1222,1226,1231,1235,1239,1243,1248,1252,1256],{"type":993,"tag":1041,"props":1206,"children":1207},{"style":1068},[1208],{"type":998,"value":1141},{"type":993,"tag":1041,"props":1210,"children":1211},{"style":1056},[1212],{"type":998,"value":1146},{"type":993,"tag":1041,"props":1214,"children":1215},{"style":1062},[1216],{"type":998,"value":1151},{"type":993,"tag":1041,"props":1218,"children":1219},{"style":1154},[1220],{"type":998,"value":1221},"\"Price: $",{"type":993,"tag":1041,"props":1223,"children":1224},{"style":1068},[1225],{"type":998,"value":1162},{"type":993,"tag":1041,"props":1227,"children":1228},{"style":1056},[1229],{"type":998,"value":1230},"price",{"type":993,"tag":1041,"props":1232,"children":1233},{"style":1068},[1234],{"type":998,"value":1172},{"type":993,"tag":1041,"props":1236,"children":1237},{"style":1154},[1238],{"type":998,"value":1177},{"type":993,"tag":1041,"props":1240,"children":1241},{"style":1068},[1242],{"type":998,"value":1182},{"type":993,"tag":1041,"props":1244,"children":1245},{"style":1056},[1246],{"type":998,"value":1247},"(price)",{"type":993,"tag":1041,"props":1249,"children":1250},{"style":1068},[1251],{"type":998,"value":1172},{"type":993,"tag":1041,"props":1253,"children":1254},{"style":1154},[1255],{"type":998,"value":1196},{"type":993,"tag":1041,"props":1257,"children":1258},{"style":1056},[1259],{"type":998,"value":1201},{"type":993,"tag":1041,"props":1261,"children":1262},{"class":1043,"line":81},[1263,1267,1271,1275,1280,1284,1289,1293,1298,1302,1307,1311,1315],{"type":993,"tag":1041,"props":1264,"children":1265},{"style":1068},[1266],{"type":998,"value":1141},{"type":993,"tag":1041,"props":1268,"children":1269},{"style":1056},[1270],{"type":998,"value":1146},{"type":993,"tag":1041,"props":1272,"children":1273},{"style":1062},[1274],{"type":998,"value":1151},{"type":993,"tag":1041,"props":1276,"children":1277},{"style":1154},[1278],{"type":998,"value":1279},"\"Temperature: ",{"type":993,"tag":1041,"props":1281,"children":1282},{"style":1068},[1283],{"type":998,"value":1162},{"type":993,"tag":1041,"props":1285,"children":1286},{"style":1056},[1287],{"type":998,"value":1288},"temperature",{"type":993,"tag":1041,"props":1290,"children":1291},{"style":1068},[1292],{"type":998,"value":1172},{"type":993,"tag":1041,"props":1294,"children":1295},{"style":1154},[1296],{"type":998,"value":1297},"°C (type: ",{"type":993,"tag":1041,"props":1299,"children":1300},{"style":1068},[1301],{"type":998,"value":1182},{"type":993,"tag":1041,"props":1303,"children":1304},{"style":1056},[1305],{"type":998,"value":1306},"(temperature)",{"type":993,"tag":1041,"props":1308,"children":1309},{"style":1068},[1310],{"type":998,"value":1172},{"type":993,"tag":1041,"props":1312,"children":1313},{"style":1154},[1314],{"type":998,"value":1196},{"type":993,"tag":1041,"props":1316,"children":1317},{"style":1056},[1318],{"type":998,"value":1201},{"type":993,"tag":1320,"props":1321,"children":1323},"h2",{"id":1322},"integer-numbers-int",[1324],{"type":998,"value":1325},"🔢 Integer Numbers (int)",{"type":993,"tag":1001,"props":1327,"children":1328},{},[1329,1334],{"type":993,"tag":1012,"props":1330,"children":1331},{},[1332],{"type":998,"value":1333},"Integers",{"type":998,"value":1335}," are whole numbers—no decimal points allowed! They can be positive, negative, or zero. Python can handle incredibly large integers without any special setup, making them perfect for counting and precise calculations.",{"type":993,"tag":1001,"props":1337,"children":1338},{},[1339],{"type":998,"value":1340},"Use integers when you're working with things that can't be split into parts: people, books, days, years, etc.",{"type":993,"tag":1027,"props":1342,"children":1343},{},[1344],{"type":993,"tag":1031,"props":1345,"children":1347},{"className":1033,"code":1346,"language":6,"meta":8,"style":8},"# Working with integers\nstudents = 30\nbooks = 150\nyear = 2024\n\nprint(f\"There are {students} students\")\nprint(f\"The library has {books} books\")\nprint(f\"Current year: {year}\")\n\n# Integers can be negative\nscore_change = -10\nprint(f\"Score changed by: {score_change}\")\n",[1348],{"type":993,"tag":1037,"props":1349,"children":1350},{"__ignoreMap":8},[1351,1359,1376,1393,1410,1417,1459,1501,1543,1550,1558,1579],{"type":993,"tag":1041,"props":1352,"children":1353},{"class":1043,"line":12},[1354],{"type":993,"tag":1041,"props":1355,"children":1356},{"style":1047},[1357],{"type":998,"value":1358},"# Working with integers\n",{"type":993,"tag":1041,"props":1360,"children":1361},{"class":1043,"line":27},[1362,1367,1371],{"type":993,"tag":1041,"props":1363,"children":1364},{"style":1056},[1365],{"type":998,"value":1366},"students ",{"type":993,"tag":1041,"props":1368,"children":1369},{"style":1062},[1370],{"type":998,"value":1065},{"type":993,"tag":1041,"props":1372,"children":1373},{"style":1068},[1374],{"type":998,"value":1375}," 30\n",{"type":993,"tag":1041,"props":1377,"children":1378},{"class":1043,"line":36},[1379,1384,1388],{"type":993,"tag":1041,"props":1380,"children":1381},{"style":1056},[1382],{"type":998,"value":1383},"books ",{"type":993,"tag":1041,"props":1385,"children":1386},{"style":1062},[1387],{"type":998,"value":1065},{"type":993,"tag":1041,"props":1389,"children":1390},{"style":1068},[1391],{"type":998,"value":1392}," 150\n",{"type":993,"tag":1041,"props":1394,"children":1395},{"class":1043,"line":45},[1396,1401,1405],{"type":993,"tag":1041,"props":1397,"children":1398},{"style":1056},[1399],{"type":998,"value":1400},"year ",{"type":993,"tag":1041,"props":1402,"children":1403},{"style":1062},[1404],{"type":998,"value":1065},{"type":993,"tag":1041,"props":1406,"children":1407},{"style":1068},[1408],{"type":998,"value":1409}," 2024\n",{"type":993,"tag":1041,"props":1411,"children":1412},{"class":1043,"line":54},[1413],{"type":993,"tag":1041,"props":1414,"children":1415},{"emptyLinePlaceholder":13},[1416],{"type":998,"value":1133},{"type":993,"tag":1041,"props":1418,"children":1419},{"class":1043,"line":63},[1420,1424,1428,1432,1437,1441,1446,1450,1455],{"type":993,"tag":1041,"props":1421,"children":1422},{"style":1068},[1423],{"type":998,"value":1141},{"type":993,"tag":1041,"props":1425,"children":1426},{"style":1056},[1427],{"type":998,"value":1146},{"type":993,"tag":1041,"props":1429,"children":1430},{"style":1062},[1431],{"type":998,"value":1151},{"type":993,"tag":1041,"props":1433,"children":1434},{"style":1154},[1435],{"type":998,"value":1436},"\"There are ",{"type":993,"tag":1041,"props":1438,"children":1439},{"style":1068},[1440],{"type":998,"value":1162},{"type":993,"tag":1041,"props":1442,"children":1443},{"style":1056},[1444],{"type":998,"value":1445},"students",{"type":993,"tag":1041,"props":1447,"children":1448},{"style":1068},[1449],{"type":998,"value":1172},{"type":993,"tag":1041,"props":1451,"children":1452},{"style":1154},[1453],{"type":998,"value":1454}," students\"",{"type":993,"tag":1041,"props":1456,"children":1457},{"style":1056},[1458],{"type":998,"value":1201},{"type":993,"tag":1041,"props":1460,"children":1461},{"class":1043,"line":72},[1462,1466,1470,1474,1479,1483,1488,1492,1497],{"type":993,"tag":1041,"props":1463,"children":1464},{"style":1068},[1465],{"type":998,"value":1141},{"type":993,"tag":1041,"props":1467,"children":1468},{"style":1056},[1469],{"type":998,"value":1146},{"type":993,"tag":1041,"props":1471,"children":1472},{"style":1062},[1473],{"type":998,"value":1151},{"type":993,"tag":1041,"props":1475,"children":1476},{"style":1154},[1477],{"type":998,"value":1478},"\"The library has ",{"type":993,"tag":1041,"props":1480,"children":1481},{"style":1068},[1482],{"type":998,"value":1162},{"type":993,"tag":1041,"props":1484,"children":1485},{"style":1056},[1486],{"type":998,"value":1487},"books",{"type":993,"tag":1041,"props":1489,"children":1490},{"style":1068},[1491],{"type":998,"value":1172},{"type":993,"tag":1041,"props":1493,"children":1494},{"style":1154},[1495],{"type":998,"value":1496}," books\"",{"type":993,"tag":1041,"props":1498,"children":1499},{"style":1056},[1500],{"type":998,"value":1201},{"type":993,"tag":1041,"props":1502,"children":1503},{"class":1043,"line":81},[1504,1508,1512,1516,1521,1525,1530,1534,1539],{"type":993,"tag":1041,"props":1505,"children":1506},{"style":1068},[1507],{"type":998,"value":1141},{"type":993,"tag":1041,"props":1509,"children":1510},{"style":1056},[1511],{"type":998,"value":1146},{"type":993,"tag":1041,"props":1513,"children":1514},{"style":1062},[1515],{"type":998,"value":1151},{"type":993,"tag":1041,"props":1517,"children":1518},{"style":1154},[1519],{"type":998,"value":1520},"\"Current year: ",{"type":993,"tag":1041,"props":1522,"children":1523},{"style":1068},[1524],{"type":998,"value":1162},{"type":993,"tag":1041,"props":1526,"children":1527},{"style":1056},[1528],{"type":998,"value":1529},"year",{"type":993,"tag":1041,"props":1531,"children":1532},{"style":1068},[1533],{"type":998,"value":1172},{"type":993,"tag":1041,"props":1535,"children":1536},{"style":1154},[1537],{"type":998,"value":1538},"\"",{"type":993,"tag":1041,"props":1540,"children":1541},{"style":1056},[1542],{"type":998,"value":1201},{"type":993,"tag":1041,"props":1544,"children":1545},{"class":1043,"line":91},[1546],{"type":993,"tag":1041,"props":1547,"children":1548},{"emptyLinePlaceholder":13},[1549],{"type":998,"value":1133},{"type":993,"tag":1041,"props":1551,"children":1552},{"class":1043,"line":100},[1553],{"type":993,"tag":1041,"props":1554,"children":1555},{"style":1047},[1556],{"type":998,"value":1557},"# Integers can be negative\n",{"type":993,"tag":1041,"props":1559,"children":1560},{"class":1043,"line":109},[1561,1566,1570,1574],{"type":993,"tag":1041,"props":1562,"children":1563},{"style":1056},[1564],{"type":998,"value":1565},"score_change ",{"type":993,"tag":1041,"props":1567,"children":1568},{"style":1062},[1569],{"type":998,"value":1065},{"type":993,"tag":1041,"props":1571,"children":1572},{"style":1062},[1573],{"type":998,"value":1115},{"type":993,"tag":1041,"props":1575,"children":1576},{"style":1068},[1577],{"type":998,"value":1578},"10\n",{"type":993,"tag":1041,"props":1580,"children":1581},{"class":1043,"line":118},[1582,1586,1590,1594,1599,1603,1608,1612,1616],{"type":993,"tag":1041,"props":1583,"children":1584},{"style":1068},[1585],{"type":998,"value":1141},{"type":993,"tag":1041,"props":1587,"children":1588},{"style":1056},[1589],{"type":998,"value":1146},{"type":993,"tag":1041,"props":1591,"children":1592},{"style":1062},[1593],{"type":998,"value":1151},{"type":993,"tag":1041,"props":1595,"children":1596},{"style":1154},[1597],{"type":998,"value":1598},"\"Score changed by: ",{"type":993,"tag":1041,"props":1600,"children":1601},{"style":1068},[1602],{"type":998,"value":1162},{"type":993,"tag":1041,"props":1604,"children":1605},{"style":1056},[1606],{"type":998,"value":1607},"score_change",{"type":993,"tag":1041,"props":1609,"children":1610},{"style":1068},[1611],{"type":998,"value":1172},{"type":993,"tag":1041,"props":1613,"children":1614},{"style":1154},[1615],{"type":998,"value":1538},{"type":993,"tag":1041,"props":1617,"children":1618},{"style":1056},[1619],{"type":998,"value":1201},{"type":993,"tag":1621,"props":1622,"children":1624},"h3",{"id":1623},"integer-math",[1625],{"type":998,"value":1626},"➕ Integer Math",{"type":993,"tag":1027,"props":1628,"children":1629},{},[1630],{"type":993,"tag":1031,"props":1631,"children":1633},{"className":1033,"code":1632,"language":6,"meta":8,"style":8},"# Integer calculations\napples = 10\noranges = 15\ntotal_fruit = apples + oranges\n\nprint(f\"Apples: {apples}\")\nprint(f\"Oranges: {oranges}\")\nprint(f\"Total fruit: {total_fruit}\")\n\n# Python handles very large numbers automatically\npopulation = 7800000000  # World population\nprint(f\"World population: {population:,}\")\n",[1634],{"type":993,"tag":1037,"props":1635,"children":1636},{"__ignoreMap":8},[1637,1645,1662,1679,1706,1713,1754,1795,1836,1843,1851,1873],{"type":993,"tag":1041,"props":1638,"children":1639},{"class":1043,"line":12},[1640],{"type":993,"tag":1041,"props":1641,"children":1642},{"style":1047},[1643],{"type":998,"value":1644},"# Integer calculations\n",{"type":993,"tag":1041,"props":1646,"children":1647},{"class":1043,"line":27},[1648,1653,1657],{"type":993,"tag":1041,"props":1649,"children":1650},{"style":1056},[1651],{"type":998,"value":1652},"apples ",{"type":993,"tag":1041,"props":1654,"children":1655},{"style":1062},[1656],{"type":998,"value":1065},{"type":993,"tag":1041,"props":1658,"children":1659},{"style":1068},[1660],{"type":998,"value":1661}," 10\n",{"type":993,"tag":1041,"props":1663,"children":1664},{"class":1043,"line":36},[1665,1670,1674],{"type":993,"tag":1041,"props":1666,"children":1667},{"style":1056},[1668],{"type":998,"value":1669},"oranges ",{"type":993,"tag":1041,"props":1671,"children":1672},{"style":1062},[1673],{"type":998,"value":1065},{"type":993,"tag":1041,"props":1675,"children":1676},{"style":1068},[1677],{"type":998,"value":1678}," 15\n",{"type":993,"tag":1041,"props":1680,"children":1681},{"class":1043,"line":45},[1682,1687,1691,1696,1701],{"type":993,"tag":1041,"props":1683,"children":1684},{"style":1056},[1685],{"type":998,"value":1686},"total_fruit ",{"type":993,"tag":1041,"props":1688,"children":1689},{"style":1062},[1690],{"type":998,"value":1065},{"type":993,"tag":1041,"props":1692,"children":1693},{"style":1056},[1694],{"type":998,"value":1695}," apples ",{"type":993,"tag":1041,"props":1697,"children":1698},{"style":1062},[1699],{"type":998,"value":1700},"+",{"type":993,"tag":1041,"props":1702,"children":1703},{"style":1056},[1704],{"type":998,"value":1705}," oranges\n",{"type":993,"tag":1041,"props":1707,"children":1708},{"class":1043,"line":54},[1709],{"type":993,"tag":1041,"props":1710,"children":1711},{"emptyLinePlaceholder":13},[1712],{"type":998,"value":1133},{"type":993,"tag":1041,"props":1714,"children":1715},{"class":1043,"line":63},[1716,1720,1724,1728,1733,1737,1742,1746,1750],{"type":993,"tag":1041,"props":1717,"children":1718},{"style":1068},[1719],{"type":998,"value":1141},{"type":993,"tag":1041,"props":1721,"children":1722},{"style":1056},[1723],{"type":998,"value":1146},{"type":993,"tag":1041,"props":1725,"children":1726},{"style":1062},[1727],{"type":998,"value":1151},{"type":993,"tag":1041,"props":1729,"children":1730},{"style":1154},[1731],{"type":998,"value":1732},"\"Apples: ",{"type":993,"tag":1041,"props":1734,"children":1735},{"style":1068},[1736],{"type":998,"value":1162},{"type":993,"tag":1041,"props":1738,"children":1739},{"style":1056},[1740],{"type":998,"value":1741},"apples",{"type":993,"tag":1041,"props":1743,"children":1744},{"style":1068},[1745],{"type":998,"value":1172},{"type":993,"tag":1041,"props":1747,"children":1748},{"style":1154},[1749],{"type":998,"value":1538},{"type":993,"tag":1041,"props":1751,"children":1752},{"style":1056},[1753],{"type":998,"value":1201},{"type":993,"tag":1041,"props":1755,"children":1756},{"class":1043,"line":72},[1757,1761,1765,1769,1774,1778,1783,1787,1791],{"type":993,"tag":1041,"props":1758,"children":1759},{"style":1068},[1760],{"type":998,"value":1141},{"type":993,"tag":1041,"props":1762,"children":1763},{"style":1056},[1764],{"type":998,"value":1146},{"type":993,"tag":1041,"props":1766,"children":1767},{"style":1062},[1768],{"type":998,"value":1151},{"type":993,"tag":1041,"props":1770,"children":1771},{"style":1154},[1772],{"type":998,"value":1773},"\"Oranges: ",{"type":993,"tag":1041,"props":1775,"children":1776},{"style":1068},[1777],{"type":998,"value":1162},{"type":993,"tag":1041,"props":1779,"children":1780},{"style":1056},[1781],{"type":998,"value":1782},"oranges",{"type":993,"tag":1041,"props":1784,"children":1785},{"style":1068},[1786],{"type":998,"value":1172},{"type":993,"tag":1041,"props":1788,"children":1789},{"style":1154},[1790],{"type":998,"value":1538},{"type":993,"tag":1041,"props":1792,"children":1793},{"style":1056},[1794],{"type":998,"value":1201},{"type":993,"tag":1041,"props":1796,"children":1797},{"class":1043,"line":81},[1798,1802,1806,1810,1815,1819,1824,1828,1832],{"type":993,"tag":1041,"props":1799,"children":1800},{"style":1068},[1801],{"type":998,"value":1141},{"type":993,"tag":1041,"props":1803,"children":1804},{"style":1056},[1805],{"type":998,"value":1146},{"type":993,"tag":1041,"props":1807,"children":1808},{"style":1062},[1809],{"type":998,"value":1151},{"type":993,"tag":1041,"props":1811,"children":1812},{"style":1154},[1813],{"type":998,"value":1814},"\"Total fruit: ",{"type":993,"tag":1041,"props":1816,"children":1817},{"style":1068},[1818],{"type":998,"value":1162},{"type":993,"tag":1041,"props":1820,"children":1821},{"style":1056},[1822],{"type":998,"value":1823},"total_fruit",{"type":993,"tag":1041,"props":1825,"children":1826},{"style":1068},[1827],{"type":998,"value":1172},{"type":993,"tag":1041,"props":1829,"children":1830},{"style":1154},[1831],{"type":998,"value":1538},{"type":993,"tag":1041,"props":1833,"children":1834},{"style":1056},[1835],{"type":998,"value":1201},{"type":993,"tag":1041,"props":1837,"children":1838},{"class":1043,"line":91},[1839],{"type":993,"tag":1041,"props":1840,"children":1841},{"emptyLinePlaceholder":13},[1842],{"type":998,"value":1133},{"type":993,"tag":1041,"props":1844,"children":1845},{"class":1043,"line":100},[1846],{"type":993,"tag":1041,"props":1847,"children":1848},{"style":1047},[1849],{"type":998,"value":1850},"# Python handles very large numbers automatically\n",{"type":993,"tag":1041,"props":1852,"children":1853},{"class":1043,"line":109},[1854,1859,1863,1868],{"type":993,"tag":1041,"props":1855,"children":1856},{"style":1056},[1857],{"type":998,"value":1858},"population ",{"type":993,"tag":1041,"props":1860,"children":1861},{"style":1062},[1862],{"type":998,"value":1065},{"type":993,"tag":1041,"props":1864,"children":1865},{"style":1068},[1866],{"type":998,"value":1867}," 7800000000",{"type":993,"tag":1041,"props":1869,"children":1870},{"style":1047},[1871],{"type":998,"value":1872},"  # World population\n",{"type":993,"tag":1041,"props":1874,"children":1875},{"class":1043,"line":118},[1876,1880,1884,1888,1893,1897,1902,1907,1911,1915],{"type":993,"tag":1041,"props":1877,"children":1878},{"style":1068},[1879],{"type":998,"value":1141},{"type":993,"tag":1041,"props":1881,"children":1882},{"style":1056},[1883],{"type":998,"value":1146},{"type":993,"tag":1041,"props":1885,"children":1886},{"style":1062},[1887],{"type":998,"value":1151},{"type":993,"tag":1041,"props":1889,"children":1890},{"style":1154},[1891],{"type":998,"value":1892},"\"World population: ",{"type":993,"tag":1041,"props":1894,"children":1895},{"style":1068},[1896],{"type":998,"value":1162},{"type":993,"tag":1041,"props":1898,"children":1899},{"style":1056},[1900],{"type":998,"value":1901},"population",{"type":993,"tag":1041,"props":1903,"children":1904},{"style":1062},[1905],{"type":998,"value":1906},":,",{"type":993,"tag":1041,"props":1908,"children":1909},{"style":1068},[1910],{"type":998,"value":1172},{"type":993,"tag":1041,"props":1912,"children":1913},{"style":1154},[1914],{"type":998,"value":1538},{"type":993,"tag":1041,"props":1916,"children":1917},{"style":1056},[1918],{"type":998,"value":1201},{"type":993,"tag":1320,"props":1920,"children":1922},{"id":1921},"floating-point-numbers-float",[1923],{"type":998,"value":1924},"🎯 Floating-Point Numbers (float)",{"type":993,"tag":1001,"props":1926,"children":1927},{},[1928,1933],{"type":993,"tag":1012,"props":1929,"children":1930},{},[1931],{"type":998,"value":1932},"Floats",{"type":998,"value":1934}," are numbers with decimal points—they represent precise values that need fractional parts. Perfect for measurements, prices, percentages, and scientific calculations.",{"type":993,"tag":1001,"props":1936,"children":1937},{},[1938,1940,1946],{"type":998,"value":1939},"Even if the decimal part is zero (like ",{"type":993,"tag":1037,"props":1941,"children":1943},{"className":1942},[],[1944],{"type":998,"value":1945},"42.0",{"type":998,"value":1947},"), Python still treats it as a float!",{"type":993,"tag":1027,"props":1949,"children":1950},{},[1951],{"type":993,"tag":1031,"props":1952,"children":1954},{"className":1033,"code":1953,"language":6,"meta":8,"style":8},"# Working with floats\nheight = 5.8\nweight = 68.5\npi = 3.14159\nprice = 19.99\n\nprint(f\"Height: {height} feet (type: {type(height)})\")\nprint(f\"Weight: {weight} kg (type: {type(weight)})\")\nprint(f\"Pi: {pi} (type: {type(pi)})\")\nprint(f\"Price: ${price} (type: {type(price)})\")\n",[1955],{"type":993,"tag":1037,"props":1956,"children":1957},{"__ignoreMap":8},[1958,1966,1983,2000,2017,2033,2040,2099,2158,2216],{"type":993,"tag":1041,"props":1959,"children":1960},{"class":1043,"line":12},[1961],{"type":993,"tag":1041,"props":1962,"children":1963},{"style":1047},[1964],{"type":998,"value":1965},"# Working with floats\n",{"type":993,"tag":1041,"props":1967,"children":1968},{"class":1043,"line":27},[1969,1974,1978],{"type":993,"tag":1041,"props":1970,"children":1971},{"style":1056},[1972],{"type":998,"value":1973},"height ",{"type":993,"tag":1041,"props":1975,"children":1976},{"style":1062},[1977],{"type":998,"value":1065},{"type":993,"tag":1041,"props":1979,"children":1980},{"style":1068},[1981],{"type":998,"value":1982}," 5.8\n",{"type":993,"tag":1041,"props":1984,"children":1985},{"class":1043,"line":36},[1986,1991,1995],{"type":993,"tag":1041,"props":1987,"children":1988},{"style":1056},[1989],{"type":998,"value":1990},"weight ",{"type":993,"tag":1041,"props":1992,"children":1993},{"style":1062},[1994],{"type":998,"value":1065},{"type":993,"tag":1041,"props":1996,"children":1997},{"style":1068},[1998],{"type":998,"value":1999}," 68.5\n",{"type":993,"tag":1041,"props":2001,"children":2002},{"class":1043,"line":45},[2003,2008,2012],{"type":993,"tag":1041,"props":2004,"children":2005},{"style":1056},[2006],{"type":998,"value":2007},"pi ",{"type":993,"tag":1041,"props":2009,"children":2010},{"style":1062},[2011],{"type":998,"value":1065},{"type":993,"tag":1041,"props":2013,"children":2014},{"style":1068},[2015],{"type":998,"value":2016}," 3.14159\n",{"type":993,"tag":1041,"props":2018,"children":2019},{"class":1043,"line":54},[2020,2024,2028],{"type":993,"tag":1041,"props":2021,"children":2022},{"style":1056},[2023],{"type":998,"value":1084},{"type":993,"tag":1041,"props":2025,"children":2026},{"style":1062},[2027],{"type":998,"value":1065},{"type":993,"tag":1041,"props":2029,"children":2030},{"style":1068},[2031],{"type":998,"value":2032}," 19.99\n",{"type":993,"tag":1041,"props":2034,"children":2035},{"class":1043,"line":63},[2036],{"type":993,"tag":1041,"props":2037,"children":2038},{"emptyLinePlaceholder":13},[2039],{"type":998,"value":1133},{"type":993,"tag":1041,"props":2041,"children":2042},{"class":1043,"line":72},[2043,2047,2051,2055,2060,2064,2069,2073,2078,2082,2087,2091,2095],{"type":993,"tag":1041,"props":2044,"children":2045},{"style":1068},[2046],{"type":998,"value":1141},{"type":993,"tag":1041,"props":2048,"children":2049},{"style":1056},[2050],{"type":998,"value":1146},{"type":993,"tag":1041,"props":2052,"children":2053},{"style":1062},[2054],{"type":998,"value":1151},{"type":993,"tag":1041,"props":2056,"children":2057},{"style":1154},[2058],{"type":998,"value":2059},"\"Height: ",{"type":993,"tag":1041,"props":2061,"children":2062},{"style":1068},[2063],{"type":998,"value":1162},{"type":993,"tag":1041,"props":2065,"children":2066},{"style":1056},[2067],{"type":998,"value":2068},"height",{"type":993,"tag":1041,"props":2070,"children":2071},{"style":1068},[2072],{"type":998,"value":1172},{"type":993,"tag":1041,"props":2074,"children":2075},{"style":1154},[2076],{"type":998,"value":2077}," feet (type: ",{"type":993,"tag":1041,"props":2079,"children":2080},{"style":1068},[2081],{"type":998,"value":1182},{"type":993,"tag":1041,"props":2083,"children":2084},{"style":1056},[2085],{"type":998,"value":2086},"(height)",{"type":993,"tag":1041,"props":2088,"children":2089},{"style":1068},[2090],{"type":998,"value":1172},{"type":993,"tag":1041,"props":2092,"children":2093},{"style":1154},[2094],{"type":998,"value":1196},{"type":993,"tag":1041,"props":2096,"children":2097},{"style":1056},[2098],{"type":998,"value":1201},{"type":993,"tag":1041,"props":2100,"children":2101},{"class":1043,"line":81},[2102,2106,2110,2114,2119,2123,2128,2132,2137,2141,2146,2150,2154],{"type":993,"tag":1041,"props":2103,"children":2104},{"style":1068},[2105],{"type":998,"value":1141},{"type":993,"tag":1041,"props":2107,"children":2108},{"style":1056},[2109],{"type":998,"value":1146},{"type":993,"tag":1041,"props":2111,"children":2112},{"style":1062},[2113],{"type":998,"value":1151},{"type":993,"tag":1041,"props":2115,"children":2116},{"style":1154},[2117],{"type":998,"value":2118},"\"Weight: ",{"type":993,"tag":1041,"props":2120,"children":2121},{"style":1068},[2122],{"type":998,"value":1162},{"type":993,"tag":1041,"props":2124,"children":2125},{"style":1056},[2126],{"type":998,"value":2127},"weight",{"type":993,"tag":1041,"props":2129,"children":2130},{"style":1068},[2131],{"type":998,"value":1172},{"type":993,"tag":1041,"props":2133,"children":2134},{"style":1154},[2135],{"type":998,"value":2136}," kg (type: ",{"type":993,"tag":1041,"props":2138,"children":2139},{"style":1068},[2140],{"type":998,"value":1182},{"type":993,"tag":1041,"props":2142,"children":2143},{"style":1056},[2144],{"type":998,"value":2145},"(weight)",{"type":993,"tag":1041,"props":2147,"children":2148},{"style":1068},[2149],{"type":998,"value":1172},{"type":993,"tag":1041,"props":2151,"children":2152},{"style":1154},[2153],{"type":998,"value":1196},{"type":993,"tag":1041,"props":2155,"children":2156},{"style":1056},[2157],{"type":998,"value":1201},{"type":993,"tag":1041,"props":2159,"children":2160},{"class":1043,"line":91},[2161,2165,2169,2173,2178,2182,2187,2191,2195,2199,2204,2208,2212],{"type":993,"tag":1041,"props":2162,"children":2163},{"style":1068},[2164],{"type":998,"value":1141},{"type":993,"tag":1041,"props":2166,"children":2167},{"style":1056},[2168],{"type":998,"value":1146},{"type":993,"tag":1041,"props":2170,"children":2171},{"style":1062},[2172],{"type":998,"value":1151},{"type":993,"tag":1041,"props":2174,"children":2175},{"style":1154},[2176],{"type":998,"value":2177},"\"Pi: ",{"type":993,"tag":1041,"props":2179,"children":2180},{"style":1068},[2181],{"type":998,"value":1162},{"type":993,"tag":1041,"props":2183,"children":2184},{"style":1056},[2185],{"type":998,"value":2186},"pi",{"type":993,"tag":1041,"props":2188,"children":2189},{"style":1068},[2190],{"type":998,"value":1172},{"type":993,"tag":1041,"props":2192,"children":2193},{"style":1154},[2194],{"type":998,"value":1177},{"type":993,"tag":1041,"props":2196,"children":2197},{"style":1068},[2198],{"type":998,"value":1182},{"type":993,"tag":1041,"props":2200,"children":2201},{"style":1056},[2202],{"type":998,"value":2203},"(pi)",{"type":993,"tag":1041,"props":2205,"children":2206},{"style":1068},[2207],{"type":998,"value":1172},{"type":993,"tag":1041,"props":2209,"children":2210},{"style":1154},[2211],{"type":998,"value":1196},{"type":993,"tag":1041,"props":2213,"children":2214},{"style":1056},[2215],{"type":998,"value":1201},{"type":993,"tag":1041,"props":2217,"children":2218},{"class":1043,"line":100},[2219,2223,2227,2231,2235,2239,2243,2247,2251,2255,2259,2263,2267],{"type":993,"tag":1041,"props":2220,"children":2221},{"style":1068},[2222],{"type":998,"value":1141},{"type":993,"tag":1041,"props":2224,"children":2225},{"style":1056},[2226],{"type":998,"value":1146},{"type":993,"tag":1041,"props":2228,"children":2229},{"style":1062},[2230],{"type":998,"value":1151},{"type":993,"tag":1041,"props":2232,"children":2233},{"style":1154},[2234],{"type":998,"value":1221},{"type":993,"tag":1041,"props":2236,"children":2237},{"style":1068},[2238],{"type":998,"value":1162},{"type":993,"tag":1041,"props":2240,"children":2241},{"style":1056},[2242],{"type":998,"value":1230},{"type":993,"tag":1041,"props":2244,"children":2245},{"style":1068},[2246],{"type":998,"value":1172},{"type":993,"tag":1041,"props":2248,"children":2249},{"style":1154},[2250],{"type":998,"value":1177},{"type":993,"tag":1041,"props":2252,"children":2253},{"style":1068},[2254],{"type":998,"value":1182},{"type":993,"tag":1041,"props":2256,"children":2257},{"style":1056},[2258],{"type":998,"value":1247},{"type":993,"tag":1041,"props":2260,"children":2261},{"style":1068},[2262],{"type":998,"value":1172},{"type":993,"tag":1041,"props":2264,"children":2265},{"style":1154},[2266],{"type":998,"value":1196},{"type":993,"tag":1041,"props":2268,"children":2269},{"style":1056},[2270],{"type":998,"value":1201},{"type":993,"tag":1621,"props":2272,"children":2274},{"id":2273},"float-vs-integer-the-key-difference",[2275],{"type":998,"value":2276},"⚡ Float vs Integer: The Key Difference",{"type":993,"tag":1001,"props":2278,"children":2279},{},[2280,2282,2287,2289,2295],{"type":998,"value":2281},"The difference between ",{"type":993,"tag":1037,"props":2283,"children":2285},{"className":2284},[],[2286],{"type":998,"value":1120},{"type":998,"value":2288}," and ",{"type":993,"tag":1037,"props":2290,"children":2292},{"className":2291},[],[2293],{"type":998,"value":2294},"5.0",{"type":998,"value":2296}," is important in Python:",{"type":993,"tag":1027,"props":2298,"children":2299},{},[2300],{"type":993,"tag":1031,"props":2301,"children":2303},{"className":1033,"code":2302,"language":6,"meta":8,"style":8},"# The difference between 5 and 5.0\nwhole_number = 5      # Integer\ndecimal_number = 5.0  # Float\n\nprint(f\"5 is type: {type(whole_number)}\")\nprint(f\"5.0 is type: {type(decimal_number)}\")\n\n# They're equal in value but different types\nprint(f\"Are they equal? {whole_number == decimal_number}\")\nprint(f\"Same type? {type(whole_number) == type(decimal_number)}\")\n",[2304],{"type":993,"tag":1037,"props":2305,"children":2306},{"__ignoreMap":8},[2307,2315,2337,2359,2366,2407,2448,2455,2463,2513],{"type":993,"tag":1041,"props":2308,"children":2309},{"class":1043,"line":12},[2310],{"type":993,"tag":1041,"props":2311,"children":2312},{"style":1047},[2313],{"type":998,"value":2314},"# The difference between 5 and 5.0\n",{"type":993,"tag":1041,"props":2316,"children":2317},{"class":1043,"line":27},[2318,2323,2327,2332],{"type":993,"tag":1041,"props":2319,"children":2320},{"style":1056},[2321],{"type":998,"value":2322},"whole_number ",{"type":993,"tag":1041,"props":2324,"children":2325},{"style":1062},[2326],{"type":998,"value":1065},{"type":993,"tag":1041,"props":2328,"children":2329},{"style":1068},[2330],{"type":998,"value":2331}," 5",{"type":993,"tag":1041,"props":2333,"children":2334},{"style":1047},[2335],{"type":998,"value":2336},"      # Integer\n",{"type":993,"tag":1041,"props":2338,"children":2339},{"class":1043,"line":36},[2340,2345,2349,2354],{"type":993,"tag":1041,"props":2341,"children":2342},{"style":1056},[2343],{"type":998,"value":2344},"decimal_number ",{"type":993,"tag":1041,"props":2346,"children":2347},{"style":1062},[2348],{"type":998,"value":1065},{"type":993,"tag":1041,"props":2350,"children":2351},{"style":1068},[2352],{"type":998,"value":2353}," 5.0",{"type":993,"tag":1041,"props":2355,"children":2356},{"style":1047},[2357],{"type":998,"value":2358},"  # Float\n",{"type":993,"tag":1041,"props":2360,"children":2361},{"class":1043,"line":45},[2362],{"type":993,"tag":1041,"props":2363,"children":2364},{"emptyLinePlaceholder":13},[2365],{"type":998,"value":1133},{"type":993,"tag":1041,"props":2367,"children":2368},{"class":1043,"line":54},[2369,2373,2377,2381,2386,2390,2395,2399,2403],{"type":993,"tag":1041,"props":2370,"children":2371},{"style":1068},[2372],{"type":998,"value":1141},{"type":993,"tag":1041,"props":2374,"children":2375},{"style":1056},[2376],{"type":998,"value":1146},{"type":993,"tag":1041,"props":2378,"children":2379},{"style":1062},[2380],{"type":998,"value":1151},{"type":993,"tag":1041,"props":2382,"children":2383},{"style":1154},[2384],{"type":998,"value":2385},"\"5 is type: ",{"type":993,"tag":1041,"props":2387,"children":2388},{"style":1068},[2389],{"type":998,"value":1182},{"type":993,"tag":1041,"props":2391,"children":2392},{"style":1056},[2393],{"type":998,"value":2394},"(whole_number)",{"type":993,"tag":1041,"props":2396,"children":2397},{"style":1068},[2398],{"type":998,"value":1172},{"type":993,"tag":1041,"props":2400,"children":2401},{"style":1154},[2402],{"type":998,"value":1538},{"type":993,"tag":1041,"props":2404,"children":2405},{"style":1056},[2406],{"type":998,"value":1201},{"type":993,"tag":1041,"props":2408,"children":2409},{"class":1043,"line":63},[2410,2414,2418,2422,2427,2431,2436,2440,2444],{"type":993,"tag":1041,"props":2411,"children":2412},{"style":1068},[2413],{"type":998,"value":1141},{"type":993,"tag":1041,"props":2415,"children":2416},{"style":1056},[2417],{"type":998,"value":1146},{"type":993,"tag":1041,"props":2419,"children":2420},{"style":1062},[2421],{"type":998,"value":1151},{"type":993,"tag":1041,"props":2423,"children":2424},{"style":1154},[2425],{"type":998,"value":2426},"\"5.0 is type: ",{"type":993,"tag":1041,"props":2428,"children":2429},{"style":1068},[2430],{"type":998,"value":1182},{"type":993,"tag":1041,"props":2432,"children":2433},{"style":1056},[2434],{"type":998,"value":2435},"(decimal_number)",{"type":993,"tag":1041,"props":2437,"children":2438},{"style":1068},[2439],{"type":998,"value":1172},{"type":993,"tag":1041,"props":2441,"children":2442},{"style":1154},[2443],{"type":998,"value":1538},{"type":993,"tag":1041,"props":2445,"children":2446},{"style":1056},[2447],{"type":998,"value":1201},{"type":993,"tag":1041,"props":2449,"children":2450},{"class":1043,"line":72},[2451],{"type":993,"tag":1041,"props":2452,"children":2453},{"emptyLinePlaceholder":13},[2454],{"type":998,"value":1133},{"type":993,"tag":1041,"props":2456,"children":2457},{"class":1043,"line":81},[2458],{"type":993,"tag":1041,"props":2459,"children":2460},{"style":1047},[2461],{"type":998,"value":2462},"# They're equal in value but different types\n",{"type":993,"tag":1041,"props":2464,"children":2465},{"class":1043,"line":91},[2466,2470,2474,2478,2483,2487,2491,2496,2501,2505,2509],{"type":993,"tag":1041,"props":2467,"children":2468},{"style":1068},[2469],{"type":998,"value":1141},{"type":993,"tag":1041,"props":2471,"children":2472},{"style":1056},[2473],{"type":998,"value":1146},{"type":993,"tag":1041,"props":2475,"children":2476},{"style":1062},[2477],{"type":998,"value":1151},{"type":993,"tag":1041,"props":2479,"children":2480},{"style":1154},[2481],{"type":998,"value":2482},"\"Are they equal? ",{"type":993,"tag":1041,"props":2484,"children":2485},{"style":1068},[2486],{"type":998,"value":1162},{"type":993,"tag":1041,"props":2488,"children":2489},{"style":1056},[2490],{"type":998,"value":2322},{"type":993,"tag":1041,"props":2492,"children":2493},{"style":1062},[2494],{"type":998,"value":2495},"==",{"type":993,"tag":1041,"props":2497,"children":2498},{"style":1056},[2499],{"type":998,"value":2500}," decimal_number",{"type":993,"tag":1041,"props":2502,"children":2503},{"style":1068},[2504],{"type":998,"value":1172},{"type":993,"tag":1041,"props":2506,"children":2507},{"style":1154},[2508],{"type":998,"value":1538},{"type":993,"tag":1041,"props":2510,"children":2511},{"style":1056},[2512],{"type":998,"value":1201},{"type":993,"tag":1041,"props":2514,"children":2515},{"class":1043,"line":100},[2516,2520,2524,2528,2533,2537,2542,2546,2551,2555,2559,2563],{"type":993,"tag":1041,"props":2517,"children":2518},{"style":1068},[2519],{"type":998,"value":1141},{"type":993,"tag":1041,"props":2521,"children":2522},{"style":1056},[2523],{"type":998,"value":1146},{"type":993,"tag":1041,"props":2525,"children":2526},{"style":1062},[2527],{"type":998,"value":1151},{"type":993,"tag":1041,"props":2529,"children":2530},{"style":1154},[2531],{"type":998,"value":2532},"\"Same type? ",{"type":993,"tag":1041,"props":2534,"children":2535},{"style":1068},[2536],{"type":998,"value":1182},{"type":993,"tag":1041,"props":2538,"children":2539},{"style":1056},[2540],{"type":998,"value":2541},"(whole_number) ",{"type":993,"tag":1041,"props":2543,"children":2544},{"style":1062},[2545],{"type":998,"value":2495},{"type":993,"tag":1041,"props":2547,"children":2548},{"style":1068},[2549],{"type":998,"value":2550}," type",{"type":993,"tag":1041,"props":2552,"children":2553},{"style":1056},[2554],{"type":998,"value":2435},{"type":993,"tag":1041,"props":2556,"children":2557},{"style":1068},[2558],{"type":998,"value":1172},{"type":993,"tag":1041,"props":2560,"children":2561},{"style":1154},[2562],{"type":998,"value":1538},{"type":993,"tag":1041,"props":2564,"children":2565},{"style":1056},[2566],{"type":998,"value":1201},{"type":993,"tag":2568,"props":2569,"children":2573},"info-box",{"title":2570,"type":2571,"emoji":2572},"Integer vs Float Quick Guide","info","📋",[2574,2584,2636,2645,2700],{"type":993,"tag":1001,"props":2575,"children":2576},{},[2577,2582],{"type":993,"tag":1012,"props":2578,"children":2579},{},[2580],{"type":998,"value":2581},"Integers (int)",{"type":998,"value":2583}," :",{"type":993,"tag":2585,"props":2586,"children":2587},"ul",{},[2588,2615,2620,2625],{"type":993,"tag":2589,"props":2590,"children":2591},"li",{},[2592,2594,2600,2602,2608,2609],{"type":998,"value":2593},"Whole numbers: ",{"type":993,"tag":1037,"props":2595,"children":2597},{"className":2596},[],[2598],{"type":998,"value":2599},"42",{"type":998,"value":2601},", ",{"type":993,"tag":1037,"props":2603,"children":2605},{"className":2604},[],[2606],{"type":998,"value":2607},"-17",{"type":998,"value":2601},{"type":993,"tag":1037,"props":2610,"children":2612},{"className":2611},[],[2613],{"type":998,"value":2614},"0",{"type":993,"tag":2589,"props":2616,"children":2617},{},[2618],{"type":998,"value":2619},"No decimal point",{"type":993,"tag":2589,"props":2621,"children":2622},{},[2623],{"type":998,"value":2624},"Perfect for counting discrete items",{"type":993,"tag":2589,"props":2626,"children":2627},{},[2628,2630],{"type":998,"value":2629},"Example: ",{"type":993,"tag":1037,"props":2631,"children":2633},{"className":2632},[],[2634],{"type":998,"value":2635},"students = 25",{"type":993,"tag":1001,"props":2637,"children":2638},{},[2639,2644],{"type":993,"tag":1012,"props":2640,"children":2641},{},[2642],{"type":998,"value":2643},"Floats (float)",{"type":998,"value":2583},{"type":993,"tag":2585,"props":2646,"children":2647},{},[2648,2673,2685,2690],{"type":993,"tag":2589,"props":2649,"children":2650},{},[2651,2653,2659,2660,2666,2667],{"type":998,"value":2652},"Decimal numbers: ",{"type":993,"tag":1037,"props":2654,"children":2656},{"className":2655},[],[2657],{"type":998,"value":2658},"3.14",{"type":998,"value":2601},{"type":993,"tag":1037,"props":2661,"children":2663},{"className":2662},[],[2664],{"type":998,"value":2665},"19.99",{"type":998,"value":2601},{"type":993,"tag":1037,"props":2668,"children":2670},{"className":2669},[],[2671],{"type":998,"value":2672},"-2.5",{"type":993,"tag":2589,"props":2674,"children":2675},{},[2676,2678,2683],{"type":998,"value":2677},"Always have decimal point (even ",{"type":993,"tag":1037,"props":2679,"children":2681},{"className":2680},[],[2682],{"type":998,"value":2294},{"type":998,"value":2684},")",{"type":993,"tag":2589,"props":2686,"children":2687},{},[2688],{"type":998,"value":2689},"Perfect for measurements and precise values",{"type":993,"tag":2589,"props":2691,"children":2692},{},[2693,2694],{"type":998,"value":2629},{"type":993,"tag":1037,"props":2695,"children":2697},{"className":2696},[],[2698],{"type":998,"value":2699},"price = 19.99",{"type":993,"tag":1001,"props":2701,"children":2702},{},[2703,2708,2710,2715,2717,2722],{"type":993,"tag":1012,"props":2704,"children":2705},{},[2706],{"type":998,"value":2707},"Key Point",{"type":998,"value":2709},": ",{"type":993,"tag":1037,"props":2711,"children":2713},{"className":2712},[],[2714],{"type":998,"value":1120},{"type":998,"value":2716}," is int, ",{"type":993,"tag":1037,"props":2718,"children":2720},{"className":2719},[],[2721],{"type":998,"value":2294},{"type":998,"value":2723}," is float—syntax matters!",{"type":993,"tag":1320,"props":2725,"children":2727},{"id":2726},"basic-math-operations",[2728],{"type":998,"value":2729},"🧮 Basic Math Operations",{"type":993,"tag":1001,"props":2731,"children":2732},{},[2733],{"type":998,"value":2734},"Python supports all the math operations you'd expect, with some special behaviors depending on the number types:",{"type":993,"tag":1027,"props":2736,"children":2737},{},[2738],{"type":993,"tag":1031,"props":2739,"children":2741},{"className":1033,"code":2740,"language":6,"meta":8,"style":8},"# Basic math operations\na = 10\nb = 3\n\nprint(f\"Addition: {a} + {b} = {a + b}\")\nprint(f\"Subtraction: {a} - {b} = {a - b}\")\nprint(f\"Multiplication: {a} * {b} = {a * b}\")\nprint(f\"Division: {a} / {b} = {a / b}\")           # Always returns float!\nprint(f\"Floor Division: {a} // {b} = {a // b}\")    # Integer division\nprint(f\"Remainder: {a} % {b} = {a % b}\")           # Modulus\nprint(f\"Power: {a} ** {b} = {a ** b}\")             # Exponentiation\n",[2742],{"type":993,"tag":1037,"props":2743,"children":2744},{"__ignoreMap":8},[2745,2753,2769,2786,2793,2878,2960,3042,3130,3218,3305],{"type":993,"tag":1041,"props":2746,"children":2747},{"class":1043,"line":12},[2748],{"type":993,"tag":1041,"props":2749,"children":2750},{"style":1047},[2751],{"type":998,"value":2752},"# Basic math operations\n",{"type":993,"tag":1041,"props":2754,"children":2755},{"class":1043,"line":27},[2756,2761,2765],{"type":993,"tag":1041,"props":2757,"children":2758},{"style":1056},[2759],{"type":998,"value":2760},"a ",{"type":993,"tag":1041,"props":2762,"children":2763},{"style":1062},[2764],{"type":998,"value":1065},{"type":993,"tag":1041,"props":2766,"children":2767},{"style":1068},[2768],{"type":998,"value":1661},{"type":993,"tag":1041,"props":2770,"children":2771},{"class":1043,"line":36},[2772,2777,2781],{"type":993,"tag":1041,"props":2773,"children":2774},{"style":1056},[2775],{"type":998,"value":2776},"b ",{"type":993,"tag":1041,"props":2778,"children":2779},{"style":1062},[2780],{"type":998,"value":1065},{"type":993,"tag":1041,"props":2782,"children":2783},{"style":1068},[2784],{"type":998,"value":2785}," 3\n",{"type":993,"tag":1041,"props":2787,"children":2788},{"class":1043,"line":45},[2789],{"type":993,"tag":1041,"props":2790,"children":2791},{"emptyLinePlaceholder":13},[2792],{"type":998,"value":1133},{"type":993,"tag":1041,"props":2794,"children":2795},{"class":1043,"line":54},[2796,2800,2804,2808,2813,2817,2822,2826,2831,2835,2840,2844,2849,2853,2857,2861,2866,2870,2874],{"type":993,"tag":1041,"props":2797,"children":2798},{"style":1068},[2799],{"type":998,"value":1141},{"type":993,"tag":1041,"props":2801,"children":2802},{"style":1056},[2803],{"type":998,"value":1146},{"type":993,"tag":1041,"props":2805,"children":2806},{"style":1062},[2807],{"type":998,"value":1151},{"type":993,"tag":1041,"props":2809,"children":2810},{"style":1154},[2811],{"type":998,"value":2812},"\"Addition: ",{"type":993,"tag":1041,"props":2814,"children":2815},{"style":1068},[2816],{"type":998,"value":1162},{"type":993,"tag":1041,"props":2818,"children":2819},{"style":1056},[2820],{"type":998,"value":2821},"a",{"type":993,"tag":1041,"props":2823,"children":2824},{"style":1068},[2825],{"type":998,"value":1172},{"type":993,"tag":1041,"props":2827,"children":2828},{"style":1154},[2829],{"type":998,"value":2830}," + ",{"type":993,"tag":1041,"props":2832,"children":2833},{"style":1068},[2834],{"type":998,"value":1162},{"type":993,"tag":1041,"props":2836,"children":2837},{"style":1056},[2838],{"type":998,"value":2839},"b",{"type":993,"tag":1041,"props":2841,"children":2842},{"style":1068},[2843],{"type":998,"value":1172},{"type":993,"tag":1041,"props":2845,"children":2846},{"style":1154},[2847],{"type":998,"value":2848}," = ",{"type":993,"tag":1041,"props":2850,"children":2851},{"style":1068},[2852],{"type":998,"value":1162},{"type":993,"tag":1041,"props":2854,"children":2855},{"style":1056},[2856],{"type":998,"value":2760},{"type":993,"tag":1041,"props":2858,"children":2859},{"style":1062},[2860],{"type":998,"value":1700},{"type":993,"tag":1041,"props":2862,"children":2863},{"style":1056},[2864],{"type":998,"value":2865}," b",{"type":993,"tag":1041,"props":2867,"children":2868},{"style":1068},[2869],{"type":998,"value":1172},{"type":993,"tag":1041,"props":2871,"children":2872},{"style":1154},[2873],{"type":998,"value":1538},{"type":993,"tag":1041,"props":2875,"children":2876},{"style":1056},[2877],{"type":998,"value":1201},{"type":993,"tag":1041,"props":2879,"children":2880},{"class":1043,"line":63},[2881,2885,2889,2893,2898,2902,2906,2910,2915,2919,2923,2927,2931,2935,2939,2944,2948,2952,2956],{"type":993,"tag":1041,"props":2882,"children":2883},{"style":1068},[2884],{"type":998,"value":1141},{"type":993,"tag":1041,"props":2886,"children":2887},{"style":1056},[2888],{"type":998,"value":1146},{"type":993,"tag":1041,"props":2890,"children":2891},{"style":1062},[2892],{"type":998,"value":1151},{"type":993,"tag":1041,"props":2894,"children":2895},{"style":1154},[2896],{"type":998,"value":2897},"\"Subtraction: ",{"type":993,"tag":1041,"props":2899,"children":2900},{"style":1068},[2901],{"type":998,"value":1162},{"type":993,"tag":1041,"props":2903,"children":2904},{"style":1056},[2905],{"type":998,"value":2821},{"type":993,"tag":1041,"props":2907,"children":2908},{"style":1068},[2909],{"type":998,"value":1172},{"type":993,"tag":1041,"props":2911,"children":2912},{"style":1154},[2913],{"type":998,"value":2914}," - ",{"type":993,"tag":1041,"props":2916,"children":2917},{"style":1068},[2918],{"type":998,"value":1162},{"type":993,"tag":1041,"props":2920,"children":2921},{"style":1056},[2922],{"type":998,"value":2839},{"type":993,"tag":1041,"props":2924,"children":2925},{"style":1068},[2926],{"type":998,"value":1172},{"type":993,"tag":1041,"props":2928,"children":2929},{"style":1154},[2930],{"type":998,"value":2848},{"type":993,"tag":1041,"props":2932,"children":2933},{"style":1068},[2934],{"type":998,"value":1162},{"type":993,"tag":1041,"props":2936,"children":2937},{"style":1056},[2938],{"type":998,"value":2760},{"type":993,"tag":1041,"props":2940,"children":2941},{"style":1062},[2942],{"type":998,"value":2943},"-",{"type":993,"tag":1041,"props":2945,"children":2946},{"style":1056},[2947],{"type":998,"value":2865},{"type":993,"tag":1041,"props":2949,"children":2950},{"style":1068},[2951],{"type":998,"value":1172},{"type":993,"tag":1041,"props":2953,"children":2954},{"style":1154},[2955],{"type":998,"value":1538},{"type":993,"tag":1041,"props":2957,"children":2958},{"style":1056},[2959],{"type":998,"value":1201},{"type":993,"tag":1041,"props":2961,"children":2962},{"class":1043,"line":72},[2963,2967,2971,2975,2980,2984,2988,2992,2997,3001,3005,3009,3013,3017,3021,3026,3030,3034,3038],{"type":993,"tag":1041,"props":2964,"children":2965},{"style":1068},[2966],{"type":998,"value":1141},{"type":993,"tag":1041,"props":2968,"children":2969},{"style":1056},[2970],{"type":998,"value":1146},{"type":993,"tag":1041,"props":2972,"children":2973},{"style":1062},[2974],{"type":998,"value":1151},{"type":993,"tag":1041,"props":2976,"children":2977},{"style":1154},[2978],{"type":998,"value":2979},"\"Multiplication: ",{"type":993,"tag":1041,"props":2981,"children":2982},{"style":1068},[2983],{"type":998,"value":1162},{"type":993,"tag":1041,"props":2985,"children":2986},{"style":1056},[2987],{"type":998,"value":2821},{"type":993,"tag":1041,"props":2989,"children":2990},{"style":1068},[2991],{"type":998,"value":1172},{"type":993,"tag":1041,"props":2993,"children":2994},{"style":1154},[2995],{"type":998,"value":2996}," * ",{"type":993,"tag":1041,"props":2998,"children":2999},{"style":1068},[3000],{"type":998,"value":1162},{"type":993,"tag":1041,"props":3002,"children":3003},{"style":1056},[3004],{"type":998,"value":2839},{"type":993,"tag":1041,"props":3006,"children":3007},{"style":1068},[3008],{"type":998,"value":1172},{"type":993,"tag":1041,"props":3010,"children":3011},{"style":1154},[3012],{"type":998,"value":2848},{"type":993,"tag":1041,"props":3014,"children":3015},{"style":1068},[3016],{"type":998,"value":1162},{"type":993,"tag":1041,"props":3018,"children":3019},{"style":1056},[3020],{"type":998,"value":2760},{"type":993,"tag":1041,"props":3022,"children":3023},{"style":1062},[3024],{"type":998,"value":3025},"*",{"type":993,"tag":1041,"props":3027,"children":3028},{"style":1056},[3029],{"type":998,"value":2865},{"type":993,"tag":1041,"props":3031,"children":3032},{"style":1068},[3033],{"type":998,"value":1172},{"type":993,"tag":1041,"props":3035,"children":3036},{"style":1154},[3037],{"type":998,"value":1538},{"type":993,"tag":1041,"props":3039,"children":3040},{"style":1056},[3041],{"type":998,"value":1201},{"type":993,"tag":1041,"props":3043,"children":3044},{"class":1043,"line":81},[3045,3049,3053,3057,3062,3066,3070,3074,3079,3083,3087,3091,3095,3099,3103,3108,3112,3116,3120,3125],{"type":993,"tag":1041,"props":3046,"children":3047},{"style":1068},[3048],{"type":998,"value":1141},{"type":993,"tag":1041,"props":3050,"children":3051},{"style":1056},[3052],{"type":998,"value":1146},{"type":993,"tag":1041,"props":3054,"children":3055},{"style":1062},[3056],{"type":998,"value":1151},{"type":993,"tag":1041,"props":3058,"children":3059},{"style":1154},[3060],{"type":998,"value":3061},"\"Division: ",{"type":993,"tag":1041,"props":3063,"children":3064},{"style":1068},[3065],{"type":998,"value":1162},{"type":993,"tag":1041,"props":3067,"children":3068},{"style":1056},[3069],{"type":998,"value":2821},{"type":993,"tag":1041,"props":3071,"children":3072},{"style":1068},[3073],{"type":998,"value":1172},{"type":993,"tag":1041,"props":3075,"children":3076},{"style":1154},[3077],{"type":998,"value":3078}," / ",{"type":993,"tag":1041,"props":3080,"children":3081},{"style":1068},[3082],{"type":998,"value":1162},{"type":993,"tag":1041,"props":3084,"children":3085},{"style":1056},[3086],{"type":998,"value":2839},{"type":993,"tag":1041,"props":3088,"children":3089},{"style":1068},[3090],{"type":998,"value":1172},{"type":993,"tag":1041,"props":3092,"children":3093},{"style":1154},[3094],{"type":998,"value":2848},{"type":993,"tag":1041,"props":3096,"children":3097},{"style":1068},[3098],{"type":998,"value":1162},{"type":993,"tag":1041,"props":3100,"children":3101},{"style":1056},[3102],{"type":998,"value":2760},{"type":993,"tag":1041,"props":3104,"children":3105},{"style":1062},[3106],{"type":998,"value":3107},"/",{"type":993,"tag":1041,"props":3109,"children":3110},{"style":1056},[3111],{"type":998,"value":2865},{"type":993,"tag":1041,"props":3113,"children":3114},{"style":1068},[3115],{"type":998,"value":1172},{"type":993,"tag":1041,"props":3117,"children":3118},{"style":1154},[3119],{"type":998,"value":1538},{"type":993,"tag":1041,"props":3121,"children":3122},{"style":1056},[3123],{"type":998,"value":3124},")           ",{"type":993,"tag":1041,"props":3126,"children":3127},{"style":1047},[3128],{"type":998,"value":3129},"# Always returns float!\n",{"type":993,"tag":1041,"props":3131,"children":3132},{"class":1043,"line":91},[3133,3137,3141,3145,3150,3154,3158,3162,3167,3171,3175,3179,3183,3187,3191,3196,3200,3204,3208,3213],{"type":993,"tag":1041,"props":3134,"children":3135},{"style":1068},[3136],{"type":998,"value":1141},{"type":993,"tag":1041,"props":3138,"children":3139},{"style":1056},[3140],{"type":998,"value":1146},{"type":993,"tag":1041,"props":3142,"children":3143},{"style":1062},[3144],{"type":998,"value":1151},{"type":993,"tag":1041,"props":3146,"children":3147},{"style":1154},[3148],{"type":998,"value":3149},"\"Floor Division: ",{"type":993,"tag":1041,"props":3151,"children":3152},{"style":1068},[3153],{"type":998,"value":1162},{"type":993,"tag":1041,"props":3155,"children":3156},{"style":1056},[3157],{"type":998,"value":2821},{"type":993,"tag":1041,"props":3159,"children":3160},{"style":1068},[3161],{"type":998,"value":1172},{"type":993,"tag":1041,"props":3163,"children":3164},{"style":1154},[3165],{"type":998,"value":3166}," // ",{"type":993,"tag":1041,"props":3168,"children":3169},{"style":1068},[3170],{"type":998,"value":1162},{"type":993,"tag":1041,"props":3172,"children":3173},{"style":1056},[3174],{"type":998,"value":2839},{"type":993,"tag":1041,"props":3176,"children":3177},{"style":1068},[3178],{"type":998,"value":1172},{"type":993,"tag":1041,"props":3180,"children":3181},{"style":1154},[3182],{"type":998,"value":2848},{"type":993,"tag":1041,"props":3184,"children":3185},{"style":1068},[3186],{"type":998,"value":1162},{"type":993,"tag":1041,"props":3188,"children":3189},{"style":1056},[3190],{"type":998,"value":2760},{"type":993,"tag":1041,"props":3192,"children":3193},{"style":1062},[3194],{"type":998,"value":3195},"//",{"type":993,"tag":1041,"props":3197,"children":3198},{"style":1056},[3199],{"type":998,"value":2865},{"type":993,"tag":1041,"props":3201,"children":3202},{"style":1068},[3203],{"type":998,"value":1172},{"type":993,"tag":1041,"props":3205,"children":3206},{"style":1154},[3207],{"type":998,"value":1538},{"type":993,"tag":1041,"props":3209,"children":3210},{"style":1056},[3211],{"type":998,"value":3212},")    ",{"type":993,"tag":1041,"props":3214,"children":3215},{"style":1047},[3216],{"type":998,"value":3217},"# Integer division\n",{"type":993,"tag":1041,"props":3219,"children":3220},{"class":1043,"line":100},[3221,3225,3229,3233,3238,3242,3246,3250,3255,3259,3263,3267,3271,3275,3279,3284,3288,3292,3296,3300],{"type":993,"tag":1041,"props":3222,"children":3223},{"style":1068},[3224],{"type":998,"value":1141},{"type":993,"tag":1041,"props":3226,"children":3227},{"style":1056},[3228],{"type":998,"value":1146},{"type":993,"tag":1041,"props":3230,"children":3231},{"style":1062},[3232],{"type":998,"value":1151},{"type":993,"tag":1041,"props":3234,"children":3235},{"style":1154},[3236],{"type":998,"value":3237},"\"Remainder: ",{"type":993,"tag":1041,"props":3239,"children":3240},{"style":1068},[3241],{"type":998,"value":1162},{"type":993,"tag":1041,"props":3243,"children":3244},{"style":1056},[3245],{"type":998,"value":2821},{"type":993,"tag":1041,"props":3247,"children":3248},{"style":1068},[3249],{"type":998,"value":1172},{"type":993,"tag":1041,"props":3251,"children":3252},{"style":1154},[3253],{"type":998,"value":3254}," % ",{"type":993,"tag":1041,"props":3256,"children":3257},{"style":1068},[3258],{"type":998,"value":1162},{"type":993,"tag":1041,"props":3260,"children":3261},{"style":1056},[3262],{"type":998,"value":2839},{"type":993,"tag":1041,"props":3264,"children":3265},{"style":1068},[3266],{"type":998,"value":1172},{"type":993,"tag":1041,"props":3268,"children":3269},{"style":1154},[3270],{"type":998,"value":2848},{"type":993,"tag":1041,"props":3272,"children":3273},{"style":1068},[3274],{"type":998,"value":1162},{"type":993,"tag":1041,"props":3276,"children":3277},{"style":1056},[3278],{"type":998,"value":2760},{"type":993,"tag":1041,"props":3280,"children":3281},{"style":1062},[3282],{"type":998,"value":3283},"%",{"type":993,"tag":1041,"props":3285,"children":3286},{"style":1056},[3287],{"type":998,"value":2865},{"type":993,"tag":1041,"props":3289,"children":3290},{"style":1068},[3291],{"type":998,"value":1172},{"type":993,"tag":1041,"props":3293,"children":3294},{"style":1154},[3295],{"type":998,"value":1538},{"type":993,"tag":1041,"props":3297,"children":3298},{"style":1056},[3299],{"type":998,"value":3124},{"type":993,"tag":1041,"props":3301,"children":3302},{"style":1047},[3303],{"type":998,"value":3304},"# Modulus\n",{"type":993,"tag":1041,"props":3306,"children":3307},{"class":1043,"line":109},[3308,3312,3316,3320,3325,3329,3333,3337,3342,3346,3350,3354,3358,3362,3366,3371,3375,3379,3383,3388],{"type":993,"tag":1041,"props":3309,"children":3310},{"style":1068},[3311],{"type":998,"value":1141},{"type":993,"tag":1041,"props":3313,"children":3314},{"style":1056},[3315],{"type":998,"value":1146},{"type":993,"tag":1041,"props":3317,"children":3318},{"style":1062},[3319],{"type":998,"value":1151},{"type":993,"tag":1041,"props":3321,"children":3322},{"style":1154},[3323],{"type":998,"value":3324},"\"Power: ",{"type":993,"tag":1041,"props":3326,"children":3327},{"style":1068},[3328],{"type":998,"value":1162},{"type":993,"tag":1041,"props":3330,"children":3331},{"style":1056},[3332],{"type":998,"value":2821},{"type":993,"tag":1041,"props":3334,"children":3335},{"style":1068},[3336],{"type":998,"value":1172},{"type":993,"tag":1041,"props":3338,"children":3339},{"style":1154},[3340],{"type":998,"value":3341}," ** ",{"type":993,"tag":1041,"props":3343,"children":3344},{"style":1068},[3345],{"type":998,"value":1162},{"type":993,"tag":1041,"props":3347,"children":3348},{"style":1056},[3349],{"type":998,"value":2839},{"type":993,"tag":1041,"props":3351,"children":3352},{"style":1068},[3353],{"type":998,"value":1172},{"type":993,"tag":1041,"props":3355,"children":3356},{"style":1154},[3357],{"type":998,"value":2848},{"type":993,"tag":1041,"props":3359,"children":3360},{"style":1068},[3361],{"type":998,"value":1162},{"type":993,"tag":1041,"props":3363,"children":3364},{"style":1056},[3365],{"type":998,"value":2760},{"type":993,"tag":1041,"props":3367,"children":3368},{"style":1062},[3369],{"type":998,"value":3370},"**",{"type":993,"tag":1041,"props":3372,"children":3373},{"style":1056},[3374],{"type":998,"value":2865},{"type":993,"tag":1041,"props":3376,"children":3377},{"style":1068},[3378],{"type":998,"value":1172},{"type":993,"tag":1041,"props":3380,"children":3381},{"style":1154},[3382],{"type":998,"value":1538},{"type":993,"tag":1041,"props":3384,"children":3385},{"style":1056},[3386],{"type":998,"value":3387},")             ",{"type":993,"tag":1041,"props":3389,"children":3390},{"style":1047},[3391],{"type":998,"value":3392},"# Exponentiation\n",{"type":993,"tag":1621,"props":3394,"children":3396},{"id":3395},"division-types",[3397],{"type":998,"value":3398},"📦 Division Types",{"type":993,"tag":1001,"props":3400,"children":3401},{},[3402],{"type":998,"value":3403},"Python has two types of division—understanding both is important:",{"type":993,"tag":1027,"props":3405,"children":3406},{},[3407],{"type":993,"tag":1031,"props":3408,"children":3410},{"className":1033,"code":3409,"language":6,"meta":8,"style":8},"# Different types of division\ntotal_items = 17\nboxes = 3\n\nregular_division = total_items / boxes      # Always returns float\nfloor_division = total_items // boxes       # Returns integer part\nremainder = total_items % boxes             # Returns remainder\n\nprint(f\"17 items in 3 boxes:\")\nprint(f\"Regular division: {regular_division}\")  # 5.666...\nprint(f\"Floor division: {floor_division}\")      # 5 (whole boxes)\nprint(f\"Remainder: {remainder}\")                # 2 (items left over)\n",[3411],{"type":993,"tag":1037,"props":3412,"children":3413},{"__ignoreMap":8},[3414,3422,3439,3455,3462,3493,3523,3553,3560,3584,3631,3678],{"type":993,"tag":1041,"props":3415,"children":3416},{"class":1043,"line":12},[3417],{"type":993,"tag":1041,"props":3418,"children":3419},{"style":1047},[3420],{"type":998,"value":3421},"# Different types of division\n",{"type":993,"tag":1041,"props":3423,"children":3424},{"class":1043,"line":27},[3425,3430,3434],{"type":993,"tag":1041,"props":3426,"children":3427},{"style":1056},[3428],{"type":998,"value":3429},"total_items ",{"type":993,"tag":1041,"props":3431,"children":3432},{"style":1062},[3433],{"type":998,"value":1065},{"type":993,"tag":1041,"props":3435,"children":3436},{"style":1068},[3437],{"type":998,"value":3438}," 17\n",{"type":993,"tag":1041,"props":3440,"children":3441},{"class":1043,"line":36},[3442,3447,3451],{"type":993,"tag":1041,"props":3443,"children":3444},{"style":1056},[3445],{"type":998,"value":3446},"boxes ",{"type":993,"tag":1041,"props":3448,"children":3449},{"style":1062},[3450],{"type":998,"value":1065},{"type":993,"tag":1041,"props":3452,"children":3453},{"style":1068},[3454],{"type":998,"value":2785},{"type":993,"tag":1041,"props":3456,"children":3457},{"class":1043,"line":45},[3458],{"type":993,"tag":1041,"props":3459,"children":3460},{"emptyLinePlaceholder":13},[3461],{"type":998,"value":1133},{"type":993,"tag":1041,"props":3463,"children":3464},{"class":1043,"line":54},[3465,3470,3474,3479,3483,3488],{"type":993,"tag":1041,"props":3466,"children":3467},{"style":1056},[3468],{"type":998,"value":3469},"regular_division ",{"type":993,"tag":1041,"props":3471,"children":3472},{"style":1062},[3473],{"type":998,"value":1065},{"type":993,"tag":1041,"props":3475,"children":3476},{"style":1056},[3477],{"type":998,"value":3478}," total_items ",{"type":993,"tag":1041,"props":3480,"children":3481},{"style":1062},[3482],{"type":998,"value":3107},{"type":993,"tag":1041,"props":3484,"children":3485},{"style":1056},[3486],{"type":998,"value":3487}," boxes      ",{"type":993,"tag":1041,"props":3489,"children":3490},{"style":1047},[3491],{"type":998,"value":3492},"# Always returns float\n",{"type":993,"tag":1041,"props":3494,"children":3495},{"class":1043,"line":63},[3496,3501,3505,3509,3513,3518],{"type":993,"tag":1041,"props":3497,"children":3498},{"style":1056},[3499],{"type":998,"value":3500},"floor_division ",{"type":993,"tag":1041,"props":3502,"children":3503},{"style":1062},[3504],{"type":998,"value":1065},{"type":993,"tag":1041,"props":3506,"children":3507},{"style":1056},[3508],{"type":998,"value":3478},{"type":993,"tag":1041,"props":3510,"children":3511},{"style":1062},[3512],{"type":998,"value":3195},{"type":993,"tag":1041,"props":3514,"children":3515},{"style":1056},[3516],{"type":998,"value":3517}," boxes       ",{"type":993,"tag":1041,"props":3519,"children":3520},{"style":1047},[3521],{"type":998,"value":3522},"# Returns integer part\n",{"type":993,"tag":1041,"props":3524,"children":3525},{"class":1043,"line":72},[3526,3531,3535,3539,3543,3548],{"type":993,"tag":1041,"props":3527,"children":3528},{"style":1056},[3529],{"type":998,"value":3530},"remainder ",{"type":993,"tag":1041,"props":3532,"children":3533},{"style":1062},[3534],{"type":998,"value":1065},{"type":993,"tag":1041,"props":3536,"children":3537},{"style":1056},[3538],{"type":998,"value":3478},{"type":993,"tag":1041,"props":3540,"children":3541},{"style":1062},[3542],{"type":998,"value":3283},{"type":993,"tag":1041,"props":3544,"children":3545},{"style":1056},[3546],{"type":998,"value":3547}," boxes             ",{"type":993,"tag":1041,"props":3549,"children":3550},{"style":1047},[3551],{"type":998,"value":3552},"# Returns remainder\n",{"type":993,"tag":1041,"props":3554,"children":3555},{"class":1043,"line":81},[3556],{"type":993,"tag":1041,"props":3557,"children":3558},{"emptyLinePlaceholder":13},[3559],{"type":998,"value":1133},{"type":993,"tag":1041,"props":3561,"children":3562},{"class":1043,"line":91},[3563,3567,3571,3575,3580],{"type":993,"tag":1041,"props":3564,"children":3565},{"style":1068},[3566],{"type":998,"value":1141},{"type":993,"tag":1041,"props":3568,"children":3569},{"style":1056},[3570],{"type":998,"value":1146},{"type":993,"tag":1041,"props":3572,"children":3573},{"style":1062},[3574],{"type":998,"value":1151},{"type":993,"tag":1041,"props":3576,"children":3577},{"style":1154},[3578],{"type":998,"value":3579},"\"17 items in 3 boxes:\"",{"type":993,"tag":1041,"props":3581,"children":3582},{"style":1056},[3583],{"type":998,"value":1201},{"type":993,"tag":1041,"props":3585,"children":3586},{"class":1043,"line":100},[3587,3591,3595,3599,3604,3608,3613,3617,3621,3626],{"type":993,"tag":1041,"props":3588,"children":3589},{"style":1068},[3590],{"type":998,"value":1141},{"type":993,"tag":1041,"props":3592,"children":3593},{"style":1056},[3594],{"type":998,"value":1146},{"type":993,"tag":1041,"props":3596,"children":3597},{"style":1062},[3598],{"type":998,"value":1151},{"type":993,"tag":1041,"props":3600,"children":3601},{"style":1154},[3602],{"type":998,"value":3603},"\"Regular division: ",{"type":993,"tag":1041,"props":3605,"children":3606},{"style":1068},[3607],{"type":998,"value":1162},{"type":993,"tag":1041,"props":3609,"children":3610},{"style":1056},[3611],{"type":998,"value":3612},"regular_division",{"type":993,"tag":1041,"props":3614,"children":3615},{"style":1068},[3616],{"type":998,"value":1172},{"type":993,"tag":1041,"props":3618,"children":3619},{"style":1154},[3620],{"type":998,"value":1538},{"type":993,"tag":1041,"props":3622,"children":3623},{"style":1056},[3624],{"type":998,"value":3625},")  ",{"type":993,"tag":1041,"props":3627,"children":3628},{"style":1047},[3629],{"type":998,"value":3630},"# 5.666...\n",{"type":993,"tag":1041,"props":3632,"children":3633},{"class":1043,"line":109},[3634,3638,3642,3646,3651,3655,3660,3664,3668,3673],{"type":993,"tag":1041,"props":3635,"children":3636},{"style":1068},[3637],{"type":998,"value":1141},{"type":993,"tag":1041,"props":3639,"children":3640},{"style":1056},[3641],{"type":998,"value":1146},{"type":993,"tag":1041,"props":3643,"children":3644},{"style":1062},[3645],{"type":998,"value":1151},{"type":993,"tag":1041,"props":3647,"children":3648},{"style":1154},[3649],{"type":998,"value":3650},"\"Floor division: ",{"type":993,"tag":1041,"props":3652,"children":3653},{"style":1068},[3654],{"type":998,"value":1162},{"type":993,"tag":1041,"props":3656,"children":3657},{"style":1056},[3658],{"type":998,"value":3659},"floor_division",{"type":993,"tag":1041,"props":3661,"children":3662},{"style":1068},[3663],{"type":998,"value":1172},{"type":993,"tag":1041,"props":3665,"children":3666},{"style":1154},[3667],{"type":998,"value":1538},{"type":993,"tag":1041,"props":3669,"children":3670},{"style":1056},[3671],{"type":998,"value":3672},")      ",{"type":993,"tag":1041,"props":3674,"children":3675},{"style":1047},[3676],{"type":998,"value":3677},"# 5 (whole boxes)\n",{"type":993,"tag":1041,"props":3679,"children":3680},{"class":1043,"line":118},[3681,3685,3689,3693,3697,3701,3706,3710,3714,3719],{"type":993,"tag":1041,"props":3682,"children":3683},{"style":1068},[3684],{"type":998,"value":1141},{"type":993,"tag":1041,"props":3686,"children":3687},{"style":1056},[3688],{"type":998,"value":1146},{"type":993,"tag":1041,"props":3690,"children":3691},{"style":1062},[3692],{"type":998,"value":1151},{"type":993,"tag":1041,"props":3694,"children":3695},{"style":1154},[3696],{"type":998,"value":3237},{"type":993,"tag":1041,"props":3698,"children":3699},{"style":1068},[3700],{"type":998,"value":1162},{"type":993,"tag":1041,"props":3702,"children":3703},{"style":1056},[3704],{"type":998,"value":3705},"remainder",{"type":993,"tag":1041,"props":3707,"children":3708},{"style":1068},[3709],{"type":998,"value":1172},{"type":993,"tag":1041,"props":3711,"children":3712},{"style":1154},[3713],{"type":998,"value":1538},{"type":993,"tag":1041,"props":3715,"children":3716},{"style":1056},[3717],{"type":998,"value":3718},")                ",{"type":993,"tag":1041,"props":3720,"children":3721},{"style":1047},[3722],{"type":998,"value":3723},"# 2 (items left over)\n",{"type":993,"tag":1320,"props":3725,"children":3727},{"id":3726},"converting-between-number-types",[3728],{"type":998,"value":3729},"🔄 Converting Between Number Types",{"type":993,"tag":1001,"props":3731,"children":3732},{},[3733],{"type":998,"value":3734},"Sometimes you need to convert between integers and floats. Python provides built-in functions for this:",{"type":993,"tag":1621,"props":3736,"children":3738},{"id":3737},"converting-with-int-and-float",[3739],{"type":998,"value":3740},"Converting with int() and float()",{"type":993,"tag":1027,"props":3742,"children":3743},{},[3744],{"type":993,"tag":1031,"props":3745,"children":3747},{"className":1033,"code":3746,"language":6,"meta":8,"style":8},"# Converting between types\ndecimal_number = 15.7\nwhole_number = 42\n\n# Convert float to int (truncates!)\nconverted_int = int(decimal_number)\nprint(f\"int(15.7) = {converted_int}\")  # Removes decimal part\n\n# Convert int to float\nconverted_float = float(whole_number)\nprint(f\"float(42) = {converted_float}\")  # Adds .0\n",[3748],{"type":993,"tag":1037,"props":3749,"children":3750},{"__ignoreMap":8},[3751,3759,3775,3791,3798,3806,3828,3874,3881,3889,3911],{"type":993,"tag":1041,"props":3752,"children":3753},{"class":1043,"line":12},[3754],{"type":993,"tag":1041,"props":3755,"children":3756},{"style":1047},[3757],{"type":998,"value":3758},"# Converting between types\n",{"type":993,"tag":1041,"props":3760,"children":3761},{"class":1043,"line":27},[3762,3766,3770],{"type":993,"tag":1041,"props":3763,"children":3764},{"style":1056},[3765],{"type":998,"value":2344},{"type":993,"tag":1041,"props":3767,"children":3768},{"style":1062},[3769],{"type":998,"value":1065},{"type":993,"tag":1041,"props":3771,"children":3772},{"style":1068},[3773],{"type":998,"value":3774}," 15.7\n",{"type":993,"tag":1041,"props":3776,"children":3777},{"class":1043,"line":36},[3778,3782,3786],{"type":993,"tag":1041,"props":3779,"children":3780},{"style":1056},[3781],{"type":998,"value":2322},{"type":993,"tag":1041,"props":3783,"children":3784},{"style":1062},[3785],{"type":998,"value":1065},{"type":993,"tag":1041,"props":3787,"children":3788},{"style":1068},[3789],{"type":998,"value":3790}," 42\n",{"type":993,"tag":1041,"props":3792,"children":3793},{"class":1043,"line":45},[3794],{"type":993,"tag":1041,"props":3795,"children":3796},{"emptyLinePlaceholder":13},[3797],{"type":998,"value":1133},{"type":993,"tag":1041,"props":3799,"children":3800},{"class":1043,"line":54},[3801],{"type":993,"tag":1041,"props":3802,"children":3803},{"style":1047},[3804],{"type":998,"value":3805},"# Convert float to int (truncates!)\n",{"type":993,"tag":1041,"props":3807,"children":3808},{"class":1043,"line":63},[3809,3814,3818,3823],{"type":993,"tag":1041,"props":3810,"children":3811},{"style":1056},[3812],{"type":998,"value":3813},"converted_int ",{"type":993,"tag":1041,"props":3815,"children":3816},{"style":1062},[3817],{"type":998,"value":1065},{"type":993,"tag":1041,"props":3819,"children":3820},{"style":1068},[3821],{"type":998,"value":3822}," int",{"type":993,"tag":1041,"props":3824,"children":3825},{"style":1056},[3826],{"type":998,"value":3827},"(decimal_number)\n",{"type":993,"tag":1041,"props":3829,"children":3830},{"class":1043,"line":72},[3831,3835,3839,3843,3848,3852,3857,3861,3865,3869],{"type":993,"tag":1041,"props":3832,"children":3833},{"style":1068},[3834],{"type":998,"value":1141},{"type":993,"tag":1041,"props":3836,"children":3837},{"style":1056},[3838],{"type":998,"value":1146},{"type":993,"tag":1041,"props":3840,"children":3841},{"style":1062},[3842],{"type":998,"value":1151},{"type":993,"tag":1041,"props":3844,"children":3845},{"style":1154},[3846],{"type":998,"value":3847},"\"int(15.7) = ",{"type":993,"tag":1041,"props":3849,"children":3850},{"style":1068},[3851],{"type":998,"value":1162},{"type":993,"tag":1041,"props":3853,"children":3854},{"style":1056},[3855],{"type":998,"value":3856},"converted_int",{"type":993,"tag":1041,"props":3858,"children":3859},{"style":1068},[3860],{"type":998,"value":1172},{"type":993,"tag":1041,"props":3862,"children":3863},{"style":1154},[3864],{"type":998,"value":1538},{"type":993,"tag":1041,"props":3866,"children":3867},{"style":1056},[3868],{"type":998,"value":3625},{"type":993,"tag":1041,"props":3870,"children":3871},{"style":1047},[3872],{"type":998,"value":3873},"# Removes decimal part\n",{"type":993,"tag":1041,"props":3875,"children":3876},{"class":1043,"line":81},[3877],{"type":993,"tag":1041,"props":3878,"children":3879},{"emptyLinePlaceholder":13},[3880],{"type":998,"value":1133},{"type":993,"tag":1041,"props":3882,"children":3883},{"class":1043,"line":91},[3884],{"type":993,"tag":1041,"props":3885,"children":3886},{"style":1047},[3887],{"type":998,"value":3888},"# Convert int to float\n",{"type":993,"tag":1041,"props":3890,"children":3891},{"class":1043,"line":100},[3892,3897,3901,3906],{"type":993,"tag":1041,"props":3893,"children":3894},{"style":1056},[3895],{"type":998,"value":3896},"converted_float ",{"type":993,"tag":1041,"props":3898,"children":3899},{"style":1062},[3900],{"type":998,"value":1065},{"type":993,"tag":1041,"props":3902,"children":3903},{"style":1068},[3904],{"type":998,"value":3905}," float",{"type":993,"tag":1041,"props":3907,"children":3908},{"style":1056},[3909],{"type":998,"value":3910},"(whole_number)\n",{"type":993,"tag":1041,"props":3912,"children":3913},{"class":1043,"line":109},[3914,3918,3922,3926,3931,3935,3940,3944,3948,3952],{"type":993,"tag":1041,"props":3915,"children":3916},{"style":1068},[3917],{"type":998,"value":1141},{"type":993,"tag":1041,"props":3919,"children":3920},{"style":1056},[3921],{"type":998,"value":1146},{"type":993,"tag":1041,"props":3923,"children":3924},{"style":1062},[3925],{"type":998,"value":1151},{"type":993,"tag":1041,"props":3927,"children":3928},{"style":1154},[3929],{"type":998,"value":3930},"\"float(42) = ",{"type":993,"tag":1041,"props":3932,"children":3933},{"style":1068},[3934],{"type":998,"value":1162},{"type":993,"tag":1041,"props":3936,"children":3937},{"style":1056},[3938],{"type":998,"value":3939},"converted_float",{"type":993,"tag":1041,"props":3941,"children":3942},{"style":1068},[3943],{"type":998,"value":1172},{"type":993,"tag":1041,"props":3945,"children":3946},{"style":1154},[3947],{"type":998,"value":1538},{"type":993,"tag":1041,"props":3949,"children":3950},{"style":1056},[3951],{"type":998,"value":3625},{"type":993,"tag":1041,"props":3953,"children":3954},{"style":1047},[3955],{"type":998,"value":3956},"# Adds .0\n",{"type":993,"tag":1621,"props":3958,"children":3960},{"id":3959},"important-int-truncates-doesnt-round",[3961],{"type":998,"value":3962},"Important: int() Truncates, Doesn't Round!",{"type":993,"tag":1027,"props":3964,"children":3965},{},[3966],{"type":993,"tag":1031,"props":3967,"children":3969},{"className":1033,"code":3968,"language":6,"meta":8,"style":8},"# int() removes decimal part (truncation)\nprint(f\"int(15.7) = {int(15.7)}\")    # 15 (not 16!)\nprint(f\"int(15.2) = {int(15.2)}\")    # 15\nprint(f\"int(15.9) = {int(15.9)}\")    # 15 (still not 16!)\n\n# Use round() if you want rounding\nprint(f\"round(15.7) = {round(15.7)}\")  # 16\n",[3970],{"type":993,"tag":1037,"props":3971,"children":3972},{"__ignoreMap":8},[3973,3981,4035,4089,4143,4150,4158],{"type":993,"tag":1041,"props":3974,"children":3975},{"class":1043,"line":12},[3976],{"type":993,"tag":1041,"props":3977,"children":3978},{"style":1047},[3979],{"type":998,"value":3980},"# int() removes decimal part (truncation)\n",{"type":993,"tag":1041,"props":3982,"children":3983},{"class":1043,"line":27},[3984,3988,3992,3996,4000,4005,4009,4014,4018,4022,4026,4030],{"type":993,"tag":1041,"props":3985,"children":3986},{"style":1068},[3987],{"type":998,"value":1141},{"type":993,"tag":1041,"props":3989,"children":3990},{"style":1056},[3991],{"type":998,"value":1146},{"type":993,"tag":1041,"props":3993,"children":3994},{"style":1062},[3995],{"type":998,"value":1151},{"type":993,"tag":1041,"props":3997,"children":3998},{"style":1154},[3999],{"type":998,"value":3847},{"type":993,"tag":1041,"props":4001,"children":4002},{"style":1068},[4003],{"type":998,"value":4004},"{int",{"type":993,"tag":1041,"props":4006,"children":4007},{"style":1056},[4008],{"type":998,"value":1146},{"type":993,"tag":1041,"props":4010,"children":4011},{"style":1068},[4012],{"type":998,"value":4013},"15.7",{"type":993,"tag":1041,"props":4015,"children":4016},{"style":1056},[4017],{"type":998,"value":2684},{"type":993,"tag":1041,"props":4019,"children":4020},{"style":1068},[4021],{"type":998,"value":1172},{"type":993,"tag":1041,"props":4023,"children":4024},{"style":1154},[4025],{"type":998,"value":1538},{"type":993,"tag":1041,"props":4027,"children":4028},{"style":1056},[4029],{"type":998,"value":3212},{"type":993,"tag":1041,"props":4031,"children":4032},{"style":1047},[4033],{"type":998,"value":4034},"# 15 (not 16!)\n",{"type":993,"tag":1041,"props":4036,"children":4037},{"class":1043,"line":36},[4038,4042,4046,4050,4055,4059,4063,4068,4072,4076,4080,4084],{"type":993,"tag":1041,"props":4039,"children":4040},{"style":1068},[4041],{"type":998,"value":1141},{"type":993,"tag":1041,"props":4043,"children":4044},{"style":1056},[4045],{"type":998,"value":1146},{"type":993,"tag":1041,"props":4047,"children":4048},{"style":1062},[4049],{"type":998,"value":1151},{"type":993,"tag":1041,"props":4051,"children":4052},{"style":1154},[4053],{"type":998,"value":4054},"\"int(15.2) = ",{"type":993,"tag":1041,"props":4056,"children":4057},{"style":1068},[4058],{"type":998,"value":4004},{"type":993,"tag":1041,"props":4060,"children":4061},{"style":1056},[4062],{"type":998,"value":1146},{"type":993,"tag":1041,"props":4064,"children":4065},{"style":1068},[4066],{"type":998,"value":4067},"15.2",{"type":993,"tag":1041,"props":4069,"children":4070},{"style":1056},[4071],{"type":998,"value":2684},{"type":993,"tag":1041,"props":4073,"children":4074},{"style":1068},[4075],{"type":998,"value":1172},{"type":993,"tag":1041,"props":4077,"children":4078},{"style":1154},[4079],{"type":998,"value":1538},{"type":993,"tag":1041,"props":4081,"children":4082},{"style":1056},[4083],{"type":998,"value":3212},{"type":993,"tag":1041,"props":4085,"children":4086},{"style":1047},[4087],{"type":998,"value":4088},"# 15\n",{"type":993,"tag":1041,"props":4090,"children":4091},{"class":1043,"line":45},[4092,4096,4100,4104,4109,4113,4117,4122,4126,4130,4134,4138],{"type":993,"tag":1041,"props":4093,"children":4094},{"style":1068},[4095],{"type":998,"value":1141},{"type":993,"tag":1041,"props":4097,"children":4098},{"style":1056},[4099],{"type":998,"value":1146},{"type":993,"tag":1041,"props":4101,"children":4102},{"style":1062},[4103],{"type":998,"value":1151},{"type":993,"tag":1041,"props":4105,"children":4106},{"style":1154},[4107],{"type":998,"value":4108},"\"int(15.9) = ",{"type":993,"tag":1041,"props":4110,"children":4111},{"style":1068},[4112],{"type":998,"value":4004},{"type":993,"tag":1041,"props":4114,"children":4115},{"style":1056},[4116],{"type":998,"value":1146},{"type":993,"tag":1041,"props":4118,"children":4119},{"style":1068},[4120],{"type":998,"value":4121},"15.9",{"type":993,"tag":1041,"props":4123,"children":4124},{"style":1056},[4125],{"type":998,"value":2684},{"type":993,"tag":1041,"props":4127,"children":4128},{"style":1068},[4129],{"type":998,"value":1172},{"type":993,"tag":1041,"props":4131,"children":4132},{"style":1154},[4133],{"type":998,"value":1538},{"type":993,"tag":1041,"props":4135,"children":4136},{"style":1056},[4137],{"type":998,"value":3212},{"type":993,"tag":1041,"props":4139,"children":4140},{"style":1047},[4141],{"type":998,"value":4142},"# 15 (still not 16!)\n",{"type":993,"tag":1041,"props":4144,"children":4145},{"class":1043,"line":54},[4146],{"type":993,"tag":1041,"props":4147,"children":4148},{"emptyLinePlaceholder":13},[4149],{"type":998,"value":1133},{"type":993,"tag":1041,"props":4151,"children":4152},{"class":1043,"line":63},[4153],{"type":993,"tag":1041,"props":4154,"children":4155},{"style":1047},[4156],{"type":998,"value":4157},"# Use round() if you want rounding\n",{"type":993,"tag":1041,"props":4159,"children":4160},{"class":1043,"line":72},[4161,4165,4169,4173,4178,4183,4187,4191,4195,4199,4203,4207],{"type":993,"tag":1041,"props":4162,"children":4163},{"style":1068},[4164],{"type":998,"value":1141},{"type":993,"tag":1041,"props":4166,"children":4167},{"style":1056},[4168],{"type":998,"value":1146},{"type":993,"tag":1041,"props":4170,"children":4171},{"style":1062},[4172],{"type":998,"value":1151},{"type":993,"tag":1041,"props":4174,"children":4175},{"style":1154},[4176],{"type":998,"value":4177},"\"round(15.7) = ",{"type":993,"tag":1041,"props":4179,"children":4180},{"style":1068},[4181],{"type":998,"value":4182},"{round",{"type":993,"tag":1041,"props":4184,"children":4185},{"style":1056},[4186],{"type":998,"value":1146},{"type":993,"tag":1041,"props":4188,"children":4189},{"style":1068},[4190],{"type":998,"value":4013},{"type":993,"tag":1041,"props":4192,"children":4193},{"style":1056},[4194],{"type":998,"value":2684},{"type":993,"tag":1041,"props":4196,"children":4197},{"style":1068},[4198],{"type":998,"value":1172},{"type":993,"tag":1041,"props":4200,"children":4201},{"style":1154},[4202],{"type":998,"value":1538},{"type":993,"tag":1041,"props":4204,"children":4205},{"style":1056},[4206],{"type":998,"value":3625},{"type":993,"tag":1041,"props":4208,"children":4209},{"style":1047},[4210],{"type":998,"value":4211},"# 16\n",{"type":993,"tag":2568,"props":4213,"children":4217},{"title":4214,"type":4215,"emoji":4216},"Conversion Rules","warning","⚠️",[4218,4227,4277,4286,4317,4326,4365],{"type":993,"tag":1001,"props":4219,"children":4220},{},[4221,4226],{"type":993,"tag":1012,"props":4222,"children":4223},{},[4224],{"type":998,"value":4225},"int() function",{"type":998,"value":2583},{"type":993,"tag":2585,"props":4228,"children":4229},{},[4230,4240,4259],{"type":993,"tag":2589,"props":4231,"children":4232},{},[4233,4238],{"type":993,"tag":1012,"props":4234,"children":4235},{},[4236],{"type":998,"value":4237},"Truncates",{"type":998,"value":4239}," (removes) decimal part",{"type":993,"tag":2589,"props":4241,"children":4242},{},[4243,4249,4251,4257],{"type":993,"tag":1037,"props":4244,"children":4246},{"className":4245},[],[4247],{"type":998,"value":4248},"int(15.7)",{"type":998,"value":4250}," → ",{"type":993,"tag":1037,"props":4252,"children":4254},{"className":4253},[],[4255],{"type":998,"value":4256},"15",{"type":998,"value":4258}," (not 16!)",{"type":993,"tag":2589,"props":4260,"children":4261},{},[4262,4268,4269,4275],{"type":993,"tag":1037,"props":4263,"children":4265},{"className":4264},[],[4266],{"type":998,"value":4267},"int(-3.9)",{"type":998,"value":4250},{"type":993,"tag":1037,"props":4270,"children":4272},{"className":4271},[],[4273],{"type":998,"value":4274},"-3",{"type":998,"value":4276}," (not -4!)",{"type":993,"tag":1001,"props":4278,"children":4279},{},[4280,4285],{"type":993,"tag":1012,"props":4281,"children":4282},{},[4283],{"type":998,"value":4284},"float() function",{"type":998,"value":2583},{"type":993,"tag":2585,"props":4287,"children":4288},{},[4289,4302],{"type":993,"tag":2589,"props":4290,"children":4291},{},[4292,4294,4300],{"type":998,"value":4293},"Adds ",{"type":993,"tag":1037,"props":4295,"children":4297},{"className":4296},[],[4298],{"type":998,"value":4299},".0",{"type":998,"value":4301}," to integers",{"type":993,"tag":2589,"props":4303,"children":4304},{},[4305,4311,4312],{"type":993,"tag":1037,"props":4306,"children":4308},{"className":4307},[],[4309],{"type":998,"value":4310},"float(42)",{"type":998,"value":4250},{"type":993,"tag":1037,"props":4313,"children":4315},{"className":4314},[],[4316],{"type":998,"value":1945},{"type":993,"tag":1001,"props":4318,"children":4319},{},[4320,4325],{"type":993,"tag":1012,"props":4321,"children":4322},{},[4323],{"type":998,"value":4324},"round() function",{"type":998,"value":2583},{"type":993,"tag":2585,"props":4327,"children":4328},{},[4329,4334,4350],{"type":993,"tag":2589,"props":4330,"children":4331},{},[4332],{"type":998,"value":4333},"Rounds to nearest integer",{"type":993,"tag":2589,"props":4335,"children":4336},{},[4337,4343,4344],{"type":993,"tag":1037,"props":4338,"children":4340},{"className":4339},[],[4341],{"type":998,"value":4342},"round(15.7)",{"type":998,"value":4250},{"type":993,"tag":1037,"props":4345,"children":4347},{"className":4346},[],[4348],{"type":998,"value":4349},"16",{"type":993,"tag":2589,"props":4351,"children":4352},{},[4353,4359,4360],{"type":993,"tag":1037,"props":4354,"children":4356},{"className":4355},[],[4357],{"type":998,"value":4358},"round(15.2)",{"type":998,"value":4250},{"type":993,"tag":1037,"props":4361,"children":4363},{"className":4362},[],[4364],{"type":998,"value":4256},{"type":993,"tag":1001,"props":4366,"children":4367},{},[4368,4373,4374,4380,4382,4388],{"type":993,"tag":1012,"props":4369,"children":4370},{},[4371],{"type":998,"value":4372},"Remember",{"type":998,"value":2709},{"type":993,"tag":1037,"props":4375,"children":4377},{"className":4376},[],[4378],{"type":998,"value":4379},"int()",{"type":998,"value":4381}," truncates, ",{"type":993,"tag":1037,"props":4383,"children":4385},{"className":4384},[],[4386],{"type":998,"value":4387},"round()",{"type":998,"value":4389}," rounds!",{"type":993,"tag":1320,"props":4391,"children":4393},{"id":4392},"️-useful-number-functions",[4394],{"type":998,"value":4395},"🛠️ Useful Number Functions",{"type":993,"tag":1001,"props":4397,"children":4398},{},[4399],{"type":998,"value":4400},"Python provides many built-in functions for working with numbers:",{"type":993,"tag":1621,"props":4402,"children":4404},{"id":4403},"absolute-values-and-rounding",[4405],{"type":998,"value":4406},"Absolute Values and Rounding",{"type":993,"tag":1027,"props":4408,"children":4409},{},[4410],{"type":993,"tag":1031,"props":4411,"children":4413},{"className":1033,"code":4412,"language":6,"meta":8,"style":8},"# abs() - absolute value (removes negative sign)\ntemperature = -15\ndistance = abs(temperature)\nprint(f\"Temperature: {temperature}°C\")\nprint(f\"Distance from zero: {distance}\")\n\n# round() - rounds to nearest integer\nprice = 19.567\nrounded_price = round(price, 2)  # Round to 2 decimal places\nprint(f\"Original price: ${price}\")\nprint(f\"Rounded price: ${rounded_price}\")\n",[4414],{"type":993,"tag":1037,"props":4415,"children":4416},{"__ignoreMap":8},[4417,4425,4445,4467,4507,4548,4555,4563,4579,4615,4655],{"type":993,"tag":1041,"props":4418,"children":4419},{"class":1043,"line":12},[4420],{"type":993,"tag":1041,"props":4421,"children":4422},{"style":1047},[4423],{"type":998,"value":4424},"# abs() - absolute value (removes negative sign)\n",{"type":993,"tag":1041,"props":4426,"children":4427},{"class":1043,"line":27},[4428,4432,4436,4440],{"type":993,"tag":1041,"props":4429,"children":4430},{"style":1056},[4431],{"type":998,"value":1106},{"type":993,"tag":1041,"props":4433,"children":4434},{"style":1062},[4435],{"type":998,"value":1065},{"type":993,"tag":1041,"props":4437,"children":4438},{"style":1062},[4439],{"type":998,"value":1115},{"type":993,"tag":1041,"props":4441,"children":4442},{"style":1068},[4443],{"type":998,"value":4444},"15\n",{"type":993,"tag":1041,"props":4446,"children":4447},{"class":1043,"line":36},[4448,4453,4457,4462],{"type":993,"tag":1041,"props":4449,"children":4450},{"style":1056},[4451],{"type":998,"value":4452},"distance ",{"type":993,"tag":1041,"props":4454,"children":4455},{"style":1062},[4456],{"type":998,"value":1065},{"type":993,"tag":1041,"props":4458,"children":4459},{"style":1068},[4460],{"type":998,"value":4461}," abs",{"type":993,"tag":1041,"props":4463,"children":4464},{"style":1056},[4465],{"type":998,"value":4466},"(temperature)\n",{"type":993,"tag":1041,"props":4468,"children":4469},{"class":1043,"line":45},[4470,4474,4478,4482,4486,4490,4494,4498,4503],{"type":993,"tag":1041,"props":4471,"children":4472},{"style":1068},[4473],{"type":998,"value":1141},{"type":993,"tag":1041,"props":4475,"children":4476},{"style":1056},[4477],{"type":998,"value":1146},{"type":993,"tag":1041,"props":4479,"children":4480},{"style":1062},[4481],{"type":998,"value":1151},{"type":993,"tag":1041,"props":4483,"children":4484},{"style":1154},[4485],{"type":998,"value":1279},{"type":993,"tag":1041,"props":4487,"children":4488},{"style":1068},[4489],{"type":998,"value":1162},{"type":993,"tag":1041,"props":4491,"children":4492},{"style":1056},[4493],{"type":998,"value":1288},{"type":993,"tag":1041,"props":4495,"children":4496},{"style":1068},[4497],{"type":998,"value":1172},{"type":993,"tag":1041,"props":4499,"children":4500},{"style":1154},[4501],{"type":998,"value":4502},"°C\"",{"type":993,"tag":1041,"props":4504,"children":4505},{"style":1056},[4506],{"type":998,"value":1201},{"type":993,"tag":1041,"props":4508,"children":4509},{"class":1043,"line":54},[4510,4514,4518,4522,4527,4531,4536,4540,4544],{"type":993,"tag":1041,"props":4511,"children":4512},{"style":1068},[4513],{"type":998,"value":1141},{"type":993,"tag":1041,"props":4515,"children":4516},{"style":1056},[4517],{"type":998,"value":1146},{"type":993,"tag":1041,"props":4519,"children":4520},{"style":1062},[4521],{"type":998,"value":1151},{"type":993,"tag":1041,"props":4523,"children":4524},{"style":1154},[4525],{"type":998,"value":4526},"\"Distance from zero: ",{"type":993,"tag":1041,"props":4528,"children":4529},{"style":1068},[4530],{"type":998,"value":1162},{"type":993,"tag":1041,"props":4532,"children":4533},{"style":1056},[4534],{"type":998,"value":4535},"distance",{"type":993,"tag":1041,"props":4537,"children":4538},{"style":1068},[4539],{"type":998,"value":1172},{"type":993,"tag":1041,"props":4541,"children":4542},{"style":1154},[4543],{"type":998,"value":1538},{"type":993,"tag":1041,"props":4545,"children":4546},{"style":1056},[4547],{"type":998,"value":1201},{"type":993,"tag":1041,"props":4549,"children":4550},{"class":1043,"line":63},[4551],{"type":993,"tag":1041,"props":4552,"children":4553},{"emptyLinePlaceholder":13},[4554],{"type":998,"value":1133},{"type":993,"tag":1041,"props":4556,"children":4557},{"class":1043,"line":72},[4558],{"type":993,"tag":1041,"props":4559,"children":4560},{"style":1047},[4561],{"type":998,"value":4562},"# round() - rounds to nearest integer\n",{"type":993,"tag":1041,"props":4564,"children":4565},{"class":1043,"line":81},[4566,4570,4574],{"type":993,"tag":1041,"props":4567,"children":4568},{"style":1056},[4569],{"type":998,"value":1084},{"type":993,"tag":1041,"props":4571,"children":4572},{"style":1062},[4573],{"type":998,"value":1065},{"type":993,"tag":1041,"props":4575,"children":4576},{"style":1068},[4577],{"type":998,"value":4578}," 19.567\n",{"type":993,"tag":1041,"props":4580,"children":4581},{"class":1043,"line":91},[4582,4587,4591,4596,4601,4606,4610],{"type":993,"tag":1041,"props":4583,"children":4584},{"style":1056},[4585],{"type":998,"value":4586},"rounded_price ",{"type":993,"tag":1041,"props":4588,"children":4589},{"style":1062},[4590],{"type":998,"value":1065},{"type":993,"tag":1041,"props":4592,"children":4593},{"style":1068},[4594],{"type":998,"value":4595}," round",{"type":993,"tag":1041,"props":4597,"children":4598},{"style":1056},[4599],{"type":998,"value":4600},"(price, ",{"type":993,"tag":1041,"props":4602,"children":4603},{"style":1068},[4604],{"type":998,"value":4605},"2",{"type":993,"tag":1041,"props":4607,"children":4608},{"style":1056},[4609],{"type":998,"value":3625},{"type":993,"tag":1041,"props":4611,"children":4612},{"style":1047},[4613],{"type":998,"value":4614},"# Round to 2 decimal places\n",{"type":993,"tag":1041,"props":4616,"children":4617},{"class":1043,"line":100},[4618,4622,4626,4630,4635,4639,4643,4647,4651],{"type":993,"tag":1041,"props":4619,"children":4620},{"style":1068},[4621],{"type":998,"value":1141},{"type":993,"tag":1041,"props":4623,"children":4624},{"style":1056},[4625],{"type":998,"value":1146},{"type":993,"tag":1041,"props":4627,"children":4628},{"style":1062},[4629],{"type":998,"value":1151},{"type":993,"tag":1041,"props":4631,"children":4632},{"style":1154},[4633],{"type":998,"value":4634},"\"Original price: $",{"type":993,"tag":1041,"props":4636,"children":4637},{"style":1068},[4638],{"type":998,"value":1162},{"type":993,"tag":1041,"props":4640,"children":4641},{"style":1056},[4642],{"type":998,"value":1230},{"type":993,"tag":1041,"props":4644,"children":4645},{"style":1068},[4646],{"type":998,"value":1172},{"type":993,"tag":1041,"props":4648,"children":4649},{"style":1154},[4650],{"type":998,"value":1538},{"type":993,"tag":1041,"props":4652,"children":4653},{"style":1056},[4654],{"type":998,"value":1201},{"type":993,"tag":1041,"props":4656,"children":4657},{"class":1043,"line":109},[4658,4662,4666,4670,4675,4679,4684,4688,4692],{"type":993,"tag":1041,"props":4659,"children":4660},{"style":1068},[4661],{"type":998,"value":1141},{"type":993,"tag":1041,"props":4663,"children":4664},{"style":1056},[4665],{"type":998,"value":1146},{"type":993,"tag":1041,"props":4667,"children":4668},{"style":1062},[4669],{"type":998,"value":1151},{"type":993,"tag":1041,"props":4671,"children":4672},{"style":1154},[4673],{"type":998,"value":4674},"\"Rounded price: $",{"type":993,"tag":1041,"props":4676,"children":4677},{"style":1068},[4678],{"type":998,"value":1162},{"type":993,"tag":1041,"props":4680,"children":4681},{"style":1056},[4682],{"type":998,"value":4683},"rounded_price",{"type":993,"tag":1041,"props":4685,"children":4686},{"style":1068},[4687],{"type":998,"value":1172},{"type":993,"tag":1041,"props":4689,"children":4690},{"style":1154},[4691],{"type":998,"value":1538},{"type":993,"tag":1041,"props":4693,"children":4694},{"style":1056},[4695],{"type":998,"value":1201},{"type":993,"tag":1621,"props":4697,"children":4699},{"id":4698},"finding-maximum-and-minimum",[4700],{"type":998,"value":4701},"Finding Maximum and Minimum",{"type":993,"tag":1027,"props":4703,"children":4704},{},[4705],{"type":993,"tag":1031,"props":4706,"children":4708},{"className":1033,"code":4707,"language":6,"meta":8,"style":8},"# max() and min() - find largest and smallest\nscores = [85, 92, 78, 96, 88]\nhighest = max(scores)\nlowest = min(scores)\n\nprint(f\"Scores: {scores}\")\nprint(f\"Highest score: {highest}\")\nprint(f\"Lowest score: {lowest}\")\n\n# Works with individual numbers too\nprint(f\"Max of 5, 8, 3: {max(5, 8, 3)}\")\nprint(f\"Min of 5, 8, 3: {min(5, 8, 3)}\")\n",[4709],{"type":993,"tag":1037,"props":4710,"children":4711},{"__ignoreMap":8},[4712,4720,4783,4805,4826,4833,4874,4915,4956,4963,4971,5038],{"type":993,"tag":1041,"props":4713,"children":4714},{"class":1043,"line":12},[4715],{"type":993,"tag":1041,"props":4716,"children":4717},{"style":1047},[4718],{"type":998,"value":4719},"# max() and min() - find largest and smallest\n",{"type":993,"tag":1041,"props":4721,"children":4722},{"class":1043,"line":27},[4723,4728,4732,4737,4742,4746,4751,4755,4760,4764,4769,4773,4778],{"type":993,"tag":1041,"props":4724,"children":4725},{"style":1056},[4726],{"type":998,"value":4727},"scores ",{"type":993,"tag":1041,"props":4729,"children":4730},{"style":1062},[4731],{"type":998,"value":1065},{"type":993,"tag":1041,"props":4733,"children":4734},{"style":1056},[4735],{"type":998,"value":4736}," [",{"type":993,"tag":1041,"props":4738,"children":4739},{"style":1068},[4740],{"type":998,"value":4741},"85",{"type":993,"tag":1041,"props":4743,"children":4744},{"style":1056},[4745],{"type":998,"value":2601},{"type":993,"tag":1041,"props":4747,"children":4748},{"style":1068},[4749],{"type":998,"value":4750},"92",{"type":993,"tag":1041,"props":4752,"children":4753},{"style":1056},[4754],{"type":998,"value":2601},{"type":993,"tag":1041,"props":4756,"children":4757},{"style":1068},[4758],{"type":998,"value":4759},"78",{"type":993,"tag":1041,"props":4761,"children":4762},{"style":1056},[4763],{"type":998,"value":2601},{"type":993,"tag":1041,"props":4765,"children":4766},{"style":1068},[4767],{"type":998,"value":4768},"96",{"type":993,"tag":1041,"props":4770,"children":4771},{"style":1056},[4772],{"type":998,"value":2601},{"type":993,"tag":1041,"props":4774,"children":4775},{"style":1068},[4776],{"type":998,"value":4777},"88",{"type":993,"tag":1041,"props":4779,"children":4780},{"style":1056},[4781],{"type":998,"value":4782},"]\n",{"type":993,"tag":1041,"props":4784,"children":4785},{"class":1043,"line":36},[4786,4791,4795,4800],{"type":993,"tag":1041,"props":4787,"children":4788},{"style":1056},[4789],{"type":998,"value":4790},"highest ",{"type":993,"tag":1041,"props":4792,"children":4793},{"style":1062},[4794],{"type":998,"value":1065},{"type":993,"tag":1041,"props":4796,"children":4797},{"style":1068},[4798],{"type":998,"value":4799}," max",{"type":993,"tag":1041,"props":4801,"children":4802},{"style":1056},[4803],{"type":998,"value":4804},"(scores)\n",{"type":993,"tag":1041,"props":4806,"children":4807},{"class":1043,"line":45},[4808,4813,4817,4822],{"type":993,"tag":1041,"props":4809,"children":4810},{"style":1056},[4811],{"type":998,"value":4812},"lowest ",{"type":993,"tag":1041,"props":4814,"children":4815},{"style":1062},[4816],{"type":998,"value":1065},{"type":993,"tag":1041,"props":4818,"children":4819},{"style":1068},[4820],{"type":998,"value":4821}," min",{"type":993,"tag":1041,"props":4823,"children":4824},{"style":1056},[4825],{"type":998,"value":4804},{"type":993,"tag":1041,"props":4827,"children":4828},{"class":1043,"line":54},[4829],{"type":993,"tag":1041,"props":4830,"children":4831},{"emptyLinePlaceholder":13},[4832],{"type":998,"value":1133},{"type":993,"tag":1041,"props":4834,"children":4835},{"class":1043,"line":63},[4836,4840,4844,4848,4853,4857,4862,4866,4870],{"type":993,"tag":1041,"props":4837,"children":4838},{"style":1068},[4839],{"type":998,"value":1141},{"type":993,"tag":1041,"props":4841,"children":4842},{"style":1056},[4843],{"type":998,"value":1146},{"type":993,"tag":1041,"props":4845,"children":4846},{"style":1062},[4847],{"type":998,"value":1151},{"type":993,"tag":1041,"props":4849,"children":4850},{"style":1154},[4851],{"type":998,"value":4852},"\"Scores: ",{"type":993,"tag":1041,"props":4854,"children":4855},{"style":1068},[4856],{"type":998,"value":1162},{"type":993,"tag":1041,"props":4858,"children":4859},{"style":1056},[4860],{"type":998,"value":4861},"scores",{"type":993,"tag":1041,"props":4863,"children":4864},{"style":1068},[4865],{"type":998,"value":1172},{"type":993,"tag":1041,"props":4867,"children":4868},{"style":1154},[4869],{"type":998,"value":1538},{"type":993,"tag":1041,"props":4871,"children":4872},{"style":1056},[4873],{"type":998,"value":1201},{"type":993,"tag":1041,"props":4875,"children":4876},{"class":1043,"line":72},[4877,4881,4885,4889,4894,4898,4903,4907,4911],{"type":993,"tag":1041,"props":4878,"children":4879},{"style":1068},[4880],{"type":998,"value":1141},{"type":993,"tag":1041,"props":4882,"children":4883},{"style":1056},[4884],{"type":998,"value":1146},{"type":993,"tag":1041,"props":4886,"children":4887},{"style":1062},[4888],{"type":998,"value":1151},{"type":993,"tag":1041,"props":4890,"children":4891},{"style":1154},[4892],{"type":998,"value":4893},"\"Highest score: ",{"type":993,"tag":1041,"props":4895,"children":4896},{"style":1068},[4897],{"type":998,"value":1162},{"type":993,"tag":1041,"props":4899,"children":4900},{"style":1056},[4901],{"type":998,"value":4902},"highest",{"type":993,"tag":1041,"props":4904,"children":4905},{"style":1068},[4906],{"type":998,"value":1172},{"type":993,"tag":1041,"props":4908,"children":4909},{"style":1154},[4910],{"type":998,"value":1538},{"type":993,"tag":1041,"props":4912,"children":4913},{"style":1056},[4914],{"type":998,"value":1201},{"type":993,"tag":1041,"props":4916,"children":4917},{"class":1043,"line":81},[4918,4922,4926,4930,4935,4939,4944,4948,4952],{"type":993,"tag":1041,"props":4919,"children":4920},{"style":1068},[4921],{"type":998,"value":1141},{"type":993,"tag":1041,"props":4923,"children":4924},{"style":1056},[4925],{"type":998,"value":1146},{"type":993,"tag":1041,"props":4927,"children":4928},{"style":1062},[4929],{"type":998,"value":1151},{"type":993,"tag":1041,"props":4931,"children":4932},{"style":1154},[4933],{"type":998,"value":4934},"\"Lowest score: ",{"type":993,"tag":1041,"props":4936,"children":4937},{"style":1068},[4938],{"type":998,"value":1162},{"type":993,"tag":1041,"props":4940,"children":4941},{"style":1056},[4942],{"type":998,"value":4943},"lowest",{"type":993,"tag":1041,"props":4945,"children":4946},{"style":1068},[4947],{"type":998,"value":1172},{"type":993,"tag":1041,"props":4949,"children":4950},{"style":1154},[4951],{"type":998,"value":1538},{"type":993,"tag":1041,"props":4953,"children":4954},{"style":1056},[4955],{"type":998,"value":1201},{"type":993,"tag":1041,"props":4957,"children":4958},{"class":1043,"line":91},[4959],{"type":993,"tag":1041,"props":4960,"children":4961},{"emptyLinePlaceholder":13},[4962],{"type":998,"value":1133},{"type":993,"tag":1041,"props":4964,"children":4965},{"class":1043,"line":100},[4966],{"type":993,"tag":1041,"props":4967,"children":4968},{"style":1047},[4969],{"type":998,"value":4970},"# Works with individual numbers too\n",{"type":993,"tag":1041,"props":4972,"children":4973},{"class":1043,"line":109},[4974,4978,4982,4986,4991,4996,5000,5004,5008,5013,5017,5022,5026,5030,5034],{"type":993,"tag":1041,"props":4975,"children":4976},{"style":1068},[4977],{"type":998,"value":1141},{"type":993,"tag":1041,"props":4979,"children":4980},{"style":1056},[4981],{"type":998,"value":1146},{"type":993,"tag":1041,"props":4983,"children":4984},{"style":1062},[4985],{"type":998,"value":1151},{"type":993,"tag":1041,"props":4987,"children":4988},{"style":1154},[4989],{"type":998,"value":4990},"\"Max of 5, 8, 3: ",{"type":993,"tag":1041,"props":4992,"children":4993},{"style":1068},[4994],{"type":998,"value":4995},"{max",{"type":993,"tag":1041,"props":4997,"children":4998},{"style":1056},[4999],{"type":998,"value":1146},{"type":993,"tag":1041,"props":5001,"children":5002},{"style":1068},[5003],{"type":998,"value":1120},{"type":993,"tag":1041,"props":5005,"children":5006},{"style":1056},[5007],{"type":998,"value":2601},{"type":993,"tag":1041,"props":5009,"children":5010},{"style":1068},[5011],{"type":998,"value":5012},"8",{"type":993,"tag":1041,"props":5014,"children":5015},{"style":1056},[5016],{"type":998,"value":2601},{"type":993,"tag":1041,"props":5018,"children":5019},{"style":1068},[5020],{"type":998,"value":5021},"3",{"type":993,"tag":1041,"props":5023,"children":5024},{"style":1056},[5025],{"type":998,"value":2684},{"type":993,"tag":1041,"props":5027,"children":5028},{"style":1068},[5029],{"type":998,"value":1172},{"type":993,"tag":1041,"props":5031,"children":5032},{"style":1154},[5033],{"type":998,"value":1538},{"type":993,"tag":1041,"props":5035,"children":5036},{"style":1056},[5037],{"type":998,"value":1201},{"type":993,"tag":1041,"props":5039,"children":5040},{"class":1043,"line":118},[5041,5045,5049,5053,5058,5063,5067,5071,5075,5079,5083,5087,5091,5095,5099],{"type":993,"tag":1041,"props":5042,"children":5043},{"style":1068},[5044],{"type":998,"value":1141},{"type":993,"tag":1041,"props":5046,"children":5047},{"style":1056},[5048],{"type":998,"value":1146},{"type":993,"tag":1041,"props":5050,"children":5051},{"style":1062},[5052],{"type":998,"value":1151},{"type":993,"tag":1041,"props":5054,"children":5055},{"style":1154},[5056],{"type":998,"value":5057},"\"Min of 5, 8, 3: ",{"type":993,"tag":1041,"props":5059,"children":5060},{"style":1068},[5061],{"type":998,"value":5062},"{min",{"type":993,"tag":1041,"props":5064,"children":5065},{"style":1056},[5066],{"type":998,"value":1146},{"type":993,"tag":1041,"props":5068,"children":5069},{"style":1068},[5070],{"type":998,"value":1120},{"type":993,"tag":1041,"props":5072,"children":5073},{"style":1056},[5074],{"type":998,"value":2601},{"type":993,"tag":1041,"props":5076,"children":5077},{"style":1068},[5078],{"type":998,"value":5012},{"type":993,"tag":1041,"props":5080,"children":5081},{"style":1056},[5082],{"type":998,"value":2601},{"type":993,"tag":1041,"props":5084,"children":5085},{"style":1068},[5086],{"type":998,"value":5021},{"type":993,"tag":1041,"props":5088,"children":5089},{"style":1056},[5090],{"type":998,"value":2684},{"type":993,"tag":1041,"props":5092,"children":5093},{"style":1068},[5094],{"type":998,"value":1172},{"type":993,"tag":1041,"props":5096,"children":5097},{"style":1154},[5098],{"type":998,"value":1538},{"type":993,"tag":1041,"props":5100,"children":5101},{"style":1056},[5102],{"type":998,"value":1201},{"type":993,"tag":1621,"props":5104,"children":5106},{"id":5105},"sum-and-average",[5107],{"type":998,"value":5108},"Sum and Average",{"type":993,"tag":1027,"props":5110,"children":5111},{},[5112],{"type":993,"tag":1031,"props":5113,"children":5115},{"className":1033,"code":5114,"language":6,"meta":8,"style":8},"# sum() - adds up all numbers in a list\ntest_scores = [85, 92, 78, 96, 88]\ntotal_points = sum(test_scores)\naverage_score = total_points / len(test_scores)\n\nprint(f\"Test scores: {test_scores}\")\nprint(f\"Total points: {total_points}\")\nprint(f\"Average score: {average_score:.1f}\")\n",[5116],{"type":993,"tag":1037,"props":5117,"children":5118},{"__ignoreMap":8},[5119,5127,5183,5205,5235,5242,5283,5324],{"type":993,"tag":1041,"props":5120,"children":5121},{"class":1043,"line":12},[5122],{"type":993,"tag":1041,"props":5123,"children":5124},{"style":1047},[5125],{"type":998,"value":5126},"# sum() - adds up all numbers in a list\n",{"type":993,"tag":1041,"props":5128,"children":5129},{"class":1043,"line":27},[5130,5135,5139,5143,5147,5151,5155,5159,5163,5167,5171,5175,5179],{"type":993,"tag":1041,"props":5131,"children":5132},{"style":1056},[5133],{"type":998,"value":5134},"test_scores ",{"type":993,"tag":1041,"props":5136,"children":5137},{"style":1062},[5138],{"type":998,"value":1065},{"type":993,"tag":1041,"props":5140,"children":5141},{"style":1056},[5142],{"type":998,"value":4736},{"type":993,"tag":1041,"props":5144,"children":5145},{"style":1068},[5146],{"type":998,"value":4741},{"type":993,"tag":1041,"props":5148,"children":5149},{"style":1056},[5150],{"type":998,"value":2601},{"type":993,"tag":1041,"props":5152,"children":5153},{"style":1068},[5154],{"type":998,"value":4750},{"type":993,"tag":1041,"props":5156,"children":5157},{"style":1056},[5158],{"type":998,"value":2601},{"type":993,"tag":1041,"props":5160,"children":5161},{"style":1068},[5162],{"type":998,"value":4759},{"type":993,"tag":1041,"props":5164,"children":5165},{"style":1056},[5166],{"type":998,"value":2601},{"type":993,"tag":1041,"props":5168,"children":5169},{"style":1068},[5170],{"type":998,"value":4768},{"type":993,"tag":1041,"props":5172,"children":5173},{"style":1056},[5174],{"type":998,"value":2601},{"type":993,"tag":1041,"props":5176,"children":5177},{"style":1068},[5178],{"type":998,"value":4777},{"type":993,"tag":1041,"props":5180,"children":5181},{"style":1056},[5182],{"type":998,"value":4782},{"type":993,"tag":1041,"props":5184,"children":5185},{"class":1043,"line":36},[5186,5191,5195,5200],{"type":993,"tag":1041,"props":5187,"children":5188},{"style":1056},[5189],{"type":998,"value":5190},"total_points ",{"type":993,"tag":1041,"props":5192,"children":5193},{"style":1062},[5194],{"type":998,"value":1065},{"type":993,"tag":1041,"props":5196,"children":5197},{"style":1068},[5198],{"type":998,"value":5199}," sum",{"type":993,"tag":1041,"props":5201,"children":5202},{"style":1056},[5203],{"type":998,"value":5204},"(test_scores)\n",{"type":993,"tag":1041,"props":5206,"children":5207},{"class":1043,"line":45},[5208,5213,5217,5222,5226,5231],{"type":993,"tag":1041,"props":5209,"children":5210},{"style":1056},[5211],{"type":998,"value":5212},"average_score ",{"type":993,"tag":1041,"props":5214,"children":5215},{"style":1062},[5216],{"type":998,"value":1065},{"type":993,"tag":1041,"props":5218,"children":5219},{"style":1056},[5220],{"type":998,"value":5221}," total_points ",{"type":993,"tag":1041,"props":5223,"children":5224},{"style":1062},[5225],{"type":998,"value":3107},{"type":993,"tag":1041,"props":5227,"children":5228},{"style":1068},[5229],{"type":998,"value":5230}," len",{"type":993,"tag":1041,"props":5232,"children":5233},{"style":1056},[5234],{"type":998,"value":5204},{"type":993,"tag":1041,"props":5236,"children":5237},{"class":1043,"line":54},[5238],{"type":993,"tag":1041,"props":5239,"children":5240},{"emptyLinePlaceholder":13},[5241],{"type":998,"value":1133},{"type":993,"tag":1041,"props":5243,"children":5244},{"class":1043,"line":63},[5245,5249,5253,5257,5262,5266,5271,5275,5279],{"type":993,"tag":1041,"props":5246,"children":5247},{"style":1068},[5248],{"type":998,"value":1141},{"type":993,"tag":1041,"props":5250,"children":5251},{"style":1056},[5252],{"type":998,"value":1146},{"type":993,"tag":1041,"props":5254,"children":5255},{"style":1062},[5256],{"type":998,"value":1151},{"type":993,"tag":1041,"props":5258,"children":5259},{"style":1154},[5260],{"type":998,"value":5261},"\"Test scores: ",{"type":993,"tag":1041,"props":5263,"children":5264},{"style":1068},[5265],{"type":998,"value":1162},{"type":993,"tag":1041,"props":5267,"children":5268},{"style":1056},[5269],{"type":998,"value":5270},"test_scores",{"type":993,"tag":1041,"props":5272,"children":5273},{"style":1068},[5274],{"type":998,"value":1172},{"type":993,"tag":1041,"props":5276,"children":5277},{"style":1154},[5278],{"type":998,"value":1538},{"type":993,"tag":1041,"props":5280,"children":5281},{"style":1056},[5282],{"type":998,"value":1201},{"type":993,"tag":1041,"props":5284,"children":5285},{"class":1043,"line":72},[5286,5290,5294,5298,5303,5307,5312,5316,5320],{"type":993,"tag":1041,"props":5287,"children":5288},{"style":1068},[5289],{"type":998,"value":1141},{"type":993,"tag":1041,"props":5291,"children":5292},{"style":1056},[5293],{"type":998,"value":1146},{"type":993,"tag":1041,"props":5295,"children":5296},{"style":1062},[5297],{"type":998,"value":1151},{"type":993,"tag":1041,"props":5299,"children":5300},{"style":1154},[5301],{"type":998,"value":5302},"\"Total points: ",{"type":993,"tag":1041,"props":5304,"children":5305},{"style":1068},[5306],{"type":998,"value":1162},{"type":993,"tag":1041,"props":5308,"children":5309},{"style":1056},[5310],{"type":998,"value":5311},"total_points",{"type":993,"tag":1041,"props":5313,"children":5314},{"style":1068},[5315],{"type":998,"value":1172},{"type":993,"tag":1041,"props":5317,"children":5318},{"style":1154},[5319],{"type":998,"value":1538},{"type":993,"tag":1041,"props":5321,"children":5322},{"style":1056},[5323],{"type":998,"value":1201},{"type":993,"tag":1041,"props":5325,"children":5326},{"class":1043,"line":81},[5327,5331,5335,5339,5344,5348,5353,5358,5362,5366],{"type":993,"tag":1041,"props":5328,"children":5329},{"style":1068},[5330],{"type":998,"value":1141},{"type":993,"tag":1041,"props":5332,"children":5333},{"style":1056},[5334],{"type":998,"value":1146},{"type":993,"tag":1041,"props":5336,"children":5337},{"style":1062},[5338],{"type":998,"value":1151},{"type":993,"tag":1041,"props":5340,"children":5341},{"style":1154},[5342],{"type":998,"value":5343},"\"Average score: ",{"type":993,"tag":1041,"props":5345,"children":5346},{"style":1068},[5347],{"type":998,"value":1162},{"type":993,"tag":1041,"props":5349,"children":5350},{"style":1056},[5351],{"type":998,"value":5352},"average_score",{"type":993,"tag":1041,"props":5354,"children":5355},{"style":1062},[5356],{"type":998,"value":5357},":.1f",{"type":993,"tag":1041,"props":5359,"children":5360},{"style":1068},[5361],{"type":998,"value":1172},{"type":993,"tag":1041,"props":5363,"children":5364},{"style":1154},[5365],{"type":998,"value":1538},{"type":993,"tag":1041,"props":5367,"children":5368},{"style":1056},[5369],{"type":998,"value":1201},{"type":993,"tag":1320,"props":5371,"children":5373},{"id":5372},"quick-number-practice",[5374],{"type":998,"value":5375},"Quick Number Practice 💪",{"type":993,"tag":1001,"props":5377,"children":5378},{},[5379],{"type":998,"value":5380},"Let's practice basic number operations with a simple exercise!",{"type":993,"tag":5382,"props":5383,"children":5386},"exercise",{"hint":5384,"prompt":5385},"Try addition, division, and functions like max() and round()!","Practice working with numbers, math operations, and basic number functions.",[5387],{"type":993,"tag":1031,"props":5388,"children":5390},{"className":1033,"code":5389,"language":6,"meta":8,"style":8},"# Number Practice - Keep it simple!\n\n# Calculate a restaurant bill\nmeal_cost = 25.50\ntax_rate = 0.08\ntip_rate = 0.15\n\n# Calculate tax and tip\ntax = # TODO: Your code here (meal_cost * tax_rate)\ntip = # TODO: Your code here (meal_cost * tip_rate)\ntotal = # TODO: Your code here (meal_cost + tax + tip)\n\n# Round the total to 2 decimal places\nfinal_total = # TODO: Your code here (use round())\n\nprint(f\"Meal: ${meal_cost}\")\nprint(f\"Tax: ${tax:.2f}\")\nprint(f\"Tip: ${tip:.2f}\")\nprint(f\"Total: ${final_total}\")\n",[5391],{"type":993,"tag":1037,"props":5392,"children":5393},{"__ignoreMap":8},[5394,5402,5409,5417,5434,5451,5468,5475,5483,5510,5535,5560,5567,5575,5600,5607,5648,5694,5739],{"type":993,"tag":1041,"props":5395,"children":5396},{"class":1043,"line":12},[5397],{"type":993,"tag":1041,"props":5398,"children":5399},{"style":1047},[5400],{"type":998,"value":5401},"# Number Practice - Keep it simple!\n",{"type":993,"tag":1041,"props":5403,"children":5404},{"class":1043,"line":27},[5405],{"type":993,"tag":1041,"props":5406,"children":5407},{"emptyLinePlaceholder":13},[5408],{"type":998,"value":1133},{"type":993,"tag":1041,"props":5410,"children":5411},{"class":1043,"line":36},[5412],{"type":993,"tag":1041,"props":5413,"children":5414},{"style":1047},[5415],{"type":998,"value":5416},"# Calculate a restaurant bill\n",{"type":993,"tag":1041,"props":5418,"children":5419},{"class":1043,"line":45},[5420,5425,5429],{"type":993,"tag":1041,"props":5421,"children":5422},{"style":1056},[5423],{"type":998,"value":5424},"meal_cost ",{"type":993,"tag":1041,"props":5426,"children":5427},{"style":1062},[5428],{"type":998,"value":1065},{"type":993,"tag":1041,"props":5430,"children":5431},{"style":1068},[5432],{"type":998,"value":5433}," 25.50\n",{"type":993,"tag":1041,"props":5435,"children":5436},{"class":1043,"line":54},[5437,5442,5446],{"type":993,"tag":1041,"props":5438,"children":5439},{"style":1056},[5440],{"type":998,"value":5441},"tax_rate ",{"type":993,"tag":1041,"props":5443,"children":5444},{"style":1062},[5445],{"type":998,"value":1065},{"type":993,"tag":1041,"props":5447,"children":5448},{"style":1068},[5449],{"type":998,"value":5450}," 0.08\n",{"type":993,"tag":1041,"props":5452,"children":5453},{"class":1043,"line":63},[5454,5459,5463],{"type":993,"tag":1041,"props":5455,"children":5456},{"style":1056},[5457],{"type":998,"value":5458},"tip_rate ",{"type":993,"tag":1041,"props":5460,"children":5461},{"style":1062},[5462],{"type":998,"value":1065},{"type":993,"tag":1041,"props":5464,"children":5465},{"style":1068},[5466],{"type":998,"value":5467}," 0.15\n",{"type":993,"tag":1041,"props":5469,"children":5470},{"class":1043,"line":72},[5471],{"type":993,"tag":1041,"props":5472,"children":5473},{"emptyLinePlaceholder":13},[5474],{"type":998,"value":1133},{"type":993,"tag":1041,"props":5476,"children":5477},{"class":1043,"line":81},[5478],{"type":993,"tag":1041,"props":5479,"children":5480},{"style":1047},[5481],{"type":998,"value":5482},"# Calculate tax and tip\n",{"type":993,"tag":1041,"props":5484,"children":5485},{"class":1043,"line":91},[5486,5491,5495,5500,5505],{"type":993,"tag":1041,"props":5487,"children":5488},{"style":1056},[5489],{"type":998,"value":5490},"tax ",{"type":993,"tag":1041,"props":5492,"children":5493},{"style":1062},[5494],{"type":998,"value":1065},{"type":993,"tag":1041,"props":5496,"children":5497},{"style":1047},[5498],{"type":998,"value":5499}," # ",{"type":993,"tag":1041,"props":5501,"children":5502},{"style":1062},[5503],{"type":998,"value":5504},"TODO",{"type":993,"tag":1041,"props":5506,"children":5507},{"style":1047},[5508],{"type":998,"value":5509},": Your code here (meal_cost * tax_rate)\n",{"type":993,"tag":1041,"props":5511,"children":5512},{"class":1043,"line":100},[5513,5518,5522,5526,5530],{"type":993,"tag":1041,"props":5514,"children":5515},{"style":1056},[5516],{"type":998,"value":5517},"tip ",{"type":993,"tag":1041,"props":5519,"children":5520},{"style":1062},[5521],{"type":998,"value":1065},{"type":993,"tag":1041,"props":5523,"children":5524},{"style":1047},[5525],{"type":998,"value":5499},{"type":993,"tag":1041,"props":5527,"children":5528},{"style":1062},[5529],{"type":998,"value":5504},{"type":993,"tag":1041,"props":5531,"children":5532},{"style":1047},[5533],{"type":998,"value":5534},": Your code here (meal_cost * tip_rate)\n",{"type":993,"tag":1041,"props":5536,"children":5537},{"class":1043,"line":109},[5538,5543,5547,5551,5555],{"type":993,"tag":1041,"props":5539,"children":5540},{"style":1056},[5541],{"type":998,"value":5542},"total ",{"type":993,"tag":1041,"props":5544,"children":5545},{"style":1062},[5546],{"type":998,"value":1065},{"type":993,"tag":1041,"props":5548,"children":5549},{"style":1047},[5550],{"type":998,"value":5499},{"type":993,"tag":1041,"props":5552,"children":5553},{"style":1062},[5554],{"type":998,"value":5504},{"type":993,"tag":1041,"props":5556,"children":5557},{"style":1047},[5558],{"type":998,"value":5559},": Your code here (meal_cost + tax + tip)\n",{"type":993,"tag":1041,"props":5561,"children":5562},{"class":1043,"line":118},[5563],{"type":993,"tag":1041,"props":5564,"children":5565},{"emptyLinePlaceholder":13},[5566],{"type":998,"value":1133},{"type":993,"tag":1041,"props":5568,"children":5569},{"class":1043,"line":127},[5570],{"type":993,"tag":1041,"props":5571,"children":5572},{"style":1047},[5573],{"type":998,"value":5574},"# Round the total to 2 decimal places\n",{"type":993,"tag":1041,"props":5576,"children":5577},{"class":1043,"line":136},[5578,5583,5587,5591,5595],{"type":993,"tag":1041,"props":5579,"children":5580},{"style":1056},[5581],{"type":998,"value":5582},"final_total ",{"type":993,"tag":1041,"props":5584,"children":5585},{"style":1062},[5586],{"type":998,"value":1065},{"type":993,"tag":1041,"props":5588,"children":5589},{"style":1047},[5590],{"type":998,"value":5499},{"type":993,"tag":1041,"props":5592,"children":5593},{"style":1062},[5594],{"type":998,"value":5504},{"type":993,"tag":1041,"props":5596,"children":5597},{"style":1047},[5598],{"type":998,"value":5599},": Your code here (use round())\n",{"type":993,"tag":1041,"props":5601,"children":5602},{"class":1043,"line":146},[5603],{"type":993,"tag":1041,"props":5604,"children":5605},{"emptyLinePlaceholder":13},[5606],{"type":998,"value":1133},{"type":993,"tag":1041,"props":5608,"children":5609},{"class":1043,"line":155},[5610,5614,5618,5622,5627,5631,5636,5640,5644],{"type":993,"tag":1041,"props":5611,"children":5612},{"style":1068},[5613],{"type":998,"value":1141},{"type":993,"tag":1041,"props":5615,"children":5616},{"style":1056},[5617],{"type":998,"value":1146},{"type":993,"tag":1041,"props":5619,"children":5620},{"style":1062},[5621],{"type":998,"value":1151},{"type":993,"tag":1041,"props":5623,"children":5624},{"style":1154},[5625],{"type":998,"value":5626},"\"Meal: $",{"type":993,"tag":1041,"props":5628,"children":5629},{"style":1068},[5630],{"type":998,"value":1162},{"type":993,"tag":1041,"props":5632,"children":5633},{"style":1056},[5634],{"type":998,"value":5635},"meal_cost",{"type":993,"tag":1041,"props":5637,"children":5638},{"style":1068},[5639],{"type":998,"value":1172},{"type":993,"tag":1041,"props":5641,"children":5642},{"style":1154},[5643],{"type":998,"value":1538},{"type":993,"tag":1041,"props":5645,"children":5646},{"style":1056},[5647],{"type":998,"value":1201},{"type":993,"tag":1041,"props":5649,"children":5650},{"class":1043,"line":164},[5651,5655,5659,5663,5668,5672,5677,5682,5686,5690],{"type":993,"tag":1041,"props":5652,"children":5653},{"style":1068},[5654],{"type":998,"value":1141},{"type":993,"tag":1041,"props":5656,"children":5657},{"style":1056},[5658],{"type":998,"value":1146},{"type":993,"tag":1041,"props":5660,"children":5661},{"style":1062},[5662],{"type":998,"value":1151},{"type":993,"tag":1041,"props":5664,"children":5665},{"style":1154},[5666],{"type":998,"value":5667},"\"Tax: $",{"type":993,"tag":1041,"props":5669,"children":5670},{"style":1068},[5671],{"type":998,"value":1162},{"type":993,"tag":1041,"props":5673,"children":5674},{"style":1056},[5675],{"type":998,"value":5676},"tax",{"type":993,"tag":1041,"props":5678,"children":5679},{"style":1062},[5680],{"type":998,"value":5681},":.2f",{"type":993,"tag":1041,"props":5683,"children":5684},{"style":1068},[5685],{"type":998,"value":1172},{"type":993,"tag":1041,"props":5687,"children":5688},{"style":1154},[5689],{"type":998,"value":1538},{"type":993,"tag":1041,"props":5691,"children":5692},{"style":1056},[5693],{"type":998,"value":1201},{"type":993,"tag":1041,"props":5695,"children":5696},{"class":1043,"line":173},[5697,5701,5705,5709,5714,5718,5723,5727,5731,5735],{"type":993,"tag":1041,"props":5698,"children":5699},{"style":1068},[5700],{"type":998,"value":1141},{"type":993,"tag":1041,"props":5702,"children":5703},{"style":1056},[5704],{"type":998,"value":1146},{"type":993,"tag":1041,"props":5706,"children":5707},{"style":1062},[5708],{"type":998,"value":1151},{"type":993,"tag":1041,"props":5710,"children":5711},{"style":1154},[5712],{"type":998,"value":5713},"\"Tip: $",{"type":993,"tag":1041,"props":5715,"children":5716},{"style":1068},[5717],{"type":998,"value":1162},{"type":993,"tag":1041,"props":5719,"children":5720},{"style":1056},[5721],{"type":998,"value":5722},"tip",{"type":993,"tag":1041,"props":5724,"children":5725},{"style":1062},[5726],{"type":998,"value":5681},{"type":993,"tag":1041,"props":5728,"children":5729},{"style":1068},[5730],{"type":998,"value":1172},{"type":993,"tag":1041,"props":5732,"children":5733},{"style":1154},[5734],{"type":998,"value":1538},{"type":993,"tag":1041,"props":5736,"children":5737},{"style":1056},[5738],{"type":998,"value":1201},{"type":993,"tag":1041,"props":5740,"children":5741},{"class":1043,"line":182},[5742,5746,5750,5754,5759,5763,5768,5772,5776],{"type":993,"tag":1041,"props":5743,"children":5744},{"style":1068},[5745],{"type":998,"value":1141},{"type":993,"tag":1041,"props":5747,"children":5748},{"style":1056},[5749],{"type":998,"value":1146},{"type":993,"tag":1041,"props":5751,"children":5752},{"style":1062},[5753],{"type":998,"value":1151},{"type":993,"tag":1041,"props":5755,"children":5756},{"style":1154},[5757],{"type":998,"value":5758},"\"Total: $",{"type":993,"tag":1041,"props":5760,"children":5761},{"style":1068},[5762],{"type":998,"value":1162},{"type":993,"tag":1041,"props":5764,"children":5765},{"style":1056},[5766],{"type":998,"value":5767},"final_total",{"type":993,"tag":1041,"props":5769,"children":5770},{"style":1068},[5771],{"type":998,"value":1172},{"type":993,"tag":1041,"props":5773,"children":5774},{"style":1154},[5775],{"type":998,"value":1538},{"type":993,"tag":1041,"props":5777,"children":5778},{"style":1056},[5779],{"type":998,"value":1201},{"type":993,"tag":1621,"props":5781,"children":5783},{"id":5782},"solution-and-explanation",[5784],{"type":998,"value":5785},"Solution and Explanation 💡",{"type":993,"tag":5787,"props":5788,"children":5789},"details",{},[5790,5798,6203,6211],{"type":993,"tag":5791,"props":5792,"children":5795},"summary",{"className":5793},[5794],"cursor-pointer",[5796],{"type":998,"value":5797},"Click to see the complete solution",{"type":993,"tag":1027,"props":5799,"children":5800},{},[5801],{"type":993,"tag":1031,"props":5802,"children":5804},{"className":1033,"code":5803,"language":6,"meta":8,"style":8},"# Number Practice - Simple solution\n\n# Calculate a restaurant bill\nmeal_cost = 25.50\ntax_rate = 0.08\ntip_rate = 0.15\n\n# Calculate tax and tip\ntax = meal_cost * tax_rate       # 25.50 * 0.08 = 2.04\ntip = meal_cost * tip_rate       # 25.50 * 0.15 = 3.825\ntotal = meal_cost + tax + tip    # Add them all up\n\n# Round the total to 2 decimal places\nfinal_total = round(total, 2)    # Round to 2 decimal places\n\nprint(f\"Meal: ${meal_cost}\")\nprint(f\"Tax: ${tax:.2f}\")\nprint(f\"Tip: ${tip:.2f}\")\nprint(f\"Total: ${final_total}\")\n",[5805],{"type":993,"tag":1037,"props":5806,"children":5807},{"__ignoreMap":8},[5808,5816,5823,5830,5845,5860,5875,5882,5889,5919,5948,5986,5993,6000,6032,6039,6078,6121,6164],{"type":993,"tag":1041,"props":5809,"children":5810},{"class":1043,"line":12},[5811],{"type":993,"tag":1041,"props":5812,"children":5813},{"style":1047},[5814],{"type":998,"value":5815},"# Number Practice - Simple solution\n",{"type":993,"tag":1041,"props":5817,"children":5818},{"class":1043,"line":27},[5819],{"type":993,"tag":1041,"props":5820,"children":5821},{"emptyLinePlaceholder":13},[5822],{"type":998,"value":1133},{"type":993,"tag":1041,"props":5824,"children":5825},{"class":1043,"line":36},[5826],{"type":993,"tag":1041,"props":5827,"children":5828},{"style":1047},[5829],{"type":998,"value":5416},{"type":993,"tag":1041,"props":5831,"children":5832},{"class":1043,"line":45},[5833,5837,5841],{"type":993,"tag":1041,"props":5834,"children":5835},{"style":1056},[5836],{"type":998,"value":5424},{"type":993,"tag":1041,"props":5838,"children":5839},{"style":1062},[5840],{"type":998,"value":1065},{"type":993,"tag":1041,"props":5842,"children":5843},{"style":1068},[5844],{"type":998,"value":5433},{"type":993,"tag":1041,"props":5846,"children":5847},{"class":1043,"line":54},[5848,5852,5856],{"type":993,"tag":1041,"props":5849,"children":5850},{"style":1056},[5851],{"type":998,"value":5441},{"type":993,"tag":1041,"props":5853,"children":5854},{"style":1062},[5855],{"type":998,"value":1065},{"type":993,"tag":1041,"props":5857,"children":5858},{"style":1068},[5859],{"type":998,"value":5450},{"type":993,"tag":1041,"props":5861,"children":5862},{"class":1043,"line":63},[5863,5867,5871],{"type":993,"tag":1041,"props":5864,"children":5865},{"style":1056},[5866],{"type":998,"value":5458},{"type":993,"tag":1041,"props":5868,"children":5869},{"style":1062},[5870],{"type":998,"value":1065},{"type":993,"tag":1041,"props":5872,"children":5873},{"style":1068},[5874],{"type":998,"value":5467},{"type":993,"tag":1041,"props":5876,"children":5877},{"class":1043,"line":72},[5878],{"type":993,"tag":1041,"props":5879,"children":5880},{"emptyLinePlaceholder":13},[5881],{"type":998,"value":1133},{"type":993,"tag":1041,"props":5883,"children":5884},{"class":1043,"line":81},[5885],{"type":993,"tag":1041,"props":5886,"children":5887},{"style":1047},[5888],{"type":998,"value":5482},{"type":993,"tag":1041,"props":5890,"children":5891},{"class":1043,"line":91},[5892,5896,5900,5905,5909,5914],{"type":993,"tag":1041,"props":5893,"children":5894},{"style":1056},[5895],{"type":998,"value":5490},{"type":993,"tag":1041,"props":5897,"children":5898},{"style":1062},[5899],{"type":998,"value":1065},{"type":993,"tag":1041,"props":5901,"children":5902},{"style":1056},[5903],{"type":998,"value":5904}," meal_cost ",{"type":993,"tag":1041,"props":5906,"children":5907},{"style":1062},[5908],{"type":998,"value":3025},{"type":993,"tag":1041,"props":5910,"children":5911},{"style":1056},[5912],{"type":998,"value":5913}," tax_rate       ",{"type":993,"tag":1041,"props":5915,"children":5916},{"style":1047},[5917],{"type":998,"value":5918},"# 25.50 * 0.08 = 2.04\n",{"type":993,"tag":1041,"props":5920,"children":5921},{"class":1043,"line":100},[5922,5926,5930,5934,5938,5943],{"type":993,"tag":1041,"props":5923,"children":5924},{"style":1056},[5925],{"type":998,"value":5517},{"type":993,"tag":1041,"props":5927,"children":5928},{"style":1062},[5929],{"type":998,"value":1065},{"type":993,"tag":1041,"props":5931,"children":5932},{"style":1056},[5933],{"type":998,"value":5904},{"type":993,"tag":1041,"props":5935,"children":5936},{"style":1062},[5937],{"type":998,"value":3025},{"type":993,"tag":1041,"props":5939,"children":5940},{"style":1056},[5941],{"type":998,"value":5942}," tip_rate       ",{"type":993,"tag":1041,"props":5944,"children":5945},{"style":1047},[5946],{"type":998,"value":5947},"# 25.50 * 0.15 = 3.825\n",{"type":993,"tag":1041,"props":5949,"children":5950},{"class":1043,"line":109},[5951,5955,5959,5963,5967,5972,5976,5981],{"type":993,"tag":1041,"props":5952,"children":5953},{"style":1056},[5954],{"type":998,"value":5542},{"type":993,"tag":1041,"props":5956,"children":5957},{"style":1062},[5958],{"type":998,"value":1065},{"type":993,"tag":1041,"props":5960,"children":5961},{"style":1056},[5962],{"type":998,"value":5904},{"type":993,"tag":1041,"props":5964,"children":5965},{"style":1062},[5966],{"type":998,"value":1700},{"type":993,"tag":1041,"props":5968,"children":5969},{"style":1056},[5970],{"type":998,"value":5971}," tax ",{"type":993,"tag":1041,"props":5973,"children":5974},{"style":1062},[5975],{"type":998,"value":1700},{"type":993,"tag":1041,"props":5977,"children":5978},{"style":1056},[5979],{"type":998,"value":5980}," tip    ",{"type":993,"tag":1041,"props":5982,"children":5983},{"style":1047},[5984],{"type":998,"value":5985},"# Add them all up\n",{"type":993,"tag":1041,"props":5987,"children":5988},{"class":1043,"line":118},[5989],{"type":993,"tag":1041,"props":5990,"children":5991},{"emptyLinePlaceholder":13},[5992],{"type":998,"value":1133},{"type":993,"tag":1041,"props":5994,"children":5995},{"class":1043,"line":127},[5996],{"type":993,"tag":1041,"props":5997,"children":5998},{"style":1047},[5999],{"type":998,"value":5574},{"type":993,"tag":1041,"props":6001,"children":6002},{"class":1043,"line":136},[6003,6007,6011,6015,6020,6024,6028],{"type":993,"tag":1041,"props":6004,"children":6005},{"style":1056},[6006],{"type":998,"value":5582},{"type":993,"tag":1041,"props":6008,"children":6009},{"style":1062},[6010],{"type":998,"value":1065},{"type":993,"tag":1041,"props":6012,"children":6013},{"style":1068},[6014],{"type":998,"value":4595},{"type":993,"tag":1041,"props":6016,"children":6017},{"style":1056},[6018],{"type":998,"value":6019},"(total, ",{"type":993,"tag":1041,"props":6021,"children":6022},{"style":1068},[6023],{"type":998,"value":4605},{"type":993,"tag":1041,"props":6025,"children":6026},{"style":1056},[6027],{"type":998,"value":3212},{"type":993,"tag":1041,"props":6029,"children":6030},{"style":1047},[6031],{"type":998,"value":4614},{"type":993,"tag":1041,"props":6033,"children":6034},{"class":1043,"line":146},[6035],{"type":993,"tag":1041,"props":6036,"children":6037},{"emptyLinePlaceholder":13},[6038],{"type":998,"value":1133},{"type":993,"tag":1041,"props":6040,"children":6041},{"class":1043,"line":155},[6042,6046,6050,6054,6058,6062,6066,6070,6074],{"type":993,"tag":1041,"props":6043,"children":6044},{"style":1068},[6045],{"type":998,"value":1141},{"type":993,"tag":1041,"props":6047,"children":6048},{"style":1056},[6049],{"type":998,"value":1146},{"type":993,"tag":1041,"props":6051,"children":6052},{"style":1062},[6053],{"type":998,"value":1151},{"type":993,"tag":1041,"props":6055,"children":6056},{"style":1154},[6057],{"type":998,"value":5626},{"type":993,"tag":1041,"props":6059,"children":6060},{"style":1068},[6061],{"type":998,"value":1162},{"type":993,"tag":1041,"props":6063,"children":6064},{"style":1056},[6065],{"type":998,"value":5635},{"type":993,"tag":1041,"props":6067,"children":6068},{"style":1068},[6069],{"type":998,"value":1172},{"type":993,"tag":1041,"props":6071,"children":6072},{"style":1154},[6073],{"type":998,"value":1538},{"type":993,"tag":1041,"props":6075,"children":6076},{"style":1056},[6077],{"type":998,"value":1201},{"type":993,"tag":1041,"props":6079,"children":6080},{"class":1043,"line":164},[6081,6085,6089,6093,6097,6101,6105,6109,6113,6117],{"type":993,"tag":1041,"props":6082,"children":6083},{"style":1068},[6084],{"type":998,"value":1141},{"type":993,"tag":1041,"props":6086,"children":6087},{"style":1056},[6088],{"type":998,"value":1146},{"type":993,"tag":1041,"props":6090,"children":6091},{"style":1062},[6092],{"type":998,"value":1151},{"type":993,"tag":1041,"props":6094,"children":6095},{"style":1154},[6096],{"type":998,"value":5667},{"type":993,"tag":1041,"props":6098,"children":6099},{"style":1068},[6100],{"type":998,"value":1162},{"type":993,"tag":1041,"props":6102,"children":6103},{"style":1056},[6104],{"type":998,"value":5676},{"type":993,"tag":1041,"props":6106,"children":6107},{"style":1062},[6108],{"type":998,"value":5681},{"type":993,"tag":1041,"props":6110,"children":6111},{"style":1068},[6112],{"type":998,"value":1172},{"type":993,"tag":1041,"props":6114,"children":6115},{"style":1154},[6116],{"type":998,"value":1538},{"type":993,"tag":1041,"props":6118,"children":6119},{"style":1056},[6120],{"type":998,"value":1201},{"type":993,"tag":1041,"props":6122,"children":6123},{"class":1043,"line":173},[6124,6128,6132,6136,6140,6144,6148,6152,6156,6160],{"type":993,"tag":1041,"props":6125,"children":6126},{"style":1068},[6127],{"type":998,"value":1141},{"type":993,"tag":1041,"props":6129,"children":6130},{"style":1056},[6131],{"type":998,"value":1146},{"type":993,"tag":1041,"props":6133,"children":6134},{"style":1062},[6135],{"type":998,"value":1151},{"type":993,"tag":1041,"props":6137,"children":6138},{"style":1154},[6139],{"type":998,"value":5713},{"type":993,"tag":1041,"props":6141,"children":6142},{"style":1068},[6143],{"type":998,"value":1162},{"type":993,"tag":1041,"props":6145,"children":6146},{"style":1056},[6147],{"type":998,"value":5722},{"type":993,"tag":1041,"props":6149,"children":6150},{"style":1062},[6151],{"type":998,"value":5681},{"type":993,"tag":1041,"props":6153,"children":6154},{"style":1068},[6155],{"type":998,"value":1172},{"type":993,"tag":1041,"props":6157,"children":6158},{"style":1154},[6159],{"type":998,"value":1538},{"type":993,"tag":1041,"props":6161,"children":6162},{"style":1056},[6163],{"type":998,"value":1201},{"type":993,"tag":1041,"props":6165,"children":6166},{"class":1043,"line":182},[6167,6171,6175,6179,6183,6187,6191,6195,6199],{"type":993,"tag":1041,"props":6168,"children":6169},{"style":1068},[6170],{"type":998,"value":1141},{"type":993,"tag":1041,"props":6172,"children":6173},{"style":1056},[6174],{"type":998,"value":1146},{"type":993,"tag":1041,"props":6176,"children":6177},{"style":1062},[6178],{"type":998,"value":1151},{"type":993,"tag":1041,"props":6180,"children":6181},{"style":1154},[6182],{"type":998,"value":5758},{"type":993,"tag":1041,"props":6184,"children":6185},{"style":1068},[6186],{"type":998,"value":1162},{"type":993,"tag":1041,"props":6188,"children":6189},{"style":1056},[6190],{"type":998,"value":5767},{"type":993,"tag":1041,"props":6192,"children":6193},{"style":1068},[6194],{"type":998,"value":1172},{"type":993,"tag":1041,"props":6196,"children":6197},{"style":1154},[6198],{"type":998,"value":1538},{"type":993,"tag":1041,"props":6200,"children":6201},{"style":1056},[6202],{"type":998,"value":1201},{"type":993,"tag":1001,"props":6204,"children":6205},{},[6206],{"type":993,"tag":1012,"props":6207,"children":6208},{},[6209],{"type":998,"value":6210},"Key Learning Points:",{"type":993,"tag":2585,"props":6212,"children":6213},{},[6214,6233,6250,6267],{"type":993,"tag":2589,"props":6215,"children":6216},{},[6217,6219,6224,6226,6231],{"type":998,"value":6218},"📌 ",{"type":993,"tag":1012,"props":6220,"children":6221},{},[6222],{"type":998,"value":6223},"Multiplication",{"type":998,"value":6225},": Used ",{"type":993,"tag":1037,"props":6227,"children":6229},{"className":6228},[],[6230],{"type":998,"value":3025},{"type":998,"value":6232}," for calculating percentages",{"type":993,"tag":2589,"props":6234,"children":6235},{},[6236,6237,6242,6243,6248],{"type":998,"value":6218},{"type":993,"tag":1012,"props":6238,"children":6239},{},[6240],{"type":998,"value":6241},"Addition",{"type":998,"value":6225},{"type":993,"tag":1037,"props":6244,"children":6246},{"className":6245},[],[6247],{"type":998,"value":1700},{"type":998,"value":6249}," to add up the bill",{"type":993,"tag":2589,"props":6251,"children":6252},{},[6253,6254,6258,6259,6265],{"type":998,"value":6218},{"type":993,"tag":1012,"props":6255,"children":6256},{},[6257],{"type":998,"value":4324},{"type":998,"value":6225},{"type":993,"tag":1037,"props":6260,"children":6262},{"className":6261},[],[6263],{"type":998,"value":6264},"round(total, 2)",{"type":998,"value":6266}," for 2 decimal places",{"type":993,"tag":2589,"props":6268,"children":6269},{},[6270,6271,6276,6277,6282],{"type":998,"value":6218},{"type":993,"tag":1012,"props":6272,"children":6273},{},[6274],{"type":998,"value":6275},"F-string formatting",{"type":998,"value":6225},{"type":993,"tag":1037,"props":6278,"children":6280},{"className":6279},[],[6281],{"type":998,"value":5681},{"type":998,"value":6283}," to display money nicely",{"type":993,"tag":1320,"props":6285,"children":6287},{"id":6286},"number-formatting-for-display",[6288],{"type":998,"value":6289},"🎨 Number Formatting for Display",{"type":993,"tag":1001,"props":6291,"children":6292},{},[6293],{"type":998,"value":6294},"Making numbers look good in your output is important for user-friendly programs:",{"type":993,"tag":1027,"props":6296,"children":6297},{},[6298],{"type":993,"tag":1031,"props":6299,"children":6301},{"className":1033,"code":6300,"language":6,"meta":8,"style":8},"# Basic number formatting\nprice = 1234.567\npercentage = 0.8567\n\n# Format to specific decimal places\nformatted_price = f\"${price:.2f}\"      # 2 decimal places\nformatted_percent = f\"{percentage:.1%}\" # 1 decimal place as percent\n\nprint(f\"Price: {formatted_price}\")\nprint(f\"Success rate: {formatted_percent}\")\n\n# Large numbers with commas\npopulation = 7800000000\nformatted_pop = f\"{population:,}\"\nprint(f\"World population: {formatted_pop}\")\n",[6302],{"type":993,"tag":1037,"props":6303,"children":6304},{"__ignoreMap":8},[6305,6313,6329,6346,6353,6361,6408,6455,6462,6503,6544,6551,6559,6575,6616],{"type":993,"tag":1041,"props":6306,"children":6307},{"class":1043,"line":12},[6308],{"type":993,"tag":1041,"props":6309,"children":6310},{"style":1047},[6311],{"type":998,"value":6312},"# Basic number formatting\n",{"type":993,"tag":1041,"props":6314,"children":6315},{"class":1043,"line":27},[6316,6320,6324],{"type":993,"tag":1041,"props":6317,"children":6318},{"style":1056},[6319],{"type":998,"value":1084},{"type":993,"tag":1041,"props":6321,"children":6322},{"style":1062},[6323],{"type":998,"value":1065},{"type":993,"tag":1041,"props":6325,"children":6326},{"style":1068},[6327],{"type":998,"value":6328}," 1234.567\n",{"type":993,"tag":1041,"props":6330,"children":6331},{"class":1043,"line":36},[6332,6337,6341],{"type":993,"tag":1041,"props":6333,"children":6334},{"style":1056},[6335],{"type":998,"value":6336},"percentage ",{"type":993,"tag":1041,"props":6338,"children":6339},{"style":1062},[6340],{"type":998,"value":1065},{"type":993,"tag":1041,"props":6342,"children":6343},{"style":1068},[6344],{"type":998,"value":6345}," 0.8567\n",{"type":993,"tag":1041,"props":6347,"children":6348},{"class":1043,"line":45},[6349],{"type":993,"tag":1041,"props":6350,"children":6351},{"emptyLinePlaceholder":13},[6352],{"type":998,"value":1133},{"type":993,"tag":1041,"props":6354,"children":6355},{"class":1043,"line":54},[6356],{"type":993,"tag":1041,"props":6357,"children":6358},{"style":1047},[6359],{"type":998,"value":6360},"# Format to specific decimal places\n",{"type":993,"tag":1041,"props":6362,"children":6363},{"class":1043,"line":63},[6364,6369,6373,6378,6383,6387,6391,6395,6399,6403],{"type":993,"tag":1041,"props":6365,"children":6366},{"style":1056},[6367],{"type":998,"value":6368},"formatted_price ",{"type":993,"tag":1041,"props":6370,"children":6371},{"style":1062},[6372],{"type":998,"value":1065},{"type":993,"tag":1041,"props":6374,"children":6375},{"style":1062},[6376],{"type":998,"value":6377}," f",{"type":993,"tag":1041,"props":6379,"children":6380},{"style":1154},[6381],{"type":998,"value":6382},"\"$",{"type":993,"tag":1041,"props":6384,"children":6385},{"style":1068},[6386],{"type":998,"value":1162},{"type":993,"tag":1041,"props":6388,"children":6389},{"style":1056},[6390],{"type":998,"value":1230},{"type":993,"tag":1041,"props":6392,"children":6393},{"style":1062},[6394],{"type":998,"value":5681},{"type":993,"tag":1041,"props":6396,"children":6397},{"style":1068},[6398],{"type":998,"value":1172},{"type":993,"tag":1041,"props":6400,"children":6401},{"style":1154},[6402],{"type":998,"value":1538},{"type":993,"tag":1041,"props":6404,"children":6405},{"style":1047},[6406],{"type":998,"value":6407},"      # 2 decimal places\n",{"type":993,"tag":1041,"props":6409,"children":6410},{"class":1043,"line":72},[6411,6416,6420,6424,6428,6432,6437,6442,6446,6450],{"type":993,"tag":1041,"props":6412,"children":6413},{"style":1056},[6414],{"type":998,"value":6415},"formatted_percent ",{"type":993,"tag":1041,"props":6417,"children":6418},{"style":1062},[6419],{"type":998,"value":1065},{"type":993,"tag":1041,"props":6421,"children":6422},{"style":1062},[6423],{"type":998,"value":6377},{"type":993,"tag":1041,"props":6425,"children":6426},{"style":1154},[6427],{"type":998,"value":1538},{"type":993,"tag":1041,"props":6429,"children":6430},{"style":1068},[6431],{"type":998,"value":1162},{"type":993,"tag":1041,"props":6433,"children":6434},{"style":1056},[6435],{"type":998,"value":6436},"percentage",{"type":993,"tag":1041,"props":6438,"children":6439},{"style":1062},[6440],{"type":998,"value":6441},":.1%",{"type":993,"tag":1041,"props":6443,"children":6444},{"style":1068},[6445],{"type":998,"value":1172},{"type":993,"tag":1041,"props":6447,"children":6448},{"style":1154},[6449],{"type":998,"value":1538},{"type":993,"tag":1041,"props":6451,"children":6452},{"style":1047},[6453],{"type":998,"value":6454}," # 1 decimal place as percent\n",{"type":993,"tag":1041,"props":6456,"children":6457},{"class":1043,"line":81},[6458],{"type":993,"tag":1041,"props":6459,"children":6460},{"emptyLinePlaceholder":13},[6461],{"type":998,"value":1133},{"type":993,"tag":1041,"props":6463,"children":6464},{"class":1043,"line":91},[6465,6469,6473,6477,6482,6486,6491,6495,6499],{"type":993,"tag":1041,"props":6466,"children":6467},{"style":1068},[6468],{"type":998,"value":1141},{"type":993,"tag":1041,"props":6470,"children":6471},{"style":1056},[6472],{"type":998,"value":1146},{"type":993,"tag":1041,"props":6474,"children":6475},{"style":1062},[6476],{"type":998,"value":1151},{"type":993,"tag":1041,"props":6478,"children":6479},{"style":1154},[6480],{"type":998,"value":6481},"\"Price: ",{"type":993,"tag":1041,"props":6483,"children":6484},{"style":1068},[6485],{"type":998,"value":1162},{"type":993,"tag":1041,"props":6487,"children":6488},{"style":1056},[6489],{"type":998,"value":6490},"formatted_price",{"type":993,"tag":1041,"props":6492,"children":6493},{"style":1068},[6494],{"type":998,"value":1172},{"type":993,"tag":1041,"props":6496,"children":6497},{"style":1154},[6498],{"type":998,"value":1538},{"type":993,"tag":1041,"props":6500,"children":6501},{"style":1056},[6502],{"type":998,"value":1201},{"type":993,"tag":1041,"props":6504,"children":6505},{"class":1043,"line":100},[6506,6510,6514,6518,6523,6527,6532,6536,6540],{"type":993,"tag":1041,"props":6507,"children":6508},{"style":1068},[6509],{"type":998,"value":1141},{"type":993,"tag":1041,"props":6511,"children":6512},{"style":1056},[6513],{"type":998,"value":1146},{"type":993,"tag":1041,"props":6515,"children":6516},{"style":1062},[6517],{"type":998,"value":1151},{"type":993,"tag":1041,"props":6519,"children":6520},{"style":1154},[6521],{"type":998,"value":6522},"\"Success rate: ",{"type":993,"tag":1041,"props":6524,"children":6525},{"style":1068},[6526],{"type":998,"value":1162},{"type":993,"tag":1041,"props":6528,"children":6529},{"style":1056},[6530],{"type":998,"value":6531},"formatted_percent",{"type":993,"tag":1041,"props":6533,"children":6534},{"style":1068},[6535],{"type":998,"value":1172},{"type":993,"tag":1041,"props":6537,"children":6538},{"style":1154},[6539],{"type":998,"value":1538},{"type":993,"tag":1041,"props":6541,"children":6542},{"style":1056},[6543],{"type":998,"value":1201},{"type":993,"tag":1041,"props":6545,"children":6546},{"class":1043,"line":109},[6547],{"type":993,"tag":1041,"props":6548,"children":6549},{"emptyLinePlaceholder":13},[6550],{"type":998,"value":1133},{"type":993,"tag":1041,"props":6552,"children":6553},{"class":1043,"line":118},[6554],{"type":993,"tag":1041,"props":6555,"children":6556},{"style":1047},[6557],{"type":998,"value":6558},"# Large numbers with commas\n",{"type":993,"tag":1041,"props":6560,"children":6561},{"class":1043,"line":127},[6562,6566,6570],{"type":993,"tag":1041,"props":6563,"children":6564},{"style":1056},[6565],{"type":998,"value":1858},{"type":993,"tag":1041,"props":6567,"children":6568},{"style":1062},[6569],{"type":998,"value":1065},{"type":993,"tag":1041,"props":6571,"children":6572},{"style":1068},[6573],{"type":998,"value":6574}," 7800000000\n",{"type":993,"tag":1041,"props":6576,"children":6577},{"class":1043,"line":136},[6578,6583,6587,6591,6595,6599,6603,6607,6611],{"type":993,"tag":1041,"props":6579,"children":6580},{"style":1056},[6581],{"type":998,"value":6582},"formatted_pop ",{"type":993,"tag":1041,"props":6584,"children":6585},{"style":1062},[6586],{"type":998,"value":1065},{"type":993,"tag":1041,"props":6588,"children":6589},{"style":1062},[6590],{"type":998,"value":6377},{"type":993,"tag":1041,"props":6592,"children":6593},{"style":1154},[6594],{"type":998,"value":1538},{"type":993,"tag":1041,"props":6596,"children":6597},{"style":1068},[6598],{"type":998,"value":1162},{"type":993,"tag":1041,"props":6600,"children":6601},{"style":1056},[6602],{"type":998,"value":1901},{"type":993,"tag":1041,"props":6604,"children":6605},{"style":1062},[6606],{"type":998,"value":1906},{"type":993,"tag":1041,"props":6608,"children":6609},{"style":1068},[6610],{"type":998,"value":1172},{"type":993,"tag":1041,"props":6612,"children":6613},{"style":1154},[6614],{"type":998,"value":6615},"\"\n",{"type":993,"tag":1041,"props":6617,"children":6618},{"class":1043,"line":146},[6619,6623,6627,6631,6635,6639,6644,6648,6652],{"type":993,"tag":1041,"props":6620,"children":6621},{"style":1068},[6622],{"type":998,"value":1141},{"type":993,"tag":1041,"props":6624,"children":6625},{"style":1056},[6626],{"type":998,"value":1146},{"type":993,"tag":1041,"props":6628,"children":6629},{"style":1062},[6630],{"type":998,"value":1151},{"type":993,"tag":1041,"props":6632,"children":6633},{"style":1154},[6634],{"type":998,"value":1892},{"type":993,"tag":1041,"props":6636,"children":6637},{"style":1068},[6638],{"type":998,"value":1162},{"type":993,"tag":1041,"props":6640,"children":6641},{"style":1056},[6642],{"type":998,"value":6643},"formatted_pop",{"type":993,"tag":1041,"props":6645,"children":6646},{"style":1068},[6647],{"type":998,"value":1172},{"type":993,"tag":1041,"props":6649,"children":6650},{"style":1154},[6651],{"type":998,"value":1538},{"type":993,"tag":1041,"props":6653,"children":6654},{"style":1056},[6655],{"type":998,"value":1201},{"type":993,"tag":1320,"props":6657,"children":6659},{"id":6658},"common-number-patterns",[6660],{"type":998,"value":6661},"🔄 Common Number Patterns",{"type":993,"tag":1621,"props":6663,"children":6665},{"id":6664},"calculating-percentages",[6666],{"type":998,"value":6667},"Calculating Percentages",{"type":993,"tag":1027,"props":6669,"children":6670},{},[6671],{"type":993,"tag":1031,"props":6672,"children":6674},{"className":1033,"code":6673,"language":6,"meta":8,"style":8},"# Percentage calculations\ntotal_students = 150\npassed_students = 135\n\n# Calculate percentage\npass_rate = (passed_students / total_students) * 100\nprint(f\"Pass rate: {pass_rate:.1f}%\")\n\n# Calculate discount\noriginal_price = 100\ndiscount_percent = 15\ndiscount_amount = original_price * (discount_percent / 100)\nfinal_price = original_price - discount_amount\n\nprint(f\"Original: ${original_price}\")\nprint(f\"Discount: {discount_percent}% (${discount_amount})\")\nprint(f\"Final price: ${final_price}\")\n",[6675],{"type":993,"tag":1037,"props":6676,"children":6677},{"__ignoreMap":8},[6678,6686,6702,6719,6726,6734,6769,6815,6822,6830,6846,6862,6901,6926,6933,6974,7033],{"type":993,"tag":1041,"props":6679,"children":6680},{"class":1043,"line":12},[6681],{"type":993,"tag":1041,"props":6682,"children":6683},{"style":1047},[6684],{"type":998,"value":6685},"# Percentage calculations\n",{"type":993,"tag":1041,"props":6687,"children":6688},{"class":1043,"line":27},[6689,6694,6698],{"type":993,"tag":1041,"props":6690,"children":6691},{"style":1056},[6692],{"type":998,"value":6693},"total_students ",{"type":993,"tag":1041,"props":6695,"children":6696},{"style":1062},[6697],{"type":998,"value":1065},{"type":993,"tag":1041,"props":6699,"children":6700},{"style":1068},[6701],{"type":998,"value":1392},{"type":993,"tag":1041,"props":6703,"children":6704},{"class":1043,"line":36},[6705,6710,6714],{"type":993,"tag":1041,"props":6706,"children":6707},{"style":1056},[6708],{"type":998,"value":6709},"passed_students ",{"type":993,"tag":1041,"props":6711,"children":6712},{"style":1062},[6713],{"type":998,"value":1065},{"type":993,"tag":1041,"props":6715,"children":6716},{"style":1068},[6717],{"type":998,"value":6718}," 135\n",{"type":993,"tag":1041,"props":6720,"children":6721},{"class":1043,"line":45},[6722],{"type":993,"tag":1041,"props":6723,"children":6724},{"emptyLinePlaceholder":13},[6725],{"type":998,"value":1133},{"type":993,"tag":1041,"props":6727,"children":6728},{"class":1043,"line":54},[6729],{"type":993,"tag":1041,"props":6730,"children":6731},{"style":1047},[6732],{"type":998,"value":6733},"# Calculate percentage\n",{"type":993,"tag":1041,"props":6735,"children":6736},{"class":1043,"line":63},[6737,6742,6746,6751,6755,6760,6764],{"type":993,"tag":1041,"props":6738,"children":6739},{"style":1056},[6740],{"type":998,"value":6741},"pass_rate ",{"type":993,"tag":1041,"props":6743,"children":6744},{"style":1062},[6745],{"type":998,"value":1065},{"type":993,"tag":1041,"props":6747,"children":6748},{"style":1056},[6749],{"type":998,"value":6750}," (passed_students ",{"type":993,"tag":1041,"props":6752,"children":6753},{"style":1062},[6754],{"type":998,"value":3107},{"type":993,"tag":1041,"props":6756,"children":6757},{"style":1056},[6758],{"type":998,"value":6759}," total_students) ",{"type":993,"tag":1041,"props":6761,"children":6762},{"style":1062},[6763],{"type":998,"value":3025},{"type":993,"tag":1041,"props":6765,"children":6766},{"style":1068},[6767],{"type":998,"value":6768}," 100\n",{"type":993,"tag":1041,"props":6770,"children":6771},{"class":1043,"line":72},[6772,6776,6780,6784,6789,6793,6798,6802,6806,6811],{"type":993,"tag":1041,"props":6773,"children":6774},{"style":1068},[6775],{"type":998,"value":1141},{"type":993,"tag":1041,"props":6777,"children":6778},{"style":1056},[6779],{"type":998,"value":1146},{"type":993,"tag":1041,"props":6781,"children":6782},{"style":1062},[6783],{"type":998,"value":1151},{"type":993,"tag":1041,"props":6785,"children":6786},{"style":1154},[6787],{"type":998,"value":6788},"\"Pass rate: ",{"type":993,"tag":1041,"props":6790,"children":6791},{"style":1068},[6792],{"type":998,"value":1162},{"type":993,"tag":1041,"props":6794,"children":6795},{"style":1056},[6796],{"type":998,"value":6797},"pass_rate",{"type":993,"tag":1041,"props":6799,"children":6800},{"style":1062},[6801],{"type":998,"value":5357},{"type":993,"tag":1041,"props":6803,"children":6804},{"style":1068},[6805],{"type":998,"value":1172},{"type":993,"tag":1041,"props":6807,"children":6808},{"style":1154},[6809],{"type":998,"value":6810},"%\"",{"type":993,"tag":1041,"props":6812,"children":6813},{"style":1056},[6814],{"type":998,"value":1201},{"type":993,"tag":1041,"props":6816,"children":6817},{"class":1043,"line":81},[6818],{"type":993,"tag":1041,"props":6819,"children":6820},{"emptyLinePlaceholder":13},[6821],{"type":998,"value":1133},{"type":993,"tag":1041,"props":6823,"children":6824},{"class":1043,"line":91},[6825],{"type":993,"tag":1041,"props":6826,"children":6827},{"style":1047},[6828],{"type":998,"value":6829},"# Calculate discount\n",{"type":993,"tag":1041,"props":6831,"children":6832},{"class":1043,"line":100},[6833,6838,6842],{"type":993,"tag":1041,"props":6834,"children":6835},{"style":1056},[6836],{"type":998,"value":6837},"original_price ",{"type":993,"tag":1041,"props":6839,"children":6840},{"style":1062},[6841],{"type":998,"value":1065},{"type":993,"tag":1041,"props":6843,"children":6844},{"style":1068},[6845],{"type":998,"value":6768},{"type":993,"tag":1041,"props":6847,"children":6848},{"class":1043,"line":109},[6849,6854,6858],{"type":993,"tag":1041,"props":6850,"children":6851},{"style":1056},[6852],{"type":998,"value":6853},"discount_percent ",{"type":993,"tag":1041,"props":6855,"children":6856},{"style":1062},[6857],{"type":998,"value":1065},{"type":993,"tag":1041,"props":6859,"children":6860},{"style":1068},[6861],{"type":998,"value":1678},{"type":993,"tag":1041,"props":6863,"children":6864},{"class":1043,"line":118},[6865,6870,6874,6879,6883,6888,6892,6897],{"type":993,"tag":1041,"props":6866,"children":6867},{"style":1056},[6868],{"type":998,"value":6869},"discount_amount ",{"type":993,"tag":1041,"props":6871,"children":6872},{"style":1062},[6873],{"type":998,"value":1065},{"type":993,"tag":1041,"props":6875,"children":6876},{"style":1056},[6877],{"type":998,"value":6878}," original_price ",{"type":993,"tag":1041,"props":6880,"children":6881},{"style":1062},[6882],{"type":998,"value":3025},{"type":993,"tag":1041,"props":6884,"children":6885},{"style":1056},[6886],{"type":998,"value":6887}," (discount_percent ",{"type":993,"tag":1041,"props":6889,"children":6890},{"style":1062},[6891],{"type":998,"value":3107},{"type":993,"tag":1041,"props":6893,"children":6894},{"style":1068},[6895],{"type":998,"value":6896}," 100",{"type":993,"tag":1041,"props":6898,"children":6899},{"style":1056},[6900],{"type":998,"value":1201},{"type":993,"tag":1041,"props":6902,"children":6903},{"class":1043,"line":127},[6904,6909,6913,6917,6921],{"type":993,"tag":1041,"props":6905,"children":6906},{"style":1056},[6907],{"type":998,"value":6908},"final_price ",{"type":993,"tag":1041,"props":6910,"children":6911},{"style":1062},[6912],{"type":998,"value":1065},{"type":993,"tag":1041,"props":6914,"children":6915},{"style":1056},[6916],{"type":998,"value":6878},{"type":993,"tag":1041,"props":6918,"children":6919},{"style":1062},[6920],{"type":998,"value":2943},{"type":993,"tag":1041,"props":6922,"children":6923},{"style":1056},[6924],{"type":998,"value":6925}," discount_amount\n",{"type":993,"tag":1041,"props":6927,"children":6928},{"class":1043,"line":136},[6929],{"type":993,"tag":1041,"props":6930,"children":6931},{"emptyLinePlaceholder":13},[6932],{"type":998,"value":1133},{"type":993,"tag":1041,"props":6934,"children":6935},{"class":1043,"line":146},[6936,6940,6944,6948,6953,6957,6962,6966,6970],{"type":993,"tag":1041,"props":6937,"children":6938},{"style":1068},[6939],{"type":998,"value":1141},{"type":993,"tag":1041,"props":6941,"children":6942},{"style":1056},[6943],{"type":998,"value":1146},{"type":993,"tag":1041,"props":6945,"children":6946},{"style":1062},[6947],{"type":998,"value":1151},{"type":993,"tag":1041,"props":6949,"children":6950},{"style":1154},[6951],{"type":998,"value":6952},"\"Original: $",{"type":993,"tag":1041,"props":6954,"children":6955},{"style":1068},[6956],{"type":998,"value":1162},{"type":993,"tag":1041,"props":6958,"children":6959},{"style":1056},[6960],{"type":998,"value":6961},"original_price",{"type":993,"tag":1041,"props":6963,"children":6964},{"style":1068},[6965],{"type":998,"value":1172},{"type":993,"tag":1041,"props":6967,"children":6968},{"style":1154},[6969],{"type":998,"value":1538},{"type":993,"tag":1041,"props":6971,"children":6972},{"style":1056},[6973],{"type":998,"value":1201},{"type":993,"tag":1041,"props":6975,"children":6976},{"class":1043,"line":155},[6977,6981,6985,6989,6994,6998,7003,7007,7012,7016,7021,7025,7029],{"type":993,"tag":1041,"props":6978,"children":6979},{"style":1068},[6980],{"type":998,"value":1141},{"type":993,"tag":1041,"props":6982,"children":6983},{"style":1056},[6984],{"type":998,"value":1146},{"type":993,"tag":1041,"props":6986,"children":6987},{"style":1062},[6988],{"type":998,"value":1151},{"type":993,"tag":1041,"props":6990,"children":6991},{"style":1154},[6992],{"type":998,"value":6993},"\"Discount: ",{"type":993,"tag":1041,"props":6995,"children":6996},{"style":1068},[6997],{"type":998,"value":1162},{"type":993,"tag":1041,"props":6999,"children":7000},{"style":1056},[7001],{"type":998,"value":7002},"discount_percent",{"type":993,"tag":1041,"props":7004,"children":7005},{"style":1068},[7006],{"type":998,"value":1172},{"type":993,"tag":1041,"props":7008,"children":7009},{"style":1154},[7010],{"type":998,"value":7011},"% ($",{"type":993,"tag":1041,"props":7013,"children":7014},{"style":1068},[7015],{"type":998,"value":1162},{"type":993,"tag":1041,"props":7017,"children":7018},{"style":1056},[7019],{"type":998,"value":7020},"discount_amount",{"type":993,"tag":1041,"props":7022,"children":7023},{"style":1068},[7024],{"type":998,"value":1172},{"type":993,"tag":1041,"props":7026,"children":7027},{"style":1154},[7028],{"type":998,"value":1196},{"type":993,"tag":1041,"props":7030,"children":7031},{"style":1056},[7032],{"type":998,"value":1201},{"type":993,"tag":1041,"props":7034,"children":7035},{"class":1043,"line":164},[7036,7040,7044,7048,7053,7057,7062,7066,7070],{"type":993,"tag":1041,"props":7037,"children":7038},{"style":1068},[7039],{"type":998,"value":1141},{"type":993,"tag":1041,"props":7041,"children":7042},{"style":1056},[7043],{"type":998,"value":1146},{"type":993,"tag":1041,"props":7045,"children":7046},{"style":1062},[7047],{"type":998,"value":1151},{"type":993,"tag":1041,"props":7049,"children":7050},{"style":1154},[7051],{"type":998,"value":7052},"\"Final price: $",{"type":993,"tag":1041,"props":7054,"children":7055},{"style":1068},[7056],{"type":998,"value":1162},{"type":993,"tag":1041,"props":7058,"children":7059},{"style":1056},[7060],{"type":998,"value":7061},"final_price",{"type":993,"tag":1041,"props":7063,"children":7064},{"style":1068},[7065],{"type":998,"value":1172},{"type":993,"tag":1041,"props":7067,"children":7068},{"style":1154},[7069],{"type":998,"value":1538},{"type":993,"tag":1041,"props":7071,"children":7072},{"style":1056},[7073],{"type":998,"value":1201},{"type":993,"tag":1621,"props":7075,"children":7077},{"id":7076},"working-with-averages",[7078],{"type":998,"value":7079},"Working with Averages",{"type":993,"tag":1027,"props":7081,"children":7082},{},[7083],{"type":993,"tag":1031,"props":7084,"children":7086},{"className":1033,"code":7085,"language":6,"meta":8,"style":8},"# Average calculations\nmonthly_sales = [12000, 15000, 18000, 14000, 16000]\ntotal_sales = sum(monthly_sales)\naverage_sales = total_sales / len(monthly_sales)\n\nprint(f\"Monthly sales: {monthly_sales}\")\nprint(f\"Average monthly sales: ${average_sales:,.2f}\")\n",[7087],{"type":993,"tag":1037,"props":7088,"children":7089},{"__ignoreMap":8},[7090,7098,7159,7180,7209,7216,7257],{"type":993,"tag":1041,"props":7091,"children":7092},{"class":1043,"line":12},[7093],{"type":993,"tag":1041,"props":7094,"children":7095},{"style":1047},[7096],{"type":998,"value":7097},"# Average calculations\n",{"type":993,"tag":1041,"props":7099,"children":7100},{"class":1043,"line":27},[7101,7106,7110,7114,7119,7123,7128,7132,7137,7141,7146,7150,7155],{"type":993,"tag":1041,"props":7102,"children":7103},{"style":1056},[7104],{"type":998,"value":7105},"monthly_sales ",{"type":993,"tag":1041,"props":7107,"children":7108},{"style":1062},[7109],{"type":998,"value":1065},{"type":993,"tag":1041,"props":7111,"children":7112},{"style":1056},[7113],{"type":998,"value":4736},{"type":993,"tag":1041,"props":7115,"children":7116},{"style":1068},[7117],{"type":998,"value":7118},"12000",{"type":993,"tag":1041,"props":7120,"children":7121},{"style":1056},[7122],{"type":998,"value":2601},{"type":993,"tag":1041,"props":7124,"children":7125},{"style":1068},[7126],{"type":998,"value":7127},"15000",{"type":993,"tag":1041,"props":7129,"children":7130},{"style":1056},[7131],{"type":998,"value":2601},{"type":993,"tag":1041,"props":7133,"children":7134},{"style":1068},[7135],{"type":998,"value":7136},"18000",{"type":993,"tag":1041,"props":7138,"children":7139},{"style":1056},[7140],{"type":998,"value":2601},{"type":993,"tag":1041,"props":7142,"children":7143},{"style":1068},[7144],{"type":998,"value":7145},"14000",{"type":993,"tag":1041,"props":7147,"children":7148},{"style":1056},[7149],{"type":998,"value":2601},{"type":993,"tag":1041,"props":7151,"children":7152},{"style":1068},[7153],{"type":998,"value":7154},"16000",{"type":993,"tag":1041,"props":7156,"children":7157},{"style":1056},[7158],{"type":998,"value":4782},{"type":993,"tag":1041,"props":7160,"children":7161},{"class":1043,"line":36},[7162,7167,7171,7175],{"type":993,"tag":1041,"props":7163,"children":7164},{"style":1056},[7165],{"type":998,"value":7166},"total_sales ",{"type":993,"tag":1041,"props":7168,"children":7169},{"style":1062},[7170],{"type":998,"value":1065},{"type":993,"tag":1041,"props":7172,"children":7173},{"style":1068},[7174],{"type":998,"value":5199},{"type":993,"tag":1041,"props":7176,"children":7177},{"style":1056},[7178],{"type":998,"value":7179},"(monthly_sales)\n",{"type":993,"tag":1041,"props":7181,"children":7182},{"class":1043,"line":45},[7183,7188,7192,7197,7201,7205],{"type":993,"tag":1041,"props":7184,"children":7185},{"style":1056},[7186],{"type":998,"value":7187},"average_sales ",{"type":993,"tag":1041,"props":7189,"children":7190},{"style":1062},[7191],{"type":998,"value":1065},{"type":993,"tag":1041,"props":7193,"children":7194},{"style":1056},[7195],{"type":998,"value":7196}," total_sales ",{"type":993,"tag":1041,"props":7198,"children":7199},{"style":1062},[7200],{"type":998,"value":3107},{"type":993,"tag":1041,"props":7202,"children":7203},{"style":1068},[7204],{"type":998,"value":5230},{"type":993,"tag":1041,"props":7206,"children":7207},{"style":1056},[7208],{"type":998,"value":7179},{"type":993,"tag":1041,"props":7210,"children":7211},{"class":1043,"line":54},[7212],{"type":993,"tag":1041,"props":7213,"children":7214},{"emptyLinePlaceholder":13},[7215],{"type":998,"value":1133},{"type":993,"tag":1041,"props":7217,"children":7218},{"class":1043,"line":63},[7219,7223,7227,7231,7236,7240,7245,7249,7253],{"type":993,"tag":1041,"props":7220,"children":7221},{"style":1068},[7222],{"type":998,"value":1141},{"type":993,"tag":1041,"props":7224,"children":7225},{"style":1056},[7226],{"type":998,"value":1146},{"type":993,"tag":1041,"props":7228,"children":7229},{"style":1062},[7230],{"type":998,"value":1151},{"type":993,"tag":1041,"props":7232,"children":7233},{"style":1154},[7234],{"type":998,"value":7235},"\"Monthly sales: ",{"type":993,"tag":1041,"props":7237,"children":7238},{"style":1068},[7239],{"type":998,"value":1162},{"type":993,"tag":1041,"props":7241,"children":7242},{"style":1056},[7243],{"type":998,"value":7244},"monthly_sales",{"type":993,"tag":1041,"props":7246,"children":7247},{"style":1068},[7248],{"type":998,"value":1172},{"type":993,"tag":1041,"props":7250,"children":7251},{"style":1154},[7252],{"type":998,"value":1538},{"type":993,"tag":1041,"props":7254,"children":7255},{"style":1056},[7256],{"type":998,"value":1201},{"type":993,"tag":1041,"props":7258,"children":7259},{"class":1043,"line":72},[7260,7264,7268,7272,7277,7281,7286,7291,7295,7299],{"type":993,"tag":1041,"props":7261,"children":7262},{"style":1068},[7263],{"type":998,"value":1141},{"type":993,"tag":1041,"props":7265,"children":7266},{"style":1056},[7267],{"type":998,"value":1146},{"type":993,"tag":1041,"props":7269,"children":7270},{"style":1062},[7271],{"type":998,"value":1151},{"type":993,"tag":1041,"props":7273,"children":7274},{"style":1154},[7275],{"type":998,"value":7276},"\"Average monthly sales: $",{"type":993,"tag":1041,"props":7278,"children":7279},{"style":1068},[7280],{"type":998,"value":1162},{"type":993,"tag":1041,"props":7282,"children":7283},{"style":1056},[7284],{"type":998,"value":7285},"average_sales",{"type":993,"tag":1041,"props":7287,"children":7288},{"style":1062},[7289],{"type":998,"value":7290},":,.2f",{"type":993,"tag":1041,"props":7292,"children":7293},{"style":1068},[7294],{"type":998,"value":1172},{"type":993,"tag":1041,"props":7296,"children":7297},{"style":1154},[7298],{"type":998,"value":1538},{"type":993,"tag":1041,"props":7300,"children":7301},{"style":1056},[7302],{"type":998,"value":1201},{"type":993,"tag":1621,"props":7304,"children":7306},{"id":7305},"temperature-conversions",[7307],{"type":998,"value":7308},"Temperature Conversions",{"type":993,"tag":1027,"props":7310,"children":7311},{},[7312],{"type":993,"tag":1031,"props":7313,"children":7315},{"className":1033,"code":7314,"language":6,"meta":8,"style":8},"# Temperature conversion formulas\ncelsius = 25\nfahrenheit = (celsius * 9/5) + 32\nkelvin = celsius + 273.15\n\nprint(f\"{celsius}°C = {fahrenheit}°F = {kelvin}K\")\n\n# Convert Fahrenheit to Celsius\nfahrenheit_temp = 77\ncelsius_temp = (fahrenheit_temp - 32) * 5/9\nprint(f\"{fahrenheit_temp}°F = {celsius_temp:.1f}°C\")\n",[7316],{"type":993,"tag":1037,"props":7317,"children":7318},{"__ignoreMap":8},[7319,7327,7344,7392,7418,7425,7502,7509,7517,7534,7581],{"type":993,"tag":1041,"props":7320,"children":7321},{"class":1043,"line":12},[7322],{"type":993,"tag":1041,"props":7323,"children":7324},{"style":1047},[7325],{"type":998,"value":7326},"# Temperature conversion formulas\n",{"type":993,"tag":1041,"props":7328,"children":7329},{"class":1043,"line":27},[7330,7335,7339],{"type":993,"tag":1041,"props":7331,"children":7332},{"style":1056},[7333],{"type":998,"value":7334},"celsius ",{"type":993,"tag":1041,"props":7336,"children":7337},{"style":1062},[7338],{"type":998,"value":1065},{"type":993,"tag":1041,"props":7340,"children":7341},{"style":1068},[7342],{"type":998,"value":7343}," 25\n",{"type":993,"tag":1041,"props":7345,"children":7346},{"class":1043,"line":36},[7347,7352,7356,7361,7365,7370,7374,7378,7383,7387],{"type":993,"tag":1041,"props":7348,"children":7349},{"style":1056},[7350],{"type":998,"value":7351},"fahrenheit ",{"type":993,"tag":1041,"props":7353,"children":7354},{"style":1062},[7355],{"type":998,"value":1065},{"type":993,"tag":1041,"props":7357,"children":7358},{"style":1056},[7359],{"type":998,"value":7360}," (celsius ",{"type":993,"tag":1041,"props":7362,"children":7363},{"style":1062},[7364],{"type":998,"value":3025},{"type":993,"tag":1041,"props":7366,"children":7367},{"style":1068},[7368],{"type":998,"value":7369}," 9",{"type":993,"tag":1041,"props":7371,"children":7372},{"style":1062},[7373],{"type":998,"value":3107},{"type":993,"tag":1041,"props":7375,"children":7376},{"style":1068},[7377],{"type":998,"value":1120},{"type":993,"tag":1041,"props":7379,"children":7380},{"style":1056},[7381],{"type":998,"value":7382},") ",{"type":993,"tag":1041,"props":7384,"children":7385},{"style":1062},[7386],{"type":998,"value":1700},{"type":993,"tag":1041,"props":7388,"children":7389},{"style":1068},[7390],{"type":998,"value":7391}," 32\n",{"type":993,"tag":1041,"props":7393,"children":7394},{"class":1043,"line":45},[7395,7400,7404,7409,7413],{"type":993,"tag":1041,"props":7396,"children":7397},{"style":1056},[7398],{"type":998,"value":7399},"kelvin ",{"type":993,"tag":1041,"props":7401,"children":7402},{"style":1062},[7403],{"type":998,"value":1065},{"type":993,"tag":1041,"props":7405,"children":7406},{"style":1056},[7407],{"type":998,"value":7408}," celsius ",{"type":993,"tag":1041,"props":7410,"children":7411},{"style":1062},[7412],{"type":998,"value":1700},{"type":993,"tag":1041,"props":7414,"children":7415},{"style":1068},[7416],{"type":998,"value":7417}," 273.15\n",{"type":993,"tag":1041,"props":7419,"children":7420},{"class":1043,"line":54},[7421],{"type":993,"tag":1041,"props":7422,"children":7423},{"emptyLinePlaceholder":13},[7424],{"type":998,"value":1133},{"type":993,"tag":1041,"props":7426,"children":7427},{"class":1043,"line":63},[7428,7432,7436,7440,7444,7448,7453,7457,7462,7466,7471,7475,7480,7484,7489,7493,7498],{"type":993,"tag":1041,"props":7429,"children":7430},{"style":1068},[7431],{"type":998,"value":1141},{"type":993,"tag":1041,"props":7433,"children":7434},{"style":1056},[7435],{"type":998,"value":1146},{"type":993,"tag":1041,"props":7437,"children":7438},{"style":1062},[7439],{"type":998,"value":1151},{"type":993,"tag":1041,"props":7441,"children":7442},{"style":1154},[7443],{"type":998,"value":1538},{"type":993,"tag":1041,"props":7445,"children":7446},{"style":1068},[7447],{"type":998,"value":1162},{"type":993,"tag":1041,"props":7449,"children":7450},{"style":1056},[7451],{"type":998,"value":7452},"celsius",{"type":993,"tag":1041,"props":7454,"children":7455},{"style":1068},[7456],{"type":998,"value":1172},{"type":993,"tag":1041,"props":7458,"children":7459},{"style":1154},[7460],{"type":998,"value":7461},"°C = ",{"type":993,"tag":1041,"props":7463,"children":7464},{"style":1068},[7465],{"type":998,"value":1162},{"type":993,"tag":1041,"props":7467,"children":7468},{"style":1056},[7469],{"type":998,"value":7470},"fahrenheit",{"type":993,"tag":1041,"props":7472,"children":7473},{"style":1068},[7474],{"type":998,"value":1172},{"type":993,"tag":1041,"props":7476,"children":7477},{"style":1154},[7478],{"type":998,"value":7479},"°F = ",{"type":993,"tag":1041,"props":7481,"children":7482},{"style":1068},[7483],{"type":998,"value":1162},{"type":993,"tag":1041,"props":7485,"children":7486},{"style":1056},[7487],{"type":998,"value":7488},"kelvin",{"type":993,"tag":1041,"props":7490,"children":7491},{"style":1068},[7492],{"type":998,"value":1172},{"type":993,"tag":1041,"props":7494,"children":7495},{"style":1154},[7496],{"type":998,"value":7497},"K\"",{"type":993,"tag":1041,"props":7499,"children":7500},{"style":1056},[7501],{"type":998,"value":1201},{"type":993,"tag":1041,"props":7503,"children":7504},{"class":1043,"line":72},[7505],{"type":993,"tag":1041,"props":7506,"children":7507},{"emptyLinePlaceholder":13},[7508],{"type":998,"value":1133},{"type":993,"tag":1041,"props":7510,"children":7511},{"class":1043,"line":81},[7512],{"type":993,"tag":1041,"props":7513,"children":7514},{"style":1047},[7515],{"type":998,"value":7516},"# Convert Fahrenheit to Celsius\n",{"type":993,"tag":1041,"props":7518,"children":7519},{"class":1043,"line":91},[7520,7525,7529],{"type":993,"tag":1041,"props":7521,"children":7522},{"style":1056},[7523],{"type":998,"value":7524},"fahrenheit_temp ",{"type":993,"tag":1041,"props":7526,"children":7527},{"style":1062},[7528],{"type":998,"value":1065},{"type":993,"tag":1041,"props":7530,"children":7531},{"style":1068},[7532],{"type":998,"value":7533}," 77\n",{"type":993,"tag":1041,"props":7535,"children":7536},{"class":1043,"line":100},[7537,7542,7546,7551,7555,7560,7564,7568,7572,7576],{"type":993,"tag":1041,"props":7538,"children":7539},{"style":1056},[7540],{"type":998,"value":7541},"celsius_temp ",{"type":993,"tag":1041,"props":7543,"children":7544},{"style":1062},[7545],{"type":998,"value":1065},{"type":993,"tag":1041,"props":7547,"children":7548},{"style":1056},[7549],{"type":998,"value":7550}," (fahrenheit_temp ",{"type":993,"tag":1041,"props":7552,"children":7553},{"style":1062},[7554],{"type":998,"value":2943},{"type":993,"tag":1041,"props":7556,"children":7557},{"style":1068},[7558],{"type":998,"value":7559}," 32",{"type":993,"tag":1041,"props":7561,"children":7562},{"style":1056},[7563],{"type":998,"value":7382},{"type":993,"tag":1041,"props":7565,"children":7566},{"style":1062},[7567],{"type":998,"value":3025},{"type":993,"tag":1041,"props":7569,"children":7570},{"style":1068},[7571],{"type":998,"value":2331},{"type":993,"tag":1041,"props":7573,"children":7574},{"style":1062},[7575],{"type":998,"value":3107},{"type":993,"tag":1041,"props":7577,"children":7578},{"style":1068},[7579],{"type":998,"value":7580},"9\n",{"type":993,"tag":1041,"props":7582,"children":7583},{"class":1043,"line":109},[7584,7588,7592,7596,7600,7604,7609,7613,7617,7621,7626,7630,7634,7638],{"type":993,"tag":1041,"props":7585,"children":7586},{"style":1068},[7587],{"type":998,"value":1141},{"type":993,"tag":1041,"props":7589,"children":7590},{"style":1056},[7591],{"type":998,"value":1146},{"type":993,"tag":1041,"props":7593,"children":7594},{"style":1062},[7595],{"type":998,"value":1151},{"type":993,"tag":1041,"props":7597,"children":7598},{"style":1154},[7599],{"type":998,"value":1538},{"type":993,"tag":1041,"props":7601,"children":7602},{"style":1068},[7603],{"type":998,"value":1162},{"type":993,"tag":1041,"props":7605,"children":7606},{"style":1056},[7607],{"type":998,"value":7608},"fahrenheit_temp",{"type":993,"tag":1041,"props":7610,"children":7611},{"style":1068},[7612],{"type":998,"value":1172},{"type":993,"tag":1041,"props":7614,"children":7615},{"style":1154},[7616],{"type":998,"value":7479},{"type":993,"tag":1041,"props":7618,"children":7619},{"style":1068},[7620],{"type":998,"value":1162},{"type":993,"tag":1041,"props":7622,"children":7623},{"style":1056},[7624],{"type":998,"value":7625},"celsius_temp",{"type":993,"tag":1041,"props":7627,"children":7628},{"style":1062},[7629],{"type":998,"value":5357},{"type":993,"tag":1041,"props":7631,"children":7632},{"style":1068},[7633],{"type":998,"value":1172},{"type":993,"tag":1041,"props":7635,"children":7636},{"style":1154},[7637],{"type":998,"value":4502},{"type":993,"tag":1041,"props":7639,"children":7640},{"style":1056},[7641],{"type":998,"value":1201},{"type":993,"tag":1320,"props":7643,"children":7645},{"id":7644},"essential-number-functions-reference",[7646],{"type":998,"value":7647},"📖 Essential Number Functions Reference",{"type":993,"tag":7649,"props":7650,"children":7651},"table",{},[7652,7681],{"type":993,"tag":7653,"props":7654,"children":7655},"thead",{},[7656],{"type":993,"tag":7657,"props":7658,"children":7659},"tr",{},[7660,7666,7671,7676],{"type":993,"tag":7661,"props":7662,"children":7663},"th",{},[7664],{"type":998,"value":7665},"Function",{"type":993,"tag":7661,"props":7667,"children":7668},{},[7669],{"type":998,"value":7670},"Purpose",{"type":993,"tag":7661,"props":7672,"children":7673},{},[7674],{"type":998,"value":7675},"Example",{"type":993,"tag":7661,"props":7677,"children":7678},{},[7679],{"type":998,"value":7680},"Result",{"type":993,"tag":7682,"props":7683,"children":7684},"tbody",{},[7685,7720,7755,7789,7823,7857,7892,7926],{"type":993,"tag":7657,"props":7686,"children":7687},{},[7688,7698,7703,7712],{"type":993,"tag":7689,"props":7690,"children":7691},"td",{},[7692],{"type":993,"tag":1037,"props":7693,"children":7695},{"className":7694},[],[7696],{"type":998,"value":7697},"abs(x)",{"type":993,"tag":7689,"props":7699,"children":7700},{},[7701],{"type":998,"value":7702},"Absolute value (removes negative)",{"type":993,"tag":7689,"props":7704,"children":7705},{},[7706],{"type":993,"tag":1037,"props":7707,"children":7709},{"className":7708},[],[7710],{"type":998,"value":7711},"abs(-5)",{"type":993,"tag":7689,"props":7713,"children":7714},{},[7715],{"type":993,"tag":1037,"props":7716,"children":7718},{"className":7717},[],[7719],{"type":998,"value":1120},{"type":993,"tag":7657,"props":7721,"children":7722},{},[7723,7732,7737,7746],{"type":993,"tag":7689,"props":7724,"children":7725},{},[7726],{"type":993,"tag":1037,"props":7727,"children":7729},{"className":7728},[],[7730],{"type":998,"value":7731},"round(x)",{"type":993,"tag":7689,"props":7733,"children":7734},{},[7735],{"type":998,"value":7736},"Round to nearest integer",{"type":993,"tag":7689,"props":7738,"children":7739},{},[7740],{"type":993,"tag":1037,"props":7741,"children":7743},{"className":7742},[],[7744],{"type":998,"value":7745},"round(3.7)",{"type":993,"tag":7689,"props":7747,"children":7748},{},[7749],{"type":993,"tag":1037,"props":7750,"children":7752},{"className":7751},[],[7753],{"type":998,"value":7754},"4",{"type":993,"tag":7657,"props":7756,"children":7757},{},[7758,7767,7772,7781],{"type":993,"tag":7689,"props":7759,"children":7760},{},[7761],{"type":993,"tag":1037,"props":7762,"children":7764},{"className":7763},[],[7765],{"type":998,"value":7766},"round(x, n)",{"type":993,"tag":7689,"props":7768,"children":7769},{},[7770],{"type":998,"value":7771},"Round to n decimal places",{"type":993,"tag":7689,"props":7773,"children":7774},{},[7775],{"type":993,"tag":1037,"props":7776,"children":7778},{"className":7777},[],[7779],{"type":998,"value":7780},"round(3.14159, 2)",{"type":993,"tag":7689,"props":7782,"children":7783},{},[7784],{"type":993,"tag":1037,"props":7785,"children":7787},{"className":7786},[],[7788],{"type":998,"value":2658},{"type":993,"tag":7657,"props":7790,"children":7791},{},[7792,7801,7806,7815],{"type":993,"tag":7689,"props":7793,"children":7794},{},[7795],{"type":993,"tag":1037,"props":7796,"children":7798},{"className":7797},[],[7799],{"type":998,"value":7800},"max(...)",{"type":993,"tag":7689,"props":7802,"children":7803},{},[7804],{"type":998,"value":7805},"Find largest number",{"type":993,"tag":7689,"props":7807,"children":7808},{},[7809],{"type":993,"tag":1037,"props":7810,"children":7812},{"className":7811},[],[7813],{"type":998,"value":7814},"max(5, 8, 3)",{"type":993,"tag":7689,"props":7816,"children":7817},{},[7818],{"type":993,"tag":1037,"props":7819,"children":7821},{"className":7820},[],[7822],{"type":998,"value":5012},{"type":993,"tag":7657,"props":7824,"children":7825},{},[7826,7835,7840,7849],{"type":993,"tag":7689,"props":7827,"children":7828},{},[7829],{"type":993,"tag":1037,"props":7830,"children":7832},{"className":7831},[],[7833],{"type":998,"value":7834},"min(...)",{"type":993,"tag":7689,"props":7836,"children":7837},{},[7838],{"type":998,"value":7839},"Find smallest number",{"type":993,"tag":7689,"props":7841,"children":7842},{},[7843],{"type":993,"tag":1037,"props":7844,"children":7846},{"className":7845},[],[7847],{"type":998,"value":7848},"min(5, 8, 3)",{"type":993,"tag":7689,"props":7850,"children":7851},{},[7852],{"type":993,"tag":1037,"props":7853,"children":7855},{"className":7854},[],[7856],{"type":998,"value":5021},{"type":993,"tag":7657,"props":7858,"children":7859},{},[7860,7869,7874,7883],{"type":993,"tag":7689,"props":7861,"children":7862},{},[7863],{"type":993,"tag":1037,"props":7864,"children":7866},{"className":7865},[],[7867],{"type":998,"value":7868},"sum(list)",{"type":993,"tag":7689,"props":7870,"children":7871},{},[7872],{"type":998,"value":7873},"Sum numbers in a list",{"type":993,"tag":7689,"props":7875,"children":7876},{},[7877],{"type":993,"tag":1037,"props":7878,"children":7880},{"className":7879},[],[7881],{"type":998,"value":7882},"sum([1, 2, 3, 4])",{"type":993,"tag":7689,"props":7884,"children":7885},{},[7886],{"type":993,"tag":1037,"props":7887,"children":7889},{"className":7888},[],[7890],{"type":998,"value":7891},"10",{"type":993,"tag":7657,"props":7893,"children":7894},{},[7895,7904,7909,7918],{"type":993,"tag":7689,"props":7896,"children":7897},{},[7898],{"type":993,"tag":1037,"props":7899,"children":7901},{"className":7900},[],[7902],{"type":998,"value":7903},"int(x)",{"type":993,"tag":7689,"props":7905,"children":7906},{},[7907],{"type":998,"value":7908},"Convert to integer (truncate)",{"type":993,"tag":7689,"props":7910,"children":7911},{},[7912],{"type":993,"tag":1037,"props":7913,"children":7915},{"className":7914},[],[7916],{"type":998,"value":7917},"int(3.7)",{"type":993,"tag":7689,"props":7919,"children":7920},{},[7921],{"type":993,"tag":1037,"props":7922,"children":7924},{"className":7923},[],[7925],{"type":998,"value":5021},{"type":993,"tag":7657,"props":7927,"children":7928},{},[7929,7938,7943,7951],{"type":993,"tag":7689,"props":7930,"children":7931},{},[7932],{"type":993,"tag":1037,"props":7933,"children":7935},{"className":7934},[],[7936],{"type":998,"value":7937},"float(x)",{"type":993,"tag":7689,"props":7939,"children":7940},{},[7941],{"type":998,"value":7942},"Convert to float",{"type":993,"tag":7689,"props":7944,"children":7945},{},[7946],{"type":993,"tag":1037,"props":7947,"children":7949},{"className":7948},[],[7950],{"type":998,"value":4310},{"type":993,"tag":7689,"props":7952,"children":7953},{},[7954],{"type":993,"tag":1037,"props":7955,"children":7957},{"className":7956},[],[7958],{"type":998,"value":1945},{"type":993,"tag":1320,"props":7960,"children":7962},{"id":7961},"key-number-concepts-summary",[7963],{"type":998,"value":7964},"📋 Key Number Concepts Summary",{"type":993,"tag":7649,"props":7966,"children":7967},{},[7968,7988],{"type":993,"tag":7653,"props":7969,"children":7970},{},[7971],{"type":993,"tag":7657,"props":7972,"children":7973},{},[7974,7979,7983],{"type":993,"tag":7661,"props":7975,"children":7976},{},[7977],{"type":998,"value":7978},"Concept",{"type":993,"tag":7661,"props":7980,"children":7981},{},[7982],{"type":998,"value":7675},{"type":993,"tag":7661,"props":7984,"children":7985},{},[7986],{"type":998,"value":7987},"Important Because",{"type":993,"tag":7682,"props":7989,"children":7990},{},[7991,8022,8052,8087,8124,8154],{"type":993,"tag":7657,"props":7992,"children":7993},{},[7994,8002,8017],{"type":993,"tag":7689,"props":7995,"children":7996},{},[7997],{"type":993,"tag":1012,"props":7998,"children":7999},{},[8000],{"type":998,"value":8001},"int vs float",{"type":993,"tag":7689,"props":8003,"children":8004},{},[8005,8010,8012],{"type":993,"tag":1037,"props":8006,"children":8008},{"className":8007},[],[8009],{"type":998,"value":1120},{"type":998,"value":8011}," vs ",{"type":993,"tag":1037,"props":8013,"children":8015},{"className":8014},[],[8016],{"type":998,"value":2294},{"type":993,"tag":7689,"props":8018,"children":8019},{},[8020],{"type":998,"value":8021},"Different types for different uses",{"type":993,"tag":7657,"props":8023,"children":8024},{},[8025,8033,8047],{"type":993,"tag":7689,"props":8026,"children":8027},{},[8028],{"type":993,"tag":1012,"props":8029,"children":8030},{},[8031],{"type":998,"value":8032},"Division types",{"type":993,"tag":7689,"props":8034,"children":8035},{},[8036,8041,8042],{"type":993,"tag":1037,"props":8037,"children":8039},{"className":8038},[],[8040],{"type":998,"value":3107},{"type":998,"value":8011},{"type":993,"tag":1037,"props":8043,"children":8045},{"className":8044},[],[8046],{"type":998,"value":3195},{"type":993,"tag":7689,"props":8048,"children":8049},{},[8050],{"type":998,"value":8051},"Regular vs integer division",{"type":993,"tag":7657,"props":8053,"children":8054},{},[8055,8063,8077],{"type":993,"tag":7689,"props":8056,"children":8057},{},[8058],{"type":993,"tag":1012,"props":8059,"children":8060},{},[8061],{"type":998,"value":8062},"Truncation",{"type":993,"tag":7689,"props":8064,"children":8065},{},[8066,8071,8072],{"type":993,"tag":1037,"props":8067,"children":8069},{"className":8068},[],[8070],{"type":998,"value":4248},{"type":998,"value":4250},{"type":993,"tag":1037,"props":8073,"children":8075},{"className":8074},[],[8076],{"type":998,"value":4256},{"type":993,"tag":7689,"props":8078,"children":8079},{},[8080,8085],{"type":993,"tag":1037,"props":8081,"children":8083},{"className":8082},[],[8084],{"type":998,"value":4379},{"type":998,"value":8086}," removes decimals, doesn't round",{"type":993,"tag":7657,"props":8088,"children":8089},{},[8090,8098,8112],{"type":993,"tag":7689,"props":8091,"children":8092},{},[8093],{"type":993,"tag":1012,"props":8094,"children":8095},{},[8096],{"type":998,"value":8097},"Rounding",{"type":993,"tag":7689,"props":8099,"children":8100},{},[8101,8106,8107],{"type":993,"tag":1037,"props":8102,"children":8104},{"className":8103},[],[8105],{"type":998,"value":4342},{"type":998,"value":4250},{"type":993,"tag":1037,"props":8108,"children":8110},{"className":8109},[],[8111],{"type":998,"value":4349},{"type":993,"tag":7689,"props":8113,"children":8114},{},[8115,8117,8122],{"type":998,"value":8116},"Use ",{"type":993,"tag":1037,"props":8118,"children":8120},{"className":8119},[],[8121],{"type":998,"value":4387},{"type":998,"value":8123}," when you want rounding",{"type":993,"tag":7657,"props":8125,"children":8126},{},[8127,8135,8149],{"type":993,"tag":7689,"props":8128,"children":8129},{},[8130],{"type":993,"tag":1012,"props":8131,"children":8132},{},[8133],{"type":998,"value":8134},"abs() function",{"type":993,"tag":7689,"props":8136,"children":8137},{},[8138,8143,8144],{"type":993,"tag":1037,"props":8139,"children":8141},{"className":8140},[],[8142],{"type":998,"value":7711},{"type":998,"value":4250},{"type":993,"tag":1037,"props":8145,"children":8147},{"className":8146},[],[8148],{"type":998,"value":1120},{"type":993,"tag":7689,"props":8150,"children":8151},{},[8152],{"type":998,"value":8153},"Removes negative signs",{"type":993,"tag":7657,"props":8155,"children":8156},{},[8157,8165,8179],{"type":993,"tag":7689,"props":8158,"children":8159},{},[8160],{"type":993,"tag":1012,"props":8161,"children":8162},{},[8163],{"type":998,"value":8164},"max/min functions",{"type":993,"tag":7689,"props":8166,"children":8167},{},[8168,8173,8174],{"type":993,"tag":1037,"props":8169,"children":8171},{"className":8170},[],[8172],{"type":998,"value":7814},{"type":998,"value":4250},{"type":993,"tag":1037,"props":8175,"children":8177},{"className":8176},[],[8178],{"type":998,"value":5012},{"type":993,"tag":7689,"props":8180,"children":8181},{},[8182],{"type":998,"value":8183},"Find largest/smallest values",{"type":993,"tag":2568,"props":8185,"children":8188},{"title":8186,"type":8187},"Number Best Practices","success",[8189],{"type":993,"tag":2585,"props":8190,"children":8191},{},[8192,8204,8215,8226,8237,8248],{"type":993,"tag":2589,"props":8193,"children":8194},{},[8195,8197,8202],{"type":998,"value":8196},"✅ ",{"type":993,"tag":1012,"props":8198,"children":8199},{},[8200],{"type":998,"value":8201},"Use integers for counting",{"type":998,"value":8203}," discrete items (people, books, days)",{"type":993,"tag":2589,"props":8205,"children":8206},{},[8207,8208,8213],{"type":998,"value":8196},{"type":993,"tag":1012,"props":8209,"children":8210},{},[8211],{"type":998,"value":8212},"Use floats for measurements",{"type":998,"value":8214}," and calculations needing precision",{"type":993,"tag":2589,"props":8216,"children":8217},{},[8218,8219,8224],{"type":998,"value":8196},{"type":993,"tag":1012,"props":8220,"children":8221},{},[8222],{"type":998,"value":8223},"Use round() for display",{"type":998,"value":8225},", int() for truncation",{"type":993,"tag":2589,"props":8227,"children":8228},{},[8229,8230,8235],{"type":998,"value":8196},{"type":993,"tag":1012,"props":8231,"children":8232},{},[8233],{"type":998,"value":8234},"Format money with :.2f",{"type":998,"value":8236}," to show exactly 2 decimal places",{"type":993,"tag":2589,"props":8238,"children":8239},{},[8240,8241,8246],{"type":998,"value":8196},{"type":993,"tag":1012,"props":8242,"children":8243},{},[8244],{"type":998,"value":8245},"Use abs() when you need distance",{"type":998,"value":8247}," or magnitude without direction",{"type":993,"tag":2589,"props":8249,"children":8250},{},[8251,8252,8257],{"type":998,"value":8196},{"type":993,"tag":1012,"props":8253,"children":8254},{},[8255],{"type":998,"value":8256},"Remember division always returns float",{"type":998,"value":8258}," (use // for integer division)",{"type":993,"tag":1320,"props":8260,"children":8262},{"id":8261},"test-your-knowledge",[8263],{"type":998,"value":8264},"🧠 Test Your Knowledge",{"type":993,"tag":1001,"props":8266,"children":8267},{},[8268],{"type":998,"value":8269},"Ready to test your understanding of working with numbers in Python?",{"type":993,"tag":8271,"props":8272,"children":8276},"redirect-button",{"icon":8273,"label":8274,"url":8275},"pi pi-send","Take Quiz","/tutorial-quiz/python/working-with-numbers",[],{"type":993,"tag":1320,"props":8278,"children":8280},{"id":8279},"whats-next",[8281],{"type":998,"value":8282},"🚀 What's Next?",{"type":993,"tag":1001,"props":8284,"children":8285},{},[8286],{"type":998,"value":8287},"Excellent! You now have a solid understanding of Python's number types and how to work with them. Next, we'll explore another fundamental data type: text and strings.",{"type":993,"tag":1001,"props":8289,"children":8290},{},[8291,8296,8297],{"type":993,"tag":1012,"props":8292,"children":8293},{},[8294],{"type":998,"value":8295},"Continue to",{"type":998,"value":2709},{"type":993,"tag":2821,"props":8298,"children":8299},{"href":105},[8300],{"type":998,"value":106},{"type":993,"tag":1001,"props":8302,"children":8303},{},[8304],{"type":998,"value":8305},"You're mastering Python's building blocks! 🔢",{"type":993,"tag":8307,"props":8308,"children":8309},"style",{},[8310],{"type":998,"value":8311},"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":8313},[8314,8317,8320,8323,8327,8332,8335,8336,8341,8342,8343,8344],{"id":1322,"depth":27,"text":1325,"children":8315},[8316],{"id":1623,"depth":36,"text":1626},{"id":1921,"depth":27,"text":1924,"children":8318},[8319],{"id":2273,"depth":36,"text":2276},{"id":2726,"depth":27,"text":2729,"children":8321},[8322],{"id":3395,"depth":36,"text":3398},{"id":3726,"depth":27,"text":3729,"children":8324},[8325,8326],{"id":3737,"depth":36,"text":3740},{"id":3959,"depth":36,"text":3962},{"id":4392,"depth":27,"text":4395,"children":8328},[8329,8330,8331],{"id":4403,"depth":36,"text":4406},{"id":4698,"depth":36,"text":4701},{"id":5105,"depth":36,"text":5108},{"id":5372,"depth":27,"text":5375,"children":8333},[8334],{"id":5782,"depth":36,"text":5785},{"id":6286,"depth":27,"text":6289},{"id":6658,"depth":27,"text":6661,"children":8337},[8338,8339,8340],{"id":6664,"depth":36,"text":6667},{"id":7076,"depth":36,"text":7079},{"id":7305,"depth":36,"text":7308},{"id":7644,"depth":27,"text":7647},{"id":7961,"depth":27,"text":7964},{"id":8261,"depth":27,"text":8264},{"id":8279,"depth":27,"text":8282},1782373729667]