[{"data":1,"prerenderedAt":2594},["ShallowReactive",2],{"tutorials-python":3,"category-items-python":987,"content-/python/python-functions":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},"/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",[606],{"_path":607,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":608,"description":609,"slug":610,"order":611,"isParent":13,"icon":14,"body":989,"_type":15,"_id":612,"_source":17,"_file":613,"_stem":614,"_extension":20},{"type":990,"children":991,"toc":2567},"root",[992,1000,1006,1402,1409,1414,1419,1424,1430,1435,1441,1446,1504,1510,1515,1521,1526,1532,1537,1543,1548,2250,2256,2261,2267,2272,2278,2283,2289,2294,2300,2305,2311,2316,2322,2327,2333,2338,2344,2349,2405,2411,2416,2494,2499,2504,2515,2521,2526,2533,2539,2550,2561],{"type":993,"tag":994,"props":995,"children":996},"element","h1",{"id":610},[997],{"type":998,"value":999},"text","📚 Python Functions",{"type":993,"tag":1001,"props":1002,"children":1003},"p",{},[1004],{"type":998,"value":1005},"Functions are one of the most powerful features in Python programming. They allow you to organize code into reusable blocks, eliminate repetition, and create modular programs that are easier to understand, test, and maintain. Mastering functions is essential for writing professional-quality Python code.",{"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","# Functions transform scattered code into organized, reusable components\ndef greet_customer(name, membership_level=\"standard\"):\n    \"\"\"Create personalized greeting based on membership\"\"\"\n    if membership_level == \"premium\":\n        return f\"Welcome back, {name}! Your premium benefits await.\"\n    elif membership_level == \"gold\":\n        return f\"Hello {name}! Thanks for being a gold member.\"\n    else:\n        return f\"Hi {name}! Welcome to our store.\"\n\n# Reuse the same logic with different inputs\ncustomer1 = greet_customer(\"Alice\", \"premium\")\ncustomer2 = greet_customer(\"Bob\")\ncustomer3 = greet_customer(\"Charlie\", \"gold\")\n\nprint(customer1)\nprint(customer2)\nprint(customer3)\n",[1016],{"type":993,"tag":1017,"props":1018,"children":1019},"code",{"__ignoreMap":8},[1020,1031,1068,1076,1104,1143,1168,1201,1213,1246,1254,1262,1299,1324,1358,1365,1378,1390],{"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},"# Functions transform scattered code into organized, reusable components\n",{"type":993,"tag":1021,"props":1032,"children":1033},{"class":1023,"line":27},[1034,1040,1046,1052,1057,1063],{"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_customer",{"type":993,"tag":1021,"props":1047,"children":1049},{"style":1048},"--shiki-default:#24292E;--shiki-app-dark-mode:#E1E4E8",[1050],{"type":998,"value":1051},"(name, membership_level",{"type":993,"tag":1021,"props":1053,"children":1054},{"style":1036},[1055],{"type":998,"value":1056},"=",{"type":993,"tag":1021,"props":1058,"children":1060},{"style":1059},"--shiki-default:#032F62;--shiki-app-dark-mode:#9ECBFF",[1061],{"type":998,"value":1062},"\"standard\"",{"type":993,"tag":1021,"props":1064,"children":1065},{"style":1048},[1066],{"type":998,"value":1067},"):\n",{"type":993,"tag":1021,"props":1069,"children":1070},{"class":1023,"line":36},[1071],{"type":993,"tag":1021,"props":1072,"children":1073},{"style":1059},[1074],{"type":998,"value":1075},"    \"\"\"Create personalized greeting based on membership\"\"\"\n",{"type":993,"tag":1021,"props":1077,"children":1078},{"class":1023,"line":45},[1079,1084,1089,1094,1099],{"type":993,"tag":1021,"props":1080,"children":1081},{"style":1036},[1082],{"type":998,"value":1083},"    if",{"type":993,"tag":1021,"props":1085,"children":1086},{"style":1048},[1087],{"type":998,"value":1088}," membership_level ",{"type":993,"tag":1021,"props":1090,"children":1091},{"style":1036},[1092],{"type":998,"value":1093},"==",{"type":993,"tag":1021,"props":1095,"children":1096},{"style":1059},[1097],{"type":998,"value":1098}," \"premium\"",{"type":993,"tag":1021,"props":1100,"children":1101},{"style":1048},[1102],{"type":998,"value":1103},":\n",{"type":993,"tag":1021,"props":1105,"children":1106},{"class":1023,"line":54},[1107,1112,1117,1122,1128,1133,1138],{"type":993,"tag":1021,"props":1108,"children":1109},{"style":1036},[1110],{"type":998,"value":1111},"        return",{"type":993,"tag":1021,"props":1113,"children":1114},{"style":1036},[1115],{"type":998,"value":1116}," f",{"type":993,"tag":1021,"props":1118,"children":1119},{"style":1059},[1120],{"type":998,"value":1121},"\"Welcome back, ",{"type":993,"tag":1021,"props":1123,"children":1125},{"style":1124},"--shiki-default:#005CC5;--shiki-app-dark-mode:#79B8FF",[1126],{"type":998,"value":1127},"{",{"type":993,"tag":1021,"props":1129,"children":1130},{"style":1048},[1131],{"type":998,"value":1132},"name",{"type":993,"tag":1021,"props":1134,"children":1135},{"style":1124},[1136],{"type":998,"value":1137},"}",{"type":993,"tag":1021,"props":1139,"children":1140},{"style":1059},[1141],{"type":998,"value":1142},"! Your premium benefits await.\"\n",{"type":993,"tag":1021,"props":1144,"children":1145},{"class":1023,"line":63},[1146,1151,1155,1159,1164],{"type":993,"tag":1021,"props":1147,"children":1148},{"style":1036},[1149],{"type":998,"value":1150},"    elif",{"type":993,"tag":1021,"props":1152,"children":1153},{"style":1048},[1154],{"type":998,"value":1088},{"type":993,"tag":1021,"props":1156,"children":1157},{"style":1036},[1158],{"type":998,"value":1093},{"type":993,"tag":1021,"props":1160,"children":1161},{"style":1059},[1162],{"type":998,"value":1163}," \"gold\"",{"type":993,"tag":1021,"props":1165,"children":1166},{"style":1048},[1167],{"type":998,"value":1103},{"type":993,"tag":1021,"props":1169,"children":1170},{"class":1023,"line":72},[1171,1175,1179,1184,1188,1192,1196],{"type":993,"tag":1021,"props":1172,"children":1173},{"style":1036},[1174],{"type":998,"value":1111},{"type":993,"tag":1021,"props":1176,"children":1177},{"style":1036},[1178],{"type":998,"value":1116},{"type":993,"tag":1021,"props":1180,"children":1181},{"style":1059},[1182],{"type":998,"value":1183},"\"Hello ",{"type":993,"tag":1021,"props":1185,"children":1186},{"style":1124},[1187],{"type":998,"value":1127},{"type":993,"tag":1021,"props":1189,"children":1190},{"style":1048},[1191],{"type":998,"value":1132},{"type":993,"tag":1021,"props":1193,"children":1194},{"style":1124},[1195],{"type":998,"value":1137},{"type":993,"tag":1021,"props":1197,"children":1198},{"style":1059},[1199],{"type":998,"value":1200},"! Thanks for being a gold member.\"\n",{"type":993,"tag":1021,"props":1202,"children":1203},{"class":1023,"line":81},[1204,1209],{"type":993,"tag":1021,"props":1205,"children":1206},{"style":1036},[1207],{"type":998,"value":1208},"    else",{"type":993,"tag":1021,"props":1210,"children":1211},{"style":1048},[1212],{"type":998,"value":1103},{"type":993,"tag":1021,"props":1214,"children":1215},{"class":1023,"line":91},[1216,1220,1224,1229,1233,1237,1241],{"type":993,"tag":1021,"props":1217,"children":1218},{"style":1036},[1219],{"type":998,"value":1111},{"type":993,"tag":1021,"props":1221,"children":1222},{"style":1036},[1223],{"type":998,"value":1116},{"type":993,"tag":1021,"props":1225,"children":1226},{"style":1059},[1227],{"type":998,"value":1228},"\"Hi ",{"type":993,"tag":1021,"props":1230,"children":1231},{"style":1124},[1232],{"type":998,"value":1127},{"type":993,"tag":1021,"props":1234,"children":1235},{"style":1048},[1236],{"type":998,"value":1132},{"type":993,"tag":1021,"props":1238,"children":1239},{"style":1124},[1240],{"type":998,"value":1137},{"type":993,"tag":1021,"props":1242,"children":1243},{"style":1059},[1244],{"type":998,"value":1245},"! Welcome to our store.\"\n",{"type":993,"tag":1021,"props":1247,"children":1248},{"class":1023,"line":100},[1249],{"type":993,"tag":1021,"props":1250,"children":1251},{"emptyLinePlaceholder":13},[1252],{"type":998,"value":1253},"\n",{"type":993,"tag":1021,"props":1255,"children":1256},{"class":1023,"line":109},[1257],{"type":993,"tag":1021,"props":1258,"children":1259},{"style":1027},[1260],{"type":998,"value":1261},"# Reuse the same logic with different inputs\n",{"type":993,"tag":1021,"props":1263,"children":1264},{"class":1023,"line":118},[1265,1270,1274,1279,1284,1289,1294],{"type":993,"tag":1021,"props":1266,"children":1267},{"style":1048},[1268],{"type":998,"value":1269},"customer1 ",{"type":993,"tag":1021,"props":1271,"children":1272},{"style":1036},[1273],{"type":998,"value":1056},{"type":993,"tag":1021,"props":1275,"children":1276},{"style":1048},[1277],{"type":998,"value":1278}," greet_customer(",{"type":993,"tag":1021,"props":1280,"children":1281},{"style":1059},[1282],{"type":998,"value":1283},"\"Alice\"",{"type":993,"tag":1021,"props":1285,"children":1286},{"style":1048},[1287],{"type":998,"value":1288},", ",{"type":993,"tag":1021,"props":1290,"children":1291},{"style":1059},[1292],{"type":998,"value":1293},"\"premium\"",{"type":993,"tag":1021,"props":1295,"children":1296},{"style":1048},[1297],{"type":998,"value":1298},")\n",{"type":993,"tag":1021,"props":1300,"children":1301},{"class":1023,"line":127},[1302,1307,1311,1315,1320],{"type":993,"tag":1021,"props":1303,"children":1304},{"style":1048},[1305],{"type":998,"value":1306},"customer2 ",{"type":993,"tag":1021,"props":1308,"children":1309},{"style":1036},[1310],{"type":998,"value":1056},{"type":993,"tag":1021,"props":1312,"children":1313},{"style":1048},[1314],{"type":998,"value":1278},{"type":993,"tag":1021,"props":1316,"children":1317},{"style":1059},[1318],{"type":998,"value":1319},"\"Bob\"",{"type":993,"tag":1021,"props":1321,"children":1322},{"style":1048},[1323],{"type":998,"value":1298},{"type":993,"tag":1021,"props":1325,"children":1326},{"class":1023,"line":136},[1327,1332,1336,1340,1345,1349,1354],{"type":993,"tag":1021,"props":1328,"children":1329},{"style":1048},[1330],{"type":998,"value":1331},"customer3 ",{"type":993,"tag":1021,"props":1333,"children":1334},{"style":1036},[1335],{"type":998,"value":1056},{"type":993,"tag":1021,"props":1337,"children":1338},{"style":1048},[1339],{"type":998,"value":1278},{"type":993,"tag":1021,"props":1341,"children":1342},{"style":1059},[1343],{"type":998,"value":1344},"\"Charlie\"",{"type":993,"tag":1021,"props":1346,"children":1347},{"style":1048},[1348],{"type":998,"value":1288},{"type":993,"tag":1021,"props":1350,"children":1351},{"style":1059},[1352],{"type":998,"value":1353},"\"gold\"",{"type":993,"tag":1021,"props":1355,"children":1356},{"style":1048},[1357],{"type":998,"value":1298},{"type":993,"tag":1021,"props":1359,"children":1360},{"class":1023,"line":146},[1361],{"type":993,"tag":1021,"props":1362,"children":1363},{"emptyLinePlaceholder":13},[1364],{"type":998,"value":1253},{"type":993,"tag":1021,"props":1366,"children":1367},{"class":1023,"line":155},[1368,1373],{"type":993,"tag":1021,"props":1369,"children":1370},{"style":1124},[1371],{"type":998,"value":1372},"print",{"type":993,"tag":1021,"props":1374,"children":1375},{"style":1048},[1376],{"type":998,"value":1377},"(customer1)\n",{"type":993,"tag":1021,"props":1379,"children":1380},{"class":1023,"line":164},[1381,1385],{"type":993,"tag":1021,"props":1382,"children":1383},{"style":1124},[1384],{"type":998,"value":1372},{"type":993,"tag":1021,"props":1386,"children":1387},{"style":1048},[1388],{"type":998,"value":1389},"(customer2)\n",{"type":993,"tag":1021,"props":1391,"children":1392},{"class":1023,"line":173},[1393,1397],{"type":993,"tag":1021,"props":1394,"children":1395},{"style":1124},[1396],{"type":998,"value":1372},{"type":993,"tag":1021,"props":1398,"children":1399},{"style":1048},[1400],{"type":998,"value":1401},"(customer3)\n",{"type":993,"tag":1403,"props":1404,"children":1406},"h2",{"id":1405},"why-functions-matter",[1407],{"type":998,"value":1408},"🎯 Why Functions Matter",{"type":993,"tag":1001,"props":1410,"children":1411},{},[1412],{"type":998,"value":1413},"Functions solve fundamental programming challenges by providing structure, reusability, and clarity to your code. They transform complex programs into manageable, testable components.",{"type":993,"tag":1415,"props":1416,"children":1417},"h3",{"id":857},[1418],{"type":998,"value":855},{"type":993,"tag":1001,"props":1420,"children":1421},{},[1422],{"type":998,"value":1423},"Functions help break large programs into smaller, focused pieces that each handle specific tasks. This organization makes code easier to understand and navigate.",{"type":993,"tag":1415,"props":1425,"children":1427},{"id":1426},"elimination-of-repetition",[1428],{"type":998,"value":1429},"Elimination of Repetition",{"type":993,"tag":1001,"props":1431,"children":1432},{},[1433],{"type":998,"value":1434},"Instead of copying and pasting similar code throughout your program, functions let you write logic once and use it multiple times with different inputs.",{"type":993,"tag":1415,"props":1436,"children":1438},{"id":1437},"easier-testing-and-debugging",[1439],{"type":998,"value":1440},"Easier Testing and Debugging",{"type":993,"tag":1001,"props":1442,"children":1443},{},[1444],{"type":998,"value":1445},"Functions create isolated units of code that can be tested independently, making it much easier to find and fix problems in your programs.",{"type":993,"tag":1447,"props":1448,"children":1452},"info-box",{"emoji":1449,"title":1450,"type":1451},"🔧","Function Benefits","info",[1453,1464,1474,1484,1494],{"type":993,"tag":1001,"props":1454,"children":1455},{},[1456,1462],{"type":993,"tag":1457,"props":1458,"children":1459},"strong",{},[1460],{"type":998,"value":1461},"Modularity:",{"type":998,"value":1463}," Break complex problems into manageable pieces",{"type":993,"tag":1001,"props":1465,"children":1466},{},[1467,1472],{"type":993,"tag":1457,"props":1468,"children":1469},{},[1470],{"type":998,"value":1471},"Reusability:",{"type":998,"value":1473}," Write once, use many times with different data",{"type":993,"tag":1001,"props":1475,"children":1476},{},[1477,1482],{"type":993,"tag":1457,"props":1478,"children":1479},{},[1480],{"type":998,"value":1481},"Maintainability:",{"type":998,"value":1483}," Update logic in one place affects all uses",{"type":993,"tag":1001,"props":1485,"children":1486},{},[1487,1492],{"type":993,"tag":1457,"props":1488,"children":1489},{},[1490],{"type":998,"value":1491},"Readability:",{"type":998,"value":1493}," Self-documenting code with descriptive function names",{"type":993,"tag":1001,"props":1495,"children":1496},{},[1497,1502],{"type":993,"tag":1457,"props":1498,"children":1499},{},[1500],{"type":998,"value":1501},"Testing:",{"type":998,"value":1503}," Isolated units are easier to test and debug",{"type":993,"tag":1403,"props":1505,"children":1507},{"id":1506},"function-building-blocks",[1508],{"type":998,"value":1509},"⚡ Function Building Blocks",{"type":993,"tag":1001,"props":1511,"children":1512},{},[1513],{"type":998,"value":1514},"Understanding the components that make up functions helps you design better, more effective code structures for your applications.",{"type":993,"tag":1415,"props":1516,"children":1518},{"id":1517},"function-definition",[1519],{"type":998,"value":1520},"Function Definition",{"type":993,"tag":1001,"props":1522,"children":1523},{},[1524],{"type":998,"value":1525},"Creating functions involves defining their purpose, inputs, and outputs in a clear, organized way.",{"type":993,"tag":1415,"props":1527,"children":1529},{"id":1528},"parameter-design",[1530],{"type":998,"value":1531},"Parameter Design",{"type":993,"tag":1001,"props":1533,"children":1534},{},[1535],{"type":998,"value":1536},"Well-designed parameters make functions flexible and intuitive to use, handling both required data and optional configuration seamlessly.",{"type":993,"tag":1415,"props":1538,"children":1540},{"id":1539},"return-values",[1541],{"type":998,"value":1542},"Return Values",{"type":993,"tag":1001,"props":1544,"children":1545},{},[1546],{"type":998,"value":1547},"Functions communicate results back through return values, providing the processed data or status information needed by other parts of your program.",{"type":993,"tag":1007,"props":1549,"children":1550},{},[1551],{"type":993,"tag":1011,"props":1552,"children":1554},{"className":1013,"code":1553,"language":6,"meta":8,"style":8},"def calculate_order_summary(items, tax_rate=0.08, discount=0):\n    \"\"\"Calculate comprehensive order information\"\"\"\n    # Calculate subtotal\n    subtotal = sum(item['price'] * item['quantity'] for item in items)\n    \n    # Apply discount\n    discount_amount = subtotal * discount\n    subtotal_after_discount = subtotal - discount_amount\n    \n    # Calculate tax and total\n    tax_amount = subtotal_after_discount * tax_rate\n    total = subtotal_after_discount + tax_amount\n    \n    # Return comprehensive summary\n    return {\n        'subtotal': subtotal,\n        'discount': discount_amount,\n        'tax': tax_amount,\n        'total': total,\n        'item_count': len(items)\n    }\n\n# Example order\norder_items = [\n    {'name': 'Laptop', 'price': 999.99, 'quantity': 1},\n    {'name': 'Mouse', 'price': 25.50, 'quantity': 2}\n]\n\nsummary = calculate_order_summary(order_items, discount=0.10)\nprint(f\"Order total: ${summary['total']:.2f}\")\nprint(f\"You saved: ${summary['discount']:.2f}\")\n",[1555],{"type":993,"tag":1017,"props":1556,"children":1557},{"__ignoreMap":8},[1558,1602,1610,1618,1689,1697,1705,1731,1757,1764,1772,1798,1824,1831,1839,1852,1865,1878,1891,1904,1927,1935,1942,1950,1967,2028,2087,2095,2102,2138,2197],{"type":993,"tag":1021,"props":1559,"children":1560},{"class":1023,"line":12},[1561,1565,1570,1575,1579,1584,1589,1593,1598],{"type":993,"tag":1021,"props":1562,"children":1563},{"style":1036},[1564],{"type":998,"value":1039},{"type":993,"tag":1021,"props":1566,"children":1567},{"style":1042},[1568],{"type":998,"value":1569}," calculate_order_summary",{"type":993,"tag":1021,"props":1571,"children":1572},{"style":1048},[1573],{"type":998,"value":1574},"(items, tax_rate",{"type":993,"tag":1021,"props":1576,"children":1577},{"style":1036},[1578],{"type":998,"value":1056},{"type":993,"tag":1021,"props":1580,"children":1581},{"style":1124},[1582],{"type":998,"value":1583},"0.08",{"type":993,"tag":1021,"props":1585,"children":1586},{"style":1048},[1587],{"type":998,"value":1588},", discount",{"type":993,"tag":1021,"props":1590,"children":1591},{"style":1036},[1592],{"type":998,"value":1056},{"type":993,"tag":1021,"props":1594,"children":1595},{"style":1124},[1596],{"type":998,"value":1597},"0",{"type":993,"tag":1021,"props":1599,"children":1600},{"style":1048},[1601],{"type":998,"value":1067},{"type":993,"tag":1021,"props":1603,"children":1604},{"class":1023,"line":27},[1605],{"type":993,"tag":1021,"props":1606,"children":1607},{"style":1059},[1608],{"type":998,"value":1609},"    \"\"\"Calculate comprehensive order information\"\"\"\n",{"type":993,"tag":1021,"props":1611,"children":1612},{"class":1023,"line":36},[1613],{"type":993,"tag":1021,"props":1614,"children":1615},{"style":1027},[1616],{"type":998,"value":1617},"    # Calculate subtotal\n",{"type":993,"tag":1021,"props":1619,"children":1620},{"class":1023,"line":45},[1621,1626,1630,1635,1640,1645,1650,1655,1660,1665,1669,1674,1679,1684],{"type":993,"tag":1021,"props":1622,"children":1623},{"style":1048},[1624],{"type":998,"value":1625},"    subtotal ",{"type":993,"tag":1021,"props":1627,"children":1628},{"style":1036},[1629],{"type":998,"value":1056},{"type":993,"tag":1021,"props":1631,"children":1632},{"style":1124},[1633],{"type":998,"value":1634}," sum",{"type":993,"tag":1021,"props":1636,"children":1637},{"style":1048},[1638],{"type":998,"value":1639},"(item[",{"type":993,"tag":1021,"props":1641,"children":1642},{"style":1059},[1643],{"type":998,"value":1644},"'price'",{"type":993,"tag":1021,"props":1646,"children":1647},{"style":1048},[1648],{"type":998,"value":1649},"] ",{"type":993,"tag":1021,"props":1651,"children":1652},{"style":1036},[1653],{"type":998,"value":1654},"*",{"type":993,"tag":1021,"props":1656,"children":1657},{"style":1048},[1658],{"type":998,"value":1659}," item[",{"type":993,"tag":1021,"props":1661,"children":1662},{"style":1059},[1663],{"type":998,"value":1664},"'quantity'",{"type":993,"tag":1021,"props":1666,"children":1667},{"style":1048},[1668],{"type":998,"value":1649},{"type":993,"tag":1021,"props":1670,"children":1671},{"style":1036},[1672],{"type":998,"value":1673},"for",{"type":993,"tag":1021,"props":1675,"children":1676},{"style":1048},[1677],{"type":998,"value":1678}," item ",{"type":993,"tag":1021,"props":1680,"children":1681},{"style":1036},[1682],{"type":998,"value":1683},"in",{"type":993,"tag":1021,"props":1685,"children":1686},{"style":1048},[1687],{"type":998,"value":1688}," items)\n",{"type":993,"tag":1021,"props":1690,"children":1691},{"class":1023,"line":54},[1692],{"type":993,"tag":1021,"props":1693,"children":1694},{"style":1048},[1695],{"type":998,"value":1696},"    \n",{"type":993,"tag":1021,"props":1698,"children":1699},{"class":1023,"line":63},[1700],{"type":993,"tag":1021,"props":1701,"children":1702},{"style":1027},[1703],{"type":998,"value":1704},"    # Apply discount\n",{"type":993,"tag":1021,"props":1706,"children":1707},{"class":1023,"line":72},[1708,1713,1717,1722,1726],{"type":993,"tag":1021,"props":1709,"children":1710},{"style":1048},[1711],{"type":998,"value":1712},"    discount_amount ",{"type":993,"tag":1021,"props":1714,"children":1715},{"style":1036},[1716],{"type":998,"value":1056},{"type":993,"tag":1021,"props":1718,"children":1719},{"style":1048},[1720],{"type":998,"value":1721}," subtotal ",{"type":993,"tag":1021,"props":1723,"children":1724},{"style":1036},[1725],{"type":998,"value":1654},{"type":993,"tag":1021,"props":1727,"children":1728},{"style":1048},[1729],{"type":998,"value":1730}," discount\n",{"type":993,"tag":1021,"props":1732,"children":1733},{"class":1023,"line":81},[1734,1739,1743,1747,1752],{"type":993,"tag":1021,"props":1735,"children":1736},{"style":1048},[1737],{"type":998,"value":1738},"    subtotal_after_discount ",{"type":993,"tag":1021,"props":1740,"children":1741},{"style":1036},[1742],{"type":998,"value":1056},{"type":993,"tag":1021,"props":1744,"children":1745},{"style":1048},[1746],{"type":998,"value":1721},{"type":993,"tag":1021,"props":1748,"children":1749},{"style":1036},[1750],{"type":998,"value":1751},"-",{"type":993,"tag":1021,"props":1753,"children":1754},{"style":1048},[1755],{"type":998,"value":1756}," discount_amount\n",{"type":993,"tag":1021,"props":1758,"children":1759},{"class":1023,"line":91},[1760],{"type":993,"tag":1021,"props":1761,"children":1762},{"style":1048},[1763],{"type":998,"value":1696},{"type":993,"tag":1021,"props":1765,"children":1766},{"class":1023,"line":100},[1767],{"type":993,"tag":1021,"props":1768,"children":1769},{"style":1027},[1770],{"type":998,"value":1771},"    # Calculate tax and total\n",{"type":993,"tag":1021,"props":1773,"children":1774},{"class":1023,"line":109},[1775,1780,1784,1789,1793],{"type":993,"tag":1021,"props":1776,"children":1777},{"style":1048},[1778],{"type":998,"value":1779},"    tax_amount ",{"type":993,"tag":1021,"props":1781,"children":1782},{"style":1036},[1783],{"type":998,"value":1056},{"type":993,"tag":1021,"props":1785,"children":1786},{"style":1048},[1787],{"type":998,"value":1788}," subtotal_after_discount ",{"type":993,"tag":1021,"props":1790,"children":1791},{"style":1036},[1792],{"type":998,"value":1654},{"type":993,"tag":1021,"props":1794,"children":1795},{"style":1048},[1796],{"type":998,"value":1797}," tax_rate\n",{"type":993,"tag":1021,"props":1799,"children":1800},{"class":1023,"line":118},[1801,1806,1810,1814,1819],{"type":993,"tag":1021,"props":1802,"children":1803},{"style":1048},[1804],{"type":998,"value":1805},"    total ",{"type":993,"tag":1021,"props":1807,"children":1808},{"style":1036},[1809],{"type":998,"value":1056},{"type":993,"tag":1021,"props":1811,"children":1812},{"style":1048},[1813],{"type":998,"value":1788},{"type":993,"tag":1021,"props":1815,"children":1816},{"style":1036},[1817],{"type":998,"value":1818},"+",{"type":993,"tag":1021,"props":1820,"children":1821},{"style":1048},[1822],{"type":998,"value":1823}," tax_amount\n",{"type":993,"tag":1021,"props":1825,"children":1826},{"class":1023,"line":127},[1827],{"type":993,"tag":1021,"props":1828,"children":1829},{"style":1048},[1830],{"type":998,"value":1696},{"type":993,"tag":1021,"props":1832,"children":1833},{"class":1023,"line":136},[1834],{"type":993,"tag":1021,"props":1835,"children":1836},{"style":1027},[1837],{"type":998,"value":1838},"    # Return comprehensive summary\n",{"type":993,"tag":1021,"props":1840,"children":1841},{"class":1023,"line":146},[1842,1847],{"type":993,"tag":1021,"props":1843,"children":1844},{"style":1036},[1845],{"type":998,"value":1846},"    return",{"type":993,"tag":1021,"props":1848,"children":1849},{"style":1048},[1850],{"type":998,"value":1851}," {\n",{"type":993,"tag":1021,"props":1853,"children":1854},{"class":1023,"line":155},[1855,1860],{"type":993,"tag":1021,"props":1856,"children":1857},{"style":1059},[1858],{"type":998,"value":1859},"        'subtotal'",{"type":993,"tag":1021,"props":1861,"children":1862},{"style":1048},[1863],{"type":998,"value":1864},": subtotal,\n",{"type":993,"tag":1021,"props":1866,"children":1867},{"class":1023,"line":164},[1868,1873],{"type":993,"tag":1021,"props":1869,"children":1870},{"style":1059},[1871],{"type":998,"value":1872},"        'discount'",{"type":993,"tag":1021,"props":1874,"children":1875},{"style":1048},[1876],{"type":998,"value":1877},": discount_amount,\n",{"type":993,"tag":1021,"props":1879,"children":1880},{"class":1023,"line":173},[1881,1886],{"type":993,"tag":1021,"props":1882,"children":1883},{"style":1059},[1884],{"type":998,"value":1885},"        'tax'",{"type":993,"tag":1021,"props":1887,"children":1888},{"style":1048},[1889],{"type":998,"value":1890},": tax_amount,\n",{"type":993,"tag":1021,"props":1892,"children":1893},{"class":1023,"line":182},[1894,1899],{"type":993,"tag":1021,"props":1895,"children":1896},{"style":1059},[1897],{"type":998,"value":1898},"        'total'",{"type":993,"tag":1021,"props":1900,"children":1901},{"style":1048},[1902],{"type":998,"value":1903},": total,\n",{"type":993,"tag":1021,"props":1905,"children":1906},{"class":1023,"line":191},[1907,1912,1917,1922],{"type":993,"tag":1021,"props":1908,"children":1909},{"style":1059},[1910],{"type":998,"value":1911},"        'item_count'",{"type":993,"tag":1021,"props":1913,"children":1914},{"style":1048},[1915],{"type":998,"value":1916},": ",{"type":993,"tag":1021,"props":1918,"children":1919},{"style":1124},[1920],{"type":998,"value":1921},"len",{"type":993,"tag":1021,"props":1923,"children":1924},{"style":1048},[1925],{"type":998,"value":1926},"(items)\n",{"type":993,"tag":1021,"props":1928,"children":1929},{"class":1023,"line":201},[1930],{"type":993,"tag":1021,"props":1931,"children":1932},{"style":1048},[1933],{"type":998,"value":1934},"    }\n",{"type":993,"tag":1021,"props":1936,"children":1937},{"class":1023,"line":210},[1938],{"type":993,"tag":1021,"props":1939,"children":1940},{"emptyLinePlaceholder":13},[1941],{"type":998,"value":1253},{"type":993,"tag":1021,"props":1943,"children":1944},{"class":1023,"line":219},[1945],{"type":993,"tag":1021,"props":1946,"children":1947},{"style":1027},[1948],{"type":998,"value":1949},"# Example order\n",{"type":993,"tag":1021,"props":1951,"children":1952},{"class":1023,"line":228},[1953,1958,1962],{"type":993,"tag":1021,"props":1954,"children":1955},{"style":1048},[1956],{"type":998,"value":1957},"order_items ",{"type":993,"tag":1021,"props":1959,"children":1960},{"style":1036},[1961],{"type":998,"value":1056},{"type":993,"tag":1021,"props":1963,"children":1964},{"style":1048},[1965],{"type":998,"value":1966}," [\n",{"type":993,"tag":1021,"props":1968,"children":1969},{"class":1023,"line":238},[1970,1975,1980,1984,1989,1993,1997,2001,2006,2010,2014,2018,2023],{"type":993,"tag":1021,"props":1971,"children":1972},{"style":1048},[1973],{"type":998,"value":1974},"    {",{"type":993,"tag":1021,"props":1976,"children":1977},{"style":1059},[1978],{"type":998,"value":1979},"'name'",{"type":993,"tag":1021,"props":1981,"children":1982},{"style":1048},[1983],{"type":998,"value":1916},{"type":993,"tag":1021,"props":1985,"children":1986},{"style":1059},[1987],{"type":998,"value":1988},"'Laptop'",{"type":993,"tag":1021,"props":1990,"children":1991},{"style":1048},[1992],{"type":998,"value":1288},{"type":993,"tag":1021,"props":1994,"children":1995},{"style":1059},[1996],{"type":998,"value":1644},{"type":993,"tag":1021,"props":1998,"children":1999},{"style":1048},[2000],{"type":998,"value":1916},{"type":993,"tag":1021,"props":2002,"children":2003},{"style":1124},[2004],{"type":998,"value":2005},"999.99",{"type":993,"tag":1021,"props":2007,"children":2008},{"style":1048},[2009],{"type":998,"value":1288},{"type":993,"tag":1021,"props":2011,"children":2012},{"style":1059},[2013],{"type":998,"value":1664},{"type":993,"tag":1021,"props":2015,"children":2016},{"style":1048},[2017],{"type":998,"value":1916},{"type":993,"tag":1021,"props":2019,"children":2020},{"style":1124},[2021],{"type":998,"value":2022},"1",{"type":993,"tag":1021,"props":2024,"children":2025},{"style":1048},[2026],{"type":998,"value":2027},"},\n",{"type":993,"tag":1021,"props":2029,"children":2030},{"class":1023,"line":247},[2031,2035,2039,2043,2048,2052,2056,2060,2065,2069,2073,2077,2082],{"type":993,"tag":1021,"props":2032,"children":2033},{"style":1048},[2034],{"type":998,"value":1974},{"type":993,"tag":1021,"props":2036,"children":2037},{"style":1059},[2038],{"type":998,"value":1979},{"type":993,"tag":1021,"props":2040,"children":2041},{"style":1048},[2042],{"type":998,"value":1916},{"type":993,"tag":1021,"props":2044,"children":2045},{"style":1059},[2046],{"type":998,"value":2047},"'Mouse'",{"type":993,"tag":1021,"props":2049,"children":2050},{"style":1048},[2051],{"type":998,"value":1288},{"type":993,"tag":1021,"props":2053,"children":2054},{"style":1059},[2055],{"type":998,"value":1644},{"type":993,"tag":1021,"props":2057,"children":2058},{"style":1048},[2059],{"type":998,"value":1916},{"type":993,"tag":1021,"props":2061,"children":2062},{"style":1124},[2063],{"type":998,"value":2064},"25.50",{"type":993,"tag":1021,"props":2066,"children":2067},{"style":1048},[2068],{"type":998,"value":1288},{"type":993,"tag":1021,"props":2070,"children":2071},{"style":1059},[2072],{"type":998,"value":1664},{"type":993,"tag":1021,"props":2074,"children":2075},{"style":1048},[2076],{"type":998,"value":1916},{"type":993,"tag":1021,"props":2078,"children":2079},{"style":1124},[2080],{"type":998,"value":2081},"2",{"type":993,"tag":1021,"props":2083,"children":2084},{"style":1048},[2085],{"type":998,"value":2086},"}\n",{"type":993,"tag":1021,"props":2088,"children":2089},{"class":1023,"line":256},[2090],{"type":993,"tag":1021,"props":2091,"children":2092},{"style":1048},[2093],{"type":998,"value":2094},"]\n",{"type":993,"tag":1021,"props":2096,"children":2097},{"class":1023,"line":265},[2098],{"type":993,"tag":1021,"props":2099,"children":2100},{"emptyLinePlaceholder":13},[2101],{"type":998,"value":1253},{"type":993,"tag":1021,"props":2103,"children":2104},{"class":1023,"line":274},[2105,2110,2114,2119,2125,2129,2134],{"type":993,"tag":1021,"props":2106,"children":2107},{"style":1048},[2108],{"type":998,"value":2109},"summary ",{"type":993,"tag":1021,"props":2111,"children":2112},{"style":1036},[2113],{"type":998,"value":1056},{"type":993,"tag":1021,"props":2115,"children":2116},{"style":1048},[2117],{"type":998,"value":2118}," calculate_order_summary(order_items, ",{"type":993,"tag":1021,"props":2120,"children":2122},{"style":2121},"--shiki-default:#E36209;--shiki-app-dark-mode:#FFAB70",[2123],{"type":998,"value":2124},"discount",{"type":993,"tag":1021,"props":2126,"children":2127},{"style":1036},[2128],{"type":998,"value":1056},{"type":993,"tag":1021,"props":2130,"children":2131},{"style":1124},[2132],{"type":998,"value":2133},"0.10",{"type":993,"tag":1021,"props":2135,"children":2136},{"style":1048},[2137],{"type":998,"value":1298},{"type":993,"tag":1021,"props":2139,"children":2140},{"class":1023,"line":284},[2141,2145,2150,2155,2160,2164,2169,2174,2179,2184,2188,2193],{"type":993,"tag":1021,"props":2142,"children":2143},{"style":1124},[2144],{"type":998,"value":1372},{"type":993,"tag":1021,"props":2146,"children":2147},{"style":1048},[2148],{"type":998,"value":2149},"(",{"type":993,"tag":1021,"props":2151,"children":2152},{"style":1036},[2153],{"type":998,"value":2154},"f",{"type":993,"tag":1021,"props":2156,"children":2157},{"style":1059},[2158],{"type":998,"value":2159},"\"Order total: $",{"type":993,"tag":1021,"props":2161,"children":2162},{"style":1124},[2163],{"type":998,"value":1127},{"type":993,"tag":1021,"props":2165,"children":2166},{"style":1048},[2167],{"type":998,"value":2168},"summary[",{"type":993,"tag":1021,"props":2170,"children":2171},{"style":1059},[2172],{"type":998,"value":2173},"'total'",{"type":993,"tag":1021,"props":2175,"children":2176},{"style":1048},[2177],{"type":998,"value":2178},"]",{"type":993,"tag":1021,"props":2180,"children":2181},{"style":1036},[2182],{"type":998,"value":2183},":.2f",{"type":993,"tag":1021,"props":2185,"children":2186},{"style":1124},[2187],{"type":998,"value":1137},{"type":993,"tag":1021,"props":2189,"children":2190},{"style":1059},[2191],{"type":998,"value":2192},"\"",{"type":993,"tag":1021,"props":2194,"children":2195},{"style":1048},[2196],{"type":998,"value":1298},{"type":993,"tag":1021,"props":2198,"children":2199},{"class":1023,"line":293},[2200,2204,2208,2212,2217,2221,2225,2230,2234,2238,2242,2246],{"type":993,"tag":1021,"props":2201,"children":2202},{"style":1124},[2203],{"type":998,"value":1372},{"type":993,"tag":1021,"props":2205,"children":2206},{"style":1048},[2207],{"type":998,"value":2149},{"type":993,"tag":1021,"props":2209,"children":2210},{"style":1036},[2211],{"type":998,"value":2154},{"type":993,"tag":1021,"props":2213,"children":2214},{"style":1059},[2215],{"type":998,"value":2216},"\"You saved: $",{"type":993,"tag":1021,"props":2218,"children":2219},{"style":1124},[2220],{"type":998,"value":1127},{"type":993,"tag":1021,"props":2222,"children":2223},{"style":1048},[2224],{"type":998,"value":2168},{"type":993,"tag":1021,"props":2226,"children":2227},{"style":1059},[2228],{"type":998,"value":2229},"'discount'",{"type":993,"tag":1021,"props":2231,"children":2232},{"style":1048},[2233],{"type":998,"value":2178},{"type":993,"tag":1021,"props":2235,"children":2236},{"style":1036},[2237],{"type":998,"value":2183},{"type":993,"tag":1021,"props":2239,"children":2240},{"style":1124},[2241],{"type":998,"value":1137},{"type":993,"tag":1021,"props":2243,"children":2244},{"style":1059},[2245],{"type":998,"value":2192},{"type":993,"tag":1021,"props":2247,"children":2248},{"style":1048},[2249],{"type":998,"value":1298},{"type":993,"tag":1403,"props":2251,"children":2253},{"id":2252},"function-categories",[2254],{"type":998,"value":2255},"🚀 Function Categories",{"type":993,"tag":1001,"props":2257,"children":2258},{},[2259],{"type":998,"value":2260},"Different types of functions serve various purposes in programming, from simple calculations to complex data processing workflows.",{"type":993,"tag":1415,"props":2262,"children":2264},{"id":2263},"utility-functions",[2265],{"type":998,"value":2266},"Utility Functions",{"type":993,"tag":1001,"props":2268,"children":2269},{},[2270],{"type":998,"value":2271},"Utility functions handle common tasks that programs need repeatedly, such as data formatting, validation, or simple calculations.",{"type":993,"tag":1415,"props":2273,"children":2275},{"id":2274},"business-logic-functions",[2276],{"type":998,"value":2277},"Business Logic Functions",{"type":993,"tag":1001,"props":2279,"children":2280},{},[2281],{"type":998,"value":2282},"These functions implement specific rules and processes that reflect real-world requirements, such as pricing calculations, user permissions, or workflow steps.",{"type":993,"tag":1415,"props":2284,"children":2286},{"id":2285},"data-processing-functions",[2287],{"type":998,"value":2288},"Data Processing Functions",{"type":993,"tag":1001,"props":2290,"children":2291},{},[2292],{"type":998,"value":2293},"Functions excel at transforming, filtering, and analyzing data, creating pipelines that convert raw information into useful results.",{"type":993,"tag":1415,"props":2295,"children":2297},{"id":2296},"configuration-functions",[2298],{"type":998,"value":2299},"Configuration Functions",{"type":993,"tag":1001,"props":2301,"children":2302},{},[2303],{"type":998,"value":2304},"Functions can manage application settings and configuration, providing centralized control over how programs behave in different environments.",{"type":993,"tag":1403,"props":2306,"children":2308},{"id":2307},"function-design-principles",[2309],{"type":998,"value":2310},"🌟 Function Design Principles",{"type":993,"tag":1001,"props":2312,"children":2313},{},[2314],{"type":998,"value":2315},"Well-designed functions follow principles that make them more useful, reliable, and maintainable in larger programs.",{"type":993,"tag":1415,"props":2317,"children":2319},{"id":2318},"single-responsibility",[2320],{"type":998,"value":2321},"Single Responsibility",{"type":993,"tag":1001,"props":2323,"children":2324},{},[2325],{"type":998,"value":2326},"Each function should have one clear purpose, making it easier to understand, test, and modify. Functions that try to do too many things become difficult to maintain.",{"type":993,"tag":1415,"props":2328,"children":2330},{"id":2329},"clear-interfaces",[2331],{"type":998,"value":2332},"Clear Interfaces",{"type":993,"tag":1001,"props":2334,"children":2335},{},[2336],{"type":998,"value":2337},"Function names, parameters, and return values should clearly communicate what the function does and how to use it effectively.",{"type":993,"tag":1415,"props":2339,"children":2341},{"id":2340},"predictable-behavior",[2342],{"type":998,"value":2343},"Predictable Behavior",{"type":993,"tag":1001,"props":2345,"children":2346},{},[2347],{"type":998,"value":2348},"Functions should behave consistently with the same inputs and handle edge cases gracefully, making them reliable building blocks for larger systems.",{"type":993,"tag":1447,"props":2350,"children":2354},{"emoji":2351,"title":2352,"type":2353},"✅","Design Best Practices","success",[2355,2365,2375,2385,2395],{"type":993,"tag":1001,"props":2356,"children":2357},{},[2358,2363],{"type":993,"tag":1457,"props":2359,"children":2360},{},[2361],{"type":998,"value":2362},"Descriptive Names:",{"type":998,"value":2364}," Choose names that clearly explain what the function does",{"type":993,"tag":1001,"props":2366,"children":2367},{},[2368,2373],{"type":993,"tag":1457,"props":2369,"children":2370},{},[2371],{"type":998,"value":2372},"Focused Purpose:",{"type":998,"value":2374}," Each function should solve one specific problem well",{"type":993,"tag":1001,"props":2376,"children":2377},{},[2378,2383],{"type":993,"tag":1457,"props":2379,"children":2380},{},[2381],{"type":998,"value":2382},"Clear Parameters:",{"type":998,"value":2384}," Use meaningful parameter names and provide defaults when appropriate",{"type":993,"tag":1001,"props":2386,"children":2387},{},[2388,2393],{"type":993,"tag":1457,"props":2389,"children":2390},{},[2391],{"type":998,"value":2392},"Consistent Returns:",{"type":998,"value":2394}," Always return the same type of data for predictable behavior",{"type":993,"tag":1001,"props":2396,"children":2397},{},[2398,2403],{"type":993,"tag":1457,"props":2399,"children":2400},{},[2401],{"type":998,"value":2402},"Handle Errors:",{"type":998,"value":2404}," Include validation and error handling for robust operation",{"type":993,"tag":1403,"props":2406,"children":2408},{"id":2407},"what-youll-learn",[2409],{"type":998,"value":2410},"📖 What You'll Learn",{"type":993,"tag":1001,"props":2412,"children":2413},{},[2414],{"type":998,"value":2415},"This section covers everything you need to master Python functions:",{"type":993,"tag":2417,"props":2418,"children":2419},"ul",{},[2420,2434,2446,2458,2470,2482],{"type":993,"tag":2421,"props":2422,"children":2423},"li",{},[2424,2432],{"type":993,"tag":1457,"props":2425,"children":2426},{},[2427],{"type":993,"tag":2428,"props":2429,"children":2430},"a",{"href":617},[2431],{"type":998,"value":618},{"type":998,"value":2433}," - Learn fundamentals of creating and calling functions with parameters and returns",{"type":993,"tag":2421,"props":2435,"children":2436},{},[2437,2444],{"type":993,"tag":1457,"props":2438,"children":2439},{},[2440],{"type":993,"tag":2428,"props":2441,"children":2442},{"href":626},[2443],{"type":998,"value":627},{"type":998,"value":2445}," - Master positional, keyword, default, and variable-length arguments",{"type":993,"tag":2421,"props":2447,"children":2448},{},[2449,2456],{"type":993,"tag":1457,"props":2450,"children":2451},{},[2452],{"type":993,"tag":2428,"props":2453,"children":2454},{"href":635},[2455],{"type":998,"value":636},{"type":998,"value":2457}," - Understand single values, multiple values, and conditional returns",{"type":993,"tag":2421,"props":2459,"children":2460},{},[2461,2468],{"type":993,"tag":1457,"props":2462,"children":2463},{},[2464],{"type":993,"tag":2428,"props":2465,"children":2466},{"href":644},[2467],{"type":998,"value":645},{"type":998,"value":2469}," - Learn local, global, and nonlocal scope to avoid programming pitfalls",{"type":993,"tag":2421,"props":2471,"children":2472},{},[2473,2480],{"type":993,"tag":1457,"props":2474,"children":2475},{},[2476],{"type":993,"tag":2428,"props":2477,"children":2478},{"href":653},[2479],{"type":998,"value":654},{"type":998,"value":2481}," - Explore lambda functions and functional programming concepts",{"type":993,"tag":2421,"props":2483,"children":2484},{},[2485,2492],{"type":993,"tag":1457,"props":2486,"children":2487},{},[2488],{"type":993,"tag":2428,"props":2489,"children":2490},{"href":662},[2491],{"type":998,"value":663},{"type":998,"value":2493}," - Discover recursive algorithms and self-calling function patterns",{"type":993,"tag":1403,"props":2495,"children":2496},{"id":11},[2497],{"type":998,"value":2498},"🎯 Getting Started",{"type":993,"tag":1001,"props":2500,"children":2501},{},[2502],{"type":998,"value":2503},"Functions are essential tools that every Python programmer needs to master. Start with the basics and gradually work through more advanced concepts to build your expertise.",{"type":993,"tag":1001,"props":2505,"children":2506},{},[2507,2509,2513],{"type":998,"value":2508},"Ready to begin? Start with our lesson on ",{"type":993,"tag":2428,"props":2510,"children":2511},{"href":617},[2512],{"type":998,"value":618},{"type":998,"value":2514}," to learn the fundamentals of creating and using functions in Python.",{"type":993,"tag":1403,"props":2516,"children":2518},{"id":2517},"test-your-knowledge",[2519],{"type":998,"value":2520},"Test Your Knowledge",{"type":993,"tag":1001,"props":2522,"children":2523},{},[2524],{"type":998,"value":2525},"Explore what you've learned about creating functions:",{"type":993,"tag":2527,"props":2528,"children":2532},"redirect-button",{"icon":2529,"label":2530,"url":2531},"pi pi-send","Take Quiz","/tutorial-quiz/python/python-functions",[],{"type":993,"tag":1403,"props":2534,"children":2536},{"id":2535},"whats-next",[2537],{"type":998,"value":2538},"What's Next?",{"type":993,"tag":1001,"props":2540,"children":2541},{},[2542,2544,2548],{"type":998,"value":2543},"Begin your function journey with ",{"type":993,"tag":2428,"props":2545,"children":2546},{"href":617},[2547],{"type":998,"value":618},{"type":998,"value":2549},", where you'll learn the fundamental concepts of creating and using Python functions.",{"type":993,"tag":1001,"props":2551,"children":2552},{},[2553,2555,2559],{"type":998,"value":2554},"Ready to start? Check out our lesson on ",{"type":993,"tag":2428,"props":2556,"children":2557},{"href":617},[2558],{"type":998,"value":618},{"type":998,"value":2560},".",{"type":993,"tag":2562,"props":2563,"children":2564},"style",{},[2565],{"type":998,"value":2566},"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":2568},[2569,2574,2579,2585,2590,2591,2592,2593],{"id":1405,"depth":27,"text":1408,"children":2570},[2571,2572,2573],{"id":857,"depth":36,"text":855},{"id":1426,"depth":36,"text":1429},{"id":1437,"depth":36,"text":1440},{"id":1506,"depth":27,"text":1509,"children":2575},[2576,2577,2578],{"id":1517,"depth":36,"text":1520},{"id":1528,"depth":36,"text":1531},{"id":1539,"depth":36,"text":1542},{"id":2252,"depth":27,"text":2255,"children":2580},[2581,2582,2583,2584],{"id":2263,"depth":36,"text":2266},{"id":2274,"depth":36,"text":2277},{"id":2285,"depth":36,"text":2288},{"id":2296,"depth":36,"text":2299},{"id":2307,"depth":27,"text":2310,"children":2586},[2587,2588,2589],{"id":2318,"depth":36,"text":2321},{"id":2329,"depth":36,"text":2332},{"id":2340,"depth":36,"text":2343},{"id":2407,"depth":27,"text":2410},{"id":11,"depth":27,"text":2498},{"id":2517,"depth":27,"text":2520},{"id":2535,"depth":27,"text":2538},1782373745185]