[{"data":1,"prerenderedAt":5320},["ShallowReactive",2],{"tutorials-python":3,"category-items-python":987,"content-/python/function-basics":988},[4,22,31,40,49,58,67,76,86,95,104,113,122,131,141,150,159,168,177,186,196,205,214,223,233,242,251,260,269,279,288,297,306,315,324,333,342,351,360,369,379,388,397,406,415,424,433,442,452,461,470,479,488,497,506,515,525,534,543,552,561,570,579,588,597,606,616,625,634,643,652,661,670,680,689,698,707,716,725,734,744,753,762,771,780,789,798,807,817,826,835,844,853,863,872,881,890,900,909,918,927,936,945,953,961,970,979],{"_path":5,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":9,"description":10,"slug":11,"order":12,"isParent":13,"icon":14,"_type":15,"_id":16,"_source":17,"_file":18,"_stem":19,"_extension":20,"children":21,"expanded":13},"/python/getting-started","python",false,"","Getting Started","Begin your Python programming journey. Learn what Python is, how to set it up, and write your first programs. Perfect for complete beginners starting their coding adventure.","getting-started",1,true,"pi pi-folder","markdown","content:python:1.getting-started.md","content","python/1.getting-started.md","python/1.getting-started","md",[22,31,40,49,58,67],{"_path":23,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":24,"description":25,"slug":26,"parentId":5,"order":27,"_type":15,"_id":28,"_source":17,"_file":29,"_stem":30,"_extension":20},"/python/what-is-python","What is Python","Discover Python's fascinating history, design philosophy, and key features. Learn why Python has become one of the world's most popular programming languages and perfect for beginners.","what-is-python",2,"content:python:2.what-is-python.md","python/2.what-is-python.md","python/2.what-is-python",{"_path":32,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":33,"description":34,"slug":35,"parentId":5,"order":36,"_type":15,"_id":37,"_source":17,"_file":38,"_stem":39,"_extension":20},"/python/setup-python","Setup Python","Learn how to install Python on your computer and set up your development environment. Step-by-step guide for Windows, macOS, and Linux with beginner-friendly instructions.","setup-python",3,"content:python:3.setup-python.md","python/3.setup-python.md","python/3.setup-python",{"_path":41,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":42,"description":43,"slug":44,"parentId":5,"order":45,"_type":15,"_id":46,"_source":17,"_file":47,"_stem":48,"_extension":20},"/python/your-first-program","Your First Program","Write and run your first Python program! Learn the basics of Python programming with simple examples and step-by-step instructions for beginners.","your-first-program",4,"content:python:4.your-first-program.md","python/4.your-first-program.md","python/4.your-first-program",{"_path":50,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":51,"description":52,"slug":53,"parentId":5,"order":54,"_type":15,"_id":55,"_source":17,"_file":56,"_stem":57,"_extension":20},"/python/python-code-structure","Python Code Structure","Learn how Python code is organized and structured. Understand indentation, line breaks, and the basic rules that make Python programs work correctly.","python-code-structure",5,"content:python:5.python-code-structure.md","python/5.python-code-structure.md","python/5.python-code-structure",{"_path":59,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":60,"description":61,"slug":62,"parentId":5,"order":63,"_type":15,"_id":64,"_source":17,"_file":65,"_stem":66,"_extension":20},"/python/writing-comments","Writing Comments","Learn how to write effective comments in Python. Discover when and how to document your code to make it clear, maintainable, and easy to understand.","writing-comments",6,"content:python:6.writing-comments.md","python/6.writing-comments.md","python/6.writing-comments",{"_path":68,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":69,"description":70,"slug":71,"parentId":5,"order":72,"_type":15,"_id":73,"_source":17,"_file":74,"_stem":75,"_extension":20},"/python/working-with-variables","Working with Variables","Learn how to create, use, and manage variables in Python. Understand how to store data, change values, and follow naming conventions for clean, readable code.","working-with-variables",7,"content:python:7.working-with-variables.md","python/7.working-with-variables.md","python/7.working-with-variables",{"_path":77,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":78,"description":79,"slug":80,"order":81,"isParent":13,"icon":14,"_type":15,"_id":82,"_source":17,"_file":83,"_stem":84,"_extension":20,"children":85,"expanded":13},"/python/basic-data-types","Basic Data Types","Learn about Python's fundamental data types including numbers, text, and boolean values","basic-data-types",8,"content:python:8.basic-data-types.md","python/8.basic-data-types.md","python/8.basic-data-types",[86,95,104,113,122],{"_path":87,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":88,"description":89,"slug":90,"parentId":77,"order":91,"_type":15,"_id":92,"_source":17,"_file":93,"_stem":94,"_extension":20},"/python/understanding-data-types","Understanding Data Types","Learn how Python identifies different data types and why they're important for programming","understanding-data-types",9,"content:python:9.understanding-data-types.md","python/9.understanding-data-types.md","python/9.understanding-data-types",{"_path":96,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":97,"description":98,"slug":99,"parentId":77,"order":100,"_type":15,"_id":101,"_source":17,"_file":102,"_stem":103,"_extension":20},"/python/working-with-numbers","Working with Numbers","Learn about Python's numeric data types including integers and floats, and how to perform calculations","working-with-numbers",10,"content:python:10.working-with-numbers.md","python/10.working-with-numbers.md","python/10.working-with-numbers",{"_path":105,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":106,"description":107,"slug":108,"parentId":77,"order":109,"_type":15,"_id":110,"_source":17,"_file":111,"_stem":112,"_extension":20},"/python/text-and-strings","Text and Strings","Learn how to work with text data in Python using strings, including creation, manipulation, and formatting","text-and-strings",11,"content:python:11.text-and-strings.md","python/11.text-and-strings.md","python/11.text-and-strings",{"_path":114,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":115,"description":116,"slug":117,"parentId":77,"order":118,"_type":15,"_id":119,"_source":17,"_file":120,"_stem":121,"_extension":20},"/python/true-false-values","True/False Values","Learn about boolean values in Python, including True/False logic, comparison operations, and how to use booleans for decision-making in your programs","true-false-values",12,"content:python:12.true-false-values.md","python/12.true-false-values.md","python/12.true-false-values",{"_path":123,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":124,"description":125,"slug":126,"parentId":77,"order":127,"_type":15,"_id":128,"_source":17,"_file":129,"_stem":130,"_extension":20},"/python/converting-types","Converting Types","Learn how to convert between different Python data types including strings, numbers, and booleans","converting-types",13,"content:python:13.converting-types.md","python/13.converting-types.md","python/13.converting-types",{"_path":132,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":133,"description":134,"slug":135,"order":136,"isParent":13,"icon":14,"_type":15,"_id":137,"_source":17,"_file":138,"_stem":139,"_extension":20,"children":140,"expanded":13},"/python/python-operators","Python Operators","Learn about Python operators - the symbols and keywords that perform operations on data. Discover arithmetic, comparison, logical, and assignment operators with simple examples.","python-operators",14,"content:python:14.python-operators.md","python/14.python-operators.md","python/14.python-operators",[141,150,159,168,177],{"_path":142,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":143,"description":144,"slug":145,"parentId":132,"order":146,"_type":15,"_id":147,"_source":17,"_file":148,"_stem":149,"_extension":20},"/python/math-operations","Math Operations","Learn Python's arithmetic operators for mathematical calculations. Master addition, subtraction, multiplication, division, and more with practical examples.","math-operations",15,"content:python:15.math-operations.md","python/15.math-operations.md","python/15.math-operations",{"_path":151,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":152,"description":153,"slug":154,"parentId":132,"order":155,"_type":15,"_id":156,"_source":17,"_file":157,"_stem":158,"_extension":20},"/python/comparing-values","Comparing Values","Learn Python's comparison operators to compare values and make decisions. Master equality, inequality, and relational operators with practical examples.","comparing-values",16,"content:python:16.comparing-values.md","python/16.comparing-values.md","python/16.comparing-values",{"_path":160,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":161,"description":162,"slug":163,"parentId":132,"order":164,"_type":15,"_id":165,"_source":17,"_file":166,"_stem":167,"_extension":20},"/python/logic-operations","Logic Operations","Learn about Python's logical operators for combining conditions and creating complex boolean expressions","logic-operations",17,"content:python:17.logic-operations.md","python/17.logic-operations.md","python/17.logic-operations",{"_path":169,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":170,"description":171,"slug":172,"parentId":132,"order":173,"_type":15,"_id":174,"_source":17,"_file":175,"_stem":176,"_extension":20},"/python/value-assignment","Value Assignment","Learn about Python's assignment operators for efficiently updating variables and performing calculations","value-assignment",18,"content:python:18.value-assignment.md","python/18.value-assignment.md","python/18.value-assignment",{"_path":178,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":179,"description":180,"slug":181,"parentId":132,"order":182,"_type":15,"_id":183,"_source":17,"_file":184,"_stem":185,"_extension":20},"/python/operator-precedence","Operator Precedence","Learn how Python evaluates expressions with multiple operators and how to control evaluation order","operator-precedence",19,"content:python:19.operator-precedence.md","python/19.operator-precedence.md","python/19.operator-precedence",{"_path":187,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":188,"description":189,"slug":190,"order":191,"isParent":13,"icon":14,"_type":15,"_id":192,"_source":17,"_file":193,"_stem":194,"_extension":20,"children":195,"expanded":13},"/python/decision-making","Decision Making","Learn how to make decisions in your Python programs using conditional statements and control flow","decision-making",20,"content:python:20.decision-making.md","python/20.decision-making.md","python/20.decision-making",[196,205,214],{"_path":197,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":198,"description":199,"slug":200,"parentId":187,"order":201,"_type":15,"_id":202,"_source":17,"_file":203,"_stem":204,"_extension":20},"/python/if-statements","If Statements","Learn how to use if statements to make decisions and control program flow in Python","if-statements",21,"content:python:21.if-statements.md","python/21.if-statements.md","python/21.if-statements",{"_path":206,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":207,"description":208,"slug":209,"parentId":187,"order":210,"_type":15,"_id":211,"_source":17,"_file":212,"_stem":213,"_extension":20},"/python/multiple-conditions","Multiple Conditions","Learn how to handle multiple conditions using elif statements and complex conditional logic in Python","multiple-conditions",22,"content:python:22.multiple-conditions.md","python/22.multiple-conditions.md","python/22.multiple-conditions",{"_path":215,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":216,"description":217,"slug":218,"parentId":187,"order":219,"_type":15,"_id":220,"_source":17,"_file":221,"_stem":222,"_extension":20},"/python/pattern-matching","Pattern Matching","Learn how to use Python's match-case statements for powerful pattern matching and complex decision making","pattern-matching",23,"content:python:23.pattern-matching.md","python/23.pattern-matching.md","python/23.pattern-matching",{"_path":224,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":225,"description":226,"slug":227,"order":228,"isParent":13,"icon":14,"_type":15,"_id":229,"_source":17,"_file":230,"_stem":231,"_extension":20,"children":232,"expanded":13},"/python/repetition-and-loops","Python Loops","Learn how to use loops to repeat code efficiently and handle repetitive tasks in Python","repetition-and-loops",24,"content:python:24.repetition-and-loops.md","python/24.repetition-and-loops.md","python/24.repetition-and-loops",[233,242,251,260],{"_path":234,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":235,"description":236,"slug":237,"parentId":224,"order":238,"_type":15,"_id":239,"_source":17,"_file":240,"_stem":241,"_extension":20},"/python/while-loops","While Loops","Learn how to use while loops for condition-based repetition and create loops that run until specific conditions are met","while-loops",25,"content:python:25.while-loops.md","python/25.while-loops.md","python/25.while-loops",{"_path":243,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":244,"description":245,"slug":246,"parentId":224,"order":247,"_type":15,"_id":248,"_source":17,"_file":249,"_stem":250,"_extension":20},"/python/for-loops","For Loops","Learn how to use for loops to iterate through sequences, collections, and ranges efficiently in Python","for-loops",26,"content:python:26.for-loops.md","python/26.for-loops.md","python/26.for-loops",{"_path":252,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":253,"description":254,"slug":255,"parentId":224,"order":256,"_type":15,"_id":257,"_source":17,"_file":258,"_stem":259,"_extension":20},"/python/loop-control","Loop Control","Master advanced loop control techniques including break, continue, and else clauses for sophisticated iteration patterns","loop-control",27,"content:python:27.loop-control.md","python/27.loop-control.md","python/27.loop-control",{"_path":261,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":262,"description":263,"slug":264,"parentId":224,"order":265,"_type":15,"_id":266,"_source":17,"_file":267,"_stem":268,"_extension":20},"/python/nested-loops","Nested Loops","Learn how to use nested loops to process multi-dimensional data, create patterns, and handle complex iteration scenarios","nested-loops",28,"content:python:28.nested-loops.md","python/28.nested-loops.md","python/28.nested-loops",{"_path":270,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":271,"description":272,"slug":273,"order":274,"isParent":13,"icon":14,"_type":15,"_id":275,"_source":17,"_file":276,"_stem":277,"_extension":20,"children":278,"expanded":13},"/python/python-lists","Python Lists","Learn about Python lists, one of the most important and versatile data structures for storing and organizing collections of data","python-lists",29,"content:python:29.python-lists.md","python/29.python-lists.md","python/29.python-lists",[279,288,297,306,315,324,333,342,351,360],{"_path":280,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":281,"description":282,"slug":283,"parentId":270,"order":284,"_type":15,"_id":285,"_source":17,"_file":286,"_stem":287,"_extension":20},"/python/creating-lists","Creating Lists","Learn different methods to create and initialize Python lists, from simple literals to advanced techniques","creating-lists",30,"content:python:30.creating-lists.md","python/30.creating-lists.md","python/30.creating-lists",{"_path":289,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":290,"description":291,"slug":292,"parentId":270,"order":293,"_type":15,"_id":294,"_source":17,"_file":295,"_stem":296,"_extension":20},"/python/reading-list-data","Reading List Data","Master techniques for accessing and retrieving data from Python lists using indexing, slicing, and built-in methods","reading-list-data",31,"content:python:31.reading-list-data.md","python/31.reading-list-data.md","python/31.reading-list-data",{"_path":298,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":299,"description":300,"slug":301,"parentId":270,"order":302,"_type":15,"_id":303,"_source":17,"_file":304,"_stem":305,"_extension":20},"/python/modifying-lists","Modifying Lists","Learn how to change, update, and modify existing elements in Python lists using indexing and various methods","modifying-lists",32,"content:python:32.modifying-lists.md","python/32.modifying-lists.md","python/32.modifying-lists",{"_path":307,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":308,"description":309,"slug":310,"parentId":270,"order":311,"_type":15,"_id":312,"_source":17,"_file":313,"_stem":314,"_extension":20},"/python/adding-to-lists","Adding to Lists","Learn various methods to add elements to Python lists including append, insert, extend, and concatenation techniques","adding-to-lists",33,"content:python:33.adding-to-lists.md","python/33.adding-to-lists.md","python/33.adding-to-lists",{"_path":316,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":317,"description":318,"slug":319,"parentId":270,"order":320,"_type":15,"_id":321,"_source":17,"_file":322,"_stem":323,"_extension":20},"/python/removing-from-lists","Removing from Lists","Learn different methods to remove and delete elements from Python lists including remove, pop, del, and clear","removing-from-lists",34,"content:python:34.removing-from-lists.md","python/34.removing-from-lists.md","python/34.removing-from-lists",{"_path":325,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":326,"description":327,"slug":328,"parentId":270,"order":329,"_type":15,"_id":330,"_source":17,"_file":331,"_stem":332,"_extension":20},"/python/looping-through-lists","Looping Through Lists","Learn different ways to iterate through Python lists using for loops, while loops, enumerate, and other iteration techniques","looping-through-lists",35,"content:python:35.looping-through-lists.md","python/35.looping-through-lists.md","python/35.looping-through-lists",{"_path":334,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":335,"description":336,"slug":337,"parentId":270,"order":338,"_type":15,"_id":339,"_source":17,"_file":340,"_stem":341,"_extension":20},"/python/list-shortcuts","List Shortcuts","Learn powerful Python list shortcuts including list comprehensions, slicing tricks, and built-in functions for efficient list operations","list-shortcuts",36,"content:python:36.list-shortcuts.md","python/36.list-shortcuts.md","python/36.list-shortcuts",{"_path":343,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":344,"description":345,"slug":346,"parentId":270,"order":347,"_type":15,"_id":348,"_source":17,"_file":349,"_stem":350,"_extension":20},"/python/organizing-lists","Organizing Lists","Learn how to sort, reverse, and organize Python lists using built-in methods and custom sorting techniques","organizing-lists",37,"content:python:37.organizing-lists.md","python/37.organizing-lists.md","python/37.organizing-lists",{"_path":352,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":353,"description":354,"slug":355,"parentId":270,"order":356,"_type":15,"_id":357,"_source":17,"_file":358,"_stem":359,"_extension":20},"/python/combining-lists","Combining Lists","Learn various techniques to combine, merge, and join Python lists including concatenation, zipping, and advanced merging strategies","combining-lists",38,"content:python:38.combining-lists.md","python/38.combining-lists.md","python/38.combining-lists",{"_path":361,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":362,"description":363,"slug":364,"parentId":270,"order":365,"_type":15,"_id":366,"_source":17,"_file":367,"_stem":368,"_extension":20},"/python/essential-list-tools","Essential List Tools","Master powerful built-in functions and advanced techniques for efficient Python list manipulation and data processing","essential-list-tools",39,"content:python:39.essential-list-tools.md","python/39.essential-list-tools.md","python/39.essential-list-tools",{"_path":370,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":371,"description":372,"slug":373,"order":374,"isParent":13,"icon":14,"_type":15,"_id":375,"_source":17,"_file":376,"_stem":377,"_extension":20,"children":378,"expanded":13},"/python/python-tuples","Python Tuples","Master Python tuples - immutable sequences perfect for storing related data that shouldn't change. Learn creation, access, and manipulation techniques.","python-tuples",40,"content:python:40.python-tuples.md","python/40.python-tuples.md","python/40.python-tuples",[379,388,397,406,415,424,433],{"_path":380,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":381,"description":382,"slug":383,"parentId":370,"order":384,"_type":15,"_id":385,"_source":17,"_file":386,"_stem":387,"_extension":20},"/python/creating-tuples","Creating Tuples","Learn different ways to create Python tuples, from basic syntax to advanced techniques. Master tuple initialization and understand when to use tuples.","creating-tuples",41,"content:python:41.creating-tuples.md","python/41.creating-tuples.md","python/41.creating-tuples",{"_path":389,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":390,"description":391,"slug":392,"parentId":370,"order":393,"_type":15,"_id":394,"_source":17,"_file":395,"_stem":396,"_extension":20},"/python/reading-tuple-data","Reading Tuple Data","Master accessing tuple elements through indexing, slicing, and searching. Learn efficient patterns for reading and working with tuple data.","reading-tuple-data",42,"content:python:42.reading-tuple-data.md","python/42.reading-tuple-data.md","python/42.reading-tuple-data",{"_path":398,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":399,"description":400,"slug":401,"parentId":370,"order":402,"_type":15,"_id":403,"_source":17,"_file":404,"_stem":405,"_extension":20},"/python/changing-tuples","Changing Tuples","Understand tuple immutability and learn techniques for working with unchangeable data. Master creating modified tuple versions and handling immutable constraints.","changing-tuples",43,"content:python:43.changing-tuples.md","python/43.changing-tuples.md","python/43.changing-tuples",{"_path":407,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":408,"description":409,"slug":410,"parentId":370,"order":411,"_type":15,"_id":412,"_source":17,"_file":413,"_stem":414,"_extension":20},"/python/tuple-unpacking","Tuple Unpacking","Master tuple unpacking for elegant variable assignment, function returns, and data extraction. Learn Python's powerful unpacking syntax and patterns.","tuple-unpacking",44,"content:python:44.tuple-unpacking.md","python/44.tuple-unpacking.md","python/44.tuple-unpacking",{"_path":416,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":417,"description":418,"slug":419,"parentId":370,"order":420,"_type":15,"_id":421,"_source":17,"_file":422,"_stem":423,"_extension":20},"/python/iterating-tuples","Iterating Tuples","Master tuple iteration techniques for processing sequence data. Learn basic loops, enumerate, nested iteration, and advanced patterns for efficient data processing.","iterating-tuples",45,"content:python:45.iterating-tuples.md","python/45.iterating-tuples.md","python/45.iterating-tuples",{"_path":425,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":426,"description":427,"slug":428,"parentId":370,"order":429,"_type":15,"_id":430,"_source":17,"_file":431,"_stem":432,"_extension":20},"/python/merging-tuples","Merging Tuples","Learn techniques for combining and merging tuples to create larger data structures. Master concatenation, joining multiple tuples, and advanced merging patterns.","merging-tuples",46,"content:python:46.merging-tuples.md","python/46.merging-tuples.md","python/46.merging-tuples",{"_path":434,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":435,"description":436,"slug":437,"parentId":370,"order":438,"_type":15,"_id":439,"_source":17,"_file":440,"_stem":441,"_extension":20},"/python/tuple-operations","Tuple Operations","Master comprehensive tuple operations including built-in functions, mathematical operations, comparisons, and advanced techniques for efficient tuple manipulation.","tuple-operations",47,"content:python:47.tuple-operations.md","python/47.tuple-operations.md","python/47.tuple-operations",{"_path":443,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":444,"description":445,"slug":446,"order":447,"isParent":13,"icon":14,"_type":15,"_id":448,"_source":17,"_file":449,"_stem":450,"_extension":20,"children":451,"expanded":13},"/python/python-sets","Python Sets","Discover Python sets - unique collections that automatically eliminate duplicates and provide powerful mathematical operations for data filtering and analysis.","python-sets",48,"content:python:48.python-sets.md","python/48.python-sets.md","python/48.python-sets",[452,461,470,479,488,497,506],{"_path":453,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":454,"description":455,"slug":456,"parentId":443,"order":457,"_type":15,"_id":458,"_source":17,"_file":459,"_stem":460,"_extension":20},"/python/creating-sets","Creating Sets","Learn multiple ways to create sets in Python including literal syntax, set() function, and set comprehensions. Master set creation from different data sources.","creating-sets",49,"content:python:49.creating-sets.md","python/49.creating-sets.md","python/49.creating-sets",{"_path":462,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":463,"description":464,"slug":465,"parentId":443,"order":466,"_type":15,"_id":467,"_source":17,"_file":468,"_stem":469,"_extension":20},"/python/reading-set-data","Reading Set Data","Learn how to access and examine set data in Python including membership testing, iteration, size checking, and converting sets to other data types.","reading-set-data",50,"content:python:50.reading-set-data.md","python/50.reading-set-data.md","python/50.reading-set-data",{"_path":471,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":472,"description":473,"slug":474,"parentId":443,"order":475,"_type":15,"_id":476,"_source":17,"_file":477,"_stem":478,"_extension":20},"/python/adding-to-sets","Adding to Sets","Learn how to add elements to sets in Python using add(), update(), and union operations. Master growing sets dynamically with single items and multiple elements.","adding-to-sets",51,"content:python:51.adding-to-sets.md","python/51.adding-to-sets.md","python/51.adding-to-sets",{"_path":480,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":481,"description":482,"slug":483,"parentId":443,"order":484,"_type":15,"_id":485,"_source":17,"_file":486,"_stem":487,"_extension":20},"/python/removing-from-sets","Removing from Sets","Learn how to remove elements from Python sets using different methods like remove(), discard(), pop(), and clear()","removing-from-sets",52,"content:python:52.removing-from-sets.md","python/52.removing-from-sets.md","python/52.removing-from-sets",{"_path":489,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":490,"description":491,"slug":492,"parentId":443,"order":493,"_type":15,"_id":494,"_source":17,"_file":495,"_stem":496,"_extension":20},"/python/iterating-sets","Iterating Sets","Learn different ways to iterate through Python sets using for loops, comprehensions, and built-in functions","iterating-sets",53,"content:python:53.iterating-sets.md","python/53.iterating-sets.md","python/53.iterating-sets",{"_path":498,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":499,"description":500,"slug":501,"parentId":443,"order":502,"_type":15,"_id":503,"_source":17,"_file":504,"_stem":505,"_extension":20},"/python/combining-sets","Combining Sets","Learn how to combine Python sets using union, intersection, difference, and other set operations","combining-sets",54,"content:python:54.combining-sets.md","python/54.combining-sets.md","python/54.combining-sets",{"_path":507,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":508,"description":509,"slug":510,"parentId":443,"order":511,"_type":15,"_id":512,"_source":17,"_file":513,"_stem":514,"_extension":20},"/python/set-operations","Set Operations","Learn advanced Python set operations including comparisons, subsets, supersets, and mathematical set relationships","set-operations",55,"content:python:55.set-operations.md","python/55.set-operations.md","python/55.set-operations",{"_path":516,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":517,"description":518,"slug":519,"order":520,"isParent":13,"icon":14,"_type":15,"_id":521,"_source":17,"_file":522,"_stem":523,"_extension":20,"children":524,"expanded":13},"/python/python-dictionaries","Python Dictionaries","Learn about Python dictionaries - key-value data structures for storing and organizing related information","python-dictionaries",56,"content:python:56.python-dictionaries.md","python/56.python-dictionaries.md","python/56.python-dictionaries",[525,534,543,552,561,570,579,588,597],{"_path":526,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":527,"description":528,"slug":529,"parentId":516,"order":530,"_type":15,"_id":531,"_source":17,"_file":532,"_stem":533,"_extension":20},"/python/creating-dictionaries","Creating Dictionaries","Learn different methods to create Python dictionaries using literals, constructors, and comprehensions","creating-dictionaries",57,"content:python:57.creating-dictionaries.md","python/57.creating-dictionaries.md","python/57.creating-dictionaries",{"_path":535,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":536,"description":537,"slug":538,"parentId":516,"order":539,"_type":15,"_id":540,"_source":17,"_file":541,"_stem":542,"_extension":20},"/python/getting-dictionary-values","Getting Dictionary Values","Learn safe and efficient methods to retrieve data from Python dictionaries using various access techniques","getting-dictionary-values",58,"content:python:58.getting-dictionary-values.md","python/58.getting-dictionary-values.md","python/58.getting-dictionary-values",{"_path":544,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":545,"description":546,"slug":547,"parentId":516,"order":548,"_type":15,"_id":549,"_source":17,"_file":550,"_stem":551,"_extension":20},"/python/updating-dictionaries","Updating Dictionaries","Learn how to modify and maintain Python dictionary data using various update methods and techniques","updating-dictionaries",59,"content:python:59.updating-dictionaries.md","python/59.updating-dictionaries.md","python/59.updating-dictionaries",{"_path":553,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":554,"description":555,"slug":556,"parentId":516,"order":557,"_type":15,"_id":558,"_source":17,"_file":559,"_stem":560,"_extension":20},"/python/adding-dictionary-items","Adding Dictionary Items","Learn effective techniques for adding new items to Python dictionaries with various methods and best practices","adding-dictionary-items",60,"content:python:60.adding-dictionary-items.md","python/60.adding-dictionary-items.md","python/60.adding-dictionary-items",{"_path":562,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":563,"description":564,"slug":565,"parentId":516,"order":566,"_type":15,"_id":567,"_source":17,"_file":568,"_stem":569,"_extension":20},"/python/deleting-dictionary-items","Deleting Dictionary Items","Master safe and efficient techniques for removing items from Python dictionaries with various methods and error handling","deleting-dictionary-items",61,"content:python:61.deleting-dictionary-items.md","python/61.deleting-dictionary-items.md","python/61.deleting-dictionary-items",{"_path":571,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":572,"description":573,"slug":574,"parentId":516,"order":575,"_type":15,"_id":576,"_source":17,"_file":577,"_stem":578,"_extension":20},"/python/looping-dictionaries","Looping Dictionaries","Learn efficient techniques for iterating through Python dictionaries using keys, values, and items","looping-dictionaries",62,"content:python:62.looping-dictionaries.md","python/62.looping-dictionaries.md","python/62.looping-dictionaries",{"_path":580,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":581,"description":582,"slug":583,"parentId":516,"order":584,"_type":15,"_id":585,"_source":17,"_file":586,"_stem":587,"_extension":20},"/python/dictionary-copies","Dictionary Copies","Learn safe techniques for duplicating Python dictionaries using shallow and deep copy methods","dictionary-copies",63,"content:python:63.dictionary-copies.md","python/63.dictionary-copies.md","python/63.dictionary-copies",{"_path":589,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":590,"description":591,"slug":592,"parentId":516,"order":593,"_type":15,"_id":594,"_source":17,"_file":595,"_stem":596,"_extension":20},"/python/multi-level-dictionaries","Multi-level Dictionaries","Master working with nested Python dictionaries for complex data structures and hierarchical information","multi-level-dictionaries",64,"content:python:64.multi-level-dictionaries.md","python/64.multi-level-dictionaries.md","python/64.multi-level-dictionaries",{"_path":598,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":599,"description":600,"slug":601,"parentId":516,"order":602,"_type":15,"_id":603,"_source":17,"_file":604,"_stem":605,"_extension":20},"/python/dictionary-tools","Dictionary Tools","Explore powerful built-in functions and advanced techniques for efficient Python dictionary manipulation and analysis","dictionary-tools",65,"content:python:65.dictionary-tools.md","python/65.dictionary-tools.md","python/65.dictionary-tools",{"_path":607,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":608,"description":609,"slug":610,"order":611,"isParent":13,"icon":14,"_type":15,"_id":612,"_source":17,"_file":613,"_stem":614,"_extension":20,"children":615,"expanded":13},"/python/python-functions","Python Functions","Learn how to create and use Python functions to organize code into reusable, modular components that make programs more efficient and maintainable","python-functions",66,"content:python:66.python-functions.md","python/66.python-functions.md","python/66.python-functions",[616,625,634,643,652,661],{"_path":617,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":618,"description":619,"slug":620,"parentId":607,"order":621,"_type":15,"_id":622,"_source":17,"_file":623,"_stem":624,"_extension":20},"/python/function-basics","Function Basics","Learn the fundamentals of creating and using Python functions to organize code into reusable, modular components","function-basics",67,"content:python:67.function-basics.md","python/67.function-basics.md","python/67.function-basics",{"_path":626,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":627,"description":628,"slug":629,"parentId":607,"order":630,"_type":15,"_id":631,"_source":17,"_file":632,"_stem":633,"_extension":20},"/python/function-parameters","Function Parameters","Master different types of Python function parameters including positional, keyword, default, and variable-length arguments","function-parameters",68,"content:python:68.function-parameters.md","python/68.function-parameters.md","python/68.function-parameters",{"_path":635,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":636,"description":637,"slug":638,"parentId":607,"order":639,"_type":15,"_id":640,"_source":17,"_file":641,"_stem":642,"_extension":20},"/python/returning-values","Returning Values","Learn different ways Python functions return data including single values, multiple values, and conditional returns","returning-values",69,"content:python:69.returning-values.md","python/69.returning-values.md","python/69.returning-values",{"_path":644,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":645,"description":646,"slug":647,"parentId":607,"order":648,"_type":15,"_id":649,"_source":17,"_file":650,"_stem":651,"_extension":20},"/python/variable-scope","Variable Scope","Understand Python variable scope including local, global, and nonlocal variables and how they affect function behavior","variable-scope",70,"content:python:70.variable-scope.md","python/70.variable-scope.md","python/70.variable-scope",{"_path":653,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":654,"description":655,"slug":656,"parentId":607,"order":657,"_type":15,"_id":658,"_source":17,"_file":659,"_stem":660,"_extension":20},"/python/anonymous-functions","Anonymous Functions","Learn to create and use Python lambda functions for concise, inline function definitions and functional programming patterns","anonymous-functions",71,"content:python:71.anonymous-functions.md","python/71.anonymous-functions.md","python/71.anonymous-functions",{"_path":662,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":663,"description":664,"slug":665,"parentId":607,"order":666,"_type":15,"_id":667,"_source":17,"_file":668,"_stem":669,"_extension":20},"/python/function-recursion","Function Recursion","Master recursive functions in Python by learning how functions can call themselves to solve complex problems with elegant, mathematical solutions","function-recursion",72,"content:python:72.function-recursion.md","python/72.function-recursion.md","python/72.function-recursion",{"_path":671,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":672,"description":673,"slug":674,"order":675,"isParent":13,"icon":14,"_type":15,"_id":676,"_source":17,"_file":677,"_stem":678,"_extension":20,"children":679},"/python/object-programming","Object Programming","Learn object-oriented programming (OOP) in Python - create classes, objects, and methods to build organized, reusable code","object-programming",73,"content:python:73.object-programming.md","python/73.object-programming.md","python/73.object-programming",[680,689,698,707,716,725],{"_path":681,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":682,"description":683,"slug":684,"parentId":671,"order":685,"_type":15,"_id":686,"_source":17,"_file":687,"_stem":688,"_extension":20},"/python/classes-and-objects","Classes and Objects","Learn to create Python classes and objects - the foundation of object-oriented programming for building reusable, organized code","classes-and-objects",74,"content:python:74.classes-and-objects.md","python/74.classes-and-objects.md","python/74.classes-and-objects",{"_path":690,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":691,"description":692,"slug":693,"parentId":671,"order":694,"_type":15,"_id":695,"_source":17,"_file":696,"_stem":697,"_extension":20},"/python/object-methods","Object Methods","Master object methods in Python - learn to define behaviors, work with parameters, and create interactive objects that respond to actions","object-methods",75,"content:python:75.object-methods.md","python/75.object-methods.md","python/75.object-methods",{"_path":699,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":700,"description":701,"slug":702,"parentId":671,"order":703,"_type":15,"_id":704,"_source":17,"_file":705,"_stem":706,"_extension":20},"/python/class-inheritance","Class Inheritance","Learn Python class inheritance - create specialized classes that build upon existing functionality while adding new features and behaviors","class-inheritance",76,"content:python:76.class-inheritance.md","python/76.class-inheritance.md","python/76.class-inheritance",{"_path":708,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":709,"description":710,"slug":711,"parentId":671,"order":712,"_type":15,"_id":713,"_source":17,"_file":714,"_stem":715,"_extension":20},"/python/method-overriding","Method Overriding","Master method overriding in Python - learn to customize inherited methods, use super(), and create specialized behaviors while maintaining inheritance benefits","method-overriding",77,"content:python:77.method-overriding.md","python/77.method-overriding.md","python/77.method-overriding",{"_path":717,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":718,"description":719,"slug":720,"parentId":671,"order":721,"_type":15,"_id":722,"_source":17,"_file":723,"_stem":724,"_extension":20},"/python/variable-visibility","Variable Visibility","Master Python variable visibility - learn public, protected, and private attributes to control access and create well-encapsulated classes","variable-visibility",78,"content:python:78.variable-visibility.md","python/78.variable-visibility.md","python/78.variable-visibility",{"_path":726,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":727,"description":728,"slug":729,"parentId":671,"order":730,"_type":15,"_id":731,"_source":17,"_file":732,"_stem":733,"_extension":20},"/python/special-methods","Special Methods","Master Python special methods (magic methods) - learn to implement __str__, __len__, __eq__ and more to make your classes work seamlessly with Python's built-in functions","special-methods",79,"content:python:79.special-methods.md","python/79.special-methods.md","python/79.special-methods",{"_path":735,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":736,"description":737,"slug":738,"order":739,"isParent":13,"icon":14,"_type":15,"_id":740,"_source":17,"_file":741,"_stem":742,"_extension":20,"children":743},"/python/advanced-concepts","Advanced Concepts","Master advanced Python programming concepts - work with dates, mathematics, JSON data, pattern matching, and more sophisticated programming techniques","advanced-concepts",80,"content:python:80.advanced-concepts.md","python/80.advanced-concepts.md","python/80.advanced-concepts",[744,753,762,771,780,789,798],{"_path":745,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":746,"description":747,"slug":748,"parentId":735,"order":749,"_type":15,"_id":750,"_source":17,"_file":751,"_stem":752,"_extension":20},"/python/working-with-dates","Working with Dates","Master Python date and time handling - work with datetime objects, format dates, calculate durations, and build time-aware applications","working-with-dates",81,"content:python:81.working-with-dates.md","python/81.working-with-dates.md","python/81.working-with-dates",{"_path":754,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":755,"description":756,"slug":757,"parentId":735,"order":758,"_type":15,"_id":759,"_source":17,"_file":760,"_stem":761,"_extension":20},"/python/mathematical-operations","Mathematical Operations","Master Python mathematical computing - use math functions, perform statistical calculations, and implement scientific computing for data analysis and problem-solving","mathematical-operations",82,"content:python:82.mathematical-operations.md","python/82.mathematical-operations.md","python/82.mathematical-operations",{"_path":763,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":764,"description":765,"slug":766,"parentId":735,"order":767,"_type":15,"_id":768,"_source":17,"_file":769,"_stem":770,"_extension":20},"/python/json-data","JSON Data","Master JSON data handling in Python - serialize and deserialize data, work with APIs, manage configuration files, and exchange data between applications","json-data",83,"content:python:83.json-data.md","python/83.json-data.md","python/83.json-data",{"_path":772,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":773,"description":774,"slug":775,"parentId":735,"order":776,"_type":15,"_id":777,"_source":17,"_file":778,"_stem":779,"_extension":20},"/python/package-management","Package Management","Master Python package management with pip and virtual environments - install libraries, manage dependencies, create isolated environments, and distribute packages professionally","package-management",85,"content:python:85.package-management.md","python/85.package-management.md","python/85.package-management",{"_path":781,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":782,"description":783,"slug":784,"parentId":735,"order":785,"_type":15,"_id":786,"_source":17,"_file":787,"_stem":788,"_extension":20},"/python/error-handling","Error Handling","Master Python error handling with try/except blocks, exception types, custom exceptions, debugging techniques, and best practices for robust application development","error-handling",86,"content:python:86.error-handling.md","python/86.error-handling.md","python/86.error-handling",{"_path":790,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":791,"description":792,"slug":793,"parentId":735,"order":794,"_type":15,"_id":795,"_source":17,"_file":796,"_stem":797,"_extension":20},"/python/getting-user-input","Getting User Input","Master user input handling in Python with input validation, data type conversion, interactive programs, and command-line interfaces for engaging user experiences","getting-user-input",87,"content:python:87.getting-user-input.md","python/87.getting-user-input.md","python/87.getting-user-input",{"_path":799,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":800,"description":801,"slug":802,"parentId":735,"order":803,"_type":15,"_id":804,"_source":17,"_file":805,"_stem":806,"_extension":20},"/python/text-formatting","Text Formatting","Master Python text formatting with f-strings, format methods, alignment, number formatting, and advanced techniques for professional, readable output","text-formatting",88,"content:python:88.text-formatting.md","python/88.text-formatting.md","python/88.text-formatting",{"_path":808,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":809,"description":810,"slug":811,"order":812,"isParent":13,"icon":14,"_type":15,"_id":813,"_source":17,"_file":814,"_stem":815,"_extension":20,"children":816},"/python/file-operations","File Operations","Master Python file handling with reading, writing, and managing files for data persistence and real-world applications","file-operations",89,"content:python:89.file-operations.md","python/89.file-operations.md","python/89.file-operations",[817,826,835,844],{"_path":818,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":819,"description":820,"slug":821,"parentId":808,"order":822,"_type":15,"_id":823,"_source":17,"_file":824,"_stem":825,"_extension":20},"/python/file-basics","File Basics","Learn fundamental Python file operations including opening files, understanding file modes, using context managers, and basic file handling concepts","file-basics",90,"content:python:90.file-basics.md","python/90.file-basics.md","python/90.file-basics",{"_path":827,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":828,"description":829,"slug":830,"parentId":808,"order":831,"_type":15,"_id":832,"_source":17,"_file":833,"_stem":834,"_extension":20},"/python/reading-files","Reading Files","Master Python file reading techniques including reading entire files, line-by-line processing, and handling different file formats for efficient data processing","reading-files",91,"content:python:91.reading-files.md","python/91.reading-files.md","python/91.reading-files",{"_path":836,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":837,"description":838,"slug":839,"parentId":808,"order":840,"_type":15,"_id":841,"_source":17,"_file":842,"_stem":843,"_extension":20},"/python/writing-files","Writing Files","Learn Python file writing techniques including creating new files, appending content, updating existing files, and saving different data formats safely","writing-files",92,"content:python:92.writing-files.md","python/92.writing-files.md","python/92.writing-files",{"_path":845,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":846,"description":847,"slug":848,"parentId":808,"order":849,"_type":15,"_id":850,"_source":17,"_file":851,"_stem":852,"_extension":20},"/python/file-management","File Management","Learn Python file management techniques including checking file properties, organizing files, directory operations, and implementing file system maintenance tasks","file-management",93,"content:python:93.file-management.md","python/93.file-management.md","python/93.file-management",{"_path":854,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":855,"description":856,"slug":857,"order":858,"isParent":13,"icon":14,"_type":15,"_id":859,"_source":17,"_file":860,"_stem":861,"_extension":20,"children":862},"/python/code-organization","Code Organization","Master Python code organization with modules, built-in libraries, and path management for creating maintainable and reusable applications","code-organization",94,"content:python:94.code-organization.md","python/94.code-organization.md","python/94.code-organization",[863,872,881],{"_path":864,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":865,"description":866,"slug":867,"parentId":854,"order":868,"_type":15,"_id":869,"_source":17,"_file":870,"_stem":871,"_extension":20},"/python/creating-modules","Creating Modules","Learn how to create custom Python modules, organize functions and classes, write reusable code components, and design effective module structures","creating-modules",95,"content:python:95.creating-modules.md","python/95.creating-modules.md","python/95.creating-modules",{"_path":873,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":874,"description":875,"slug":876,"parentId":854,"order":877,"_type":15,"_id":878,"_source":17,"_file":879,"_stem":880,"_extension":20},"/python/using-built-in-modules","Using Built-in Modules","Discover Python's extensive standard library and learn to effectively use built-in modules for common programming tasks, data processing, and system operations","using-built-in-modules",96,"content:python:96.using-built-in-modules.md","python/96.using-built-in-modules.md","python/96.using-built-in-modules",{"_path":882,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":883,"description":884,"slug":885,"parentId":854,"order":886,"_type":15,"_id":887,"_source":17,"_file":888,"_stem":889,"_extension":20},"/python/module-paths","Module Paths","Understand Python's module search system, manage import paths, work with packages, and organize larger projects with proper module path management","module-paths",97,"content:python:97.module-paths.md","python/97.module-paths.md","python/97.module-paths",{"_path":891,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":892,"description":893,"slug":894,"order":895,"isParent":13,"icon":14,"_type":15,"_id":896,"_source":17,"_file":897,"_stem":898,"_extension":20,"children":899,"expanded":13},"/python/reference-materials","Reference Materials","Comprehensive Python reference materials including reserved words, built-in functions, and operation guides for quick lookup and development support","reference-materials",98,"content:python:98.reference-materials.md","python/98.reference-materials.md","python/98.reference-materials",[900,909,918,927,936,945,953,961,970],{"_path":901,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":902,"description":903,"slug":904,"parentId":891,"order":905,"_type":15,"_id":906,"_source":17,"_file":907,"_stem":908,"_extension":20},"/python/reserved-words","Reserved Words","Complete reference of Python keywords and reserved words with descriptions, usage examples, and syntax guidelines","reserved-words",99,"content:python:99.reserved-words.md","python/99.reserved-words.md","python/99.reserved-words",{"_path":910,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":911,"description":912,"slug":913,"parentId":891,"order":914,"_type":15,"_id":915,"_source":17,"_file":916,"_stem":917,"_extension":20},"/python/built-in-functions","Built-in Functions","Comprehensive reference of Python's built-in functions with parameters, return values, and practical usage examples","built-in-functions",100,"content:python:100.built-in-functions.md","python/100.built-in-functions.md","python/100.built-in-functions",{"_path":919,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":920,"description":921,"slug":922,"parentId":891,"order":923,"_type":15,"_id":924,"_source":17,"_file":925,"_stem":926,"_extension":20},"/python/string-operations","String Operations","Complete reference of Python string methods, operations, and formatting techniques with examples and use cases","string-operations",101,"content:python:101.string-operations.md","python/101.string-operations.md","python/101.string-operations",{"_path":928,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":929,"description":930,"slug":931,"parentId":891,"order":932,"_type":15,"_id":933,"_source":17,"_file":934,"_stem":935,"_extension":20},"/python/list-operations","List Operations","Complete reference of Python list methods, operations, and manipulation techniques with examples and performance notes","list-operations",102,"content:python:102.list-operations.md","python/102.list-operations.md","python/102.list-operations",{"_path":937,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":938,"description":939,"slug":940,"parentId":891,"order":941,"_type":15,"_id":942,"_source":17,"_file":943,"_stem":944,"_extension":20},"/python/dictionary-operations","Dictionary Operations","Complete reference of Python dictionary methods, operations, and manipulation techniques with examples and use cases","dictionary-operations",103,"content:python:103.dictionary-operations.md","python/103.dictionary-operations.md","python/103.dictionary-operations",{"_path":946,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":435,"description":947,"slug":948,"parentId":891,"order":949,"_type":15,"_id":950,"_source":17,"_file":951,"_stem":952,"_extension":20},"/python/tuple-methods","Complete reference of Python tuple operations, methods, and techniques with examples and use cases","tuple-methods",104,"content:python:104.tuple-methods.md","python/104.tuple-methods.md","python/104.tuple-methods",{"_path":954,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":508,"description":955,"slug":956,"parentId":891,"order":957,"_type":15,"_id":958,"_source":17,"_file":959,"_stem":960,"_extension":20},"/python/set-methods","Complete reference of Python set operations, methods, and mathematical set operations with examples and use cases","set-methods",105,"content:python:105.set-methods.md","python/105.set-methods.md","python/105.set-methods",{"_path":962,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":963,"description":964,"slug":965,"parentId":891,"order":966,"_type":15,"_id":967,"_source":17,"_file":968,"_stem":969,"_extension":20},"/python/file-operations-reference","File Operations Reference","Complete reference of Python file operations, modes, methods, and file handling techniques with examples","file-operations-reference",106,"content:python:106.file-operations-reference.md","python/106.file-operations-reference.md","python/106.file-operations-reference",{"_path":971,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":972,"description":973,"slug":974,"parentId":891,"order":975,"_type":15,"_id":976,"_source":17,"_file":977,"_stem":978,"_extension":20},"/python/error-types","Error Types","Complete reference of Python exception types, error handling patterns, and debugging techniques with examples","error-types",107,"content:python:107.error-types.md","python/107.error-types.md","python/107.error-types",{"_path":980,"_dir":8,"_draft":7,"_partial":7,"_locale":8,"title":981,"description":10,"slug":982,"order":983,"icon":14,"_type":15,"_id":984,"_source":17,"_file":985,"_stem":986,"_extension":20},"/python","Introduction","python-tutorial",0,"content:python:index.md","python/index.md","python/index",[616],{"_path":617,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":618,"description":619,"slug":620,"parentId":607,"order":621,"body":989,"_type":15,"_id":622,"_source":17,"_file":623,"_stem":624,"_extension":20},{"type":990,"children":991,"toc":5302},"root",[992,1000,1006,1214,1221,1233,1484,1550,1556,1561,1568,1573,1900,1906,1911,2304,2310,2315,2706,2712,2717,3175,3181,3325,3331,3337,3342,3863,3869,3874,4367,4371,4376,4821,4877,4882,5014,5020,5243,5256,5262,5267,5274,5280,5285,5296],{"type":993,"tag":994,"props":995,"children":996},"element","h1",{"id":620},[997],{"type":998,"value":999},"text","🔧 Function Basics",{"type":993,"tag":1001,"props":1002,"children":1003},"p",{},[1004],{"type":998,"value":1005},"Functions are the building blocks of organized, reusable code in Python. They allow you to group related statements together, eliminate repetition, and create modular programs that are easier to understand, test, and maintain.",{"type":993,"tag":1007,"props":1008,"children":1009},"code-try",{},[1010],{"type":993,"tag":1011,"props":1012,"children":1015},"pre",{"className":1013,"code":1014,"language":6,"meta":8,"style":8},"language-python shiki shiki-themes github-light github-dark","# Basic function definition and usage\ndef greet_user(name):\n    \"\"\"Say hello to a user\"\"\"\n    return f\"Hello, {name}! Welcome to Python!\"\n\n# Call the function\nmessage = greet_user(\"Alice\")\nprint(message)\n\n# Call it multiple times\nprint(greet_user(\"Bob\"))\nprint(greet_user(\"Charlie\"))\n",[1016],{"type":993,"tag":1017,"props":1018,"children":1019},"code",{"__ignoreMap":8},[1020,1031,1052,1061,1100,1108,1116,1144,1157,1164,1172,1194],{"type":993,"tag":1021,"props":1022,"children":1024},"span",{"class":1023,"line":12},"line",[1025],{"type":993,"tag":1021,"props":1026,"children":1028},{"style":1027},"--shiki-default:#6A737D;--shiki-app-dark-mode:#6A737D",[1029],{"type":998,"value":1030},"# Basic function definition and usage\n",{"type":993,"tag":1021,"props":1032,"children":1033},{"class":1023,"line":27},[1034,1040,1046],{"type":993,"tag":1021,"props":1035,"children":1037},{"style":1036},"--shiki-default:#D73A49;--shiki-app-dark-mode:#F97583",[1038],{"type":998,"value":1039},"def",{"type":993,"tag":1021,"props":1041,"children":1043},{"style":1042},"--shiki-default:#6F42C1;--shiki-app-dark-mode:#B392F0",[1044],{"type":998,"value":1045}," greet_user",{"type":993,"tag":1021,"props":1047,"children":1049},{"style":1048},"--shiki-default:#24292E;--shiki-app-dark-mode:#E1E4E8",[1050],{"type":998,"value":1051},"(name):\n",{"type":993,"tag":1021,"props":1053,"children":1054},{"class":1023,"line":36},[1055],{"type":993,"tag":1021,"props":1056,"children":1058},{"style":1057},"--shiki-default:#032F62;--shiki-app-dark-mode:#9ECBFF",[1059],{"type":998,"value":1060},"    \"\"\"Say hello to a user\"\"\"\n",{"type":993,"tag":1021,"props":1062,"children":1063},{"class":1023,"line":45},[1064,1069,1074,1079,1085,1090,1095],{"type":993,"tag":1021,"props":1065,"children":1066},{"style":1036},[1067],{"type":998,"value":1068},"    return",{"type":993,"tag":1021,"props":1070,"children":1071},{"style":1036},[1072],{"type":998,"value":1073}," f",{"type":993,"tag":1021,"props":1075,"children":1076},{"style":1057},[1077],{"type":998,"value":1078},"\"Hello, ",{"type":993,"tag":1021,"props":1080,"children":1082},{"style":1081},"--shiki-default:#005CC5;--shiki-app-dark-mode:#79B8FF",[1083],{"type":998,"value":1084},"{",{"type":993,"tag":1021,"props":1086,"children":1087},{"style":1048},[1088],{"type":998,"value":1089},"name",{"type":993,"tag":1021,"props":1091,"children":1092},{"style":1081},[1093],{"type":998,"value":1094},"}",{"type":993,"tag":1021,"props":1096,"children":1097},{"style":1057},[1098],{"type":998,"value":1099},"! Welcome to Python!\"\n",{"type":993,"tag":1021,"props":1101,"children":1102},{"class":1023,"line":54},[1103],{"type":993,"tag":1021,"props":1104,"children":1105},{"emptyLinePlaceholder":13},[1106],{"type":998,"value":1107},"\n",{"type":993,"tag":1021,"props":1109,"children":1110},{"class":1023,"line":63},[1111],{"type":993,"tag":1021,"props":1112,"children":1113},{"style":1027},[1114],{"type":998,"value":1115},"# Call the function\n",{"type":993,"tag":1021,"props":1117,"children":1118},{"class":1023,"line":72},[1119,1124,1129,1134,1139],{"type":993,"tag":1021,"props":1120,"children":1121},{"style":1048},[1122],{"type":998,"value":1123},"message ",{"type":993,"tag":1021,"props":1125,"children":1126},{"style":1036},[1127],{"type":998,"value":1128},"=",{"type":993,"tag":1021,"props":1130,"children":1131},{"style":1048},[1132],{"type":998,"value":1133}," greet_user(",{"type":993,"tag":1021,"props":1135,"children":1136},{"style":1057},[1137],{"type":998,"value":1138},"\"Alice\"",{"type":993,"tag":1021,"props":1140,"children":1141},{"style":1048},[1142],{"type":998,"value":1143},")\n",{"type":993,"tag":1021,"props":1145,"children":1146},{"class":1023,"line":81},[1147,1152],{"type":993,"tag":1021,"props":1148,"children":1149},{"style":1081},[1150],{"type":998,"value":1151},"print",{"type":993,"tag":1021,"props":1153,"children":1154},{"style":1048},[1155],{"type":998,"value":1156},"(message)\n",{"type":993,"tag":1021,"props":1158,"children":1159},{"class":1023,"line":91},[1160],{"type":993,"tag":1021,"props":1161,"children":1162},{"emptyLinePlaceholder":13},[1163],{"type":998,"value":1107},{"type":993,"tag":1021,"props":1165,"children":1166},{"class":1023,"line":100},[1167],{"type":993,"tag":1021,"props":1168,"children":1169},{"style":1027},[1170],{"type":998,"value":1171},"# Call it multiple times\n",{"type":993,"tag":1021,"props":1173,"children":1174},{"class":1023,"line":109},[1175,1179,1184,1189],{"type":993,"tag":1021,"props":1176,"children":1177},{"style":1081},[1178],{"type":998,"value":1151},{"type":993,"tag":1021,"props":1180,"children":1181},{"style":1048},[1182],{"type":998,"value":1183},"(greet_user(",{"type":993,"tag":1021,"props":1185,"children":1186},{"style":1057},[1187],{"type":998,"value":1188},"\"Bob\"",{"type":993,"tag":1021,"props":1190,"children":1191},{"style":1048},[1192],{"type":998,"value":1193},"))\n",{"type":993,"tag":1021,"props":1195,"children":1196},{"class":1023,"line":118},[1197,1201,1205,1210],{"type":993,"tag":1021,"props":1198,"children":1199},{"style":1081},[1200],{"type":998,"value":1151},{"type":993,"tag":1021,"props":1202,"children":1203},{"style":1048},[1204],{"type":998,"value":1183},{"type":993,"tag":1021,"props":1206,"children":1207},{"style":1057},[1208],{"type":998,"value":1209},"\"Charlie\"",{"type":993,"tag":1021,"props":1211,"children":1212},{"style":1048},[1213],{"type":998,"value":1193},{"type":993,"tag":1215,"props":1216,"children":1218},"h2",{"id":1217},"creating-your-first-function",[1219],{"type":998,"value":1220},"🎯 Creating Your First Function",{"type":993,"tag":1001,"props":1222,"children":1223},{},[1224,1226,1231],{"type":998,"value":1225},"Function creation in Python uses the ",{"type":993,"tag":1017,"props":1227,"children":1229},{"className":1228},[],[1230],{"type":998,"value":1039},{"type":998,"value":1232}," keyword followed by the function name and parentheses. The colon starts the function body, which should be indented consistently.",{"type":993,"tag":1007,"props":1234,"children":1235},{},[1236],{"type":993,"tag":1011,"props":1237,"children":1239},{"className":1013,"code":1238,"language":6,"meta":8,"style":8},"def calculate_area(length, width):\n    \"\"\"Calculate the area of a rectangle\"\"\"\n    area = length * width\n    return area\n\n# Use the function\nroom_area = calculate_area(12, 10)\nprint(f\"Room area: {room_area} square feet\")\n\ngarden_area = calculate_area(8, 6)\nprint(f\"Garden area: {garden_area} square feet\")\n",[1240],{"type":993,"tag":1017,"props":1241,"children":1242},{"__ignoreMap":8},[1243,1260,1268,1295,1307,1314,1322,1358,1402,1409,1443],{"type":993,"tag":1021,"props":1244,"children":1245},{"class":1023,"line":12},[1246,1250,1255],{"type":993,"tag":1021,"props":1247,"children":1248},{"style":1036},[1249],{"type":998,"value":1039},{"type":993,"tag":1021,"props":1251,"children":1252},{"style":1042},[1253],{"type":998,"value":1254}," calculate_area",{"type":993,"tag":1021,"props":1256,"children":1257},{"style":1048},[1258],{"type":998,"value":1259},"(length, width):\n",{"type":993,"tag":1021,"props":1261,"children":1262},{"class":1023,"line":27},[1263],{"type":993,"tag":1021,"props":1264,"children":1265},{"style":1057},[1266],{"type":998,"value":1267},"    \"\"\"Calculate the area of a rectangle\"\"\"\n",{"type":993,"tag":1021,"props":1269,"children":1270},{"class":1023,"line":36},[1271,1276,1280,1285,1290],{"type":993,"tag":1021,"props":1272,"children":1273},{"style":1048},[1274],{"type":998,"value":1275},"    area ",{"type":993,"tag":1021,"props":1277,"children":1278},{"style":1036},[1279],{"type":998,"value":1128},{"type":993,"tag":1021,"props":1281,"children":1282},{"style":1048},[1283],{"type":998,"value":1284}," length ",{"type":993,"tag":1021,"props":1286,"children":1287},{"style":1036},[1288],{"type":998,"value":1289},"*",{"type":993,"tag":1021,"props":1291,"children":1292},{"style":1048},[1293],{"type":998,"value":1294}," width\n",{"type":993,"tag":1021,"props":1296,"children":1297},{"class":1023,"line":45},[1298,1302],{"type":993,"tag":1021,"props":1299,"children":1300},{"style":1036},[1301],{"type":998,"value":1068},{"type":993,"tag":1021,"props":1303,"children":1304},{"style":1048},[1305],{"type":998,"value":1306}," area\n",{"type":993,"tag":1021,"props":1308,"children":1309},{"class":1023,"line":54},[1310],{"type":993,"tag":1021,"props":1311,"children":1312},{"emptyLinePlaceholder":13},[1313],{"type":998,"value":1107},{"type":993,"tag":1021,"props":1315,"children":1316},{"class":1023,"line":63},[1317],{"type":993,"tag":1021,"props":1318,"children":1319},{"style":1027},[1320],{"type":998,"value":1321},"# Use the function\n",{"type":993,"tag":1021,"props":1323,"children":1324},{"class":1023,"line":72},[1325,1330,1334,1339,1344,1349,1354],{"type":993,"tag":1021,"props":1326,"children":1327},{"style":1048},[1328],{"type":998,"value":1329},"room_area ",{"type":993,"tag":1021,"props":1331,"children":1332},{"style":1036},[1333],{"type":998,"value":1128},{"type":993,"tag":1021,"props":1335,"children":1336},{"style":1048},[1337],{"type":998,"value":1338}," calculate_area(",{"type":993,"tag":1021,"props":1340,"children":1341},{"style":1081},[1342],{"type":998,"value":1343},"12",{"type":993,"tag":1021,"props":1345,"children":1346},{"style":1048},[1347],{"type":998,"value":1348},", ",{"type":993,"tag":1021,"props":1350,"children":1351},{"style":1081},[1352],{"type":998,"value":1353},"10",{"type":993,"tag":1021,"props":1355,"children":1356},{"style":1048},[1357],{"type":998,"value":1143},{"type":993,"tag":1021,"props":1359,"children":1360},{"class":1023,"line":81},[1361,1365,1370,1375,1380,1384,1389,1393,1398],{"type":993,"tag":1021,"props":1362,"children":1363},{"style":1081},[1364],{"type":998,"value":1151},{"type":993,"tag":1021,"props":1366,"children":1367},{"style":1048},[1368],{"type":998,"value":1369},"(",{"type":993,"tag":1021,"props":1371,"children":1372},{"style":1036},[1373],{"type":998,"value":1374},"f",{"type":993,"tag":1021,"props":1376,"children":1377},{"style":1057},[1378],{"type":998,"value":1379},"\"Room area: ",{"type":993,"tag":1021,"props":1381,"children":1382},{"style":1081},[1383],{"type":998,"value":1084},{"type":993,"tag":1021,"props":1385,"children":1386},{"style":1048},[1387],{"type":998,"value":1388},"room_area",{"type":993,"tag":1021,"props":1390,"children":1391},{"style":1081},[1392],{"type":998,"value":1094},{"type":993,"tag":1021,"props":1394,"children":1395},{"style":1057},[1396],{"type":998,"value":1397}," square feet\"",{"type":993,"tag":1021,"props":1399,"children":1400},{"style":1048},[1401],{"type":998,"value":1143},{"type":993,"tag":1021,"props":1403,"children":1404},{"class":1023,"line":91},[1405],{"type":993,"tag":1021,"props":1406,"children":1407},{"emptyLinePlaceholder":13},[1408],{"type":998,"value":1107},{"type":993,"tag":1021,"props":1410,"children":1411},{"class":1023,"line":100},[1412,1417,1421,1425,1430,1434,1439],{"type":993,"tag":1021,"props":1413,"children":1414},{"style":1048},[1415],{"type":998,"value":1416},"garden_area ",{"type":993,"tag":1021,"props":1418,"children":1419},{"style":1036},[1420],{"type":998,"value":1128},{"type":993,"tag":1021,"props":1422,"children":1423},{"style":1048},[1424],{"type":998,"value":1338},{"type":993,"tag":1021,"props":1426,"children":1427},{"style":1081},[1428],{"type":998,"value":1429},"8",{"type":993,"tag":1021,"props":1431,"children":1432},{"style":1048},[1433],{"type":998,"value":1348},{"type":993,"tag":1021,"props":1435,"children":1436},{"style":1081},[1437],{"type":998,"value":1438},"6",{"type":993,"tag":1021,"props":1440,"children":1441},{"style":1048},[1442],{"type":998,"value":1143},{"type":993,"tag":1021,"props":1444,"children":1445},{"class":1023,"line":109},[1446,1450,1454,1458,1463,1467,1472,1476,1480],{"type":993,"tag":1021,"props":1447,"children":1448},{"style":1081},[1449],{"type":998,"value":1151},{"type":993,"tag":1021,"props":1451,"children":1452},{"style":1048},[1453],{"type":998,"value":1369},{"type":993,"tag":1021,"props":1455,"children":1456},{"style":1036},[1457],{"type":998,"value":1374},{"type":993,"tag":1021,"props":1459,"children":1460},{"style":1057},[1461],{"type":998,"value":1462},"\"Garden area: ",{"type":993,"tag":1021,"props":1464,"children":1465},{"style":1081},[1466],{"type":998,"value":1084},{"type":993,"tag":1021,"props":1468,"children":1469},{"style":1048},[1470],{"type":998,"value":1471},"garden_area",{"type":993,"tag":1021,"props":1473,"children":1474},{"style":1081},[1475],{"type":998,"value":1094},{"type":993,"tag":1021,"props":1477,"children":1478},{"style":1057},[1479],{"type":998,"value":1397},{"type":993,"tag":1021,"props":1481,"children":1482},{"style":1048},[1483],{"type":998,"value":1143},{"type":993,"tag":1485,"props":1486,"children":1490},"info-box",{"emoji":1487,"title":1488,"type":1489},"📝","Function Definition Rules","info",[1491,1502,1512,1522,1540],{"type":993,"tag":1001,"props":1492,"children":1493},{},[1494,1500],{"type":993,"tag":1495,"props":1496,"children":1497},"strong",{},[1498],{"type":998,"value":1499},"Naming:",{"type":998,"value":1501}," Use descriptive names with lowercase and underscores (snake_case).",{"type":993,"tag":1001,"props":1503,"children":1504},{},[1505,1510],{"type":993,"tag":1495,"props":1506,"children":1507},{},[1508],{"type":998,"value":1509},"Parameters:",{"type":998,"value":1511}," Define inputs the function needs inside parentheses.",{"type":993,"tag":1001,"props":1513,"children":1514},{},[1515,1520],{"type":993,"tag":1495,"props":1516,"children":1517},{},[1518],{"type":998,"value":1519},"Docstring:",{"type":998,"value":1521}," Add a brief description of what the function does (optional but recommended).",{"type":993,"tag":1001,"props":1523,"children":1524},{},[1525,1530,1532,1538],{"type":993,"tag":1495,"props":1526,"children":1527},{},[1528],{"type":998,"value":1529},"Return:",{"type":998,"value":1531}," Use ",{"type":993,"tag":1017,"props":1533,"children":1535},{"className":1534},[],[1536],{"type":998,"value":1537},"return",{"type":998,"value":1539}," to send a value back to the caller.",{"type":993,"tag":1001,"props":1541,"children":1542},{},[1543,1548],{"type":993,"tag":1495,"props":1544,"children":1545},{},[1546],{"type":998,"value":1547},"Indentation:",{"type":998,"value":1549}," Function body must be consistently indented (usually 4 spaces).",{"type":993,"tag":1215,"props":1551,"children":1553},{"id":1552},"function-components",[1554],{"type":998,"value":1555},"⚡ Function Components",{"type":993,"tag":1001,"props":1557,"children":1558},{},[1559],{"type":998,"value":1560},"Understanding the anatomy of functions helps you write better, more maintainable code. Each part serves a specific purpose in making your functions clear and useful.",{"type":993,"tag":1562,"props":1563,"children":1565},"h3",{"id":1564},"function-name-and-parameters",[1566],{"type":998,"value":1567},"Function Name and Parameters",{"type":993,"tag":1001,"props":1569,"children":1570},{},[1571],{"type":998,"value":1572},"Choosing descriptive names and clear parameters makes your functions self-documenting and easier to use.",{"type":993,"tag":1007,"props":1574,"children":1575},{},[1576],{"type":993,"tag":1011,"props":1577,"children":1579},{"className":1013,"code":1578,"language":6,"meta":8,"style":8},"def convert_temperature(celsius):\n    \"\"\"Convert Celsius to Fahrenheit\"\"\"\n    fahrenheit = (celsius * 9/5) + 32\n    return fahrenheit\n\ndef format_currency(amount):\n    \"\"\"Format number as currency string\"\"\"\n    return f\"${amount:,.2f}\"\n\n# Test the functions\ntemp_f = convert_temperature(25)\nprice = format_currency(1234.56)\n\nprint(f\"25°C = {temp_f}°F\")\nprint(f\"Price: {price}\")\n",[1580],{"type":993,"tag":1017,"props":1581,"children":1582},{"__ignoreMap":8},[1583,1600,1608,1659,1671,1678,1695,1703,1742,1749,1757,1783,1809,1816,1858],{"type":993,"tag":1021,"props":1584,"children":1585},{"class":1023,"line":12},[1586,1590,1595],{"type":993,"tag":1021,"props":1587,"children":1588},{"style":1036},[1589],{"type":998,"value":1039},{"type":993,"tag":1021,"props":1591,"children":1592},{"style":1042},[1593],{"type":998,"value":1594}," convert_temperature",{"type":993,"tag":1021,"props":1596,"children":1597},{"style":1048},[1598],{"type":998,"value":1599},"(celsius):\n",{"type":993,"tag":1021,"props":1601,"children":1602},{"class":1023,"line":27},[1603],{"type":993,"tag":1021,"props":1604,"children":1605},{"style":1057},[1606],{"type":998,"value":1607},"    \"\"\"Convert Celsius to Fahrenheit\"\"\"\n",{"type":993,"tag":1021,"props":1609,"children":1610},{"class":1023,"line":36},[1611,1616,1620,1625,1629,1634,1639,1644,1649,1654],{"type":993,"tag":1021,"props":1612,"children":1613},{"style":1048},[1614],{"type":998,"value":1615},"    fahrenheit ",{"type":993,"tag":1021,"props":1617,"children":1618},{"style":1036},[1619],{"type":998,"value":1128},{"type":993,"tag":1021,"props":1621,"children":1622},{"style":1048},[1623],{"type":998,"value":1624}," (celsius ",{"type":993,"tag":1021,"props":1626,"children":1627},{"style":1036},[1628],{"type":998,"value":1289},{"type":993,"tag":1021,"props":1630,"children":1631},{"style":1081},[1632],{"type":998,"value":1633}," 9",{"type":993,"tag":1021,"props":1635,"children":1636},{"style":1036},[1637],{"type":998,"value":1638},"/",{"type":993,"tag":1021,"props":1640,"children":1641},{"style":1081},[1642],{"type":998,"value":1643},"5",{"type":993,"tag":1021,"props":1645,"children":1646},{"style":1048},[1647],{"type":998,"value":1648},") ",{"type":993,"tag":1021,"props":1650,"children":1651},{"style":1036},[1652],{"type":998,"value":1653},"+",{"type":993,"tag":1021,"props":1655,"children":1656},{"style":1081},[1657],{"type":998,"value":1658}," 32\n",{"type":993,"tag":1021,"props":1660,"children":1661},{"class":1023,"line":45},[1662,1666],{"type":993,"tag":1021,"props":1663,"children":1664},{"style":1036},[1665],{"type":998,"value":1068},{"type":993,"tag":1021,"props":1667,"children":1668},{"style":1048},[1669],{"type":998,"value":1670}," fahrenheit\n",{"type":993,"tag":1021,"props":1672,"children":1673},{"class":1023,"line":54},[1674],{"type":993,"tag":1021,"props":1675,"children":1676},{"emptyLinePlaceholder":13},[1677],{"type":998,"value":1107},{"type":993,"tag":1021,"props":1679,"children":1680},{"class":1023,"line":63},[1681,1685,1690],{"type":993,"tag":1021,"props":1682,"children":1683},{"style":1036},[1684],{"type":998,"value":1039},{"type":993,"tag":1021,"props":1686,"children":1687},{"style":1042},[1688],{"type":998,"value":1689}," format_currency",{"type":993,"tag":1021,"props":1691,"children":1692},{"style":1048},[1693],{"type":998,"value":1694},"(amount):\n",{"type":993,"tag":1021,"props":1696,"children":1697},{"class":1023,"line":72},[1698],{"type":993,"tag":1021,"props":1699,"children":1700},{"style":1057},[1701],{"type":998,"value":1702},"    \"\"\"Format number as currency string\"\"\"\n",{"type":993,"tag":1021,"props":1704,"children":1705},{"class":1023,"line":81},[1706,1710,1714,1719,1723,1728,1733,1737],{"type":993,"tag":1021,"props":1707,"children":1708},{"style":1036},[1709],{"type":998,"value":1068},{"type":993,"tag":1021,"props":1711,"children":1712},{"style":1036},[1713],{"type":998,"value":1073},{"type":993,"tag":1021,"props":1715,"children":1716},{"style":1057},[1717],{"type":998,"value":1718},"\"$",{"type":993,"tag":1021,"props":1720,"children":1721},{"style":1081},[1722],{"type":998,"value":1084},{"type":993,"tag":1021,"props":1724,"children":1725},{"style":1048},[1726],{"type":998,"value":1727},"amount",{"type":993,"tag":1021,"props":1729,"children":1730},{"style":1036},[1731],{"type":998,"value":1732},":,.2f",{"type":993,"tag":1021,"props":1734,"children":1735},{"style":1081},[1736],{"type":998,"value":1094},{"type":993,"tag":1021,"props":1738,"children":1739},{"style":1057},[1740],{"type":998,"value":1741},"\"\n",{"type":993,"tag":1021,"props":1743,"children":1744},{"class":1023,"line":91},[1745],{"type":993,"tag":1021,"props":1746,"children":1747},{"emptyLinePlaceholder":13},[1748],{"type":998,"value":1107},{"type":993,"tag":1021,"props":1750,"children":1751},{"class":1023,"line":100},[1752],{"type":993,"tag":1021,"props":1753,"children":1754},{"style":1027},[1755],{"type":998,"value":1756},"# Test the functions\n",{"type":993,"tag":1021,"props":1758,"children":1759},{"class":1023,"line":109},[1760,1765,1769,1774,1779],{"type":993,"tag":1021,"props":1761,"children":1762},{"style":1048},[1763],{"type":998,"value":1764},"temp_f ",{"type":993,"tag":1021,"props":1766,"children":1767},{"style":1036},[1768],{"type":998,"value":1128},{"type":993,"tag":1021,"props":1770,"children":1771},{"style":1048},[1772],{"type":998,"value":1773}," convert_temperature(",{"type":993,"tag":1021,"props":1775,"children":1776},{"style":1081},[1777],{"type":998,"value":1778},"25",{"type":993,"tag":1021,"props":1780,"children":1781},{"style":1048},[1782],{"type":998,"value":1143},{"type":993,"tag":1021,"props":1784,"children":1785},{"class":1023,"line":118},[1786,1791,1795,1800,1805],{"type":993,"tag":1021,"props":1787,"children":1788},{"style":1048},[1789],{"type":998,"value":1790},"price ",{"type":993,"tag":1021,"props":1792,"children":1793},{"style":1036},[1794],{"type":998,"value":1128},{"type":993,"tag":1021,"props":1796,"children":1797},{"style":1048},[1798],{"type":998,"value":1799}," format_currency(",{"type":993,"tag":1021,"props":1801,"children":1802},{"style":1081},[1803],{"type":998,"value":1804},"1234.56",{"type":993,"tag":1021,"props":1806,"children":1807},{"style":1048},[1808],{"type":998,"value":1143},{"type":993,"tag":1021,"props":1810,"children":1811},{"class":1023,"line":127},[1812],{"type":993,"tag":1021,"props":1813,"children":1814},{"emptyLinePlaceholder":13},[1815],{"type":998,"value":1107},{"type":993,"tag":1021,"props":1817,"children":1818},{"class":1023,"line":136},[1819,1823,1827,1831,1836,1840,1845,1849,1854],{"type":993,"tag":1021,"props":1820,"children":1821},{"style":1081},[1822],{"type":998,"value":1151},{"type":993,"tag":1021,"props":1824,"children":1825},{"style":1048},[1826],{"type":998,"value":1369},{"type":993,"tag":1021,"props":1828,"children":1829},{"style":1036},[1830],{"type":998,"value":1374},{"type":993,"tag":1021,"props":1832,"children":1833},{"style":1057},[1834],{"type":998,"value":1835},"\"25°C = ",{"type":993,"tag":1021,"props":1837,"children":1838},{"style":1081},[1839],{"type":998,"value":1084},{"type":993,"tag":1021,"props":1841,"children":1842},{"style":1048},[1843],{"type":998,"value":1844},"temp_f",{"type":993,"tag":1021,"props":1846,"children":1847},{"style":1081},[1848],{"type":998,"value":1094},{"type":993,"tag":1021,"props":1850,"children":1851},{"style":1057},[1852],{"type":998,"value":1853},"°F\"",{"type":993,"tag":1021,"props":1855,"children":1856},{"style":1048},[1857],{"type":998,"value":1143},{"type":993,"tag":1021,"props":1859,"children":1860},{"class":1023,"line":146},[1861,1865,1869,1873,1878,1882,1887,1891,1896],{"type":993,"tag":1021,"props":1862,"children":1863},{"style":1081},[1864],{"type":998,"value":1151},{"type":993,"tag":1021,"props":1866,"children":1867},{"style":1048},[1868],{"type":998,"value":1369},{"type":993,"tag":1021,"props":1870,"children":1871},{"style":1036},[1872],{"type":998,"value":1374},{"type":993,"tag":1021,"props":1874,"children":1875},{"style":1057},[1876],{"type":998,"value":1877},"\"Price: ",{"type":993,"tag":1021,"props":1879,"children":1880},{"style":1081},[1881],{"type":998,"value":1084},{"type":993,"tag":1021,"props":1883,"children":1884},{"style":1048},[1885],{"type":998,"value":1886},"price",{"type":993,"tag":1021,"props":1888,"children":1889},{"style":1081},[1890],{"type":998,"value":1094},{"type":993,"tag":1021,"props":1892,"children":1893},{"style":1057},[1894],{"type":998,"value":1895},"\"",{"type":993,"tag":1021,"props":1897,"children":1898},{"style":1048},[1899],{"type":998,"value":1143},{"type":993,"tag":1562,"props":1901,"children":1903},{"id":1902},"return-statements",[1904],{"type":998,"value":1905},"Return Statements",{"type":993,"tag":1001,"props":1907,"children":1908},{},[1909],{"type":998,"value":1910},"Return statements send values back to the function caller and immediately exit the function.",{"type":993,"tag":1007,"props":1912,"children":1913},{},[1914],{"type":993,"tag":1011,"props":1915,"children":1917},{"className":1013,"code":1916,"language":6,"meta":8,"style":8},"def get_grade(score):\n    \"\"\"Convert numeric score to letter grade\"\"\"\n    if score >= 90:\n        return \"A\"\n    elif score >= 80:\n        return \"B\"\n    elif score >= 70:\n        return \"C\"\n    else:\n        return \"F\"\n\ndef is_even(number):\n    \"\"\"Check if a number is even\"\"\"\n    return number % 2 == 0\n\n# Test different return types\ngrade = get_grade(85)\neven_check = is_even(42)\n\nprint(f\"Grade: {grade}\")\nprint(f\"42 is even: {even_check}\")\n",[1918],{"type":993,"tag":1017,"props":1919,"children":1920},{"__ignoreMap":8},[1921,1938,1946,1974,1987,2012,2024,2048,2060,2072,2084,2091,2108,2116,2148,2155,2163,2189,2215,2222,2263],{"type":993,"tag":1021,"props":1922,"children":1923},{"class":1023,"line":12},[1924,1928,1933],{"type":993,"tag":1021,"props":1925,"children":1926},{"style":1036},[1927],{"type":998,"value":1039},{"type":993,"tag":1021,"props":1929,"children":1930},{"style":1042},[1931],{"type":998,"value":1932}," get_grade",{"type":993,"tag":1021,"props":1934,"children":1935},{"style":1048},[1936],{"type":998,"value":1937},"(score):\n",{"type":993,"tag":1021,"props":1939,"children":1940},{"class":1023,"line":27},[1941],{"type":993,"tag":1021,"props":1942,"children":1943},{"style":1057},[1944],{"type":998,"value":1945},"    \"\"\"Convert numeric score to letter grade\"\"\"\n",{"type":993,"tag":1021,"props":1947,"children":1948},{"class":1023,"line":36},[1949,1954,1959,1964,1969],{"type":993,"tag":1021,"props":1950,"children":1951},{"style":1036},[1952],{"type":998,"value":1953},"    if",{"type":993,"tag":1021,"props":1955,"children":1956},{"style":1048},[1957],{"type":998,"value":1958}," score ",{"type":993,"tag":1021,"props":1960,"children":1961},{"style":1036},[1962],{"type":998,"value":1963},">=",{"type":993,"tag":1021,"props":1965,"children":1966},{"style":1081},[1967],{"type":998,"value":1968}," 90",{"type":993,"tag":1021,"props":1970,"children":1971},{"style":1048},[1972],{"type":998,"value":1973},":\n",{"type":993,"tag":1021,"props":1975,"children":1976},{"class":1023,"line":45},[1977,1982],{"type":993,"tag":1021,"props":1978,"children":1979},{"style":1036},[1980],{"type":998,"value":1981},"        return",{"type":993,"tag":1021,"props":1983,"children":1984},{"style":1057},[1985],{"type":998,"value":1986}," \"A\"\n",{"type":993,"tag":1021,"props":1988,"children":1989},{"class":1023,"line":54},[1990,1995,1999,2003,2008],{"type":993,"tag":1021,"props":1991,"children":1992},{"style":1036},[1993],{"type":998,"value":1994},"    elif",{"type":993,"tag":1021,"props":1996,"children":1997},{"style":1048},[1998],{"type":998,"value":1958},{"type":993,"tag":1021,"props":2000,"children":2001},{"style":1036},[2002],{"type":998,"value":1963},{"type":993,"tag":1021,"props":2004,"children":2005},{"style":1081},[2006],{"type":998,"value":2007}," 80",{"type":993,"tag":1021,"props":2009,"children":2010},{"style":1048},[2011],{"type":998,"value":1973},{"type":993,"tag":1021,"props":2013,"children":2014},{"class":1023,"line":63},[2015,2019],{"type":993,"tag":1021,"props":2016,"children":2017},{"style":1036},[2018],{"type":998,"value":1981},{"type":993,"tag":1021,"props":2020,"children":2021},{"style":1057},[2022],{"type":998,"value":2023}," \"B\"\n",{"type":993,"tag":1021,"props":2025,"children":2026},{"class":1023,"line":72},[2027,2031,2035,2039,2044],{"type":993,"tag":1021,"props":2028,"children":2029},{"style":1036},[2030],{"type":998,"value":1994},{"type":993,"tag":1021,"props":2032,"children":2033},{"style":1048},[2034],{"type":998,"value":1958},{"type":993,"tag":1021,"props":2036,"children":2037},{"style":1036},[2038],{"type":998,"value":1963},{"type":993,"tag":1021,"props":2040,"children":2041},{"style":1081},[2042],{"type":998,"value":2043}," 70",{"type":993,"tag":1021,"props":2045,"children":2046},{"style":1048},[2047],{"type":998,"value":1973},{"type":993,"tag":1021,"props":2049,"children":2050},{"class":1023,"line":81},[2051,2055],{"type":993,"tag":1021,"props":2052,"children":2053},{"style":1036},[2054],{"type":998,"value":1981},{"type":993,"tag":1021,"props":2056,"children":2057},{"style":1057},[2058],{"type":998,"value":2059}," \"C\"\n",{"type":993,"tag":1021,"props":2061,"children":2062},{"class":1023,"line":91},[2063,2068],{"type":993,"tag":1021,"props":2064,"children":2065},{"style":1036},[2066],{"type":998,"value":2067},"    else",{"type":993,"tag":1021,"props":2069,"children":2070},{"style":1048},[2071],{"type":998,"value":1973},{"type":993,"tag":1021,"props":2073,"children":2074},{"class":1023,"line":100},[2075,2079],{"type":993,"tag":1021,"props":2076,"children":2077},{"style":1036},[2078],{"type":998,"value":1981},{"type":993,"tag":1021,"props":2080,"children":2081},{"style":1057},[2082],{"type":998,"value":2083}," \"F\"\n",{"type":993,"tag":1021,"props":2085,"children":2086},{"class":1023,"line":109},[2087],{"type":993,"tag":1021,"props":2088,"children":2089},{"emptyLinePlaceholder":13},[2090],{"type":998,"value":1107},{"type":993,"tag":1021,"props":2092,"children":2093},{"class":1023,"line":118},[2094,2098,2103],{"type":993,"tag":1021,"props":2095,"children":2096},{"style":1036},[2097],{"type":998,"value":1039},{"type":993,"tag":1021,"props":2099,"children":2100},{"style":1042},[2101],{"type":998,"value":2102}," is_even",{"type":993,"tag":1021,"props":2104,"children":2105},{"style":1048},[2106],{"type":998,"value":2107},"(number):\n",{"type":993,"tag":1021,"props":2109,"children":2110},{"class":1023,"line":127},[2111],{"type":993,"tag":1021,"props":2112,"children":2113},{"style":1057},[2114],{"type":998,"value":2115},"    \"\"\"Check if a number is even\"\"\"\n",{"type":993,"tag":1021,"props":2117,"children":2118},{"class":1023,"line":136},[2119,2123,2128,2133,2138,2143],{"type":993,"tag":1021,"props":2120,"children":2121},{"style":1036},[2122],{"type":998,"value":1068},{"type":993,"tag":1021,"props":2124,"children":2125},{"style":1048},[2126],{"type":998,"value":2127}," number ",{"type":993,"tag":1021,"props":2129,"children":2130},{"style":1036},[2131],{"type":998,"value":2132},"%",{"type":993,"tag":1021,"props":2134,"children":2135},{"style":1081},[2136],{"type":998,"value":2137}," 2",{"type":993,"tag":1021,"props":2139,"children":2140},{"style":1036},[2141],{"type":998,"value":2142}," ==",{"type":993,"tag":1021,"props":2144,"children":2145},{"style":1081},[2146],{"type":998,"value":2147}," 0\n",{"type":993,"tag":1021,"props":2149,"children":2150},{"class":1023,"line":146},[2151],{"type":993,"tag":1021,"props":2152,"children":2153},{"emptyLinePlaceholder":13},[2154],{"type":998,"value":1107},{"type":993,"tag":1021,"props":2156,"children":2157},{"class":1023,"line":155},[2158],{"type":993,"tag":1021,"props":2159,"children":2160},{"style":1027},[2161],{"type":998,"value":2162},"# Test different return types\n",{"type":993,"tag":1021,"props":2164,"children":2165},{"class":1023,"line":164},[2166,2171,2175,2180,2185],{"type":993,"tag":1021,"props":2167,"children":2168},{"style":1048},[2169],{"type":998,"value":2170},"grade ",{"type":993,"tag":1021,"props":2172,"children":2173},{"style":1036},[2174],{"type":998,"value":1128},{"type":993,"tag":1021,"props":2176,"children":2177},{"style":1048},[2178],{"type":998,"value":2179}," get_grade(",{"type":993,"tag":1021,"props":2181,"children":2182},{"style":1081},[2183],{"type":998,"value":2184},"85",{"type":993,"tag":1021,"props":2186,"children":2187},{"style":1048},[2188],{"type":998,"value":1143},{"type":993,"tag":1021,"props":2190,"children":2191},{"class":1023,"line":173},[2192,2197,2201,2206,2211],{"type":993,"tag":1021,"props":2193,"children":2194},{"style":1048},[2195],{"type":998,"value":2196},"even_check ",{"type":993,"tag":1021,"props":2198,"children":2199},{"style":1036},[2200],{"type":998,"value":1128},{"type":993,"tag":1021,"props":2202,"children":2203},{"style":1048},[2204],{"type":998,"value":2205}," is_even(",{"type":993,"tag":1021,"props":2207,"children":2208},{"style":1081},[2209],{"type":998,"value":2210},"42",{"type":993,"tag":1021,"props":2212,"children":2213},{"style":1048},[2214],{"type":998,"value":1143},{"type":993,"tag":1021,"props":2216,"children":2217},{"class":1023,"line":182},[2218],{"type":993,"tag":1021,"props":2219,"children":2220},{"emptyLinePlaceholder":13},[2221],{"type":998,"value":1107},{"type":993,"tag":1021,"props":2223,"children":2224},{"class":1023,"line":191},[2225,2229,2233,2237,2242,2246,2251,2255,2259],{"type":993,"tag":1021,"props":2226,"children":2227},{"style":1081},[2228],{"type":998,"value":1151},{"type":993,"tag":1021,"props":2230,"children":2231},{"style":1048},[2232],{"type":998,"value":1369},{"type":993,"tag":1021,"props":2234,"children":2235},{"style":1036},[2236],{"type":998,"value":1374},{"type":993,"tag":1021,"props":2238,"children":2239},{"style":1057},[2240],{"type":998,"value":2241},"\"Grade: ",{"type":993,"tag":1021,"props":2243,"children":2244},{"style":1081},[2245],{"type":998,"value":1084},{"type":993,"tag":1021,"props":2247,"children":2248},{"style":1048},[2249],{"type":998,"value":2250},"grade",{"type":993,"tag":1021,"props":2252,"children":2253},{"style":1081},[2254],{"type":998,"value":1094},{"type":993,"tag":1021,"props":2256,"children":2257},{"style":1057},[2258],{"type":998,"value":1895},{"type":993,"tag":1021,"props":2260,"children":2261},{"style":1048},[2262],{"type":998,"value":1143},{"type":993,"tag":1021,"props":2264,"children":2265},{"class":1023,"line":201},[2266,2270,2274,2278,2283,2287,2292,2296,2300],{"type":993,"tag":1021,"props":2267,"children":2268},{"style":1081},[2269],{"type":998,"value":1151},{"type":993,"tag":1021,"props":2271,"children":2272},{"style":1048},[2273],{"type":998,"value":1369},{"type":993,"tag":1021,"props":2275,"children":2276},{"style":1036},[2277],{"type":998,"value":1374},{"type":993,"tag":1021,"props":2279,"children":2280},{"style":1057},[2281],{"type":998,"value":2282},"\"42 is even: ",{"type":993,"tag":1021,"props":2284,"children":2285},{"style":1081},[2286],{"type":998,"value":1084},{"type":993,"tag":1021,"props":2288,"children":2289},{"style":1048},[2290],{"type":998,"value":2291},"even_check",{"type":993,"tag":1021,"props":2293,"children":2294},{"style":1081},[2295],{"type":998,"value":1094},{"type":993,"tag":1021,"props":2297,"children":2298},{"style":1057},[2299],{"type":998,"value":1895},{"type":993,"tag":1021,"props":2301,"children":2302},{"style":1048},[2303],{"type":998,"value":1143},{"type":993,"tag":1215,"props":2305,"children":2307},{"id":2306},"function-call-process",[2308],{"type":998,"value":2309},"🚀 Function Call Process",{"type":993,"tag":1001,"props":2311,"children":2312},{},[2313],{"type":998,"value":2314},"Understanding how Python executes functions helps you debug issues and write more effective code. The execution flow involves parameter binding, code execution, and value return.",{"type":993,"tag":1007,"props":2316,"children":2317},{},[2318],{"type":993,"tag":1011,"props":2319,"children":2321},{"className":1013,"code":2320,"language":6,"meta":8,"style":8},"def process_order(item, quantity, price):\n    \"\"\"Calculate order total with tax\"\"\"\n    subtotal = quantity * price\n    tax = subtotal * 0.08\n    total = subtotal + tax\n    \n    print(f\"Processing order for {quantity} {item}(s)\")\n    print(f\"Subtotal: ${subtotal:.2f}\")\n    print(f\"Tax: ${tax:.2f}\")\n    \n    return total\n\n# Function call - arguments passed to parameters\nfinal_total = process_order(\"laptop\", 2, 999.99)\nprint(f\"Final total: ${final_total:.2f}\")\n",[2322],{"type":993,"tag":1017,"props":2323,"children":2324},{"__ignoreMap":8},[2325,2342,2350,2376,2402,2427,2435,2492,2538,2583,2590,2602,2609,2617,2661],{"type":993,"tag":1021,"props":2326,"children":2327},{"class":1023,"line":12},[2328,2332,2337],{"type":993,"tag":1021,"props":2329,"children":2330},{"style":1036},[2331],{"type":998,"value":1039},{"type":993,"tag":1021,"props":2333,"children":2334},{"style":1042},[2335],{"type":998,"value":2336}," process_order",{"type":993,"tag":1021,"props":2338,"children":2339},{"style":1048},[2340],{"type":998,"value":2341},"(item, quantity, price):\n",{"type":993,"tag":1021,"props":2343,"children":2344},{"class":1023,"line":27},[2345],{"type":993,"tag":1021,"props":2346,"children":2347},{"style":1057},[2348],{"type":998,"value":2349},"    \"\"\"Calculate order total with tax\"\"\"\n",{"type":993,"tag":1021,"props":2351,"children":2352},{"class":1023,"line":36},[2353,2358,2362,2367,2371],{"type":993,"tag":1021,"props":2354,"children":2355},{"style":1048},[2356],{"type":998,"value":2357},"    subtotal ",{"type":993,"tag":1021,"props":2359,"children":2360},{"style":1036},[2361],{"type":998,"value":1128},{"type":993,"tag":1021,"props":2363,"children":2364},{"style":1048},[2365],{"type":998,"value":2366}," quantity ",{"type":993,"tag":1021,"props":2368,"children":2369},{"style":1036},[2370],{"type":998,"value":1289},{"type":993,"tag":1021,"props":2372,"children":2373},{"style":1048},[2374],{"type":998,"value":2375}," price\n",{"type":993,"tag":1021,"props":2377,"children":2378},{"class":1023,"line":45},[2379,2384,2388,2393,2397],{"type":993,"tag":1021,"props":2380,"children":2381},{"style":1048},[2382],{"type":998,"value":2383},"    tax ",{"type":993,"tag":1021,"props":2385,"children":2386},{"style":1036},[2387],{"type":998,"value":1128},{"type":993,"tag":1021,"props":2389,"children":2390},{"style":1048},[2391],{"type":998,"value":2392}," subtotal ",{"type":993,"tag":1021,"props":2394,"children":2395},{"style":1036},[2396],{"type":998,"value":1289},{"type":993,"tag":1021,"props":2398,"children":2399},{"style":1081},[2400],{"type":998,"value":2401}," 0.08\n",{"type":993,"tag":1021,"props":2403,"children":2404},{"class":1023,"line":54},[2405,2410,2414,2418,2422],{"type":993,"tag":1021,"props":2406,"children":2407},{"style":1048},[2408],{"type":998,"value":2409},"    total ",{"type":993,"tag":1021,"props":2411,"children":2412},{"style":1036},[2413],{"type":998,"value":1128},{"type":993,"tag":1021,"props":2415,"children":2416},{"style":1048},[2417],{"type":998,"value":2392},{"type":993,"tag":1021,"props":2419,"children":2420},{"style":1036},[2421],{"type":998,"value":1653},{"type":993,"tag":1021,"props":2423,"children":2424},{"style":1048},[2425],{"type":998,"value":2426}," tax\n",{"type":993,"tag":1021,"props":2428,"children":2429},{"class":1023,"line":63},[2430],{"type":993,"tag":1021,"props":2431,"children":2432},{"style":1048},[2433],{"type":998,"value":2434},"    \n",{"type":993,"tag":1021,"props":2436,"children":2437},{"class":1023,"line":72},[2438,2443,2447,2451,2456,2460,2465,2469,2474,2479,2483,2488],{"type":993,"tag":1021,"props":2439,"children":2440},{"style":1081},[2441],{"type":998,"value":2442},"    print",{"type":993,"tag":1021,"props":2444,"children":2445},{"style":1048},[2446],{"type":998,"value":1369},{"type":993,"tag":1021,"props":2448,"children":2449},{"style":1036},[2450],{"type":998,"value":1374},{"type":993,"tag":1021,"props":2452,"children":2453},{"style":1057},[2454],{"type":998,"value":2455},"\"Processing order for ",{"type":993,"tag":1021,"props":2457,"children":2458},{"style":1081},[2459],{"type":998,"value":1084},{"type":993,"tag":1021,"props":2461,"children":2462},{"style":1048},[2463],{"type":998,"value":2464},"quantity",{"type":993,"tag":1021,"props":2466,"children":2467},{"style":1081},[2468],{"type":998,"value":1094},{"type":993,"tag":1021,"props":2470,"children":2471},{"style":1081},[2472],{"type":998,"value":2473}," {",{"type":993,"tag":1021,"props":2475,"children":2476},{"style":1048},[2477],{"type":998,"value":2478},"item",{"type":993,"tag":1021,"props":2480,"children":2481},{"style":1081},[2482],{"type":998,"value":1094},{"type":993,"tag":1021,"props":2484,"children":2485},{"style":1057},[2486],{"type":998,"value":2487},"(s)\"",{"type":993,"tag":1021,"props":2489,"children":2490},{"style":1048},[2491],{"type":998,"value":1143},{"type":993,"tag":1021,"props":2493,"children":2494},{"class":1023,"line":81},[2495,2499,2503,2507,2512,2516,2521,2526,2530,2534],{"type":993,"tag":1021,"props":2496,"children":2497},{"style":1081},[2498],{"type":998,"value":2442},{"type":993,"tag":1021,"props":2500,"children":2501},{"style":1048},[2502],{"type":998,"value":1369},{"type":993,"tag":1021,"props":2504,"children":2505},{"style":1036},[2506],{"type":998,"value":1374},{"type":993,"tag":1021,"props":2508,"children":2509},{"style":1057},[2510],{"type":998,"value":2511},"\"Subtotal: $",{"type":993,"tag":1021,"props":2513,"children":2514},{"style":1081},[2515],{"type":998,"value":1084},{"type":993,"tag":1021,"props":2517,"children":2518},{"style":1048},[2519],{"type":998,"value":2520},"subtotal",{"type":993,"tag":1021,"props":2522,"children":2523},{"style":1036},[2524],{"type":998,"value":2525},":.2f",{"type":993,"tag":1021,"props":2527,"children":2528},{"style":1081},[2529],{"type":998,"value":1094},{"type":993,"tag":1021,"props":2531,"children":2532},{"style":1057},[2533],{"type":998,"value":1895},{"type":993,"tag":1021,"props":2535,"children":2536},{"style":1048},[2537],{"type":998,"value":1143},{"type":993,"tag":1021,"props":2539,"children":2540},{"class":1023,"line":91},[2541,2545,2549,2553,2558,2562,2567,2571,2575,2579],{"type":993,"tag":1021,"props":2542,"children":2543},{"style":1081},[2544],{"type":998,"value":2442},{"type":993,"tag":1021,"props":2546,"children":2547},{"style":1048},[2548],{"type":998,"value":1369},{"type":993,"tag":1021,"props":2550,"children":2551},{"style":1036},[2552],{"type":998,"value":1374},{"type":993,"tag":1021,"props":2554,"children":2555},{"style":1057},[2556],{"type":998,"value":2557},"\"Tax: $",{"type":993,"tag":1021,"props":2559,"children":2560},{"style":1081},[2561],{"type":998,"value":1084},{"type":993,"tag":1021,"props":2563,"children":2564},{"style":1048},[2565],{"type":998,"value":2566},"tax",{"type":993,"tag":1021,"props":2568,"children":2569},{"style":1036},[2570],{"type":998,"value":2525},{"type":993,"tag":1021,"props":2572,"children":2573},{"style":1081},[2574],{"type":998,"value":1094},{"type":993,"tag":1021,"props":2576,"children":2577},{"style":1057},[2578],{"type":998,"value":1895},{"type":993,"tag":1021,"props":2580,"children":2581},{"style":1048},[2582],{"type":998,"value":1143},{"type":993,"tag":1021,"props":2584,"children":2585},{"class":1023,"line":100},[2586],{"type":993,"tag":1021,"props":2587,"children":2588},{"style":1048},[2589],{"type":998,"value":2434},{"type":993,"tag":1021,"props":2591,"children":2592},{"class":1023,"line":109},[2593,2597],{"type":993,"tag":1021,"props":2594,"children":2595},{"style":1036},[2596],{"type":998,"value":1068},{"type":993,"tag":1021,"props":2598,"children":2599},{"style":1048},[2600],{"type":998,"value":2601}," total\n",{"type":993,"tag":1021,"props":2603,"children":2604},{"class":1023,"line":118},[2605],{"type":993,"tag":1021,"props":2606,"children":2607},{"emptyLinePlaceholder":13},[2608],{"type":998,"value":1107},{"type":993,"tag":1021,"props":2610,"children":2611},{"class":1023,"line":127},[2612],{"type":993,"tag":1021,"props":2613,"children":2614},{"style":1027},[2615],{"type":998,"value":2616},"# Function call - arguments passed to parameters\n",{"type":993,"tag":1021,"props":2618,"children":2619},{"class":1023,"line":136},[2620,2625,2629,2634,2639,2643,2648,2652,2657],{"type":993,"tag":1021,"props":2621,"children":2622},{"style":1048},[2623],{"type":998,"value":2624},"final_total ",{"type":993,"tag":1021,"props":2626,"children":2627},{"style":1036},[2628],{"type":998,"value":1128},{"type":993,"tag":1021,"props":2630,"children":2631},{"style":1048},[2632],{"type":998,"value":2633}," process_order(",{"type":993,"tag":1021,"props":2635,"children":2636},{"style":1057},[2637],{"type":998,"value":2638},"\"laptop\"",{"type":993,"tag":1021,"props":2640,"children":2641},{"style":1048},[2642],{"type":998,"value":1348},{"type":993,"tag":1021,"props":2644,"children":2645},{"style":1081},[2646],{"type":998,"value":2647},"2",{"type":993,"tag":1021,"props":2649,"children":2650},{"style":1048},[2651],{"type":998,"value":1348},{"type":993,"tag":1021,"props":2653,"children":2654},{"style":1081},[2655],{"type":998,"value":2656},"999.99",{"type":993,"tag":1021,"props":2658,"children":2659},{"style":1048},[2660],{"type":998,"value":1143},{"type":993,"tag":1021,"props":2662,"children":2663},{"class":1023,"line":146},[2664,2668,2672,2676,2681,2685,2690,2694,2698,2702],{"type":993,"tag":1021,"props":2665,"children":2666},{"style":1081},[2667],{"type":998,"value":1151},{"type":993,"tag":1021,"props":2669,"children":2670},{"style":1048},[2671],{"type":998,"value":1369},{"type":993,"tag":1021,"props":2673,"children":2674},{"style":1036},[2675],{"type":998,"value":1374},{"type":993,"tag":1021,"props":2677,"children":2678},{"style":1057},[2679],{"type":998,"value":2680},"\"Final total: $",{"type":993,"tag":1021,"props":2682,"children":2683},{"style":1081},[2684],{"type":998,"value":1084},{"type":993,"tag":1021,"props":2686,"children":2687},{"style":1048},[2688],{"type":998,"value":2689},"final_total",{"type":993,"tag":1021,"props":2691,"children":2692},{"style":1036},[2693],{"type":998,"value":2525},{"type":993,"tag":1021,"props":2695,"children":2696},{"style":1081},[2697],{"type":998,"value":1094},{"type":993,"tag":1021,"props":2699,"children":2700},{"style":1057},[2701],{"type":998,"value":1895},{"type":993,"tag":1021,"props":2703,"children":2704},{"style":1048},[2705],{"type":998,"value":1143},{"type":993,"tag":1215,"props":2707,"children":2709},{"id":2708},"functions-vs-built-in-operations",[2710],{"type":998,"value":2711},"🌟 Functions vs Built-in Operations",{"type":993,"tag":1001,"props":2713,"children":2714},{},[2715],{"type":998,"value":2716},"Custom functions extend Python's capabilities beyond built-in operations, allowing you to create domain-specific tools and reusable logic for your applications.",{"type":993,"tag":1007,"props":2718,"children":2719},{},[2720],{"type":993,"tag":1011,"props":2721,"children":2723},{"className":1013,"code":2722,"language":6,"meta":8,"style":8},"# Built-in functions are limited\nbasic_max = max([10, 5, 8, 3])\nbasic_len = len(\"Hello\")\n\n# Custom functions solve specific problems\ndef find_largest_word(text):\n    \"\"\"Find the longest word in a text string\"\"\"\n    words = text.split()\n    return max(words, key=len)\n\ndef count_vowels(text):\n    \"\"\"Count vowels in a string\"\"\"\n    vowels = \"aeiouAEIOU\"\n    return sum(1 for char in text if char in vowels)\n\n# Custom functions in action\nsentence = \"Python functions make programming easier\"\nlongest = find_largest_word(sentence)\nvowel_count = count_vowels(sentence)\n\nprint(f\"Longest word: {longest}\")\nprint(f\"Vowel count: {vowel_count}\")\n",[2724],{"type":993,"tag":1017,"props":2725,"children":2726},{"__ignoreMap":8},[2727,2735,2791,2821,2828,2836,2853,2861,2878,2913,2920,2936,2944,2961,3020,3027,3035,3052,3069,3086,3093,3134],{"type":993,"tag":1021,"props":2728,"children":2729},{"class":1023,"line":12},[2730],{"type":993,"tag":1021,"props":2731,"children":2732},{"style":1027},[2733],{"type":998,"value":2734},"# Built-in functions are limited\n",{"type":993,"tag":1021,"props":2736,"children":2737},{"class":1023,"line":27},[2738,2743,2747,2752,2757,2761,2765,2769,2773,2777,2781,2786],{"type":993,"tag":1021,"props":2739,"children":2740},{"style":1048},[2741],{"type":998,"value":2742},"basic_max ",{"type":993,"tag":1021,"props":2744,"children":2745},{"style":1036},[2746],{"type":998,"value":1128},{"type":993,"tag":1021,"props":2748,"children":2749},{"style":1081},[2750],{"type":998,"value":2751}," max",{"type":993,"tag":1021,"props":2753,"children":2754},{"style":1048},[2755],{"type":998,"value":2756},"([",{"type":993,"tag":1021,"props":2758,"children":2759},{"style":1081},[2760],{"type":998,"value":1353},{"type":993,"tag":1021,"props":2762,"children":2763},{"style":1048},[2764],{"type":998,"value":1348},{"type":993,"tag":1021,"props":2766,"children":2767},{"style":1081},[2768],{"type":998,"value":1643},{"type":993,"tag":1021,"props":2770,"children":2771},{"style":1048},[2772],{"type":998,"value":1348},{"type":993,"tag":1021,"props":2774,"children":2775},{"style":1081},[2776],{"type":998,"value":1429},{"type":993,"tag":1021,"props":2778,"children":2779},{"style":1048},[2780],{"type":998,"value":1348},{"type":993,"tag":1021,"props":2782,"children":2783},{"style":1081},[2784],{"type":998,"value":2785},"3",{"type":993,"tag":1021,"props":2787,"children":2788},{"style":1048},[2789],{"type":998,"value":2790},"])\n",{"type":993,"tag":1021,"props":2792,"children":2793},{"class":1023,"line":36},[2794,2799,2803,2808,2812,2817],{"type":993,"tag":1021,"props":2795,"children":2796},{"style":1048},[2797],{"type":998,"value":2798},"basic_len ",{"type":993,"tag":1021,"props":2800,"children":2801},{"style":1036},[2802],{"type":998,"value":1128},{"type":993,"tag":1021,"props":2804,"children":2805},{"style":1081},[2806],{"type":998,"value":2807}," len",{"type":993,"tag":1021,"props":2809,"children":2810},{"style":1048},[2811],{"type":998,"value":1369},{"type":993,"tag":1021,"props":2813,"children":2814},{"style":1057},[2815],{"type":998,"value":2816},"\"Hello\"",{"type":993,"tag":1021,"props":2818,"children":2819},{"style":1048},[2820],{"type":998,"value":1143},{"type":993,"tag":1021,"props":2822,"children":2823},{"class":1023,"line":45},[2824],{"type":993,"tag":1021,"props":2825,"children":2826},{"emptyLinePlaceholder":13},[2827],{"type":998,"value":1107},{"type":993,"tag":1021,"props":2829,"children":2830},{"class":1023,"line":54},[2831],{"type":993,"tag":1021,"props":2832,"children":2833},{"style":1027},[2834],{"type":998,"value":2835},"# Custom functions solve specific problems\n",{"type":993,"tag":1021,"props":2837,"children":2838},{"class":1023,"line":63},[2839,2843,2848],{"type":993,"tag":1021,"props":2840,"children":2841},{"style":1036},[2842],{"type":998,"value":1039},{"type":993,"tag":1021,"props":2844,"children":2845},{"style":1042},[2846],{"type":998,"value":2847}," find_largest_word",{"type":993,"tag":1021,"props":2849,"children":2850},{"style":1048},[2851],{"type":998,"value":2852},"(text):\n",{"type":993,"tag":1021,"props":2854,"children":2855},{"class":1023,"line":72},[2856],{"type":993,"tag":1021,"props":2857,"children":2858},{"style":1057},[2859],{"type":998,"value":2860},"    \"\"\"Find the longest word in a text string\"\"\"\n",{"type":993,"tag":1021,"props":2862,"children":2863},{"class":1023,"line":81},[2864,2869,2873],{"type":993,"tag":1021,"props":2865,"children":2866},{"style":1048},[2867],{"type":998,"value":2868},"    words ",{"type":993,"tag":1021,"props":2870,"children":2871},{"style":1036},[2872],{"type":998,"value":1128},{"type":993,"tag":1021,"props":2874,"children":2875},{"style":1048},[2876],{"type":998,"value":2877}," text.split()\n",{"type":993,"tag":1021,"props":2879,"children":2880},{"class":1023,"line":91},[2881,2885,2889,2894,2900,2904,2909],{"type":993,"tag":1021,"props":2882,"children":2883},{"style":1036},[2884],{"type":998,"value":1068},{"type":993,"tag":1021,"props":2886,"children":2887},{"style":1081},[2888],{"type":998,"value":2751},{"type":993,"tag":1021,"props":2890,"children":2891},{"style":1048},[2892],{"type":998,"value":2893},"(words, ",{"type":993,"tag":1021,"props":2895,"children":2897},{"style":2896},"--shiki-default:#E36209;--shiki-app-dark-mode:#FFAB70",[2898],{"type":998,"value":2899},"key",{"type":993,"tag":1021,"props":2901,"children":2902},{"style":1036},[2903],{"type":998,"value":1128},{"type":993,"tag":1021,"props":2905,"children":2906},{"style":1081},[2907],{"type":998,"value":2908},"len",{"type":993,"tag":1021,"props":2910,"children":2911},{"style":1048},[2912],{"type":998,"value":1143},{"type":993,"tag":1021,"props":2914,"children":2915},{"class":1023,"line":100},[2916],{"type":993,"tag":1021,"props":2917,"children":2918},{"emptyLinePlaceholder":13},[2919],{"type":998,"value":1107},{"type":993,"tag":1021,"props":2921,"children":2922},{"class":1023,"line":109},[2923,2927,2932],{"type":993,"tag":1021,"props":2924,"children":2925},{"style":1036},[2926],{"type":998,"value":1039},{"type":993,"tag":1021,"props":2928,"children":2929},{"style":1042},[2930],{"type":998,"value":2931}," count_vowels",{"type":993,"tag":1021,"props":2933,"children":2934},{"style":1048},[2935],{"type":998,"value":2852},{"type":993,"tag":1021,"props":2937,"children":2938},{"class":1023,"line":118},[2939],{"type":993,"tag":1021,"props":2940,"children":2941},{"style":1057},[2942],{"type":998,"value":2943},"    \"\"\"Count vowels in a string\"\"\"\n",{"type":993,"tag":1021,"props":2945,"children":2946},{"class":1023,"line":127},[2947,2952,2956],{"type":993,"tag":1021,"props":2948,"children":2949},{"style":1048},[2950],{"type":998,"value":2951},"    vowels ",{"type":993,"tag":1021,"props":2953,"children":2954},{"style":1036},[2955],{"type":998,"value":1128},{"type":993,"tag":1021,"props":2957,"children":2958},{"style":1057},[2959],{"type":998,"value":2960}," \"aeiouAEIOU\"\n",{"type":993,"tag":1021,"props":2962,"children":2963},{"class":1023,"line":136},[2964,2968,2973,2977,2982,2987,2992,2997,3002,3007,3011,3015],{"type":993,"tag":1021,"props":2965,"children":2966},{"style":1036},[2967],{"type":998,"value":1068},{"type":993,"tag":1021,"props":2969,"children":2970},{"style":1081},[2971],{"type":998,"value":2972}," sum",{"type":993,"tag":1021,"props":2974,"children":2975},{"style":1048},[2976],{"type":998,"value":1369},{"type":993,"tag":1021,"props":2978,"children":2979},{"style":1081},[2980],{"type":998,"value":2981},"1",{"type":993,"tag":1021,"props":2983,"children":2984},{"style":1036},[2985],{"type":998,"value":2986}," for",{"type":993,"tag":1021,"props":2988,"children":2989},{"style":1048},[2990],{"type":998,"value":2991}," char ",{"type":993,"tag":1021,"props":2993,"children":2994},{"style":1036},[2995],{"type":998,"value":2996},"in",{"type":993,"tag":1021,"props":2998,"children":2999},{"style":1048},[3000],{"type":998,"value":3001}," text ",{"type":993,"tag":1021,"props":3003,"children":3004},{"style":1036},[3005],{"type":998,"value":3006},"if",{"type":993,"tag":1021,"props":3008,"children":3009},{"style":1048},[3010],{"type":998,"value":2991},{"type":993,"tag":1021,"props":3012,"children":3013},{"style":1036},[3014],{"type":998,"value":2996},{"type":993,"tag":1021,"props":3016,"children":3017},{"style":1048},[3018],{"type":998,"value":3019}," vowels)\n",{"type":993,"tag":1021,"props":3021,"children":3022},{"class":1023,"line":146},[3023],{"type":993,"tag":1021,"props":3024,"children":3025},{"emptyLinePlaceholder":13},[3026],{"type":998,"value":1107},{"type":993,"tag":1021,"props":3028,"children":3029},{"class":1023,"line":155},[3030],{"type":993,"tag":1021,"props":3031,"children":3032},{"style":1027},[3033],{"type":998,"value":3034},"# Custom functions in action\n",{"type":993,"tag":1021,"props":3036,"children":3037},{"class":1023,"line":164},[3038,3043,3047],{"type":993,"tag":1021,"props":3039,"children":3040},{"style":1048},[3041],{"type":998,"value":3042},"sentence ",{"type":993,"tag":1021,"props":3044,"children":3045},{"style":1036},[3046],{"type":998,"value":1128},{"type":993,"tag":1021,"props":3048,"children":3049},{"style":1057},[3050],{"type":998,"value":3051}," \"Python functions make programming easier\"\n",{"type":993,"tag":1021,"props":3053,"children":3054},{"class":1023,"line":173},[3055,3060,3064],{"type":993,"tag":1021,"props":3056,"children":3057},{"style":1048},[3058],{"type":998,"value":3059},"longest ",{"type":993,"tag":1021,"props":3061,"children":3062},{"style":1036},[3063],{"type":998,"value":1128},{"type":993,"tag":1021,"props":3065,"children":3066},{"style":1048},[3067],{"type":998,"value":3068}," find_largest_word(sentence)\n",{"type":993,"tag":1021,"props":3070,"children":3071},{"class":1023,"line":182},[3072,3077,3081],{"type":993,"tag":1021,"props":3073,"children":3074},{"style":1048},[3075],{"type":998,"value":3076},"vowel_count ",{"type":993,"tag":1021,"props":3078,"children":3079},{"style":1036},[3080],{"type":998,"value":1128},{"type":993,"tag":1021,"props":3082,"children":3083},{"style":1048},[3084],{"type":998,"value":3085}," count_vowels(sentence)\n",{"type":993,"tag":1021,"props":3087,"children":3088},{"class":1023,"line":191},[3089],{"type":993,"tag":1021,"props":3090,"children":3091},{"emptyLinePlaceholder":13},[3092],{"type":998,"value":1107},{"type":993,"tag":1021,"props":3094,"children":3095},{"class":1023,"line":201},[3096,3100,3104,3108,3113,3117,3122,3126,3130],{"type":993,"tag":1021,"props":3097,"children":3098},{"style":1081},[3099],{"type":998,"value":1151},{"type":993,"tag":1021,"props":3101,"children":3102},{"style":1048},[3103],{"type":998,"value":1369},{"type":993,"tag":1021,"props":3105,"children":3106},{"style":1036},[3107],{"type":998,"value":1374},{"type":993,"tag":1021,"props":3109,"children":3110},{"style":1057},[3111],{"type":998,"value":3112},"\"Longest word: ",{"type":993,"tag":1021,"props":3114,"children":3115},{"style":1081},[3116],{"type":998,"value":1084},{"type":993,"tag":1021,"props":3118,"children":3119},{"style":1048},[3120],{"type":998,"value":3121},"longest",{"type":993,"tag":1021,"props":3123,"children":3124},{"style":1081},[3125],{"type":998,"value":1094},{"type":993,"tag":1021,"props":3127,"children":3128},{"style":1057},[3129],{"type":998,"value":1895},{"type":993,"tag":1021,"props":3131,"children":3132},{"style":1048},[3133],{"type":998,"value":1143},{"type":993,"tag":1021,"props":3135,"children":3136},{"class":1023,"line":210},[3137,3141,3145,3149,3154,3158,3163,3167,3171],{"type":993,"tag":1021,"props":3138,"children":3139},{"style":1081},[3140],{"type":998,"value":1151},{"type":993,"tag":1021,"props":3142,"children":3143},{"style":1048},[3144],{"type":998,"value":1369},{"type":993,"tag":1021,"props":3146,"children":3147},{"style":1036},[3148],{"type":998,"value":1374},{"type":993,"tag":1021,"props":3150,"children":3151},{"style":1057},[3152],{"type":998,"value":3153},"\"Vowel count: ",{"type":993,"tag":1021,"props":3155,"children":3156},{"style":1081},[3157],{"type":998,"value":1084},{"type":993,"tag":1021,"props":3159,"children":3160},{"style":1048},[3161],{"type":998,"value":3162},"vowel_count",{"type":993,"tag":1021,"props":3164,"children":3165},{"style":1081},[3166],{"type":998,"value":1094},{"type":993,"tag":1021,"props":3168,"children":3169},{"style":1057},[3170],{"type":998,"value":1895},{"type":993,"tag":1021,"props":3172,"children":3173},{"style":1048},[3174],{"type":998,"value":1143},{"type":993,"tag":1215,"props":3176,"children":3178},{"id":3177},"function-benefits-table",[3179],{"type":998,"value":3180},"📚 Function Benefits Table",{"type":993,"tag":3182,"props":3183,"children":3184},"table",{},[3185,3209],{"type":993,"tag":3186,"props":3187,"children":3188},"thead",{},[3189],{"type":993,"tag":3190,"props":3191,"children":3192},"tr",{},[3193,3199,3204],{"type":993,"tag":3194,"props":3195,"children":3196},"th",{},[3197],{"type":998,"value":3198},"Benefit",{"type":993,"tag":3194,"props":3200,"children":3201},{},[3202],{"type":998,"value":3203},"Description",{"type":993,"tag":3194,"props":3205,"children":3206},{},[3207],{"type":998,"value":3208},"Example Use Case",{"type":993,"tag":3210,"props":3211,"children":3212},"tbody",{},[3213,3235,3256,3277,3298],{"type":993,"tag":3190,"props":3214,"children":3215},{},[3216,3225,3230],{"type":993,"tag":3217,"props":3218,"children":3219},"td",{},[3220],{"type":993,"tag":1495,"props":3221,"children":3222},{},[3223],{"type":998,"value":3224},"Reusability",{"type":993,"tag":3217,"props":3226,"children":3227},{},[3228],{"type":998,"value":3229},"Write once, use multiple times",{"type":993,"tag":3217,"props":3231,"children":3232},{},[3233],{"type":998,"value":3234},"Calculate tax for different orders",{"type":993,"tag":3190,"props":3236,"children":3237},{},[3238,3246,3251],{"type":993,"tag":3217,"props":3239,"children":3240},{},[3241],{"type":993,"tag":1495,"props":3242,"children":3243},{},[3244],{"type":998,"value":3245},"Organization",{"type":993,"tag":3217,"props":3247,"children":3248},{},[3249],{"type":998,"value":3250},"Group related code together",{"type":993,"tag":3217,"props":3252,"children":3253},{},[3254],{"type":998,"value":3255},"Payment processing functions",{"type":993,"tag":3190,"props":3257,"children":3258},{},[3259,3267,3272],{"type":993,"tag":3217,"props":3260,"children":3261},{},[3262],{"type":993,"tag":1495,"props":3263,"children":3264},{},[3265],{"type":998,"value":3266},"Testing",{"type":993,"tag":3217,"props":3268,"children":3269},{},[3270],{"type":998,"value":3271},"Test individual components",{"type":993,"tag":3217,"props":3273,"children":3274},{},[3275],{"type":998,"value":3276},"Validate email format function",{"type":993,"tag":3190,"props":3278,"children":3279},{},[3280,3288,3293],{"type":993,"tag":3217,"props":3281,"children":3282},{},[3283],{"type":993,"tag":1495,"props":3284,"children":3285},{},[3286],{"type":998,"value":3287},"Maintenance",{"type":993,"tag":3217,"props":3289,"children":3290},{},[3291],{"type":998,"value":3292},"Update code in one place",{"type":993,"tag":3217,"props":3294,"children":3295},{},[3296],{"type":998,"value":3297},"Change calculation formula",{"type":993,"tag":3190,"props":3299,"children":3300},{},[3301,3309,3314],{"type":993,"tag":3217,"props":3302,"children":3303},{},[3304],{"type":993,"tag":1495,"props":3305,"children":3306},{},[3307],{"type":998,"value":3308},"Readability",{"type":993,"tag":3217,"props":3310,"children":3311},{},[3312],{"type":998,"value":3313},"Self-documenting code with clear names",{"type":993,"tag":3217,"props":3315,"children":3316},{},[3317,3323],{"type":993,"tag":1017,"props":3318,"children":3320},{"className":3319},[],[3321],{"type":998,"value":3322},"send_email()",{"type":998,"value":3324}," vs inline SMTP code",{"type":993,"tag":1215,"props":3326,"children":3328},{"id":3327},"practical-applications",[3329],{"type":998,"value":3330},"💡 Practical Applications",{"type":993,"tag":1562,"props":3332,"children":3334},{"id":3333},"data-processing",[3335],{"type":998,"value":3336},"Data Processing",{"type":993,"tag":1001,"props":3338,"children":3339},{},[3340],{"type":998,"value":3341},"Functions excel at creating reusable data processing pipelines that handle common transformations consistently across your application.",{"type":993,"tag":1007,"props":3343,"children":3344},{},[3345],{"type":993,"tag":1011,"props":3346,"children":3348},{"className":1013,"code":3347,"language":6,"meta":8,"style":8},"def clean_phone_number(phone):\n    \"\"\"Clean and format phone number\"\"\"\n    # Remove all non-digit characters\n    digits = ''.join(char for char in phone if char.isdigit())\n    \n    # Format as (XXX) XXX-XXXX\n    if len(digits) == 10:\n        return f\"({digits[:3]}) {digits[3:6]}-{digits[6:]}\"\n    return \"Invalid phone number\"\n\ndef validate_email(email):\n    \"\"\"Basic email validation\"\"\"\n    return \"@\" in email and \".\" in email.split(\"@\")[-1]\n\n# Process contact information\nphone = clean_phone_number(\"123-456-7890\")\nemail_valid = validate_email(\"user@example.com\")\n\nprint(f\"Formatted phone: {phone}\")\nprint(f\"Email valid: {email_valid}\")\n",[3349],{"type":993,"tag":1017,"props":3350,"children":3351},{"__ignoreMap":8},[3352,3369,3377,3385,3434,3441,3467,3497,3599,3611,3618,3635,3643,3707,3714,3722,3748,3774,3781,3822],{"type":993,"tag":1021,"props":3353,"children":3354},{"class":1023,"line":12},[3355,3359,3364],{"type":993,"tag":1021,"props":3356,"children":3357},{"style":1036},[3358],{"type":998,"value":1039},{"type":993,"tag":1021,"props":3360,"children":3361},{"style":1042},[3362],{"type":998,"value":3363}," clean_phone_number",{"type":993,"tag":1021,"props":3365,"children":3366},{"style":1048},[3367],{"type":998,"value":3368},"(phone):\n",{"type":993,"tag":1021,"props":3370,"children":3371},{"class":1023,"line":27},[3372],{"type":993,"tag":1021,"props":3373,"children":3374},{"style":1057},[3375],{"type":998,"value":3376},"    \"\"\"Clean and format phone number\"\"\"\n",{"type":993,"tag":1021,"props":3378,"children":3379},{"class":1023,"line":36},[3380],{"type":993,"tag":1021,"props":3381,"children":3382},{"style":1027},[3383],{"type":998,"value":3384},"    # Remove all non-digit characters\n",{"type":993,"tag":1021,"props":3386,"children":3387},{"class":1023,"line":45},[3388,3393,3397,3402,3407,3412,3416,3420,3425,3429],{"type":993,"tag":1021,"props":3389,"children":3390},{"style":1048},[3391],{"type":998,"value":3392},"    digits ",{"type":993,"tag":1021,"props":3394,"children":3395},{"style":1036},[3396],{"type":998,"value":1128},{"type":993,"tag":1021,"props":3398,"children":3399},{"style":1057},[3400],{"type":998,"value":3401}," ''",{"type":993,"tag":1021,"props":3403,"children":3404},{"style":1048},[3405],{"type":998,"value":3406},".join(char ",{"type":993,"tag":1021,"props":3408,"children":3409},{"style":1036},[3410],{"type":998,"value":3411},"for",{"type":993,"tag":1021,"props":3413,"children":3414},{"style":1048},[3415],{"type":998,"value":2991},{"type":993,"tag":1021,"props":3417,"children":3418},{"style":1036},[3419],{"type":998,"value":2996},{"type":993,"tag":1021,"props":3421,"children":3422},{"style":1048},[3423],{"type":998,"value":3424}," phone ",{"type":993,"tag":1021,"props":3426,"children":3427},{"style":1036},[3428],{"type":998,"value":3006},{"type":993,"tag":1021,"props":3430,"children":3431},{"style":1048},[3432],{"type":998,"value":3433}," char.isdigit())\n",{"type":993,"tag":1021,"props":3435,"children":3436},{"class":1023,"line":54},[3437],{"type":993,"tag":1021,"props":3438,"children":3439},{"style":1048},[3440],{"type":998,"value":2434},{"type":993,"tag":1021,"props":3442,"children":3443},{"class":1023,"line":63},[3444,3449,3454,3458,3462],{"type":993,"tag":1021,"props":3445,"children":3446},{"style":1027},[3447],{"type":998,"value":3448},"    # Format as (",{"type":993,"tag":1021,"props":3450,"children":3451},{"style":1036},[3452],{"type":998,"value":3453},"XXX",{"type":993,"tag":1021,"props":3455,"children":3456},{"style":1027},[3457],{"type":998,"value":1648},{"type":993,"tag":1021,"props":3459,"children":3460},{"style":1036},[3461],{"type":998,"value":3453},{"type":993,"tag":1021,"props":3463,"children":3464},{"style":1027},[3465],{"type":998,"value":3466},"-XXXX\n",{"type":993,"tag":1021,"props":3468,"children":3469},{"class":1023,"line":72},[3470,3474,3478,3483,3488,3493],{"type":993,"tag":1021,"props":3471,"children":3472},{"style":1036},[3473],{"type":998,"value":1953},{"type":993,"tag":1021,"props":3475,"children":3476},{"style":1081},[3477],{"type":998,"value":2807},{"type":993,"tag":1021,"props":3479,"children":3480},{"style":1048},[3481],{"type":998,"value":3482},"(digits) ",{"type":993,"tag":1021,"props":3484,"children":3485},{"style":1036},[3486],{"type":998,"value":3487},"==",{"type":993,"tag":1021,"props":3489,"children":3490},{"style":1081},[3491],{"type":998,"value":3492}," 10",{"type":993,"tag":1021,"props":3494,"children":3495},{"style":1048},[3496],{"type":998,"value":1973},{"type":993,"tag":1021,"props":3498,"children":3499},{"class":1023,"line":81},[3500,3504,3508,3513,3517,3522,3526,3531,3535,3539,3543,3548,3552,3557,3561,3565,3569,3574,3578,3582,3586,3591,3595],{"type":993,"tag":1021,"props":3501,"children":3502},{"style":1036},[3503],{"type":998,"value":1981},{"type":993,"tag":1021,"props":3505,"children":3506},{"style":1036},[3507],{"type":998,"value":1073},{"type":993,"tag":1021,"props":3509,"children":3510},{"style":1057},[3511],{"type":998,"value":3512},"\"(",{"type":993,"tag":1021,"props":3514,"children":3515},{"style":1081},[3516],{"type":998,"value":1084},{"type":993,"tag":1021,"props":3518,"children":3519},{"style":1048},[3520],{"type":998,"value":3521},"digits[:",{"type":993,"tag":1021,"props":3523,"children":3524},{"style":1081},[3525],{"type":998,"value":2785},{"type":993,"tag":1021,"props":3527,"children":3528},{"style":1048},[3529],{"type":998,"value":3530},"]",{"type":993,"tag":1021,"props":3532,"children":3533},{"style":1081},[3534],{"type":998,"value":1094},{"type":993,"tag":1021,"props":3536,"children":3537},{"style":1057},[3538],{"type":998,"value":1648},{"type":993,"tag":1021,"props":3540,"children":3541},{"style":1081},[3542],{"type":998,"value":1084},{"type":993,"tag":1021,"props":3544,"children":3545},{"style":1048},[3546],{"type":998,"value":3547},"digits[",{"type":993,"tag":1021,"props":3549,"children":3550},{"style":1081},[3551],{"type":998,"value":2785},{"type":993,"tag":1021,"props":3553,"children":3554},{"style":1048},[3555],{"type":998,"value":3556},":",{"type":993,"tag":1021,"props":3558,"children":3559},{"style":1081},[3560],{"type":998,"value":1438},{"type":993,"tag":1021,"props":3562,"children":3563},{"style":1048},[3564],{"type":998,"value":3530},{"type":993,"tag":1021,"props":3566,"children":3567},{"style":1081},[3568],{"type":998,"value":1094},{"type":993,"tag":1021,"props":3570,"children":3571},{"style":1057},[3572],{"type":998,"value":3573},"-",{"type":993,"tag":1021,"props":3575,"children":3576},{"style":1081},[3577],{"type":998,"value":1084},{"type":993,"tag":1021,"props":3579,"children":3580},{"style":1048},[3581],{"type":998,"value":3547},{"type":993,"tag":1021,"props":3583,"children":3584},{"style":1081},[3585],{"type":998,"value":1438},{"type":993,"tag":1021,"props":3587,"children":3588},{"style":1048},[3589],{"type":998,"value":3590},":]",{"type":993,"tag":1021,"props":3592,"children":3593},{"style":1081},[3594],{"type":998,"value":1094},{"type":993,"tag":1021,"props":3596,"children":3597},{"style":1057},[3598],{"type":998,"value":1741},{"type":993,"tag":1021,"props":3600,"children":3601},{"class":1023,"line":91},[3602,3606],{"type":993,"tag":1021,"props":3603,"children":3604},{"style":1036},[3605],{"type":998,"value":1068},{"type":993,"tag":1021,"props":3607,"children":3608},{"style":1057},[3609],{"type":998,"value":3610}," \"Invalid phone number\"\n",{"type":993,"tag":1021,"props":3612,"children":3613},{"class":1023,"line":100},[3614],{"type":993,"tag":1021,"props":3615,"children":3616},{"emptyLinePlaceholder":13},[3617],{"type":998,"value":1107},{"type":993,"tag":1021,"props":3619,"children":3620},{"class":1023,"line":109},[3621,3625,3630],{"type":993,"tag":1021,"props":3622,"children":3623},{"style":1036},[3624],{"type":998,"value":1039},{"type":993,"tag":1021,"props":3626,"children":3627},{"style":1042},[3628],{"type":998,"value":3629}," validate_email",{"type":993,"tag":1021,"props":3631,"children":3632},{"style":1048},[3633],{"type":998,"value":3634},"(email):\n",{"type":993,"tag":1021,"props":3636,"children":3637},{"class":1023,"line":118},[3638],{"type":993,"tag":1021,"props":3639,"children":3640},{"style":1057},[3641],{"type":998,"value":3642},"    \"\"\"Basic email validation\"\"\"\n",{"type":993,"tag":1021,"props":3644,"children":3645},{"class":1023,"line":127},[3646,3650,3655,3660,3665,3670,3675,3679,3684,3689,3694,3698,3702],{"type":993,"tag":1021,"props":3647,"children":3648},{"style":1036},[3649],{"type":998,"value":1068},{"type":993,"tag":1021,"props":3651,"children":3652},{"style":1057},[3653],{"type":998,"value":3654}," \"@\"",{"type":993,"tag":1021,"props":3656,"children":3657},{"style":1036},[3658],{"type":998,"value":3659}," in",{"type":993,"tag":1021,"props":3661,"children":3662},{"style":1048},[3663],{"type":998,"value":3664}," email ",{"type":993,"tag":1021,"props":3666,"children":3667},{"style":1036},[3668],{"type":998,"value":3669},"and",{"type":993,"tag":1021,"props":3671,"children":3672},{"style":1057},[3673],{"type":998,"value":3674}," \".\"",{"type":993,"tag":1021,"props":3676,"children":3677},{"style":1036},[3678],{"type":998,"value":3659},{"type":993,"tag":1021,"props":3680,"children":3681},{"style":1048},[3682],{"type":998,"value":3683}," email.split(",{"type":993,"tag":1021,"props":3685,"children":3686},{"style":1057},[3687],{"type":998,"value":3688},"\"@\"",{"type":993,"tag":1021,"props":3690,"children":3691},{"style":1048},[3692],{"type":998,"value":3693},")[",{"type":993,"tag":1021,"props":3695,"children":3696},{"style":1036},[3697],{"type":998,"value":3573},{"type":993,"tag":1021,"props":3699,"children":3700},{"style":1081},[3701],{"type":998,"value":2981},{"type":993,"tag":1021,"props":3703,"children":3704},{"style":1048},[3705],{"type":998,"value":3706},"]\n",{"type":993,"tag":1021,"props":3708,"children":3709},{"class":1023,"line":136},[3710],{"type":993,"tag":1021,"props":3711,"children":3712},{"emptyLinePlaceholder":13},[3713],{"type":998,"value":1107},{"type":993,"tag":1021,"props":3715,"children":3716},{"class":1023,"line":146},[3717],{"type":993,"tag":1021,"props":3718,"children":3719},{"style":1027},[3720],{"type":998,"value":3721},"# Process contact information\n",{"type":993,"tag":1021,"props":3723,"children":3724},{"class":1023,"line":155},[3725,3730,3734,3739,3744],{"type":993,"tag":1021,"props":3726,"children":3727},{"style":1048},[3728],{"type":998,"value":3729},"phone ",{"type":993,"tag":1021,"props":3731,"children":3732},{"style":1036},[3733],{"type":998,"value":1128},{"type":993,"tag":1021,"props":3735,"children":3736},{"style":1048},[3737],{"type":998,"value":3738}," clean_phone_number(",{"type":993,"tag":1021,"props":3740,"children":3741},{"style":1057},[3742],{"type":998,"value":3743},"\"123-456-7890\"",{"type":993,"tag":1021,"props":3745,"children":3746},{"style":1048},[3747],{"type":998,"value":1143},{"type":993,"tag":1021,"props":3749,"children":3750},{"class":1023,"line":164},[3751,3756,3760,3765,3770],{"type":993,"tag":1021,"props":3752,"children":3753},{"style":1048},[3754],{"type":998,"value":3755},"email_valid ",{"type":993,"tag":1021,"props":3757,"children":3758},{"style":1036},[3759],{"type":998,"value":1128},{"type":993,"tag":1021,"props":3761,"children":3762},{"style":1048},[3763],{"type":998,"value":3764}," validate_email(",{"type":993,"tag":1021,"props":3766,"children":3767},{"style":1057},[3768],{"type":998,"value":3769},"\"user@example.com\"",{"type":993,"tag":1021,"props":3771,"children":3772},{"style":1048},[3773],{"type":998,"value":1143},{"type":993,"tag":1021,"props":3775,"children":3776},{"class":1023,"line":173},[3777],{"type":993,"tag":1021,"props":3778,"children":3779},{"emptyLinePlaceholder":13},[3780],{"type":998,"value":1107},{"type":993,"tag":1021,"props":3782,"children":3783},{"class":1023,"line":182},[3784,3788,3792,3796,3801,3805,3810,3814,3818],{"type":993,"tag":1021,"props":3785,"children":3786},{"style":1081},[3787],{"type":998,"value":1151},{"type":993,"tag":1021,"props":3789,"children":3790},{"style":1048},[3791],{"type":998,"value":1369},{"type":993,"tag":1021,"props":3793,"children":3794},{"style":1036},[3795],{"type":998,"value":1374},{"type":993,"tag":1021,"props":3797,"children":3798},{"style":1057},[3799],{"type":998,"value":3800},"\"Formatted phone: ",{"type":993,"tag":1021,"props":3802,"children":3803},{"style":1081},[3804],{"type":998,"value":1084},{"type":993,"tag":1021,"props":3806,"children":3807},{"style":1048},[3808],{"type":998,"value":3809},"phone",{"type":993,"tag":1021,"props":3811,"children":3812},{"style":1081},[3813],{"type":998,"value":1094},{"type":993,"tag":1021,"props":3815,"children":3816},{"style":1057},[3817],{"type":998,"value":1895},{"type":993,"tag":1021,"props":3819,"children":3820},{"style":1048},[3821],{"type":998,"value":1143},{"type":993,"tag":1021,"props":3823,"children":3824},{"class":1023,"line":191},[3825,3829,3833,3837,3842,3846,3851,3855,3859],{"type":993,"tag":1021,"props":3826,"children":3827},{"style":1081},[3828],{"type":998,"value":1151},{"type":993,"tag":1021,"props":3830,"children":3831},{"style":1048},[3832],{"type":998,"value":1369},{"type":993,"tag":1021,"props":3834,"children":3835},{"style":1036},[3836],{"type":998,"value":1374},{"type":993,"tag":1021,"props":3838,"children":3839},{"style":1057},[3840],{"type":998,"value":3841},"\"Email valid: ",{"type":993,"tag":1021,"props":3843,"children":3844},{"style":1081},[3845],{"type":998,"value":1084},{"type":993,"tag":1021,"props":3847,"children":3848},{"style":1048},[3849],{"type":998,"value":3850},"email_valid",{"type":993,"tag":1021,"props":3852,"children":3853},{"style":1081},[3854],{"type":998,"value":1094},{"type":993,"tag":1021,"props":3856,"children":3857},{"style":1057},[3858],{"type":998,"value":1895},{"type":993,"tag":1021,"props":3860,"children":3861},{"style":1048},[3862],{"type":998,"value":1143},{"type":993,"tag":1562,"props":3864,"children":3866},{"id":3865},"business-logic",[3867],{"type":998,"value":3868},"Business Logic",{"type":993,"tag":1001,"props":3870,"children":3871},{},[3872],{"type":998,"value":3873},"Encapsulating business rules in functions makes your code more maintainable and allows easy rule updates without affecting other parts of your application.",{"type":993,"tag":1007,"props":3875,"children":3876},{},[3877],{"type":993,"tag":1011,"props":3878,"children":3880},{"className":1013,"code":3879,"language":6,"meta":8,"style":8},"def calculate_shipping(weight, distance):\n    \"\"\"Calculate shipping cost based on weight and distance\"\"\"\n    base_rate = 2.50\n    weight_rate = 0.50 * weight\n    distance_rate = 0.10 * distance\n    \n    return base_rate + weight_rate + distance_rate\n\ndef apply_discount(price, customer_type):\n    \"\"\"Apply discount based on customer type\"\"\"\n    discounts = {'premium': 0.15, 'regular': 0.05, 'new': 0.10}\n    discount_rate = discounts.get(customer_type, 0)\n    return price * (1 - discount_rate)\n\n# Business calculations\nshipping_cost = calculate_shipping(5, 100)  # 5 lbs, 100 miles\ndiscounted_price = apply_discount(199.99, 'premium')\n\nprint(f\"Shipping cost: ${shipping_cost:.2f}\")\nprint(f\"Discounted price: ${discounted_price:.2f}\")\n",[3881],{"type":993,"tag":1017,"props":3882,"children":3883},{"__ignoreMap":8},[3884,3901,3909,3926,3953,3979,3986,4016,4023,4040,4048,4120,4146,4181,4188,4196,4236,4270,4277,4322],{"type":993,"tag":1021,"props":3885,"children":3886},{"class":1023,"line":12},[3887,3891,3896],{"type":993,"tag":1021,"props":3888,"children":3889},{"style":1036},[3890],{"type":998,"value":1039},{"type":993,"tag":1021,"props":3892,"children":3893},{"style":1042},[3894],{"type":998,"value":3895}," calculate_shipping",{"type":993,"tag":1021,"props":3897,"children":3898},{"style":1048},[3899],{"type":998,"value":3900},"(weight, distance):\n",{"type":993,"tag":1021,"props":3902,"children":3903},{"class":1023,"line":27},[3904],{"type":993,"tag":1021,"props":3905,"children":3906},{"style":1057},[3907],{"type":998,"value":3908},"    \"\"\"Calculate shipping cost based on weight and distance\"\"\"\n",{"type":993,"tag":1021,"props":3910,"children":3911},{"class":1023,"line":36},[3912,3917,3921],{"type":993,"tag":1021,"props":3913,"children":3914},{"style":1048},[3915],{"type":998,"value":3916},"    base_rate ",{"type":993,"tag":1021,"props":3918,"children":3919},{"style":1036},[3920],{"type":998,"value":1128},{"type":993,"tag":1021,"props":3922,"children":3923},{"style":1081},[3924],{"type":998,"value":3925}," 2.50\n",{"type":993,"tag":1021,"props":3927,"children":3928},{"class":1023,"line":45},[3929,3934,3938,3943,3948],{"type":993,"tag":1021,"props":3930,"children":3931},{"style":1048},[3932],{"type":998,"value":3933},"    weight_rate ",{"type":993,"tag":1021,"props":3935,"children":3936},{"style":1036},[3937],{"type":998,"value":1128},{"type":993,"tag":1021,"props":3939,"children":3940},{"style":1081},[3941],{"type":998,"value":3942}," 0.50",{"type":993,"tag":1021,"props":3944,"children":3945},{"style":1036},[3946],{"type":998,"value":3947}," *",{"type":993,"tag":1021,"props":3949,"children":3950},{"style":1048},[3951],{"type":998,"value":3952}," weight\n",{"type":993,"tag":1021,"props":3954,"children":3955},{"class":1023,"line":54},[3956,3961,3965,3970,3974],{"type":993,"tag":1021,"props":3957,"children":3958},{"style":1048},[3959],{"type":998,"value":3960},"    distance_rate ",{"type":993,"tag":1021,"props":3962,"children":3963},{"style":1036},[3964],{"type":998,"value":1128},{"type":993,"tag":1021,"props":3966,"children":3967},{"style":1081},[3968],{"type":998,"value":3969}," 0.10",{"type":993,"tag":1021,"props":3971,"children":3972},{"style":1036},[3973],{"type":998,"value":3947},{"type":993,"tag":1021,"props":3975,"children":3976},{"style":1048},[3977],{"type":998,"value":3978}," distance\n",{"type":993,"tag":1021,"props":3980,"children":3981},{"class":1023,"line":63},[3982],{"type":993,"tag":1021,"props":3983,"children":3984},{"style":1048},[3985],{"type":998,"value":2434},{"type":993,"tag":1021,"props":3987,"children":3988},{"class":1023,"line":72},[3989,3993,3998,4002,4007,4011],{"type":993,"tag":1021,"props":3990,"children":3991},{"style":1036},[3992],{"type":998,"value":1068},{"type":993,"tag":1021,"props":3994,"children":3995},{"style":1048},[3996],{"type":998,"value":3997}," base_rate ",{"type":993,"tag":1021,"props":3999,"children":4000},{"style":1036},[4001],{"type":998,"value":1653},{"type":993,"tag":1021,"props":4003,"children":4004},{"style":1048},[4005],{"type":998,"value":4006}," weight_rate ",{"type":993,"tag":1021,"props":4008,"children":4009},{"style":1036},[4010],{"type":998,"value":1653},{"type":993,"tag":1021,"props":4012,"children":4013},{"style":1048},[4014],{"type":998,"value":4015}," distance_rate\n",{"type":993,"tag":1021,"props":4017,"children":4018},{"class":1023,"line":81},[4019],{"type":993,"tag":1021,"props":4020,"children":4021},{"emptyLinePlaceholder":13},[4022],{"type":998,"value":1107},{"type":993,"tag":1021,"props":4024,"children":4025},{"class":1023,"line":91},[4026,4030,4035],{"type":993,"tag":1021,"props":4027,"children":4028},{"style":1036},[4029],{"type":998,"value":1039},{"type":993,"tag":1021,"props":4031,"children":4032},{"style":1042},[4033],{"type":998,"value":4034}," apply_discount",{"type":993,"tag":1021,"props":4036,"children":4037},{"style":1048},[4038],{"type":998,"value":4039},"(price, customer_type):\n",{"type":993,"tag":1021,"props":4041,"children":4042},{"class":1023,"line":100},[4043],{"type":993,"tag":1021,"props":4044,"children":4045},{"style":1057},[4046],{"type":998,"value":4047},"    \"\"\"Apply discount based on customer type\"\"\"\n",{"type":993,"tag":1021,"props":4049,"children":4050},{"class":1023,"line":109},[4051,4056,4060,4064,4069,4074,4079,4083,4088,4092,4097,4101,4106,4110,4115],{"type":993,"tag":1021,"props":4052,"children":4053},{"style":1048},[4054],{"type":998,"value":4055},"    discounts ",{"type":993,"tag":1021,"props":4057,"children":4058},{"style":1036},[4059],{"type":998,"value":1128},{"type":993,"tag":1021,"props":4061,"children":4062},{"style":1048},[4063],{"type":998,"value":2473},{"type":993,"tag":1021,"props":4065,"children":4066},{"style":1057},[4067],{"type":998,"value":4068},"'premium'",{"type":993,"tag":1021,"props":4070,"children":4071},{"style":1048},[4072],{"type":998,"value":4073},": ",{"type":993,"tag":1021,"props":4075,"children":4076},{"style":1081},[4077],{"type":998,"value":4078},"0.15",{"type":993,"tag":1021,"props":4080,"children":4081},{"style":1048},[4082],{"type":998,"value":1348},{"type":993,"tag":1021,"props":4084,"children":4085},{"style":1057},[4086],{"type":998,"value":4087},"'regular'",{"type":993,"tag":1021,"props":4089,"children":4090},{"style":1048},[4091],{"type":998,"value":4073},{"type":993,"tag":1021,"props":4093,"children":4094},{"style":1081},[4095],{"type":998,"value":4096},"0.05",{"type":993,"tag":1021,"props":4098,"children":4099},{"style":1048},[4100],{"type":998,"value":1348},{"type":993,"tag":1021,"props":4102,"children":4103},{"style":1057},[4104],{"type":998,"value":4105},"'new'",{"type":993,"tag":1021,"props":4107,"children":4108},{"style":1048},[4109],{"type":998,"value":4073},{"type":993,"tag":1021,"props":4111,"children":4112},{"style":1081},[4113],{"type":998,"value":4114},"0.10",{"type":993,"tag":1021,"props":4116,"children":4117},{"style":1048},[4118],{"type":998,"value":4119},"}\n",{"type":993,"tag":1021,"props":4121,"children":4122},{"class":1023,"line":118},[4123,4128,4132,4137,4142],{"type":993,"tag":1021,"props":4124,"children":4125},{"style":1048},[4126],{"type":998,"value":4127},"    discount_rate ",{"type":993,"tag":1021,"props":4129,"children":4130},{"style":1036},[4131],{"type":998,"value":1128},{"type":993,"tag":1021,"props":4133,"children":4134},{"style":1048},[4135],{"type":998,"value":4136}," discounts.get(customer_type, ",{"type":993,"tag":1021,"props":4138,"children":4139},{"style":1081},[4140],{"type":998,"value":4141},"0",{"type":993,"tag":1021,"props":4143,"children":4144},{"style":1048},[4145],{"type":998,"value":1143},{"type":993,"tag":1021,"props":4147,"children":4148},{"class":1023,"line":127},[4149,4153,4158,4162,4167,4171,4176],{"type":993,"tag":1021,"props":4150,"children":4151},{"style":1036},[4152],{"type":998,"value":1068},{"type":993,"tag":1021,"props":4154,"children":4155},{"style":1048},[4156],{"type":998,"value":4157}," price ",{"type":993,"tag":1021,"props":4159,"children":4160},{"style":1036},[4161],{"type":998,"value":1289},{"type":993,"tag":1021,"props":4163,"children":4164},{"style":1048},[4165],{"type":998,"value":4166}," (",{"type":993,"tag":1021,"props":4168,"children":4169},{"style":1081},[4170],{"type":998,"value":2981},{"type":993,"tag":1021,"props":4172,"children":4173},{"style":1036},[4174],{"type":998,"value":4175}," -",{"type":993,"tag":1021,"props":4177,"children":4178},{"style":1048},[4179],{"type":998,"value":4180}," discount_rate)\n",{"type":993,"tag":1021,"props":4182,"children":4183},{"class":1023,"line":136},[4184],{"type":993,"tag":1021,"props":4185,"children":4186},{"emptyLinePlaceholder":13},[4187],{"type":998,"value":1107},{"type":993,"tag":1021,"props":4189,"children":4190},{"class":1023,"line":146},[4191],{"type":993,"tag":1021,"props":4192,"children":4193},{"style":1027},[4194],{"type":998,"value":4195},"# Business calculations\n",{"type":993,"tag":1021,"props":4197,"children":4198},{"class":1023,"line":155},[4199,4204,4208,4213,4217,4221,4226,4231],{"type":993,"tag":1021,"props":4200,"children":4201},{"style":1048},[4202],{"type":998,"value":4203},"shipping_cost ",{"type":993,"tag":1021,"props":4205,"children":4206},{"style":1036},[4207],{"type":998,"value":1128},{"type":993,"tag":1021,"props":4209,"children":4210},{"style":1048},[4211],{"type":998,"value":4212}," calculate_shipping(",{"type":993,"tag":1021,"props":4214,"children":4215},{"style":1081},[4216],{"type":998,"value":1643},{"type":993,"tag":1021,"props":4218,"children":4219},{"style":1048},[4220],{"type":998,"value":1348},{"type":993,"tag":1021,"props":4222,"children":4223},{"style":1081},[4224],{"type":998,"value":4225},"100",{"type":993,"tag":1021,"props":4227,"children":4228},{"style":1048},[4229],{"type":998,"value":4230},")  ",{"type":993,"tag":1021,"props":4232,"children":4233},{"style":1027},[4234],{"type":998,"value":4235},"# 5 lbs, 100 miles\n",{"type":993,"tag":1021,"props":4237,"children":4238},{"class":1023,"line":164},[4239,4244,4248,4253,4258,4262,4266],{"type":993,"tag":1021,"props":4240,"children":4241},{"style":1048},[4242],{"type":998,"value":4243},"discounted_price ",{"type":993,"tag":1021,"props":4245,"children":4246},{"style":1036},[4247],{"type":998,"value":1128},{"type":993,"tag":1021,"props":4249,"children":4250},{"style":1048},[4251],{"type":998,"value":4252}," apply_discount(",{"type":993,"tag":1021,"props":4254,"children":4255},{"style":1081},[4256],{"type":998,"value":4257},"199.99",{"type":993,"tag":1021,"props":4259,"children":4260},{"style":1048},[4261],{"type":998,"value":1348},{"type":993,"tag":1021,"props":4263,"children":4264},{"style":1057},[4265],{"type":998,"value":4068},{"type":993,"tag":1021,"props":4267,"children":4268},{"style":1048},[4269],{"type":998,"value":1143},{"type":993,"tag":1021,"props":4271,"children":4272},{"class":1023,"line":173},[4273],{"type":993,"tag":1021,"props":4274,"children":4275},{"emptyLinePlaceholder":13},[4276],{"type":998,"value":1107},{"type":993,"tag":1021,"props":4278,"children":4279},{"class":1023,"line":182},[4280,4284,4288,4292,4297,4301,4306,4310,4314,4318],{"type":993,"tag":1021,"props":4281,"children":4282},{"style":1081},[4283],{"type":998,"value":1151},{"type":993,"tag":1021,"props":4285,"children":4286},{"style":1048},[4287],{"type":998,"value":1369},{"type":993,"tag":1021,"props":4289,"children":4290},{"style":1036},[4291],{"type":998,"value":1374},{"type":993,"tag":1021,"props":4293,"children":4294},{"style":1057},[4295],{"type":998,"value":4296},"\"Shipping cost: $",{"type":993,"tag":1021,"props":4298,"children":4299},{"style":1081},[4300],{"type":998,"value":1084},{"type":993,"tag":1021,"props":4302,"children":4303},{"style":1048},[4304],{"type":998,"value":4305},"shipping_cost",{"type":993,"tag":1021,"props":4307,"children":4308},{"style":1036},[4309],{"type":998,"value":2525},{"type":993,"tag":1021,"props":4311,"children":4312},{"style":1081},[4313],{"type":998,"value":1094},{"type":993,"tag":1021,"props":4315,"children":4316},{"style":1057},[4317],{"type":998,"value":1895},{"type":993,"tag":1021,"props":4319,"children":4320},{"style":1048},[4321],{"type":998,"value":1143},{"type":993,"tag":1021,"props":4323,"children":4324},{"class":1023,"line":191},[4325,4329,4333,4337,4342,4346,4351,4355,4359,4363],{"type":993,"tag":1021,"props":4326,"children":4327},{"style":1081},[4328],{"type":998,"value":1151},{"type":993,"tag":1021,"props":4330,"children":4331},{"style":1048},[4332],{"type":998,"value":1369},{"type":993,"tag":1021,"props":4334,"children":4335},{"style":1036},[4336],{"type":998,"value":1374},{"type":993,"tag":1021,"props":4338,"children":4339},{"style":1057},[4340],{"type":998,"value":4341},"\"Discounted price: $",{"type":993,"tag":1021,"props":4343,"children":4344},{"style":1081},[4345],{"type":998,"value":1084},{"type":993,"tag":1021,"props":4347,"children":4348},{"style":1048},[4349],{"type":998,"value":4350},"discounted_price",{"type":993,"tag":1021,"props":4352,"children":4353},{"style":1036},[4354],{"type":998,"value":2525},{"type":993,"tag":1021,"props":4356,"children":4357},{"style":1081},[4358],{"type":998,"value":1094},{"type":993,"tag":1021,"props":4360,"children":4361},{"style":1057},[4362],{"type":998,"value":1895},{"type":993,"tag":1021,"props":4364,"children":4365},{"style":1048},[4366],{"type":998,"value":1143},{"type":993,"tag":1562,"props":4368,"children":4369},{"id":857},[4370],{"type":998,"value":855},{"type":993,"tag":1001,"props":4372,"children":4373},{},[4374],{"type":998,"value":4375},"Functions help organize complex workflows into manageable, testable components that work together to accomplish larger tasks.",{"type":993,"tag":1007,"props":4377,"children":4378},{},[4379],{"type":993,"tag":1011,"props":4380,"children":4382},{"className":1013,"code":4381,"language":6,"meta":8,"style":8},"def validate_input(data):\n    \"\"\"Validate user input data\"\"\"\n    if not data or len(data.strip()) == 0:\n        return False, \"Input cannot be empty\"\n    return True, \"Input valid\"\n\ndef process_data(data):\n    \"\"\"Process validated data\"\"\"\n    return data.strip().upper()\n\ndef save_result(result):\n    \"\"\"Save processed result\"\"\"\n    print(f\"Saving: {result}\")\n    return True\n\n# Organized workflow\nuser_input = \"  hello world  \"\nis_valid, message = validate_input(user_input)\n\nif is_valid:\n    processed = process_data(user_input)\n    saved = save_result(processed)\n    print(f\"Workflow completed: {saved}\")\nelse:\n    print(f\"Error: {message}\")\n",[4383],{"type":993,"tag":1017,"props":4384,"children":4385},{"__ignoreMap":8},[4386,4403,4411,4455,4476,4497,4504,4520,4528,4540,4547,4564,4572,4613,4625,4632,4640,4657,4674,4681,4693,4710,4727,4768,4780],{"type":993,"tag":1021,"props":4387,"children":4388},{"class":1023,"line":12},[4389,4393,4398],{"type":993,"tag":1021,"props":4390,"children":4391},{"style":1036},[4392],{"type":998,"value":1039},{"type":993,"tag":1021,"props":4394,"children":4395},{"style":1042},[4396],{"type":998,"value":4397}," validate_input",{"type":993,"tag":1021,"props":4399,"children":4400},{"style":1048},[4401],{"type":998,"value":4402},"(data):\n",{"type":993,"tag":1021,"props":4404,"children":4405},{"class":1023,"line":27},[4406],{"type":993,"tag":1021,"props":4407,"children":4408},{"style":1057},[4409],{"type":998,"value":4410},"    \"\"\"Validate user input data\"\"\"\n",{"type":993,"tag":1021,"props":4412,"children":4413},{"class":1023,"line":36},[4414,4418,4423,4428,4433,4437,4442,4446,4451],{"type":993,"tag":1021,"props":4415,"children":4416},{"style":1036},[4417],{"type":998,"value":1953},{"type":993,"tag":1021,"props":4419,"children":4420},{"style":1036},[4421],{"type":998,"value":4422}," not",{"type":993,"tag":1021,"props":4424,"children":4425},{"style":1048},[4426],{"type":998,"value":4427}," data ",{"type":993,"tag":1021,"props":4429,"children":4430},{"style":1036},[4431],{"type":998,"value":4432},"or",{"type":993,"tag":1021,"props":4434,"children":4435},{"style":1081},[4436],{"type":998,"value":2807},{"type":993,"tag":1021,"props":4438,"children":4439},{"style":1048},[4440],{"type":998,"value":4441},"(data.strip()) ",{"type":993,"tag":1021,"props":4443,"children":4444},{"style":1036},[4445],{"type":998,"value":3487},{"type":993,"tag":1021,"props":4447,"children":4448},{"style":1081},[4449],{"type":998,"value":4450}," 0",{"type":993,"tag":1021,"props":4452,"children":4453},{"style":1048},[4454],{"type":998,"value":1973},{"type":993,"tag":1021,"props":4456,"children":4457},{"class":1023,"line":45},[4458,4462,4467,4471],{"type":993,"tag":1021,"props":4459,"children":4460},{"style":1036},[4461],{"type":998,"value":1981},{"type":993,"tag":1021,"props":4463,"children":4464},{"style":1081},[4465],{"type":998,"value":4466}," False",{"type":993,"tag":1021,"props":4468,"children":4469},{"style":1048},[4470],{"type":998,"value":1348},{"type":993,"tag":1021,"props":4472,"children":4473},{"style":1057},[4474],{"type":998,"value":4475},"\"Input cannot be empty\"\n",{"type":993,"tag":1021,"props":4477,"children":4478},{"class":1023,"line":54},[4479,4483,4488,4492],{"type":993,"tag":1021,"props":4480,"children":4481},{"style":1036},[4482],{"type":998,"value":1068},{"type":993,"tag":1021,"props":4484,"children":4485},{"style":1081},[4486],{"type":998,"value":4487}," True",{"type":993,"tag":1021,"props":4489,"children":4490},{"style":1048},[4491],{"type":998,"value":1348},{"type":993,"tag":1021,"props":4493,"children":4494},{"style":1057},[4495],{"type":998,"value":4496},"\"Input valid\"\n",{"type":993,"tag":1021,"props":4498,"children":4499},{"class":1023,"line":63},[4500],{"type":993,"tag":1021,"props":4501,"children":4502},{"emptyLinePlaceholder":13},[4503],{"type":998,"value":1107},{"type":993,"tag":1021,"props":4505,"children":4506},{"class":1023,"line":72},[4507,4511,4516],{"type":993,"tag":1021,"props":4508,"children":4509},{"style":1036},[4510],{"type":998,"value":1039},{"type":993,"tag":1021,"props":4512,"children":4513},{"style":1042},[4514],{"type":998,"value":4515}," process_data",{"type":993,"tag":1021,"props":4517,"children":4518},{"style":1048},[4519],{"type":998,"value":4402},{"type":993,"tag":1021,"props":4521,"children":4522},{"class":1023,"line":81},[4523],{"type":993,"tag":1021,"props":4524,"children":4525},{"style":1057},[4526],{"type":998,"value":4527},"    \"\"\"Process validated data\"\"\"\n",{"type":993,"tag":1021,"props":4529,"children":4530},{"class":1023,"line":91},[4531,4535],{"type":993,"tag":1021,"props":4532,"children":4533},{"style":1036},[4534],{"type":998,"value":1068},{"type":993,"tag":1021,"props":4536,"children":4537},{"style":1048},[4538],{"type":998,"value":4539}," data.strip().upper()\n",{"type":993,"tag":1021,"props":4541,"children":4542},{"class":1023,"line":100},[4543],{"type":993,"tag":1021,"props":4544,"children":4545},{"emptyLinePlaceholder":13},[4546],{"type":998,"value":1107},{"type":993,"tag":1021,"props":4548,"children":4549},{"class":1023,"line":109},[4550,4554,4559],{"type":993,"tag":1021,"props":4551,"children":4552},{"style":1036},[4553],{"type":998,"value":1039},{"type":993,"tag":1021,"props":4555,"children":4556},{"style":1042},[4557],{"type":998,"value":4558}," save_result",{"type":993,"tag":1021,"props":4560,"children":4561},{"style":1048},[4562],{"type":998,"value":4563},"(result):\n",{"type":993,"tag":1021,"props":4565,"children":4566},{"class":1023,"line":118},[4567],{"type":993,"tag":1021,"props":4568,"children":4569},{"style":1057},[4570],{"type":998,"value":4571},"    \"\"\"Save processed result\"\"\"\n",{"type":993,"tag":1021,"props":4573,"children":4574},{"class":1023,"line":127},[4575,4579,4583,4587,4592,4596,4601,4605,4609],{"type":993,"tag":1021,"props":4576,"children":4577},{"style":1081},[4578],{"type":998,"value":2442},{"type":993,"tag":1021,"props":4580,"children":4581},{"style":1048},[4582],{"type":998,"value":1369},{"type":993,"tag":1021,"props":4584,"children":4585},{"style":1036},[4586],{"type":998,"value":1374},{"type":993,"tag":1021,"props":4588,"children":4589},{"style":1057},[4590],{"type":998,"value":4591},"\"Saving: ",{"type":993,"tag":1021,"props":4593,"children":4594},{"style":1081},[4595],{"type":998,"value":1084},{"type":993,"tag":1021,"props":4597,"children":4598},{"style":1048},[4599],{"type":998,"value":4600},"result",{"type":993,"tag":1021,"props":4602,"children":4603},{"style":1081},[4604],{"type":998,"value":1094},{"type":993,"tag":1021,"props":4606,"children":4607},{"style":1057},[4608],{"type":998,"value":1895},{"type":993,"tag":1021,"props":4610,"children":4611},{"style":1048},[4612],{"type":998,"value":1143},{"type":993,"tag":1021,"props":4614,"children":4615},{"class":1023,"line":136},[4616,4620],{"type":993,"tag":1021,"props":4617,"children":4618},{"style":1036},[4619],{"type":998,"value":1068},{"type":993,"tag":1021,"props":4621,"children":4622},{"style":1081},[4623],{"type":998,"value":4624}," True\n",{"type":993,"tag":1021,"props":4626,"children":4627},{"class":1023,"line":146},[4628],{"type":993,"tag":1021,"props":4629,"children":4630},{"emptyLinePlaceholder":13},[4631],{"type":998,"value":1107},{"type":993,"tag":1021,"props":4633,"children":4634},{"class":1023,"line":155},[4635],{"type":993,"tag":1021,"props":4636,"children":4637},{"style":1027},[4638],{"type":998,"value":4639},"# Organized workflow\n",{"type":993,"tag":1021,"props":4641,"children":4642},{"class":1023,"line":164},[4643,4648,4652],{"type":993,"tag":1021,"props":4644,"children":4645},{"style":1048},[4646],{"type":998,"value":4647},"user_input ",{"type":993,"tag":1021,"props":4649,"children":4650},{"style":1036},[4651],{"type":998,"value":1128},{"type":993,"tag":1021,"props":4653,"children":4654},{"style":1057},[4655],{"type":998,"value":4656}," \"  hello world  \"\n",{"type":993,"tag":1021,"props":4658,"children":4659},{"class":1023,"line":173},[4660,4665,4669],{"type":993,"tag":1021,"props":4661,"children":4662},{"style":1048},[4663],{"type":998,"value":4664},"is_valid, message ",{"type":993,"tag":1021,"props":4666,"children":4667},{"style":1036},[4668],{"type":998,"value":1128},{"type":993,"tag":1021,"props":4670,"children":4671},{"style":1048},[4672],{"type":998,"value":4673}," validate_input(user_input)\n",{"type":993,"tag":1021,"props":4675,"children":4676},{"class":1023,"line":182},[4677],{"type":993,"tag":1021,"props":4678,"children":4679},{"emptyLinePlaceholder":13},[4680],{"type":998,"value":1107},{"type":993,"tag":1021,"props":4682,"children":4683},{"class":1023,"line":191},[4684,4688],{"type":993,"tag":1021,"props":4685,"children":4686},{"style":1036},[4687],{"type":998,"value":3006},{"type":993,"tag":1021,"props":4689,"children":4690},{"style":1048},[4691],{"type":998,"value":4692}," is_valid:\n",{"type":993,"tag":1021,"props":4694,"children":4695},{"class":1023,"line":201},[4696,4701,4705],{"type":993,"tag":1021,"props":4697,"children":4698},{"style":1048},[4699],{"type":998,"value":4700},"    processed ",{"type":993,"tag":1021,"props":4702,"children":4703},{"style":1036},[4704],{"type":998,"value":1128},{"type":993,"tag":1021,"props":4706,"children":4707},{"style":1048},[4708],{"type":998,"value":4709}," process_data(user_input)\n",{"type":993,"tag":1021,"props":4711,"children":4712},{"class":1023,"line":210},[4713,4718,4722],{"type":993,"tag":1021,"props":4714,"children":4715},{"style":1048},[4716],{"type":998,"value":4717},"    saved ",{"type":993,"tag":1021,"props":4719,"children":4720},{"style":1036},[4721],{"type":998,"value":1128},{"type":993,"tag":1021,"props":4723,"children":4724},{"style":1048},[4725],{"type":998,"value":4726}," save_result(processed)\n",{"type":993,"tag":1021,"props":4728,"children":4729},{"class":1023,"line":219},[4730,4734,4738,4742,4747,4751,4756,4760,4764],{"type":993,"tag":1021,"props":4731,"children":4732},{"style":1081},[4733],{"type":998,"value":2442},{"type":993,"tag":1021,"props":4735,"children":4736},{"style":1048},[4737],{"type":998,"value":1369},{"type":993,"tag":1021,"props":4739,"children":4740},{"style":1036},[4741],{"type":998,"value":1374},{"type":993,"tag":1021,"props":4743,"children":4744},{"style":1057},[4745],{"type":998,"value":4746},"\"Workflow completed: ",{"type":993,"tag":1021,"props":4748,"children":4749},{"style":1081},[4750],{"type":998,"value":1084},{"type":993,"tag":1021,"props":4752,"children":4753},{"style":1048},[4754],{"type":998,"value":4755},"saved",{"type":993,"tag":1021,"props":4757,"children":4758},{"style":1081},[4759],{"type":998,"value":1094},{"type":993,"tag":1021,"props":4761,"children":4762},{"style":1057},[4763],{"type":998,"value":1895},{"type":993,"tag":1021,"props":4765,"children":4766},{"style":1048},[4767],{"type":998,"value":1143},{"type":993,"tag":1021,"props":4769,"children":4770},{"class":1023,"line":228},[4771,4776],{"type":993,"tag":1021,"props":4772,"children":4773},{"style":1036},[4774],{"type":998,"value":4775},"else",{"type":993,"tag":1021,"props":4777,"children":4778},{"style":1048},[4779],{"type":998,"value":1973},{"type":993,"tag":1021,"props":4781,"children":4782},{"class":1023,"line":238},[4783,4787,4791,4795,4800,4804,4809,4813,4817],{"type":993,"tag":1021,"props":4784,"children":4785},{"style":1081},[4786],{"type":998,"value":2442},{"type":993,"tag":1021,"props":4788,"children":4789},{"style":1048},[4790],{"type":998,"value":1369},{"type":993,"tag":1021,"props":4792,"children":4793},{"style":1036},[4794],{"type":998,"value":1374},{"type":993,"tag":1021,"props":4796,"children":4797},{"style":1057},[4798],{"type":998,"value":4799},"\"Error: ",{"type":993,"tag":1021,"props":4801,"children":4802},{"style":1081},[4803],{"type":998,"value":1084},{"type":993,"tag":1021,"props":4805,"children":4806},{"style":1048},[4807],{"type":998,"value":4808},"message",{"type":993,"tag":1021,"props":4810,"children":4811},{"style":1081},[4812],{"type":998,"value":1094},{"type":993,"tag":1021,"props":4814,"children":4815},{"style":1057},[4816],{"type":998,"value":1895},{"type":993,"tag":1021,"props":4818,"children":4819},{"style":1048},[4820],{"type":998,"value":1143},{"type":993,"tag":1485,"props":4822,"children":4826},{"emoji":4823,"title":4824,"type":4825},"✅","Best Practices","success",[4827,4837,4847,4857,4867],{"type":993,"tag":1001,"props":4828,"children":4829},{},[4830,4835],{"type":993,"tag":1495,"props":4831,"children":4832},{},[4833],{"type":998,"value":4834},"Descriptive Names:",{"type":998,"value":4836}," Choose names that clearly explain what the function does.",{"type":993,"tag":1001,"props":4838,"children":4839},{},[4840,4845],{"type":993,"tag":1495,"props":4841,"children":4842},{},[4843],{"type":998,"value":4844},"Single Purpose:",{"type":998,"value":4846}," Each function should do one thing well.",{"type":993,"tag":1001,"props":4848,"children":4849},{},[4850,4855],{"type":993,"tag":1495,"props":4851,"children":4852},{},[4853],{"type":998,"value":4854},"Consistent Style:",{"type":998,"value":4856}," Use consistent naming and formatting patterns.",{"type":993,"tag":1001,"props":4858,"children":4859},{},[4860,4865],{"type":993,"tag":1495,"props":4861,"children":4862},{},[4863],{"type":998,"value":4864},"Document Functions:",{"type":998,"value":4866}," Add docstrings to explain complex functions.",{"type":993,"tag":1001,"props":4868,"children":4869},{},[4870,4875],{"type":993,"tag":1495,"props":4871,"children":4872},{},[4873],{"type":998,"value":4874},"Test Functions:",{"type":998,"value":4876}," Test individual functions to ensure they work correctly.",{"type":993,"tag":4878,"props":4879,"children":4881},"content-exercise",{":widget-view":4880,"category":6,"id":620},"true",[],{"type":993,"tag":4883,"props":4884,"children":4887},"exercise",{"hint":4885,"prompt":4886},"Define a function that takes a name parameter and returns a string with a greeting","Create a function that greets a person by name and returns a greeting message. Then call the function with your name.",[4888],{"type":993,"tag":1011,"props":4889,"children":4891},{"className":1013,"code":4890,"language":6,"meta":8,"style":8},"def greet_person(name):\n    # TODO: Create a greeting message using the name\n    # TODO: Return the greeting\n    pass\n\n# TODO: Call the function with your name\ngreeting = greet_person(\"Alice\")\nprint(greeting)\n",[4892],{"type":993,"tag":1017,"props":4893,"children":4894},{"__ignoreMap":8},[4895,4911,4929,4945,4953,4960,4977,5002],{"type":993,"tag":1021,"props":4896,"children":4897},{"class":1023,"line":12},[4898,4902,4907],{"type":993,"tag":1021,"props":4899,"children":4900},{"style":1036},[4901],{"type":998,"value":1039},{"type":993,"tag":1021,"props":4903,"children":4904},{"style":1042},[4905],{"type":998,"value":4906}," greet_person",{"type":993,"tag":1021,"props":4908,"children":4909},{"style":1048},[4910],{"type":998,"value":1051},{"type":993,"tag":1021,"props":4912,"children":4913},{"class":1023,"line":27},[4914,4919,4924],{"type":993,"tag":1021,"props":4915,"children":4916},{"style":1027},[4917],{"type":998,"value":4918},"    # ",{"type":993,"tag":1021,"props":4920,"children":4921},{"style":1036},[4922],{"type":998,"value":4923},"TODO",{"type":993,"tag":1021,"props":4925,"children":4926},{"style":1027},[4927],{"type":998,"value":4928},": Create a greeting message using the name\n",{"type":993,"tag":1021,"props":4930,"children":4931},{"class":1023,"line":36},[4932,4936,4940],{"type":993,"tag":1021,"props":4933,"children":4934},{"style":1027},[4935],{"type":998,"value":4918},{"type":993,"tag":1021,"props":4937,"children":4938},{"style":1036},[4939],{"type":998,"value":4923},{"type":993,"tag":1021,"props":4941,"children":4942},{"style":1027},[4943],{"type":998,"value":4944},": Return the greeting\n",{"type":993,"tag":1021,"props":4946,"children":4947},{"class":1023,"line":45},[4948],{"type":993,"tag":1021,"props":4949,"children":4950},{"style":1036},[4951],{"type":998,"value":4952},"    pass\n",{"type":993,"tag":1021,"props":4954,"children":4955},{"class":1023,"line":54},[4956],{"type":993,"tag":1021,"props":4957,"children":4958},{"emptyLinePlaceholder":13},[4959],{"type":998,"value":1107},{"type":993,"tag":1021,"props":4961,"children":4962},{"class":1023,"line":63},[4963,4968,4972],{"type":993,"tag":1021,"props":4964,"children":4965},{"style":1027},[4966],{"type":998,"value":4967},"# ",{"type":993,"tag":1021,"props":4969,"children":4970},{"style":1036},[4971],{"type":998,"value":4923},{"type":993,"tag":1021,"props":4973,"children":4974},{"style":1027},[4975],{"type":998,"value":4976},": Call the function with your name\n",{"type":993,"tag":1021,"props":4978,"children":4979},{"class":1023,"line":72},[4980,4985,4989,4994,4998],{"type":993,"tag":1021,"props":4981,"children":4982},{"style":1048},[4983],{"type":998,"value":4984},"greeting ",{"type":993,"tag":1021,"props":4986,"children":4987},{"style":1036},[4988],{"type":998,"value":1128},{"type":993,"tag":1021,"props":4990,"children":4991},{"style":1048},[4992],{"type":998,"value":4993}," greet_person(",{"type":993,"tag":1021,"props":4995,"children":4996},{"style":1057},[4997],{"type":998,"value":1138},{"type":993,"tag":1021,"props":4999,"children":5000},{"style":1048},[5001],{"type":998,"value":1143},{"type":993,"tag":1021,"props":5003,"children":5004},{"class":1023,"line":81},[5005,5009],{"type":993,"tag":1021,"props":5006,"children":5007},{"style":1081},[5008],{"type":998,"value":1151},{"type":993,"tag":1021,"props":5010,"children":5011},{"style":1048},[5012],{"type":998,"value":5013},"(greeting)\n",{"type":993,"tag":1562,"props":5015,"children":5017},{"id":5016},"solution-and-explanation",[5018],{"type":998,"value":5019},"Solution and Explanation 💡",{"type":993,"tag":5021,"props":5022,"children":5023},"details",{},[5024,5032,5171,5179],{"type":993,"tag":5025,"props":5026,"children":5029},"summary",{"className":5027},[5028],"cursor-pointer",[5030],{"type":998,"value":5031},"Click to see the complete solution",{"type":993,"tag":1007,"props":5033,"children":5034},{},[5035],{"type":993,"tag":1011,"props":5036,"children":5038},{"className":1013,"code":5037,"language":6,"meta":8,"style":8},"def greet_person(name):\n    # Create a greeting message using the name\n    greeting_message = f\"Hello, {name}! Welcome to Python programming!\"\n    # Return the greeting\n    return greeting_message\n\n# Call the function with your name\ngreeting = greet_person(\"Alice\")\nprint(greeting)\n",[5039],{"type":993,"tag":1017,"props":5040,"children":5041},{"__ignoreMap":8},[5042,5057,5065,5102,5110,5122,5129,5137,5160],{"type":993,"tag":1021,"props":5043,"children":5044},{"class":1023,"line":12},[5045,5049,5053],{"type":993,"tag":1021,"props":5046,"children":5047},{"style":1036},[5048],{"type":998,"value":1039},{"type":993,"tag":1021,"props":5050,"children":5051},{"style":1042},[5052],{"type":998,"value":4906},{"type":993,"tag":1021,"props":5054,"children":5055},{"style":1048},[5056],{"type":998,"value":1051},{"type":993,"tag":1021,"props":5058,"children":5059},{"class":1023,"line":27},[5060],{"type":993,"tag":1021,"props":5061,"children":5062},{"style":1027},[5063],{"type":998,"value":5064},"    # Create a greeting message using the name\n",{"type":993,"tag":1021,"props":5066,"children":5067},{"class":1023,"line":36},[5068,5073,5077,5081,5085,5089,5093,5097],{"type":993,"tag":1021,"props":5069,"children":5070},{"style":1048},[5071],{"type":998,"value":5072},"    greeting_message ",{"type":993,"tag":1021,"props":5074,"children":5075},{"style":1036},[5076],{"type":998,"value":1128},{"type":993,"tag":1021,"props":5078,"children":5079},{"style":1036},[5080],{"type":998,"value":1073},{"type":993,"tag":1021,"props":5082,"children":5083},{"style":1057},[5084],{"type":998,"value":1078},{"type":993,"tag":1021,"props":5086,"children":5087},{"style":1081},[5088],{"type":998,"value":1084},{"type":993,"tag":1021,"props":5090,"children":5091},{"style":1048},[5092],{"type":998,"value":1089},{"type":993,"tag":1021,"props":5094,"children":5095},{"style":1081},[5096],{"type":998,"value":1094},{"type":993,"tag":1021,"props":5098,"children":5099},{"style":1057},[5100],{"type":998,"value":5101},"! Welcome to Python programming!\"\n",{"type":993,"tag":1021,"props":5103,"children":5104},{"class":1023,"line":45},[5105],{"type":993,"tag":1021,"props":5106,"children":5107},{"style":1027},[5108],{"type":998,"value":5109},"    # Return the greeting\n",{"type":993,"tag":1021,"props":5111,"children":5112},{"class":1023,"line":54},[5113,5117],{"type":993,"tag":1021,"props":5114,"children":5115},{"style":1036},[5116],{"type":998,"value":1068},{"type":993,"tag":1021,"props":5118,"children":5119},{"style":1048},[5120],{"type":998,"value":5121}," greeting_message\n",{"type":993,"tag":1021,"props":5123,"children":5124},{"class":1023,"line":63},[5125],{"type":993,"tag":1021,"props":5126,"children":5127},{"emptyLinePlaceholder":13},[5128],{"type":998,"value":1107},{"type":993,"tag":1021,"props":5130,"children":5131},{"class":1023,"line":72},[5132],{"type":993,"tag":1021,"props":5133,"children":5134},{"style":1027},[5135],{"type":998,"value":5136},"# Call the function with your name\n",{"type":993,"tag":1021,"props":5138,"children":5139},{"class":1023,"line":81},[5140,5144,5148,5152,5156],{"type":993,"tag":1021,"props":5141,"children":5142},{"style":1048},[5143],{"type":998,"value":4984},{"type":993,"tag":1021,"props":5145,"children":5146},{"style":1036},[5147],{"type":998,"value":1128},{"type":993,"tag":1021,"props":5149,"children":5150},{"style":1048},[5151],{"type":998,"value":4993},{"type":993,"tag":1021,"props":5153,"children":5154},{"style":1057},[5155],{"type":998,"value":1138},{"type":993,"tag":1021,"props":5157,"children":5158},{"style":1048},[5159],{"type":998,"value":1143},{"type":993,"tag":1021,"props":5161,"children":5162},{"class":1023,"line":91},[5163,5167],{"type":993,"tag":1021,"props":5164,"children":5165},{"style":1081},[5166],{"type":998,"value":1151},{"type":993,"tag":1021,"props":5168,"children":5169},{"style":1048},[5170],{"type":998,"value":5013},{"type":993,"tag":1001,"props":5172,"children":5173},{},[5174],{"type":993,"tag":1495,"props":5175,"children":5176},{},[5177],{"type":998,"value":5178},"Key Learning Points:",{"type":993,"tag":5180,"props":5181,"children":5182},"ul",{},[5183,5204,5215,5232],{"type":993,"tag":5184,"props":5185,"children":5186},"li",{},[5187,5189,5194,5196,5202],{"type":998,"value":5188},"📌 ",{"type":993,"tag":1495,"props":5190,"children":5191},{},[5192],{"type":998,"value":5193},"Function definition",{"type":998,"value":5195},": Use ",{"type":993,"tag":1017,"props":5197,"children":5199},{"className":5198},[],[5200],{"type":998,"value":5201},"def function_name(parameter):",{"type":998,"value":5203}," to define a function",{"type":993,"tag":5184,"props":5205,"children":5206},{},[5207,5208,5213],{"type":998,"value":5188},{"type":993,"tag":1495,"props":5209,"children":5210},{},[5211],{"type":998,"value":5212},"Parameters",{"type":998,"value":5214},": Functions can accept input values called parameters",{"type":993,"tag":5184,"props":5216,"children":5217},{},[5218,5219,5224,5225,5230],{"type":998,"value":5188},{"type":993,"tag":1495,"props":5220,"children":5221},{},[5222],{"type":998,"value":5223},"Return values",{"type":998,"value":5195},{"type":993,"tag":1017,"props":5226,"children":5228},{"className":5227},[],[5229],{"type":998,"value":1537},{"type":998,"value":5231}," to send a value back to the caller",{"type":993,"tag":5184,"props":5233,"children":5234},{},[5235,5236,5241],{"type":998,"value":5188},{"type":993,"tag":1495,"props":5237,"children":5238},{},[5239],{"type":998,"value":5240},"Function calls",{"type":998,"value":5242},": Call functions by using their name with parentheses and arguments",{"type":993,"tag":1001,"props":5244,"children":5245},{},[5246,5248,5254],{"type":998,"value":5247},"Learn more about ",{"type":993,"tag":5249,"props":5250,"children":5251},"a",{"href":626},[5252],{"type":998,"value":5253},"function parameters",{"type":998,"value":5255}," to master different ways of passing data to your functions.",{"type":993,"tag":1215,"props":5257,"children":5259},{"id":5258},"test-your-knowledge",[5260],{"type":998,"value":5261},"Test Your Knowledge",{"type":993,"tag":1001,"props":5263,"children":5264},{},[5265],{"type":998,"value":5266},"Test what you've learned about function basics:",{"type":993,"tag":5268,"props":5269,"children":5273},"redirect-button",{"icon":5270,"label":5271,"url":5272},"pi pi-send","Take Quiz","/tutorial-quiz/python/function-basics",[],{"type":993,"tag":1215,"props":5275,"children":5277},{"id":5276},"whats-next",[5278],{"type":998,"value":5279},"What's Next?",{"type":993,"tag":1001,"props":5281,"children":5282},{},[5283],{"type":998,"value":5284},"Now that you understand the basics of creating and using functions, you're ready to learn about different types of parameters. Understanding parameters will make your functions more flexible and powerful.",{"type":993,"tag":1001,"props":5286,"children":5287},{},[5288,5290,5294],{"type":998,"value":5289},"Ready to continue? Check out our lesson on ",{"type":993,"tag":5249,"props":5291,"children":5292},{"href":626},[5293],{"type":998,"value":627},{"type":998,"value":5295},".",{"type":993,"tag":5297,"props":5298,"children":5299},"style",{},[5300],{"type":998,"value":5301},"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":5303},[5304,5305,5309,5310,5311,5312,5318,5319],{"id":1217,"depth":27,"text":1220},{"id":1552,"depth":27,"text":1555,"children":5306},[5307,5308],{"id":1564,"depth":36,"text":1567},{"id":1902,"depth":36,"text":1905},{"id":2306,"depth":27,"text":2309},{"id":2708,"depth":27,"text":2711},{"id":3177,"depth":27,"text":3180},{"id":3327,"depth":27,"text":3330,"children":5313},[5314,5315,5316,5317],{"id":3333,"depth":36,"text":3336},{"id":3865,"depth":36,"text":3868},{"id":857,"depth":36,"text":855},{"id":5016,"depth":36,"text":5019},{"id":5258,"depth":27,"text":5261},{"id":5276,"depth":27,"text":5279},1782373745428]