[{"data":1,"prerenderedAt":8579},["ShallowReactive",2],{"tutorials-python":3,"category-items-python":987,"content-/python/class-inheritance":988},[4,22,31,40,49,58,67,76,86,95,104,113,122,131,141,150,159,168,177,186,196,205,214,223,233,242,251,260,269,279,288,297,306,315,324,333,342,351,360,369,379,388,397,406,415,424,433,442,452,461,470,479,488,497,506,515,525,534,543,552,561,570,579,588,597,606,616,625,634,643,652,661,670,680,689,698,707,716,725,734,744,753,762,771,780,789,798,807,817,826,835,844,853,863,872,881,890,900,909,918,927,936,945,953,961,970,979],{"_path":5,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":9,"description":10,"slug":11,"order":12,"isParent":13,"icon":14,"_type":15,"_id":16,"_source":17,"_file":18,"_stem":19,"_extension":20,"children":21,"expanded":13},"/python/getting-started","python",false,"","Getting Started","Begin your Python programming journey. Learn what Python is, how to set it up, and write your first programs. Perfect for complete beginners starting their coding adventure.","getting-started",1,true,"pi pi-folder","markdown","content:python:1.getting-started.md","content","python/1.getting-started.md","python/1.getting-started","md",[22,31,40,49,58,67],{"_path":23,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":24,"description":25,"slug":26,"parentId":5,"order":27,"_type":15,"_id":28,"_source":17,"_file":29,"_stem":30,"_extension":20},"/python/what-is-python","What is Python","Discover Python's fascinating history, design philosophy, and key features. Learn why Python has become one of the world's most popular programming languages and perfect for beginners.","what-is-python",2,"content:python:2.what-is-python.md","python/2.what-is-python.md","python/2.what-is-python",{"_path":32,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":33,"description":34,"slug":35,"parentId":5,"order":36,"_type":15,"_id":37,"_source":17,"_file":38,"_stem":39,"_extension":20},"/python/setup-python","Setup Python","Learn how to install Python on your computer and set up your development environment. Step-by-step guide for Windows, macOS, and Linux with beginner-friendly instructions.","setup-python",3,"content:python:3.setup-python.md","python/3.setup-python.md","python/3.setup-python",{"_path":41,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":42,"description":43,"slug":44,"parentId":5,"order":45,"_type":15,"_id":46,"_source":17,"_file":47,"_stem":48,"_extension":20},"/python/your-first-program","Your First Program","Write and run your first Python program! Learn the basics of Python programming with simple examples and step-by-step instructions for beginners.","your-first-program",4,"content:python:4.your-first-program.md","python/4.your-first-program.md","python/4.your-first-program",{"_path":50,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":51,"description":52,"slug":53,"parentId":5,"order":54,"_type":15,"_id":55,"_source":17,"_file":56,"_stem":57,"_extension":20},"/python/python-code-structure","Python Code Structure","Learn how Python code is organized and structured. Understand indentation, line breaks, and the basic rules that make Python programs work correctly.","python-code-structure",5,"content:python:5.python-code-structure.md","python/5.python-code-structure.md","python/5.python-code-structure",{"_path":59,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":60,"description":61,"slug":62,"parentId":5,"order":63,"_type":15,"_id":64,"_source":17,"_file":65,"_stem":66,"_extension":20},"/python/writing-comments","Writing Comments","Learn how to write effective comments in Python. Discover when and how to document your code to make it clear, maintainable, and easy to understand.","writing-comments",6,"content:python:6.writing-comments.md","python/6.writing-comments.md","python/6.writing-comments",{"_path":68,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":69,"description":70,"slug":71,"parentId":5,"order":72,"_type":15,"_id":73,"_source":17,"_file":74,"_stem":75,"_extension":20},"/python/working-with-variables","Working with Variables","Learn how to create, use, and manage variables in Python. Understand how to store data, change values, and follow naming conventions for clean, readable code.","working-with-variables",7,"content:python:7.working-with-variables.md","python/7.working-with-variables.md","python/7.working-with-variables",{"_path":77,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":78,"description":79,"slug":80,"order":81,"isParent":13,"icon":14,"_type":15,"_id":82,"_source":17,"_file":83,"_stem":84,"_extension":20,"children":85,"expanded":13},"/python/basic-data-types","Basic Data Types","Learn about Python's fundamental data types including numbers, text, and boolean values","basic-data-types",8,"content:python:8.basic-data-types.md","python/8.basic-data-types.md","python/8.basic-data-types",[86,95,104,113,122],{"_path":87,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":88,"description":89,"slug":90,"parentId":77,"order":91,"_type":15,"_id":92,"_source":17,"_file":93,"_stem":94,"_extension":20},"/python/understanding-data-types","Understanding Data Types","Learn how Python identifies different data types and why they're important for programming","understanding-data-types",9,"content:python:9.understanding-data-types.md","python/9.understanding-data-types.md","python/9.understanding-data-types",{"_path":96,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":97,"description":98,"slug":99,"parentId":77,"order":100,"_type":15,"_id":101,"_source":17,"_file":102,"_stem":103,"_extension":20},"/python/working-with-numbers","Working with Numbers","Learn about Python's numeric data types including integers and floats, and how to perform calculations","working-with-numbers",10,"content:python:10.working-with-numbers.md","python/10.working-with-numbers.md","python/10.working-with-numbers",{"_path":105,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":106,"description":107,"slug":108,"parentId":77,"order":109,"_type":15,"_id":110,"_source":17,"_file":111,"_stem":112,"_extension":20},"/python/text-and-strings","Text and Strings","Learn how to work with text data in Python using strings, including creation, manipulation, and formatting","text-and-strings",11,"content:python:11.text-and-strings.md","python/11.text-and-strings.md","python/11.text-and-strings",{"_path":114,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":115,"description":116,"slug":117,"parentId":77,"order":118,"_type":15,"_id":119,"_source":17,"_file":120,"_stem":121,"_extension":20},"/python/true-false-values","True/False Values","Learn about boolean values in Python, including True/False logic, comparison operations, and how to use booleans for decision-making in your programs","true-false-values",12,"content:python:12.true-false-values.md","python/12.true-false-values.md","python/12.true-false-values",{"_path":123,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":124,"description":125,"slug":126,"parentId":77,"order":127,"_type":15,"_id":128,"_source":17,"_file":129,"_stem":130,"_extension":20},"/python/converting-types","Converting Types","Learn how to convert between different Python data types including strings, numbers, and booleans","converting-types",13,"content:python:13.converting-types.md","python/13.converting-types.md","python/13.converting-types",{"_path":132,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":133,"description":134,"slug":135,"order":136,"isParent":13,"icon":14,"_type":15,"_id":137,"_source":17,"_file":138,"_stem":139,"_extension":20,"children":140,"expanded":13},"/python/python-operators","Python Operators","Learn about Python operators - the symbols and keywords that perform operations on data. Discover arithmetic, comparison, logical, and assignment operators with simple examples.","python-operators",14,"content:python:14.python-operators.md","python/14.python-operators.md","python/14.python-operators",[141,150,159,168,177],{"_path":142,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":143,"description":144,"slug":145,"parentId":132,"order":146,"_type":15,"_id":147,"_source":17,"_file":148,"_stem":149,"_extension":20},"/python/math-operations","Math Operations","Learn Python's arithmetic operators for mathematical calculations. Master addition, subtraction, multiplication, division, and more with practical examples.","math-operations",15,"content:python:15.math-operations.md","python/15.math-operations.md","python/15.math-operations",{"_path":151,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":152,"description":153,"slug":154,"parentId":132,"order":155,"_type":15,"_id":156,"_source":17,"_file":157,"_stem":158,"_extension":20},"/python/comparing-values","Comparing Values","Learn Python's comparison operators to compare values and make decisions. Master equality, inequality, and relational operators with practical examples.","comparing-values",16,"content:python:16.comparing-values.md","python/16.comparing-values.md","python/16.comparing-values",{"_path":160,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":161,"description":162,"slug":163,"parentId":132,"order":164,"_type":15,"_id":165,"_source":17,"_file":166,"_stem":167,"_extension":20},"/python/logic-operations","Logic Operations","Learn about Python's logical operators for combining conditions and creating complex boolean expressions","logic-operations",17,"content:python:17.logic-operations.md","python/17.logic-operations.md","python/17.logic-operations",{"_path":169,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":170,"description":171,"slug":172,"parentId":132,"order":173,"_type":15,"_id":174,"_source":17,"_file":175,"_stem":176,"_extension":20},"/python/value-assignment","Value Assignment","Learn about Python's assignment operators for efficiently updating variables and performing calculations","value-assignment",18,"content:python:18.value-assignment.md","python/18.value-assignment.md","python/18.value-assignment",{"_path":178,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":179,"description":180,"slug":181,"parentId":132,"order":182,"_type":15,"_id":183,"_source":17,"_file":184,"_stem":185,"_extension":20},"/python/operator-precedence","Operator Precedence","Learn how Python evaluates expressions with multiple operators and how to control evaluation order","operator-precedence",19,"content:python:19.operator-precedence.md","python/19.operator-precedence.md","python/19.operator-precedence",{"_path":187,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":188,"description":189,"slug":190,"order":191,"isParent":13,"icon":14,"_type":15,"_id":192,"_source":17,"_file":193,"_stem":194,"_extension":20,"children":195,"expanded":13},"/python/decision-making","Decision Making","Learn how to make decisions in your Python programs using conditional statements and control flow","decision-making",20,"content:python:20.decision-making.md","python/20.decision-making.md","python/20.decision-making",[196,205,214],{"_path":197,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":198,"description":199,"slug":200,"parentId":187,"order":201,"_type":15,"_id":202,"_source":17,"_file":203,"_stem":204,"_extension":20},"/python/if-statements","If Statements","Learn how to use if statements to make decisions and control program flow in Python","if-statements",21,"content:python:21.if-statements.md","python/21.if-statements.md","python/21.if-statements",{"_path":206,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":207,"description":208,"slug":209,"parentId":187,"order":210,"_type":15,"_id":211,"_source":17,"_file":212,"_stem":213,"_extension":20},"/python/multiple-conditions","Multiple Conditions","Learn how to handle multiple conditions using elif statements and complex conditional logic in Python","multiple-conditions",22,"content:python:22.multiple-conditions.md","python/22.multiple-conditions.md","python/22.multiple-conditions",{"_path":215,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":216,"description":217,"slug":218,"parentId":187,"order":219,"_type":15,"_id":220,"_source":17,"_file":221,"_stem":222,"_extension":20},"/python/pattern-matching","Pattern Matching","Learn how to use Python's match-case statements for powerful pattern matching and complex decision making","pattern-matching",23,"content:python:23.pattern-matching.md","python/23.pattern-matching.md","python/23.pattern-matching",{"_path":224,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":225,"description":226,"slug":227,"order":228,"isParent":13,"icon":14,"_type":15,"_id":229,"_source":17,"_file":230,"_stem":231,"_extension":20,"children":232,"expanded":13},"/python/repetition-and-loops","Python Loops","Learn how to use loops to repeat code efficiently and handle repetitive tasks in Python","repetition-and-loops",24,"content:python:24.repetition-and-loops.md","python/24.repetition-and-loops.md","python/24.repetition-and-loops",[233,242,251,260],{"_path":234,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":235,"description":236,"slug":237,"parentId":224,"order":238,"_type":15,"_id":239,"_source":17,"_file":240,"_stem":241,"_extension":20},"/python/while-loops","While Loops","Learn how to use while loops for condition-based repetition and create loops that run until specific conditions are met","while-loops",25,"content:python:25.while-loops.md","python/25.while-loops.md","python/25.while-loops",{"_path":243,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":244,"description":245,"slug":246,"parentId":224,"order":247,"_type":15,"_id":248,"_source":17,"_file":249,"_stem":250,"_extension":20},"/python/for-loops","For Loops","Learn how to use for loops to iterate through sequences, collections, and ranges efficiently in Python","for-loops",26,"content:python:26.for-loops.md","python/26.for-loops.md","python/26.for-loops",{"_path":252,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":253,"description":254,"slug":255,"parentId":224,"order":256,"_type":15,"_id":257,"_source":17,"_file":258,"_stem":259,"_extension":20},"/python/loop-control","Loop Control","Master advanced loop control techniques including break, continue, and else clauses for sophisticated iteration patterns","loop-control",27,"content:python:27.loop-control.md","python/27.loop-control.md","python/27.loop-control",{"_path":261,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":262,"description":263,"slug":264,"parentId":224,"order":265,"_type":15,"_id":266,"_source":17,"_file":267,"_stem":268,"_extension":20},"/python/nested-loops","Nested Loops","Learn how to use nested loops to process multi-dimensional data, create patterns, and handle complex iteration scenarios","nested-loops",28,"content:python:28.nested-loops.md","python/28.nested-loops.md","python/28.nested-loops",{"_path":270,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":271,"description":272,"slug":273,"order":274,"isParent":13,"icon":14,"_type":15,"_id":275,"_source":17,"_file":276,"_stem":277,"_extension":20,"children":278,"expanded":13},"/python/python-lists","Python Lists","Learn about Python lists, one of the most important and versatile data structures for storing and organizing collections of data","python-lists",29,"content:python:29.python-lists.md","python/29.python-lists.md","python/29.python-lists",[279,288,297,306,315,324,333,342,351,360],{"_path":280,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":281,"description":282,"slug":283,"parentId":270,"order":284,"_type":15,"_id":285,"_source":17,"_file":286,"_stem":287,"_extension":20},"/python/creating-lists","Creating Lists","Learn different methods to create and initialize Python lists, from simple literals to advanced techniques","creating-lists",30,"content:python:30.creating-lists.md","python/30.creating-lists.md","python/30.creating-lists",{"_path":289,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":290,"description":291,"slug":292,"parentId":270,"order":293,"_type":15,"_id":294,"_source":17,"_file":295,"_stem":296,"_extension":20},"/python/reading-list-data","Reading List Data","Master techniques for accessing and retrieving data from Python lists using indexing, slicing, and built-in methods","reading-list-data",31,"content:python:31.reading-list-data.md","python/31.reading-list-data.md","python/31.reading-list-data",{"_path":298,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":299,"description":300,"slug":301,"parentId":270,"order":302,"_type":15,"_id":303,"_source":17,"_file":304,"_stem":305,"_extension":20},"/python/modifying-lists","Modifying Lists","Learn how to change, update, and modify existing elements in Python lists using indexing and various methods","modifying-lists",32,"content:python:32.modifying-lists.md","python/32.modifying-lists.md","python/32.modifying-lists",{"_path":307,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":308,"description":309,"slug":310,"parentId":270,"order":311,"_type":15,"_id":312,"_source":17,"_file":313,"_stem":314,"_extension":20},"/python/adding-to-lists","Adding to Lists","Learn various methods to add elements to Python lists including append, insert, extend, and concatenation techniques","adding-to-lists",33,"content:python:33.adding-to-lists.md","python/33.adding-to-lists.md","python/33.adding-to-lists",{"_path":316,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":317,"description":318,"slug":319,"parentId":270,"order":320,"_type":15,"_id":321,"_source":17,"_file":322,"_stem":323,"_extension":20},"/python/removing-from-lists","Removing from Lists","Learn different methods to remove and delete elements from Python lists including remove, pop, del, and clear","removing-from-lists",34,"content:python:34.removing-from-lists.md","python/34.removing-from-lists.md","python/34.removing-from-lists",{"_path":325,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":326,"description":327,"slug":328,"parentId":270,"order":329,"_type":15,"_id":330,"_source":17,"_file":331,"_stem":332,"_extension":20},"/python/looping-through-lists","Looping Through Lists","Learn different ways to iterate through Python lists using for loops, while loops, enumerate, and other iteration techniques","looping-through-lists",35,"content:python:35.looping-through-lists.md","python/35.looping-through-lists.md","python/35.looping-through-lists",{"_path":334,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":335,"description":336,"slug":337,"parentId":270,"order":338,"_type":15,"_id":339,"_source":17,"_file":340,"_stem":341,"_extension":20},"/python/list-shortcuts","List Shortcuts","Learn powerful Python list shortcuts including list comprehensions, slicing tricks, and built-in functions for efficient list operations","list-shortcuts",36,"content:python:36.list-shortcuts.md","python/36.list-shortcuts.md","python/36.list-shortcuts",{"_path":343,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":344,"description":345,"slug":346,"parentId":270,"order":347,"_type":15,"_id":348,"_source":17,"_file":349,"_stem":350,"_extension":20},"/python/organizing-lists","Organizing Lists","Learn how to sort, reverse, and organize Python lists using built-in methods and custom sorting techniques","organizing-lists",37,"content:python:37.organizing-lists.md","python/37.organizing-lists.md","python/37.organizing-lists",{"_path":352,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":353,"description":354,"slug":355,"parentId":270,"order":356,"_type":15,"_id":357,"_source":17,"_file":358,"_stem":359,"_extension":20},"/python/combining-lists","Combining Lists","Learn various techniques to combine, merge, and join Python lists including concatenation, zipping, and advanced merging strategies","combining-lists",38,"content:python:38.combining-lists.md","python/38.combining-lists.md","python/38.combining-lists",{"_path":361,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":362,"description":363,"slug":364,"parentId":270,"order":365,"_type":15,"_id":366,"_source":17,"_file":367,"_stem":368,"_extension":20},"/python/essential-list-tools","Essential List Tools","Master powerful built-in functions and advanced techniques for efficient Python list manipulation and data processing","essential-list-tools",39,"content:python:39.essential-list-tools.md","python/39.essential-list-tools.md","python/39.essential-list-tools",{"_path":370,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":371,"description":372,"slug":373,"order":374,"isParent":13,"icon":14,"_type":15,"_id":375,"_source":17,"_file":376,"_stem":377,"_extension":20,"children":378,"expanded":13},"/python/python-tuples","Python Tuples","Master Python tuples - immutable sequences perfect for storing related data that shouldn't change. Learn creation, access, and manipulation techniques.","python-tuples",40,"content:python:40.python-tuples.md","python/40.python-tuples.md","python/40.python-tuples",[379,388,397,406,415,424,433],{"_path":380,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":381,"description":382,"slug":383,"parentId":370,"order":384,"_type":15,"_id":385,"_source":17,"_file":386,"_stem":387,"_extension":20},"/python/creating-tuples","Creating Tuples","Learn different ways to create Python tuples, from basic syntax to advanced techniques. Master tuple initialization and understand when to use tuples.","creating-tuples",41,"content:python:41.creating-tuples.md","python/41.creating-tuples.md","python/41.creating-tuples",{"_path":389,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":390,"description":391,"slug":392,"parentId":370,"order":393,"_type":15,"_id":394,"_source":17,"_file":395,"_stem":396,"_extension":20},"/python/reading-tuple-data","Reading Tuple Data","Master accessing tuple elements through indexing, slicing, and searching. Learn efficient patterns for reading and working with tuple data.","reading-tuple-data",42,"content:python:42.reading-tuple-data.md","python/42.reading-tuple-data.md","python/42.reading-tuple-data",{"_path":398,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":399,"description":400,"slug":401,"parentId":370,"order":402,"_type":15,"_id":403,"_source":17,"_file":404,"_stem":405,"_extension":20},"/python/changing-tuples","Changing Tuples","Understand tuple immutability and learn techniques for working with unchangeable data. Master creating modified tuple versions and handling immutable constraints.","changing-tuples",43,"content:python:43.changing-tuples.md","python/43.changing-tuples.md","python/43.changing-tuples",{"_path":407,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":408,"description":409,"slug":410,"parentId":370,"order":411,"_type":15,"_id":412,"_source":17,"_file":413,"_stem":414,"_extension":20},"/python/tuple-unpacking","Tuple Unpacking","Master tuple unpacking for elegant variable assignment, function returns, and data extraction. Learn Python's powerful unpacking syntax and patterns.","tuple-unpacking",44,"content:python:44.tuple-unpacking.md","python/44.tuple-unpacking.md","python/44.tuple-unpacking",{"_path":416,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":417,"description":418,"slug":419,"parentId":370,"order":420,"_type":15,"_id":421,"_source":17,"_file":422,"_stem":423,"_extension":20},"/python/iterating-tuples","Iterating Tuples","Master tuple iteration techniques for processing sequence data. Learn basic loops, enumerate, nested iteration, and advanced patterns for efficient data processing.","iterating-tuples",45,"content:python:45.iterating-tuples.md","python/45.iterating-tuples.md","python/45.iterating-tuples",{"_path":425,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":426,"description":427,"slug":428,"parentId":370,"order":429,"_type":15,"_id":430,"_source":17,"_file":431,"_stem":432,"_extension":20},"/python/merging-tuples","Merging Tuples","Learn techniques for combining and merging tuples to create larger data structures. Master concatenation, joining multiple tuples, and advanced merging patterns.","merging-tuples",46,"content:python:46.merging-tuples.md","python/46.merging-tuples.md","python/46.merging-tuples",{"_path":434,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":435,"description":436,"slug":437,"parentId":370,"order":438,"_type":15,"_id":439,"_source":17,"_file":440,"_stem":441,"_extension":20},"/python/tuple-operations","Tuple Operations","Master comprehensive tuple operations including built-in functions, mathematical operations, comparisons, and advanced techniques for efficient tuple manipulation.","tuple-operations",47,"content:python:47.tuple-operations.md","python/47.tuple-operations.md","python/47.tuple-operations",{"_path":443,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":444,"description":445,"slug":446,"order":447,"isParent":13,"icon":14,"_type":15,"_id":448,"_source":17,"_file":449,"_stem":450,"_extension":20,"children":451,"expanded":13},"/python/python-sets","Python Sets","Discover Python sets - unique collections that automatically eliminate duplicates and provide powerful mathematical operations for data filtering and analysis.","python-sets",48,"content:python:48.python-sets.md","python/48.python-sets.md","python/48.python-sets",[452,461,470,479,488,497,506],{"_path":453,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":454,"description":455,"slug":456,"parentId":443,"order":457,"_type":15,"_id":458,"_source":17,"_file":459,"_stem":460,"_extension":20},"/python/creating-sets","Creating Sets","Learn multiple ways to create sets in Python including literal syntax, set() function, and set comprehensions. Master set creation from different data sources.","creating-sets",49,"content:python:49.creating-sets.md","python/49.creating-sets.md","python/49.creating-sets",{"_path":462,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":463,"description":464,"slug":465,"parentId":443,"order":466,"_type":15,"_id":467,"_source":17,"_file":468,"_stem":469,"_extension":20},"/python/reading-set-data","Reading Set Data","Learn how to access and examine set data in Python including membership testing, iteration, size checking, and converting sets to other data types.","reading-set-data",50,"content:python:50.reading-set-data.md","python/50.reading-set-data.md","python/50.reading-set-data",{"_path":471,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":472,"description":473,"slug":474,"parentId":443,"order":475,"_type":15,"_id":476,"_source":17,"_file":477,"_stem":478,"_extension":20},"/python/adding-to-sets","Adding to Sets","Learn how to add elements to sets in Python using add(), update(), and union operations. Master growing sets dynamically with single items and multiple elements.","adding-to-sets",51,"content:python:51.adding-to-sets.md","python/51.adding-to-sets.md","python/51.adding-to-sets",{"_path":480,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":481,"description":482,"slug":483,"parentId":443,"order":484,"_type":15,"_id":485,"_source":17,"_file":486,"_stem":487,"_extension":20},"/python/removing-from-sets","Removing from Sets","Learn how to remove elements from Python sets using different methods like remove(), discard(), pop(), and clear()","removing-from-sets",52,"content:python:52.removing-from-sets.md","python/52.removing-from-sets.md","python/52.removing-from-sets",{"_path":489,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":490,"description":491,"slug":492,"parentId":443,"order":493,"_type":15,"_id":494,"_source":17,"_file":495,"_stem":496,"_extension":20},"/python/iterating-sets","Iterating Sets","Learn different ways to iterate through Python sets using for loops, comprehensions, and built-in functions","iterating-sets",53,"content:python:53.iterating-sets.md","python/53.iterating-sets.md","python/53.iterating-sets",{"_path":498,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":499,"description":500,"slug":501,"parentId":443,"order":502,"_type":15,"_id":503,"_source":17,"_file":504,"_stem":505,"_extension":20},"/python/combining-sets","Combining Sets","Learn how to combine Python sets using union, intersection, difference, and other set operations","combining-sets",54,"content:python:54.combining-sets.md","python/54.combining-sets.md","python/54.combining-sets",{"_path":507,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":508,"description":509,"slug":510,"parentId":443,"order":511,"_type":15,"_id":512,"_source":17,"_file":513,"_stem":514,"_extension":20},"/python/set-operations","Set Operations","Learn advanced Python set operations including comparisons, subsets, supersets, and mathematical set relationships","set-operations",55,"content:python:55.set-operations.md","python/55.set-operations.md","python/55.set-operations",{"_path":516,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":517,"description":518,"slug":519,"order":520,"isParent":13,"icon":14,"_type":15,"_id":521,"_source":17,"_file":522,"_stem":523,"_extension":20,"children":524,"expanded":13},"/python/python-dictionaries","Python Dictionaries","Learn about Python dictionaries - key-value data structures for storing and organizing related information","python-dictionaries",56,"content:python:56.python-dictionaries.md","python/56.python-dictionaries.md","python/56.python-dictionaries",[525,534,543,552,561,570,579,588,597],{"_path":526,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":527,"description":528,"slug":529,"parentId":516,"order":530,"_type":15,"_id":531,"_source":17,"_file":532,"_stem":533,"_extension":20},"/python/creating-dictionaries","Creating Dictionaries","Learn different methods to create Python dictionaries using literals, constructors, and comprehensions","creating-dictionaries",57,"content:python:57.creating-dictionaries.md","python/57.creating-dictionaries.md","python/57.creating-dictionaries",{"_path":535,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":536,"description":537,"slug":538,"parentId":516,"order":539,"_type":15,"_id":540,"_source":17,"_file":541,"_stem":542,"_extension":20},"/python/getting-dictionary-values","Getting Dictionary Values","Learn safe and efficient methods to retrieve data from Python dictionaries using various access techniques","getting-dictionary-values",58,"content:python:58.getting-dictionary-values.md","python/58.getting-dictionary-values.md","python/58.getting-dictionary-values",{"_path":544,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":545,"description":546,"slug":547,"parentId":516,"order":548,"_type":15,"_id":549,"_source":17,"_file":550,"_stem":551,"_extension":20},"/python/updating-dictionaries","Updating Dictionaries","Learn how to modify and maintain Python dictionary data using various update methods and techniques","updating-dictionaries",59,"content:python:59.updating-dictionaries.md","python/59.updating-dictionaries.md","python/59.updating-dictionaries",{"_path":553,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":554,"description":555,"slug":556,"parentId":516,"order":557,"_type":15,"_id":558,"_source":17,"_file":559,"_stem":560,"_extension":20},"/python/adding-dictionary-items","Adding Dictionary Items","Learn effective techniques for adding new items to Python dictionaries with various methods and best practices","adding-dictionary-items",60,"content:python:60.adding-dictionary-items.md","python/60.adding-dictionary-items.md","python/60.adding-dictionary-items",{"_path":562,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":563,"description":564,"slug":565,"parentId":516,"order":566,"_type":15,"_id":567,"_source":17,"_file":568,"_stem":569,"_extension":20},"/python/deleting-dictionary-items","Deleting Dictionary Items","Master safe and efficient techniques for removing items from Python dictionaries with various methods and error handling","deleting-dictionary-items",61,"content:python:61.deleting-dictionary-items.md","python/61.deleting-dictionary-items.md","python/61.deleting-dictionary-items",{"_path":571,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":572,"description":573,"slug":574,"parentId":516,"order":575,"_type":15,"_id":576,"_source":17,"_file":577,"_stem":578,"_extension":20},"/python/looping-dictionaries","Looping Dictionaries","Learn efficient techniques for iterating through Python dictionaries using keys, values, and items","looping-dictionaries",62,"content:python:62.looping-dictionaries.md","python/62.looping-dictionaries.md","python/62.looping-dictionaries",{"_path":580,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":581,"description":582,"slug":583,"parentId":516,"order":584,"_type":15,"_id":585,"_source":17,"_file":586,"_stem":587,"_extension":20},"/python/dictionary-copies","Dictionary Copies","Learn safe techniques for duplicating Python dictionaries using shallow and deep copy methods","dictionary-copies",63,"content:python:63.dictionary-copies.md","python/63.dictionary-copies.md","python/63.dictionary-copies",{"_path":589,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":590,"description":591,"slug":592,"parentId":516,"order":593,"_type":15,"_id":594,"_source":17,"_file":595,"_stem":596,"_extension":20},"/python/multi-level-dictionaries","Multi-level Dictionaries","Master working with nested Python dictionaries for complex data structures and hierarchical information","multi-level-dictionaries",64,"content:python:64.multi-level-dictionaries.md","python/64.multi-level-dictionaries.md","python/64.multi-level-dictionaries",{"_path":598,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":599,"description":600,"slug":601,"parentId":516,"order":602,"_type":15,"_id":603,"_source":17,"_file":604,"_stem":605,"_extension":20},"/python/dictionary-tools","Dictionary Tools","Explore powerful built-in functions and advanced techniques for efficient Python dictionary manipulation and analysis","dictionary-tools",65,"content:python:65.dictionary-tools.md","python/65.dictionary-tools.md","python/65.dictionary-tools",{"_path":607,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":608,"description":609,"slug":610,"order":611,"isParent":13,"icon":14,"_type":15,"_id":612,"_source":17,"_file":613,"_stem":614,"_extension":20,"children":615,"expanded":13},"/python/python-functions","Python Functions","Learn how to create and use Python functions to organize code into reusable, modular components that make programs more efficient and maintainable","python-functions",66,"content:python:66.python-functions.md","python/66.python-functions.md","python/66.python-functions",[616,625,634,643,652,661],{"_path":617,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":618,"description":619,"slug":620,"parentId":607,"order":621,"_type":15,"_id":622,"_source":17,"_file":623,"_stem":624,"_extension":20},"/python/function-basics","Function Basics","Learn the fundamentals of creating and using Python functions to organize code into reusable, modular components","function-basics",67,"content:python:67.function-basics.md","python/67.function-basics.md","python/67.function-basics",{"_path":626,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":627,"description":628,"slug":629,"parentId":607,"order":630,"_type":15,"_id":631,"_source":17,"_file":632,"_stem":633,"_extension":20},"/python/function-parameters","Function Parameters","Master different types of Python function parameters including positional, keyword, default, and variable-length arguments","function-parameters",68,"content:python:68.function-parameters.md","python/68.function-parameters.md","python/68.function-parameters",{"_path":635,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":636,"description":637,"slug":638,"parentId":607,"order":639,"_type":15,"_id":640,"_source":17,"_file":641,"_stem":642,"_extension":20},"/python/returning-values","Returning Values","Learn different ways Python functions return data including single values, multiple values, and conditional returns","returning-values",69,"content:python:69.returning-values.md","python/69.returning-values.md","python/69.returning-values",{"_path":644,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":645,"description":646,"slug":647,"parentId":607,"order":648,"_type":15,"_id":649,"_source":17,"_file":650,"_stem":651,"_extension":20},"/python/variable-scope","Variable Scope","Understand Python variable scope including local, global, and nonlocal variables and how they affect function behavior","variable-scope",70,"content:python:70.variable-scope.md","python/70.variable-scope.md","python/70.variable-scope",{"_path":653,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":654,"description":655,"slug":656,"parentId":607,"order":657,"_type":15,"_id":658,"_source":17,"_file":659,"_stem":660,"_extension":20},"/python/anonymous-functions","Anonymous Functions","Learn to create and use Python lambda functions for concise, inline function definitions and functional programming patterns","anonymous-functions",71,"content:python:71.anonymous-functions.md","python/71.anonymous-functions.md","python/71.anonymous-functions",{"_path":662,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":663,"description":664,"slug":665,"parentId":607,"order":666,"_type":15,"_id":667,"_source":17,"_file":668,"_stem":669,"_extension":20},"/python/function-recursion","Function Recursion","Master recursive functions in Python by learning how functions can call themselves to solve complex problems with elegant, mathematical solutions","function-recursion",72,"content:python:72.function-recursion.md","python/72.function-recursion.md","python/72.function-recursion",{"_path":671,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":672,"description":673,"slug":674,"order":675,"isParent":13,"icon":14,"_type":15,"_id":676,"_source":17,"_file":677,"_stem":678,"_extension":20,"children":679,"expanded":13},"/python/object-programming","Object Programming","Learn object-oriented programming (OOP) in Python - create classes, objects, and methods to build organized, reusable code","object-programming",73,"content:python:73.object-programming.md","python/73.object-programming.md","python/73.object-programming",[680,689,698,707,716,725],{"_path":681,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":682,"description":683,"slug":684,"parentId":671,"order":685,"_type":15,"_id":686,"_source":17,"_file":687,"_stem":688,"_extension":20},"/python/classes-and-objects","Classes and Objects","Learn to create Python classes and objects - the foundation of object-oriented programming for building reusable, organized code","classes-and-objects",74,"content:python:74.classes-and-objects.md","python/74.classes-and-objects.md","python/74.classes-and-objects",{"_path":690,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":691,"description":692,"slug":693,"parentId":671,"order":694,"_type":15,"_id":695,"_source":17,"_file":696,"_stem":697,"_extension":20},"/python/object-methods","Object Methods","Master object methods in Python - learn to define behaviors, work with parameters, and create interactive objects that respond to actions","object-methods",75,"content:python:75.object-methods.md","python/75.object-methods.md","python/75.object-methods",{"_path":699,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":700,"description":701,"slug":702,"parentId":671,"order":703,"_type":15,"_id":704,"_source":17,"_file":705,"_stem":706,"_extension":20},"/python/class-inheritance","Class Inheritance","Learn Python class inheritance - create specialized classes that build upon existing functionality while adding new features and behaviors","class-inheritance",76,"content:python:76.class-inheritance.md","python/76.class-inheritance.md","python/76.class-inheritance",{"_path":708,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":709,"description":710,"slug":711,"parentId":671,"order":712,"_type":15,"_id":713,"_source":17,"_file":714,"_stem":715,"_extension":20},"/python/method-overriding","Method Overriding","Master method overriding in Python - learn to customize inherited methods, use super(), and create specialized behaviors while maintaining inheritance benefits","method-overriding",77,"content:python:77.method-overriding.md","python/77.method-overriding.md","python/77.method-overriding",{"_path":717,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":718,"description":719,"slug":720,"parentId":671,"order":721,"_type":15,"_id":722,"_source":17,"_file":723,"_stem":724,"_extension":20},"/python/variable-visibility","Variable Visibility","Master Python variable visibility - learn public, protected, and private attributes to control access and create well-encapsulated classes","variable-visibility",78,"content:python:78.variable-visibility.md","python/78.variable-visibility.md","python/78.variable-visibility",{"_path":726,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":727,"description":728,"slug":729,"parentId":671,"order":730,"_type":15,"_id":731,"_source":17,"_file":732,"_stem":733,"_extension":20},"/python/special-methods","Special Methods","Master Python special methods (magic methods) - learn to implement __str__, __len__, __eq__ and more to make your classes work seamlessly with Python's built-in functions","special-methods",79,"content:python:79.special-methods.md","python/79.special-methods.md","python/79.special-methods",{"_path":735,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":736,"description":737,"slug":738,"order":739,"isParent":13,"icon":14,"_type":15,"_id":740,"_source":17,"_file":741,"_stem":742,"_extension":20,"children":743},"/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",[698],{"_path":699,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":700,"description":701,"slug":702,"parentId":671,"order":703,"body":989,"_type":15,"_id":704,"_source":17,"_file":705,"_stem":706,"_extension":20},{"type":990,"children":991,"toc":8556},"root",[992,1000,1006,1011,1465,1472,1477,1601,1608,1613,2278,2284,2297,3008,3013,3018,3024,3029,3657,3663,3675,4519,4525,4530,4619,4625,4630,5144,5150,5155,5632,5638,5644,5649,6452,6458,6464,6469,7159,7258,7263,7794,7800,8510,8516,8521,8528,8534,8539,8550],{"type":993,"tag":994,"props":995,"children":996},"element","h1",{"id":702},[997],{"type":998,"value":999},"text","🧬 Class Inheritance",{"type":993,"tag":1001,"props":1002,"children":1003},"p",{},[1004],{"type":998,"value":1005},"Class inheritance allows you to create new classes that build upon existing ones, inheriting their attributes and methods while adding specialized functionality. Instead of writing everything from scratch, inheritance lets you extend and customize existing code, creating hierarchies of related classes that share common features.",{"type":993,"tag":1001,"props":1007,"children":1008},{},[1009],{"type":998,"value":1010},"Think of inheritance like family traits - children inherit characteristics from their parents but also develop their own unique features. In programming, a child class inherits from a parent class but can add new methods or modify existing ones.",{"type":993,"tag":1012,"props":1013,"children":1014},"code-try",{},[1015],{"type":993,"tag":1016,"props":1017,"children":1020},"pre",{"className":1018,"code":1019,"language":6,"meta":8,"style":8},"language-python shiki shiki-themes github-light github-dark","# Basic inheritance example\nclass Animal:\n    def __init__(self, name):\n        self.name = name\n    \n    def speak(self):\n        return f\"{self.name} makes a sound\"\n    \n    def sleep(self):\n        return f\"{self.name} is sleeping\"\n\nclass Dog(Animal):  # Dog inherits from Animal\n    def speak(self):  # Override parent method\n        return f\"{self.name} barks!\"\n    \n    def fetch(self):  # Add new method\n        return f\"{self.name} fetches the ball\"\n\n# Using inheritance\nmy_dog = Dog(\"Buddy\")\nprint(my_dog.speak())   # Uses overridden method\nprint(my_dog.sleep())   # Uses inherited method\nprint(my_dog.fetch())   # Uses new method\n",[1021],{"type":993,"tag":1022,"props":1023,"children":1024},"code",{"__ignoreMap":8},[1025,1036,1057,1076,1099,1107,1124,1163,1170,1186,1218,1226,1258,1279,1311,1318,1339,1371,1378,1386,1413,1431,1448],{"type":993,"tag":1026,"props":1027,"children":1029},"span",{"class":1028,"line":12},"line",[1030],{"type":993,"tag":1026,"props":1031,"children":1033},{"style":1032},"--shiki-default:#6A737D;--shiki-app-dark-mode:#6A737D",[1034],{"type":998,"value":1035},"# Basic inheritance example\n",{"type":993,"tag":1026,"props":1037,"children":1038},{"class":1028,"line":27},[1039,1045,1051],{"type":993,"tag":1026,"props":1040,"children":1042},{"style":1041},"--shiki-default:#D73A49;--shiki-app-dark-mode:#F97583",[1043],{"type":998,"value":1044},"class",{"type":993,"tag":1026,"props":1046,"children":1048},{"style":1047},"--shiki-default:#6F42C1;--shiki-app-dark-mode:#B392F0",[1049],{"type":998,"value":1050}," Animal",{"type":993,"tag":1026,"props":1052,"children":1054},{"style":1053},"--shiki-default:#24292E;--shiki-app-dark-mode:#E1E4E8",[1055],{"type":998,"value":1056},":\n",{"type":993,"tag":1026,"props":1058,"children":1059},{"class":1028,"line":36},[1060,1065,1071],{"type":993,"tag":1026,"props":1061,"children":1062},{"style":1041},[1063],{"type":998,"value":1064},"    def",{"type":993,"tag":1026,"props":1066,"children":1068},{"style":1067},"--shiki-default:#005CC5;--shiki-app-dark-mode:#79B8FF",[1069],{"type":998,"value":1070}," __init__",{"type":993,"tag":1026,"props":1072,"children":1073},{"style":1053},[1074],{"type":998,"value":1075},"(self, name):\n",{"type":993,"tag":1026,"props":1077,"children":1078},{"class":1028,"line":45},[1079,1084,1089,1094],{"type":993,"tag":1026,"props":1080,"children":1081},{"style":1067},[1082],{"type":998,"value":1083},"        self",{"type":993,"tag":1026,"props":1085,"children":1086},{"style":1053},[1087],{"type":998,"value":1088},".name ",{"type":993,"tag":1026,"props":1090,"children":1091},{"style":1041},[1092],{"type":998,"value":1093},"=",{"type":993,"tag":1026,"props":1095,"children":1096},{"style":1053},[1097],{"type":998,"value":1098}," name\n",{"type":993,"tag":1026,"props":1100,"children":1101},{"class":1028,"line":54},[1102],{"type":993,"tag":1026,"props":1103,"children":1104},{"style":1053},[1105],{"type":998,"value":1106},"    \n",{"type":993,"tag":1026,"props":1108,"children":1109},{"class":1028,"line":63},[1110,1114,1119],{"type":993,"tag":1026,"props":1111,"children":1112},{"style":1041},[1113],{"type":998,"value":1064},{"type":993,"tag":1026,"props":1115,"children":1116},{"style":1047},[1117],{"type":998,"value":1118}," speak",{"type":993,"tag":1026,"props":1120,"children":1121},{"style":1053},[1122],{"type":998,"value":1123},"(self):\n",{"type":993,"tag":1026,"props":1125,"children":1126},{"class":1028,"line":72},[1127,1132,1137,1143,1148,1153,1158],{"type":993,"tag":1026,"props":1128,"children":1129},{"style":1041},[1130],{"type":998,"value":1131},"        return",{"type":993,"tag":1026,"props":1133,"children":1134},{"style":1041},[1135],{"type":998,"value":1136}," f",{"type":993,"tag":1026,"props":1138,"children":1140},{"style":1139},"--shiki-default:#032F62;--shiki-app-dark-mode:#9ECBFF",[1141],{"type":998,"value":1142},"\"",{"type":993,"tag":1026,"props":1144,"children":1145},{"style":1067},[1146],{"type":998,"value":1147},"{self",{"type":993,"tag":1026,"props":1149,"children":1150},{"style":1053},[1151],{"type":998,"value":1152},".name",{"type":993,"tag":1026,"props":1154,"children":1155},{"style":1067},[1156],{"type":998,"value":1157},"}",{"type":993,"tag":1026,"props":1159,"children":1160},{"style":1139},[1161],{"type":998,"value":1162}," makes a sound\"\n",{"type":993,"tag":1026,"props":1164,"children":1165},{"class":1028,"line":81},[1166],{"type":993,"tag":1026,"props":1167,"children":1168},{"style":1053},[1169],{"type":998,"value":1106},{"type":993,"tag":1026,"props":1171,"children":1172},{"class":1028,"line":91},[1173,1177,1182],{"type":993,"tag":1026,"props":1174,"children":1175},{"style":1041},[1176],{"type":998,"value":1064},{"type":993,"tag":1026,"props":1178,"children":1179},{"style":1047},[1180],{"type":998,"value":1181}," sleep",{"type":993,"tag":1026,"props":1183,"children":1184},{"style":1053},[1185],{"type":998,"value":1123},{"type":993,"tag":1026,"props":1187,"children":1188},{"class":1028,"line":100},[1189,1193,1197,1201,1205,1209,1213],{"type":993,"tag":1026,"props":1190,"children":1191},{"style":1041},[1192],{"type":998,"value":1131},{"type":993,"tag":1026,"props":1194,"children":1195},{"style":1041},[1196],{"type":998,"value":1136},{"type":993,"tag":1026,"props":1198,"children":1199},{"style":1139},[1200],{"type":998,"value":1142},{"type":993,"tag":1026,"props":1202,"children":1203},{"style":1067},[1204],{"type":998,"value":1147},{"type":993,"tag":1026,"props":1206,"children":1207},{"style":1053},[1208],{"type":998,"value":1152},{"type":993,"tag":1026,"props":1210,"children":1211},{"style":1067},[1212],{"type":998,"value":1157},{"type":993,"tag":1026,"props":1214,"children":1215},{"style":1139},[1216],{"type":998,"value":1217}," is sleeping\"\n",{"type":993,"tag":1026,"props":1219,"children":1220},{"class":1028,"line":109},[1221],{"type":993,"tag":1026,"props":1222,"children":1223},{"emptyLinePlaceholder":13},[1224],{"type":998,"value":1225},"\n",{"type":993,"tag":1026,"props":1227,"children":1228},{"class":1028,"line":118},[1229,1233,1238,1243,1248,1253],{"type":993,"tag":1026,"props":1230,"children":1231},{"style":1041},[1232],{"type":998,"value":1044},{"type":993,"tag":1026,"props":1234,"children":1235},{"style":1047},[1236],{"type":998,"value":1237}," Dog",{"type":993,"tag":1026,"props":1239,"children":1240},{"style":1053},[1241],{"type":998,"value":1242},"(",{"type":993,"tag":1026,"props":1244,"children":1245},{"style":1047},[1246],{"type":998,"value":1247},"Animal",{"type":993,"tag":1026,"props":1249,"children":1250},{"style":1053},[1251],{"type":998,"value":1252},"):  ",{"type":993,"tag":1026,"props":1254,"children":1255},{"style":1032},[1256],{"type":998,"value":1257},"# Dog inherits from Animal\n",{"type":993,"tag":1026,"props":1259,"children":1260},{"class":1028,"line":127},[1261,1265,1269,1274],{"type":993,"tag":1026,"props":1262,"children":1263},{"style":1041},[1264],{"type":998,"value":1064},{"type":993,"tag":1026,"props":1266,"children":1267},{"style":1047},[1268],{"type":998,"value":1118},{"type":993,"tag":1026,"props":1270,"children":1271},{"style":1053},[1272],{"type":998,"value":1273},"(self):  ",{"type":993,"tag":1026,"props":1275,"children":1276},{"style":1032},[1277],{"type":998,"value":1278},"# Override parent method\n",{"type":993,"tag":1026,"props":1280,"children":1281},{"class":1028,"line":136},[1282,1286,1290,1294,1298,1302,1306],{"type":993,"tag":1026,"props":1283,"children":1284},{"style":1041},[1285],{"type":998,"value":1131},{"type":993,"tag":1026,"props":1287,"children":1288},{"style":1041},[1289],{"type":998,"value":1136},{"type":993,"tag":1026,"props":1291,"children":1292},{"style":1139},[1293],{"type":998,"value":1142},{"type":993,"tag":1026,"props":1295,"children":1296},{"style":1067},[1297],{"type":998,"value":1147},{"type":993,"tag":1026,"props":1299,"children":1300},{"style":1053},[1301],{"type":998,"value":1152},{"type":993,"tag":1026,"props":1303,"children":1304},{"style":1067},[1305],{"type":998,"value":1157},{"type":993,"tag":1026,"props":1307,"children":1308},{"style":1139},[1309],{"type":998,"value":1310}," barks!\"\n",{"type":993,"tag":1026,"props":1312,"children":1313},{"class":1028,"line":146},[1314],{"type":993,"tag":1026,"props":1315,"children":1316},{"style":1053},[1317],{"type":998,"value":1106},{"type":993,"tag":1026,"props":1319,"children":1320},{"class":1028,"line":155},[1321,1325,1330,1334],{"type":993,"tag":1026,"props":1322,"children":1323},{"style":1041},[1324],{"type":998,"value":1064},{"type":993,"tag":1026,"props":1326,"children":1327},{"style":1047},[1328],{"type":998,"value":1329}," fetch",{"type":993,"tag":1026,"props":1331,"children":1332},{"style":1053},[1333],{"type":998,"value":1273},{"type":993,"tag":1026,"props":1335,"children":1336},{"style":1032},[1337],{"type":998,"value":1338},"# Add new method\n",{"type":993,"tag":1026,"props":1340,"children":1341},{"class":1028,"line":164},[1342,1346,1350,1354,1358,1362,1366],{"type":993,"tag":1026,"props":1343,"children":1344},{"style":1041},[1345],{"type":998,"value":1131},{"type":993,"tag":1026,"props":1347,"children":1348},{"style":1041},[1349],{"type":998,"value":1136},{"type":993,"tag":1026,"props":1351,"children":1352},{"style":1139},[1353],{"type":998,"value":1142},{"type":993,"tag":1026,"props":1355,"children":1356},{"style":1067},[1357],{"type":998,"value":1147},{"type":993,"tag":1026,"props":1359,"children":1360},{"style":1053},[1361],{"type":998,"value":1152},{"type":993,"tag":1026,"props":1363,"children":1364},{"style":1067},[1365],{"type":998,"value":1157},{"type":993,"tag":1026,"props":1367,"children":1368},{"style":1139},[1369],{"type":998,"value":1370}," fetches the ball\"\n",{"type":993,"tag":1026,"props":1372,"children":1373},{"class":1028,"line":173},[1374],{"type":993,"tag":1026,"props":1375,"children":1376},{"emptyLinePlaceholder":13},[1377],{"type":998,"value":1225},{"type":993,"tag":1026,"props":1379,"children":1380},{"class":1028,"line":182},[1381],{"type":993,"tag":1026,"props":1382,"children":1383},{"style":1032},[1384],{"type":998,"value":1385},"# Using inheritance\n",{"type":993,"tag":1026,"props":1387,"children":1388},{"class":1028,"line":191},[1389,1394,1398,1403,1408],{"type":993,"tag":1026,"props":1390,"children":1391},{"style":1053},[1392],{"type":998,"value":1393},"my_dog ",{"type":993,"tag":1026,"props":1395,"children":1396},{"style":1041},[1397],{"type":998,"value":1093},{"type":993,"tag":1026,"props":1399,"children":1400},{"style":1053},[1401],{"type":998,"value":1402}," Dog(",{"type":993,"tag":1026,"props":1404,"children":1405},{"style":1139},[1406],{"type":998,"value":1407},"\"Buddy\"",{"type":993,"tag":1026,"props":1409,"children":1410},{"style":1053},[1411],{"type":998,"value":1412},")\n",{"type":993,"tag":1026,"props":1414,"children":1415},{"class":1028,"line":201},[1416,1421,1426],{"type":993,"tag":1026,"props":1417,"children":1418},{"style":1067},[1419],{"type":998,"value":1420},"print",{"type":993,"tag":1026,"props":1422,"children":1423},{"style":1053},[1424],{"type":998,"value":1425},"(my_dog.speak())   ",{"type":993,"tag":1026,"props":1427,"children":1428},{"style":1032},[1429],{"type":998,"value":1430},"# Uses overridden method\n",{"type":993,"tag":1026,"props":1432,"children":1433},{"class":1028,"line":210},[1434,1438,1443],{"type":993,"tag":1026,"props":1435,"children":1436},{"style":1067},[1437],{"type":998,"value":1420},{"type":993,"tag":1026,"props":1439,"children":1440},{"style":1053},[1441],{"type":998,"value":1442},"(my_dog.sleep())   ",{"type":993,"tag":1026,"props":1444,"children":1445},{"style":1032},[1446],{"type":998,"value":1447},"# Uses inherited method\n",{"type":993,"tag":1026,"props":1449,"children":1450},{"class":1028,"line":219},[1451,1455,1460],{"type":993,"tag":1026,"props":1452,"children":1453},{"style":1067},[1454],{"type":998,"value":1420},{"type":993,"tag":1026,"props":1456,"children":1457},{"style":1053},[1458],{"type":998,"value":1459},"(my_dog.fetch())   ",{"type":993,"tag":1026,"props":1461,"children":1462},{"style":1032},[1463],{"type":998,"value":1464},"# Uses new method\n",{"type":993,"tag":1466,"props":1467,"children":1469},"h2",{"id":1468},"understanding-inheritance",[1470],{"type":998,"value":1471},"🎯 Understanding Inheritance",{"type":993,"tag":1001,"props":1473,"children":1474},{},[1475],{"type":998,"value":1476},"Inheritance creates an \"is-a\" relationship between classes, where a child class is a specialized version of its parent class. The child class automatically gets all the functionality of the parent class and can extend or modify it as needed.",{"type":993,"tag":1478,"props":1479,"children":1483},"info-box",{"emoji":1480,"title":1481,"type":1482},"🏗️","Inheritance Fundamentals","info",[1484,1493,1513,1521,1550,1558],{"type":993,"tag":1001,"props":1485,"children":1486},{},[1487],{"type":993,"tag":1488,"props":1489,"children":1490},"strong",{},[1491],{"type":998,"value":1492},"Parent Class (Base/Super):",{"type":993,"tag":1494,"props":1495,"children":1496},"ul",{},[1497,1503,1508],{"type":993,"tag":1498,"props":1499,"children":1500},"li",{},[1501],{"type":998,"value":1502},"Defines common attributes and methods",{"type":993,"tag":1498,"props":1504,"children":1505},{},[1506],{"type":998,"value":1507},"Provides foundation for child classes",{"type":993,"tag":1498,"props":1509,"children":1510},{},[1511],{"type":998,"value":1512},"Can be used independently or as a base for inheritance",{"type":993,"tag":1001,"props":1514,"children":1515},{},[1516],{"type":993,"tag":1488,"props":1517,"children":1518},{},[1519],{"type":998,"value":1520},"Child Class (Derived/Sub):",{"type":993,"tag":1494,"props":1522,"children":1523},{},[1524,1529,1534,1539],{"type":993,"tag":1498,"props":1525,"children":1526},{},[1527],{"type":998,"value":1528},"Inherits all parent attributes and methods",{"type":993,"tag":1498,"props":1530,"children":1531},{},[1532],{"type":998,"value":1533},"Can add new functionality",{"type":993,"tag":1498,"props":1535,"children":1536},{},[1537],{"type":998,"value":1538},"Can override inherited methods with specialized versions",{"type":993,"tag":1498,"props":1540,"children":1541},{},[1542,1544],{"type":998,"value":1543},"Specified with ",{"type":993,"tag":1022,"props":1545,"children":1547},{"className":1546},[],[1548],{"type":998,"value":1549},"class Child(Parent):",{"type":993,"tag":1001,"props":1551,"children":1552},{},[1553],{"type":993,"tag":1488,"props":1554,"children":1555},{},[1556],{"type":998,"value":1557},"Key Benefits:",{"type":993,"tag":1494,"props":1559,"children":1560},{},[1561,1571,1581,1591],{"type":993,"tag":1498,"props":1562,"children":1563},{},[1564,1569],{"type":993,"tag":1488,"props":1565,"children":1566},{},[1567],{"type":998,"value":1568},"Code Reuse",{"type":998,"value":1570},": Avoid duplicating common functionality",{"type":993,"tag":1498,"props":1572,"children":1573},{},[1574,1579],{"type":993,"tag":1488,"props":1575,"children":1576},{},[1577],{"type":998,"value":1578},"Extensibility",{"type":998,"value":1580},": Add features without modifying existing code",{"type":993,"tag":1498,"props":1582,"children":1583},{},[1584,1589],{"type":993,"tag":1488,"props":1585,"children":1586},{},[1587],{"type":998,"value":1588},"Organization",{"type":998,"value":1590},": Create logical hierarchies of related classes",{"type":993,"tag":1498,"props":1592,"children":1593},{},[1594,1599],{"type":993,"tag":1488,"props":1595,"children":1596},{},[1597],{"type":998,"value":1598},"Polymorphism",{"type":998,"value":1600},": Different classes can be used interchangeably",{"type":993,"tag":1602,"props":1603,"children":1605},"h3",{"id":1604},"creating-child-classes",[1606],{"type":998,"value":1607},"Creating Child Classes",{"type":993,"tag":1001,"props":1609,"children":1610},{},[1611],{"type":998,"value":1612},"To create a child class, specify the parent class in parentheses after the child class name. The child automatically inherits all parent attributes and methods.",{"type":993,"tag":1012,"props":1614,"children":1615},{},[1616],{"type":993,"tag":1016,"props":1617,"children":1619},{"className":1018,"code":1618,"language":6,"meta":8,"style":8},"class Vehicle:\n    def __init__(self, brand, model):\n        self.brand = brand\n        self.model = model\n        self.fuel = 100\n    \n    def start(self):\n        return f\"{self.brand} {self.model} is starting\"\n    \n    def stop(self):\n        return f\"{self.brand} {self.model} has stopped\"\n    \n    def get_info(self):\n        return f\"{self.brand} {self.model} (Fuel: {self.fuel}%)\"\n\nclass Car(Vehicle):  # Car inherits from Vehicle\n    def __init__(self, brand, model, doors):\n        super().__init__(brand, model)  # Call parent constructor\n        self.doors = doors  # Add car-specific attribute\n    \n    def honk(self):  # Add car-specific method\n        return f\"{self.brand} {self.model} honks the horn!\"\n\n# Using the child class\nmy_car = Car(\"Toyota\", \"Camry\", 4)\nprint(my_car.start())     # Inherited method\nprint(my_car.honk())      # New method\nprint(my_car.get_info())  # Inherited method\nprint(f\"Doors: {my_car.doors}\")  # New attribute\n",[1620],{"type":993,"tag":1022,"props":1621,"children":1622},{"__ignoreMap":8},[1623,1639,1655,1676,1697,1718,1725,1741,1788,1795,1811,1855,1862,1878,1940,1947,1977,1993,2021,2047,2054,2075,2119,2126,2134,2179,2196,2213,2229],{"type":993,"tag":1026,"props":1624,"children":1625},{"class":1028,"line":12},[1626,1630,1635],{"type":993,"tag":1026,"props":1627,"children":1628},{"style":1041},[1629],{"type":998,"value":1044},{"type":993,"tag":1026,"props":1631,"children":1632},{"style":1047},[1633],{"type":998,"value":1634}," Vehicle",{"type":993,"tag":1026,"props":1636,"children":1637},{"style":1053},[1638],{"type":998,"value":1056},{"type":993,"tag":1026,"props":1640,"children":1641},{"class":1028,"line":27},[1642,1646,1650],{"type":993,"tag":1026,"props":1643,"children":1644},{"style":1041},[1645],{"type":998,"value":1064},{"type":993,"tag":1026,"props":1647,"children":1648},{"style":1067},[1649],{"type":998,"value":1070},{"type":993,"tag":1026,"props":1651,"children":1652},{"style":1053},[1653],{"type":998,"value":1654},"(self, brand, model):\n",{"type":993,"tag":1026,"props":1656,"children":1657},{"class":1028,"line":36},[1658,1662,1667,1671],{"type":993,"tag":1026,"props":1659,"children":1660},{"style":1067},[1661],{"type":998,"value":1083},{"type":993,"tag":1026,"props":1663,"children":1664},{"style":1053},[1665],{"type":998,"value":1666},".brand ",{"type":993,"tag":1026,"props":1668,"children":1669},{"style":1041},[1670],{"type":998,"value":1093},{"type":993,"tag":1026,"props":1672,"children":1673},{"style":1053},[1674],{"type":998,"value":1675}," brand\n",{"type":993,"tag":1026,"props":1677,"children":1678},{"class":1028,"line":45},[1679,1683,1688,1692],{"type":993,"tag":1026,"props":1680,"children":1681},{"style":1067},[1682],{"type":998,"value":1083},{"type":993,"tag":1026,"props":1684,"children":1685},{"style":1053},[1686],{"type":998,"value":1687},".model ",{"type":993,"tag":1026,"props":1689,"children":1690},{"style":1041},[1691],{"type":998,"value":1093},{"type":993,"tag":1026,"props":1693,"children":1694},{"style":1053},[1695],{"type":998,"value":1696}," model\n",{"type":993,"tag":1026,"props":1698,"children":1699},{"class":1028,"line":54},[1700,1704,1709,1713],{"type":993,"tag":1026,"props":1701,"children":1702},{"style":1067},[1703],{"type":998,"value":1083},{"type":993,"tag":1026,"props":1705,"children":1706},{"style":1053},[1707],{"type":998,"value":1708},".fuel ",{"type":993,"tag":1026,"props":1710,"children":1711},{"style":1041},[1712],{"type":998,"value":1093},{"type":993,"tag":1026,"props":1714,"children":1715},{"style":1067},[1716],{"type":998,"value":1717}," 100\n",{"type":993,"tag":1026,"props":1719,"children":1720},{"class":1028,"line":63},[1721],{"type":993,"tag":1026,"props":1722,"children":1723},{"style":1053},[1724],{"type":998,"value":1106},{"type":993,"tag":1026,"props":1726,"children":1727},{"class":1028,"line":72},[1728,1732,1737],{"type":993,"tag":1026,"props":1729,"children":1730},{"style":1041},[1731],{"type":998,"value":1064},{"type":993,"tag":1026,"props":1733,"children":1734},{"style":1047},[1735],{"type":998,"value":1736}," start",{"type":993,"tag":1026,"props":1738,"children":1739},{"style":1053},[1740],{"type":998,"value":1123},{"type":993,"tag":1026,"props":1742,"children":1743},{"class":1028,"line":81},[1744,1748,1752,1756,1760,1765,1769,1774,1779,1783],{"type":993,"tag":1026,"props":1745,"children":1746},{"style":1041},[1747],{"type":998,"value":1131},{"type":993,"tag":1026,"props":1749,"children":1750},{"style":1041},[1751],{"type":998,"value":1136},{"type":993,"tag":1026,"props":1753,"children":1754},{"style":1139},[1755],{"type":998,"value":1142},{"type":993,"tag":1026,"props":1757,"children":1758},{"style":1067},[1759],{"type":998,"value":1147},{"type":993,"tag":1026,"props":1761,"children":1762},{"style":1053},[1763],{"type":998,"value":1764},".brand",{"type":993,"tag":1026,"props":1766,"children":1767},{"style":1067},[1768],{"type":998,"value":1157},{"type":993,"tag":1026,"props":1770,"children":1771},{"style":1067},[1772],{"type":998,"value":1773}," {self",{"type":993,"tag":1026,"props":1775,"children":1776},{"style":1053},[1777],{"type":998,"value":1778},".model",{"type":993,"tag":1026,"props":1780,"children":1781},{"style":1067},[1782],{"type":998,"value":1157},{"type":993,"tag":1026,"props":1784,"children":1785},{"style":1139},[1786],{"type":998,"value":1787}," is starting\"\n",{"type":993,"tag":1026,"props":1789,"children":1790},{"class":1028,"line":91},[1791],{"type":993,"tag":1026,"props":1792,"children":1793},{"style":1053},[1794],{"type":998,"value":1106},{"type":993,"tag":1026,"props":1796,"children":1797},{"class":1028,"line":100},[1798,1802,1807],{"type":993,"tag":1026,"props":1799,"children":1800},{"style":1041},[1801],{"type":998,"value":1064},{"type":993,"tag":1026,"props":1803,"children":1804},{"style":1047},[1805],{"type":998,"value":1806}," stop",{"type":993,"tag":1026,"props":1808,"children":1809},{"style":1053},[1810],{"type":998,"value":1123},{"type":993,"tag":1026,"props":1812,"children":1813},{"class":1028,"line":109},[1814,1818,1822,1826,1830,1834,1838,1842,1846,1850],{"type":993,"tag":1026,"props":1815,"children":1816},{"style":1041},[1817],{"type":998,"value":1131},{"type":993,"tag":1026,"props":1819,"children":1820},{"style":1041},[1821],{"type":998,"value":1136},{"type":993,"tag":1026,"props":1823,"children":1824},{"style":1139},[1825],{"type":998,"value":1142},{"type":993,"tag":1026,"props":1827,"children":1828},{"style":1067},[1829],{"type":998,"value":1147},{"type":993,"tag":1026,"props":1831,"children":1832},{"style":1053},[1833],{"type":998,"value":1764},{"type":993,"tag":1026,"props":1835,"children":1836},{"style":1067},[1837],{"type":998,"value":1157},{"type":993,"tag":1026,"props":1839,"children":1840},{"style":1067},[1841],{"type":998,"value":1773},{"type":993,"tag":1026,"props":1843,"children":1844},{"style":1053},[1845],{"type":998,"value":1778},{"type":993,"tag":1026,"props":1847,"children":1848},{"style":1067},[1849],{"type":998,"value":1157},{"type":993,"tag":1026,"props":1851,"children":1852},{"style":1139},[1853],{"type":998,"value":1854}," has stopped\"\n",{"type":993,"tag":1026,"props":1856,"children":1857},{"class":1028,"line":118},[1858],{"type":993,"tag":1026,"props":1859,"children":1860},{"style":1053},[1861],{"type":998,"value":1106},{"type":993,"tag":1026,"props":1863,"children":1864},{"class":1028,"line":127},[1865,1869,1874],{"type":993,"tag":1026,"props":1866,"children":1867},{"style":1041},[1868],{"type":998,"value":1064},{"type":993,"tag":1026,"props":1870,"children":1871},{"style":1047},[1872],{"type":998,"value":1873}," get_info",{"type":993,"tag":1026,"props":1875,"children":1876},{"style":1053},[1877],{"type":998,"value":1123},{"type":993,"tag":1026,"props":1879,"children":1880},{"class":1028,"line":136},[1881,1885,1889,1893,1897,1901,1905,1909,1913,1917,1922,1926,1931,1935],{"type":993,"tag":1026,"props":1882,"children":1883},{"style":1041},[1884],{"type":998,"value":1131},{"type":993,"tag":1026,"props":1886,"children":1887},{"style":1041},[1888],{"type":998,"value":1136},{"type":993,"tag":1026,"props":1890,"children":1891},{"style":1139},[1892],{"type":998,"value":1142},{"type":993,"tag":1026,"props":1894,"children":1895},{"style":1067},[1896],{"type":998,"value":1147},{"type":993,"tag":1026,"props":1898,"children":1899},{"style":1053},[1900],{"type":998,"value":1764},{"type":993,"tag":1026,"props":1902,"children":1903},{"style":1067},[1904],{"type":998,"value":1157},{"type":993,"tag":1026,"props":1906,"children":1907},{"style":1067},[1908],{"type":998,"value":1773},{"type":993,"tag":1026,"props":1910,"children":1911},{"style":1053},[1912],{"type":998,"value":1778},{"type":993,"tag":1026,"props":1914,"children":1915},{"style":1067},[1916],{"type":998,"value":1157},{"type":993,"tag":1026,"props":1918,"children":1919},{"style":1139},[1920],{"type":998,"value":1921}," (Fuel: ",{"type":993,"tag":1026,"props":1923,"children":1924},{"style":1067},[1925],{"type":998,"value":1147},{"type":993,"tag":1026,"props":1927,"children":1928},{"style":1053},[1929],{"type":998,"value":1930},".fuel",{"type":993,"tag":1026,"props":1932,"children":1933},{"style":1067},[1934],{"type":998,"value":1157},{"type":993,"tag":1026,"props":1936,"children":1937},{"style":1139},[1938],{"type":998,"value":1939},"%)\"\n",{"type":993,"tag":1026,"props":1941,"children":1942},{"class":1028,"line":146},[1943],{"type":993,"tag":1026,"props":1944,"children":1945},{"emptyLinePlaceholder":13},[1946],{"type":998,"value":1225},{"type":993,"tag":1026,"props":1948,"children":1949},{"class":1028,"line":155},[1950,1954,1959,1963,1968,1972],{"type":993,"tag":1026,"props":1951,"children":1952},{"style":1041},[1953],{"type":998,"value":1044},{"type":993,"tag":1026,"props":1955,"children":1956},{"style":1047},[1957],{"type":998,"value":1958}," Car",{"type":993,"tag":1026,"props":1960,"children":1961},{"style":1053},[1962],{"type":998,"value":1242},{"type":993,"tag":1026,"props":1964,"children":1965},{"style":1047},[1966],{"type":998,"value":1967},"Vehicle",{"type":993,"tag":1026,"props":1969,"children":1970},{"style":1053},[1971],{"type":998,"value":1252},{"type":993,"tag":1026,"props":1973,"children":1974},{"style":1032},[1975],{"type":998,"value":1976},"# Car inherits from Vehicle\n",{"type":993,"tag":1026,"props":1978,"children":1979},{"class":1028,"line":164},[1980,1984,1988],{"type":993,"tag":1026,"props":1981,"children":1982},{"style":1041},[1983],{"type":998,"value":1064},{"type":993,"tag":1026,"props":1985,"children":1986},{"style":1067},[1987],{"type":998,"value":1070},{"type":993,"tag":1026,"props":1989,"children":1990},{"style":1053},[1991],{"type":998,"value":1992},"(self, brand, model, doors):\n",{"type":993,"tag":1026,"props":1994,"children":1995},{"class":1028,"line":173},[1996,2001,2006,2011,2016],{"type":993,"tag":1026,"props":1997,"children":1998},{"style":1067},[1999],{"type":998,"value":2000},"        super",{"type":993,"tag":1026,"props":2002,"children":2003},{"style":1053},[2004],{"type":998,"value":2005},"().",{"type":993,"tag":1026,"props":2007,"children":2008},{"style":1067},[2009],{"type":998,"value":2010},"__init__",{"type":993,"tag":1026,"props":2012,"children":2013},{"style":1053},[2014],{"type":998,"value":2015},"(brand, model)  ",{"type":993,"tag":1026,"props":2017,"children":2018},{"style":1032},[2019],{"type":998,"value":2020},"# Call parent constructor\n",{"type":993,"tag":1026,"props":2022,"children":2023},{"class":1028,"line":182},[2024,2028,2033,2037,2042],{"type":993,"tag":1026,"props":2025,"children":2026},{"style":1067},[2027],{"type":998,"value":1083},{"type":993,"tag":1026,"props":2029,"children":2030},{"style":1053},[2031],{"type":998,"value":2032},".doors ",{"type":993,"tag":1026,"props":2034,"children":2035},{"style":1041},[2036],{"type":998,"value":1093},{"type":993,"tag":1026,"props":2038,"children":2039},{"style":1053},[2040],{"type":998,"value":2041}," doors  ",{"type":993,"tag":1026,"props":2043,"children":2044},{"style":1032},[2045],{"type":998,"value":2046},"# Add car-specific attribute\n",{"type":993,"tag":1026,"props":2048,"children":2049},{"class":1028,"line":191},[2050],{"type":993,"tag":1026,"props":2051,"children":2052},{"style":1053},[2053],{"type":998,"value":1106},{"type":993,"tag":1026,"props":2055,"children":2056},{"class":1028,"line":201},[2057,2061,2066,2070],{"type":993,"tag":1026,"props":2058,"children":2059},{"style":1041},[2060],{"type":998,"value":1064},{"type":993,"tag":1026,"props":2062,"children":2063},{"style":1047},[2064],{"type":998,"value":2065}," honk",{"type":993,"tag":1026,"props":2067,"children":2068},{"style":1053},[2069],{"type":998,"value":1273},{"type":993,"tag":1026,"props":2071,"children":2072},{"style":1032},[2073],{"type":998,"value":2074},"# Add car-specific method\n",{"type":993,"tag":1026,"props":2076,"children":2077},{"class":1028,"line":210},[2078,2082,2086,2090,2094,2098,2102,2106,2110,2114],{"type":993,"tag":1026,"props":2079,"children":2080},{"style":1041},[2081],{"type":998,"value":1131},{"type":993,"tag":1026,"props":2083,"children":2084},{"style":1041},[2085],{"type":998,"value":1136},{"type":993,"tag":1026,"props":2087,"children":2088},{"style":1139},[2089],{"type":998,"value":1142},{"type":993,"tag":1026,"props":2091,"children":2092},{"style":1067},[2093],{"type":998,"value":1147},{"type":993,"tag":1026,"props":2095,"children":2096},{"style":1053},[2097],{"type":998,"value":1764},{"type":993,"tag":1026,"props":2099,"children":2100},{"style":1067},[2101],{"type":998,"value":1157},{"type":993,"tag":1026,"props":2103,"children":2104},{"style":1067},[2105],{"type":998,"value":1773},{"type":993,"tag":1026,"props":2107,"children":2108},{"style":1053},[2109],{"type":998,"value":1778},{"type":993,"tag":1026,"props":2111,"children":2112},{"style":1067},[2113],{"type":998,"value":1157},{"type":993,"tag":1026,"props":2115,"children":2116},{"style":1139},[2117],{"type":998,"value":2118}," honks the horn!\"\n",{"type":993,"tag":1026,"props":2120,"children":2121},{"class":1028,"line":219},[2122],{"type":993,"tag":1026,"props":2123,"children":2124},{"emptyLinePlaceholder":13},[2125],{"type":998,"value":1225},{"type":993,"tag":1026,"props":2127,"children":2128},{"class":1028,"line":228},[2129],{"type":993,"tag":1026,"props":2130,"children":2131},{"style":1032},[2132],{"type":998,"value":2133},"# Using the child class\n",{"type":993,"tag":1026,"props":2135,"children":2136},{"class":1028,"line":238},[2137,2142,2146,2151,2156,2161,2166,2170,2175],{"type":993,"tag":1026,"props":2138,"children":2139},{"style":1053},[2140],{"type":998,"value":2141},"my_car ",{"type":993,"tag":1026,"props":2143,"children":2144},{"style":1041},[2145],{"type":998,"value":1093},{"type":993,"tag":1026,"props":2147,"children":2148},{"style":1053},[2149],{"type":998,"value":2150}," Car(",{"type":993,"tag":1026,"props":2152,"children":2153},{"style":1139},[2154],{"type":998,"value":2155},"\"Toyota\"",{"type":993,"tag":1026,"props":2157,"children":2158},{"style":1053},[2159],{"type":998,"value":2160},", ",{"type":993,"tag":1026,"props":2162,"children":2163},{"style":1139},[2164],{"type":998,"value":2165},"\"Camry\"",{"type":993,"tag":1026,"props":2167,"children":2168},{"style":1053},[2169],{"type":998,"value":2160},{"type":993,"tag":1026,"props":2171,"children":2172},{"style":1067},[2173],{"type":998,"value":2174},"4",{"type":993,"tag":1026,"props":2176,"children":2177},{"style":1053},[2178],{"type":998,"value":1412},{"type":993,"tag":1026,"props":2180,"children":2181},{"class":1028,"line":247},[2182,2186,2191],{"type":993,"tag":1026,"props":2183,"children":2184},{"style":1067},[2185],{"type":998,"value":1420},{"type":993,"tag":1026,"props":2187,"children":2188},{"style":1053},[2189],{"type":998,"value":2190},"(my_car.start())     ",{"type":993,"tag":1026,"props":2192,"children":2193},{"style":1032},[2194],{"type":998,"value":2195},"# Inherited method\n",{"type":993,"tag":1026,"props":2197,"children":2198},{"class":1028,"line":256},[2199,2203,2208],{"type":993,"tag":1026,"props":2200,"children":2201},{"style":1067},[2202],{"type":998,"value":1420},{"type":993,"tag":1026,"props":2204,"children":2205},{"style":1053},[2206],{"type":998,"value":2207},"(my_car.honk())      ",{"type":993,"tag":1026,"props":2209,"children":2210},{"style":1032},[2211],{"type":998,"value":2212},"# New method\n",{"type":993,"tag":1026,"props":2214,"children":2215},{"class":1028,"line":265},[2216,2220,2225],{"type":993,"tag":1026,"props":2217,"children":2218},{"style":1067},[2219],{"type":998,"value":1420},{"type":993,"tag":1026,"props":2221,"children":2222},{"style":1053},[2223],{"type":998,"value":2224},"(my_car.get_info())  ",{"type":993,"tag":1026,"props":2226,"children":2227},{"style":1032},[2228],{"type":998,"value":2195},{"type":993,"tag":1026,"props":2230,"children":2231},{"class":1028,"line":274},[2232,2236,2240,2245,2250,2255,2260,2264,2268,2273],{"type":993,"tag":1026,"props":2233,"children":2234},{"style":1067},[2235],{"type":998,"value":1420},{"type":993,"tag":1026,"props":2237,"children":2238},{"style":1053},[2239],{"type":998,"value":1242},{"type":993,"tag":1026,"props":2241,"children":2242},{"style":1041},[2243],{"type":998,"value":2244},"f",{"type":993,"tag":1026,"props":2246,"children":2247},{"style":1139},[2248],{"type":998,"value":2249},"\"Doors: ",{"type":993,"tag":1026,"props":2251,"children":2252},{"style":1067},[2253],{"type":998,"value":2254},"{",{"type":993,"tag":1026,"props":2256,"children":2257},{"style":1053},[2258],{"type":998,"value":2259},"my_car.doors",{"type":993,"tag":1026,"props":2261,"children":2262},{"style":1067},[2263],{"type":998,"value":1157},{"type":993,"tag":1026,"props":2265,"children":2266},{"style":1139},[2267],{"type":998,"value":1142},{"type":993,"tag":1026,"props":2269,"children":2270},{"style":1053},[2271],{"type":998,"value":2272},")  ",{"type":993,"tag":1026,"props":2274,"children":2275},{"style":1032},[2276],{"type":998,"value":2277},"# New attribute\n",{"type":993,"tag":1602,"props":2279,"children":2281},{"id":2280},"the-super-function",[2282],{"type":998,"value":2283},"The super() Function",{"type":993,"tag":1001,"props":2285,"children":2286},{},[2287,2289,2295],{"type":998,"value":2288},"The ",{"type":993,"tag":1022,"props":2290,"children":2292},{"className":2291},[],[2293],{"type":998,"value":2294},"super()",{"type":998,"value":2296}," function provides access to the parent class, allowing you to call parent methods from child classes. This is especially useful in constructors and when extending parent functionality.",{"type":993,"tag":1012,"props":2298,"children":2299},{},[2300],{"type":993,"tag":1016,"props":2301,"children":2303},{"className":1018,"code":2302,"language":6,"meta":8,"style":8},"class Employee:\n    def __init__(self, name, employee_id):\n        self.name = name\n        self.employee_id = employee_id\n        self.salary = 0\n    \n    def work(self):\n        return f\"{self.name} is working\"\n    \n    def get_details(self):\n        return f\"Employee {self.employee_id}: {self.name} (${self.salary})\"\n\nclass Manager(Employee):\n    def __init__(self, name, employee_id, department):\n        super().__init__(name, employee_id)  # Initialize parent\n        self.department = department\n        self.team_size = 0\n    \n    def work(self):\n        parent_work = super().work()  # Get parent behavior\n        return f\"{parent_work} and managing {self.department}\"\n    \n    def hire(self, employee):\n        self.team_size += 1\n        return f\"{self.name} hired {employee} to {self.department}\"\n\n# Using super() functionality\nmanager = Manager(\"Alice\", \"M001\", \"Engineering\")\nmanager.salary = 80000\nprint(manager.work())        # Extended behavior\nprint(manager.get_details()) # Inherited method\nprint(manager.hire(\"Bob\"))   # New method\n",[2304],{"type":993,"tag":1022,"props":2305,"children":2306},{"__ignoreMap":8},[2307,2323,2339,2358,2379,2400,2407,2423,2455,2462,2478,2547,2554,2580,2596,2621,2642,2662,2669,2684,2711,2762,2769,2786,2807,2873,2880,2888,2932,2949,2966,2982],{"type":993,"tag":1026,"props":2308,"children":2309},{"class":1028,"line":12},[2310,2314,2319],{"type":993,"tag":1026,"props":2311,"children":2312},{"style":1041},[2313],{"type":998,"value":1044},{"type":993,"tag":1026,"props":2315,"children":2316},{"style":1047},[2317],{"type":998,"value":2318}," Employee",{"type":993,"tag":1026,"props":2320,"children":2321},{"style":1053},[2322],{"type":998,"value":1056},{"type":993,"tag":1026,"props":2324,"children":2325},{"class":1028,"line":27},[2326,2330,2334],{"type":993,"tag":1026,"props":2327,"children":2328},{"style":1041},[2329],{"type":998,"value":1064},{"type":993,"tag":1026,"props":2331,"children":2332},{"style":1067},[2333],{"type":998,"value":1070},{"type":993,"tag":1026,"props":2335,"children":2336},{"style":1053},[2337],{"type":998,"value":2338},"(self, name, employee_id):\n",{"type":993,"tag":1026,"props":2340,"children":2341},{"class":1028,"line":36},[2342,2346,2350,2354],{"type":993,"tag":1026,"props":2343,"children":2344},{"style":1067},[2345],{"type":998,"value":1083},{"type":993,"tag":1026,"props":2347,"children":2348},{"style":1053},[2349],{"type":998,"value":1088},{"type":993,"tag":1026,"props":2351,"children":2352},{"style":1041},[2353],{"type":998,"value":1093},{"type":993,"tag":1026,"props":2355,"children":2356},{"style":1053},[2357],{"type":998,"value":1098},{"type":993,"tag":1026,"props":2359,"children":2360},{"class":1028,"line":45},[2361,2365,2370,2374],{"type":993,"tag":1026,"props":2362,"children":2363},{"style":1067},[2364],{"type":998,"value":1083},{"type":993,"tag":1026,"props":2366,"children":2367},{"style":1053},[2368],{"type":998,"value":2369},".employee_id ",{"type":993,"tag":1026,"props":2371,"children":2372},{"style":1041},[2373],{"type":998,"value":1093},{"type":993,"tag":1026,"props":2375,"children":2376},{"style":1053},[2377],{"type":998,"value":2378}," employee_id\n",{"type":993,"tag":1026,"props":2380,"children":2381},{"class":1028,"line":54},[2382,2386,2391,2395],{"type":993,"tag":1026,"props":2383,"children":2384},{"style":1067},[2385],{"type":998,"value":1083},{"type":993,"tag":1026,"props":2387,"children":2388},{"style":1053},[2389],{"type":998,"value":2390},".salary ",{"type":993,"tag":1026,"props":2392,"children":2393},{"style":1041},[2394],{"type":998,"value":1093},{"type":993,"tag":1026,"props":2396,"children":2397},{"style":1067},[2398],{"type":998,"value":2399}," 0\n",{"type":993,"tag":1026,"props":2401,"children":2402},{"class":1028,"line":63},[2403],{"type":993,"tag":1026,"props":2404,"children":2405},{"style":1053},[2406],{"type":998,"value":1106},{"type":993,"tag":1026,"props":2408,"children":2409},{"class":1028,"line":72},[2410,2414,2419],{"type":993,"tag":1026,"props":2411,"children":2412},{"style":1041},[2413],{"type":998,"value":1064},{"type":993,"tag":1026,"props":2415,"children":2416},{"style":1047},[2417],{"type":998,"value":2418}," work",{"type":993,"tag":1026,"props":2420,"children":2421},{"style":1053},[2422],{"type":998,"value":1123},{"type":993,"tag":1026,"props":2424,"children":2425},{"class":1028,"line":81},[2426,2430,2434,2438,2442,2446,2450],{"type":993,"tag":1026,"props":2427,"children":2428},{"style":1041},[2429],{"type":998,"value":1131},{"type":993,"tag":1026,"props":2431,"children":2432},{"style":1041},[2433],{"type":998,"value":1136},{"type":993,"tag":1026,"props":2435,"children":2436},{"style":1139},[2437],{"type":998,"value":1142},{"type":993,"tag":1026,"props":2439,"children":2440},{"style":1067},[2441],{"type":998,"value":1147},{"type":993,"tag":1026,"props":2443,"children":2444},{"style":1053},[2445],{"type":998,"value":1152},{"type":993,"tag":1026,"props":2447,"children":2448},{"style":1067},[2449],{"type":998,"value":1157},{"type":993,"tag":1026,"props":2451,"children":2452},{"style":1139},[2453],{"type":998,"value":2454}," is working\"\n",{"type":993,"tag":1026,"props":2456,"children":2457},{"class":1028,"line":91},[2458],{"type":993,"tag":1026,"props":2459,"children":2460},{"style":1053},[2461],{"type":998,"value":1106},{"type":993,"tag":1026,"props":2463,"children":2464},{"class":1028,"line":100},[2465,2469,2474],{"type":993,"tag":1026,"props":2466,"children":2467},{"style":1041},[2468],{"type":998,"value":1064},{"type":993,"tag":1026,"props":2470,"children":2471},{"style":1047},[2472],{"type":998,"value":2473}," get_details",{"type":993,"tag":1026,"props":2475,"children":2476},{"style":1053},[2477],{"type":998,"value":1123},{"type":993,"tag":1026,"props":2479,"children":2480},{"class":1028,"line":109},[2481,2485,2489,2494,2498,2503,2507,2512,2516,2520,2524,2529,2533,2538,2542],{"type":993,"tag":1026,"props":2482,"children":2483},{"style":1041},[2484],{"type":998,"value":1131},{"type":993,"tag":1026,"props":2486,"children":2487},{"style":1041},[2488],{"type":998,"value":1136},{"type":993,"tag":1026,"props":2490,"children":2491},{"style":1139},[2492],{"type":998,"value":2493},"\"Employee ",{"type":993,"tag":1026,"props":2495,"children":2496},{"style":1067},[2497],{"type":998,"value":1147},{"type":993,"tag":1026,"props":2499,"children":2500},{"style":1053},[2501],{"type":998,"value":2502},".employee_id",{"type":993,"tag":1026,"props":2504,"children":2505},{"style":1067},[2506],{"type":998,"value":1157},{"type":993,"tag":1026,"props":2508,"children":2509},{"style":1139},[2510],{"type":998,"value":2511},": ",{"type":993,"tag":1026,"props":2513,"children":2514},{"style":1067},[2515],{"type":998,"value":1147},{"type":993,"tag":1026,"props":2517,"children":2518},{"style":1053},[2519],{"type":998,"value":1152},{"type":993,"tag":1026,"props":2521,"children":2522},{"style":1067},[2523],{"type":998,"value":1157},{"type":993,"tag":1026,"props":2525,"children":2526},{"style":1139},[2527],{"type":998,"value":2528}," ($",{"type":993,"tag":1026,"props":2530,"children":2531},{"style":1067},[2532],{"type":998,"value":1147},{"type":993,"tag":1026,"props":2534,"children":2535},{"style":1053},[2536],{"type":998,"value":2537},".salary",{"type":993,"tag":1026,"props":2539,"children":2540},{"style":1067},[2541],{"type":998,"value":1157},{"type":993,"tag":1026,"props":2543,"children":2544},{"style":1139},[2545],{"type":998,"value":2546},")\"\n",{"type":993,"tag":1026,"props":2548,"children":2549},{"class":1028,"line":118},[2550],{"type":993,"tag":1026,"props":2551,"children":2552},{"emptyLinePlaceholder":13},[2553],{"type":998,"value":1225},{"type":993,"tag":1026,"props":2555,"children":2556},{"class":1028,"line":127},[2557,2561,2566,2570,2575],{"type":993,"tag":1026,"props":2558,"children":2559},{"style":1041},[2560],{"type":998,"value":1044},{"type":993,"tag":1026,"props":2562,"children":2563},{"style":1047},[2564],{"type":998,"value":2565}," Manager",{"type":993,"tag":1026,"props":2567,"children":2568},{"style":1053},[2569],{"type":998,"value":1242},{"type":993,"tag":1026,"props":2571,"children":2572},{"style":1047},[2573],{"type":998,"value":2574},"Employee",{"type":993,"tag":1026,"props":2576,"children":2577},{"style":1053},[2578],{"type":998,"value":2579},"):\n",{"type":993,"tag":1026,"props":2581,"children":2582},{"class":1028,"line":136},[2583,2587,2591],{"type":993,"tag":1026,"props":2584,"children":2585},{"style":1041},[2586],{"type":998,"value":1064},{"type":993,"tag":1026,"props":2588,"children":2589},{"style":1067},[2590],{"type":998,"value":1070},{"type":993,"tag":1026,"props":2592,"children":2593},{"style":1053},[2594],{"type":998,"value":2595},"(self, name, employee_id, department):\n",{"type":993,"tag":1026,"props":2597,"children":2598},{"class":1028,"line":146},[2599,2603,2607,2611,2616],{"type":993,"tag":1026,"props":2600,"children":2601},{"style":1067},[2602],{"type":998,"value":2000},{"type":993,"tag":1026,"props":2604,"children":2605},{"style":1053},[2606],{"type":998,"value":2005},{"type":993,"tag":1026,"props":2608,"children":2609},{"style":1067},[2610],{"type":998,"value":2010},{"type":993,"tag":1026,"props":2612,"children":2613},{"style":1053},[2614],{"type":998,"value":2615},"(name, employee_id)  ",{"type":993,"tag":1026,"props":2617,"children":2618},{"style":1032},[2619],{"type":998,"value":2620},"# Initialize parent\n",{"type":993,"tag":1026,"props":2622,"children":2623},{"class":1028,"line":155},[2624,2628,2633,2637],{"type":993,"tag":1026,"props":2625,"children":2626},{"style":1067},[2627],{"type":998,"value":1083},{"type":993,"tag":1026,"props":2629,"children":2630},{"style":1053},[2631],{"type":998,"value":2632},".department ",{"type":993,"tag":1026,"props":2634,"children":2635},{"style":1041},[2636],{"type":998,"value":1093},{"type":993,"tag":1026,"props":2638,"children":2639},{"style":1053},[2640],{"type":998,"value":2641}," department\n",{"type":993,"tag":1026,"props":2643,"children":2644},{"class":1028,"line":164},[2645,2649,2654,2658],{"type":993,"tag":1026,"props":2646,"children":2647},{"style":1067},[2648],{"type":998,"value":1083},{"type":993,"tag":1026,"props":2650,"children":2651},{"style":1053},[2652],{"type":998,"value":2653},".team_size ",{"type":993,"tag":1026,"props":2655,"children":2656},{"style":1041},[2657],{"type":998,"value":1093},{"type":993,"tag":1026,"props":2659,"children":2660},{"style":1067},[2661],{"type":998,"value":2399},{"type":993,"tag":1026,"props":2663,"children":2664},{"class":1028,"line":173},[2665],{"type":993,"tag":1026,"props":2666,"children":2667},{"style":1053},[2668],{"type":998,"value":1106},{"type":993,"tag":1026,"props":2670,"children":2671},{"class":1028,"line":182},[2672,2676,2680],{"type":993,"tag":1026,"props":2673,"children":2674},{"style":1041},[2675],{"type":998,"value":1064},{"type":993,"tag":1026,"props":2677,"children":2678},{"style":1047},[2679],{"type":998,"value":2418},{"type":993,"tag":1026,"props":2681,"children":2682},{"style":1053},[2683],{"type":998,"value":1123},{"type":993,"tag":1026,"props":2685,"children":2686},{"class":1028,"line":191},[2687,2692,2696,2701,2706],{"type":993,"tag":1026,"props":2688,"children":2689},{"style":1053},[2690],{"type":998,"value":2691},"        parent_work ",{"type":993,"tag":1026,"props":2693,"children":2694},{"style":1041},[2695],{"type":998,"value":1093},{"type":993,"tag":1026,"props":2697,"children":2698},{"style":1067},[2699],{"type":998,"value":2700}," super",{"type":993,"tag":1026,"props":2702,"children":2703},{"style":1053},[2704],{"type":998,"value":2705},"().work()  ",{"type":993,"tag":1026,"props":2707,"children":2708},{"style":1032},[2709],{"type":998,"value":2710},"# Get parent behavior\n",{"type":993,"tag":1026,"props":2712,"children":2713},{"class":1028,"line":201},[2714,2718,2722,2726,2730,2735,2739,2744,2748,2753,2757],{"type":993,"tag":1026,"props":2715,"children":2716},{"style":1041},[2717],{"type":998,"value":1131},{"type":993,"tag":1026,"props":2719,"children":2720},{"style":1041},[2721],{"type":998,"value":1136},{"type":993,"tag":1026,"props":2723,"children":2724},{"style":1139},[2725],{"type":998,"value":1142},{"type":993,"tag":1026,"props":2727,"children":2728},{"style":1067},[2729],{"type":998,"value":2254},{"type":993,"tag":1026,"props":2731,"children":2732},{"style":1053},[2733],{"type":998,"value":2734},"parent_work",{"type":993,"tag":1026,"props":2736,"children":2737},{"style":1067},[2738],{"type":998,"value":1157},{"type":993,"tag":1026,"props":2740,"children":2741},{"style":1139},[2742],{"type":998,"value":2743}," and managing ",{"type":993,"tag":1026,"props":2745,"children":2746},{"style":1067},[2747],{"type":998,"value":1147},{"type":993,"tag":1026,"props":2749,"children":2750},{"style":1053},[2751],{"type":998,"value":2752},".department",{"type":993,"tag":1026,"props":2754,"children":2755},{"style":1067},[2756],{"type":998,"value":1157},{"type":993,"tag":1026,"props":2758,"children":2759},{"style":1139},[2760],{"type":998,"value":2761},"\"\n",{"type":993,"tag":1026,"props":2763,"children":2764},{"class":1028,"line":210},[2765],{"type":993,"tag":1026,"props":2766,"children":2767},{"style":1053},[2768],{"type":998,"value":1106},{"type":993,"tag":1026,"props":2770,"children":2771},{"class":1028,"line":219},[2772,2776,2781],{"type":993,"tag":1026,"props":2773,"children":2774},{"style":1041},[2775],{"type":998,"value":1064},{"type":993,"tag":1026,"props":2777,"children":2778},{"style":1047},[2779],{"type":998,"value":2780}," hire",{"type":993,"tag":1026,"props":2782,"children":2783},{"style":1053},[2784],{"type":998,"value":2785},"(self, employee):\n",{"type":993,"tag":1026,"props":2787,"children":2788},{"class":1028,"line":228},[2789,2793,2797,2802],{"type":993,"tag":1026,"props":2790,"children":2791},{"style":1067},[2792],{"type":998,"value":1083},{"type":993,"tag":1026,"props":2794,"children":2795},{"style":1053},[2796],{"type":998,"value":2653},{"type":993,"tag":1026,"props":2798,"children":2799},{"style":1041},[2800],{"type":998,"value":2801},"+=",{"type":993,"tag":1026,"props":2803,"children":2804},{"style":1067},[2805],{"type":998,"value":2806}," 1\n",{"type":993,"tag":1026,"props":2808,"children":2809},{"class":1028,"line":238},[2810,2814,2818,2822,2826,2830,2834,2839,2843,2848,2852,2857,2861,2865,2869],{"type":993,"tag":1026,"props":2811,"children":2812},{"style":1041},[2813],{"type":998,"value":1131},{"type":993,"tag":1026,"props":2815,"children":2816},{"style":1041},[2817],{"type":998,"value":1136},{"type":993,"tag":1026,"props":2819,"children":2820},{"style":1139},[2821],{"type":998,"value":1142},{"type":993,"tag":1026,"props":2823,"children":2824},{"style":1067},[2825],{"type":998,"value":1147},{"type":993,"tag":1026,"props":2827,"children":2828},{"style":1053},[2829],{"type":998,"value":1152},{"type":993,"tag":1026,"props":2831,"children":2832},{"style":1067},[2833],{"type":998,"value":1157},{"type":993,"tag":1026,"props":2835,"children":2836},{"style":1139},[2837],{"type":998,"value":2838}," hired ",{"type":993,"tag":1026,"props":2840,"children":2841},{"style":1067},[2842],{"type":998,"value":2254},{"type":993,"tag":1026,"props":2844,"children":2845},{"style":1053},[2846],{"type":998,"value":2847},"employee",{"type":993,"tag":1026,"props":2849,"children":2850},{"style":1067},[2851],{"type":998,"value":1157},{"type":993,"tag":1026,"props":2853,"children":2854},{"style":1139},[2855],{"type":998,"value":2856}," to ",{"type":993,"tag":1026,"props":2858,"children":2859},{"style":1067},[2860],{"type":998,"value":1147},{"type":993,"tag":1026,"props":2862,"children":2863},{"style":1053},[2864],{"type":998,"value":2752},{"type":993,"tag":1026,"props":2866,"children":2867},{"style":1067},[2868],{"type":998,"value":1157},{"type":993,"tag":1026,"props":2870,"children":2871},{"style":1139},[2872],{"type":998,"value":2761},{"type":993,"tag":1026,"props":2874,"children":2875},{"class":1028,"line":247},[2876],{"type":993,"tag":1026,"props":2877,"children":2878},{"emptyLinePlaceholder":13},[2879],{"type":998,"value":1225},{"type":993,"tag":1026,"props":2881,"children":2882},{"class":1028,"line":256},[2883],{"type":993,"tag":1026,"props":2884,"children":2885},{"style":1032},[2886],{"type":998,"value":2887},"# Using super() functionality\n",{"type":993,"tag":1026,"props":2889,"children":2890},{"class":1028,"line":265},[2891,2896,2900,2905,2910,2914,2919,2923,2928],{"type":993,"tag":1026,"props":2892,"children":2893},{"style":1053},[2894],{"type":998,"value":2895},"manager ",{"type":993,"tag":1026,"props":2897,"children":2898},{"style":1041},[2899],{"type":998,"value":1093},{"type":993,"tag":1026,"props":2901,"children":2902},{"style":1053},[2903],{"type":998,"value":2904}," Manager(",{"type":993,"tag":1026,"props":2906,"children":2907},{"style":1139},[2908],{"type":998,"value":2909},"\"Alice\"",{"type":993,"tag":1026,"props":2911,"children":2912},{"style":1053},[2913],{"type":998,"value":2160},{"type":993,"tag":1026,"props":2915,"children":2916},{"style":1139},[2917],{"type":998,"value":2918},"\"M001\"",{"type":993,"tag":1026,"props":2920,"children":2921},{"style":1053},[2922],{"type":998,"value":2160},{"type":993,"tag":1026,"props":2924,"children":2925},{"style":1139},[2926],{"type":998,"value":2927},"\"Engineering\"",{"type":993,"tag":1026,"props":2929,"children":2930},{"style":1053},[2931],{"type":998,"value":1412},{"type":993,"tag":1026,"props":2933,"children":2934},{"class":1028,"line":274},[2935,2940,2944],{"type":993,"tag":1026,"props":2936,"children":2937},{"style":1053},[2938],{"type":998,"value":2939},"manager.salary ",{"type":993,"tag":1026,"props":2941,"children":2942},{"style":1041},[2943],{"type":998,"value":1093},{"type":993,"tag":1026,"props":2945,"children":2946},{"style":1067},[2947],{"type":998,"value":2948}," 80000\n",{"type":993,"tag":1026,"props":2950,"children":2951},{"class":1028,"line":284},[2952,2956,2961],{"type":993,"tag":1026,"props":2953,"children":2954},{"style":1067},[2955],{"type":998,"value":1420},{"type":993,"tag":1026,"props":2957,"children":2958},{"style":1053},[2959],{"type":998,"value":2960},"(manager.work())        ",{"type":993,"tag":1026,"props":2962,"children":2963},{"style":1032},[2964],{"type":998,"value":2965},"# Extended behavior\n",{"type":993,"tag":1026,"props":2967,"children":2968},{"class":1028,"line":293},[2969,2973,2978],{"type":993,"tag":1026,"props":2970,"children":2971},{"style":1067},[2972],{"type":998,"value":1420},{"type":993,"tag":1026,"props":2974,"children":2975},{"style":1053},[2976],{"type":998,"value":2977},"(manager.get_details()) ",{"type":993,"tag":1026,"props":2979,"children":2980},{"style":1032},[2981],{"type":998,"value":2195},{"type":993,"tag":1026,"props":2983,"children":2984},{"class":1028,"line":302},[2985,2989,2994,2999,3004],{"type":993,"tag":1026,"props":2986,"children":2987},{"style":1067},[2988],{"type":998,"value":1420},{"type":993,"tag":1026,"props":2990,"children":2991},{"style":1053},[2992],{"type":998,"value":2993},"(manager.hire(",{"type":993,"tag":1026,"props":2995,"children":2996},{"style":1139},[2997],{"type":998,"value":2998},"\"Bob\"",{"type":993,"tag":1026,"props":3000,"children":3001},{"style":1053},[3002],{"type":998,"value":3003},"))   ",{"type":993,"tag":1026,"props":3005,"children":3006},{"style":1032},[3007],{"type":998,"value":2212},{"type":993,"tag":1466,"props":3009,"children":3010},{"id":711},[3011],{"type":998,"value":3012},"⚡ Method Overriding",{"type":993,"tag":1001,"props":3014,"children":3015},{},[3016],{"type":998,"value":3017},"Method overriding allows child classes to provide specialized implementations of parent methods. The child class method replaces the parent version, enabling customized behavior while maintaining the same interface.",{"type":993,"tag":1602,"props":3019,"children":3021},{"id":3020},"overriding-parent-methods",[3022],{"type":998,"value":3023},"Overriding Parent Methods",{"type":993,"tag":1001,"props":3025,"children":3026},{},[3027],{"type":998,"value":3028},"When a child class defines a method with the same name as a parent method, the child version takes precedence. This allows specialized behavior while keeping the same method names and calling patterns.",{"type":993,"tag":1012,"props":3030,"children":3031},{},[3032],{"type":993,"tag":1016,"props":3033,"children":3035},{"className":1018,"code":3034,"language":6,"meta":8,"style":8},"class Shape:\n    def __init__(self, color):\n        self.color = color\n    \n    def area(self):\n        return 0  # Default implementation\n    \n    def describe(self):\n        return f\"A {self.color} shape with area {self.area()}\"\n\nclass Rectangle(Shape):\n    def __init__(self, color, width, height):\n        super().__init__(color)\n        self.width = width\n        self.height = height\n    \n    def area(self):  # Override parent method\n        return self.width * self.height\n\nclass Circle(Shape):\n    def __init__(self, color, radius):\n        super().__init__(color)\n        self.radius = radius\n    \n    def area(self):  # Override parent method\n        return 3.14 * self.radius * self.radius\n\n# Each shape calculates area differently\nrect = Rectangle(\"blue\", 5, 3)\ncircle = Circle(\"red\", 4)\n\nprint(rect.describe())   # Uses Rectangle's area method\nprint(circle.describe()) # Uses Circle's area method\n",[3036],{"type":993,"tag":1022,"props":3037,"children":3038},{"__ignoreMap":8},[3039,3055,3071,3092,3099,3115,3132,3139,3155,3206,3213,3238,3254,3274,3295,3316,3323,3342,3372,3379,3403,3419,3438,3459,3466,3485,3523,3530,3538,3582,3616,3623,3640],{"type":993,"tag":1026,"props":3040,"children":3041},{"class":1028,"line":12},[3042,3046,3051],{"type":993,"tag":1026,"props":3043,"children":3044},{"style":1041},[3045],{"type":998,"value":1044},{"type":993,"tag":1026,"props":3047,"children":3048},{"style":1047},[3049],{"type":998,"value":3050}," Shape",{"type":993,"tag":1026,"props":3052,"children":3053},{"style":1053},[3054],{"type":998,"value":1056},{"type":993,"tag":1026,"props":3056,"children":3057},{"class":1028,"line":27},[3058,3062,3066],{"type":993,"tag":1026,"props":3059,"children":3060},{"style":1041},[3061],{"type":998,"value":1064},{"type":993,"tag":1026,"props":3063,"children":3064},{"style":1067},[3065],{"type":998,"value":1070},{"type":993,"tag":1026,"props":3067,"children":3068},{"style":1053},[3069],{"type":998,"value":3070},"(self, color):\n",{"type":993,"tag":1026,"props":3072,"children":3073},{"class":1028,"line":36},[3074,3078,3083,3087],{"type":993,"tag":1026,"props":3075,"children":3076},{"style":1067},[3077],{"type":998,"value":1083},{"type":993,"tag":1026,"props":3079,"children":3080},{"style":1053},[3081],{"type":998,"value":3082},".color ",{"type":993,"tag":1026,"props":3084,"children":3085},{"style":1041},[3086],{"type":998,"value":1093},{"type":993,"tag":1026,"props":3088,"children":3089},{"style":1053},[3090],{"type":998,"value":3091}," color\n",{"type":993,"tag":1026,"props":3093,"children":3094},{"class":1028,"line":45},[3095],{"type":993,"tag":1026,"props":3096,"children":3097},{"style":1053},[3098],{"type":998,"value":1106},{"type":993,"tag":1026,"props":3100,"children":3101},{"class":1028,"line":54},[3102,3106,3111],{"type":993,"tag":1026,"props":3103,"children":3104},{"style":1041},[3105],{"type":998,"value":1064},{"type":993,"tag":1026,"props":3107,"children":3108},{"style":1047},[3109],{"type":998,"value":3110}," area",{"type":993,"tag":1026,"props":3112,"children":3113},{"style":1053},[3114],{"type":998,"value":1123},{"type":993,"tag":1026,"props":3116,"children":3117},{"class":1028,"line":63},[3118,3122,3127],{"type":993,"tag":1026,"props":3119,"children":3120},{"style":1041},[3121],{"type":998,"value":1131},{"type":993,"tag":1026,"props":3123,"children":3124},{"style":1067},[3125],{"type":998,"value":3126}," 0",{"type":993,"tag":1026,"props":3128,"children":3129},{"style":1032},[3130],{"type":998,"value":3131},"  # Default implementation\n",{"type":993,"tag":1026,"props":3133,"children":3134},{"class":1028,"line":72},[3135],{"type":993,"tag":1026,"props":3136,"children":3137},{"style":1053},[3138],{"type":998,"value":1106},{"type":993,"tag":1026,"props":3140,"children":3141},{"class":1028,"line":81},[3142,3146,3151],{"type":993,"tag":1026,"props":3143,"children":3144},{"style":1041},[3145],{"type":998,"value":1064},{"type":993,"tag":1026,"props":3147,"children":3148},{"style":1047},[3149],{"type":998,"value":3150}," describe",{"type":993,"tag":1026,"props":3152,"children":3153},{"style":1053},[3154],{"type":998,"value":1123},{"type":993,"tag":1026,"props":3156,"children":3157},{"class":1028,"line":91},[3158,3162,3166,3171,3175,3180,3184,3189,3193,3198,3202],{"type":993,"tag":1026,"props":3159,"children":3160},{"style":1041},[3161],{"type":998,"value":1131},{"type":993,"tag":1026,"props":3163,"children":3164},{"style":1041},[3165],{"type":998,"value":1136},{"type":993,"tag":1026,"props":3167,"children":3168},{"style":1139},[3169],{"type":998,"value":3170},"\"A ",{"type":993,"tag":1026,"props":3172,"children":3173},{"style":1067},[3174],{"type":998,"value":1147},{"type":993,"tag":1026,"props":3176,"children":3177},{"style":1053},[3178],{"type":998,"value":3179},".color",{"type":993,"tag":1026,"props":3181,"children":3182},{"style":1067},[3183],{"type":998,"value":1157},{"type":993,"tag":1026,"props":3185,"children":3186},{"style":1139},[3187],{"type":998,"value":3188}," shape with area ",{"type":993,"tag":1026,"props":3190,"children":3191},{"style":1067},[3192],{"type":998,"value":1147},{"type":993,"tag":1026,"props":3194,"children":3195},{"style":1053},[3196],{"type":998,"value":3197},".area()",{"type":993,"tag":1026,"props":3199,"children":3200},{"style":1067},[3201],{"type":998,"value":1157},{"type":993,"tag":1026,"props":3203,"children":3204},{"style":1139},[3205],{"type":998,"value":2761},{"type":993,"tag":1026,"props":3207,"children":3208},{"class":1028,"line":100},[3209],{"type":993,"tag":1026,"props":3210,"children":3211},{"emptyLinePlaceholder":13},[3212],{"type":998,"value":1225},{"type":993,"tag":1026,"props":3214,"children":3215},{"class":1028,"line":109},[3216,3220,3225,3229,3234],{"type":993,"tag":1026,"props":3217,"children":3218},{"style":1041},[3219],{"type":998,"value":1044},{"type":993,"tag":1026,"props":3221,"children":3222},{"style":1047},[3223],{"type":998,"value":3224}," Rectangle",{"type":993,"tag":1026,"props":3226,"children":3227},{"style":1053},[3228],{"type":998,"value":1242},{"type":993,"tag":1026,"props":3230,"children":3231},{"style":1047},[3232],{"type":998,"value":3233},"Shape",{"type":993,"tag":1026,"props":3235,"children":3236},{"style":1053},[3237],{"type":998,"value":2579},{"type":993,"tag":1026,"props":3239,"children":3240},{"class":1028,"line":118},[3241,3245,3249],{"type":993,"tag":1026,"props":3242,"children":3243},{"style":1041},[3244],{"type":998,"value":1064},{"type":993,"tag":1026,"props":3246,"children":3247},{"style":1067},[3248],{"type":998,"value":1070},{"type":993,"tag":1026,"props":3250,"children":3251},{"style":1053},[3252],{"type":998,"value":3253},"(self, color, width, height):\n",{"type":993,"tag":1026,"props":3255,"children":3256},{"class":1028,"line":127},[3257,3261,3265,3269],{"type":993,"tag":1026,"props":3258,"children":3259},{"style":1067},[3260],{"type":998,"value":2000},{"type":993,"tag":1026,"props":3262,"children":3263},{"style":1053},[3264],{"type":998,"value":2005},{"type":993,"tag":1026,"props":3266,"children":3267},{"style":1067},[3268],{"type":998,"value":2010},{"type":993,"tag":1026,"props":3270,"children":3271},{"style":1053},[3272],{"type":998,"value":3273},"(color)\n",{"type":993,"tag":1026,"props":3275,"children":3276},{"class":1028,"line":136},[3277,3281,3286,3290],{"type":993,"tag":1026,"props":3278,"children":3279},{"style":1067},[3280],{"type":998,"value":1083},{"type":993,"tag":1026,"props":3282,"children":3283},{"style":1053},[3284],{"type":998,"value":3285},".width ",{"type":993,"tag":1026,"props":3287,"children":3288},{"style":1041},[3289],{"type":998,"value":1093},{"type":993,"tag":1026,"props":3291,"children":3292},{"style":1053},[3293],{"type":998,"value":3294}," width\n",{"type":993,"tag":1026,"props":3296,"children":3297},{"class":1028,"line":146},[3298,3302,3307,3311],{"type":993,"tag":1026,"props":3299,"children":3300},{"style":1067},[3301],{"type":998,"value":1083},{"type":993,"tag":1026,"props":3303,"children":3304},{"style":1053},[3305],{"type":998,"value":3306},".height ",{"type":993,"tag":1026,"props":3308,"children":3309},{"style":1041},[3310],{"type":998,"value":1093},{"type":993,"tag":1026,"props":3312,"children":3313},{"style":1053},[3314],{"type":998,"value":3315}," height\n",{"type":993,"tag":1026,"props":3317,"children":3318},{"class":1028,"line":155},[3319],{"type":993,"tag":1026,"props":3320,"children":3321},{"style":1053},[3322],{"type":998,"value":1106},{"type":993,"tag":1026,"props":3324,"children":3325},{"class":1028,"line":164},[3326,3330,3334,3338],{"type":993,"tag":1026,"props":3327,"children":3328},{"style":1041},[3329],{"type":998,"value":1064},{"type":993,"tag":1026,"props":3331,"children":3332},{"style":1047},[3333],{"type":998,"value":3110},{"type":993,"tag":1026,"props":3335,"children":3336},{"style":1053},[3337],{"type":998,"value":1273},{"type":993,"tag":1026,"props":3339,"children":3340},{"style":1032},[3341],{"type":998,"value":1278},{"type":993,"tag":1026,"props":3343,"children":3344},{"class":1028,"line":173},[3345,3349,3354,3358,3363,3367],{"type":993,"tag":1026,"props":3346,"children":3347},{"style":1041},[3348],{"type":998,"value":1131},{"type":993,"tag":1026,"props":3350,"children":3351},{"style":1067},[3352],{"type":998,"value":3353}," self",{"type":993,"tag":1026,"props":3355,"children":3356},{"style":1053},[3357],{"type":998,"value":3285},{"type":993,"tag":1026,"props":3359,"children":3360},{"style":1041},[3361],{"type":998,"value":3362},"*",{"type":993,"tag":1026,"props":3364,"children":3365},{"style":1067},[3366],{"type":998,"value":3353},{"type":993,"tag":1026,"props":3368,"children":3369},{"style":1053},[3370],{"type":998,"value":3371},".height\n",{"type":993,"tag":1026,"props":3373,"children":3374},{"class":1028,"line":182},[3375],{"type":993,"tag":1026,"props":3376,"children":3377},{"emptyLinePlaceholder":13},[3378],{"type":998,"value":1225},{"type":993,"tag":1026,"props":3380,"children":3381},{"class":1028,"line":191},[3382,3386,3391,3395,3399],{"type":993,"tag":1026,"props":3383,"children":3384},{"style":1041},[3385],{"type":998,"value":1044},{"type":993,"tag":1026,"props":3387,"children":3388},{"style":1047},[3389],{"type":998,"value":3390}," Circle",{"type":993,"tag":1026,"props":3392,"children":3393},{"style":1053},[3394],{"type":998,"value":1242},{"type":993,"tag":1026,"props":3396,"children":3397},{"style":1047},[3398],{"type":998,"value":3233},{"type":993,"tag":1026,"props":3400,"children":3401},{"style":1053},[3402],{"type":998,"value":2579},{"type":993,"tag":1026,"props":3404,"children":3405},{"class":1028,"line":201},[3406,3410,3414],{"type":993,"tag":1026,"props":3407,"children":3408},{"style":1041},[3409],{"type":998,"value":1064},{"type":993,"tag":1026,"props":3411,"children":3412},{"style":1067},[3413],{"type":998,"value":1070},{"type":993,"tag":1026,"props":3415,"children":3416},{"style":1053},[3417],{"type":998,"value":3418},"(self, color, radius):\n",{"type":993,"tag":1026,"props":3420,"children":3421},{"class":1028,"line":210},[3422,3426,3430,3434],{"type":993,"tag":1026,"props":3423,"children":3424},{"style":1067},[3425],{"type":998,"value":2000},{"type":993,"tag":1026,"props":3427,"children":3428},{"style":1053},[3429],{"type":998,"value":2005},{"type":993,"tag":1026,"props":3431,"children":3432},{"style":1067},[3433],{"type":998,"value":2010},{"type":993,"tag":1026,"props":3435,"children":3436},{"style":1053},[3437],{"type":998,"value":3273},{"type":993,"tag":1026,"props":3439,"children":3440},{"class":1028,"line":219},[3441,3445,3450,3454],{"type":993,"tag":1026,"props":3442,"children":3443},{"style":1067},[3444],{"type":998,"value":1083},{"type":993,"tag":1026,"props":3446,"children":3447},{"style":1053},[3448],{"type":998,"value":3449},".radius ",{"type":993,"tag":1026,"props":3451,"children":3452},{"style":1041},[3453],{"type":998,"value":1093},{"type":993,"tag":1026,"props":3455,"children":3456},{"style":1053},[3457],{"type":998,"value":3458}," radius\n",{"type":993,"tag":1026,"props":3460,"children":3461},{"class":1028,"line":228},[3462],{"type":993,"tag":1026,"props":3463,"children":3464},{"style":1053},[3465],{"type":998,"value":1106},{"type":993,"tag":1026,"props":3467,"children":3468},{"class":1028,"line":238},[3469,3473,3477,3481],{"type":993,"tag":1026,"props":3470,"children":3471},{"style":1041},[3472],{"type":998,"value":1064},{"type":993,"tag":1026,"props":3474,"children":3475},{"style":1047},[3476],{"type":998,"value":3110},{"type":993,"tag":1026,"props":3478,"children":3479},{"style":1053},[3480],{"type":998,"value":1273},{"type":993,"tag":1026,"props":3482,"children":3483},{"style":1032},[3484],{"type":998,"value":1278},{"type":993,"tag":1026,"props":3486,"children":3487},{"class":1028,"line":247},[3488,3492,3497,3502,3506,3510,3514,3518],{"type":993,"tag":1026,"props":3489,"children":3490},{"style":1041},[3491],{"type":998,"value":1131},{"type":993,"tag":1026,"props":3493,"children":3494},{"style":1067},[3495],{"type":998,"value":3496}," 3.14",{"type":993,"tag":1026,"props":3498,"children":3499},{"style":1041},[3500],{"type":998,"value":3501}," *",{"type":993,"tag":1026,"props":3503,"children":3504},{"style":1067},[3505],{"type":998,"value":3353},{"type":993,"tag":1026,"props":3507,"children":3508},{"style":1053},[3509],{"type":998,"value":3449},{"type":993,"tag":1026,"props":3511,"children":3512},{"style":1041},[3513],{"type":998,"value":3362},{"type":993,"tag":1026,"props":3515,"children":3516},{"style":1067},[3517],{"type":998,"value":3353},{"type":993,"tag":1026,"props":3519,"children":3520},{"style":1053},[3521],{"type":998,"value":3522},".radius\n",{"type":993,"tag":1026,"props":3524,"children":3525},{"class":1028,"line":256},[3526],{"type":993,"tag":1026,"props":3527,"children":3528},{"emptyLinePlaceholder":13},[3529],{"type":998,"value":1225},{"type":993,"tag":1026,"props":3531,"children":3532},{"class":1028,"line":265},[3533],{"type":993,"tag":1026,"props":3534,"children":3535},{"style":1032},[3536],{"type":998,"value":3537},"# Each shape calculates area differently\n",{"type":993,"tag":1026,"props":3539,"children":3540},{"class":1028,"line":274},[3541,3546,3550,3555,3560,3564,3569,3573,3578],{"type":993,"tag":1026,"props":3542,"children":3543},{"style":1053},[3544],{"type":998,"value":3545},"rect ",{"type":993,"tag":1026,"props":3547,"children":3548},{"style":1041},[3549],{"type":998,"value":1093},{"type":993,"tag":1026,"props":3551,"children":3552},{"style":1053},[3553],{"type":998,"value":3554}," Rectangle(",{"type":993,"tag":1026,"props":3556,"children":3557},{"style":1139},[3558],{"type":998,"value":3559},"\"blue\"",{"type":993,"tag":1026,"props":3561,"children":3562},{"style":1053},[3563],{"type":998,"value":2160},{"type":993,"tag":1026,"props":3565,"children":3566},{"style":1067},[3567],{"type":998,"value":3568},"5",{"type":993,"tag":1026,"props":3570,"children":3571},{"style":1053},[3572],{"type":998,"value":2160},{"type":993,"tag":1026,"props":3574,"children":3575},{"style":1067},[3576],{"type":998,"value":3577},"3",{"type":993,"tag":1026,"props":3579,"children":3580},{"style":1053},[3581],{"type":998,"value":1412},{"type":993,"tag":1026,"props":3583,"children":3584},{"class":1028,"line":284},[3585,3590,3594,3599,3604,3608,3612],{"type":993,"tag":1026,"props":3586,"children":3587},{"style":1053},[3588],{"type":998,"value":3589},"circle ",{"type":993,"tag":1026,"props":3591,"children":3592},{"style":1041},[3593],{"type":998,"value":1093},{"type":993,"tag":1026,"props":3595,"children":3596},{"style":1053},[3597],{"type":998,"value":3598}," Circle(",{"type":993,"tag":1026,"props":3600,"children":3601},{"style":1139},[3602],{"type":998,"value":3603},"\"red\"",{"type":993,"tag":1026,"props":3605,"children":3606},{"style":1053},[3607],{"type":998,"value":2160},{"type":993,"tag":1026,"props":3609,"children":3610},{"style":1067},[3611],{"type":998,"value":2174},{"type":993,"tag":1026,"props":3613,"children":3614},{"style":1053},[3615],{"type":998,"value":1412},{"type":993,"tag":1026,"props":3617,"children":3618},{"class":1028,"line":293},[3619],{"type":993,"tag":1026,"props":3620,"children":3621},{"emptyLinePlaceholder":13},[3622],{"type":998,"value":1225},{"type":993,"tag":1026,"props":3624,"children":3625},{"class":1028,"line":302},[3626,3630,3635],{"type":993,"tag":1026,"props":3627,"children":3628},{"style":1067},[3629],{"type":998,"value":1420},{"type":993,"tag":1026,"props":3631,"children":3632},{"style":1053},[3633],{"type":998,"value":3634},"(rect.describe())   ",{"type":993,"tag":1026,"props":3636,"children":3637},{"style":1032},[3638],{"type":998,"value":3639},"# Uses Rectangle's area method\n",{"type":993,"tag":1026,"props":3641,"children":3642},{"class":1028,"line":311},[3643,3647,3652],{"type":993,"tag":1026,"props":3644,"children":3645},{"style":1067},[3646],{"type":998,"value":1420},{"type":993,"tag":1026,"props":3648,"children":3649},{"style":1053},[3650],{"type":998,"value":3651},"(circle.describe()) ",{"type":993,"tag":1026,"props":3653,"children":3654},{"style":1032},[3655],{"type":998,"value":3656},"# Uses Circle's area method\n",{"type":993,"tag":1602,"props":3658,"children":3660},{"id":3659},"extending-parent-methods",[3661],{"type":998,"value":3662},"Extending Parent Methods",{"type":993,"tag":1001,"props":3664,"children":3665},{},[3666,3668,3673],{"type":998,"value":3667},"Sometimes you want to add to parent functionality rather than replace it completely. Using ",{"type":993,"tag":1022,"props":3669,"children":3671},{"className":3670},[],[3672],{"type":998,"value":2294},{"type":998,"value":3674}," allows you to call the parent method and then add additional behavior.",{"type":993,"tag":1012,"props":3676,"children":3677},{},[3678],{"type":993,"tag":1016,"props":3679,"children":3681},{"className":1018,"code":3680,"language":6,"meta":8,"style":8},"class BankAccount:\n    def __init__(self, owner, balance=0):\n        self.owner = owner\n        self.balance = balance\n        self.transactions = []\n    \n    def deposit(self, amount):\n        self.balance += amount\n        self.transactions.append(f\"Deposited ${amount}\")\n        return f\"Deposited ${amount}. Balance: ${self.balance}\"\n\nclass SavingsAccount(BankAccount):\n    def __init__(self, owner, balance=0, interest_rate=0.02):\n        super().__init__(owner, balance)\n        self.interest_rate = interest_rate\n    \n    def deposit(self, amount):\n        # Extend parent functionality\n        result = super().deposit(amount)  # Call parent method\n        if amount >= 1000:  # Add bonus for large deposits\n            bonus = amount * 0.01\n            self.balance += bonus\n            self.transactions.append(f\"Bonus: ${bonus}\")\n            result += f\" + ${bonus} bonus!\"\n        return result\n    \n    def add_interest(self):\n        interest = self.balance * self.interest_rate\n        self.balance += interest\n        self.transactions.append(f\"Interest: ${interest}\")\n        return f\"Added ${interest} interest\"\n\n# Extended functionality in action\nsavings = SavingsAccount(\"Alice\", 500, 0.03)\nprint(savings.deposit(1500))  # Gets bonus\nprint(savings.add_interest()) # New method\n",[3682],{"type":993,"tag":1022,"props":3683,"children":3684},{"__ignoreMap":8},[3685,3701,3730,3751,3772,3793,3800,3817,3837,3879,3928,3935,3960,4001,4021,4042,4049,4064,4072,4098,4131,4156,4177,4218,4256,4268,4275,4291,4324,4344,4385,4418,4425,4433,4476,4503],{"type":993,"tag":1026,"props":3686,"children":3687},{"class":1028,"line":12},[3688,3692,3697],{"type":993,"tag":1026,"props":3689,"children":3690},{"style":1041},[3691],{"type":998,"value":1044},{"type":993,"tag":1026,"props":3693,"children":3694},{"style":1047},[3695],{"type":998,"value":3696}," BankAccount",{"type":993,"tag":1026,"props":3698,"children":3699},{"style":1053},[3700],{"type":998,"value":1056},{"type":993,"tag":1026,"props":3702,"children":3703},{"class":1028,"line":27},[3704,3708,3712,3717,3721,3726],{"type":993,"tag":1026,"props":3705,"children":3706},{"style":1041},[3707],{"type":998,"value":1064},{"type":993,"tag":1026,"props":3709,"children":3710},{"style":1067},[3711],{"type":998,"value":1070},{"type":993,"tag":1026,"props":3713,"children":3714},{"style":1053},[3715],{"type":998,"value":3716},"(self, owner, balance",{"type":993,"tag":1026,"props":3718,"children":3719},{"style":1041},[3720],{"type":998,"value":1093},{"type":993,"tag":1026,"props":3722,"children":3723},{"style":1067},[3724],{"type":998,"value":3725},"0",{"type":993,"tag":1026,"props":3727,"children":3728},{"style":1053},[3729],{"type":998,"value":2579},{"type":993,"tag":1026,"props":3731,"children":3732},{"class":1028,"line":36},[3733,3737,3742,3746],{"type":993,"tag":1026,"props":3734,"children":3735},{"style":1067},[3736],{"type":998,"value":1083},{"type":993,"tag":1026,"props":3738,"children":3739},{"style":1053},[3740],{"type":998,"value":3741},".owner ",{"type":993,"tag":1026,"props":3743,"children":3744},{"style":1041},[3745],{"type":998,"value":1093},{"type":993,"tag":1026,"props":3747,"children":3748},{"style":1053},[3749],{"type":998,"value":3750}," owner\n",{"type":993,"tag":1026,"props":3752,"children":3753},{"class":1028,"line":45},[3754,3758,3763,3767],{"type":993,"tag":1026,"props":3755,"children":3756},{"style":1067},[3757],{"type":998,"value":1083},{"type":993,"tag":1026,"props":3759,"children":3760},{"style":1053},[3761],{"type":998,"value":3762},".balance ",{"type":993,"tag":1026,"props":3764,"children":3765},{"style":1041},[3766],{"type":998,"value":1093},{"type":993,"tag":1026,"props":3768,"children":3769},{"style":1053},[3770],{"type":998,"value":3771}," balance\n",{"type":993,"tag":1026,"props":3773,"children":3774},{"class":1028,"line":54},[3775,3779,3784,3788],{"type":993,"tag":1026,"props":3776,"children":3777},{"style":1067},[3778],{"type":998,"value":1083},{"type":993,"tag":1026,"props":3780,"children":3781},{"style":1053},[3782],{"type":998,"value":3783},".transactions ",{"type":993,"tag":1026,"props":3785,"children":3786},{"style":1041},[3787],{"type":998,"value":1093},{"type":993,"tag":1026,"props":3789,"children":3790},{"style":1053},[3791],{"type":998,"value":3792}," []\n",{"type":993,"tag":1026,"props":3794,"children":3795},{"class":1028,"line":63},[3796],{"type":993,"tag":1026,"props":3797,"children":3798},{"style":1053},[3799],{"type":998,"value":1106},{"type":993,"tag":1026,"props":3801,"children":3802},{"class":1028,"line":72},[3803,3807,3812],{"type":993,"tag":1026,"props":3804,"children":3805},{"style":1041},[3806],{"type":998,"value":1064},{"type":993,"tag":1026,"props":3808,"children":3809},{"style":1047},[3810],{"type":998,"value":3811}," deposit",{"type":993,"tag":1026,"props":3813,"children":3814},{"style":1053},[3815],{"type":998,"value":3816},"(self, amount):\n",{"type":993,"tag":1026,"props":3818,"children":3819},{"class":1028,"line":81},[3820,3824,3828,3832],{"type":993,"tag":1026,"props":3821,"children":3822},{"style":1067},[3823],{"type":998,"value":1083},{"type":993,"tag":1026,"props":3825,"children":3826},{"style":1053},[3827],{"type":998,"value":3762},{"type":993,"tag":1026,"props":3829,"children":3830},{"style":1041},[3831],{"type":998,"value":2801},{"type":993,"tag":1026,"props":3833,"children":3834},{"style":1053},[3835],{"type":998,"value":3836}," amount\n",{"type":993,"tag":1026,"props":3838,"children":3839},{"class":1028,"line":91},[3840,3844,3849,3853,3858,3862,3867,3871,3875],{"type":993,"tag":1026,"props":3841,"children":3842},{"style":1067},[3843],{"type":998,"value":1083},{"type":993,"tag":1026,"props":3845,"children":3846},{"style":1053},[3847],{"type":998,"value":3848},".transactions.append(",{"type":993,"tag":1026,"props":3850,"children":3851},{"style":1041},[3852],{"type":998,"value":2244},{"type":993,"tag":1026,"props":3854,"children":3855},{"style":1139},[3856],{"type":998,"value":3857},"\"Deposited $",{"type":993,"tag":1026,"props":3859,"children":3860},{"style":1067},[3861],{"type":998,"value":2254},{"type":993,"tag":1026,"props":3863,"children":3864},{"style":1053},[3865],{"type":998,"value":3866},"amount",{"type":993,"tag":1026,"props":3868,"children":3869},{"style":1067},[3870],{"type":998,"value":1157},{"type":993,"tag":1026,"props":3872,"children":3873},{"style":1139},[3874],{"type":998,"value":1142},{"type":993,"tag":1026,"props":3876,"children":3877},{"style":1053},[3878],{"type":998,"value":1412},{"type":993,"tag":1026,"props":3880,"children":3881},{"class":1028,"line":100},[3882,3886,3890,3894,3898,3902,3906,3911,3915,3920,3924],{"type":993,"tag":1026,"props":3883,"children":3884},{"style":1041},[3885],{"type":998,"value":1131},{"type":993,"tag":1026,"props":3887,"children":3888},{"style":1041},[3889],{"type":998,"value":1136},{"type":993,"tag":1026,"props":3891,"children":3892},{"style":1139},[3893],{"type":998,"value":3857},{"type":993,"tag":1026,"props":3895,"children":3896},{"style":1067},[3897],{"type":998,"value":2254},{"type":993,"tag":1026,"props":3899,"children":3900},{"style":1053},[3901],{"type":998,"value":3866},{"type":993,"tag":1026,"props":3903,"children":3904},{"style":1067},[3905],{"type":998,"value":1157},{"type":993,"tag":1026,"props":3907,"children":3908},{"style":1139},[3909],{"type":998,"value":3910},". Balance: $",{"type":993,"tag":1026,"props":3912,"children":3913},{"style":1067},[3914],{"type":998,"value":1147},{"type":993,"tag":1026,"props":3916,"children":3917},{"style":1053},[3918],{"type":998,"value":3919},".balance",{"type":993,"tag":1026,"props":3921,"children":3922},{"style":1067},[3923],{"type":998,"value":1157},{"type":993,"tag":1026,"props":3925,"children":3926},{"style":1139},[3927],{"type":998,"value":2761},{"type":993,"tag":1026,"props":3929,"children":3930},{"class":1028,"line":109},[3931],{"type":993,"tag":1026,"props":3932,"children":3933},{"emptyLinePlaceholder":13},[3934],{"type":998,"value":1225},{"type":993,"tag":1026,"props":3936,"children":3937},{"class":1028,"line":118},[3938,3942,3947,3951,3956],{"type":993,"tag":1026,"props":3939,"children":3940},{"style":1041},[3941],{"type":998,"value":1044},{"type":993,"tag":1026,"props":3943,"children":3944},{"style":1047},[3945],{"type":998,"value":3946}," SavingsAccount",{"type":993,"tag":1026,"props":3948,"children":3949},{"style":1053},[3950],{"type":998,"value":1242},{"type":993,"tag":1026,"props":3952,"children":3953},{"style":1047},[3954],{"type":998,"value":3955},"BankAccount",{"type":993,"tag":1026,"props":3957,"children":3958},{"style":1053},[3959],{"type":998,"value":2579},{"type":993,"tag":1026,"props":3961,"children":3962},{"class":1028,"line":127},[3963,3967,3971,3975,3979,3983,3988,3992,3997],{"type":993,"tag":1026,"props":3964,"children":3965},{"style":1041},[3966],{"type":998,"value":1064},{"type":993,"tag":1026,"props":3968,"children":3969},{"style":1067},[3970],{"type":998,"value":1070},{"type":993,"tag":1026,"props":3972,"children":3973},{"style":1053},[3974],{"type":998,"value":3716},{"type":993,"tag":1026,"props":3976,"children":3977},{"style":1041},[3978],{"type":998,"value":1093},{"type":993,"tag":1026,"props":3980,"children":3981},{"style":1067},[3982],{"type":998,"value":3725},{"type":993,"tag":1026,"props":3984,"children":3985},{"style":1053},[3986],{"type":998,"value":3987},", interest_rate",{"type":993,"tag":1026,"props":3989,"children":3990},{"style":1041},[3991],{"type":998,"value":1093},{"type":993,"tag":1026,"props":3993,"children":3994},{"style":1067},[3995],{"type":998,"value":3996},"0.02",{"type":993,"tag":1026,"props":3998,"children":3999},{"style":1053},[4000],{"type":998,"value":2579},{"type":993,"tag":1026,"props":4002,"children":4003},{"class":1028,"line":136},[4004,4008,4012,4016],{"type":993,"tag":1026,"props":4005,"children":4006},{"style":1067},[4007],{"type":998,"value":2000},{"type":993,"tag":1026,"props":4009,"children":4010},{"style":1053},[4011],{"type":998,"value":2005},{"type":993,"tag":1026,"props":4013,"children":4014},{"style":1067},[4015],{"type":998,"value":2010},{"type":993,"tag":1026,"props":4017,"children":4018},{"style":1053},[4019],{"type":998,"value":4020},"(owner, balance)\n",{"type":993,"tag":1026,"props":4022,"children":4023},{"class":1028,"line":146},[4024,4028,4033,4037],{"type":993,"tag":1026,"props":4025,"children":4026},{"style":1067},[4027],{"type":998,"value":1083},{"type":993,"tag":1026,"props":4029,"children":4030},{"style":1053},[4031],{"type":998,"value":4032},".interest_rate ",{"type":993,"tag":1026,"props":4034,"children":4035},{"style":1041},[4036],{"type":998,"value":1093},{"type":993,"tag":1026,"props":4038,"children":4039},{"style":1053},[4040],{"type":998,"value":4041}," interest_rate\n",{"type":993,"tag":1026,"props":4043,"children":4044},{"class":1028,"line":155},[4045],{"type":993,"tag":1026,"props":4046,"children":4047},{"style":1053},[4048],{"type":998,"value":1106},{"type":993,"tag":1026,"props":4050,"children":4051},{"class":1028,"line":164},[4052,4056,4060],{"type":993,"tag":1026,"props":4053,"children":4054},{"style":1041},[4055],{"type":998,"value":1064},{"type":993,"tag":1026,"props":4057,"children":4058},{"style":1047},[4059],{"type":998,"value":3811},{"type":993,"tag":1026,"props":4061,"children":4062},{"style":1053},[4063],{"type":998,"value":3816},{"type":993,"tag":1026,"props":4065,"children":4066},{"class":1028,"line":173},[4067],{"type":993,"tag":1026,"props":4068,"children":4069},{"style":1032},[4070],{"type":998,"value":4071},"        # Extend parent functionality\n",{"type":993,"tag":1026,"props":4073,"children":4074},{"class":1028,"line":182},[4075,4080,4084,4088,4093],{"type":993,"tag":1026,"props":4076,"children":4077},{"style":1053},[4078],{"type":998,"value":4079},"        result ",{"type":993,"tag":1026,"props":4081,"children":4082},{"style":1041},[4083],{"type":998,"value":1093},{"type":993,"tag":1026,"props":4085,"children":4086},{"style":1067},[4087],{"type":998,"value":2700},{"type":993,"tag":1026,"props":4089,"children":4090},{"style":1053},[4091],{"type":998,"value":4092},"().deposit(amount)  ",{"type":993,"tag":1026,"props":4094,"children":4095},{"style":1032},[4096],{"type":998,"value":4097},"# Call parent method\n",{"type":993,"tag":1026,"props":4099,"children":4100},{"class":1028,"line":191},[4101,4106,4111,4116,4121,4126],{"type":993,"tag":1026,"props":4102,"children":4103},{"style":1041},[4104],{"type":998,"value":4105},"        if",{"type":993,"tag":1026,"props":4107,"children":4108},{"style":1053},[4109],{"type":998,"value":4110}," amount ",{"type":993,"tag":1026,"props":4112,"children":4113},{"style":1041},[4114],{"type":998,"value":4115},">=",{"type":993,"tag":1026,"props":4117,"children":4118},{"style":1067},[4119],{"type":998,"value":4120}," 1000",{"type":993,"tag":1026,"props":4122,"children":4123},{"style":1053},[4124],{"type":998,"value":4125},":  ",{"type":993,"tag":1026,"props":4127,"children":4128},{"style":1032},[4129],{"type":998,"value":4130},"# Add bonus for large deposits\n",{"type":993,"tag":1026,"props":4132,"children":4133},{"class":1028,"line":201},[4134,4139,4143,4147,4151],{"type":993,"tag":1026,"props":4135,"children":4136},{"style":1053},[4137],{"type":998,"value":4138},"            bonus ",{"type":993,"tag":1026,"props":4140,"children":4141},{"style":1041},[4142],{"type":998,"value":1093},{"type":993,"tag":1026,"props":4144,"children":4145},{"style":1053},[4146],{"type":998,"value":4110},{"type":993,"tag":1026,"props":4148,"children":4149},{"style":1041},[4150],{"type":998,"value":3362},{"type":993,"tag":1026,"props":4152,"children":4153},{"style":1067},[4154],{"type":998,"value":4155}," 0.01\n",{"type":993,"tag":1026,"props":4157,"children":4158},{"class":1028,"line":210},[4159,4164,4168,4172],{"type":993,"tag":1026,"props":4160,"children":4161},{"style":1067},[4162],{"type":998,"value":4163},"            self",{"type":993,"tag":1026,"props":4165,"children":4166},{"style":1053},[4167],{"type":998,"value":3762},{"type":993,"tag":1026,"props":4169,"children":4170},{"style":1041},[4171],{"type":998,"value":2801},{"type":993,"tag":1026,"props":4173,"children":4174},{"style":1053},[4175],{"type":998,"value":4176}," bonus\n",{"type":993,"tag":1026,"props":4178,"children":4179},{"class":1028,"line":219},[4180,4184,4188,4192,4197,4201,4206,4210,4214],{"type":993,"tag":1026,"props":4181,"children":4182},{"style":1067},[4183],{"type":998,"value":4163},{"type":993,"tag":1026,"props":4185,"children":4186},{"style":1053},[4187],{"type":998,"value":3848},{"type":993,"tag":1026,"props":4189,"children":4190},{"style":1041},[4191],{"type":998,"value":2244},{"type":993,"tag":1026,"props":4193,"children":4194},{"style":1139},[4195],{"type":998,"value":4196},"\"Bonus: $",{"type":993,"tag":1026,"props":4198,"children":4199},{"style":1067},[4200],{"type":998,"value":2254},{"type":993,"tag":1026,"props":4202,"children":4203},{"style":1053},[4204],{"type":998,"value":4205},"bonus",{"type":993,"tag":1026,"props":4207,"children":4208},{"style":1067},[4209],{"type":998,"value":1157},{"type":993,"tag":1026,"props":4211,"children":4212},{"style":1139},[4213],{"type":998,"value":1142},{"type":993,"tag":1026,"props":4215,"children":4216},{"style":1053},[4217],{"type":998,"value":1412},{"type":993,"tag":1026,"props":4219,"children":4220},{"class":1028,"line":228},[4221,4226,4230,4234,4239,4243,4247,4251],{"type":993,"tag":1026,"props":4222,"children":4223},{"style":1053},[4224],{"type":998,"value":4225},"            result ",{"type":993,"tag":1026,"props":4227,"children":4228},{"style":1041},[4229],{"type":998,"value":2801},{"type":993,"tag":1026,"props":4231,"children":4232},{"style":1041},[4233],{"type":998,"value":1136},{"type":993,"tag":1026,"props":4235,"children":4236},{"style":1139},[4237],{"type":998,"value":4238},"\" + $",{"type":993,"tag":1026,"props":4240,"children":4241},{"style":1067},[4242],{"type":998,"value":2254},{"type":993,"tag":1026,"props":4244,"children":4245},{"style":1053},[4246],{"type":998,"value":4205},{"type":993,"tag":1026,"props":4248,"children":4249},{"style":1067},[4250],{"type":998,"value":1157},{"type":993,"tag":1026,"props":4252,"children":4253},{"style":1139},[4254],{"type":998,"value":4255}," bonus!\"\n",{"type":993,"tag":1026,"props":4257,"children":4258},{"class":1028,"line":238},[4259,4263],{"type":993,"tag":1026,"props":4260,"children":4261},{"style":1041},[4262],{"type":998,"value":1131},{"type":993,"tag":1026,"props":4264,"children":4265},{"style":1053},[4266],{"type":998,"value":4267}," result\n",{"type":993,"tag":1026,"props":4269,"children":4270},{"class":1028,"line":247},[4271],{"type":993,"tag":1026,"props":4272,"children":4273},{"style":1053},[4274],{"type":998,"value":1106},{"type":993,"tag":1026,"props":4276,"children":4277},{"class":1028,"line":256},[4278,4282,4287],{"type":993,"tag":1026,"props":4279,"children":4280},{"style":1041},[4281],{"type":998,"value":1064},{"type":993,"tag":1026,"props":4283,"children":4284},{"style":1047},[4285],{"type":998,"value":4286}," add_interest",{"type":993,"tag":1026,"props":4288,"children":4289},{"style":1053},[4290],{"type":998,"value":1123},{"type":993,"tag":1026,"props":4292,"children":4293},{"class":1028,"line":265},[4294,4299,4303,4307,4311,4315,4319],{"type":993,"tag":1026,"props":4295,"children":4296},{"style":1053},[4297],{"type":998,"value":4298},"        interest ",{"type":993,"tag":1026,"props":4300,"children":4301},{"style":1041},[4302],{"type":998,"value":1093},{"type":993,"tag":1026,"props":4304,"children":4305},{"style":1067},[4306],{"type":998,"value":3353},{"type":993,"tag":1026,"props":4308,"children":4309},{"style":1053},[4310],{"type":998,"value":3762},{"type":993,"tag":1026,"props":4312,"children":4313},{"style":1041},[4314],{"type":998,"value":3362},{"type":993,"tag":1026,"props":4316,"children":4317},{"style":1067},[4318],{"type":998,"value":3353},{"type":993,"tag":1026,"props":4320,"children":4321},{"style":1053},[4322],{"type":998,"value":4323},".interest_rate\n",{"type":993,"tag":1026,"props":4325,"children":4326},{"class":1028,"line":274},[4327,4331,4335,4339],{"type":993,"tag":1026,"props":4328,"children":4329},{"style":1067},[4330],{"type":998,"value":1083},{"type":993,"tag":1026,"props":4332,"children":4333},{"style":1053},[4334],{"type":998,"value":3762},{"type":993,"tag":1026,"props":4336,"children":4337},{"style":1041},[4338],{"type":998,"value":2801},{"type":993,"tag":1026,"props":4340,"children":4341},{"style":1053},[4342],{"type":998,"value":4343}," interest\n",{"type":993,"tag":1026,"props":4345,"children":4346},{"class":1028,"line":284},[4347,4351,4355,4359,4364,4368,4373,4377,4381],{"type":993,"tag":1026,"props":4348,"children":4349},{"style":1067},[4350],{"type":998,"value":1083},{"type":993,"tag":1026,"props":4352,"children":4353},{"style":1053},[4354],{"type":998,"value":3848},{"type":993,"tag":1026,"props":4356,"children":4357},{"style":1041},[4358],{"type":998,"value":2244},{"type":993,"tag":1026,"props":4360,"children":4361},{"style":1139},[4362],{"type":998,"value":4363},"\"Interest: $",{"type":993,"tag":1026,"props":4365,"children":4366},{"style":1067},[4367],{"type":998,"value":2254},{"type":993,"tag":1026,"props":4369,"children":4370},{"style":1053},[4371],{"type":998,"value":4372},"interest",{"type":993,"tag":1026,"props":4374,"children":4375},{"style":1067},[4376],{"type":998,"value":1157},{"type":993,"tag":1026,"props":4378,"children":4379},{"style":1139},[4380],{"type":998,"value":1142},{"type":993,"tag":1026,"props":4382,"children":4383},{"style":1053},[4384],{"type":998,"value":1412},{"type":993,"tag":1026,"props":4386,"children":4387},{"class":1028,"line":293},[4388,4392,4396,4401,4405,4409,4413],{"type":993,"tag":1026,"props":4389,"children":4390},{"style":1041},[4391],{"type":998,"value":1131},{"type":993,"tag":1026,"props":4393,"children":4394},{"style":1041},[4395],{"type":998,"value":1136},{"type":993,"tag":1026,"props":4397,"children":4398},{"style":1139},[4399],{"type":998,"value":4400},"\"Added $",{"type":993,"tag":1026,"props":4402,"children":4403},{"style":1067},[4404],{"type":998,"value":2254},{"type":993,"tag":1026,"props":4406,"children":4407},{"style":1053},[4408],{"type":998,"value":4372},{"type":993,"tag":1026,"props":4410,"children":4411},{"style":1067},[4412],{"type":998,"value":1157},{"type":993,"tag":1026,"props":4414,"children":4415},{"style":1139},[4416],{"type":998,"value":4417}," interest\"\n",{"type":993,"tag":1026,"props":4419,"children":4420},{"class":1028,"line":302},[4421],{"type":993,"tag":1026,"props":4422,"children":4423},{"emptyLinePlaceholder":13},[4424],{"type":998,"value":1225},{"type":993,"tag":1026,"props":4426,"children":4427},{"class":1028,"line":311},[4428],{"type":993,"tag":1026,"props":4429,"children":4430},{"style":1032},[4431],{"type":998,"value":4432},"# Extended functionality in action\n",{"type":993,"tag":1026,"props":4434,"children":4435},{"class":1028,"line":320},[4436,4441,4445,4450,4454,4458,4463,4467,4472],{"type":993,"tag":1026,"props":4437,"children":4438},{"style":1053},[4439],{"type":998,"value":4440},"savings ",{"type":993,"tag":1026,"props":4442,"children":4443},{"style":1041},[4444],{"type":998,"value":1093},{"type":993,"tag":1026,"props":4446,"children":4447},{"style":1053},[4448],{"type":998,"value":4449}," SavingsAccount(",{"type":993,"tag":1026,"props":4451,"children":4452},{"style":1139},[4453],{"type":998,"value":2909},{"type":993,"tag":1026,"props":4455,"children":4456},{"style":1053},[4457],{"type":998,"value":2160},{"type":993,"tag":1026,"props":4459,"children":4460},{"style":1067},[4461],{"type":998,"value":4462},"500",{"type":993,"tag":1026,"props":4464,"children":4465},{"style":1053},[4466],{"type":998,"value":2160},{"type":993,"tag":1026,"props":4468,"children":4469},{"style":1067},[4470],{"type":998,"value":4471},"0.03",{"type":993,"tag":1026,"props":4473,"children":4474},{"style":1053},[4475],{"type":998,"value":1412},{"type":993,"tag":1026,"props":4477,"children":4478},{"class":1028,"line":329},[4479,4483,4488,4493,4498],{"type":993,"tag":1026,"props":4480,"children":4481},{"style":1067},[4482],{"type":998,"value":1420},{"type":993,"tag":1026,"props":4484,"children":4485},{"style":1053},[4486],{"type":998,"value":4487},"(savings.deposit(",{"type":993,"tag":1026,"props":4489,"children":4490},{"style":1067},[4491],{"type":998,"value":4492},"1500",{"type":993,"tag":1026,"props":4494,"children":4495},{"style":1053},[4496],{"type":998,"value":4497},"))  ",{"type":993,"tag":1026,"props":4499,"children":4500},{"style":1032},[4501],{"type":998,"value":4502},"# Gets bonus\n",{"type":993,"tag":1026,"props":4504,"children":4505},{"class":1028,"line":338},[4506,4510,4515],{"type":993,"tag":1026,"props":4507,"children":4508},{"style":1067},[4509],{"type":998,"value":1420},{"type":993,"tag":1026,"props":4511,"children":4512},{"style":1053},[4513],{"type":998,"value":4514},"(savings.add_interest()) ",{"type":993,"tag":1026,"props":4516,"children":4517},{"style":1032},[4518],{"type":998,"value":2212},{"type":993,"tag":1466,"props":4520,"children":4522},{"id":4521},"multiple-inheritance",[4523],{"type":998,"value":4524},"🚀 Multiple Inheritance",{"type":993,"tag":1001,"props":4526,"children":4527},{},[4528],{"type":998,"value":4529},"Python supports multiple inheritance, where a class can inherit from multiple parent classes. This powerful feature allows combining functionality from different sources but requires careful design to avoid conflicts.",{"type":993,"tag":1478,"props":4531,"children":4535},{"emoji":4532,"title":4533,"type":4534},"⚠️","Multiple Inheritance Guidelines","warning",[4536,4544,4562,4570,4593,4601],{"type":993,"tag":1001,"props":4537,"children":4538},{},[4539],{"type":993,"tag":1488,"props":4540,"children":4541},{},[4542],{"type":998,"value":4543},"When to Use:",{"type":993,"tag":1494,"props":4545,"children":4546},{},[4547,4552,4557],{"type":993,"tag":1498,"props":4548,"children":4549},{},[4550],{"type":998,"value":4551},"Combining distinct, complementary functionality",{"type":993,"tag":1498,"props":4553,"children":4554},{},[4555],{"type":998,"value":4556},"Creating mixins for shared behaviors",{"type":993,"tag":1498,"props":4558,"children":4559},{},[4560],{"type":998,"value":4561},"Implementing interface-like patterns",{"type":993,"tag":1001,"props":4563,"children":4564},{},[4565],{"type":993,"tag":1488,"props":4566,"children":4567},{},[4568],{"type":998,"value":4569},"Best Practices:",{"type":993,"tag":1494,"props":4571,"children":4572},{},[4573,4578,4583,4588],{"type":993,"tag":1498,"props":4574,"children":4575},{},[4576],{"type":998,"value":4577},"Keep inheritance hierarchies simple when possible",{"type":993,"tag":1498,"props":4579,"children":4580},{},[4581],{"type":998,"value":4582},"Use composition as an alternative to complex inheritance",{"type":993,"tag":1498,"props":4584,"children":4585},{},[4586],{"type":998,"value":4587},"Be aware of method resolution order (MRO)",{"type":993,"tag":1498,"props":4589,"children":4590},{},[4591],{"type":998,"value":4592},"Document inheritance relationships clearly",{"type":993,"tag":1001,"props":4594,"children":4595},{},[4596],{"type":993,"tag":1488,"props":4597,"children":4598},{},[4599],{"type":998,"value":4600},"Common Patterns:",{"type":993,"tag":1494,"props":4602,"children":4603},{},[4604,4609,4614],{"type":993,"tag":1498,"props":4605,"children":4606},{},[4607],{"type":998,"value":4608},"Mixin classes for shared behaviors",{"type":993,"tag":1498,"props":4610,"children":4611},{},[4612],{"type":998,"value":4613},"Interface-like classes for consistent APIs",{"type":993,"tag":1498,"props":4615,"children":4616},{},[4617],{"type":998,"value":4618},"Utility classes for common functionality",{"type":993,"tag":1602,"props":4620,"children":4622},{"id":4621},"combining-multiple-parents",[4623],{"type":998,"value":4624},"Combining Multiple Parents",{"type":993,"tag":1001,"props":4626,"children":4627},{},[4628],{"type":998,"value":4629},"Multiple inheritance allows a class to inherit from several parent classes, gaining functionality from all of them.",{"type":993,"tag":1012,"props":4631,"children":4632},{},[4633],{"type":993,"tag":1016,"props":4634,"children":4636},{"className":1018,"code":4635,"language":6,"meta":8,"style":8},"class Flyable:\n    def fly(self):\n        return f\"{self.name} is flying\"\n    \n    def land(self):\n        return f\"{self.name} has landed\"\n\nclass Swimmable:\n    def swim(self):\n        return f\"{self.name} is swimming\"\n    \n    def dive(self):\n        return f\"{self.name} is diving\"\n\nclass Duck(Flyable, Swimmable):  # Multiple inheritance\n    def __init__(self, name):\n        self.name = name\n    \n    def quack(self):\n        return f\"{self.name} says quack!\"\n\n# Duck can fly and swim\ndonald = Duck(\"Donald\")\nprint(donald.quack())  # Own method\nprint(donald.fly())    # From Flyable\nprint(donald.swim())   # From Swimmable\nprint(donald.land())   # From Flyable\nprint(donald.dive())   # From Swimmable\n",[4637],{"type":993,"tag":1022,"props":4638,"children":4639},{"__ignoreMap":8},[4640,4656,4672,4704,4711,4727,4759,4766,4782,4798,4830,4837,4853,4885,4892,4931,4946,4965,4972,4988,5020,5027,5035,5061,5078,5095,5112,5128],{"type":993,"tag":1026,"props":4641,"children":4642},{"class":1028,"line":12},[4643,4647,4652],{"type":993,"tag":1026,"props":4644,"children":4645},{"style":1041},[4646],{"type":998,"value":1044},{"type":993,"tag":1026,"props":4648,"children":4649},{"style":1047},[4650],{"type":998,"value":4651}," Flyable",{"type":993,"tag":1026,"props":4653,"children":4654},{"style":1053},[4655],{"type":998,"value":1056},{"type":993,"tag":1026,"props":4657,"children":4658},{"class":1028,"line":27},[4659,4663,4668],{"type":993,"tag":1026,"props":4660,"children":4661},{"style":1041},[4662],{"type":998,"value":1064},{"type":993,"tag":1026,"props":4664,"children":4665},{"style":1047},[4666],{"type":998,"value":4667}," fly",{"type":993,"tag":1026,"props":4669,"children":4670},{"style":1053},[4671],{"type":998,"value":1123},{"type":993,"tag":1026,"props":4673,"children":4674},{"class":1028,"line":36},[4675,4679,4683,4687,4691,4695,4699],{"type":993,"tag":1026,"props":4676,"children":4677},{"style":1041},[4678],{"type":998,"value":1131},{"type":993,"tag":1026,"props":4680,"children":4681},{"style":1041},[4682],{"type":998,"value":1136},{"type":993,"tag":1026,"props":4684,"children":4685},{"style":1139},[4686],{"type":998,"value":1142},{"type":993,"tag":1026,"props":4688,"children":4689},{"style":1067},[4690],{"type":998,"value":1147},{"type":993,"tag":1026,"props":4692,"children":4693},{"style":1053},[4694],{"type":998,"value":1152},{"type":993,"tag":1026,"props":4696,"children":4697},{"style":1067},[4698],{"type":998,"value":1157},{"type":993,"tag":1026,"props":4700,"children":4701},{"style":1139},[4702],{"type":998,"value":4703}," is flying\"\n",{"type":993,"tag":1026,"props":4705,"children":4706},{"class":1028,"line":45},[4707],{"type":993,"tag":1026,"props":4708,"children":4709},{"style":1053},[4710],{"type":998,"value":1106},{"type":993,"tag":1026,"props":4712,"children":4713},{"class":1028,"line":54},[4714,4718,4723],{"type":993,"tag":1026,"props":4715,"children":4716},{"style":1041},[4717],{"type":998,"value":1064},{"type":993,"tag":1026,"props":4719,"children":4720},{"style":1047},[4721],{"type":998,"value":4722}," land",{"type":993,"tag":1026,"props":4724,"children":4725},{"style":1053},[4726],{"type":998,"value":1123},{"type":993,"tag":1026,"props":4728,"children":4729},{"class":1028,"line":63},[4730,4734,4738,4742,4746,4750,4754],{"type":993,"tag":1026,"props":4731,"children":4732},{"style":1041},[4733],{"type":998,"value":1131},{"type":993,"tag":1026,"props":4735,"children":4736},{"style":1041},[4737],{"type":998,"value":1136},{"type":993,"tag":1026,"props":4739,"children":4740},{"style":1139},[4741],{"type":998,"value":1142},{"type":993,"tag":1026,"props":4743,"children":4744},{"style":1067},[4745],{"type":998,"value":1147},{"type":993,"tag":1026,"props":4747,"children":4748},{"style":1053},[4749],{"type":998,"value":1152},{"type":993,"tag":1026,"props":4751,"children":4752},{"style":1067},[4753],{"type":998,"value":1157},{"type":993,"tag":1026,"props":4755,"children":4756},{"style":1139},[4757],{"type":998,"value":4758}," has landed\"\n",{"type":993,"tag":1026,"props":4760,"children":4761},{"class":1028,"line":72},[4762],{"type":993,"tag":1026,"props":4763,"children":4764},{"emptyLinePlaceholder":13},[4765],{"type":998,"value":1225},{"type":993,"tag":1026,"props":4767,"children":4768},{"class":1028,"line":81},[4769,4773,4778],{"type":993,"tag":1026,"props":4770,"children":4771},{"style":1041},[4772],{"type":998,"value":1044},{"type":993,"tag":1026,"props":4774,"children":4775},{"style":1047},[4776],{"type":998,"value":4777}," Swimmable",{"type":993,"tag":1026,"props":4779,"children":4780},{"style":1053},[4781],{"type":998,"value":1056},{"type":993,"tag":1026,"props":4783,"children":4784},{"class":1028,"line":91},[4785,4789,4794],{"type":993,"tag":1026,"props":4786,"children":4787},{"style":1041},[4788],{"type":998,"value":1064},{"type":993,"tag":1026,"props":4790,"children":4791},{"style":1047},[4792],{"type":998,"value":4793}," swim",{"type":993,"tag":1026,"props":4795,"children":4796},{"style":1053},[4797],{"type":998,"value":1123},{"type":993,"tag":1026,"props":4799,"children":4800},{"class":1028,"line":100},[4801,4805,4809,4813,4817,4821,4825],{"type":993,"tag":1026,"props":4802,"children":4803},{"style":1041},[4804],{"type":998,"value":1131},{"type":993,"tag":1026,"props":4806,"children":4807},{"style":1041},[4808],{"type":998,"value":1136},{"type":993,"tag":1026,"props":4810,"children":4811},{"style":1139},[4812],{"type":998,"value":1142},{"type":993,"tag":1026,"props":4814,"children":4815},{"style":1067},[4816],{"type":998,"value":1147},{"type":993,"tag":1026,"props":4818,"children":4819},{"style":1053},[4820],{"type":998,"value":1152},{"type":993,"tag":1026,"props":4822,"children":4823},{"style":1067},[4824],{"type":998,"value":1157},{"type":993,"tag":1026,"props":4826,"children":4827},{"style":1139},[4828],{"type":998,"value":4829}," is swimming\"\n",{"type":993,"tag":1026,"props":4831,"children":4832},{"class":1028,"line":109},[4833],{"type":993,"tag":1026,"props":4834,"children":4835},{"style":1053},[4836],{"type":998,"value":1106},{"type":993,"tag":1026,"props":4838,"children":4839},{"class":1028,"line":118},[4840,4844,4849],{"type":993,"tag":1026,"props":4841,"children":4842},{"style":1041},[4843],{"type":998,"value":1064},{"type":993,"tag":1026,"props":4845,"children":4846},{"style":1047},[4847],{"type":998,"value":4848}," dive",{"type":993,"tag":1026,"props":4850,"children":4851},{"style":1053},[4852],{"type":998,"value":1123},{"type":993,"tag":1026,"props":4854,"children":4855},{"class":1028,"line":127},[4856,4860,4864,4868,4872,4876,4880],{"type":993,"tag":1026,"props":4857,"children":4858},{"style":1041},[4859],{"type":998,"value":1131},{"type":993,"tag":1026,"props":4861,"children":4862},{"style":1041},[4863],{"type":998,"value":1136},{"type":993,"tag":1026,"props":4865,"children":4866},{"style":1139},[4867],{"type":998,"value":1142},{"type":993,"tag":1026,"props":4869,"children":4870},{"style":1067},[4871],{"type":998,"value":1147},{"type":993,"tag":1026,"props":4873,"children":4874},{"style":1053},[4875],{"type":998,"value":1152},{"type":993,"tag":1026,"props":4877,"children":4878},{"style":1067},[4879],{"type":998,"value":1157},{"type":993,"tag":1026,"props":4881,"children":4882},{"style":1139},[4883],{"type":998,"value":4884}," is diving\"\n",{"type":993,"tag":1026,"props":4886,"children":4887},{"class":1028,"line":136},[4888],{"type":993,"tag":1026,"props":4889,"children":4890},{"emptyLinePlaceholder":13},[4891],{"type":998,"value":1225},{"type":993,"tag":1026,"props":4893,"children":4894},{"class":1028,"line":146},[4895,4899,4904,4908,4913,4917,4922,4926],{"type":993,"tag":1026,"props":4896,"children":4897},{"style":1041},[4898],{"type":998,"value":1044},{"type":993,"tag":1026,"props":4900,"children":4901},{"style":1047},[4902],{"type":998,"value":4903}," Duck",{"type":993,"tag":1026,"props":4905,"children":4906},{"style":1053},[4907],{"type":998,"value":1242},{"type":993,"tag":1026,"props":4909,"children":4910},{"style":1047},[4911],{"type":998,"value":4912},"Flyable",{"type":993,"tag":1026,"props":4914,"children":4915},{"style":1053},[4916],{"type":998,"value":2160},{"type":993,"tag":1026,"props":4918,"children":4919},{"style":1047},[4920],{"type":998,"value":4921},"Swimmable",{"type":993,"tag":1026,"props":4923,"children":4924},{"style":1053},[4925],{"type":998,"value":1252},{"type":993,"tag":1026,"props":4927,"children":4928},{"style":1032},[4929],{"type":998,"value":4930},"# Multiple inheritance\n",{"type":993,"tag":1026,"props":4932,"children":4933},{"class":1028,"line":155},[4934,4938,4942],{"type":993,"tag":1026,"props":4935,"children":4936},{"style":1041},[4937],{"type":998,"value":1064},{"type":993,"tag":1026,"props":4939,"children":4940},{"style":1067},[4941],{"type":998,"value":1070},{"type":993,"tag":1026,"props":4943,"children":4944},{"style":1053},[4945],{"type":998,"value":1075},{"type":993,"tag":1026,"props":4947,"children":4948},{"class":1028,"line":164},[4949,4953,4957,4961],{"type":993,"tag":1026,"props":4950,"children":4951},{"style":1067},[4952],{"type":998,"value":1083},{"type":993,"tag":1026,"props":4954,"children":4955},{"style":1053},[4956],{"type":998,"value":1088},{"type":993,"tag":1026,"props":4958,"children":4959},{"style":1041},[4960],{"type":998,"value":1093},{"type":993,"tag":1026,"props":4962,"children":4963},{"style":1053},[4964],{"type":998,"value":1098},{"type":993,"tag":1026,"props":4966,"children":4967},{"class":1028,"line":173},[4968],{"type":993,"tag":1026,"props":4969,"children":4970},{"style":1053},[4971],{"type":998,"value":1106},{"type":993,"tag":1026,"props":4973,"children":4974},{"class":1028,"line":182},[4975,4979,4984],{"type":993,"tag":1026,"props":4976,"children":4977},{"style":1041},[4978],{"type":998,"value":1064},{"type":993,"tag":1026,"props":4980,"children":4981},{"style":1047},[4982],{"type":998,"value":4983}," quack",{"type":993,"tag":1026,"props":4985,"children":4986},{"style":1053},[4987],{"type":998,"value":1123},{"type":993,"tag":1026,"props":4989,"children":4990},{"class":1028,"line":191},[4991,4995,4999,5003,5007,5011,5015],{"type":993,"tag":1026,"props":4992,"children":4993},{"style":1041},[4994],{"type":998,"value":1131},{"type":993,"tag":1026,"props":4996,"children":4997},{"style":1041},[4998],{"type":998,"value":1136},{"type":993,"tag":1026,"props":5000,"children":5001},{"style":1139},[5002],{"type":998,"value":1142},{"type":993,"tag":1026,"props":5004,"children":5005},{"style":1067},[5006],{"type":998,"value":1147},{"type":993,"tag":1026,"props":5008,"children":5009},{"style":1053},[5010],{"type":998,"value":1152},{"type":993,"tag":1026,"props":5012,"children":5013},{"style":1067},[5014],{"type":998,"value":1157},{"type":993,"tag":1026,"props":5016,"children":5017},{"style":1139},[5018],{"type":998,"value":5019}," says quack!\"\n",{"type":993,"tag":1026,"props":5021,"children":5022},{"class":1028,"line":201},[5023],{"type":993,"tag":1026,"props":5024,"children":5025},{"emptyLinePlaceholder":13},[5026],{"type":998,"value":1225},{"type":993,"tag":1026,"props":5028,"children":5029},{"class":1028,"line":210},[5030],{"type":993,"tag":1026,"props":5031,"children":5032},{"style":1032},[5033],{"type":998,"value":5034},"# Duck can fly and swim\n",{"type":993,"tag":1026,"props":5036,"children":5037},{"class":1028,"line":219},[5038,5043,5047,5052,5057],{"type":993,"tag":1026,"props":5039,"children":5040},{"style":1053},[5041],{"type":998,"value":5042},"donald ",{"type":993,"tag":1026,"props":5044,"children":5045},{"style":1041},[5046],{"type":998,"value":1093},{"type":993,"tag":1026,"props":5048,"children":5049},{"style":1053},[5050],{"type":998,"value":5051}," Duck(",{"type":993,"tag":1026,"props":5053,"children":5054},{"style":1139},[5055],{"type":998,"value":5056},"\"Donald\"",{"type":993,"tag":1026,"props":5058,"children":5059},{"style":1053},[5060],{"type":998,"value":1412},{"type":993,"tag":1026,"props":5062,"children":5063},{"class":1028,"line":228},[5064,5068,5073],{"type":993,"tag":1026,"props":5065,"children":5066},{"style":1067},[5067],{"type":998,"value":1420},{"type":993,"tag":1026,"props":5069,"children":5070},{"style":1053},[5071],{"type":998,"value":5072},"(donald.quack())  ",{"type":993,"tag":1026,"props":5074,"children":5075},{"style":1032},[5076],{"type":998,"value":5077},"# Own method\n",{"type":993,"tag":1026,"props":5079,"children":5080},{"class":1028,"line":238},[5081,5085,5090],{"type":993,"tag":1026,"props":5082,"children":5083},{"style":1067},[5084],{"type":998,"value":1420},{"type":993,"tag":1026,"props":5086,"children":5087},{"style":1053},[5088],{"type":998,"value":5089},"(donald.fly())    ",{"type":993,"tag":1026,"props":5091,"children":5092},{"style":1032},[5093],{"type":998,"value":5094},"# From Flyable\n",{"type":993,"tag":1026,"props":5096,"children":5097},{"class":1028,"line":247},[5098,5102,5107],{"type":993,"tag":1026,"props":5099,"children":5100},{"style":1067},[5101],{"type":998,"value":1420},{"type":993,"tag":1026,"props":5103,"children":5104},{"style":1053},[5105],{"type":998,"value":5106},"(donald.swim())   ",{"type":993,"tag":1026,"props":5108,"children":5109},{"style":1032},[5110],{"type":998,"value":5111},"# From Swimmable\n",{"type":993,"tag":1026,"props":5113,"children":5114},{"class":1028,"line":256},[5115,5119,5124],{"type":993,"tag":1026,"props":5116,"children":5117},{"style":1067},[5118],{"type":998,"value":1420},{"type":993,"tag":1026,"props":5120,"children":5121},{"style":1053},[5122],{"type":998,"value":5123},"(donald.land())   ",{"type":993,"tag":1026,"props":5125,"children":5126},{"style":1032},[5127],{"type":998,"value":5094},{"type":993,"tag":1026,"props":5129,"children":5130},{"class":1028,"line":265},[5131,5135,5140],{"type":993,"tag":1026,"props":5132,"children":5133},{"style":1067},[5134],{"type":998,"value":1420},{"type":993,"tag":1026,"props":5136,"children":5137},{"style":1053},[5138],{"type":998,"value":5139},"(donald.dive())   ",{"type":993,"tag":1026,"props":5141,"children":5142},{"style":1032},[5143],{"type":998,"value":5111},{"type":993,"tag":1602,"props":5145,"children":5147},{"id":5146},"method-resolution-order-mro",[5148],{"type":998,"value":5149},"Method Resolution Order (MRO)",{"type":993,"tag":1001,"props":5151,"children":5152},{},[5153],{"type":998,"value":5154},"When multiple parent classes have methods with the same name, Python uses Method Resolution Order (MRO) to determine which method to call.",{"type":993,"tag":1012,"props":5156,"children":5157},{},[5158],{"type":993,"tag":1016,"props":5159,"children":5161},{"className":1018,"code":5160,"language":6,"meta":8,"style":8},"class A:\n    def greet(self):\n        return \"Hello from A\"\n\nclass B:\n    def greet(self):\n        return \"Hello from B\"\n\nclass C(A, B):  # Inherits from both A and B\n    pass\n\nclass D(B, A):  # Different order\n    pass\n\n# MRO determines which method is called\nc = C()\nd = D()\n\nprint(c.greet())  # Uses A's method (A comes first)\nprint(d.greet())  # Uses B's method (B comes first)\n\n# Check the method resolution order\nprint(f\"C's MRO: {[cls.__name__ for cls in C.__mro__]}\")\nprint(f\"D's MRO: {[cls.__name__ for cls in D.__mro__]}\")\n",[5162],{"type":993,"tag":1022,"props":5163,"children":5164},{"__ignoreMap":8},[5165,5181,5197,5209,5216,5232,5247,5259,5266,5305,5313,5320,5357,5364,5371,5379,5396,5413,5420,5437,5454,5461,5469,5555],{"type":993,"tag":1026,"props":5166,"children":5167},{"class":1028,"line":12},[5168,5172,5177],{"type":993,"tag":1026,"props":5169,"children":5170},{"style":1041},[5171],{"type":998,"value":1044},{"type":993,"tag":1026,"props":5173,"children":5174},{"style":1047},[5175],{"type":998,"value":5176}," A",{"type":993,"tag":1026,"props":5178,"children":5179},{"style":1053},[5180],{"type":998,"value":1056},{"type":993,"tag":1026,"props":5182,"children":5183},{"class":1028,"line":27},[5184,5188,5193],{"type":993,"tag":1026,"props":5185,"children":5186},{"style":1041},[5187],{"type":998,"value":1064},{"type":993,"tag":1026,"props":5189,"children":5190},{"style":1047},[5191],{"type":998,"value":5192}," greet",{"type":993,"tag":1026,"props":5194,"children":5195},{"style":1053},[5196],{"type":998,"value":1123},{"type":993,"tag":1026,"props":5198,"children":5199},{"class":1028,"line":36},[5200,5204],{"type":993,"tag":1026,"props":5201,"children":5202},{"style":1041},[5203],{"type":998,"value":1131},{"type":993,"tag":1026,"props":5205,"children":5206},{"style":1139},[5207],{"type":998,"value":5208}," \"Hello from A\"\n",{"type":993,"tag":1026,"props":5210,"children":5211},{"class":1028,"line":45},[5212],{"type":993,"tag":1026,"props":5213,"children":5214},{"emptyLinePlaceholder":13},[5215],{"type":998,"value":1225},{"type":993,"tag":1026,"props":5217,"children":5218},{"class":1028,"line":54},[5219,5223,5228],{"type":993,"tag":1026,"props":5220,"children":5221},{"style":1041},[5222],{"type":998,"value":1044},{"type":993,"tag":1026,"props":5224,"children":5225},{"style":1047},[5226],{"type":998,"value":5227}," B",{"type":993,"tag":1026,"props":5229,"children":5230},{"style":1053},[5231],{"type":998,"value":1056},{"type":993,"tag":1026,"props":5233,"children":5234},{"class":1028,"line":63},[5235,5239,5243],{"type":993,"tag":1026,"props":5236,"children":5237},{"style":1041},[5238],{"type":998,"value":1064},{"type":993,"tag":1026,"props":5240,"children":5241},{"style":1047},[5242],{"type":998,"value":5192},{"type":993,"tag":1026,"props":5244,"children":5245},{"style":1053},[5246],{"type":998,"value":1123},{"type":993,"tag":1026,"props":5248,"children":5249},{"class":1028,"line":72},[5250,5254],{"type":993,"tag":1026,"props":5251,"children":5252},{"style":1041},[5253],{"type":998,"value":1131},{"type":993,"tag":1026,"props":5255,"children":5256},{"style":1139},[5257],{"type":998,"value":5258}," \"Hello from B\"\n",{"type":993,"tag":1026,"props":5260,"children":5261},{"class":1028,"line":81},[5262],{"type":993,"tag":1026,"props":5263,"children":5264},{"emptyLinePlaceholder":13},[5265],{"type":998,"value":1225},{"type":993,"tag":1026,"props":5267,"children":5268},{"class":1028,"line":91},[5269,5273,5278,5282,5287,5291,5296,5300],{"type":993,"tag":1026,"props":5270,"children":5271},{"style":1041},[5272],{"type":998,"value":1044},{"type":993,"tag":1026,"props":5274,"children":5275},{"style":1047},[5276],{"type":998,"value":5277}," C",{"type":993,"tag":1026,"props":5279,"children":5280},{"style":1053},[5281],{"type":998,"value":1242},{"type":993,"tag":1026,"props":5283,"children":5284},{"style":1047},[5285],{"type":998,"value":5286},"A",{"type":993,"tag":1026,"props":5288,"children":5289},{"style":1053},[5290],{"type":998,"value":2160},{"type":993,"tag":1026,"props":5292,"children":5293},{"style":1047},[5294],{"type":998,"value":5295},"B",{"type":993,"tag":1026,"props":5297,"children":5298},{"style":1053},[5299],{"type":998,"value":1252},{"type":993,"tag":1026,"props":5301,"children":5302},{"style":1032},[5303],{"type":998,"value":5304},"# Inherits from both A and B\n",{"type":993,"tag":1026,"props":5306,"children":5307},{"class":1028,"line":100},[5308],{"type":993,"tag":1026,"props":5309,"children":5310},{"style":1041},[5311],{"type":998,"value":5312},"    pass\n",{"type":993,"tag":1026,"props":5314,"children":5315},{"class":1028,"line":109},[5316],{"type":993,"tag":1026,"props":5317,"children":5318},{"emptyLinePlaceholder":13},[5319],{"type":998,"value":1225},{"type":993,"tag":1026,"props":5321,"children":5322},{"class":1028,"line":118},[5323,5327,5332,5336,5340,5344,5348,5352],{"type":993,"tag":1026,"props":5324,"children":5325},{"style":1041},[5326],{"type":998,"value":1044},{"type":993,"tag":1026,"props":5328,"children":5329},{"style":1047},[5330],{"type":998,"value":5331}," D",{"type":993,"tag":1026,"props":5333,"children":5334},{"style":1053},[5335],{"type":998,"value":1242},{"type":993,"tag":1026,"props":5337,"children":5338},{"style":1047},[5339],{"type":998,"value":5295},{"type":993,"tag":1026,"props":5341,"children":5342},{"style":1053},[5343],{"type":998,"value":2160},{"type":993,"tag":1026,"props":5345,"children":5346},{"style":1047},[5347],{"type":998,"value":5286},{"type":993,"tag":1026,"props":5349,"children":5350},{"style":1053},[5351],{"type":998,"value":1252},{"type":993,"tag":1026,"props":5353,"children":5354},{"style":1032},[5355],{"type":998,"value":5356},"# Different order\n",{"type":993,"tag":1026,"props":5358,"children":5359},{"class":1028,"line":127},[5360],{"type":993,"tag":1026,"props":5361,"children":5362},{"style":1041},[5363],{"type":998,"value":5312},{"type":993,"tag":1026,"props":5365,"children":5366},{"class":1028,"line":136},[5367],{"type":993,"tag":1026,"props":5368,"children":5369},{"emptyLinePlaceholder":13},[5370],{"type":998,"value":1225},{"type":993,"tag":1026,"props":5372,"children":5373},{"class":1028,"line":146},[5374],{"type":993,"tag":1026,"props":5375,"children":5376},{"style":1032},[5377],{"type":998,"value":5378},"# MRO determines which method is called\n",{"type":993,"tag":1026,"props":5380,"children":5381},{"class":1028,"line":155},[5382,5387,5391],{"type":993,"tag":1026,"props":5383,"children":5384},{"style":1053},[5385],{"type":998,"value":5386},"c ",{"type":993,"tag":1026,"props":5388,"children":5389},{"style":1041},[5390],{"type":998,"value":1093},{"type":993,"tag":1026,"props":5392,"children":5393},{"style":1053},[5394],{"type":998,"value":5395}," C()\n",{"type":993,"tag":1026,"props":5397,"children":5398},{"class":1028,"line":164},[5399,5404,5408],{"type":993,"tag":1026,"props":5400,"children":5401},{"style":1053},[5402],{"type":998,"value":5403},"d ",{"type":993,"tag":1026,"props":5405,"children":5406},{"style":1041},[5407],{"type":998,"value":1093},{"type":993,"tag":1026,"props":5409,"children":5410},{"style":1053},[5411],{"type":998,"value":5412}," D()\n",{"type":993,"tag":1026,"props":5414,"children":5415},{"class":1028,"line":173},[5416],{"type":993,"tag":1026,"props":5417,"children":5418},{"emptyLinePlaceholder":13},[5419],{"type":998,"value":1225},{"type":993,"tag":1026,"props":5421,"children":5422},{"class":1028,"line":182},[5423,5427,5432],{"type":993,"tag":1026,"props":5424,"children":5425},{"style":1067},[5426],{"type":998,"value":1420},{"type":993,"tag":1026,"props":5428,"children":5429},{"style":1053},[5430],{"type":998,"value":5431},"(c.greet())  ",{"type":993,"tag":1026,"props":5433,"children":5434},{"style":1032},[5435],{"type":998,"value":5436},"# Uses A's method (A comes first)\n",{"type":993,"tag":1026,"props":5438,"children":5439},{"class":1028,"line":191},[5440,5444,5449],{"type":993,"tag":1026,"props":5441,"children":5442},{"style":1067},[5443],{"type":998,"value":1420},{"type":993,"tag":1026,"props":5445,"children":5446},{"style":1053},[5447],{"type":998,"value":5448},"(d.greet())  ",{"type":993,"tag":1026,"props":5450,"children":5451},{"style":1032},[5452],{"type":998,"value":5453},"# Uses B's method (B comes first)\n",{"type":993,"tag":1026,"props":5455,"children":5456},{"class":1028,"line":201},[5457],{"type":993,"tag":1026,"props":5458,"children":5459},{"emptyLinePlaceholder":13},[5460],{"type":998,"value":1225},{"type":993,"tag":1026,"props":5462,"children":5463},{"class":1028,"line":210},[5464],{"type":993,"tag":1026,"props":5465,"children":5466},{"style":1032},[5467],{"type":998,"value":5468},"# Check the method resolution order\n",{"type":993,"tag":1026,"props":5470,"children":5471},{"class":1028,"line":219},[5472,5476,5480,5484,5489,5493,5498,5503,5508,5513,5518,5523,5528,5533,5538,5543,5547,5551],{"type":993,"tag":1026,"props":5473,"children":5474},{"style":1067},[5475],{"type":998,"value":1420},{"type":993,"tag":1026,"props":5477,"children":5478},{"style":1053},[5479],{"type":998,"value":1242},{"type":993,"tag":1026,"props":5481,"children":5482},{"style":1041},[5483],{"type":998,"value":2244},{"type":993,"tag":1026,"props":5485,"children":5486},{"style":1139},[5487],{"type":998,"value":5488},"\"C's MRO: ",{"type":993,"tag":1026,"props":5490,"children":5491},{"style":1067},[5492],{"type":998,"value":2254},{"type":993,"tag":1026,"props":5494,"children":5495},{"style":1053},[5496],{"type":998,"value":5497},"[",{"type":993,"tag":1026,"props":5499,"children":5500},{"style":1067},[5501],{"type":998,"value":5502},"cls",{"type":993,"tag":1026,"props":5504,"children":5505},{"style":1053},[5506],{"type":998,"value":5507},".",{"type":993,"tag":1026,"props":5509,"children":5510},{"style":1067},[5511],{"type":998,"value":5512},"__name__",{"type":993,"tag":1026,"props":5514,"children":5515},{"style":1041},[5516],{"type":998,"value":5517}," for",{"type":993,"tag":1026,"props":5519,"children":5520},{"style":1067},[5521],{"type":998,"value":5522}," cls",{"type":993,"tag":1026,"props":5524,"children":5525},{"style":1041},[5526],{"type":998,"value":5527}," in",{"type":993,"tag":1026,"props":5529,"children":5530},{"style":1053},[5531],{"type":998,"value":5532}," C.",{"type":993,"tag":1026,"props":5534,"children":5535},{"style":1067},[5536],{"type":998,"value":5537},"__mro__",{"type":993,"tag":1026,"props":5539,"children":5540},{"style":1053},[5541],{"type":998,"value":5542},"]",{"type":993,"tag":1026,"props":5544,"children":5545},{"style":1067},[5546],{"type":998,"value":1157},{"type":993,"tag":1026,"props":5548,"children":5549},{"style":1139},[5550],{"type":998,"value":1142},{"type":993,"tag":1026,"props":5552,"children":5553},{"style":1053},[5554],{"type":998,"value":1412},{"type":993,"tag":1026,"props":5556,"children":5557},{"class":1028,"line":228},[5558,5562,5566,5570,5575,5579,5583,5587,5591,5595,5599,5603,5607,5612,5616,5620,5624,5628],{"type":993,"tag":1026,"props":5559,"children":5560},{"style":1067},[5561],{"type":998,"value":1420},{"type":993,"tag":1026,"props":5563,"children":5564},{"style":1053},[5565],{"type":998,"value":1242},{"type":993,"tag":1026,"props":5567,"children":5568},{"style":1041},[5569],{"type":998,"value":2244},{"type":993,"tag":1026,"props":5571,"children":5572},{"style":1139},[5573],{"type":998,"value":5574},"\"D's MRO: ",{"type":993,"tag":1026,"props":5576,"children":5577},{"style":1067},[5578],{"type":998,"value":2254},{"type":993,"tag":1026,"props":5580,"children":5581},{"style":1053},[5582],{"type":998,"value":5497},{"type":993,"tag":1026,"props":5584,"children":5585},{"style":1067},[5586],{"type":998,"value":5502},{"type":993,"tag":1026,"props":5588,"children":5589},{"style":1053},[5590],{"type":998,"value":5507},{"type":993,"tag":1026,"props":5592,"children":5593},{"style":1067},[5594],{"type":998,"value":5512},{"type":993,"tag":1026,"props":5596,"children":5597},{"style":1041},[5598],{"type":998,"value":5517},{"type":993,"tag":1026,"props":5600,"children":5601},{"style":1067},[5602],{"type":998,"value":5522},{"type":993,"tag":1026,"props":5604,"children":5605},{"style":1041},[5606],{"type":998,"value":5527},{"type":993,"tag":1026,"props":5608,"children":5609},{"style":1053},[5610],{"type":998,"value":5611}," D.",{"type":993,"tag":1026,"props":5613,"children":5614},{"style":1067},[5615],{"type":998,"value":5537},{"type":993,"tag":1026,"props":5617,"children":5618},{"style":1053},[5619],{"type":998,"value":5542},{"type":993,"tag":1026,"props":5621,"children":5622},{"style":1067},[5623],{"type":998,"value":1157},{"type":993,"tag":1026,"props":5625,"children":5626},{"style":1139},[5627],{"type":998,"value":1142},{"type":993,"tag":1026,"props":5629,"children":5630},{"style":1053},[5631],{"type":998,"value":1412},{"type":993,"tag":1466,"props":5633,"children":5635},{"id":5634},"practical-applications",[5636],{"type":998,"value":5637},"🌟 Practical Applications",{"type":993,"tag":1602,"props":5639,"children":5641},{"id":5640},"building-class-hierarchies",[5642],{"type":998,"value":5643},"Building Class Hierarchies",{"type":993,"tag":1001,"props":5645,"children":5646},{},[5647],{"type":998,"value":5648},"Inheritance enables creating logical hierarchies that model real-world relationships.",{"type":993,"tag":1012,"props":5650,"children":5651},{},[5652],{"type":993,"tag":1016,"props":5653,"children":5655},{"className":1018,"code":5654,"language":6,"meta":8,"style":8},"class User:\n    def __init__(self, username, email):\n        self.username = username\n        self.email = email\n        self.active = True\n    \n    def login(self):\n        return f\"{self.username} logged in\"\n    \n    def logout(self):\n        return f\"{self.username} logged out\"\n\nclass Customer(User):\n    def __init__(self, username, email):\n        super().__init__(username, email)\n        self.orders = []\n        self.loyalty_points = 0\n    \n    def place_order(self, order):\n        self.orders.append(order)\n        self.loyalty_points += 10\n        return f\"Order placed by {self.username}\"\n\nclass Admin(User):\n    def __init__(self, username, email, permissions):\n        super().__init__(username, email)\n        self.permissions = permissions\n    \n    def manage_users(self, action, user):\n        if \"user_management\" in self.permissions:\n            return f\"{self.username} performed {action} on {user}\"\n        return \"Permission denied\"\n\n# Different user types with specialized behavior\ncustomer = Customer(\"alice\", \"alice@email.com\")\nadmin = Admin(\"admin\", \"admin@email.com\", [\"user_management\", \"system_admin\"])\n\nprint(customer.login())\nprint(customer.place_order(\"laptop\"))\nprint(admin.manage_users(\"activate\", \"bob\"))\n",[5656],{"type":993,"tag":1022,"props":5657,"children":5658},{"__ignoreMap":8},[5659,5675,5691,5712,5733,5754,5761,5777,5810,5817,5833,5865,5872,5897,5912,5932,5952,5972,5979,5996,6008,6028,6060,6067,6091,6107,6126,6147,6154,6171,6196,6264,6276,6283,6291,6326,6381,6388,6400,6422],{"type":993,"tag":1026,"props":5660,"children":5661},{"class":1028,"line":12},[5662,5666,5671],{"type":993,"tag":1026,"props":5663,"children":5664},{"style":1041},[5665],{"type":998,"value":1044},{"type":993,"tag":1026,"props":5667,"children":5668},{"style":1047},[5669],{"type":998,"value":5670}," User",{"type":993,"tag":1026,"props":5672,"children":5673},{"style":1053},[5674],{"type":998,"value":1056},{"type":993,"tag":1026,"props":5676,"children":5677},{"class":1028,"line":27},[5678,5682,5686],{"type":993,"tag":1026,"props":5679,"children":5680},{"style":1041},[5681],{"type":998,"value":1064},{"type":993,"tag":1026,"props":5683,"children":5684},{"style":1067},[5685],{"type":998,"value":1070},{"type":993,"tag":1026,"props":5687,"children":5688},{"style":1053},[5689],{"type":998,"value":5690},"(self, username, email):\n",{"type":993,"tag":1026,"props":5692,"children":5693},{"class":1028,"line":36},[5694,5698,5703,5707],{"type":993,"tag":1026,"props":5695,"children":5696},{"style":1067},[5697],{"type":998,"value":1083},{"type":993,"tag":1026,"props":5699,"children":5700},{"style":1053},[5701],{"type":998,"value":5702},".username ",{"type":993,"tag":1026,"props":5704,"children":5705},{"style":1041},[5706],{"type":998,"value":1093},{"type":993,"tag":1026,"props":5708,"children":5709},{"style":1053},[5710],{"type":998,"value":5711}," username\n",{"type":993,"tag":1026,"props":5713,"children":5714},{"class":1028,"line":45},[5715,5719,5724,5728],{"type":993,"tag":1026,"props":5716,"children":5717},{"style":1067},[5718],{"type":998,"value":1083},{"type":993,"tag":1026,"props":5720,"children":5721},{"style":1053},[5722],{"type":998,"value":5723},".email ",{"type":993,"tag":1026,"props":5725,"children":5726},{"style":1041},[5727],{"type":998,"value":1093},{"type":993,"tag":1026,"props":5729,"children":5730},{"style":1053},[5731],{"type":998,"value":5732}," email\n",{"type":993,"tag":1026,"props":5734,"children":5735},{"class":1028,"line":54},[5736,5740,5745,5749],{"type":993,"tag":1026,"props":5737,"children":5738},{"style":1067},[5739],{"type":998,"value":1083},{"type":993,"tag":1026,"props":5741,"children":5742},{"style":1053},[5743],{"type":998,"value":5744},".active ",{"type":993,"tag":1026,"props":5746,"children":5747},{"style":1041},[5748],{"type":998,"value":1093},{"type":993,"tag":1026,"props":5750,"children":5751},{"style":1067},[5752],{"type":998,"value":5753}," True\n",{"type":993,"tag":1026,"props":5755,"children":5756},{"class":1028,"line":63},[5757],{"type":993,"tag":1026,"props":5758,"children":5759},{"style":1053},[5760],{"type":998,"value":1106},{"type":993,"tag":1026,"props":5762,"children":5763},{"class":1028,"line":72},[5764,5768,5773],{"type":993,"tag":1026,"props":5765,"children":5766},{"style":1041},[5767],{"type":998,"value":1064},{"type":993,"tag":1026,"props":5769,"children":5770},{"style":1047},[5771],{"type":998,"value":5772}," login",{"type":993,"tag":1026,"props":5774,"children":5775},{"style":1053},[5776],{"type":998,"value":1123},{"type":993,"tag":1026,"props":5778,"children":5779},{"class":1028,"line":81},[5780,5784,5788,5792,5796,5801,5805],{"type":993,"tag":1026,"props":5781,"children":5782},{"style":1041},[5783],{"type":998,"value":1131},{"type":993,"tag":1026,"props":5785,"children":5786},{"style":1041},[5787],{"type":998,"value":1136},{"type":993,"tag":1026,"props":5789,"children":5790},{"style":1139},[5791],{"type":998,"value":1142},{"type":993,"tag":1026,"props":5793,"children":5794},{"style":1067},[5795],{"type":998,"value":1147},{"type":993,"tag":1026,"props":5797,"children":5798},{"style":1053},[5799],{"type":998,"value":5800},".username",{"type":993,"tag":1026,"props":5802,"children":5803},{"style":1067},[5804],{"type":998,"value":1157},{"type":993,"tag":1026,"props":5806,"children":5807},{"style":1139},[5808],{"type":998,"value":5809}," logged in\"\n",{"type":993,"tag":1026,"props":5811,"children":5812},{"class":1028,"line":91},[5813],{"type":993,"tag":1026,"props":5814,"children":5815},{"style":1053},[5816],{"type":998,"value":1106},{"type":993,"tag":1026,"props":5818,"children":5819},{"class":1028,"line":100},[5820,5824,5829],{"type":993,"tag":1026,"props":5821,"children":5822},{"style":1041},[5823],{"type":998,"value":1064},{"type":993,"tag":1026,"props":5825,"children":5826},{"style":1047},[5827],{"type":998,"value":5828}," logout",{"type":993,"tag":1026,"props":5830,"children":5831},{"style":1053},[5832],{"type":998,"value":1123},{"type":993,"tag":1026,"props":5834,"children":5835},{"class":1028,"line":109},[5836,5840,5844,5848,5852,5856,5860],{"type":993,"tag":1026,"props":5837,"children":5838},{"style":1041},[5839],{"type":998,"value":1131},{"type":993,"tag":1026,"props":5841,"children":5842},{"style":1041},[5843],{"type":998,"value":1136},{"type":993,"tag":1026,"props":5845,"children":5846},{"style":1139},[5847],{"type":998,"value":1142},{"type":993,"tag":1026,"props":5849,"children":5850},{"style":1067},[5851],{"type":998,"value":1147},{"type":993,"tag":1026,"props":5853,"children":5854},{"style":1053},[5855],{"type":998,"value":5800},{"type":993,"tag":1026,"props":5857,"children":5858},{"style":1067},[5859],{"type":998,"value":1157},{"type":993,"tag":1026,"props":5861,"children":5862},{"style":1139},[5863],{"type":998,"value":5864}," logged out\"\n",{"type":993,"tag":1026,"props":5866,"children":5867},{"class":1028,"line":118},[5868],{"type":993,"tag":1026,"props":5869,"children":5870},{"emptyLinePlaceholder":13},[5871],{"type":998,"value":1225},{"type":993,"tag":1026,"props":5873,"children":5874},{"class":1028,"line":127},[5875,5879,5884,5888,5893],{"type":993,"tag":1026,"props":5876,"children":5877},{"style":1041},[5878],{"type":998,"value":1044},{"type":993,"tag":1026,"props":5880,"children":5881},{"style":1047},[5882],{"type":998,"value":5883}," Customer",{"type":993,"tag":1026,"props":5885,"children":5886},{"style":1053},[5887],{"type":998,"value":1242},{"type":993,"tag":1026,"props":5889,"children":5890},{"style":1047},[5891],{"type":998,"value":5892},"User",{"type":993,"tag":1026,"props":5894,"children":5895},{"style":1053},[5896],{"type":998,"value":2579},{"type":993,"tag":1026,"props":5898,"children":5899},{"class":1028,"line":136},[5900,5904,5908],{"type":993,"tag":1026,"props":5901,"children":5902},{"style":1041},[5903],{"type":998,"value":1064},{"type":993,"tag":1026,"props":5905,"children":5906},{"style":1067},[5907],{"type":998,"value":1070},{"type":993,"tag":1026,"props":5909,"children":5910},{"style":1053},[5911],{"type":998,"value":5690},{"type":993,"tag":1026,"props":5913,"children":5914},{"class":1028,"line":146},[5915,5919,5923,5927],{"type":993,"tag":1026,"props":5916,"children":5917},{"style":1067},[5918],{"type":998,"value":2000},{"type":993,"tag":1026,"props":5920,"children":5921},{"style":1053},[5922],{"type":998,"value":2005},{"type":993,"tag":1026,"props":5924,"children":5925},{"style":1067},[5926],{"type":998,"value":2010},{"type":993,"tag":1026,"props":5928,"children":5929},{"style":1053},[5930],{"type":998,"value":5931},"(username, email)\n",{"type":993,"tag":1026,"props":5933,"children":5934},{"class":1028,"line":155},[5935,5939,5944,5948],{"type":993,"tag":1026,"props":5936,"children":5937},{"style":1067},[5938],{"type":998,"value":1083},{"type":993,"tag":1026,"props":5940,"children":5941},{"style":1053},[5942],{"type":998,"value":5943},".orders ",{"type":993,"tag":1026,"props":5945,"children":5946},{"style":1041},[5947],{"type":998,"value":1093},{"type":993,"tag":1026,"props":5949,"children":5950},{"style":1053},[5951],{"type":998,"value":3792},{"type":993,"tag":1026,"props":5953,"children":5954},{"class":1028,"line":164},[5955,5959,5964,5968],{"type":993,"tag":1026,"props":5956,"children":5957},{"style":1067},[5958],{"type":998,"value":1083},{"type":993,"tag":1026,"props":5960,"children":5961},{"style":1053},[5962],{"type":998,"value":5963},".loyalty_points ",{"type":993,"tag":1026,"props":5965,"children":5966},{"style":1041},[5967],{"type":998,"value":1093},{"type":993,"tag":1026,"props":5969,"children":5970},{"style":1067},[5971],{"type":998,"value":2399},{"type":993,"tag":1026,"props":5973,"children":5974},{"class":1028,"line":173},[5975],{"type":993,"tag":1026,"props":5976,"children":5977},{"style":1053},[5978],{"type":998,"value":1106},{"type":993,"tag":1026,"props":5980,"children":5981},{"class":1028,"line":182},[5982,5986,5991],{"type":993,"tag":1026,"props":5983,"children":5984},{"style":1041},[5985],{"type":998,"value":1064},{"type":993,"tag":1026,"props":5987,"children":5988},{"style":1047},[5989],{"type":998,"value":5990}," place_order",{"type":993,"tag":1026,"props":5992,"children":5993},{"style":1053},[5994],{"type":998,"value":5995},"(self, order):\n",{"type":993,"tag":1026,"props":5997,"children":5998},{"class":1028,"line":191},[5999,6003],{"type":993,"tag":1026,"props":6000,"children":6001},{"style":1067},[6002],{"type":998,"value":1083},{"type":993,"tag":1026,"props":6004,"children":6005},{"style":1053},[6006],{"type":998,"value":6007},".orders.append(order)\n",{"type":993,"tag":1026,"props":6009,"children":6010},{"class":1028,"line":201},[6011,6015,6019,6023],{"type":993,"tag":1026,"props":6012,"children":6013},{"style":1067},[6014],{"type":998,"value":1083},{"type":993,"tag":1026,"props":6016,"children":6017},{"style":1053},[6018],{"type":998,"value":5963},{"type":993,"tag":1026,"props":6020,"children":6021},{"style":1041},[6022],{"type":998,"value":2801},{"type":993,"tag":1026,"props":6024,"children":6025},{"style":1067},[6026],{"type":998,"value":6027}," 10\n",{"type":993,"tag":1026,"props":6029,"children":6030},{"class":1028,"line":210},[6031,6035,6039,6044,6048,6052,6056],{"type":993,"tag":1026,"props":6032,"children":6033},{"style":1041},[6034],{"type":998,"value":1131},{"type":993,"tag":1026,"props":6036,"children":6037},{"style":1041},[6038],{"type":998,"value":1136},{"type":993,"tag":1026,"props":6040,"children":6041},{"style":1139},[6042],{"type":998,"value":6043},"\"Order placed by ",{"type":993,"tag":1026,"props":6045,"children":6046},{"style":1067},[6047],{"type":998,"value":1147},{"type":993,"tag":1026,"props":6049,"children":6050},{"style":1053},[6051],{"type":998,"value":5800},{"type":993,"tag":1026,"props":6053,"children":6054},{"style":1067},[6055],{"type":998,"value":1157},{"type":993,"tag":1026,"props":6057,"children":6058},{"style":1139},[6059],{"type":998,"value":2761},{"type":993,"tag":1026,"props":6061,"children":6062},{"class":1028,"line":219},[6063],{"type":993,"tag":1026,"props":6064,"children":6065},{"emptyLinePlaceholder":13},[6066],{"type":998,"value":1225},{"type":993,"tag":1026,"props":6068,"children":6069},{"class":1028,"line":228},[6070,6074,6079,6083,6087],{"type":993,"tag":1026,"props":6071,"children":6072},{"style":1041},[6073],{"type":998,"value":1044},{"type":993,"tag":1026,"props":6075,"children":6076},{"style":1047},[6077],{"type":998,"value":6078}," Admin",{"type":993,"tag":1026,"props":6080,"children":6081},{"style":1053},[6082],{"type":998,"value":1242},{"type":993,"tag":1026,"props":6084,"children":6085},{"style":1047},[6086],{"type":998,"value":5892},{"type":993,"tag":1026,"props":6088,"children":6089},{"style":1053},[6090],{"type":998,"value":2579},{"type":993,"tag":1026,"props":6092,"children":6093},{"class":1028,"line":238},[6094,6098,6102],{"type":993,"tag":1026,"props":6095,"children":6096},{"style":1041},[6097],{"type":998,"value":1064},{"type":993,"tag":1026,"props":6099,"children":6100},{"style":1067},[6101],{"type":998,"value":1070},{"type":993,"tag":1026,"props":6103,"children":6104},{"style":1053},[6105],{"type":998,"value":6106},"(self, username, email, permissions):\n",{"type":993,"tag":1026,"props":6108,"children":6109},{"class":1028,"line":247},[6110,6114,6118,6122],{"type":993,"tag":1026,"props":6111,"children":6112},{"style":1067},[6113],{"type":998,"value":2000},{"type":993,"tag":1026,"props":6115,"children":6116},{"style":1053},[6117],{"type":998,"value":2005},{"type":993,"tag":1026,"props":6119,"children":6120},{"style":1067},[6121],{"type":998,"value":2010},{"type":993,"tag":1026,"props":6123,"children":6124},{"style":1053},[6125],{"type":998,"value":5931},{"type":993,"tag":1026,"props":6127,"children":6128},{"class":1028,"line":256},[6129,6133,6138,6142],{"type":993,"tag":1026,"props":6130,"children":6131},{"style":1067},[6132],{"type":998,"value":1083},{"type":993,"tag":1026,"props":6134,"children":6135},{"style":1053},[6136],{"type":998,"value":6137},".permissions ",{"type":993,"tag":1026,"props":6139,"children":6140},{"style":1041},[6141],{"type":998,"value":1093},{"type":993,"tag":1026,"props":6143,"children":6144},{"style":1053},[6145],{"type":998,"value":6146}," permissions\n",{"type":993,"tag":1026,"props":6148,"children":6149},{"class":1028,"line":265},[6150],{"type":993,"tag":1026,"props":6151,"children":6152},{"style":1053},[6153],{"type":998,"value":1106},{"type":993,"tag":1026,"props":6155,"children":6156},{"class":1028,"line":274},[6157,6161,6166],{"type":993,"tag":1026,"props":6158,"children":6159},{"style":1041},[6160],{"type":998,"value":1064},{"type":993,"tag":1026,"props":6162,"children":6163},{"style":1047},[6164],{"type":998,"value":6165}," manage_users",{"type":993,"tag":1026,"props":6167,"children":6168},{"style":1053},[6169],{"type":998,"value":6170},"(self, action, user):\n",{"type":993,"tag":1026,"props":6172,"children":6173},{"class":1028,"line":284},[6174,6178,6183,6187,6191],{"type":993,"tag":1026,"props":6175,"children":6176},{"style":1041},[6177],{"type":998,"value":4105},{"type":993,"tag":1026,"props":6179,"children":6180},{"style":1139},[6181],{"type":998,"value":6182}," \"user_management\"",{"type":993,"tag":1026,"props":6184,"children":6185},{"style":1041},[6186],{"type":998,"value":5527},{"type":993,"tag":1026,"props":6188,"children":6189},{"style":1067},[6190],{"type":998,"value":3353},{"type":993,"tag":1026,"props":6192,"children":6193},{"style":1053},[6194],{"type":998,"value":6195},".permissions:\n",{"type":993,"tag":1026,"props":6197,"children":6198},{"class":1028,"line":293},[6199,6204,6208,6212,6216,6220,6224,6229,6233,6238,6242,6247,6251,6256,6260],{"type":993,"tag":1026,"props":6200,"children":6201},{"style":1041},[6202],{"type":998,"value":6203},"            return",{"type":993,"tag":1026,"props":6205,"children":6206},{"style":1041},[6207],{"type":998,"value":1136},{"type":993,"tag":1026,"props":6209,"children":6210},{"style":1139},[6211],{"type":998,"value":1142},{"type":993,"tag":1026,"props":6213,"children":6214},{"style":1067},[6215],{"type":998,"value":1147},{"type":993,"tag":1026,"props":6217,"children":6218},{"style":1053},[6219],{"type":998,"value":5800},{"type":993,"tag":1026,"props":6221,"children":6222},{"style":1067},[6223],{"type":998,"value":1157},{"type":993,"tag":1026,"props":6225,"children":6226},{"style":1139},[6227],{"type":998,"value":6228}," performed ",{"type":993,"tag":1026,"props":6230,"children":6231},{"style":1067},[6232],{"type":998,"value":2254},{"type":993,"tag":1026,"props":6234,"children":6235},{"style":1053},[6236],{"type":998,"value":6237},"action",{"type":993,"tag":1026,"props":6239,"children":6240},{"style":1067},[6241],{"type":998,"value":1157},{"type":993,"tag":1026,"props":6243,"children":6244},{"style":1139},[6245],{"type":998,"value":6246}," on ",{"type":993,"tag":1026,"props":6248,"children":6249},{"style":1067},[6250],{"type":998,"value":2254},{"type":993,"tag":1026,"props":6252,"children":6253},{"style":1053},[6254],{"type":998,"value":6255},"user",{"type":993,"tag":1026,"props":6257,"children":6258},{"style":1067},[6259],{"type":998,"value":1157},{"type":993,"tag":1026,"props":6261,"children":6262},{"style":1139},[6263],{"type":998,"value":2761},{"type":993,"tag":1026,"props":6265,"children":6266},{"class":1028,"line":302},[6267,6271],{"type":993,"tag":1026,"props":6268,"children":6269},{"style":1041},[6270],{"type":998,"value":1131},{"type":993,"tag":1026,"props":6272,"children":6273},{"style":1139},[6274],{"type":998,"value":6275}," \"Permission denied\"\n",{"type":993,"tag":1026,"props":6277,"children":6278},{"class":1028,"line":311},[6279],{"type":993,"tag":1026,"props":6280,"children":6281},{"emptyLinePlaceholder":13},[6282],{"type":998,"value":1225},{"type":993,"tag":1026,"props":6284,"children":6285},{"class":1028,"line":320},[6286],{"type":993,"tag":1026,"props":6287,"children":6288},{"style":1032},[6289],{"type":998,"value":6290},"# Different user types with specialized behavior\n",{"type":993,"tag":1026,"props":6292,"children":6293},{"class":1028,"line":329},[6294,6299,6303,6308,6313,6317,6322],{"type":993,"tag":1026,"props":6295,"children":6296},{"style":1053},[6297],{"type":998,"value":6298},"customer ",{"type":993,"tag":1026,"props":6300,"children":6301},{"style":1041},[6302],{"type":998,"value":1093},{"type":993,"tag":1026,"props":6304,"children":6305},{"style":1053},[6306],{"type":998,"value":6307}," Customer(",{"type":993,"tag":1026,"props":6309,"children":6310},{"style":1139},[6311],{"type":998,"value":6312},"\"alice\"",{"type":993,"tag":1026,"props":6314,"children":6315},{"style":1053},[6316],{"type":998,"value":2160},{"type":993,"tag":1026,"props":6318,"children":6319},{"style":1139},[6320],{"type":998,"value":6321},"\"alice@email.com\"",{"type":993,"tag":1026,"props":6323,"children":6324},{"style":1053},[6325],{"type":998,"value":1412},{"type":993,"tag":1026,"props":6327,"children":6328},{"class":1028,"line":338},[6329,6334,6338,6343,6348,6352,6357,6362,6367,6371,6376],{"type":993,"tag":1026,"props":6330,"children":6331},{"style":1053},[6332],{"type":998,"value":6333},"admin ",{"type":993,"tag":1026,"props":6335,"children":6336},{"style":1041},[6337],{"type":998,"value":1093},{"type":993,"tag":1026,"props":6339,"children":6340},{"style":1053},[6341],{"type":998,"value":6342}," Admin(",{"type":993,"tag":1026,"props":6344,"children":6345},{"style":1139},[6346],{"type":998,"value":6347},"\"admin\"",{"type":993,"tag":1026,"props":6349,"children":6350},{"style":1053},[6351],{"type":998,"value":2160},{"type":993,"tag":1026,"props":6353,"children":6354},{"style":1139},[6355],{"type":998,"value":6356},"\"admin@email.com\"",{"type":993,"tag":1026,"props":6358,"children":6359},{"style":1053},[6360],{"type":998,"value":6361},", [",{"type":993,"tag":1026,"props":6363,"children":6364},{"style":1139},[6365],{"type":998,"value":6366},"\"user_management\"",{"type":993,"tag":1026,"props":6368,"children":6369},{"style":1053},[6370],{"type":998,"value":2160},{"type":993,"tag":1026,"props":6372,"children":6373},{"style":1139},[6374],{"type":998,"value":6375},"\"system_admin\"",{"type":993,"tag":1026,"props":6377,"children":6378},{"style":1053},[6379],{"type":998,"value":6380},"])\n",{"type":993,"tag":1026,"props":6382,"children":6383},{"class":1028,"line":347},[6384],{"type":993,"tag":1026,"props":6385,"children":6386},{"emptyLinePlaceholder":13},[6387],{"type":998,"value":1225},{"type":993,"tag":1026,"props":6389,"children":6390},{"class":1028,"line":356},[6391,6395],{"type":993,"tag":1026,"props":6392,"children":6393},{"style":1067},[6394],{"type":998,"value":1420},{"type":993,"tag":1026,"props":6396,"children":6397},{"style":1053},[6398],{"type":998,"value":6399},"(customer.login())\n",{"type":993,"tag":1026,"props":6401,"children":6402},{"class":1028,"line":365},[6403,6407,6412,6417],{"type":993,"tag":1026,"props":6404,"children":6405},{"style":1067},[6406],{"type":998,"value":1420},{"type":993,"tag":1026,"props":6408,"children":6409},{"style":1053},[6410],{"type":998,"value":6411},"(customer.place_order(",{"type":993,"tag":1026,"props":6413,"children":6414},{"style":1139},[6415],{"type":998,"value":6416},"\"laptop\"",{"type":993,"tag":1026,"props":6418,"children":6419},{"style":1053},[6420],{"type":998,"value":6421},"))\n",{"type":993,"tag":1026,"props":6423,"children":6424},{"class":1028,"line":374},[6425,6429,6434,6439,6443,6448],{"type":993,"tag":1026,"props":6426,"children":6427},{"style":1067},[6428],{"type":998,"value":1420},{"type":993,"tag":1026,"props":6430,"children":6431},{"style":1053},[6432],{"type":998,"value":6433},"(admin.manage_users(",{"type":993,"tag":1026,"props":6435,"children":6436},{"style":1139},[6437],{"type":998,"value":6438},"\"activate\"",{"type":993,"tag":1026,"props":6440,"children":6441},{"style":1053},[6442],{"type":998,"value":2160},{"type":993,"tag":1026,"props":6444,"children":6445},{"style":1139},[6446],{"type":998,"value":6447},"\"bob\"",{"type":993,"tag":1026,"props":6449,"children":6450},{"style":1053},[6451],{"type":998,"value":6421},{"type":993,"tag":1466,"props":6453,"children":6455},{"id":6454},"design-patterns-with-inheritance",[6456],{"type":998,"value":6457},"💡 Design Patterns with Inheritance",{"type":993,"tag":1602,"props":6459,"children":6461},{"id":6460},"template-method-pattern",[6462],{"type":998,"value":6463},"Template Method Pattern",{"type":993,"tag":1001,"props":6465,"children":6466},{},[6467],{"type":998,"value":6468},"Use inheritance to define a skeleton algorithm while allowing subclasses to override specific steps.",{"type":993,"tag":1012,"props":6470,"children":6471},{},[6472],{"type":993,"tag":1016,"props":6473,"children":6475},{"className":1018,"code":6474,"language":6,"meta":8,"style":8},"class DataProcessor:\n    def process(self, data):\n        # Template method defining the algorithm\n        cleaned = self.clean_data(data)\n        processed = self.transform_data(cleaned)\n        result = self.save_data(processed)\n        return result\n    \n    def clean_data(self, data):\n        # Default implementation\n        return [item.strip() for item in data if item.strip()]\n    \n    def transform_data(self, data):\n        # Must be implemented by subclasses\n        raise NotImplementedError(\"Subclasses must implement transform_data\")\n    \n    def save_data(self, data):\n        # Default implementation\n        return f\"Saved {len(data)} items\"\n\nclass NumberProcessor(DataProcessor):\n    def transform_data(self, data):\n        return [float(item) for item in data if item.replace('.', '').isdigit()]\n\nclass TextProcessor(DataProcessor):\n    def transform_data(self, data):\n        return [item.upper() for item in data]\n\n# Template pattern in action\nnumber_processor = NumberProcessor()\ntext_processor = TextProcessor()\n\nnumbers = [\"1.5\", \"2.0\", \"invalid\", \"3.7\"]\ntexts = [\"hello\", \"world\", \"python\"]\n\nprint(number_processor.process(numbers))\nprint(text_processor.process(texts))\n",[6476],{"type":993,"tag":1022,"props":6477,"children":6478},{"__ignoreMap":8},[6479,6495,6512,6520,6541,6562,6582,6593,6600,6616,6624,6666,6673,6689,6697,6723,6730,6746,6753,6788,6795,6820,6835,6901,6908,6932,6947,6976,6983,6991,7008,7025,7032,7085,7128,7135,7147],{"type":993,"tag":1026,"props":6480,"children":6481},{"class":1028,"line":12},[6482,6486,6491],{"type":993,"tag":1026,"props":6483,"children":6484},{"style":1041},[6485],{"type":998,"value":1044},{"type":993,"tag":1026,"props":6487,"children":6488},{"style":1047},[6489],{"type":998,"value":6490}," DataProcessor",{"type":993,"tag":1026,"props":6492,"children":6493},{"style":1053},[6494],{"type":998,"value":1056},{"type":993,"tag":1026,"props":6496,"children":6497},{"class":1028,"line":27},[6498,6502,6507],{"type":993,"tag":1026,"props":6499,"children":6500},{"style":1041},[6501],{"type":998,"value":1064},{"type":993,"tag":1026,"props":6503,"children":6504},{"style":1047},[6505],{"type":998,"value":6506}," process",{"type":993,"tag":1026,"props":6508,"children":6509},{"style":1053},[6510],{"type":998,"value":6511},"(self, data):\n",{"type":993,"tag":1026,"props":6513,"children":6514},{"class":1028,"line":36},[6515],{"type":993,"tag":1026,"props":6516,"children":6517},{"style":1032},[6518],{"type":998,"value":6519},"        # Template method defining the algorithm\n",{"type":993,"tag":1026,"props":6521,"children":6522},{"class":1028,"line":45},[6523,6528,6532,6536],{"type":993,"tag":1026,"props":6524,"children":6525},{"style":1053},[6526],{"type":998,"value":6527},"        cleaned ",{"type":993,"tag":1026,"props":6529,"children":6530},{"style":1041},[6531],{"type":998,"value":1093},{"type":993,"tag":1026,"props":6533,"children":6534},{"style":1067},[6535],{"type":998,"value":3353},{"type":993,"tag":1026,"props":6537,"children":6538},{"style":1053},[6539],{"type":998,"value":6540},".clean_data(data)\n",{"type":993,"tag":1026,"props":6542,"children":6543},{"class":1028,"line":54},[6544,6549,6553,6557],{"type":993,"tag":1026,"props":6545,"children":6546},{"style":1053},[6547],{"type":998,"value":6548},"        processed ",{"type":993,"tag":1026,"props":6550,"children":6551},{"style":1041},[6552],{"type":998,"value":1093},{"type":993,"tag":1026,"props":6554,"children":6555},{"style":1067},[6556],{"type":998,"value":3353},{"type":993,"tag":1026,"props":6558,"children":6559},{"style":1053},[6560],{"type":998,"value":6561},".transform_data(cleaned)\n",{"type":993,"tag":1026,"props":6563,"children":6564},{"class":1028,"line":63},[6565,6569,6573,6577],{"type":993,"tag":1026,"props":6566,"children":6567},{"style":1053},[6568],{"type":998,"value":4079},{"type":993,"tag":1026,"props":6570,"children":6571},{"style":1041},[6572],{"type":998,"value":1093},{"type":993,"tag":1026,"props":6574,"children":6575},{"style":1067},[6576],{"type":998,"value":3353},{"type":993,"tag":1026,"props":6578,"children":6579},{"style":1053},[6580],{"type":998,"value":6581},".save_data(processed)\n",{"type":993,"tag":1026,"props":6583,"children":6584},{"class":1028,"line":72},[6585,6589],{"type":993,"tag":1026,"props":6586,"children":6587},{"style":1041},[6588],{"type":998,"value":1131},{"type":993,"tag":1026,"props":6590,"children":6591},{"style":1053},[6592],{"type":998,"value":4267},{"type":993,"tag":1026,"props":6594,"children":6595},{"class":1028,"line":81},[6596],{"type":993,"tag":1026,"props":6597,"children":6598},{"style":1053},[6599],{"type":998,"value":1106},{"type":993,"tag":1026,"props":6601,"children":6602},{"class":1028,"line":91},[6603,6607,6612],{"type":993,"tag":1026,"props":6604,"children":6605},{"style":1041},[6606],{"type":998,"value":1064},{"type":993,"tag":1026,"props":6608,"children":6609},{"style":1047},[6610],{"type":998,"value":6611}," clean_data",{"type":993,"tag":1026,"props":6613,"children":6614},{"style":1053},[6615],{"type":998,"value":6511},{"type":993,"tag":1026,"props":6617,"children":6618},{"class":1028,"line":100},[6619],{"type":993,"tag":1026,"props":6620,"children":6621},{"style":1032},[6622],{"type":998,"value":6623},"        # Default implementation\n",{"type":993,"tag":1026,"props":6625,"children":6626},{"class":1028,"line":109},[6627,6631,6636,6641,6646,6651,6656,6661],{"type":993,"tag":1026,"props":6628,"children":6629},{"style":1041},[6630],{"type":998,"value":1131},{"type":993,"tag":1026,"props":6632,"children":6633},{"style":1053},[6634],{"type":998,"value":6635}," [item.strip() ",{"type":993,"tag":1026,"props":6637,"children":6638},{"style":1041},[6639],{"type":998,"value":6640},"for",{"type":993,"tag":1026,"props":6642,"children":6643},{"style":1053},[6644],{"type":998,"value":6645}," item ",{"type":993,"tag":1026,"props":6647,"children":6648},{"style":1041},[6649],{"type":998,"value":6650},"in",{"type":993,"tag":1026,"props":6652,"children":6653},{"style":1053},[6654],{"type":998,"value":6655}," data ",{"type":993,"tag":1026,"props":6657,"children":6658},{"style":1041},[6659],{"type":998,"value":6660},"if",{"type":993,"tag":1026,"props":6662,"children":6663},{"style":1053},[6664],{"type":998,"value":6665}," item.strip()]\n",{"type":993,"tag":1026,"props":6667,"children":6668},{"class":1028,"line":118},[6669],{"type":993,"tag":1026,"props":6670,"children":6671},{"style":1053},[6672],{"type":998,"value":1106},{"type":993,"tag":1026,"props":6674,"children":6675},{"class":1028,"line":127},[6676,6680,6685],{"type":993,"tag":1026,"props":6677,"children":6678},{"style":1041},[6679],{"type":998,"value":1064},{"type":993,"tag":1026,"props":6681,"children":6682},{"style":1047},[6683],{"type":998,"value":6684}," transform_data",{"type":993,"tag":1026,"props":6686,"children":6687},{"style":1053},[6688],{"type":998,"value":6511},{"type":993,"tag":1026,"props":6690,"children":6691},{"class":1028,"line":136},[6692],{"type":993,"tag":1026,"props":6693,"children":6694},{"style":1032},[6695],{"type":998,"value":6696},"        # Must be implemented by subclasses\n",{"type":993,"tag":1026,"props":6698,"children":6699},{"class":1028,"line":146},[6700,6705,6710,6714,6719],{"type":993,"tag":1026,"props":6701,"children":6702},{"style":1041},[6703],{"type":998,"value":6704},"        raise",{"type":993,"tag":1026,"props":6706,"children":6707},{"style":1067},[6708],{"type":998,"value":6709}," NotImplementedError",{"type":993,"tag":1026,"props":6711,"children":6712},{"style":1053},[6713],{"type":998,"value":1242},{"type":993,"tag":1026,"props":6715,"children":6716},{"style":1139},[6717],{"type":998,"value":6718},"\"Subclasses must implement transform_data\"",{"type":993,"tag":1026,"props":6720,"children":6721},{"style":1053},[6722],{"type":998,"value":1412},{"type":993,"tag":1026,"props":6724,"children":6725},{"class":1028,"line":155},[6726],{"type":993,"tag":1026,"props":6727,"children":6728},{"style":1053},[6729],{"type":998,"value":1106},{"type":993,"tag":1026,"props":6731,"children":6732},{"class":1028,"line":164},[6733,6737,6742],{"type":993,"tag":1026,"props":6734,"children":6735},{"style":1041},[6736],{"type":998,"value":1064},{"type":993,"tag":1026,"props":6738,"children":6739},{"style":1047},[6740],{"type":998,"value":6741}," save_data",{"type":993,"tag":1026,"props":6743,"children":6744},{"style":1053},[6745],{"type":998,"value":6511},{"type":993,"tag":1026,"props":6747,"children":6748},{"class":1028,"line":173},[6749],{"type":993,"tag":1026,"props":6750,"children":6751},{"style":1032},[6752],{"type":998,"value":6623},{"type":993,"tag":1026,"props":6754,"children":6755},{"class":1028,"line":182},[6756,6760,6764,6769,6774,6779,6783],{"type":993,"tag":1026,"props":6757,"children":6758},{"style":1041},[6759],{"type":998,"value":1131},{"type":993,"tag":1026,"props":6761,"children":6762},{"style":1041},[6763],{"type":998,"value":1136},{"type":993,"tag":1026,"props":6765,"children":6766},{"style":1139},[6767],{"type":998,"value":6768},"\"Saved ",{"type":993,"tag":1026,"props":6770,"children":6771},{"style":1067},[6772],{"type":998,"value":6773},"{len",{"type":993,"tag":1026,"props":6775,"children":6776},{"style":1053},[6777],{"type":998,"value":6778},"(data)",{"type":993,"tag":1026,"props":6780,"children":6781},{"style":1067},[6782],{"type":998,"value":1157},{"type":993,"tag":1026,"props":6784,"children":6785},{"style":1139},[6786],{"type":998,"value":6787}," items\"\n",{"type":993,"tag":1026,"props":6789,"children":6790},{"class":1028,"line":191},[6791],{"type":993,"tag":1026,"props":6792,"children":6793},{"emptyLinePlaceholder":13},[6794],{"type":998,"value":1225},{"type":993,"tag":1026,"props":6796,"children":6797},{"class":1028,"line":201},[6798,6802,6807,6811,6816],{"type":993,"tag":1026,"props":6799,"children":6800},{"style":1041},[6801],{"type":998,"value":1044},{"type":993,"tag":1026,"props":6803,"children":6804},{"style":1047},[6805],{"type":998,"value":6806}," NumberProcessor",{"type":993,"tag":1026,"props":6808,"children":6809},{"style":1053},[6810],{"type":998,"value":1242},{"type":993,"tag":1026,"props":6812,"children":6813},{"style":1047},[6814],{"type":998,"value":6815},"DataProcessor",{"type":993,"tag":1026,"props":6817,"children":6818},{"style":1053},[6819],{"type":998,"value":2579},{"type":993,"tag":1026,"props":6821,"children":6822},{"class":1028,"line":210},[6823,6827,6831],{"type":993,"tag":1026,"props":6824,"children":6825},{"style":1041},[6826],{"type":998,"value":1064},{"type":993,"tag":1026,"props":6828,"children":6829},{"style":1047},[6830],{"type":998,"value":6684},{"type":993,"tag":1026,"props":6832,"children":6833},{"style":1053},[6834],{"type":998,"value":6511},{"type":993,"tag":1026,"props":6836,"children":6837},{"class":1028,"line":219},[6838,6842,6847,6852,6857,6861,6865,6869,6873,6877,6882,6887,6891,6896],{"type":993,"tag":1026,"props":6839,"children":6840},{"style":1041},[6841],{"type":998,"value":1131},{"type":993,"tag":1026,"props":6843,"children":6844},{"style":1053},[6845],{"type":998,"value":6846}," [",{"type":993,"tag":1026,"props":6848,"children":6849},{"style":1067},[6850],{"type":998,"value":6851},"float",{"type":993,"tag":1026,"props":6853,"children":6854},{"style":1053},[6855],{"type":998,"value":6856},"(item) ",{"type":993,"tag":1026,"props":6858,"children":6859},{"style":1041},[6860],{"type":998,"value":6640},{"type":993,"tag":1026,"props":6862,"children":6863},{"style":1053},[6864],{"type":998,"value":6645},{"type":993,"tag":1026,"props":6866,"children":6867},{"style":1041},[6868],{"type":998,"value":6650},{"type":993,"tag":1026,"props":6870,"children":6871},{"style":1053},[6872],{"type":998,"value":6655},{"type":993,"tag":1026,"props":6874,"children":6875},{"style":1041},[6876],{"type":998,"value":6660},{"type":993,"tag":1026,"props":6878,"children":6879},{"style":1053},[6880],{"type":998,"value":6881}," item.replace(",{"type":993,"tag":1026,"props":6883,"children":6884},{"style":1139},[6885],{"type":998,"value":6886},"'.'",{"type":993,"tag":1026,"props":6888,"children":6889},{"style":1053},[6890],{"type":998,"value":2160},{"type":993,"tag":1026,"props":6892,"children":6893},{"style":1139},[6894],{"type":998,"value":6895},"''",{"type":993,"tag":1026,"props":6897,"children":6898},{"style":1053},[6899],{"type":998,"value":6900},").isdigit()]\n",{"type":993,"tag":1026,"props":6902,"children":6903},{"class":1028,"line":228},[6904],{"type":993,"tag":1026,"props":6905,"children":6906},{"emptyLinePlaceholder":13},[6907],{"type":998,"value":1225},{"type":993,"tag":1026,"props":6909,"children":6910},{"class":1028,"line":238},[6911,6915,6920,6924,6928],{"type":993,"tag":1026,"props":6912,"children":6913},{"style":1041},[6914],{"type":998,"value":1044},{"type":993,"tag":1026,"props":6916,"children":6917},{"style":1047},[6918],{"type":998,"value":6919}," TextProcessor",{"type":993,"tag":1026,"props":6921,"children":6922},{"style":1053},[6923],{"type":998,"value":1242},{"type":993,"tag":1026,"props":6925,"children":6926},{"style":1047},[6927],{"type":998,"value":6815},{"type":993,"tag":1026,"props":6929,"children":6930},{"style":1053},[6931],{"type":998,"value":2579},{"type":993,"tag":1026,"props":6933,"children":6934},{"class":1028,"line":247},[6935,6939,6943],{"type":993,"tag":1026,"props":6936,"children":6937},{"style":1041},[6938],{"type":998,"value":1064},{"type":993,"tag":1026,"props":6940,"children":6941},{"style":1047},[6942],{"type":998,"value":6684},{"type":993,"tag":1026,"props":6944,"children":6945},{"style":1053},[6946],{"type":998,"value":6511},{"type":993,"tag":1026,"props":6948,"children":6949},{"class":1028,"line":256},[6950,6954,6959,6963,6967,6971],{"type":993,"tag":1026,"props":6951,"children":6952},{"style":1041},[6953],{"type":998,"value":1131},{"type":993,"tag":1026,"props":6955,"children":6956},{"style":1053},[6957],{"type":998,"value":6958}," [item.upper() ",{"type":993,"tag":1026,"props":6960,"children":6961},{"style":1041},[6962],{"type":998,"value":6640},{"type":993,"tag":1026,"props":6964,"children":6965},{"style":1053},[6966],{"type":998,"value":6645},{"type":993,"tag":1026,"props":6968,"children":6969},{"style":1041},[6970],{"type":998,"value":6650},{"type":993,"tag":1026,"props":6972,"children":6973},{"style":1053},[6974],{"type":998,"value":6975}," data]\n",{"type":993,"tag":1026,"props":6977,"children":6978},{"class":1028,"line":265},[6979],{"type":993,"tag":1026,"props":6980,"children":6981},{"emptyLinePlaceholder":13},[6982],{"type":998,"value":1225},{"type":993,"tag":1026,"props":6984,"children":6985},{"class":1028,"line":274},[6986],{"type":993,"tag":1026,"props":6987,"children":6988},{"style":1032},[6989],{"type":998,"value":6990},"# Template pattern in action\n",{"type":993,"tag":1026,"props":6992,"children":6993},{"class":1028,"line":284},[6994,6999,7003],{"type":993,"tag":1026,"props":6995,"children":6996},{"style":1053},[6997],{"type":998,"value":6998},"number_processor ",{"type":993,"tag":1026,"props":7000,"children":7001},{"style":1041},[7002],{"type":998,"value":1093},{"type":993,"tag":1026,"props":7004,"children":7005},{"style":1053},[7006],{"type":998,"value":7007}," NumberProcessor()\n",{"type":993,"tag":1026,"props":7009,"children":7010},{"class":1028,"line":293},[7011,7016,7020],{"type":993,"tag":1026,"props":7012,"children":7013},{"style":1053},[7014],{"type":998,"value":7015},"text_processor ",{"type":993,"tag":1026,"props":7017,"children":7018},{"style":1041},[7019],{"type":998,"value":1093},{"type":993,"tag":1026,"props":7021,"children":7022},{"style":1053},[7023],{"type":998,"value":7024}," TextProcessor()\n",{"type":993,"tag":1026,"props":7026,"children":7027},{"class":1028,"line":302},[7028],{"type":993,"tag":1026,"props":7029,"children":7030},{"emptyLinePlaceholder":13},[7031],{"type":998,"value":1225},{"type":993,"tag":1026,"props":7033,"children":7034},{"class":1028,"line":311},[7035,7040,7044,7048,7053,7057,7062,7066,7071,7075,7080],{"type":993,"tag":1026,"props":7036,"children":7037},{"style":1053},[7038],{"type":998,"value":7039},"numbers ",{"type":993,"tag":1026,"props":7041,"children":7042},{"style":1041},[7043],{"type":998,"value":1093},{"type":993,"tag":1026,"props":7045,"children":7046},{"style":1053},[7047],{"type":998,"value":6846},{"type":993,"tag":1026,"props":7049,"children":7050},{"style":1139},[7051],{"type":998,"value":7052},"\"1.5\"",{"type":993,"tag":1026,"props":7054,"children":7055},{"style":1053},[7056],{"type":998,"value":2160},{"type":993,"tag":1026,"props":7058,"children":7059},{"style":1139},[7060],{"type":998,"value":7061},"\"2.0\"",{"type":993,"tag":1026,"props":7063,"children":7064},{"style":1053},[7065],{"type":998,"value":2160},{"type":993,"tag":1026,"props":7067,"children":7068},{"style":1139},[7069],{"type":998,"value":7070},"\"invalid\"",{"type":993,"tag":1026,"props":7072,"children":7073},{"style":1053},[7074],{"type":998,"value":2160},{"type":993,"tag":1026,"props":7076,"children":7077},{"style":1139},[7078],{"type":998,"value":7079},"\"3.7\"",{"type":993,"tag":1026,"props":7081,"children":7082},{"style":1053},[7083],{"type":998,"value":7084},"]\n",{"type":993,"tag":1026,"props":7086,"children":7087},{"class":1028,"line":320},[7088,7093,7097,7101,7106,7110,7115,7119,7124],{"type":993,"tag":1026,"props":7089,"children":7090},{"style":1053},[7091],{"type":998,"value":7092},"texts ",{"type":993,"tag":1026,"props":7094,"children":7095},{"style":1041},[7096],{"type":998,"value":1093},{"type":993,"tag":1026,"props":7098,"children":7099},{"style":1053},[7100],{"type":998,"value":6846},{"type":993,"tag":1026,"props":7102,"children":7103},{"style":1139},[7104],{"type":998,"value":7105},"\"hello\"",{"type":993,"tag":1026,"props":7107,"children":7108},{"style":1053},[7109],{"type":998,"value":2160},{"type":993,"tag":1026,"props":7111,"children":7112},{"style":1139},[7113],{"type":998,"value":7114},"\"world\"",{"type":993,"tag":1026,"props":7116,"children":7117},{"style":1053},[7118],{"type":998,"value":2160},{"type":993,"tag":1026,"props":7120,"children":7121},{"style":1139},[7122],{"type":998,"value":7123},"\"python\"",{"type":993,"tag":1026,"props":7125,"children":7126},{"style":1053},[7127],{"type":998,"value":7084},{"type":993,"tag":1026,"props":7129,"children":7130},{"class":1028,"line":329},[7131],{"type":993,"tag":1026,"props":7132,"children":7133},{"emptyLinePlaceholder":13},[7134],{"type":998,"value":1225},{"type":993,"tag":1026,"props":7136,"children":7137},{"class":1028,"line":338},[7138,7142],{"type":993,"tag":1026,"props":7139,"children":7140},{"style":1067},[7141],{"type":998,"value":1420},{"type":993,"tag":1026,"props":7143,"children":7144},{"style":1053},[7145],{"type":998,"value":7146},"(number_processor.process(numbers))\n",{"type":993,"tag":1026,"props":7148,"children":7149},{"class":1028,"line":347},[7150,7154],{"type":993,"tag":1026,"props":7151,"children":7152},{"style":1067},[7153],{"type":998,"value":1420},{"type":993,"tag":1026,"props":7155,"children":7156},{"style":1053},[7157],{"type":998,"value":7158},"(text_processor.process(texts))\n",{"type":993,"tag":1478,"props":7160,"children":7164},{"emoji":7161,"title":7162,"type":7163},"✅","Best Practices","success",[7165,7173,7196,7204,7227,7235],{"type":993,"tag":1001,"props":7166,"children":7167},{},[7168],{"type":993,"tag":1488,"props":7169,"children":7170},{},[7171],{"type":998,"value":7172},"Inheritance Design:",{"type":993,"tag":1494,"props":7174,"children":7175},{},[7176,7181,7186,7191],{"type":993,"tag":1498,"props":7177,"children":7178},{},[7179],{"type":998,"value":7180},"Use inheritance for \"is-a\" relationships, composition for \"has-a\"",{"type":993,"tag":1498,"props":7182,"children":7183},{},[7184],{"type":998,"value":7185},"Keep inheritance hierarchies shallow and focused",{"type":993,"tag":1498,"props":7187,"children":7188},{},[7189],{"type":998,"value":7190},"Document the relationship between parent and child classes",{"type":993,"tag":1498,"props":7192,"children":7193},{},[7194],{"type":998,"value":7195},"Consider whether inheritance is the best solution",{"type":993,"tag":1001,"props":7197,"children":7198},{},[7199],{"type":993,"tag":1488,"props":7200,"children":7201},{},[7202],{"type":998,"value":7203},"Method Guidelines:",{"type":993,"tag":1494,"props":7205,"children":7206},{},[7207,7212,7217,7222],{"type":993,"tag":1498,"props":7208,"children":7209},{},[7210],{"type":998,"value":7211},"Override methods when you need different behavior",{"type":993,"tag":1498,"props":7213,"children":7214},{},[7215],{"type":998,"value":7216},"Use super() to extend rather than replace functionality",{"type":993,"tag":1498,"props":7218,"children":7219},{},[7220],{"type":998,"value":7221},"Maintain consistent interfaces across related classes",{"type":993,"tag":1498,"props":7223,"children":7224},{},[7225],{"type":998,"value":7226},"Handle edge cases in both parent and child methods",{"type":993,"tag":1001,"props":7228,"children":7229},{},[7230],{"type":993,"tag":1488,"props":7231,"children":7232},{},[7233],{"type":998,"value":7234},"Organization:",{"type":993,"tag":1494,"props":7236,"children":7237},{},[7238,7243,7248,7253],{"type":993,"tag":1498,"props":7239,"children":7240},{},[7241],{"type":998,"value":7242},"Group related classes in logical hierarchies",{"type":993,"tag":1498,"props":7244,"children":7245},{},[7246],{"type":998,"value":7247},"Use abstract base classes for common interfaces",{"type":993,"tag":1498,"props":7249,"children":7250},{},[7251],{"type":998,"value":7252},"Consider multiple inheritance carefully",{"type":993,"tag":1498,"props":7254,"children":7255},{},[7256],{"type":998,"value":7257},"Test inheritance relationships thoroughly",{"type":993,"tag":7259,"props":7260,"children":7262},"content-exercise",{":widget-view":7261,"category":6,"id":702},"true",[],{"type":993,"tag":7264,"props":7265,"children":7268},"exercise",{"hint":7266,"prompt":7267},"Use super().__init__() to call the parent constructor, and override speak() method in child classes","Create a simple Animal inheritance system. Make a base Animal class with name and age attributes, and a speak() method. Then create Dog and Cat classes that inherit from Animal and override the speak() method with their specific sounds.",[7269],{"type":993,"tag":1016,"props":7270,"children":7272},{"className":1018,"code":7271,"language":6,"meta":8,"style":8},"class Animal:\n    def __init__(self, name, age):\n        # TODO: Set name and age attributes\n        pass\n    \n    def speak(self):\n        # TODO: Generic animal sound\n        pass\n    \n    def get_info(self):\n        # TODO: Return animal information\n        pass\n\nclass Dog(Animal):\n    def __init__(self, name, age):\n        # TODO: Call parent constructor\n        pass\n    \n    def speak(self):\n        # TODO: Override with dog sound\n        pass\n\nclass Cat(Animal):\n    def __init__(self, name, age):\n        # TODO: Call parent constructor\n        pass\n    \n    def speak(self):\n        # TODO: Override with cat sound\n        pass\n\n# TODO: Test your classes\ndog = Dog(\"Buddy\", 5)\ncat = Cat(\"Whiskers\", 3)\n\nprint(dog.get_info())\nprint(dog.speak())\nprint(cat.get_info())\nprint(cat.speak())\n",[7273],{"type":993,"tag":1022,"props":7274,"children":7275},{"__ignoreMap":8},[7276,7291,7307,7325,7333,7340,7355,7371,7378,7385,7400,7416,7423,7430,7453,7468,7484,7491,7498,7513,7529,7536,7543,7567,7582,7597,7604,7611,7626,7642,7649,7656,7673,7705,7739,7746,7758,7770,7782],{"type":993,"tag":1026,"props":7277,"children":7278},{"class":1028,"line":12},[7279,7283,7287],{"type":993,"tag":1026,"props":7280,"children":7281},{"style":1041},[7282],{"type":998,"value":1044},{"type":993,"tag":1026,"props":7284,"children":7285},{"style":1047},[7286],{"type":998,"value":1050},{"type":993,"tag":1026,"props":7288,"children":7289},{"style":1053},[7290],{"type":998,"value":1056},{"type":993,"tag":1026,"props":7292,"children":7293},{"class":1028,"line":27},[7294,7298,7302],{"type":993,"tag":1026,"props":7295,"children":7296},{"style":1041},[7297],{"type":998,"value":1064},{"type":993,"tag":1026,"props":7299,"children":7300},{"style":1067},[7301],{"type":998,"value":1070},{"type":993,"tag":1026,"props":7303,"children":7304},{"style":1053},[7305],{"type":998,"value":7306},"(self, name, age):\n",{"type":993,"tag":1026,"props":7308,"children":7309},{"class":1028,"line":36},[7310,7315,7320],{"type":993,"tag":1026,"props":7311,"children":7312},{"style":1032},[7313],{"type":998,"value":7314},"        # ",{"type":993,"tag":1026,"props":7316,"children":7317},{"style":1041},[7318],{"type":998,"value":7319},"TODO",{"type":993,"tag":1026,"props":7321,"children":7322},{"style":1032},[7323],{"type":998,"value":7324},": Set name and age attributes\n",{"type":993,"tag":1026,"props":7326,"children":7327},{"class":1028,"line":45},[7328],{"type":993,"tag":1026,"props":7329,"children":7330},{"style":1041},[7331],{"type":998,"value":7332},"        pass\n",{"type":993,"tag":1026,"props":7334,"children":7335},{"class":1028,"line":54},[7336],{"type":993,"tag":1026,"props":7337,"children":7338},{"style":1053},[7339],{"type":998,"value":1106},{"type":993,"tag":1026,"props":7341,"children":7342},{"class":1028,"line":63},[7343,7347,7351],{"type":993,"tag":1026,"props":7344,"children":7345},{"style":1041},[7346],{"type":998,"value":1064},{"type":993,"tag":1026,"props":7348,"children":7349},{"style":1047},[7350],{"type":998,"value":1118},{"type":993,"tag":1026,"props":7352,"children":7353},{"style":1053},[7354],{"type":998,"value":1123},{"type":993,"tag":1026,"props":7356,"children":7357},{"class":1028,"line":72},[7358,7362,7366],{"type":993,"tag":1026,"props":7359,"children":7360},{"style":1032},[7361],{"type":998,"value":7314},{"type":993,"tag":1026,"props":7363,"children":7364},{"style":1041},[7365],{"type":998,"value":7319},{"type":993,"tag":1026,"props":7367,"children":7368},{"style":1032},[7369],{"type":998,"value":7370},": Generic animal sound\n",{"type":993,"tag":1026,"props":7372,"children":7373},{"class":1028,"line":81},[7374],{"type":993,"tag":1026,"props":7375,"children":7376},{"style":1041},[7377],{"type":998,"value":7332},{"type":993,"tag":1026,"props":7379,"children":7380},{"class":1028,"line":91},[7381],{"type":993,"tag":1026,"props":7382,"children":7383},{"style":1053},[7384],{"type":998,"value":1106},{"type":993,"tag":1026,"props":7386,"children":7387},{"class":1028,"line":100},[7388,7392,7396],{"type":993,"tag":1026,"props":7389,"children":7390},{"style":1041},[7391],{"type":998,"value":1064},{"type":993,"tag":1026,"props":7393,"children":7394},{"style":1047},[7395],{"type":998,"value":1873},{"type":993,"tag":1026,"props":7397,"children":7398},{"style":1053},[7399],{"type":998,"value":1123},{"type":993,"tag":1026,"props":7401,"children":7402},{"class":1028,"line":109},[7403,7407,7411],{"type":993,"tag":1026,"props":7404,"children":7405},{"style":1032},[7406],{"type":998,"value":7314},{"type":993,"tag":1026,"props":7408,"children":7409},{"style":1041},[7410],{"type":998,"value":7319},{"type":993,"tag":1026,"props":7412,"children":7413},{"style":1032},[7414],{"type":998,"value":7415},": Return animal information\n",{"type":993,"tag":1026,"props":7417,"children":7418},{"class":1028,"line":118},[7419],{"type":993,"tag":1026,"props":7420,"children":7421},{"style":1041},[7422],{"type":998,"value":7332},{"type":993,"tag":1026,"props":7424,"children":7425},{"class":1028,"line":127},[7426],{"type":993,"tag":1026,"props":7427,"children":7428},{"emptyLinePlaceholder":13},[7429],{"type":998,"value":1225},{"type":993,"tag":1026,"props":7431,"children":7432},{"class":1028,"line":136},[7433,7437,7441,7445,7449],{"type":993,"tag":1026,"props":7434,"children":7435},{"style":1041},[7436],{"type":998,"value":1044},{"type":993,"tag":1026,"props":7438,"children":7439},{"style":1047},[7440],{"type":998,"value":1237},{"type":993,"tag":1026,"props":7442,"children":7443},{"style":1053},[7444],{"type":998,"value":1242},{"type":993,"tag":1026,"props":7446,"children":7447},{"style":1047},[7448],{"type":998,"value":1247},{"type":993,"tag":1026,"props":7450,"children":7451},{"style":1053},[7452],{"type":998,"value":2579},{"type":993,"tag":1026,"props":7454,"children":7455},{"class":1028,"line":146},[7456,7460,7464],{"type":993,"tag":1026,"props":7457,"children":7458},{"style":1041},[7459],{"type":998,"value":1064},{"type":993,"tag":1026,"props":7461,"children":7462},{"style":1067},[7463],{"type":998,"value":1070},{"type":993,"tag":1026,"props":7465,"children":7466},{"style":1053},[7467],{"type":998,"value":7306},{"type":993,"tag":1026,"props":7469,"children":7470},{"class":1028,"line":155},[7471,7475,7479],{"type":993,"tag":1026,"props":7472,"children":7473},{"style":1032},[7474],{"type":998,"value":7314},{"type":993,"tag":1026,"props":7476,"children":7477},{"style":1041},[7478],{"type":998,"value":7319},{"type":993,"tag":1026,"props":7480,"children":7481},{"style":1032},[7482],{"type":998,"value":7483},": Call parent constructor\n",{"type":993,"tag":1026,"props":7485,"children":7486},{"class":1028,"line":164},[7487],{"type":993,"tag":1026,"props":7488,"children":7489},{"style":1041},[7490],{"type":998,"value":7332},{"type":993,"tag":1026,"props":7492,"children":7493},{"class":1028,"line":173},[7494],{"type":993,"tag":1026,"props":7495,"children":7496},{"style":1053},[7497],{"type":998,"value":1106},{"type":993,"tag":1026,"props":7499,"children":7500},{"class":1028,"line":182},[7501,7505,7509],{"type":993,"tag":1026,"props":7502,"children":7503},{"style":1041},[7504],{"type":998,"value":1064},{"type":993,"tag":1026,"props":7506,"children":7507},{"style":1047},[7508],{"type":998,"value":1118},{"type":993,"tag":1026,"props":7510,"children":7511},{"style":1053},[7512],{"type":998,"value":1123},{"type":993,"tag":1026,"props":7514,"children":7515},{"class":1028,"line":191},[7516,7520,7524],{"type":993,"tag":1026,"props":7517,"children":7518},{"style":1032},[7519],{"type":998,"value":7314},{"type":993,"tag":1026,"props":7521,"children":7522},{"style":1041},[7523],{"type":998,"value":7319},{"type":993,"tag":1026,"props":7525,"children":7526},{"style":1032},[7527],{"type":998,"value":7528},": Override with dog sound\n",{"type":993,"tag":1026,"props":7530,"children":7531},{"class":1028,"line":201},[7532],{"type":993,"tag":1026,"props":7533,"children":7534},{"style":1041},[7535],{"type":998,"value":7332},{"type":993,"tag":1026,"props":7537,"children":7538},{"class":1028,"line":210},[7539],{"type":993,"tag":1026,"props":7540,"children":7541},{"emptyLinePlaceholder":13},[7542],{"type":998,"value":1225},{"type":993,"tag":1026,"props":7544,"children":7545},{"class":1028,"line":219},[7546,7550,7555,7559,7563],{"type":993,"tag":1026,"props":7547,"children":7548},{"style":1041},[7549],{"type":998,"value":1044},{"type":993,"tag":1026,"props":7551,"children":7552},{"style":1047},[7553],{"type":998,"value":7554}," Cat",{"type":993,"tag":1026,"props":7556,"children":7557},{"style":1053},[7558],{"type":998,"value":1242},{"type":993,"tag":1026,"props":7560,"children":7561},{"style":1047},[7562],{"type":998,"value":1247},{"type":993,"tag":1026,"props":7564,"children":7565},{"style":1053},[7566],{"type":998,"value":2579},{"type":993,"tag":1026,"props":7568,"children":7569},{"class":1028,"line":228},[7570,7574,7578],{"type":993,"tag":1026,"props":7571,"children":7572},{"style":1041},[7573],{"type":998,"value":1064},{"type":993,"tag":1026,"props":7575,"children":7576},{"style":1067},[7577],{"type":998,"value":1070},{"type":993,"tag":1026,"props":7579,"children":7580},{"style":1053},[7581],{"type":998,"value":7306},{"type":993,"tag":1026,"props":7583,"children":7584},{"class":1028,"line":238},[7585,7589,7593],{"type":993,"tag":1026,"props":7586,"children":7587},{"style":1032},[7588],{"type":998,"value":7314},{"type":993,"tag":1026,"props":7590,"children":7591},{"style":1041},[7592],{"type":998,"value":7319},{"type":993,"tag":1026,"props":7594,"children":7595},{"style":1032},[7596],{"type":998,"value":7483},{"type":993,"tag":1026,"props":7598,"children":7599},{"class":1028,"line":247},[7600],{"type":993,"tag":1026,"props":7601,"children":7602},{"style":1041},[7603],{"type":998,"value":7332},{"type":993,"tag":1026,"props":7605,"children":7606},{"class":1028,"line":256},[7607],{"type":993,"tag":1026,"props":7608,"children":7609},{"style":1053},[7610],{"type":998,"value":1106},{"type":993,"tag":1026,"props":7612,"children":7613},{"class":1028,"line":265},[7614,7618,7622],{"type":993,"tag":1026,"props":7615,"children":7616},{"style":1041},[7617],{"type":998,"value":1064},{"type":993,"tag":1026,"props":7619,"children":7620},{"style":1047},[7621],{"type":998,"value":1118},{"type":993,"tag":1026,"props":7623,"children":7624},{"style":1053},[7625],{"type":998,"value":1123},{"type":993,"tag":1026,"props":7627,"children":7628},{"class":1028,"line":274},[7629,7633,7637],{"type":993,"tag":1026,"props":7630,"children":7631},{"style":1032},[7632],{"type":998,"value":7314},{"type":993,"tag":1026,"props":7634,"children":7635},{"style":1041},[7636],{"type":998,"value":7319},{"type":993,"tag":1026,"props":7638,"children":7639},{"style":1032},[7640],{"type":998,"value":7641},": Override with cat sound\n",{"type":993,"tag":1026,"props":7643,"children":7644},{"class":1028,"line":284},[7645],{"type":993,"tag":1026,"props":7646,"children":7647},{"style":1041},[7648],{"type":998,"value":7332},{"type":993,"tag":1026,"props":7650,"children":7651},{"class":1028,"line":293},[7652],{"type":993,"tag":1026,"props":7653,"children":7654},{"emptyLinePlaceholder":13},[7655],{"type":998,"value":1225},{"type":993,"tag":1026,"props":7657,"children":7658},{"class":1028,"line":302},[7659,7664,7668],{"type":993,"tag":1026,"props":7660,"children":7661},{"style":1032},[7662],{"type":998,"value":7663},"# ",{"type":993,"tag":1026,"props":7665,"children":7666},{"style":1041},[7667],{"type":998,"value":7319},{"type":993,"tag":1026,"props":7669,"children":7670},{"style":1032},[7671],{"type":998,"value":7672},": Test your classes\n",{"type":993,"tag":1026,"props":7674,"children":7675},{"class":1028,"line":311},[7676,7681,7685,7689,7693,7697,7701],{"type":993,"tag":1026,"props":7677,"children":7678},{"style":1053},[7679],{"type":998,"value":7680},"dog ",{"type":993,"tag":1026,"props":7682,"children":7683},{"style":1041},[7684],{"type":998,"value":1093},{"type":993,"tag":1026,"props":7686,"children":7687},{"style":1053},[7688],{"type":998,"value":1402},{"type":993,"tag":1026,"props":7690,"children":7691},{"style":1139},[7692],{"type":998,"value":1407},{"type":993,"tag":1026,"props":7694,"children":7695},{"style":1053},[7696],{"type":998,"value":2160},{"type":993,"tag":1026,"props":7698,"children":7699},{"style":1067},[7700],{"type":998,"value":3568},{"type":993,"tag":1026,"props":7702,"children":7703},{"style":1053},[7704],{"type":998,"value":1412},{"type":993,"tag":1026,"props":7706,"children":7707},{"class":1028,"line":320},[7708,7713,7717,7722,7727,7731,7735],{"type":993,"tag":1026,"props":7709,"children":7710},{"style":1053},[7711],{"type":998,"value":7712},"cat ",{"type":993,"tag":1026,"props":7714,"children":7715},{"style":1041},[7716],{"type":998,"value":1093},{"type":993,"tag":1026,"props":7718,"children":7719},{"style":1053},[7720],{"type":998,"value":7721}," Cat(",{"type":993,"tag":1026,"props":7723,"children":7724},{"style":1139},[7725],{"type":998,"value":7726},"\"Whiskers\"",{"type":993,"tag":1026,"props":7728,"children":7729},{"style":1053},[7730],{"type":998,"value":2160},{"type":993,"tag":1026,"props":7732,"children":7733},{"style":1067},[7734],{"type":998,"value":3577},{"type":993,"tag":1026,"props":7736,"children":7737},{"style":1053},[7738],{"type":998,"value":1412},{"type":993,"tag":1026,"props":7740,"children":7741},{"class":1028,"line":329},[7742],{"type":993,"tag":1026,"props":7743,"children":7744},{"emptyLinePlaceholder":13},[7745],{"type":998,"value":1225},{"type":993,"tag":1026,"props":7747,"children":7748},{"class":1028,"line":338},[7749,7753],{"type":993,"tag":1026,"props":7750,"children":7751},{"style":1067},[7752],{"type":998,"value":1420},{"type":993,"tag":1026,"props":7754,"children":7755},{"style":1053},[7756],{"type":998,"value":7757},"(dog.get_info())\n",{"type":993,"tag":1026,"props":7759,"children":7760},{"class":1028,"line":347},[7761,7765],{"type":993,"tag":1026,"props":7762,"children":7763},{"style":1067},[7764],{"type":998,"value":1420},{"type":993,"tag":1026,"props":7766,"children":7767},{"style":1053},[7768],{"type":998,"value":7769},"(dog.speak())\n",{"type":993,"tag":1026,"props":7771,"children":7772},{"class":1028,"line":356},[7773,7777],{"type":993,"tag":1026,"props":7774,"children":7775},{"style":1067},[7776],{"type":998,"value":1420},{"type":993,"tag":1026,"props":7778,"children":7779},{"style":1053},[7780],{"type":998,"value":7781},"(cat.get_info())\n",{"type":993,"tag":1026,"props":7783,"children":7784},{"class":1028,"line":365},[7785,7789],{"type":993,"tag":1026,"props":7786,"children":7787},{"style":1067},[7788],{"type":998,"value":1420},{"type":993,"tag":1026,"props":7790,"children":7791},{"style":1053},[7792],{"type":998,"value":7793},"(cat.speak())\n",{"type":993,"tag":1602,"props":7795,"children":7797},{"id":7796},"solution-and-explanation",[7798],{"type":998,"value":7799},"Solution and Explanation 💡",{"type":993,"tag":7801,"props":7802,"children":7803},"details",{},[7804,7812,8437,8445],{"type":993,"tag":7805,"props":7806,"children":7809},"summary",{"className":7807},[7808],"cursor-pointer",[7810],{"type":998,"value":7811},"Click to see the complete solution",{"type":993,"tag":1012,"props":7813,"children":7814},{},[7815],{"type":993,"tag":1016,"props":7816,"children":7818},{"className":1018,"code":7817,"language":6,"meta":8,"style":8},"class Animal:\n    def __init__(self, name, age):\n        # Set name and age attributes\n        self.name = name\n        self.age = age\n    \n    def speak(self):\n        # Generic animal sound\n        return f\"{self.name} makes a sound\"\n    \n    def get_info(self):\n        # Return animal information\n        return f\"{self.name} is {self.age} years old\"\n\nclass Dog(Animal):\n    def __init__(self, name, age):\n        # Call parent constructor\n        super().__init__(name, age)\n    \n    def speak(self):\n        # Override with dog sound\n        return f\"{self.name} says Woof!\"\n\nclass Cat(Animal):\n    def __init__(self, name, age):\n        # Call parent constructor\n        super().__init__(name, age)\n    \n    def speak(self):\n        # Override with cat sound\n        return f\"{self.name} says Meow!\"\n\n# Test your classes\ndog = Dog(\"Buddy\", 5)\ncat = Cat(\"Whiskers\", 3)\n\nprint(dog.get_info())\nprint(dog.speak())\nprint(cat.get_info())\nprint(cat.speak())\n",[7819],{"type":993,"tag":1022,"props":7820,"children":7821},{"__ignoreMap":8},[7822,7837,7852,7860,7879,7900,7907,7922,7930,7961,7968,7983,7991,8041,8048,8071,8086,8094,8114,8121,8136,8144,8176,8183,8206,8221,8228,8247,8254,8269,8277,8309,8316,8324,8355,8386,8393,8404,8415,8426],{"type":993,"tag":1026,"props":7823,"children":7824},{"class":1028,"line":12},[7825,7829,7833],{"type":993,"tag":1026,"props":7826,"children":7827},{"style":1041},[7828],{"type":998,"value":1044},{"type":993,"tag":1026,"props":7830,"children":7831},{"style":1047},[7832],{"type":998,"value":1050},{"type":993,"tag":1026,"props":7834,"children":7835},{"style":1053},[7836],{"type":998,"value":1056},{"type":993,"tag":1026,"props":7838,"children":7839},{"class":1028,"line":27},[7840,7844,7848],{"type":993,"tag":1026,"props":7841,"children":7842},{"style":1041},[7843],{"type":998,"value":1064},{"type":993,"tag":1026,"props":7845,"children":7846},{"style":1067},[7847],{"type":998,"value":1070},{"type":993,"tag":1026,"props":7849,"children":7850},{"style":1053},[7851],{"type":998,"value":7306},{"type":993,"tag":1026,"props":7853,"children":7854},{"class":1028,"line":36},[7855],{"type":993,"tag":1026,"props":7856,"children":7857},{"style":1032},[7858],{"type":998,"value":7859},"        # Set name and age attributes\n",{"type":993,"tag":1026,"props":7861,"children":7862},{"class":1028,"line":45},[7863,7867,7871,7875],{"type":993,"tag":1026,"props":7864,"children":7865},{"style":1067},[7866],{"type":998,"value":1083},{"type":993,"tag":1026,"props":7868,"children":7869},{"style":1053},[7870],{"type":998,"value":1088},{"type":993,"tag":1026,"props":7872,"children":7873},{"style":1041},[7874],{"type":998,"value":1093},{"type":993,"tag":1026,"props":7876,"children":7877},{"style":1053},[7878],{"type":998,"value":1098},{"type":993,"tag":1026,"props":7880,"children":7881},{"class":1028,"line":54},[7882,7886,7891,7895],{"type":993,"tag":1026,"props":7883,"children":7884},{"style":1067},[7885],{"type":998,"value":1083},{"type":993,"tag":1026,"props":7887,"children":7888},{"style":1053},[7889],{"type":998,"value":7890},".age ",{"type":993,"tag":1026,"props":7892,"children":7893},{"style":1041},[7894],{"type":998,"value":1093},{"type":993,"tag":1026,"props":7896,"children":7897},{"style":1053},[7898],{"type":998,"value":7899}," age\n",{"type":993,"tag":1026,"props":7901,"children":7902},{"class":1028,"line":63},[7903],{"type":993,"tag":1026,"props":7904,"children":7905},{"style":1053},[7906],{"type":998,"value":1106},{"type":993,"tag":1026,"props":7908,"children":7909},{"class":1028,"line":72},[7910,7914,7918],{"type":993,"tag":1026,"props":7911,"children":7912},{"style":1041},[7913],{"type":998,"value":1064},{"type":993,"tag":1026,"props":7915,"children":7916},{"style":1047},[7917],{"type":998,"value":1118},{"type":993,"tag":1026,"props":7919,"children":7920},{"style":1053},[7921],{"type":998,"value":1123},{"type":993,"tag":1026,"props":7923,"children":7924},{"class":1028,"line":81},[7925],{"type":993,"tag":1026,"props":7926,"children":7927},{"style":1032},[7928],{"type":998,"value":7929},"        # Generic animal sound\n",{"type":993,"tag":1026,"props":7931,"children":7932},{"class":1028,"line":91},[7933,7937,7941,7945,7949,7953,7957],{"type":993,"tag":1026,"props":7934,"children":7935},{"style":1041},[7936],{"type":998,"value":1131},{"type":993,"tag":1026,"props":7938,"children":7939},{"style":1041},[7940],{"type":998,"value":1136},{"type":993,"tag":1026,"props":7942,"children":7943},{"style":1139},[7944],{"type":998,"value":1142},{"type":993,"tag":1026,"props":7946,"children":7947},{"style":1067},[7948],{"type":998,"value":1147},{"type":993,"tag":1026,"props":7950,"children":7951},{"style":1053},[7952],{"type":998,"value":1152},{"type":993,"tag":1026,"props":7954,"children":7955},{"style":1067},[7956],{"type":998,"value":1157},{"type":993,"tag":1026,"props":7958,"children":7959},{"style":1139},[7960],{"type":998,"value":1162},{"type":993,"tag":1026,"props":7962,"children":7963},{"class":1028,"line":100},[7964],{"type":993,"tag":1026,"props":7965,"children":7966},{"style":1053},[7967],{"type":998,"value":1106},{"type":993,"tag":1026,"props":7969,"children":7970},{"class":1028,"line":109},[7971,7975,7979],{"type":993,"tag":1026,"props":7972,"children":7973},{"style":1041},[7974],{"type":998,"value":1064},{"type":993,"tag":1026,"props":7976,"children":7977},{"style":1047},[7978],{"type":998,"value":1873},{"type":993,"tag":1026,"props":7980,"children":7981},{"style":1053},[7982],{"type":998,"value":1123},{"type":993,"tag":1026,"props":7984,"children":7985},{"class":1028,"line":118},[7986],{"type":993,"tag":1026,"props":7987,"children":7988},{"style":1032},[7989],{"type":998,"value":7990},"        # Return animal information\n",{"type":993,"tag":1026,"props":7992,"children":7993},{"class":1028,"line":127},[7994,7998,8002,8006,8010,8014,8018,8023,8027,8032,8036],{"type":993,"tag":1026,"props":7995,"children":7996},{"style":1041},[7997],{"type":998,"value":1131},{"type":993,"tag":1026,"props":7999,"children":8000},{"style":1041},[8001],{"type":998,"value":1136},{"type":993,"tag":1026,"props":8003,"children":8004},{"style":1139},[8005],{"type":998,"value":1142},{"type":993,"tag":1026,"props":8007,"children":8008},{"style":1067},[8009],{"type":998,"value":1147},{"type":993,"tag":1026,"props":8011,"children":8012},{"style":1053},[8013],{"type":998,"value":1152},{"type":993,"tag":1026,"props":8015,"children":8016},{"style":1067},[8017],{"type":998,"value":1157},{"type":993,"tag":1026,"props":8019,"children":8020},{"style":1139},[8021],{"type":998,"value":8022}," is ",{"type":993,"tag":1026,"props":8024,"children":8025},{"style":1067},[8026],{"type":998,"value":1147},{"type":993,"tag":1026,"props":8028,"children":8029},{"style":1053},[8030],{"type":998,"value":8031},".age",{"type":993,"tag":1026,"props":8033,"children":8034},{"style":1067},[8035],{"type":998,"value":1157},{"type":993,"tag":1026,"props":8037,"children":8038},{"style":1139},[8039],{"type":998,"value":8040}," years old\"\n",{"type":993,"tag":1026,"props":8042,"children":8043},{"class":1028,"line":136},[8044],{"type":993,"tag":1026,"props":8045,"children":8046},{"emptyLinePlaceholder":13},[8047],{"type":998,"value":1225},{"type":993,"tag":1026,"props":8049,"children":8050},{"class":1028,"line":146},[8051,8055,8059,8063,8067],{"type":993,"tag":1026,"props":8052,"children":8053},{"style":1041},[8054],{"type":998,"value":1044},{"type":993,"tag":1026,"props":8056,"children":8057},{"style":1047},[8058],{"type":998,"value":1237},{"type":993,"tag":1026,"props":8060,"children":8061},{"style":1053},[8062],{"type":998,"value":1242},{"type":993,"tag":1026,"props":8064,"children":8065},{"style":1047},[8066],{"type":998,"value":1247},{"type":993,"tag":1026,"props":8068,"children":8069},{"style":1053},[8070],{"type":998,"value":2579},{"type":993,"tag":1026,"props":8072,"children":8073},{"class":1028,"line":155},[8074,8078,8082],{"type":993,"tag":1026,"props":8075,"children":8076},{"style":1041},[8077],{"type":998,"value":1064},{"type":993,"tag":1026,"props":8079,"children":8080},{"style":1067},[8081],{"type":998,"value":1070},{"type":993,"tag":1026,"props":8083,"children":8084},{"style":1053},[8085],{"type":998,"value":7306},{"type":993,"tag":1026,"props":8087,"children":8088},{"class":1028,"line":164},[8089],{"type":993,"tag":1026,"props":8090,"children":8091},{"style":1032},[8092],{"type":998,"value":8093},"        # Call parent constructor\n",{"type":993,"tag":1026,"props":8095,"children":8096},{"class":1028,"line":173},[8097,8101,8105,8109],{"type":993,"tag":1026,"props":8098,"children":8099},{"style":1067},[8100],{"type":998,"value":2000},{"type":993,"tag":1026,"props":8102,"children":8103},{"style":1053},[8104],{"type":998,"value":2005},{"type":993,"tag":1026,"props":8106,"children":8107},{"style":1067},[8108],{"type":998,"value":2010},{"type":993,"tag":1026,"props":8110,"children":8111},{"style":1053},[8112],{"type":998,"value":8113},"(name, age)\n",{"type":993,"tag":1026,"props":8115,"children":8116},{"class":1028,"line":182},[8117],{"type":993,"tag":1026,"props":8118,"children":8119},{"style":1053},[8120],{"type":998,"value":1106},{"type":993,"tag":1026,"props":8122,"children":8123},{"class":1028,"line":191},[8124,8128,8132],{"type":993,"tag":1026,"props":8125,"children":8126},{"style":1041},[8127],{"type":998,"value":1064},{"type":993,"tag":1026,"props":8129,"children":8130},{"style":1047},[8131],{"type":998,"value":1118},{"type":993,"tag":1026,"props":8133,"children":8134},{"style":1053},[8135],{"type":998,"value":1123},{"type":993,"tag":1026,"props":8137,"children":8138},{"class":1028,"line":201},[8139],{"type":993,"tag":1026,"props":8140,"children":8141},{"style":1032},[8142],{"type":998,"value":8143},"        # Override with dog sound\n",{"type":993,"tag":1026,"props":8145,"children":8146},{"class":1028,"line":210},[8147,8151,8155,8159,8163,8167,8171],{"type":993,"tag":1026,"props":8148,"children":8149},{"style":1041},[8150],{"type":998,"value":1131},{"type":993,"tag":1026,"props":8152,"children":8153},{"style":1041},[8154],{"type":998,"value":1136},{"type":993,"tag":1026,"props":8156,"children":8157},{"style":1139},[8158],{"type":998,"value":1142},{"type":993,"tag":1026,"props":8160,"children":8161},{"style":1067},[8162],{"type":998,"value":1147},{"type":993,"tag":1026,"props":8164,"children":8165},{"style":1053},[8166],{"type":998,"value":1152},{"type":993,"tag":1026,"props":8168,"children":8169},{"style":1067},[8170],{"type":998,"value":1157},{"type":993,"tag":1026,"props":8172,"children":8173},{"style":1139},[8174],{"type":998,"value":8175}," says Woof!\"\n",{"type":993,"tag":1026,"props":8177,"children":8178},{"class":1028,"line":219},[8179],{"type":993,"tag":1026,"props":8180,"children":8181},{"emptyLinePlaceholder":13},[8182],{"type":998,"value":1225},{"type":993,"tag":1026,"props":8184,"children":8185},{"class":1028,"line":228},[8186,8190,8194,8198,8202],{"type":993,"tag":1026,"props":8187,"children":8188},{"style":1041},[8189],{"type":998,"value":1044},{"type":993,"tag":1026,"props":8191,"children":8192},{"style":1047},[8193],{"type":998,"value":7554},{"type":993,"tag":1026,"props":8195,"children":8196},{"style":1053},[8197],{"type":998,"value":1242},{"type":993,"tag":1026,"props":8199,"children":8200},{"style":1047},[8201],{"type":998,"value":1247},{"type":993,"tag":1026,"props":8203,"children":8204},{"style":1053},[8205],{"type":998,"value":2579},{"type":993,"tag":1026,"props":8207,"children":8208},{"class":1028,"line":238},[8209,8213,8217],{"type":993,"tag":1026,"props":8210,"children":8211},{"style":1041},[8212],{"type":998,"value":1064},{"type":993,"tag":1026,"props":8214,"children":8215},{"style":1067},[8216],{"type":998,"value":1070},{"type":993,"tag":1026,"props":8218,"children":8219},{"style":1053},[8220],{"type":998,"value":7306},{"type":993,"tag":1026,"props":8222,"children":8223},{"class":1028,"line":247},[8224],{"type":993,"tag":1026,"props":8225,"children":8226},{"style":1032},[8227],{"type":998,"value":8093},{"type":993,"tag":1026,"props":8229,"children":8230},{"class":1028,"line":256},[8231,8235,8239,8243],{"type":993,"tag":1026,"props":8232,"children":8233},{"style":1067},[8234],{"type":998,"value":2000},{"type":993,"tag":1026,"props":8236,"children":8237},{"style":1053},[8238],{"type":998,"value":2005},{"type":993,"tag":1026,"props":8240,"children":8241},{"style":1067},[8242],{"type":998,"value":2010},{"type":993,"tag":1026,"props":8244,"children":8245},{"style":1053},[8246],{"type":998,"value":8113},{"type":993,"tag":1026,"props":8248,"children":8249},{"class":1028,"line":265},[8250],{"type":993,"tag":1026,"props":8251,"children":8252},{"style":1053},[8253],{"type":998,"value":1106},{"type":993,"tag":1026,"props":8255,"children":8256},{"class":1028,"line":274},[8257,8261,8265],{"type":993,"tag":1026,"props":8258,"children":8259},{"style":1041},[8260],{"type":998,"value":1064},{"type":993,"tag":1026,"props":8262,"children":8263},{"style":1047},[8264],{"type":998,"value":1118},{"type":993,"tag":1026,"props":8266,"children":8267},{"style":1053},[8268],{"type":998,"value":1123},{"type":993,"tag":1026,"props":8270,"children":8271},{"class":1028,"line":284},[8272],{"type":993,"tag":1026,"props":8273,"children":8274},{"style":1032},[8275],{"type":998,"value":8276},"        # Override with cat sound\n",{"type":993,"tag":1026,"props":8278,"children":8279},{"class":1028,"line":293},[8280,8284,8288,8292,8296,8300,8304],{"type":993,"tag":1026,"props":8281,"children":8282},{"style":1041},[8283],{"type":998,"value":1131},{"type":993,"tag":1026,"props":8285,"children":8286},{"style":1041},[8287],{"type":998,"value":1136},{"type":993,"tag":1026,"props":8289,"children":8290},{"style":1139},[8291],{"type":998,"value":1142},{"type":993,"tag":1026,"props":8293,"children":8294},{"style":1067},[8295],{"type":998,"value":1147},{"type":993,"tag":1026,"props":8297,"children":8298},{"style":1053},[8299],{"type":998,"value":1152},{"type":993,"tag":1026,"props":8301,"children":8302},{"style":1067},[8303],{"type":998,"value":1157},{"type":993,"tag":1026,"props":8305,"children":8306},{"style":1139},[8307],{"type":998,"value":8308}," says Meow!\"\n",{"type":993,"tag":1026,"props":8310,"children":8311},{"class":1028,"line":302},[8312],{"type":993,"tag":1026,"props":8313,"children":8314},{"emptyLinePlaceholder":13},[8315],{"type":998,"value":1225},{"type":993,"tag":1026,"props":8317,"children":8318},{"class":1028,"line":311},[8319],{"type":993,"tag":1026,"props":8320,"children":8321},{"style":1032},[8322],{"type":998,"value":8323},"# Test your classes\n",{"type":993,"tag":1026,"props":8325,"children":8326},{"class":1028,"line":320},[8327,8331,8335,8339,8343,8347,8351],{"type":993,"tag":1026,"props":8328,"children":8329},{"style":1053},[8330],{"type":998,"value":7680},{"type":993,"tag":1026,"props":8332,"children":8333},{"style":1041},[8334],{"type":998,"value":1093},{"type":993,"tag":1026,"props":8336,"children":8337},{"style":1053},[8338],{"type":998,"value":1402},{"type":993,"tag":1026,"props":8340,"children":8341},{"style":1139},[8342],{"type":998,"value":1407},{"type":993,"tag":1026,"props":8344,"children":8345},{"style":1053},[8346],{"type":998,"value":2160},{"type":993,"tag":1026,"props":8348,"children":8349},{"style":1067},[8350],{"type":998,"value":3568},{"type":993,"tag":1026,"props":8352,"children":8353},{"style":1053},[8354],{"type":998,"value":1412},{"type":993,"tag":1026,"props":8356,"children":8357},{"class":1028,"line":329},[8358,8362,8366,8370,8374,8378,8382],{"type":993,"tag":1026,"props":8359,"children":8360},{"style":1053},[8361],{"type":998,"value":7712},{"type":993,"tag":1026,"props":8363,"children":8364},{"style":1041},[8365],{"type":998,"value":1093},{"type":993,"tag":1026,"props":8367,"children":8368},{"style":1053},[8369],{"type":998,"value":7721},{"type":993,"tag":1026,"props":8371,"children":8372},{"style":1139},[8373],{"type":998,"value":7726},{"type":993,"tag":1026,"props":8375,"children":8376},{"style":1053},[8377],{"type":998,"value":2160},{"type":993,"tag":1026,"props":8379,"children":8380},{"style":1067},[8381],{"type":998,"value":3577},{"type":993,"tag":1026,"props":8383,"children":8384},{"style":1053},[8385],{"type":998,"value":1412},{"type":993,"tag":1026,"props":8387,"children":8388},{"class":1028,"line":338},[8389],{"type":993,"tag":1026,"props":8390,"children":8391},{"emptyLinePlaceholder":13},[8392],{"type":998,"value":1225},{"type":993,"tag":1026,"props":8394,"children":8395},{"class":1028,"line":347},[8396,8400],{"type":993,"tag":1026,"props":8397,"children":8398},{"style":1067},[8399],{"type":998,"value":1420},{"type":993,"tag":1026,"props":8401,"children":8402},{"style":1053},[8403],{"type":998,"value":7757},{"type":993,"tag":1026,"props":8405,"children":8406},{"class":1028,"line":356},[8407,8411],{"type":993,"tag":1026,"props":8408,"children":8409},{"style":1067},[8410],{"type":998,"value":1420},{"type":993,"tag":1026,"props":8412,"children":8413},{"style":1053},[8414],{"type":998,"value":7769},{"type":993,"tag":1026,"props":8416,"children":8417},{"class":1028,"line":365},[8418,8422],{"type":993,"tag":1026,"props":8419,"children":8420},{"style":1067},[8421],{"type":998,"value":1420},{"type":993,"tag":1026,"props":8423,"children":8424},{"style":1053},[8425],{"type":998,"value":7781},{"type":993,"tag":1026,"props":8427,"children":8428},{"class":1028,"line":374},[8429,8433],{"type":993,"tag":1026,"props":8430,"children":8431},{"style":1067},[8432],{"type":998,"value":1420},{"type":993,"tag":1026,"props":8434,"children":8435},{"style":1053},[8436],{"type":998,"value":7793},{"type":993,"tag":1001,"props":8438,"children":8439},{},[8440],{"type":993,"tag":1488,"props":8441,"children":8442},{},[8443],{"type":998,"value":8444},"Key Learning Points:",{"type":993,"tag":1494,"props":8446,"children":8447},{},[8448,8460,8478,8489,8500],{"type":993,"tag":1498,"props":8449,"children":8450},{},[8451,8453,8458],{"type":998,"value":8452},"📌 ",{"type":993,"tag":1488,"props":8454,"children":8455},{},[8456],{"type":998,"value":8457},"Inheritance",{"type":998,"value":8459},": Child classes inherit attributes and methods from parent class",{"type":993,"tag":1498,"props":8461,"children":8462},{},[8463,8464,8468,8470,8476],{"type":998,"value":8452},{"type":993,"tag":1488,"props":8465,"children":8466},{},[8467],{"type":998,"value":2294},{"type":998,"value":8469},": Use ",{"type":993,"tag":1022,"props":8471,"children":8473},{"className":8472},[],[8474],{"type":998,"value":8475},"super().__init__()",{"type":998,"value":8477}," to call parent constructor",{"type":993,"tag":1498,"props":8479,"children":8480},{},[8481,8482,8487],{"type":998,"value":8452},{"type":993,"tag":1488,"props":8483,"children":8484},{},[8485],{"type":998,"value":8486},"Method overriding",{"type":998,"value":8488},": Child classes can provide their own version of parent methods",{"type":993,"tag":1498,"props":8490,"children":8491},{},[8492,8493,8498],{"type":998,"value":8452},{"type":993,"tag":1488,"props":8494,"children":8495},{},[8496],{"type":998,"value":8497},"Code reuse",{"type":998,"value":8499},": Common functionality stays in parent class, specific behavior in child classes",{"type":993,"tag":1498,"props":8501,"children":8502},{},[8503,8504,8508],{"type":998,"value":8452},{"type":993,"tag":1488,"props":8505,"children":8506},{},[8507],{"type":998,"value":1598},{"type":998,"value":8509},": Different objects can respond to same method call differently",{"type":993,"tag":1466,"props":8511,"children":8513},{"id":8512},"test-your-knowledge",[8514],{"type":998,"value":8515},"Test Your Knowledge",{"type":993,"tag":1001,"props":8517,"children":8518},{},[8519],{"type":998,"value":8520},"Test what you've learned about class inheritance:",{"type":993,"tag":8522,"props":8523,"children":8527},"redirect-button",{"icon":8524,"label":8525,"url":8526},"pi pi-send","Take Quiz","/tutorial-quiz/python/class-inheritance",[],{"type":993,"tag":1466,"props":8529,"children":8531},{"id":8530},"whats-next",[8532],{"type":998,"value":8533},"What's Next?",{"type":993,"tag":1001,"props":8535,"children":8536},{},[8537],{"type":998,"value":8538},"Now that you understand inheritance basics, you're ready to dive deeper into method overriding. This technique allows you to customize inherited methods to create specialized behaviors while maintaining the same interface.",{"type":993,"tag":1001,"props":8540,"children":8541},{},[8542,8544,8549],{"type":998,"value":8543},"Ready to continue? Check out our lesson on ",{"type":993,"tag":8545,"props":8546,"children":8547},"a",{"href":708},[8548],{"type":998,"value":709},{"type":998,"value":5507},{"type":993,"tag":8551,"props":8552,"children":8553},"style",{},[8554],{"type":998,"value":8555},"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":8557},[8558,8562,8566,8570,8573,8577,8578],{"id":1468,"depth":27,"text":1471,"children":8559},[8560,8561],{"id":1604,"depth":36,"text":1607},{"id":2280,"depth":36,"text":2283},{"id":711,"depth":27,"text":3012,"children":8563},[8564,8565],{"id":3020,"depth":36,"text":3023},{"id":3659,"depth":36,"text":3662},{"id":4521,"depth":27,"text":4524,"children":8567},[8568,8569],{"id":4621,"depth":36,"text":4624},{"id":5146,"depth":36,"text":5149},{"id":5634,"depth":27,"text":5637,"children":8571},[8572],{"id":5640,"depth":36,"text":5643},{"id":6454,"depth":27,"text":6457,"children":8574},[8575,8576],{"id":6460,"depth":36,"text":6463},{"id":7796,"depth":36,"text":7799},{"id":8512,"depth":27,"text":8515},{"id":8530,"depth":27,"text":8533},1782373747141]