[{"data":1,"prerenderedAt":4710},["ShallowReactive",2],{"tutorials-python":3,"category-items-python":987,"content-/python/python-code-structure":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},"/python/python-dictionaries","Python Dictionaries","Learn about Python dictionaries - key-value data structures for storing and organizing related information","python-dictionaries",56,"content:python:56.python-dictionaries.md","python/56.python-dictionaries.md","python/56.python-dictionaries",[525,534,543,552,561,570,579,588,597],{"_path":526,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":527,"description":528,"slug":529,"parentId":516,"order":530,"_type":15,"_id":531,"_source":17,"_file":532,"_stem":533,"_extension":20},"/python/creating-dictionaries","Creating Dictionaries","Learn different methods to create Python dictionaries using literals, constructors, and comprehensions","creating-dictionaries",57,"content:python:57.creating-dictionaries.md","python/57.creating-dictionaries.md","python/57.creating-dictionaries",{"_path":535,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":536,"description":537,"slug":538,"parentId":516,"order":539,"_type":15,"_id":540,"_source":17,"_file":541,"_stem":542,"_extension":20},"/python/getting-dictionary-values","Getting Dictionary Values","Learn safe and efficient methods to retrieve data from Python dictionaries using various access techniques","getting-dictionary-values",58,"content:python:58.getting-dictionary-values.md","python/58.getting-dictionary-values.md","python/58.getting-dictionary-values",{"_path":544,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":545,"description":546,"slug":547,"parentId":516,"order":548,"_type":15,"_id":549,"_source":17,"_file":550,"_stem":551,"_extension":20},"/python/updating-dictionaries","Updating Dictionaries","Learn how to modify and maintain Python dictionary data using various update methods and techniques","updating-dictionaries",59,"content:python:59.updating-dictionaries.md","python/59.updating-dictionaries.md","python/59.updating-dictionaries",{"_path":553,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":554,"description":555,"slug":556,"parentId":516,"order":557,"_type":15,"_id":558,"_source":17,"_file":559,"_stem":560,"_extension":20},"/python/adding-dictionary-items","Adding Dictionary Items","Learn effective techniques for adding new items to Python dictionaries with various methods and best practices","adding-dictionary-items",60,"content:python:60.adding-dictionary-items.md","python/60.adding-dictionary-items.md","python/60.adding-dictionary-items",{"_path":562,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":563,"description":564,"slug":565,"parentId":516,"order":566,"_type":15,"_id":567,"_source":17,"_file":568,"_stem":569,"_extension":20},"/python/deleting-dictionary-items","Deleting Dictionary Items","Master safe and efficient techniques for removing items from Python dictionaries with various methods and error handling","deleting-dictionary-items",61,"content:python:61.deleting-dictionary-items.md","python/61.deleting-dictionary-items.md","python/61.deleting-dictionary-items",{"_path":571,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":572,"description":573,"slug":574,"parentId":516,"order":575,"_type":15,"_id":576,"_source":17,"_file":577,"_stem":578,"_extension":20},"/python/looping-dictionaries","Looping Dictionaries","Learn efficient techniques for iterating through Python dictionaries using keys, values, and items","looping-dictionaries",62,"content:python:62.looping-dictionaries.md","python/62.looping-dictionaries.md","python/62.looping-dictionaries",{"_path":580,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":581,"description":582,"slug":583,"parentId":516,"order":584,"_type":15,"_id":585,"_source":17,"_file":586,"_stem":587,"_extension":20},"/python/dictionary-copies","Dictionary Copies","Learn safe techniques for duplicating Python dictionaries using shallow and deep copy methods","dictionary-copies",63,"content:python:63.dictionary-copies.md","python/63.dictionary-copies.md","python/63.dictionary-copies",{"_path":589,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":590,"description":591,"slug":592,"parentId":516,"order":593,"_type":15,"_id":594,"_source":17,"_file":595,"_stem":596,"_extension":20},"/python/multi-level-dictionaries","Multi-level Dictionaries","Master working with nested Python dictionaries for complex data structures and hierarchical information","multi-level-dictionaries",64,"content:python:64.multi-level-dictionaries.md","python/64.multi-level-dictionaries.md","python/64.multi-level-dictionaries",{"_path":598,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":599,"description":600,"slug":601,"parentId":516,"order":602,"_type":15,"_id":603,"_source":17,"_file":604,"_stem":605,"_extension":20},"/python/dictionary-tools","Dictionary Tools","Explore powerful built-in functions and advanced techniques for efficient Python dictionary manipulation and analysis","dictionary-tools",65,"content:python:65.dictionary-tools.md","python/65.dictionary-tools.md","python/65.dictionary-tools",{"_path":607,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":608,"description":609,"slug":610,"order":611,"isParent":13,"icon":14,"_type":15,"_id":612,"_source":17,"_file":613,"_stem":614,"_extension":20,"children":615},"/python/python-functions","Python Functions","Learn how to create and use Python functions to organize code into reusable, modular components that make programs more efficient and maintainable","python-functions",66,"content:python:66.python-functions.md","python/66.python-functions.md","python/66.python-functions",[616,625,634,643,652,661],{"_path":617,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":618,"description":619,"slug":620,"parentId":607,"order":621,"_type":15,"_id":622,"_source":17,"_file":623,"_stem":624,"_extension":20},"/python/function-basics","Function Basics","Learn the fundamentals of creating and using Python functions to organize code into reusable, modular components","function-basics",67,"content:python:67.function-basics.md","python/67.function-basics.md","python/67.function-basics",{"_path":626,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":627,"description":628,"slug":629,"parentId":607,"order":630,"_type":15,"_id":631,"_source":17,"_file":632,"_stem":633,"_extension":20},"/python/function-parameters","Function Parameters","Master different types of Python function parameters including positional, keyword, default, and variable-length arguments","function-parameters",68,"content:python:68.function-parameters.md","python/68.function-parameters.md","python/68.function-parameters",{"_path":635,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":636,"description":637,"slug":638,"parentId":607,"order":639,"_type":15,"_id":640,"_source":17,"_file":641,"_stem":642,"_extension":20},"/python/returning-values","Returning Values","Learn different ways Python functions return data including single values, multiple values, and conditional returns","returning-values",69,"content:python:69.returning-values.md","python/69.returning-values.md","python/69.returning-values",{"_path":644,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":645,"description":646,"slug":647,"parentId":607,"order":648,"_type":15,"_id":649,"_source":17,"_file":650,"_stem":651,"_extension":20},"/python/variable-scope","Variable Scope","Understand Python variable scope including local, global, and nonlocal variables and how they affect function behavior","variable-scope",70,"content:python:70.variable-scope.md","python/70.variable-scope.md","python/70.variable-scope",{"_path":653,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":654,"description":655,"slug":656,"parentId":607,"order":657,"_type":15,"_id":658,"_source":17,"_file":659,"_stem":660,"_extension":20},"/python/anonymous-functions","Anonymous Functions","Learn to create and use Python lambda functions for concise, inline function definitions and functional programming patterns","anonymous-functions",71,"content:python:71.anonymous-functions.md","python/71.anonymous-functions.md","python/71.anonymous-functions",{"_path":662,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":663,"description":664,"slug":665,"parentId":607,"order":666,"_type":15,"_id":667,"_source":17,"_file":668,"_stem":669,"_extension":20},"/python/function-recursion","Function Recursion","Master recursive functions in Python by learning how functions can call themselves to solve complex problems with elegant, mathematical solutions","function-recursion",72,"content:python:72.function-recursion.md","python/72.function-recursion.md","python/72.function-recursion",{"_path":671,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":672,"description":673,"slug":674,"order":675,"isParent":13,"icon":14,"_type":15,"_id":676,"_source":17,"_file":677,"_stem":678,"_extension":20,"children":679},"/python/object-programming","Object Programming","Learn object-oriented programming (OOP) in Python - create classes, objects, and methods to build organized, reusable code","object-programming",73,"content:python:73.object-programming.md","python/73.object-programming.md","python/73.object-programming",[680,689,698,707,716,725],{"_path":681,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":682,"description":683,"slug":684,"parentId":671,"order":685,"_type":15,"_id":686,"_source":17,"_file":687,"_stem":688,"_extension":20},"/python/classes-and-objects","Classes and Objects","Learn to create Python classes and objects - the foundation of object-oriented programming for building reusable, organized code","classes-and-objects",74,"content:python:74.classes-and-objects.md","python/74.classes-and-objects.md","python/74.classes-and-objects",{"_path":690,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":691,"description":692,"slug":693,"parentId":671,"order":694,"_type":15,"_id":695,"_source":17,"_file":696,"_stem":697,"_extension":20},"/python/object-methods","Object Methods","Master object methods in Python - learn to define behaviors, work with parameters, and create interactive objects that respond to actions","object-methods",75,"content:python:75.object-methods.md","python/75.object-methods.md","python/75.object-methods",{"_path":699,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":700,"description":701,"slug":702,"parentId":671,"order":703,"_type":15,"_id":704,"_source":17,"_file":705,"_stem":706,"_extension":20},"/python/class-inheritance","Class Inheritance","Learn Python class inheritance - create specialized classes that build upon existing functionality while adding new features and behaviors","class-inheritance",76,"content:python:76.class-inheritance.md","python/76.class-inheritance.md","python/76.class-inheritance",{"_path":708,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":709,"description":710,"slug":711,"parentId":671,"order":712,"_type":15,"_id":713,"_source":17,"_file":714,"_stem":715,"_extension":20},"/python/method-overriding","Method Overriding","Master method overriding in Python - learn to customize inherited methods, use super(), and create specialized behaviors while maintaining inheritance benefits","method-overriding",77,"content:python:77.method-overriding.md","python/77.method-overriding.md","python/77.method-overriding",{"_path":717,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":718,"description":719,"slug":720,"parentId":671,"order":721,"_type":15,"_id":722,"_source":17,"_file":723,"_stem":724,"_extension":20},"/python/variable-visibility","Variable Visibility","Master Python variable visibility - learn public, protected, and private attributes to control access and create well-encapsulated classes","variable-visibility",78,"content:python:78.variable-visibility.md","python/78.variable-visibility.md","python/78.variable-visibility",{"_path":726,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":727,"description":728,"slug":729,"parentId":671,"order":730,"_type":15,"_id":731,"_source":17,"_file":732,"_stem":733,"_extension":20},"/python/special-methods","Special Methods","Master Python special methods (magic methods) - learn to implement __str__, __len__, __eq__ and more to make your classes work seamlessly with Python's built-in functions","special-methods",79,"content:python:79.special-methods.md","python/79.special-methods.md","python/79.special-methods",{"_path":735,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":736,"description":737,"slug":738,"order":739,"isParent":13,"icon":14,"_type":15,"_id":740,"_source":17,"_file":741,"_stem":742,"_extension":20,"children":743},"/python/advanced-concepts","Advanced Concepts","Master advanced Python programming concepts - work with dates, mathematics, JSON data, pattern matching, and more sophisticated programming techniques","advanced-concepts",80,"content:python:80.advanced-concepts.md","python/80.advanced-concepts.md","python/80.advanced-concepts",[744,753,762,771,780,789,798],{"_path":745,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":746,"description":747,"slug":748,"parentId":735,"order":749,"_type":15,"_id":750,"_source":17,"_file":751,"_stem":752,"_extension":20},"/python/working-with-dates","Working with Dates","Master Python date and time handling - work with datetime objects, format dates, calculate durations, and build time-aware applications","working-with-dates",81,"content:python:81.working-with-dates.md","python/81.working-with-dates.md","python/81.working-with-dates",{"_path":754,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":755,"description":756,"slug":757,"parentId":735,"order":758,"_type":15,"_id":759,"_source":17,"_file":760,"_stem":761,"_extension":20},"/python/mathematical-operations","Mathematical Operations","Master Python mathematical computing - use math functions, perform statistical calculations, and implement scientific computing for data analysis and problem-solving","mathematical-operations",82,"content:python:82.mathematical-operations.md","python/82.mathematical-operations.md","python/82.mathematical-operations",{"_path":763,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":764,"description":765,"slug":766,"parentId":735,"order":767,"_type":15,"_id":768,"_source":17,"_file":769,"_stem":770,"_extension":20},"/python/json-data","JSON Data","Master JSON data handling in Python - serialize and deserialize data, work with APIs, manage configuration files, and exchange data between applications","json-data",83,"content:python:83.json-data.md","python/83.json-data.md","python/83.json-data",{"_path":772,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":773,"description":774,"slug":775,"parentId":735,"order":776,"_type":15,"_id":777,"_source":17,"_file":778,"_stem":779,"_extension":20},"/python/package-management","Package Management","Master Python package management with pip and virtual environments - install libraries, manage dependencies, create isolated environments, and distribute packages professionally","package-management",85,"content:python:85.package-management.md","python/85.package-management.md","python/85.package-management",{"_path":781,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":782,"description":783,"slug":784,"parentId":735,"order":785,"_type":15,"_id":786,"_source":17,"_file":787,"_stem":788,"_extension":20},"/python/error-handling","Error Handling","Master Python error handling with try/except blocks, exception types, custom exceptions, debugging techniques, and best practices for robust application development","error-handling",86,"content:python:86.error-handling.md","python/86.error-handling.md","python/86.error-handling",{"_path":790,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":791,"description":792,"slug":793,"parentId":735,"order":794,"_type":15,"_id":795,"_source":17,"_file":796,"_stem":797,"_extension":20},"/python/getting-user-input","Getting User Input","Master user input handling in Python with input validation, data type conversion, interactive programs, and command-line interfaces for engaging user experiences","getting-user-input",87,"content:python:87.getting-user-input.md","python/87.getting-user-input.md","python/87.getting-user-input",{"_path":799,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":800,"description":801,"slug":802,"parentId":735,"order":803,"_type":15,"_id":804,"_source":17,"_file":805,"_stem":806,"_extension":20},"/python/text-formatting","Text Formatting","Master Python text formatting with f-strings, format methods, alignment, number formatting, and advanced techniques for professional, readable output","text-formatting",88,"content:python:88.text-formatting.md","python/88.text-formatting.md","python/88.text-formatting",{"_path":808,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":809,"description":810,"slug":811,"order":812,"isParent":13,"icon":14,"_type":15,"_id":813,"_source":17,"_file":814,"_stem":815,"_extension":20,"children":816},"/python/file-operations","File Operations","Master Python file handling with reading, writing, and managing files for data persistence and real-world applications","file-operations",89,"content:python:89.file-operations.md","python/89.file-operations.md","python/89.file-operations",[817,826,835,844],{"_path":818,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":819,"description":820,"slug":821,"parentId":808,"order":822,"_type":15,"_id":823,"_source":17,"_file":824,"_stem":825,"_extension":20},"/python/file-basics","File Basics","Learn fundamental Python file operations including opening files, understanding file modes, using context managers, and basic file handling concepts","file-basics",90,"content:python:90.file-basics.md","python/90.file-basics.md","python/90.file-basics",{"_path":827,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":828,"description":829,"slug":830,"parentId":808,"order":831,"_type":15,"_id":832,"_source":17,"_file":833,"_stem":834,"_extension":20},"/python/reading-files","Reading Files","Master Python file reading techniques including reading entire files, line-by-line processing, and handling different file formats for efficient data processing","reading-files",91,"content:python:91.reading-files.md","python/91.reading-files.md","python/91.reading-files",{"_path":836,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":837,"description":838,"slug":839,"parentId":808,"order":840,"_type":15,"_id":841,"_source":17,"_file":842,"_stem":843,"_extension":20},"/python/writing-files","Writing Files","Learn Python file writing techniques including creating new files, appending content, updating existing files, and saving different data formats safely","writing-files",92,"content:python:92.writing-files.md","python/92.writing-files.md","python/92.writing-files",{"_path":845,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":846,"description":847,"slug":848,"parentId":808,"order":849,"_type":15,"_id":850,"_source":17,"_file":851,"_stem":852,"_extension":20},"/python/file-management","File Management","Learn Python file management techniques including checking file properties, organizing files, directory operations, and implementing file system maintenance tasks","file-management",93,"content:python:93.file-management.md","python/93.file-management.md","python/93.file-management",{"_path":854,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":855,"description":856,"slug":857,"order":858,"isParent":13,"icon":14,"_type":15,"_id":859,"_source":17,"_file":860,"_stem":861,"_extension":20,"children":862},"/python/code-organization","Code Organization","Master Python code organization with modules, built-in libraries, and path management for creating maintainable and reusable applications","code-organization",94,"content:python:94.code-organization.md","python/94.code-organization.md","python/94.code-organization",[863,872,881],{"_path":864,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":865,"description":866,"slug":867,"parentId":854,"order":868,"_type":15,"_id":869,"_source":17,"_file":870,"_stem":871,"_extension":20},"/python/creating-modules","Creating Modules","Learn how to create custom Python modules, organize functions and classes, write reusable code components, and design effective module structures","creating-modules",95,"content:python:95.creating-modules.md","python/95.creating-modules.md","python/95.creating-modules",{"_path":873,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":874,"description":875,"slug":876,"parentId":854,"order":877,"_type":15,"_id":878,"_source":17,"_file":879,"_stem":880,"_extension":20},"/python/using-built-in-modules","Using Built-in Modules","Discover Python's extensive standard library and learn to effectively use built-in modules for common programming tasks, data processing, and system operations","using-built-in-modules",96,"content:python:96.using-built-in-modules.md","python/96.using-built-in-modules.md","python/96.using-built-in-modules",{"_path":882,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":883,"description":884,"slug":885,"parentId":854,"order":886,"_type":15,"_id":887,"_source":17,"_file":888,"_stem":889,"_extension":20},"/python/module-paths","Module Paths","Understand Python's module search system, manage import paths, work with packages, and organize larger projects with proper module path management","module-paths",97,"content:python:97.module-paths.md","python/97.module-paths.md","python/97.module-paths",{"_path":891,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":892,"description":893,"slug":894,"order":895,"isParent":13,"icon":14,"_type":15,"_id":896,"_source":17,"_file":897,"_stem":898,"_extension":20,"children":899,"expanded":13},"/python/reference-materials","Reference Materials","Comprehensive Python reference materials including reserved words, built-in functions, and operation guides for quick lookup and development support","reference-materials",98,"content:python:98.reference-materials.md","python/98.reference-materials.md","python/98.reference-materials",[900,909,918,927,936,945,953,961,970],{"_path":901,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":902,"description":903,"slug":904,"parentId":891,"order":905,"_type":15,"_id":906,"_source":17,"_file":907,"_stem":908,"_extension":20},"/python/reserved-words","Reserved Words","Complete reference of Python keywords and reserved words with descriptions, usage examples, and syntax guidelines","reserved-words",99,"content:python:99.reserved-words.md","python/99.reserved-words.md","python/99.reserved-words",{"_path":910,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":911,"description":912,"slug":913,"parentId":891,"order":914,"_type":15,"_id":915,"_source":17,"_file":916,"_stem":917,"_extension":20},"/python/built-in-functions","Built-in Functions","Comprehensive reference of Python's built-in functions with parameters, return values, and practical usage examples","built-in-functions",100,"content:python:100.built-in-functions.md","python/100.built-in-functions.md","python/100.built-in-functions",{"_path":919,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":920,"description":921,"slug":922,"parentId":891,"order":923,"_type":15,"_id":924,"_source":17,"_file":925,"_stem":926,"_extension":20},"/python/string-operations","String Operations","Complete reference of Python string methods, operations, and formatting techniques with examples and use cases","string-operations",101,"content:python:101.string-operations.md","python/101.string-operations.md","python/101.string-operations",{"_path":928,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":929,"description":930,"slug":931,"parentId":891,"order":932,"_type":15,"_id":933,"_source":17,"_file":934,"_stem":935,"_extension":20},"/python/list-operations","List Operations","Complete reference of Python list methods, operations, and manipulation techniques with examples and performance notes","list-operations",102,"content:python:102.list-operations.md","python/102.list-operations.md","python/102.list-operations",{"_path":937,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":938,"description":939,"slug":940,"parentId":891,"order":941,"_type":15,"_id":942,"_source":17,"_file":943,"_stem":944,"_extension":20},"/python/dictionary-operations","Dictionary Operations","Complete reference of Python dictionary methods, operations, and manipulation techniques with examples and use cases","dictionary-operations",103,"content:python:103.dictionary-operations.md","python/103.dictionary-operations.md","python/103.dictionary-operations",{"_path":946,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":435,"description":947,"slug":948,"parentId":891,"order":949,"_type":15,"_id":950,"_source":17,"_file":951,"_stem":952,"_extension":20},"/python/tuple-methods","Complete reference of Python tuple operations, methods, and techniques with examples and use cases","tuple-methods",104,"content:python:104.tuple-methods.md","python/104.tuple-methods.md","python/104.tuple-methods",{"_path":954,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":508,"description":955,"slug":956,"parentId":891,"order":957,"_type":15,"_id":958,"_source":17,"_file":959,"_stem":960,"_extension":20},"/python/set-methods","Complete reference of Python set operations, methods, and mathematical set operations with examples and use cases","set-methods",105,"content:python:105.set-methods.md","python/105.set-methods.md","python/105.set-methods",{"_path":962,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":963,"description":964,"slug":965,"parentId":891,"order":966,"_type":15,"_id":967,"_source":17,"_file":968,"_stem":969,"_extension":20},"/python/file-operations-reference","File Operations Reference","Complete reference of Python file operations, modes, methods, and file handling techniques with examples","file-operations-reference",106,"content:python:106.file-operations-reference.md","python/106.file-operations-reference.md","python/106.file-operations-reference",{"_path":971,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":972,"description":973,"slug":974,"parentId":891,"order":975,"_type":15,"_id":976,"_source":17,"_file":977,"_stem":978,"_extension":20},"/python/error-types","Error Types","Complete reference of Python exception types, error handling patterns, and debugging techniques with examples","error-types",107,"content:python:107.error-types.md","python/107.error-types.md","python/107.error-types",{"_path":980,"_dir":8,"_draft":7,"_partial":7,"_locale":8,"title":981,"description":10,"slug":982,"order":983,"icon":14,"_type":15,"_id":984,"_source":17,"_file":985,"_stem":986,"_extension":20},"/python","Introduction","python-tutorial",0,"content:python:index.md","python/index.md","python/index",[49],{"_path":50,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":51,"description":52,"slug":53,"parentId":5,"order":54,"body":989,"_type":15,"_id":55,"_source":17,"_file":56,"_stem":57,"_extension":20},{"type":990,"children":991,"toc":4681},"root",[992,1001,1024,1029,1306,1313,1330,1337,1382,1453,1724,1730,1740,1765,1771,1835,2057,2063,2082,2088,2129,2220,2461,2467,2477,2483,2527,2579,2843,2849,2861,2867,2933,3309,3315,3320,3326,3390,3492,3762,3768,3773,3779,3822,4337,4343,4348,4409,4415,4458,4463,4469,4627,4633,4638,4645,4651,4656,4670,4675],{"type":993,"tag":994,"props":995,"children":997},"element","h1",{"id":996},"️-python-code-structure",[998],{"type":999,"value":1000},"text","🏗️ Python Code Structure",{"type":993,"tag":1002,"props":1003,"children":1004},"p",{},[1005,1007,1014,1016,1022],{"type":999,"value":1006},"Python has a unique way of organizing code that makes it easy to read and write. Unlike languages that use curly braces ",{"type":993,"tag":1008,"props":1009,"children":1011},"code",{"className":1010},[],[1012],{"type":999,"value":1013},"{}",{"type":999,"value":1015},", Python uses ",{"type":993,"tag":1017,"props":1018,"children":1019},"strong",{},[1020],{"type":999,"value":1021},"indentation",{"type":999,"value":1023}," (spaces) to group code together. This makes Python programs look clean and forces good coding habits from the start.",{"type":993,"tag":1002,"props":1025,"children":1026},{},[1027],{"type":999,"value":1028},"Understanding Python's structure rules is essential—Python is very particular about how code is organized, but once you learn the rules, they become natural and make your code more readable.",{"type":993,"tag":1030,"props":1031,"children":1032},"code-try",{},[1033],{"type":993,"tag":1034,"props":1035,"children":1038},"pre",{"className":1036,"code":1037,"language":6,"meta":8,"style":8},"language-python shiki shiki-themes github-light github-dark","# Python code structure basics\nprint(\"Python code is clean and organized!\")\n\n# Indentation groups code together\nif True:\n    print(\"This line is indented\")\n    print(\"This line is also indented\")\n    \nprint(\"This line is back to the main level\")\n\n# Functions also use indentation\ndef greet(name):\n    print(f\"Hello, {name}!\")\n    print(\"Welcome to Python!\")\n\ngreet(\"Programmer\")\n",[1039],{"type":993,"tag":1008,"props":1040,"children":1041},{"__ignoreMap":8},[1042,1053,1079,1087,1095,1114,1135,1155,1163,1183,1190,1198,1217,1262,1282,1289],{"type":993,"tag":1043,"props":1044,"children":1046},"span",{"class":1045,"line":12},"line",[1047],{"type":993,"tag":1043,"props":1048,"children":1050},{"style":1049},"--shiki-default:#6A737D;--shiki-app-dark-mode:#6A737D",[1051],{"type":999,"value":1052},"# Python code structure basics\n",{"type":993,"tag":1043,"props":1054,"children":1055},{"class":1045,"line":27},[1056,1062,1068,1074],{"type":993,"tag":1043,"props":1057,"children":1059},{"style":1058},"--shiki-default:#005CC5;--shiki-app-dark-mode:#79B8FF",[1060],{"type":999,"value":1061},"print",{"type":993,"tag":1043,"props":1063,"children":1065},{"style":1064},"--shiki-default:#24292E;--shiki-app-dark-mode:#E1E4E8",[1066],{"type":999,"value":1067},"(",{"type":993,"tag":1043,"props":1069,"children":1071},{"style":1070},"--shiki-default:#032F62;--shiki-app-dark-mode:#9ECBFF",[1072],{"type":999,"value":1073},"\"Python code is clean and organized!\"",{"type":993,"tag":1043,"props":1075,"children":1076},{"style":1064},[1077],{"type":999,"value":1078},")\n",{"type":993,"tag":1043,"props":1080,"children":1081},{"class":1045,"line":36},[1082],{"type":993,"tag":1043,"props":1083,"children":1084},{"emptyLinePlaceholder":13},[1085],{"type":999,"value":1086},"\n",{"type":993,"tag":1043,"props":1088,"children":1089},{"class":1045,"line":45},[1090],{"type":993,"tag":1043,"props":1091,"children":1092},{"style":1049},[1093],{"type":999,"value":1094},"# Indentation groups code together\n",{"type":993,"tag":1043,"props":1096,"children":1097},{"class":1045,"line":54},[1098,1104,1109],{"type":993,"tag":1043,"props":1099,"children":1101},{"style":1100},"--shiki-default:#D73A49;--shiki-app-dark-mode:#F97583",[1102],{"type":999,"value":1103},"if",{"type":993,"tag":1043,"props":1105,"children":1106},{"style":1058},[1107],{"type":999,"value":1108}," True",{"type":993,"tag":1043,"props":1110,"children":1111},{"style":1064},[1112],{"type":999,"value":1113},":\n",{"type":993,"tag":1043,"props":1115,"children":1116},{"class":1045,"line":63},[1117,1122,1126,1131],{"type":993,"tag":1043,"props":1118,"children":1119},{"style":1058},[1120],{"type":999,"value":1121},"    print",{"type":993,"tag":1043,"props":1123,"children":1124},{"style":1064},[1125],{"type":999,"value":1067},{"type":993,"tag":1043,"props":1127,"children":1128},{"style":1070},[1129],{"type":999,"value":1130},"\"This line is indented\"",{"type":993,"tag":1043,"props":1132,"children":1133},{"style":1064},[1134],{"type":999,"value":1078},{"type":993,"tag":1043,"props":1136,"children":1137},{"class":1045,"line":72},[1138,1142,1146,1151],{"type":993,"tag":1043,"props":1139,"children":1140},{"style":1058},[1141],{"type":999,"value":1121},{"type":993,"tag":1043,"props":1143,"children":1144},{"style":1064},[1145],{"type":999,"value":1067},{"type":993,"tag":1043,"props":1147,"children":1148},{"style":1070},[1149],{"type":999,"value":1150},"\"This line is also indented\"",{"type":993,"tag":1043,"props":1152,"children":1153},{"style":1064},[1154],{"type":999,"value":1078},{"type":993,"tag":1043,"props":1156,"children":1157},{"class":1045,"line":81},[1158],{"type":993,"tag":1043,"props":1159,"children":1160},{"style":1064},[1161],{"type":999,"value":1162},"    \n",{"type":993,"tag":1043,"props":1164,"children":1165},{"class":1045,"line":91},[1166,1170,1174,1179],{"type":993,"tag":1043,"props":1167,"children":1168},{"style":1058},[1169],{"type":999,"value":1061},{"type":993,"tag":1043,"props":1171,"children":1172},{"style":1064},[1173],{"type":999,"value":1067},{"type":993,"tag":1043,"props":1175,"children":1176},{"style":1070},[1177],{"type":999,"value":1178},"\"This line is back to the main level\"",{"type":993,"tag":1043,"props":1180,"children":1181},{"style":1064},[1182],{"type":999,"value":1078},{"type":993,"tag":1043,"props":1184,"children":1185},{"class":1045,"line":100},[1186],{"type":993,"tag":1043,"props":1187,"children":1188},{"emptyLinePlaceholder":13},[1189],{"type":999,"value":1086},{"type":993,"tag":1043,"props":1191,"children":1192},{"class":1045,"line":109},[1193],{"type":993,"tag":1043,"props":1194,"children":1195},{"style":1049},[1196],{"type":999,"value":1197},"# Functions also use indentation\n",{"type":993,"tag":1043,"props":1199,"children":1200},{"class":1045,"line":118},[1201,1206,1212],{"type":993,"tag":1043,"props":1202,"children":1203},{"style":1100},[1204],{"type":999,"value":1205},"def",{"type":993,"tag":1043,"props":1207,"children":1209},{"style":1208},"--shiki-default:#6F42C1;--shiki-app-dark-mode:#B392F0",[1210],{"type":999,"value":1211}," greet",{"type":993,"tag":1043,"props":1213,"children":1214},{"style":1064},[1215],{"type":999,"value":1216},"(name):\n",{"type":993,"tag":1043,"props":1218,"children":1219},{"class":1045,"line":127},[1220,1224,1228,1233,1238,1243,1248,1253,1258],{"type":993,"tag":1043,"props":1221,"children":1222},{"style":1058},[1223],{"type":999,"value":1121},{"type":993,"tag":1043,"props":1225,"children":1226},{"style":1064},[1227],{"type":999,"value":1067},{"type":993,"tag":1043,"props":1229,"children":1230},{"style":1100},[1231],{"type":999,"value":1232},"f",{"type":993,"tag":1043,"props":1234,"children":1235},{"style":1070},[1236],{"type":999,"value":1237},"\"Hello, ",{"type":993,"tag":1043,"props":1239,"children":1240},{"style":1058},[1241],{"type":999,"value":1242},"{",{"type":993,"tag":1043,"props":1244,"children":1245},{"style":1064},[1246],{"type":999,"value":1247},"name",{"type":993,"tag":1043,"props":1249,"children":1250},{"style":1058},[1251],{"type":999,"value":1252},"}",{"type":993,"tag":1043,"props":1254,"children":1255},{"style":1070},[1256],{"type":999,"value":1257},"!\"",{"type":993,"tag":1043,"props":1259,"children":1260},{"style":1064},[1261],{"type":999,"value":1078},{"type":993,"tag":1043,"props":1263,"children":1264},{"class":1045,"line":136},[1265,1269,1273,1278],{"type":993,"tag":1043,"props":1266,"children":1267},{"style":1058},[1268],{"type":999,"value":1121},{"type":993,"tag":1043,"props":1270,"children":1271},{"style":1064},[1272],{"type":999,"value":1067},{"type":993,"tag":1043,"props":1274,"children":1275},{"style":1070},[1276],{"type":999,"value":1277},"\"Welcome to Python!\"",{"type":993,"tag":1043,"props":1279,"children":1280},{"style":1064},[1281],{"type":999,"value":1078},{"type":993,"tag":1043,"props":1283,"children":1284},{"class":1045,"line":146},[1285],{"type":993,"tag":1043,"props":1286,"children":1287},{"emptyLinePlaceholder":13},[1288],{"type":999,"value":1086},{"type":993,"tag":1043,"props":1290,"children":1291},{"class":1045,"line":155},[1292,1297,1302],{"type":993,"tag":1043,"props":1293,"children":1294},{"style":1064},[1295],{"type":999,"value":1296},"greet(",{"type":993,"tag":1043,"props":1298,"children":1299},{"style":1070},[1300],{"type":999,"value":1301},"\"Programmer\"",{"type":993,"tag":1043,"props":1303,"children":1304},{"style":1064},[1305],{"type":999,"value":1078},{"type":993,"tag":1307,"props":1308,"children":1310},"h2",{"id":1309},"indentation-pythons-unique-feature",[1311],{"type":999,"value":1312},"📐 Indentation: Python's Unique Feature",{"type":993,"tag":1002,"props":1314,"children":1315},{},[1316,1321,1323,1328],{"type":993,"tag":1017,"props":1317,"children":1318},{},[1319],{"type":999,"value":1320},"Indentation",{"type":999,"value":1322}," is Python's way of grouping code together. While other languages use curly braces ",{"type":993,"tag":1008,"props":1324,"children":1326},{"className":1325},[],[1327],{"type":999,"value":1013},{"type":999,"value":1329},", Python uses spaces at the beginning of lines to show which code belongs together.",{"type":993,"tag":1331,"props":1332,"children":1334},"h3",{"id":1333},"key-indentation-rules",[1335],{"type":999,"value":1336},"Key Indentation Rules:",{"type":993,"tag":1338,"props":1339,"children":1340},"ul",{},[1341,1352,1362,1372],{"type":993,"tag":1342,"props":1343,"children":1344},"li",{},[1345,1350],{"type":993,"tag":1017,"props":1346,"children":1347},{},[1348],{"type":999,"value":1349},"4 spaces",{"type":999,"value":1351}," is the standard (recommended by PEP 8)",{"type":993,"tag":1342,"props":1353,"children":1354},{},[1355,1360],{"type":993,"tag":1017,"props":1356,"children":1357},{},[1358],{"type":999,"value":1359},"All lines in the same block",{"type":999,"value":1361}," must have identical indentation",{"type":993,"tag":1342,"props":1363,"children":1364},{},[1365,1370],{"type":993,"tag":1017,"props":1366,"children":1367},{},[1368],{"type":999,"value":1369},"Never mix tabs and spaces",{"type":999,"value":1371}," in the same file",{"type":993,"tag":1342,"props":1373,"children":1374},{},[1375,1380],{"type":993,"tag":1017,"props":1376,"children":1377},{},[1378],{"type":999,"value":1379},"Use either tabs OR spaces consistently",{"type":999,"value":1381}," (spaces preferred)",{"type":993,"tag":1383,"props":1384,"children":1388},"info-box",{"emoji":1385,"title":1386,"type":1387},"⚠️","Indentation Rules","warning",[1389,1443],{"type":993,"tag":1338,"props":1390,"children":1391},{},[1392,1404,1415,1427],{"type":993,"tag":1342,"props":1393,"children":1394},{},[1395,1397,1402],{"type":999,"value":1396},"✅ ",{"type":993,"tag":1017,"props":1398,"children":1399},{},[1400],{"type":999,"value":1401},"Correct",{"type":999,"value":1403},": Use 4 spaces for each indentation level",{"type":993,"tag":1342,"props":1405,"children":1406},{},[1407,1408,1413],{"type":999,"value":1396},{"type":993,"tag":1017,"props":1409,"children":1410},{},[1411],{"type":999,"value":1412},"Consistent",{"type":999,"value":1414},": All lines in same block have same indentation",{"type":993,"tag":1342,"props":1416,"children":1417},{},[1418,1420,1425],{"type":999,"value":1419},"❌ ",{"type":993,"tag":1017,"props":1421,"children":1422},{},[1423],{"type":999,"value":1424},"Wrong",{"type":999,"value":1426},": Mixing tabs and spaces",{"type":993,"tag":1342,"props":1428,"children":1429},{},[1430,1431,1436,1438],{"type":999,"value":1419},{"type":993,"tag":1017,"props":1432,"children":1433},{},[1434],{"type":999,"value":1435},"Error",{"type":999,"value":1437},": Inconsistent indentation causes ",{"type":993,"tag":1017,"props":1439,"children":1440},{},[1441],{"type":999,"value":1442},"IndentationError",{"type":993,"tag":1002,"props":1444,"children":1445},{},[1446,1451],{"type":993,"tag":1017,"props":1447,"children":1448},{},[1449],{"type":999,"value":1450},"Important",{"type":999,"value":1452},": Indentation isn't just for looks—it's part of Python's grammar!",{"type":993,"tag":1030,"props":1454,"children":1455},{},[1456],{"type":993,"tag":1034,"props":1457,"children":1459},{"className":1036,"code":1458,"language":6,"meta":8,"style":8},"# Indentation examples\nprint(\"=== INDENTATION EXAMPLES ===\")\n\nname = \"Alice\"\nage = 25\n\n# Code block with indentation (4 spaces)\nif age >= 18:\n    print(f\"{name} is an adult\")\n    print(\"They can vote\")\n    \n    # Nested indentation (8 spaces total)\n    if age >= 21:\n        print(\"They can also drink\")\n        \nprint(\"Back to main level (no indentation)\")\n",[1460],{"type":993,"tag":1008,"props":1461,"children":1462},{"__ignoreMap":8},[1463,1471,1491,1498,1516,1533,1540,1548,1574,1615,1635,1642,1650,1675,1696,1704],{"type":993,"tag":1043,"props":1464,"children":1465},{"class":1045,"line":12},[1466],{"type":993,"tag":1043,"props":1467,"children":1468},{"style":1049},[1469],{"type":999,"value":1470},"# Indentation examples\n",{"type":993,"tag":1043,"props":1472,"children":1473},{"class":1045,"line":27},[1474,1478,1482,1487],{"type":993,"tag":1043,"props":1475,"children":1476},{"style":1058},[1477],{"type":999,"value":1061},{"type":993,"tag":1043,"props":1479,"children":1480},{"style":1064},[1481],{"type":999,"value":1067},{"type":993,"tag":1043,"props":1483,"children":1484},{"style":1070},[1485],{"type":999,"value":1486},"\"=== INDENTATION EXAMPLES ===\"",{"type":993,"tag":1043,"props":1488,"children":1489},{"style":1064},[1490],{"type":999,"value":1078},{"type":993,"tag":1043,"props":1492,"children":1493},{"class":1045,"line":36},[1494],{"type":993,"tag":1043,"props":1495,"children":1496},{"emptyLinePlaceholder":13},[1497],{"type":999,"value":1086},{"type":993,"tag":1043,"props":1499,"children":1500},{"class":1045,"line":45},[1501,1506,1511],{"type":993,"tag":1043,"props":1502,"children":1503},{"style":1064},[1504],{"type":999,"value":1505},"name ",{"type":993,"tag":1043,"props":1507,"children":1508},{"style":1100},[1509],{"type":999,"value":1510},"=",{"type":993,"tag":1043,"props":1512,"children":1513},{"style":1070},[1514],{"type":999,"value":1515}," \"Alice\"\n",{"type":993,"tag":1043,"props":1517,"children":1518},{"class":1045,"line":54},[1519,1524,1528],{"type":993,"tag":1043,"props":1520,"children":1521},{"style":1064},[1522],{"type":999,"value":1523},"age ",{"type":993,"tag":1043,"props":1525,"children":1526},{"style":1100},[1527],{"type":999,"value":1510},{"type":993,"tag":1043,"props":1529,"children":1530},{"style":1058},[1531],{"type":999,"value":1532}," 25\n",{"type":993,"tag":1043,"props":1534,"children":1535},{"class":1045,"line":63},[1536],{"type":993,"tag":1043,"props":1537,"children":1538},{"emptyLinePlaceholder":13},[1539],{"type":999,"value":1086},{"type":993,"tag":1043,"props":1541,"children":1542},{"class":1045,"line":72},[1543],{"type":993,"tag":1043,"props":1544,"children":1545},{"style":1049},[1546],{"type":999,"value":1547},"# Code block with indentation (4 spaces)\n",{"type":993,"tag":1043,"props":1549,"children":1550},{"class":1045,"line":81},[1551,1555,1560,1565,1570],{"type":993,"tag":1043,"props":1552,"children":1553},{"style":1100},[1554],{"type":999,"value":1103},{"type":993,"tag":1043,"props":1556,"children":1557},{"style":1064},[1558],{"type":999,"value":1559}," age ",{"type":993,"tag":1043,"props":1561,"children":1562},{"style":1100},[1563],{"type":999,"value":1564},">=",{"type":993,"tag":1043,"props":1566,"children":1567},{"style":1058},[1568],{"type":999,"value":1569}," 18",{"type":993,"tag":1043,"props":1571,"children":1572},{"style":1064},[1573],{"type":999,"value":1113},{"type":993,"tag":1043,"props":1575,"children":1576},{"class":1045,"line":91},[1577,1581,1585,1589,1594,1598,1602,1606,1611],{"type":993,"tag":1043,"props":1578,"children":1579},{"style":1058},[1580],{"type":999,"value":1121},{"type":993,"tag":1043,"props":1582,"children":1583},{"style":1064},[1584],{"type":999,"value":1067},{"type":993,"tag":1043,"props":1586,"children":1587},{"style":1100},[1588],{"type":999,"value":1232},{"type":993,"tag":1043,"props":1590,"children":1591},{"style":1070},[1592],{"type":999,"value":1593},"\"",{"type":993,"tag":1043,"props":1595,"children":1596},{"style":1058},[1597],{"type":999,"value":1242},{"type":993,"tag":1043,"props":1599,"children":1600},{"style":1064},[1601],{"type":999,"value":1247},{"type":993,"tag":1043,"props":1603,"children":1604},{"style":1058},[1605],{"type":999,"value":1252},{"type":993,"tag":1043,"props":1607,"children":1608},{"style":1070},[1609],{"type":999,"value":1610}," is an adult\"",{"type":993,"tag":1043,"props":1612,"children":1613},{"style":1064},[1614],{"type":999,"value":1078},{"type":993,"tag":1043,"props":1616,"children":1617},{"class":1045,"line":100},[1618,1622,1626,1631],{"type":993,"tag":1043,"props":1619,"children":1620},{"style":1058},[1621],{"type":999,"value":1121},{"type":993,"tag":1043,"props":1623,"children":1624},{"style":1064},[1625],{"type":999,"value":1067},{"type":993,"tag":1043,"props":1627,"children":1628},{"style":1070},[1629],{"type":999,"value":1630},"\"They can vote\"",{"type":993,"tag":1043,"props":1632,"children":1633},{"style":1064},[1634],{"type":999,"value":1078},{"type":993,"tag":1043,"props":1636,"children":1637},{"class":1045,"line":109},[1638],{"type":993,"tag":1043,"props":1639,"children":1640},{"style":1064},[1641],{"type":999,"value":1162},{"type":993,"tag":1043,"props":1643,"children":1644},{"class":1045,"line":118},[1645],{"type":993,"tag":1043,"props":1646,"children":1647},{"style":1049},[1648],{"type":999,"value":1649},"    # Nested indentation (8 spaces total)\n",{"type":993,"tag":1043,"props":1651,"children":1652},{"class":1045,"line":127},[1653,1658,1662,1666,1671],{"type":993,"tag":1043,"props":1654,"children":1655},{"style":1100},[1656],{"type":999,"value":1657},"    if",{"type":993,"tag":1043,"props":1659,"children":1660},{"style":1064},[1661],{"type":999,"value":1559},{"type":993,"tag":1043,"props":1663,"children":1664},{"style":1100},[1665],{"type":999,"value":1564},{"type":993,"tag":1043,"props":1667,"children":1668},{"style":1058},[1669],{"type":999,"value":1670}," 21",{"type":993,"tag":1043,"props":1672,"children":1673},{"style":1064},[1674],{"type":999,"value":1113},{"type":993,"tag":1043,"props":1676,"children":1677},{"class":1045,"line":136},[1678,1683,1687,1692],{"type":993,"tag":1043,"props":1679,"children":1680},{"style":1058},[1681],{"type":999,"value":1682},"        print",{"type":993,"tag":1043,"props":1684,"children":1685},{"style":1064},[1686],{"type":999,"value":1067},{"type":993,"tag":1043,"props":1688,"children":1689},{"style":1070},[1690],{"type":999,"value":1691},"\"They can also drink\"",{"type":993,"tag":1043,"props":1693,"children":1694},{"style":1064},[1695],{"type":999,"value":1078},{"type":993,"tag":1043,"props":1697,"children":1698},{"class":1045,"line":146},[1699],{"type":993,"tag":1043,"props":1700,"children":1701},{"style":1064},[1702],{"type":999,"value":1703},"        \n",{"type":993,"tag":1043,"props":1705,"children":1706},{"class":1045,"line":155},[1707,1711,1715,1720],{"type":993,"tag":1043,"props":1708,"children":1709},{"style":1058},[1710],{"type":999,"value":1061},{"type":993,"tag":1043,"props":1712,"children":1713},{"style":1064},[1714],{"type":999,"value":1067},{"type":993,"tag":1043,"props":1716,"children":1717},{"style":1070},[1718],{"type":999,"value":1719},"\"Back to main level (no indentation)\"",{"type":993,"tag":1043,"props":1721,"children":1722},{"style":1064},[1723],{"type":999,"value":1078},{"type":993,"tag":1307,"props":1725,"children":1727},{"id":1726},"code-blocks-and-colons",[1728],{"type":999,"value":1729},"🔗 Code Blocks and Colons",{"type":993,"tag":1002,"props":1731,"children":1732},{},[1733,1738],{"type":993,"tag":1017,"props":1734,"children":1735},{},[1736],{"type":999,"value":1737},"Code blocks",{"type":999,"value":1739}," are groups of statements that work together. In Python, you create code blocks using:",{"type":993,"tag":1741,"props":1742,"children":1743},"ol",{},[1744,1756],{"type":993,"tag":1342,"props":1745,"children":1746},{},[1747,1749,1754],{"type":999,"value":1748},"A ",{"type":993,"tag":1017,"props":1750,"children":1751},{},[1752],{"type":999,"value":1753},"colon (:)",{"type":999,"value":1755}," at the end of the line that starts the block",{"type":993,"tag":1342,"props":1757,"children":1758},{},[1759,1763],{"type":993,"tag":1017,"props":1760,"children":1761},{},[1762],{"type":999,"value":1320},{"type":999,"value":1764}," for all lines in the block",{"type":993,"tag":1331,"props":1766,"children":1768},{"id":1767},"common-code-blocks",[1769],{"type":999,"value":1770},"Common Code Blocks:",{"type":993,"tag":1338,"props":1772,"children":1773},{},[1774,1790,1805,1820],{"type":993,"tag":1342,"props":1775,"children":1776},{},[1777,1782,1784],{"type":993,"tag":1017,"props":1778,"children":1779},{},[1780],{"type":999,"value":1781},"if statements",{"type":999,"value":1783},": ",{"type":993,"tag":1008,"props":1785,"children":1787},{"className":1786},[],[1788],{"type":999,"value":1789},"if condition:",{"type":993,"tag":1342,"props":1791,"children":1792},{},[1793,1798,1799],{"type":993,"tag":1017,"props":1794,"children":1795},{},[1796],{"type":999,"value":1797},"Functions",{"type":999,"value":1783},{"type":993,"tag":1008,"props":1800,"children":1802},{"className":1801},[],[1803],{"type":999,"value":1804},"def function_name():",{"type":993,"tag":1342,"props":1806,"children":1807},{},[1808,1813,1814],{"type":993,"tag":1017,"props":1809,"children":1810},{},[1811],{"type":999,"value":1812},"Loops",{"type":999,"value":1783},{"type":993,"tag":1008,"props":1815,"children":1817},{"className":1816},[],[1818],{"type":999,"value":1819},"for item in list:",{"type":993,"tag":1342,"props":1821,"children":1822},{},[1823,1828,1829],{"type":993,"tag":1017,"props":1824,"children":1825},{},[1826],{"type":999,"value":1827},"Classes",{"type":999,"value":1783},{"type":993,"tag":1008,"props":1830,"children":1832},{"className":1831},[],[1833],{"type":999,"value":1834},"class ClassName:",{"type":993,"tag":1030,"props":1836,"children":1837},{},[1838],{"type":993,"tag":1034,"props":1839,"children":1841},{"className":1036,"code":1840,"language":6,"meta":8,"style":8},"# Code blocks with colons and indentation\ntemperature = 75\n\n# Colon starts the block, indentation groups the code\nif temperature > 70:\n    print(\"It's warm outside!\")\n    print(\"Good weather for a walk\")\n    \n    # Nested blocks need more indentation\n    if temperature > 90:\n        print(\"But it's quite hot!\")\n        print(\"Stay hydrated!\")\n\nprint(\"Weather check complete\")\n",[1842],{"type":993,"tag":1008,"props":1843,"children":1844},{"__ignoreMap":8},[1845,1853,1870,1877,1885,1911,1931,1951,1958,1966,1990,2010,2030,2037],{"type":993,"tag":1043,"props":1846,"children":1847},{"class":1045,"line":12},[1848],{"type":993,"tag":1043,"props":1849,"children":1850},{"style":1049},[1851],{"type":999,"value":1852},"# Code blocks with colons and indentation\n",{"type":993,"tag":1043,"props":1854,"children":1855},{"class":1045,"line":27},[1856,1861,1865],{"type":993,"tag":1043,"props":1857,"children":1858},{"style":1064},[1859],{"type":999,"value":1860},"temperature ",{"type":993,"tag":1043,"props":1862,"children":1863},{"style":1100},[1864],{"type":999,"value":1510},{"type":993,"tag":1043,"props":1866,"children":1867},{"style":1058},[1868],{"type":999,"value":1869}," 75\n",{"type":993,"tag":1043,"props":1871,"children":1872},{"class":1045,"line":36},[1873],{"type":993,"tag":1043,"props":1874,"children":1875},{"emptyLinePlaceholder":13},[1876],{"type":999,"value":1086},{"type":993,"tag":1043,"props":1878,"children":1879},{"class":1045,"line":45},[1880],{"type":993,"tag":1043,"props":1881,"children":1882},{"style":1049},[1883],{"type":999,"value":1884},"# Colon starts the block, indentation groups the code\n",{"type":993,"tag":1043,"props":1886,"children":1887},{"class":1045,"line":54},[1888,1892,1897,1902,1907],{"type":993,"tag":1043,"props":1889,"children":1890},{"style":1100},[1891],{"type":999,"value":1103},{"type":993,"tag":1043,"props":1893,"children":1894},{"style":1064},[1895],{"type":999,"value":1896}," temperature ",{"type":993,"tag":1043,"props":1898,"children":1899},{"style":1100},[1900],{"type":999,"value":1901},">",{"type":993,"tag":1043,"props":1903,"children":1904},{"style":1058},[1905],{"type":999,"value":1906}," 70",{"type":993,"tag":1043,"props":1908,"children":1909},{"style":1064},[1910],{"type":999,"value":1113},{"type":993,"tag":1043,"props":1912,"children":1913},{"class":1045,"line":63},[1914,1918,1922,1927],{"type":993,"tag":1043,"props":1915,"children":1916},{"style":1058},[1917],{"type":999,"value":1121},{"type":993,"tag":1043,"props":1919,"children":1920},{"style":1064},[1921],{"type":999,"value":1067},{"type":993,"tag":1043,"props":1923,"children":1924},{"style":1070},[1925],{"type":999,"value":1926},"\"It's warm outside!\"",{"type":993,"tag":1043,"props":1928,"children":1929},{"style":1064},[1930],{"type":999,"value":1078},{"type":993,"tag":1043,"props":1932,"children":1933},{"class":1045,"line":72},[1934,1938,1942,1947],{"type":993,"tag":1043,"props":1935,"children":1936},{"style":1058},[1937],{"type":999,"value":1121},{"type":993,"tag":1043,"props":1939,"children":1940},{"style":1064},[1941],{"type":999,"value":1067},{"type":993,"tag":1043,"props":1943,"children":1944},{"style":1070},[1945],{"type":999,"value":1946},"\"Good weather for a walk\"",{"type":993,"tag":1043,"props":1948,"children":1949},{"style":1064},[1950],{"type":999,"value":1078},{"type":993,"tag":1043,"props":1952,"children":1953},{"class":1045,"line":81},[1954],{"type":993,"tag":1043,"props":1955,"children":1956},{"style":1064},[1957],{"type":999,"value":1162},{"type":993,"tag":1043,"props":1959,"children":1960},{"class":1045,"line":91},[1961],{"type":993,"tag":1043,"props":1962,"children":1963},{"style":1049},[1964],{"type":999,"value":1965},"    # Nested blocks need more indentation\n",{"type":993,"tag":1043,"props":1967,"children":1968},{"class":1045,"line":100},[1969,1973,1977,1981,1986],{"type":993,"tag":1043,"props":1970,"children":1971},{"style":1100},[1972],{"type":999,"value":1657},{"type":993,"tag":1043,"props":1974,"children":1975},{"style":1064},[1976],{"type":999,"value":1896},{"type":993,"tag":1043,"props":1978,"children":1979},{"style":1100},[1980],{"type":999,"value":1901},{"type":993,"tag":1043,"props":1982,"children":1983},{"style":1058},[1984],{"type":999,"value":1985}," 90",{"type":993,"tag":1043,"props":1987,"children":1988},{"style":1064},[1989],{"type":999,"value":1113},{"type":993,"tag":1043,"props":1991,"children":1992},{"class":1045,"line":109},[1993,1997,2001,2006],{"type":993,"tag":1043,"props":1994,"children":1995},{"style":1058},[1996],{"type":999,"value":1682},{"type":993,"tag":1043,"props":1998,"children":1999},{"style":1064},[2000],{"type":999,"value":1067},{"type":993,"tag":1043,"props":2002,"children":2003},{"style":1070},[2004],{"type":999,"value":2005},"\"But it's quite hot!\"",{"type":993,"tag":1043,"props":2007,"children":2008},{"style":1064},[2009],{"type":999,"value":1078},{"type":993,"tag":1043,"props":2011,"children":2012},{"class":1045,"line":118},[2013,2017,2021,2026],{"type":993,"tag":1043,"props":2014,"children":2015},{"style":1058},[2016],{"type":999,"value":1682},{"type":993,"tag":1043,"props":2018,"children":2019},{"style":1064},[2020],{"type":999,"value":1067},{"type":993,"tag":1043,"props":2022,"children":2023},{"style":1070},[2024],{"type":999,"value":2025},"\"Stay hydrated!\"",{"type":993,"tag":1043,"props":2027,"children":2028},{"style":1064},[2029],{"type":999,"value":1078},{"type":993,"tag":1043,"props":2031,"children":2032},{"class":1045,"line":127},[2033],{"type":993,"tag":1043,"props":2034,"children":2035},{"emptyLinePlaceholder":13},[2036],{"type":999,"value":1086},{"type":993,"tag":1043,"props":2038,"children":2039},{"class":1045,"line":136},[2040,2044,2048,2053],{"type":993,"tag":1043,"props":2041,"children":2042},{"style":1058},[2043],{"type":999,"value":1061},{"type":993,"tag":1043,"props":2045,"children":2046},{"style":1064},[2047],{"type":999,"value":1067},{"type":993,"tag":1043,"props":2049,"children":2050},{"style":1070},[2051],{"type":999,"value":2052},"\"Weather check complete\"",{"type":993,"tag":1043,"props":2054,"children":2055},{"style":1064},[2056],{"type":999,"value":1078},{"type":993,"tag":1307,"props":2058,"children":2060},{"id":2059},"lines-and-statements",[2061],{"type":999,"value":2062},"📝 Lines and Statements",{"type":993,"tag":1002,"props":2064,"children":2065},{},[2066,2068,2073,2075,2080],{"type":999,"value":2067},"Python code is organized into ",{"type":993,"tag":1017,"props":2069,"children":2070},{},[2071],{"type":999,"value":2072},"lines",{"type":999,"value":2074},", and each line typically contains ",{"type":993,"tag":1017,"props":2076,"children":2077},{},[2078],{"type":999,"value":2079},"one statement",{"type":999,"value":2081}," (instruction).",{"type":993,"tag":1331,"props":2083,"children":2085},{"id":2084},"line-structure-rules",[2086],{"type":999,"value":2087},"Line Structure Rules:",{"type":993,"tag":1338,"props":2089,"children":2090},{},[2091,2101,2111],{"type":993,"tag":1342,"props":2092,"children":2093},{},[2094,2099],{"type":993,"tag":1017,"props":2095,"children":2096},{},[2097],{"type":999,"value":2098},"One statement per line",{"type":999,"value":2100}," (recommended for readability)",{"type":993,"tag":1342,"props":2102,"children":2103},{},[2104,2109],{"type":993,"tag":1017,"props":2105,"children":2106},{},[2107],{"type":999,"value":2108},"No semicolons needed",{"type":999,"value":2110}," (unlike some languages)",{"type":993,"tag":1342,"props":2112,"children":2113},{},[2114,2119,2121,2127],{"type":993,"tag":1017,"props":2115,"children":2116},{},[2117],{"type":999,"value":2118},"Long lines can be continued",{"type":999,"value":2120}," using backslash ",{"type":993,"tag":1008,"props":2122,"children":2124},{"className":2123},[],[2125],{"type":999,"value":2126},"\\",{"type":999,"value":2128}," or parentheses",{"type":993,"tag":1383,"props":2130,"children":2134},{"emoji":2131,"title":2132,"type":2133},"📋","Line Structure Best Practices","info",[2135,2187,2195],{"type":993,"tag":1002,"props":2136,"children":2137},{},[2138,2139,2144,2145,2151,2155,2157,2161,2162,2168,2171,2173,2178,2179,2185],{"type":999,"value":1396},{"type":993,"tag":1017,"props":2140,"children":2141},{},[2142],{"type":999,"value":2143},"Good",{"type":999,"value":1783},{"type":993,"tag":1008,"props":2146,"children":2148},{"className":2147},[],[2149],{"type":999,"value":2150},"name = \"Alice\"",{"type":993,"tag":2152,"props":2153,"children":2154},"br",{},[],{"type":999,"value":2156},"\n✅ ",{"type":993,"tag":1017,"props":2158,"children":2159},{},[2160],{"type":999,"value":2143},{"type":999,"value":1783},{"type":993,"tag":1008,"props":2163,"children":2165},{"className":2164},[],[2166],{"type":999,"value":2167},"age = 25",{"type":993,"tag":2152,"props":2169,"children":2170},{},[],{"type":999,"value":2172},"\n❌ ",{"type":993,"tag":1017,"props":2174,"children":2175},{},[2176],{"type":999,"value":2177},"Avoid",{"type":999,"value":1783},{"type":993,"tag":1008,"props":2180,"children":2182},{"className":2181},[],[2183],{"type":999,"value":2184},"name = \"Alice\"; age = 25",{"type":999,"value":2186}," (multiple statements on one line)",{"type":993,"tag":1002,"props":2188,"children":2189},{},[2190],{"type":993,"tag":1017,"props":2191,"children":2192},{},[2193],{"type":999,"value":2194},"Line continuation options:",{"type":993,"tag":1338,"props":2196,"children":2197},{},[2198,2209],{"type":993,"tag":1342,"props":2199,"children":2200},{},[2201,2203],{"type":999,"value":2202},"Backslash: ",{"type":993,"tag":1008,"props":2204,"children":2206},{"className":2205},[],[2207],{"type":999,"value":2208},"long_text = \"This is a very long \" \\",{"type":993,"tag":1342,"props":2210,"children":2211},{},[2212,2214],{"type":999,"value":2213},"Parentheses: ",{"type":993,"tag":1008,"props":2215,"children":2217},{"className":2216},[],[2218],{"type":999,"value":2219},"total = (first_number + second_number)",{"type":993,"tag":1030,"props":2221,"children":2222},{},[2223],{"type":993,"tag":1034,"props":2224,"children":2226},{"className":1036,"code":2225,"language":6,"meta":8,"style":8},"# Lines and statements\nprint(\"=== LINES AND STATEMENTS ===\")\n\n# One statement per line (recommended)\nfirst_name = \"John\"\nlast_name = \"Smith\"\nage = 30\n\n# Line continuation for long statements\nlong_message = \"This is a very long message that \" + \\\n               \"continues on the next line\"\n\n# Better way using parentheses\nbetter_message = (\"This is a long message \"\n                  \"that spans multiple lines \"\n                  \"in a cleaner way\")\n\nprint(long_message)\nprint(better_message)\n",[2227],{"type":993,"tag":1008,"props":2228,"children":2229},{"__ignoreMap":8},[2230,2238,2258,2265,2273,2290,2307,2323,2330,2338,2365,2373,2380,2388,2410,2418,2430,2437,2449],{"type":993,"tag":1043,"props":2231,"children":2232},{"class":1045,"line":12},[2233],{"type":993,"tag":1043,"props":2234,"children":2235},{"style":1049},[2236],{"type":999,"value":2237},"# Lines and statements\n",{"type":993,"tag":1043,"props":2239,"children":2240},{"class":1045,"line":27},[2241,2245,2249,2254],{"type":993,"tag":1043,"props":2242,"children":2243},{"style":1058},[2244],{"type":999,"value":1061},{"type":993,"tag":1043,"props":2246,"children":2247},{"style":1064},[2248],{"type":999,"value":1067},{"type":993,"tag":1043,"props":2250,"children":2251},{"style":1070},[2252],{"type":999,"value":2253},"\"=== LINES AND STATEMENTS ===\"",{"type":993,"tag":1043,"props":2255,"children":2256},{"style":1064},[2257],{"type":999,"value":1078},{"type":993,"tag":1043,"props":2259,"children":2260},{"class":1045,"line":36},[2261],{"type":993,"tag":1043,"props":2262,"children":2263},{"emptyLinePlaceholder":13},[2264],{"type":999,"value":1086},{"type":993,"tag":1043,"props":2266,"children":2267},{"class":1045,"line":45},[2268],{"type":993,"tag":1043,"props":2269,"children":2270},{"style":1049},[2271],{"type":999,"value":2272},"# One statement per line (recommended)\n",{"type":993,"tag":1043,"props":2274,"children":2275},{"class":1045,"line":54},[2276,2281,2285],{"type":993,"tag":1043,"props":2277,"children":2278},{"style":1064},[2279],{"type":999,"value":2280},"first_name ",{"type":993,"tag":1043,"props":2282,"children":2283},{"style":1100},[2284],{"type":999,"value":1510},{"type":993,"tag":1043,"props":2286,"children":2287},{"style":1070},[2288],{"type":999,"value":2289}," \"John\"\n",{"type":993,"tag":1043,"props":2291,"children":2292},{"class":1045,"line":63},[2293,2298,2302],{"type":993,"tag":1043,"props":2294,"children":2295},{"style":1064},[2296],{"type":999,"value":2297},"last_name ",{"type":993,"tag":1043,"props":2299,"children":2300},{"style":1100},[2301],{"type":999,"value":1510},{"type":993,"tag":1043,"props":2303,"children":2304},{"style":1070},[2305],{"type":999,"value":2306}," \"Smith\"\n",{"type":993,"tag":1043,"props":2308,"children":2309},{"class":1045,"line":72},[2310,2314,2318],{"type":993,"tag":1043,"props":2311,"children":2312},{"style":1064},[2313],{"type":999,"value":1523},{"type":993,"tag":1043,"props":2315,"children":2316},{"style":1100},[2317],{"type":999,"value":1510},{"type":993,"tag":1043,"props":2319,"children":2320},{"style":1058},[2321],{"type":999,"value":2322}," 30\n",{"type":993,"tag":1043,"props":2324,"children":2325},{"class":1045,"line":81},[2326],{"type":993,"tag":1043,"props":2327,"children":2328},{"emptyLinePlaceholder":13},[2329],{"type":999,"value":1086},{"type":993,"tag":1043,"props":2331,"children":2332},{"class":1045,"line":91},[2333],{"type":993,"tag":1043,"props":2334,"children":2335},{"style":1049},[2336],{"type":999,"value":2337},"# Line continuation for long statements\n",{"type":993,"tag":1043,"props":2339,"children":2340},{"class":1045,"line":100},[2341,2346,2350,2355,2360],{"type":993,"tag":1043,"props":2342,"children":2343},{"style":1064},[2344],{"type":999,"value":2345},"long_message ",{"type":993,"tag":1043,"props":2347,"children":2348},{"style":1100},[2349],{"type":999,"value":1510},{"type":993,"tag":1043,"props":2351,"children":2352},{"style":1070},[2353],{"type":999,"value":2354}," \"This is a very long message that \"",{"type":993,"tag":1043,"props":2356,"children":2357},{"style":1100},[2358],{"type":999,"value":2359}," +",{"type":993,"tag":1043,"props":2361,"children":2362},{"style":1064},[2363],{"type":999,"value":2364}," \\\n",{"type":993,"tag":1043,"props":2366,"children":2367},{"class":1045,"line":109},[2368],{"type":993,"tag":1043,"props":2369,"children":2370},{"style":1070},[2371],{"type":999,"value":2372},"               \"continues on the next line\"\n",{"type":993,"tag":1043,"props":2374,"children":2375},{"class":1045,"line":118},[2376],{"type":993,"tag":1043,"props":2377,"children":2378},{"emptyLinePlaceholder":13},[2379],{"type":999,"value":1086},{"type":993,"tag":1043,"props":2381,"children":2382},{"class":1045,"line":127},[2383],{"type":993,"tag":1043,"props":2384,"children":2385},{"style":1049},[2386],{"type":999,"value":2387},"# Better way using parentheses\n",{"type":993,"tag":1043,"props":2389,"children":2390},{"class":1045,"line":136},[2391,2396,2400,2405],{"type":993,"tag":1043,"props":2392,"children":2393},{"style":1064},[2394],{"type":999,"value":2395},"better_message ",{"type":993,"tag":1043,"props":2397,"children":2398},{"style":1100},[2399],{"type":999,"value":1510},{"type":993,"tag":1043,"props":2401,"children":2402},{"style":1064},[2403],{"type":999,"value":2404}," (",{"type":993,"tag":1043,"props":2406,"children":2407},{"style":1070},[2408],{"type":999,"value":2409},"\"This is a long message \"\n",{"type":993,"tag":1043,"props":2411,"children":2412},{"class":1045,"line":146},[2413],{"type":993,"tag":1043,"props":2414,"children":2415},{"style":1070},[2416],{"type":999,"value":2417},"                  \"that spans multiple lines \"\n",{"type":993,"tag":1043,"props":2419,"children":2420},{"class":1045,"line":155},[2421,2426],{"type":993,"tag":1043,"props":2422,"children":2423},{"style":1070},[2424],{"type":999,"value":2425},"                  \"in a cleaner way\"",{"type":993,"tag":1043,"props":2427,"children":2428},{"style":1064},[2429],{"type":999,"value":1078},{"type":993,"tag":1043,"props":2431,"children":2432},{"class":1045,"line":164},[2433],{"type":993,"tag":1043,"props":2434,"children":2435},{"emptyLinePlaceholder":13},[2436],{"type":999,"value":1086},{"type":993,"tag":1043,"props":2438,"children":2439},{"class":1045,"line":173},[2440,2444],{"type":993,"tag":1043,"props":2441,"children":2442},{"style":1058},[2443],{"type":999,"value":1061},{"type":993,"tag":1043,"props":2445,"children":2446},{"style":1064},[2447],{"type":999,"value":2448},"(long_message)\n",{"type":993,"tag":1043,"props":2450,"children":2451},{"class":1045,"line":182},[2452,2456],{"type":993,"tag":1043,"props":2453,"children":2454},{"style":1058},[2455],{"type":999,"value":1061},{"type":993,"tag":1043,"props":2457,"children":2458},{"style":1064},[2459],{"type":999,"value":2460},"(better_message)\n",{"type":993,"tag":1307,"props":2462,"children":2464},{"id":2463},"comments-in-python",[2465],{"type":999,"value":2466},"💬 Comments in Python",{"type":993,"tag":1002,"props":2468,"children":2469},{},[2470,2475],{"type":993,"tag":1017,"props":2471,"children":2472},{},[2473],{"type":999,"value":2474},"Comments",{"type":999,"value":2476}," are notes you add to explain your code. Python ignores comments when running your program, but they help humans understand what the code does.",{"type":993,"tag":1331,"props":2478,"children":2480},{"id":2479},"comment-types",[2481],{"type":999,"value":2482},"Comment Types:",{"type":993,"tag":1338,"props":2484,"children":2485},{},[2486,2504],{"type":993,"tag":1342,"props":2487,"children":2488},{},[2489,2494,2496,2502],{"type":993,"tag":1017,"props":2490,"children":2491},{},[2492],{"type":999,"value":2493},"Single-line",{"type":999,"value":2495},": Use ",{"type":993,"tag":1008,"props":2497,"children":2499},{"className":2498},[],[2500],{"type":999,"value":2501},"#",{"type":999,"value":2503}," symbol",{"type":993,"tag":1342,"props":2505,"children":2506},{},[2507,2512,2514,2519,2521],{"type":993,"tag":1017,"props":2508,"children":2509},{},[2510],{"type":999,"value":2511},"Multi-line",{"type":999,"value":2513},": Use multiple ",{"type":993,"tag":1008,"props":2515,"children":2517},{"className":2516},[],[2518],{"type":999,"value":2501},{"type":999,"value":2520}," lines or triple quotes ",{"type":993,"tag":1008,"props":2522,"children":2524},{"className":2523},[],[2525],{"type":999,"value":2526},"\"\"\"",{"type":993,"tag":1383,"props":2528,"children":2532},{"emoji":2529,"title":2530,"type":2531},"✅","Comment Best Practices","success",[2533],{"type":993,"tag":1338,"props":2534,"children":2535},{},[2536,2551,2561,2571],{"type":993,"tag":1342,"props":2537,"children":2538},{},[2539],{"type":993,"tag":1017,"props":2540,"children":2541},{},[2542,2544,2549],{"type":999,"value":2543},"Use ",{"type":993,"tag":1008,"props":2545,"children":2547},{"className":2546},[],[2548],{"type":999,"value":2501},{"type":999,"value":2550}," for single-line comments",{"type":993,"tag":1342,"props":2552,"children":2553},{},[2554,2559],{"type":993,"tag":1017,"props":2555,"children":2556},{},[2557],{"type":999,"value":2558},"Explain WHY, not WHAT",{"type":999,"value":2560}," (code shows what)",{"type":993,"tag":1342,"props":2562,"children":2563},{},[2564,2569],{"type":993,"tag":1017,"props":2565,"children":2566},{},[2567],{"type":999,"value":2568},"Keep comments current",{"type":999,"value":2570}," when you change code",{"type":993,"tag":1342,"props":2572,"children":2573},{},[2574],{"type":993,"tag":1017,"props":2575,"children":2576},{},[2577],{"type":999,"value":2578},"Use clear, simple language",{"type":993,"tag":1030,"props":2580,"children":2581},{},[2582],{"type":993,"tag":1034,"props":2583,"children":2585},{"className":1036,"code":2584,"language":6,"meta":8,"style":8},"# This is a single-line comment\nname = \"Python\"  # Comments can go at the end of lines too\n\n# Multiple single-line comments\n# can be used to explain\n# more complex concepts\n\n\"\"\"\nThis is a multi-line comment\nusing triple quotes. It can span\nseveral lines and is useful for\nlonger explanations.\n\"\"\"\n\n# Calculate area of rectangle\nlength = 10  # in feet\nwidth = 8    # in feet\narea = length * width  # area calculation\n\nprint(f\"Area: {area} square feet\")\n",[2586],{"type":993,"tag":1008,"props":2587,"children":2588},{"__ignoreMap":8},[2589,2597,2618,2625,2633,2641,2649,2656,2664,2672,2680,2688,2696,2703,2710,2718,2740,2762,2794,2801],{"type":993,"tag":1043,"props":2590,"children":2591},{"class":1045,"line":12},[2592],{"type":993,"tag":1043,"props":2593,"children":2594},{"style":1049},[2595],{"type":999,"value":2596},"# This is a single-line comment\n",{"type":993,"tag":1043,"props":2598,"children":2599},{"class":1045,"line":27},[2600,2604,2608,2613],{"type":993,"tag":1043,"props":2601,"children":2602},{"style":1064},[2603],{"type":999,"value":1505},{"type":993,"tag":1043,"props":2605,"children":2606},{"style":1100},[2607],{"type":999,"value":1510},{"type":993,"tag":1043,"props":2609,"children":2610},{"style":1070},[2611],{"type":999,"value":2612}," \"Python\"",{"type":993,"tag":1043,"props":2614,"children":2615},{"style":1049},[2616],{"type":999,"value":2617},"  # Comments can go at the end of lines too\n",{"type":993,"tag":1043,"props":2619,"children":2620},{"class":1045,"line":36},[2621],{"type":993,"tag":1043,"props":2622,"children":2623},{"emptyLinePlaceholder":13},[2624],{"type":999,"value":1086},{"type":993,"tag":1043,"props":2626,"children":2627},{"class":1045,"line":45},[2628],{"type":993,"tag":1043,"props":2629,"children":2630},{"style":1049},[2631],{"type":999,"value":2632},"# Multiple single-line comments\n",{"type":993,"tag":1043,"props":2634,"children":2635},{"class":1045,"line":54},[2636],{"type":993,"tag":1043,"props":2637,"children":2638},{"style":1049},[2639],{"type":999,"value":2640},"# can be used to explain\n",{"type":993,"tag":1043,"props":2642,"children":2643},{"class":1045,"line":63},[2644],{"type":993,"tag":1043,"props":2645,"children":2646},{"style":1049},[2647],{"type":999,"value":2648},"# more complex concepts\n",{"type":993,"tag":1043,"props":2650,"children":2651},{"class":1045,"line":72},[2652],{"type":993,"tag":1043,"props":2653,"children":2654},{"emptyLinePlaceholder":13},[2655],{"type":999,"value":1086},{"type":993,"tag":1043,"props":2657,"children":2658},{"class":1045,"line":81},[2659],{"type":993,"tag":1043,"props":2660,"children":2661},{"style":1070},[2662],{"type":999,"value":2663},"\"\"\"\n",{"type":993,"tag":1043,"props":2665,"children":2666},{"class":1045,"line":91},[2667],{"type":993,"tag":1043,"props":2668,"children":2669},{"style":1070},[2670],{"type":999,"value":2671},"This is a multi-line comment\n",{"type":993,"tag":1043,"props":2673,"children":2674},{"class":1045,"line":100},[2675],{"type":993,"tag":1043,"props":2676,"children":2677},{"style":1070},[2678],{"type":999,"value":2679},"using triple quotes. It can span\n",{"type":993,"tag":1043,"props":2681,"children":2682},{"class":1045,"line":109},[2683],{"type":993,"tag":1043,"props":2684,"children":2685},{"style":1070},[2686],{"type":999,"value":2687},"several lines and is useful for\n",{"type":993,"tag":1043,"props":2689,"children":2690},{"class":1045,"line":118},[2691],{"type":993,"tag":1043,"props":2692,"children":2693},{"style":1070},[2694],{"type":999,"value":2695},"longer explanations.\n",{"type":993,"tag":1043,"props":2697,"children":2698},{"class":1045,"line":127},[2699],{"type":993,"tag":1043,"props":2700,"children":2701},{"style":1070},[2702],{"type":999,"value":2663},{"type":993,"tag":1043,"props":2704,"children":2705},{"class":1045,"line":136},[2706],{"type":993,"tag":1043,"props":2707,"children":2708},{"emptyLinePlaceholder":13},[2709],{"type":999,"value":1086},{"type":993,"tag":1043,"props":2711,"children":2712},{"class":1045,"line":146},[2713],{"type":993,"tag":1043,"props":2714,"children":2715},{"style":1049},[2716],{"type":999,"value":2717},"# Calculate area of rectangle\n",{"type":993,"tag":1043,"props":2719,"children":2720},{"class":1045,"line":155},[2721,2726,2730,2735],{"type":993,"tag":1043,"props":2722,"children":2723},{"style":1064},[2724],{"type":999,"value":2725},"length ",{"type":993,"tag":1043,"props":2727,"children":2728},{"style":1100},[2729],{"type":999,"value":1510},{"type":993,"tag":1043,"props":2731,"children":2732},{"style":1058},[2733],{"type":999,"value":2734}," 10",{"type":993,"tag":1043,"props":2736,"children":2737},{"style":1049},[2738],{"type":999,"value":2739},"  # in feet\n",{"type":993,"tag":1043,"props":2741,"children":2742},{"class":1045,"line":164},[2743,2748,2752,2757],{"type":993,"tag":1043,"props":2744,"children":2745},{"style":1064},[2746],{"type":999,"value":2747},"width ",{"type":993,"tag":1043,"props":2749,"children":2750},{"style":1100},[2751],{"type":999,"value":1510},{"type":993,"tag":1043,"props":2753,"children":2754},{"style":1058},[2755],{"type":999,"value":2756}," 8",{"type":993,"tag":1043,"props":2758,"children":2759},{"style":1049},[2760],{"type":999,"value":2761},"    # in feet\n",{"type":993,"tag":1043,"props":2763,"children":2764},{"class":1045,"line":173},[2765,2770,2774,2779,2784,2789],{"type":993,"tag":1043,"props":2766,"children":2767},{"style":1064},[2768],{"type":999,"value":2769},"area ",{"type":993,"tag":1043,"props":2771,"children":2772},{"style":1100},[2773],{"type":999,"value":1510},{"type":993,"tag":1043,"props":2775,"children":2776},{"style":1064},[2777],{"type":999,"value":2778}," length ",{"type":993,"tag":1043,"props":2780,"children":2781},{"style":1100},[2782],{"type":999,"value":2783},"*",{"type":993,"tag":1043,"props":2785,"children":2786},{"style":1064},[2787],{"type":999,"value":2788}," width  ",{"type":993,"tag":1043,"props":2790,"children":2791},{"style":1049},[2792],{"type":999,"value":2793},"# area calculation\n",{"type":993,"tag":1043,"props":2795,"children":2796},{"class":1045,"line":182},[2797],{"type":993,"tag":1043,"props":2798,"children":2799},{"emptyLinePlaceholder":13},[2800],{"type":999,"value":1086},{"type":993,"tag":1043,"props":2802,"children":2803},{"class":1045,"line":191},[2804,2808,2812,2816,2821,2825,2830,2834,2839],{"type":993,"tag":1043,"props":2805,"children":2806},{"style":1058},[2807],{"type":999,"value":1061},{"type":993,"tag":1043,"props":2809,"children":2810},{"style":1064},[2811],{"type":999,"value":1067},{"type":993,"tag":1043,"props":2813,"children":2814},{"style":1100},[2815],{"type":999,"value":1232},{"type":993,"tag":1043,"props":2817,"children":2818},{"style":1070},[2819],{"type":999,"value":2820},"\"Area: ",{"type":993,"tag":1043,"props":2822,"children":2823},{"style":1058},[2824],{"type":999,"value":1242},{"type":993,"tag":1043,"props":2826,"children":2827},{"style":1064},[2828],{"type":999,"value":2829},"area",{"type":993,"tag":1043,"props":2831,"children":2832},{"style":1058},[2833],{"type":999,"value":1252},{"type":993,"tag":1043,"props":2835,"children":2836},{"style":1070},[2837],{"type":999,"value":2838}," square feet\"",{"type":993,"tag":1043,"props":2840,"children":2841},{"style":1064},[2842],{"type":999,"value":1078},{"type":993,"tag":1307,"props":2844,"children":2846},{"id":2845},"whitespace-and-formatting",[2847],{"type":999,"value":2848},"🎨 Whitespace and Formatting",{"type":993,"tag":1002,"props":2850,"children":2851},{},[2852,2854,2859],{"type":999,"value":2853},"Python cares about ",{"type":993,"tag":1017,"props":2855,"children":2856},{},[2857],{"type":999,"value":2858},"leading whitespace",{"type":999,"value":2860}," (indentation) but is flexible with other spacing. Good formatting makes your code easier to read.",{"type":993,"tag":1331,"props":2862,"children":2864},{"id":2863},"formatting-guidelines-pep-8",[2865],{"type":999,"value":2866},"Formatting Guidelines (PEP 8):",{"type":993,"tag":1338,"props":2868,"children":2869},{},[2870,2878,2903,2913,2923],{"type":993,"tag":1342,"props":2871,"children":2872},{},[2873],{"type":993,"tag":1017,"props":2874,"children":2875},{},[2876],{"type":999,"value":2877},"4 spaces per indentation level",{"type":993,"tag":1342,"props":2879,"children":2880},{},[2881,2886,2887,2893,2895,2901],{"type":993,"tag":1017,"props":2882,"children":2883},{},[2884],{"type":999,"value":2885},"Spaces around operators",{"type":999,"value":1783},{"type":993,"tag":1008,"props":2888,"children":2890},{"className":2889},[],[2891],{"type":999,"value":2892},"x = 5 + 3",{"type":999,"value":2894}," (not ",{"type":993,"tag":1008,"props":2896,"children":2898},{"className":2897},[],[2899],{"type":999,"value":2900},"x=5+3",{"type":999,"value":2902},")",{"type":993,"tag":1342,"props":2904,"children":2905},{},[2906,2911],{"type":993,"tag":1017,"props":2907,"children":2908},{},[2909],{"type":999,"value":2910},"No trailing spaces",{"type":999,"value":2912}," at the end of lines",{"type":993,"tag":1342,"props":2914,"children":2915},{},[2916,2921],{"type":993,"tag":1017,"props":2917,"children":2918},{},[2919],{"type":999,"value":2920},"Two blank lines",{"type":999,"value":2922}," before functions and classes",{"type":993,"tag":1342,"props":2924,"children":2925},{},[2926,2931],{"type":993,"tag":1017,"props":2927,"children":2928},{},[2929],{"type":999,"value":2930},"One blank line",{"type":999,"value":2932}," between logical sections",{"type":993,"tag":1030,"props":2934,"children":2935},{},[2936],{"type":993,"tag":1034,"props":2937,"children":2939},{"className":1036,"code":2938,"language":6,"meta":8,"style":8},"# Good formatting examples\nprint(\"=== FORMATTING EXAMPLES ===\")\n\n# Proper spacing around operators\nfirst_name = \"Alice\"\nlast_name = \"Johnson\"\nfull_name = first_name + \" \" + last_name\n\n# Function with proper formatting\ndef calculate_total(price, tax_rate):\n    tax = price * tax_rate\n    total = price + tax\n    return total\n\n# Using the function\nitem_price = 29.99\ntax_rate = 0.08\nfinal_price = calculate_total(item_price, tax_rate)\n\nprint(f\"Name: {full_name}\")\nprint(f\"Total: ${final_price:.2f}\")\n",[2940],{"type":993,"tag":1008,"props":2941,"children":2942},{"__ignoreMap":8},[2943,2951,2971,2978,2986,3001,3017,3053,3060,3068,3085,3111,3136,3149,3156,3164,3181,3198,3215,3222,3263],{"type":993,"tag":1043,"props":2944,"children":2945},{"class":1045,"line":12},[2946],{"type":993,"tag":1043,"props":2947,"children":2948},{"style":1049},[2949],{"type":999,"value":2950},"# Good formatting examples\n",{"type":993,"tag":1043,"props":2952,"children":2953},{"class":1045,"line":27},[2954,2958,2962,2967],{"type":993,"tag":1043,"props":2955,"children":2956},{"style":1058},[2957],{"type":999,"value":1061},{"type":993,"tag":1043,"props":2959,"children":2960},{"style":1064},[2961],{"type":999,"value":1067},{"type":993,"tag":1043,"props":2963,"children":2964},{"style":1070},[2965],{"type":999,"value":2966},"\"=== FORMATTING EXAMPLES ===\"",{"type":993,"tag":1043,"props":2968,"children":2969},{"style":1064},[2970],{"type":999,"value":1078},{"type":993,"tag":1043,"props":2972,"children":2973},{"class":1045,"line":36},[2974],{"type":993,"tag":1043,"props":2975,"children":2976},{"emptyLinePlaceholder":13},[2977],{"type":999,"value":1086},{"type":993,"tag":1043,"props":2979,"children":2980},{"class":1045,"line":45},[2981],{"type":993,"tag":1043,"props":2982,"children":2983},{"style":1049},[2984],{"type":999,"value":2985},"# Proper spacing around operators\n",{"type":993,"tag":1043,"props":2987,"children":2988},{"class":1045,"line":54},[2989,2993,2997],{"type":993,"tag":1043,"props":2990,"children":2991},{"style":1064},[2992],{"type":999,"value":2280},{"type":993,"tag":1043,"props":2994,"children":2995},{"style":1100},[2996],{"type":999,"value":1510},{"type":993,"tag":1043,"props":2998,"children":2999},{"style":1070},[3000],{"type":999,"value":1515},{"type":993,"tag":1043,"props":3002,"children":3003},{"class":1045,"line":63},[3004,3008,3012],{"type":993,"tag":1043,"props":3005,"children":3006},{"style":1064},[3007],{"type":999,"value":2297},{"type":993,"tag":1043,"props":3009,"children":3010},{"style":1100},[3011],{"type":999,"value":1510},{"type":993,"tag":1043,"props":3013,"children":3014},{"style":1070},[3015],{"type":999,"value":3016}," \"Johnson\"\n",{"type":993,"tag":1043,"props":3018,"children":3019},{"class":1045,"line":72},[3020,3025,3029,3034,3039,3044,3048],{"type":993,"tag":1043,"props":3021,"children":3022},{"style":1064},[3023],{"type":999,"value":3024},"full_name ",{"type":993,"tag":1043,"props":3026,"children":3027},{"style":1100},[3028],{"type":999,"value":1510},{"type":993,"tag":1043,"props":3030,"children":3031},{"style":1064},[3032],{"type":999,"value":3033}," first_name ",{"type":993,"tag":1043,"props":3035,"children":3036},{"style":1100},[3037],{"type":999,"value":3038},"+",{"type":993,"tag":1043,"props":3040,"children":3041},{"style":1070},[3042],{"type":999,"value":3043}," \" \"",{"type":993,"tag":1043,"props":3045,"children":3046},{"style":1100},[3047],{"type":999,"value":2359},{"type":993,"tag":1043,"props":3049,"children":3050},{"style":1064},[3051],{"type":999,"value":3052}," last_name\n",{"type":993,"tag":1043,"props":3054,"children":3055},{"class":1045,"line":81},[3056],{"type":993,"tag":1043,"props":3057,"children":3058},{"emptyLinePlaceholder":13},[3059],{"type":999,"value":1086},{"type":993,"tag":1043,"props":3061,"children":3062},{"class":1045,"line":91},[3063],{"type":993,"tag":1043,"props":3064,"children":3065},{"style":1049},[3066],{"type":999,"value":3067},"# Function with proper formatting\n",{"type":993,"tag":1043,"props":3069,"children":3070},{"class":1045,"line":100},[3071,3075,3080],{"type":993,"tag":1043,"props":3072,"children":3073},{"style":1100},[3074],{"type":999,"value":1205},{"type":993,"tag":1043,"props":3076,"children":3077},{"style":1208},[3078],{"type":999,"value":3079}," calculate_total",{"type":993,"tag":1043,"props":3081,"children":3082},{"style":1064},[3083],{"type":999,"value":3084},"(price, tax_rate):\n",{"type":993,"tag":1043,"props":3086,"children":3087},{"class":1045,"line":109},[3088,3093,3097,3102,3106],{"type":993,"tag":1043,"props":3089,"children":3090},{"style":1064},[3091],{"type":999,"value":3092},"    tax ",{"type":993,"tag":1043,"props":3094,"children":3095},{"style":1100},[3096],{"type":999,"value":1510},{"type":993,"tag":1043,"props":3098,"children":3099},{"style":1064},[3100],{"type":999,"value":3101}," price ",{"type":993,"tag":1043,"props":3103,"children":3104},{"style":1100},[3105],{"type":999,"value":2783},{"type":993,"tag":1043,"props":3107,"children":3108},{"style":1064},[3109],{"type":999,"value":3110}," tax_rate\n",{"type":993,"tag":1043,"props":3112,"children":3113},{"class":1045,"line":118},[3114,3119,3123,3127,3131],{"type":993,"tag":1043,"props":3115,"children":3116},{"style":1064},[3117],{"type":999,"value":3118},"    total ",{"type":993,"tag":1043,"props":3120,"children":3121},{"style":1100},[3122],{"type":999,"value":1510},{"type":993,"tag":1043,"props":3124,"children":3125},{"style":1064},[3126],{"type":999,"value":3101},{"type":993,"tag":1043,"props":3128,"children":3129},{"style":1100},[3130],{"type":999,"value":3038},{"type":993,"tag":1043,"props":3132,"children":3133},{"style":1064},[3134],{"type":999,"value":3135}," tax\n",{"type":993,"tag":1043,"props":3137,"children":3138},{"class":1045,"line":127},[3139,3144],{"type":993,"tag":1043,"props":3140,"children":3141},{"style":1100},[3142],{"type":999,"value":3143},"    return",{"type":993,"tag":1043,"props":3145,"children":3146},{"style":1064},[3147],{"type":999,"value":3148}," total\n",{"type":993,"tag":1043,"props":3150,"children":3151},{"class":1045,"line":136},[3152],{"type":993,"tag":1043,"props":3153,"children":3154},{"emptyLinePlaceholder":13},[3155],{"type":999,"value":1086},{"type":993,"tag":1043,"props":3157,"children":3158},{"class":1045,"line":146},[3159],{"type":993,"tag":1043,"props":3160,"children":3161},{"style":1049},[3162],{"type":999,"value":3163},"# Using the function\n",{"type":993,"tag":1043,"props":3165,"children":3166},{"class":1045,"line":155},[3167,3172,3176],{"type":993,"tag":1043,"props":3168,"children":3169},{"style":1064},[3170],{"type":999,"value":3171},"item_price ",{"type":993,"tag":1043,"props":3173,"children":3174},{"style":1100},[3175],{"type":999,"value":1510},{"type":993,"tag":1043,"props":3177,"children":3178},{"style":1058},[3179],{"type":999,"value":3180}," 29.99\n",{"type":993,"tag":1043,"props":3182,"children":3183},{"class":1045,"line":164},[3184,3189,3193],{"type":993,"tag":1043,"props":3185,"children":3186},{"style":1064},[3187],{"type":999,"value":3188},"tax_rate ",{"type":993,"tag":1043,"props":3190,"children":3191},{"style":1100},[3192],{"type":999,"value":1510},{"type":993,"tag":1043,"props":3194,"children":3195},{"style":1058},[3196],{"type":999,"value":3197}," 0.08\n",{"type":993,"tag":1043,"props":3199,"children":3200},{"class":1045,"line":173},[3201,3206,3210],{"type":993,"tag":1043,"props":3202,"children":3203},{"style":1064},[3204],{"type":999,"value":3205},"final_price ",{"type":993,"tag":1043,"props":3207,"children":3208},{"style":1100},[3209],{"type":999,"value":1510},{"type":993,"tag":1043,"props":3211,"children":3212},{"style":1064},[3213],{"type":999,"value":3214}," calculate_total(item_price, tax_rate)\n",{"type":993,"tag":1043,"props":3216,"children":3217},{"class":1045,"line":182},[3218],{"type":993,"tag":1043,"props":3219,"children":3220},{"emptyLinePlaceholder":13},[3221],{"type":999,"value":1086},{"type":993,"tag":1043,"props":3223,"children":3224},{"class":1045,"line":191},[3225,3229,3233,3237,3242,3246,3251,3255,3259],{"type":993,"tag":1043,"props":3226,"children":3227},{"style":1058},[3228],{"type":999,"value":1061},{"type":993,"tag":1043,"props":3230,"children":3231},{"style":1064},[3232],{"type":999,"value":1067},{"type":993,"tag":1043,"props":3234,"children":3235},{"style":1100},[3236],{"type":999,"value":1232},{"type":993,"tag":1043,"props":3238,"children":3239},{"style":1070},[3240],{"type":999,"value":3241},"\"Name: ",{"type":993,"tag":1043,"props":3243,"children":3244},{"style":1058},[3245],{"type":999,"value":1242},{"type":993,"tag":1043,"props":3247,"children":3248},{"style":1064},[3249],{"type":999,"value":3250},"full_name",{"type":993,"tag":1043,"props":3252,"children":3253},{"style":1058},[3254],{"type":999,"value":1252},{"type":993,"tag":1043,"props":3256,"children":3257},{"style":1070},[3258],{"type":999,"value":1593},{"type":993,"tag":1043,"props":3260,"children":3261},{"style":1064},[3262],{"type":999,"value":1078},{"type":993,"tag":1043,"props":3264,"children":3265},{"class":1045,"line":201},[3266,3270,3274,3278,3283,3287,3292,3297,3301,3305],{"type":993,"tag":1043,"props":3267,"children":3268},{"style":1058},[3269],{"type":999,"value":1061},{"type":993,"tag":1043,"props":3271,"children":3272},{"style":1064},[3273],{"type":999,"value":1067},{"type":993,"tag":1043,"props":3275,"children":3276},{"style":1100},[3277],{"type":999,"value":1232},{"type":993,"tag":1043,"props":3279,"children":3280},{"style":1070},[3281],{"type":999,"value":3282},"\"Total: $",{"type":993,"tag":1043,"props":3284,"children":3285},{"style":1058},[3286],{"type":999,"value":1242},{"type":993,"tag":1043,"props":3288,"children":3289},{"style":1064},[3290],{"type":999,"value":3291},"final_price",{"type":993,"tag":1043,"props":3293,"children":3294},{"style":1100},[3295],{"type":999,"value":3296},":.2f",{"type":993,"tag":1043,"props":3298,"children":3299},{"style":1058},[3300],{"type":999,"value":1252},{"type":993,"tag":1043,"props":3302,"children":3303},{"style":1070},[3304],{"type":999,"value":1593},{"type":993,"tag":1043,"props":3306,"children":3307},{"style":1064},[3308],{"type":999,"value":1078},{"type":993,"tag":1307,"props":3310,"children":3312},{"id":3311},"common-structure-mistakes",[3313],{"type":999,"value":3314},"❌ Common Structure Mistakes",{"type":993,"tag":1002,"props":3316,"children":3317},{},[3318],{"type":999,"value":3319},"Understanding common mistakes helps you avoid them and write better Python code.",{"type":993,"tag":1331,"props":3321,"children":3323},{"id":3322},"frequent-errors",[3324],{"type":999,"value":3325},"Frequent Errors:",{"type":993,"tag":1338,"props":3327,"children":3328},{},[3329,3338,3370,3380],{"type":993,"tag":1342,"props":3330,"children":3331},{},[3332,3336],{"type":993,"tag":1017,"props":3333,"children":3334},{},[3335],{"type":999,"value":1442},{"type":999,"value":3337},": Inconsistent or wrong indentation",{"type":993,"tag":1342,"props":3339,"children":3340},{},[3341,3346,3348,3354,3356,3361,3363,3368],{"type":993,"tag":1017,"props":3342,"children":3343},{},[3344],{"type":999,"value":3345},"Missing colons",{"type":999,"value":3347},": Forgetting ",{"type":993,"tag":1008,"props":3349,"children":3351},{"className":3350},[],[3352],{"type":999,"value":3353},":",{"type":999,"value":3355}," after ",{"type":993,"tag":1008,"props":3357,"children":3359},{"className":3358},[],[3360],{"type":999,"value":1103},{"type":999,"value":3362},", ",{"type":993,"tag":1008,"props":3364,"children":3366},{"className":3365},[],[3367],{"type":999,"value":1205},{"type":999,"value":3369},", etc.",{"type":993,"tag":1342,"props":3371,"children":3372},{},[3373,3378],{"type":993,"tag":1017,"props":3374,"children":3375},{},[3376],{"type":999,"value":3377},"Mixed tabs/spaces",{"type":999,"value":3379},": Using both in the same file",{"type":993,"tag":1342,"props":3381,"children":3382},{},[3383,3388],{"type":993,"tag":1017,"props":3384,"children":3385},{},[3386],{"type":999,"value":3387},"Wrong nesting",{"type":999,"value":3389},": Indentation doesn't match logic",{"type":993,"tag":1383,"props":3391,"children":3393},{"emoji":1385,"title":3392,"type":1387},"Common Structure Errors",[3394,3418,3441],{"type":993,"tag":1002,"props":3395,"children":3396},{},[3397,3401,3402,3408,3411,3416],{"type":993,"tag":1017,"props":3398,"children":3399},{},[3400],{"type":999,"value":1435},{"type":999,"value":1783},{"type":993,"tag":1008,"props":3403,"children":3405},{"className":3404},[],[3406],{"type":999,"value":3407},"IndentationError: expected an indented block",{"type":993,"tag":2152,"props":3409,"children":3410},{},[],{"type":993,"tag":1017,"props":3412,"children":3413},{},[3414],{"type":999,"value":3415},"Fix",{"type":999,"value":3417},": Add proper indentation after colon",{"type":993,"tag":1002,"props":3419,"children":3420},{},[3421,3425,3426,3432,3435,3439],{"type":993,"tag":1017,"props":3422,"children":3423},{},[3424],{"type":999,"value":1435},{"type":999,"value":1783},{"type":993,"tag":1008,"props":3427,"children":3429},{"className":3428},[],[3430],{"type":999,"value":3431},"IndentationError: unindent does not match any outer indentation level",{"type":993,"tag":2152,"props":3433,"children":3434},{},[],{"type":993,"tag":1017,"props":3436,"children":3437},{},[3438],{"type":999,"value":3415},{"type":999,"value":3440},": Make sure indentation is consistent",{"type":993,"tag":1002,"props":3442,"children":3443},{},[3444,3448,3449,3455,3457,3460,3464,3466,3471,3473,3478,3479,3484,3485,3491],{"type":993,"tag":1017,"props":3445,"children":3446},{},[3447],{"type":999,"value":1435},{"type":999,"value":1783},{"type":993,"tag":1008,"props":3450,"children":3452},{"className":3451},[],[3453],{"type":999,"value":3454},"SyntaxError: invalid syntax",{"type":999,"value":3456}," (missing colon)",{"type":993,"tag":2152,"props":3458,"children":3459},{},[],{"type":993,"tag":1017,"props":3461,"children":3462},{},[3463],{"type":999,"value":3415},{"type":999,"value":3465},": Add ",{"type":993,"tag":1008,"props":3467,"children":3469},{"className":3468},[],[3470],{"type":999,"value":3353},{"type":999,"value":3472}," at the end of ",{"type":993,"tag":1008,"props":3474,"children":3476},{"className":3475},[],[3477],{"type":999,"value":1103},{"type":999,"value":3362},{"type":993,"tag":1008,"props":3480,"children":3482},{"className":3481},[],[3483],{"type":999,"value":1205},{"type":999,"value":3362},{"type":993,"tag":1008,"props":3486,"children":3488},{"className":3487},[],[3489],{"type":999,"value":3490},"for",{"type":999,"value":3369},{"type":993,"tag":1030,"props":3493,"children":3494},{},[3495],{"type":993,"tag":1034,"props":3496,"children":3498},{"className":1036,"code":3497,"language":6,"meta":8,"style":8},"# Common mistakes and corrections\nprint(\"=== STRUCTURE EXAMPLES ===\")\n\n# CORRECT: Proper indentation and colon\nage = 20\nif age >= 18:  # Don't forget the colon!\n    print(\"You're an adult\")\n    print(\"You can vote\")\n\n# CORRECT: Consistent indentation in functions\ndef greet_user(name):  # Colon required\n    print(f\"Hello, {name}!\")  # 4 spaces indentation\n    print(\"Welcome!\")         # Same indentation\n\ngreet_user(\"Python Learner\")\n",[3499],{"type":993,"tag":1008,"props":3500,"children":3501},{"__ignoreMap":8},[3502,3510,3530,3537,3545,3561,3590,3610,3630,3637,3645,3667,3712,3738,3745],{"type":993,"tag":1043,"props":3503,"children":3504},{"class":1045,"line":12},[3505],{"type":993,"tag":1043,"props":3506,"children":3507},{"style":1049},[3508],{"type":999,"value":3509},"# Common mistakes and corrections\n",{"type":993,"tag":1043,"props":3511,"children":3512},{"class":1045,"line":27},[3513,3517,3521,3526],{"type":993,"tag":1043,"props":3514,"children":3515},{"style":1058},[3516],{"type":999,"value":1061},{"type":993,"tag":1043,"props":3518,"children":3519},{"style":1064},[3520],{"type":999,"value":1067},{"type":993,"tag":1043,"props":3522,"children":3523},{"style":1070},[3524],{"type":999,"value":3525},"\"=== STRUCTURE EXAMPLES ===\"",{"type":993,"tag":1043,"props":3527,"children":3528},{"style":1064},[3529],{"type":999,"value":1078},{"type":993,"tag":1043,"props":3531,"children":3532},{"class":1045,"line":36},[3533],{"type":993,"tag":1043,"props":3534,"children":3535},{"emptyLinePlaceholder":13},[3536],{"type":999,"value":1086},{"type":993,"tag":1043,"props":3538,"children":3539},{"class":1045,"line":45},[3540],{"type":993,"tag":1043,"props":3541,"children":3542},{"style":1049},[3543],{"type":999,"value":3544},"# CORRECT: Proper indentation and colon\n",{"type":993,"tag":1043,"props":3546,"children":3547},{"class":1045,"line":54},[3548,3552,3556],{"type":993,"tag":1043,"props":3549,"children":3550},{"style":1064},[3551],{"type":999,"value":1523},{"type":993,"tag":1043,"props":3553,"children":3554},{"style":1100},[3555],{"type":999,"value":1510},{"type":993,"tag":1043,"props":3557,"children":3558},{"style":1058},[3559],{"type":999,"value":3560}," 20\n",{"type":993,"tag":1043,"props":3562,"children":3563},{"class":1045,"line":63},[3564,3568,3572,3576,3580,3585],{"type":993,"tag":1043,"props":3565,"children":3566},{"style":1100},[3567],{"type":999,"value":1103},{"type":993,"tag":1043,"props":3569,"children":3570},{"style":1064},[3571],{"type":999,"value":1559},{"type":993,"tag":1043,"props":3573,"children":3574},{"style":1100},[3575],{"type":999,"value":1564},{"type":993,"tag":1043,"props":3577,"children":3578},{"style":1058},[3579],{"type":999,"value":1569},{"type":993,"tag":1043,"props":3581,"children":3582},{"style":1064},[3583],{"type":999,"value":3584},":  ",{"type":993,"tag":1043,"props":3586,"children":3587},{"style":1049},[3588],{"type":999,"value":3589},"# Don't forget the colon!\n",{"type":993,"tag":1043,"props":3591,"children":3592},{"class":1045,"line":72},[3593,3597,3601,3606],{"type":993,"tag":1043,"props":3594,"children":3595},{"style":1058},[3596],{"type":999,"value":1121},{"type":993,"tag":1043,"props":3598,"children":3599},{"style":1064},[3600],{"type":999,"value":1067},{"type":993,"tag":1043,"props":3602,"children":3603},{"style":1070},[3604],{"type":999,"value":3605},"\"You're an adult\"",{"type":993,"tag":1043,"props":3607,"children":3608},{"style":1064},[3609],{"type":999,"value":1078},{"type":993,"tag":1043,"props":3611,"children":3612},{"class":1045,"line":81},[3613,3617,3621,3626],{"type":993,"tag":1043,"props":3614,"children":3615},{"style":1058},[3616],{"type":999,"value":1121},{"type":993,"tag":1043,"props":3618,"children":3619},{"style":1064},[3620],{"type":999,"value":1067},{"type":993,"tag":1043,"props":3622,"children":3623},{"style":1070},[3624],{"type":999,"value":3625},"\"You can vote\"",{"type":993,"tag":1043,"props":3627,"children":3628},{"style":1064},[3629],{"type":999,"value":1078},{"type":993,"tag":1043,"props":3631,"children":3632},{"class":1045,"line":91},[3633],{"type":993,"tag":1043,"props":3634,"children":3635},{"emptyLinePlaceholder":13},[3636],{"type":999,"value":1086},{"type":993,"tag":1043,"props":3638,"children":3639},{"class":1045,"line":100},[3640],{"type":993,"tag":1043,"props":3641,"children":3642},{"style":1049},[3643],{"type":999,"value":3644},"# CORRECT: Consistent indentation in functions\n",{"type":993,"tag":1043,"props":3646,"children":3647},{"class":1045,"line":109},[3648,3652,3657,3662],{"type":993,"tag":1043,"props":3649,"children":3650},{"style":1100},[3651],{"type":999,"value":1205},{"type":993,"tag":1043,"props":3653,"children":3654},{"style":1208},[3655],{"type":999,"value":3656}," greet_user",{"type":993,"tag":1043,"props":3658,"children":3659},{"style":1064},[3660],{"type":999,"value":3661},"(name):  ",{"type":993,"tag":1043,"props":3663,"children":3664},{"style":1049},[3665],{"type":999,"value":3666},"# Colon required\n",{"type":993,"tag":1043,"props":3668,"children":3669},{"class":1045,"line":118},[3670,3674,3678,3682,3686,3690,3694,3698,3702,3707],{"type":993,"tag":1043,"props":3671,"children":3672},{"style":1058},[3673],{"type":999,"value":1121},{"type":993,"tag":1043,"props":3675,"children":3676},{"style":1064},[3677],{"type":999,"value":1067},{"type":993,"tag":1043,"props":3679,"children":3680},{"style":1100},[3681],{"type":999,"value":1232},{"type":993,"tag":1043,"props":3683,"children":3684},{"style":1070},[3685],{"type":999,"value":1237},{"type":993,"tag":1043,"props":3687,"children":3688},{"style":1058},[3689],{"type":999,"value":1242},{"type":993,"tag":1043,"props":3691,"children":3692},{"style":1064},[3693],{"type":999,"value":1247},{"type":993,"tag":1043,"props":3695,"children":3696},{"style":1058},[3697],{"type":999,"value":1252},{"type":993,"tag":1043,"props":3699,"children":3700},{"style":1070},[3701],{"type":999,"value":1257},{"type":993,"tag":1043,"props":3703,"children":3704},{"style":1064},[3705],{"type":999,"value":3706},")  ",{"type":993,"tag":1043,"props":3708,"children":3709},{"style":1049},[3710],{"type":999,"value":3711},"# 4 spaces indentation\n",{"type":993,"tag":1043,"props":3713,"children":3714},{"class":1045,"line":127},[3715,3719,3723,3728,3733],{"type":993,"tag":1043,"props":3716,"children":3717},{"style":1058},[3718],{"type":999,"value":1121},{"type":993,"tag":1043,"props":3720,"children":3721},{"style":1064},[3722],{"type":999,"value":1067},{"type":993,"tag":1043,"props":3724,"children":3725},{"style":1070},[3726],{"type":999,"value":3727},"\"Welcome!\"",{"type":993,"tag":1043,"props":3729,"children":3730},{"style":1064},[3731],{"type":999,"value":3732},")         ",{"type":993,"tag":1043,"props":3734,"children":3735},{"style":1049},[3736],{"type":999,"value":3737},"# Same indentation\n",{"type":993,"tag":1043,"props":3739,"children":3740},{"class":1045,"line":136},[3741],{"type":993,"tag":1043,"props":3742,"children":3743},{"emptyLinePlaceholder":13},[3744],{"type":999,"value":1086},{"type":993,"tag":1043,"props":3746,"children":3747},{"class":1045,"line":146},[3748,3753,3758],{"type":993,"tag":1043,"props":3749,"children":3750},{"style":1064},[3751],{"type":999,"value":3752},"greet_user(",{"type":993,"tag":1043,"props":3754,"children":3755},{"style":1070},[3756],{"type":999,"value":3757},"\"Python Learner\"",{"type":993,"tag":1043,"props":3759,"children":3760},{"style":1064},[3761],{"type":999,"value":1078},{"type":993,"tag":1307,"props":3763,"children":3765},{"id":3764},"pythons-design-philosophy",[3766],{"type":999,"value":3767},"🐍 Python's Design Philosophy",{"type":993,"tag":1002,"props":3769,"children":3770},{},[3771],{"type":999,"value":3772},"Python's structure reflects its philosophy of beautiful, readable code. The language encourages practices that lead to clean, maintainable programs.",{"type":993,"tag":1331,"props":3774,"children":3776},{"id":3775},"core-principles",[3777],{"type":999,"value":3778},"Core Principles:",{"type":993,"tag":1338,"props":3780,"children":3781},{},[3782,3792,3802,3812],{"type":993,"tag":1342,"props":3783,"children":3784},{},[3785,3790],{"type":993,"tag":1017,"props":3786,"children":3787},{},[3788],{"type":999,"value":3789},"\"Readability counts\"",{"type":999,"value":3791}," - Code should be easy to understand",{"type":993,"tag":1342,"props":3793,"children":3794},{},[3795,3800],{"type":993,"tag":1017,"props":3796,"children":3797},{},[3798],{"type":999,"value":3799},"\"Beautiful is better than ugly\"",{"type":999,"value":3801}," - Clean structure preferred",{"type":993,"tag":1342,"props":3803,"children":3804},{},[3805,3810],{"type":993,"tag":1017,"props":3806,"children":3807},{},[3808],{"type":999,"value":3809},"\"Simple is better than complex\"",{"type":999,"value":3811}," - Avoid unnecessary complexity",{"type":993,"tag":1342,"props":3813,"children":3814},{},[3815,3820],{"type":993,"tag":1017,"props":3816,"children":3817},{},[3818],{"type":999,"value":3819},"\"There should be one obvious way to do it\"",{"type":999,"value":3821}," - Consistent approaches",{"type":993,"tag":1030,"props":3823,"children":3824},{},[3825],{"type":993,"tag":1034,"props":3826,"children":3828},{"className":1036,"code":3827,"language":6,"meta":8,"style":8},"# Python philosophy in action\nprint(\"=== PYTHON PHILOSOPHY ===\")\n\ndef process_grade(name, score):\n    \"\"\"Process a student's grade and give feedback\"\"\"\n    \n    # Clear, readable structure\n    if score >= 90:\n        grade = \"A\"\n        message = \"Excellent work!\"\n    elif score >= 80:\n        grade = \"B\" \n        message = \"Good job!\"\n    elif score >= 70:\n        grade = \"C\"\n        message = \"Satisfactory\"\n    else:\n        grade = \"F\"\n        message = \"Needs improvement\"\n    \n    # Clear output\n    print(f\"Student: {name}\")\n    print(f\"Score: {score}\")\n    print(f\"Grade: {grade}\")\n    print(f\"Feedback: {message}\")\n\nprocess_grade(\"Alice\", 87)\n",[3829],{"type":993,"tag":1008,"props":3830,"children":3831},{"__ignoreMap":8},[3832,3840,3860,3867,3884,3892,3899,3907,3931,3948,3965,3990,4011,4027,4050,4066,4082,4094,4110,4126,4133,4141,4181,4222,4263,4304,4311],{"type":993,"tag":1043,"props":3833,"children":3834},{"class":1045,"line":12},[3835],{"type":993,"tag":1043,"props":3836,"children":3837},{"style":1049},[3838],{"type":999,"value":3839},"# Python philosophy in action\n",{"type":993,"tag":1043,"props":3841,"children":3842},{"class":1045,"line":27},[3843,3847,3851,3856],{"type":993,"tag":1043,"props":3844,"children":3845},{"style":1058},[3846],{"type":999,"value":1061},{"type":993,"tag":1043,"props":3848,"children":3849},{"style":1064},[3850],{"type":999,"value":1067},{"type":993,"tag":1043,"props":3852,"children":3853},{"style":1070},[3854],{"type":999,"value":3855},"\"=== PYTHON PHILOSOPHY ===\"",{"type":993,"tag":1043,"props":3857,"children":3858},{"style":1064},[3859],{"type":999,"value":1078},{"type":993,"tag":1043,"props":3861,"children":3862},{"class":1045,"line":36},[3863],{"type":993,"tag":1043,"props":3864,"children":3865},{"emptyLinePlaceholder":13},[3866],{"type":999,"value":1086},{"type":993,"tag":1043,"props":3868,"children":3869},{"class":1045,"line":45},[3870,3874,3879],{"type":993,"tag":1043,"props":3871,"children":3872},{"style":1100},[3873],{"type":999,"value":1205},{"type":993,"tag":1043,"props":3875,"children":3876},{"style":1208},[3877],{"type":999,"value":3878}," process_grade",{"type":993,"tag":1043,"props":3880,"children":3881},{"style":1064},[3882],{"type":999,"value":3883},"(name, score):\n",{"type":993,"tag":1043,"props":3885,"children":3886},{"class":1045,"line":54},[3887],{"type":993,"tag":1043,"props":3888,"children":3889},{"style":1070},[3890],{"type":999,"value":3891},"    \"\"\"Process a student's grade and give feedback\"\"\"\n",{"type":993,"tag":1043,"props":3893,"children":3894},{"class":1045,"line":63},[3895],{"type":993,"tag":1043,"props":3896,"children":3897},{"style":1064},[3898],{"type":999,"value":1162},{"type":993,"tag":1043,"props":3900,"children":3901},{"class":1045,"line":72},[3902],{"type":993,"tag":1043,"props":3903,"children":3904},{"style":1049},[3905],{"type":999,"value":3906},"    # Clear, readable structure\n",{"type":993,"tag":1043,"props":3908,"children":3909},{"class":1045,"line":81},[3910,3914,3919,3923,3927],{"type":993,"tag":1043,"props":3911,"children":3912},{"style":1100},[3913],{"type":999,"value":1657},{"type":993,"tag":1043,"props":3915,"children":3916},{"style":1064},[3917],{"type":999,"value":3918}," score ",{"type":993,"tag":1043,"props":3920,"children":3921},{"style":1100},[3922],{"type":999,"value":1564},{"type":993,"tag":1043,"props":3924,"children":3925},{"style":1058},[3926],{"type":999,"value":1985},{"type":993,"tag":1043,"props":3928,"children":3929},{"style":1064},[3930],{"type":999,"value":1113},{"type":993,"tag":1043,"props":3932,"children":3933},{"class":1045,"line":91},[3934,3939,3943],{"type":993,"tag":1043,"props":3935,"children":3936},{"style":1064},[3937],{"type":999,"value":3938},"        grade ",{"type":993,"tag":1043,"props":3940,"children":3941},{"style":1100},[3942],{"type":999,"value":1510},{"type":993,"tag":1043,"props":3944,"children":3945},{"style":1070},[3946],{"type":999,"value":3947}," \"A\"\n",{"type":993,"tag":1043,"props":3949,"children":3950},{"class":1045,"line":100},[3951,3956,3960],{"type":993,"tag":1043,"props":3952,"children":3953},{"style":1064},[3954],{"type":999,"value":3955},"        message ",{"type":993,"tag":1043,"props":3957,"children":3958},{"style":1100},[3959],{"type":999,"value":1510},{"type":993,"tag":1043,"props":3961,"children":3962},{"style":1070},[3963],{"type":999,"value":3964}," \"Excellent work!\"\n",{"type":993,"tag":1043,"props":3966,"children":3967},{"class":1045,"line":109},[3968,3973,3977,3981,3986],{"type":993,"tag":1043,"props":3969,"children":3970},{"style":1100},[3971],{"type":999,"value":3972},"    elif",{"type":993,"tag":1043,"props":3974,"children":3975},{"style":1064},[3976],{"type":999,"value":3918},{"type":993,"tag":1043,"props":3978,"children":3979},{"style":1100},[3980],{"type":999,"value":1564},{"type":993,"tag":1043,"props":3982,"children":3983},{"style":1058},[3984],{"type":999,"value":3985}," 80",{"type":993,"tag":1043,"props":3987,"children":3988},{"style":1064},[3989],{"type":999,"value":1113},{"type":993,"tag":1043,"props":3991,"children":3992},{"class":1045,"line":118},[3993,3997,4001,4006],{"type":993,"tag":1043,"props":3994,"children":3995},{"style":1064},[3996],{"type":999,"value":3938},{"type":993,"tag":1043,"props":3998,"children":3999},{"style":1100},[4000],{"type":999,"value":1510},{"type":993,"tag":1043,"props":4002,"children":4003},{"style":1070},[4004],{"type":999,"value":4005}," \"B\"",{"type":993,"tag":1043,"props":4007,"children":4008},{"style":1064},[4009],{"type":999,"value":4010}," \n",{"type":993,"tag":1043,"props":4012,"children":4013},{"class":1045,"line":127},[4014,4018,4022],{"type":993,"tag":1043,"props":4015,"children":4016},{"style":1064},[4017],{"type":999,"value":3955},{"type":993,"tag":1043,"props":4019,"children":4020},{"style":1100},[4021],{"type":999,"value":1510},{"type":993,"tag":1043,"props":4023,"children":4024},{"style":1070},[4025],{"type":999,"value":4026}," \"Good job!\"\n",{"type":993,"tag":1043,"props":4028,"children":4029},{"class":1045,"line":136},[4030,4034,4038,4042,4046],{"type":993,"tag":1043,"props":4031,"children":4032},{"style":1100},[4033],{"type":999,"value":3972},{"type":993,"tag":1043,"props":4035,"children":4036},{"style":1064},[4037],{"type":999,"value":3918},{"type":993,"tag":1043,"props":4039,"children":4040},{"style":1100},[4041],{"type":999,"value":1564},{"type":993,"tag":1043,"props":4043,"children":4044},{"style":1058},[4045],{"type":999,"value":1906},{"type":993,"tag":1043,"props":4047,"children":4048},{"style":1064},[4049],{"type":999,"value":1113},{"type":993,"tag":1043,"props":4051,"children":4052},{"class":1045,"line":146},[4053,4057,4061],{"type":993,"tag":1043,"props":4054,"children":4055},{"style":1064},[4056],{"type":999,"value":3938},{"type":993,"tag":1043,"props":4058,"children":4059},{"style":1100},[4060],{"type":999,"value":1510},{"type":993,"tag":1043,"props":4062,"children":4063},{"style":1070},[4064],{"type":999,"value":4065}," \"C\"\n",{"type":993,"tag":1043,"props":4067,"children":4068},{"class":1045,"line":155},[4069,4073,4077],{"type":993,"tag":1043,"props":4070,"children":4071},{"style":1064},[4072],{"type":999,"value":3955},{"type":993,"tag":1043,"props":4074,"children":4075},{"style":1100},[4076],{"type":999,"value":1510},{"type":993,"tag":1043,"props":4078,"children":4079},{"style":1070},[4080],{"type":999,"value":4081}," \"Satisfactory\"\n",{"type":993,"tag":1043,"props":4083,"children":4084},{"class":1045,"line":164},[4085,4090],{"type":993,"tag":1043,"props":4086,"children":4087},{"style":1100},[4088],{"type":999,"value":4089},"    else",{"type":993,"tag":1043,"props":4091,"children":4092},{"style":1064},[4093],{"type":999,"value":1113},{"type":993,"tag":1043,"props":4095,"children":4096},{"class":1045,"line":173},[4097,4101,4105],{"type":993,"tag":1043,"props":4098,"children":4099},{"style":1064},[4100],{"type":999,"value":3938},{"type":993,"tag":1043,"props":4102,"children":4103},{"style":1100},[4104],{"type":999,"value":1510},{"type":993,"tag":1043,"props":4106,"children":4107},{"style":1070},[4108],{"type":999,"value":4109}," \"F\"\n",{"type":993,"tag":1043,"props":4111,"children":4112},{"class":1045,"line":182},[4113,4117,4121],{"type":993,"tag":1043,"props":4114,"children":4115},{"style":1064},[4116],{"type":999,"value":3955},{"type":993,"tag":1043,"props":4118,"children":4119},{"style":1100},[4120],{"type":999,"value":1510},{"type":993,"tag":1043,"props":4122,"children":4123},{"style":1070},[4124],{"type":999,"value":4125}," \"Needs improvement\"\n",{"type":993,"tag":1043,"props":4127,"children":4128},{"class":1045,"line":191},[4129],{"type":993,"tag":1043,"props":4130,"children":4131},{"style":1064},[4132],{"type":999,"value":1162},{"type":993,"tag":1043,"props":4134,"children":4135},{"class":1045,"line":201},[4136],{"type":993,"tag":1043,"props":4137,"children":4138},{"style":1049},[4139],{"type":999,"value":4140},"    # Clear output\n",{"type":993,"tag":1043,"props":4142,"children":4143},{"class":1045,"line":210},[4144,4148,4152,4156,4161,4165,4169,4173,4177],{"type":993,"tag":1043,"props":4145,"children":4146},{"style":1058},[4147],{"type":999,"value":1121},{"type":993,"tag":1043,"props":4149,"children":4150},{"style":1064},[4151],{"type":999,"value":1067},{"type":993,"tag":1043,"props":4153,"children":4154},{"style":1100},[4155],{"type":999,"value":1232},{"type":993,"tag":1043,"props":4157,"children":4158},{"style":1070},[4159],{"type":999,"value":4160},"\"Student: ",{"type":993,"tag":1043,"props":4162,"children":4163},{"style":1058},[4164],{"type":999,"value":1242},{"type":993,"tag":1043,"props":4166,"children":4167},{"style":1064},[4168],{"type":999,"value":1247},{"type":993,"tag":1043,"props":4170,"children":4171},{"style":1058},[4172],{"type":999,"value":1252},{"type":993,"tag":1043,"props":4174,"children":4175},{"style":1070},[4176],{"type":999,"value":1593},{"type":993,"tag":1043,"props":4178,"children":4179},{"style":1064},[4180],{"type":999,"value":1078},{"type":993,"tag":1043,"props":4182,"children":4183},{"class":1045,"line":219},[4184,4188,4192,4196,4201,4205,4210,4214,4218],{"type":993,"tag":1043,"props":4185,"children":4186},{"style":1058},[4187],{"type":999,"value":1121},{"type":993,"tag":1043,"props":4189,"children":4190},{"style":1064},[4191],{"type":999,"value":1067},{"type":993,"tag":1043,"props":4193,"children":4194},{"style":1100},[4195],{"type":999,"value":1232},{"type":993,"tag":1043,"props":4197,"children":4198},{"style":1070},[4199],{"type":999,"value":4200},"\"Score: ",{"type":993,"tag":1043,"props":4202,"children":4203},{"style":1058},[4204],{"type":999,"value":1242},{"type":993,"tag":1043,"props":4206,"children":4207},{"style":1064},[4208],{"type":999,"value":4209},"score",{"type":993,"tag":1043,"props":4211,"children":4212},{"style":1058},[4213],{"type":999,"value":1252},{"type":993,"tag":1043,"props":4215,"children":4216},{"style":1070},[4217],{"type":999,"value":1593},{"type":993,"tag":1043,"props":4219,"children":4220},{"style":1064},[4221],{"type":999,"value":1078},{"type":993,"tag":1043,"props":4223,"children":4224},{"class":1045,"line":228},[4225,4229,4233,4237,4242,4246,4251,4255,4259],{"type":993,"tag":1043,"props":4226,"children":4227},{"style":1058},[4228],{"type":999,"value":1121},{"type":993,"tag":1043,"props":4230,"children":4231},{"style":1064},[4232],{"type":999,"value":1067},{"type":993,"tag":1043,"props":4234,"children":4235},{"style":1100},[4236],{"type":999,"value":1232},{"type":993,"tag":1043,"props":4238,"children":4239},{"style":1070},[4240],{"type":999,"value":4241},"\"Grade: ",{"type":993,"tag":1043,"props":4243,"children":4244},{"style":1058},[4245],{"type":999,"value":1242},{"type":993,"tag":1043,"props":4247,"children":4248},{"style":1064},[4249],{"type":999,"value":4250},"grade",{"type":993,"tag":1043,"props":4252,"children":4253},{"style":1058},[4254],{"type":999,"value":1252},{"type":993,"tag":1043,"props":4256,"children":4257},{"style":1070},[4258],{"type":999,"value":1593},{"type":993,"tag":1043,"props":4260,"children":4261},{"style":1064},[4262],{"type":999,"value":1078},{"type":993,"tag":1043,"props":4264,"children":4265},{"class":1045,"line":238},[4266,4270,4274,4278,4283,4287,4292,4296,4300],{"type":993,"tag":1043,"props":4267,"children":4268},{"style":1058},[4269],{"type":999,"value":1121},{"type":993,"tag":1043,"props":4271,"children":4272},{"style":1064},[4273],{"type":999,"value":1067},{"type":993,"tag":1043,"props":4275,"children":4276},{"style":1100},[4277],{"type":999,"value":1232},{"type":993,"tag":1043,"props":4279,"children":4280},{"style":1070},[4281],{"type":999,"value":4282},"\"Feedback: ",{"type":993,"tag":1043,"props":4284,"children":4285},{"style":1058},[4286],{"type":999,"value":1242},{"type":993,"tag":1043,"props":4288,"children":4289},{"style":1064},[4290],{"type":999,"value":4291},"message",{"type":993,"tag":1043,"props":4293,"children":4294},{"style":1058},[4295],{"type":999,"value":1252},{"type":993,"tag":1043,"props":4297,"children":4298},{"style":1070},[4299],{"type":999,"value":1593},{"type":993,"tag":1043,"props":4301,"children":4302},{"style":1064},[4303],{"type":999,"value":1078},{"type":993,"tag":1043,"props":4305,"children":4306},{"class":1045,"line":247},[4307],{"type":993,"tag":1043,"props":4308,"children":4309},{"emptyLinePlaceholder":13},[4310],{"type":999,"value":1086},{"type":993,"tag":1043,"props":4312,"children":4313},{"class":1045,"line":256},[4314,4319,4324,4328,4333],{"type":993,"tag":1043,"props":4315,"children":4316},{"style":1064},[4317],{"type":999,"value":4318},"process_grade(",{"type":993,"tag":1043,"props":4320,"children":4321},{"style":1070},[4322],{"type":999,"value":4323},"\"Alice\"",{"type":993,"tag":1043,"props":4325,"children":4326},{"style":1064},[4327],{"type":999,"value":3362},{"type":993,"tag":1043,"props":4329,"children":4330},{"style":1058},[4331],{"type":999,"value":4332},"87",{"type":993,"tag":1043,"props":4334,"children":4335},{"style":1064},[4336],{"type":999,"value":1078},{"type":993,"tag":1307,"props":4338,"children":4340},{"id":4339},"building-good-habits",[4341],{"type":999,"value":4342},"🌟 Building Good Habits",{"type":993,"tag":1002,"props":4344,"children":4345},{},[4346],{"type":999,"value":4347},"Starting with good structure habits will help you throughout your programming journey. Clean code is easier to debug, maintain, and share.",{"type":993,"tag":1383,"props":4349,"children":4351},{"emoji":2529,"title":4350,"type":2531},"Professional Structure Habits",[4352],{"type":993,"tag":1338,"props":4353,"children":4354},{},[4355,4364,4373,4382,4391,4400],{"type":993,"tag":1342,"props":4356,"children":4357},{},[4358,4359],{"type":999,"value":1396},{"type":993,"tag":1017,"props":4360,"children":4361},{},[4362],{"type":999,"value":4363},"Use 4 spaces for indentation",{"type":993,"tag":1342,"props":4365,"children":4366},{},[4367,4368],{"type":999,"value":1396},{"type":993,"tag":1017,"props":4369,"children":4370},{},[4371],{"type":999,"value":4372},"Add colons after block-starting statements",{"type":993,"tag":1342,"props":4374,"children":4375},{},[4376,4377],{"type":999,"value":1396},{"type":993,"tag":1017,"props":4378,"children":4379},{},[4380],{"type":999,"value":4381},"Write one statement per line",{"type":993,"tag":1342,"props":4383,"children":4384},{},[4385,4386],{"type":999,"value":1396},{"type":993,"tag":1017,"props":4387,"children":4388},{},[4389],{"type":999,"value":4390},"Use comments to explain complex logic",{"type":993,"tag":1342,"props":4392,"children":4393},{},[4394,4395],{"type":999,"value":1396},{"type":993,"tag":1017,"props":4396,"children":4397},{},[4398],{"type":999,"value":4399},"Keep consistent formatting throughout",{"type":993,"tag":1342,"props":4401,"children":4402},{},[4403,4404],{"type":999,"value":1396},{"type":993,"tag":1017,"props":4405,"children":4406},{},[4407],{"type":999,"value":4408},"Leave blank lines between logical sections",{"type":993,"tag":1331,"props":4410,"children":4412},{"id":4411},"programming-best-practices",[4413],{"type":999,"value":4414},"Programming Best Practices:",{"type":993,"tag":1741,"props":4416,"children":4417},{},[4418,4428,4438,4448],{"type":993,"tag":1342,"props":4419,"children":4420},{},[4421,4426],{"type":993,"tag":1017,"props":4422,"children":4423},{},[4424],{"type":999,"value":4425},"Configure your editor",{"type":999,"value":4427}," to show whitespace and use 4 spaces",{"type":993,"tag":1342,"props":4429,"children":4430},{},[4431,4436],{"type":993,"tag":1017,"props":4432,"children":4433},{},[4434],{"type":999,"value":4435},"Practice with simple examples",{"type":999,"value":4437}," to build muscle memory",{"type":993,"tag":1342,"props":4439,"children":4440},{},[4441,4446],{"type":993,"tag":1017,"props":4442,"children":4443},{},[4444],{"type":999,"value":4445},"Read error messages carefully",{"type":999,"value":4447},"—Python gives helpful structure error messages",{"type":993,"tag":1342,"props":4449,"children":4450},{},[4451,4456],{"type":993,"tag":1017,"props":4452,"children":4453},{},[4454],{"type":999,"value":4455},"Be consistent",{"type":999,"value":4457}," in your formatting style",{"type":993,"tag":4459,"props":4460,"children":4462},"content-exercise",{":widget-view":4461,"category":6,"id":53},"true",[],{"type":993,"tag":1307,"props":4464,"children":4466},{"id":4465},"key-structure-rules-summary",[4467],{"type":999,"value":4468},"📋 Key Structure Rules Summary",{"type":993,"tag":4470,"props":4471,"children":4472},"table",{},[4473,4497],{"type":993,"tag":4474,"props":4475,"children":4476},"thead",{},[4477],{"type":993,"tag":4478,"props":4479,"children":4480},"tr",{},[4481,4487,4492],{"type":993,"tag":4482,"props":4483,"children":4484},"th",{},[4485],{"type":999,"value":4486},"Rule",{"type":993,"tag":4482,"props":4488,"children":4489},{},[4490],{"type":999,"value":4491},"Example",{"type":993,"tag":4482,"props":4493,"children":4494},{},[4495],{"type":999,"value":4496},"Why Important",{"type":993,"tag":4498,"props":4499,"children":4500},"tbody",{},[4501,4529,4554,4579,4602],{"type":993,"tag":4478,"props":4502,"children":4503},{},[4504,4513,4524],{"type":993,"tag":4505,"props":4506,"children":4507},"td",{},[4508],{"type":993,"tag":1017,"props":4509,"children":4510},{},[4511],{"type":999,"value":4512},"Use indentation",{"type":993,"tag":4505,"props":4514,"children":4515},{},[4516,4522],{"type":993,"tag":1008,"props":4517,"children":4519},{"className":4518},[],[4520],{"type":999,"value":4521},"if True:",{"type":999,"value":4523}," followed by indented code",{"type":993,"tag":4505,"props":4525,"children":4526},{},[4527],{"type":999,"value":4528},"Groups code into blocks",{"type":993,"tag":4478,"props":4530,"children":4531},{},[4532,4540,4549],{"type":993,"tag":4505,"props":4533,"children":4534},{},[4535],{"type":993,"tag":1017,"props":4536,"children":4537},{},[4538],{"type":999,"value":4539},"Add colons",{"type":993,"tag":4505,"props":4541,"children":4542},{},[4543],{"type":993,"tag":1008,"props":4544,"children":4546},{"className":4545},[],[4547],{"type":999,"value":4548},"if age >= 18:",{"type":993,"tag":4505,"props":4550,"children":4551},{},[4552],{"type":999,"value":4553},"Starts new code blocks",{"type":993,"tag":4478,"props":4555,"children":4556},{},[4557,4565,4574],{"type":993,"tag":4505,"props":4558,"children":4559},{},[4560],{"type":993,"tag":1017,"props":4561,"children":4562},{},[4563],{"type":999,"value":4564},"4 spaces standard",{"type":993,"tag":4505,"props":4566,"children":4567},{},[4568],{"type":993,"tag":1008,"props":4569,"children":4571},{"className":4570},[],[4572],{"type":999,"value":4573},"    print(\"Hello\")",{"type":993,"tag":4505,"props":4575,"children":4576},{},[4577],{"type":999,"value":4578},"Consistent, readable formatting",{"type":993,"tag":4478,"props":4580,"children":4581},{},[4582,4589,4597],{"type":993,"tag":4505,"props":4583,"children":4584},{},[4585],{"type":993,"tag":1017,"props":4586,"children":4587},{},[4588],{"type":999,"value":2098},{"type":993,"tag":4505,"props":4590,"children":4591},{},[4592],{"type":993,"tag":1008,"props":4593,"children":4595},{"className":4594},[],[4596],{"type":999,"value":2150},{"type":993,"tag":4505,"props":4598,"children":4599},{},[4600],{"type":999,"value":4601},"Easier to read and debug",{"type":993,"tag":4478,"props":4603,"children":4604},{},[4605,4613,4622],{"type":993,"tag":4505,"props":4606,"children":4607},{},[4608],{"type":993,"tag":1017,"props":4609,"children":4610},{},[4611],{"type":999,"value":4612},"Use # for comments",{"type":993,"tag":4505,"props":4614,"children":4615},{},[4616],{"type":993,"tag":1008,"props":4617,"children":4619},{"className":4618},[],[4620],{"type":999,"value":4621},"# This explains the code",{"type":993,"tag":4505,"props":4623,"children":4624},{},[4625],{"type":999,"value":4626},"Documents your code",{"type":993,"tag":1307,"props":4628,"children":4630},{"id":4629},"test-your-knowledge",[4631],{"type":999,"value":4632},"🧠 Test Your Knowledge",{"type":993,"tag":1002,"props":4634,"children":4635},{},[4636],{"type":999,"value":4637},"Ready to test your understanding of Python code structure?",{"type":993,"tag":4639,"props":4640,"children":4644},"redirect-button",{"icon":4641,"label":4642,"url":4643},"pi pi-send","Take Quiz","/tutorial-quiz/python/python-code-structure",[],{"type":993,"tag":1307,"props":4646,"children":4648},{"id":4647},"whats-next",[4649],{"type":999,"value":4650},"🚀 What's Next?",{"type":993,"tag":1002,"props":4652,"children":4653},{},[4654],{"type":999,"value":4655},"Excellent! You now understand how Python organizes code with indentation, colons, and proper structure. Next, we'll learn about adding helpful comments to document your code.",{"type":993,"tag":1002,"props":4657,"children":4658},{},[4659,4664,4665],{"type":993,"tag":1017,"props":4660,"children":4661},{},[4662],{"type":999,"value":4663},"Continue to",{"type":999,"value":1783},{"type":993,"tag":4666,"props":4667,"children":4668},"a",{"href":59},[4669],{"type":999,"value":60},{"type":993,"tag":1002,"props":4671,"children":4672},{},[4673],{"type":999,"value":4674},"Keep up the great work! Your code is getting more professional! 📝",{"type":993,"tag":4676,"props":4677,"children":4678},"style",{},[4679],{"type":999,"value":4680},"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":4682},[4683,4686,4689,4692,4695,4698,4701,4704,4707,4708,4709],{"id":1309,"depth":27,"text":1312,"children":4684},[4685],{"id":1333,"depth":36,"text":1336},{"id":1726,"depth":27,"text":1729,"children":4687},[4688],{"id":1767,"depth":36,"text":1770},{"id":2059,"depth":27,"text":2062,"children":4690},[4691],{"id":2084,"depth":36,"text":2087},{"id":2463,"depth":27,"text":2466,"children":4693},[4694],{"id":2479,"depth":36,"text":2482},{"id":2845,"depth":27,"text":2848,"children":4696},[4697],{"id":2863,"depth":36,"text":2866},{"id":3311,"depth":27,"text":3314,"children":4699},[4700],{"id":3322,"depth":36,"text":3325},{"id":3764,"depth":27,"text":3767,"children":4702},[4703],{"id":3775,"depth":36,"text":3778},{"id":4339,"depth":27,"text":4342,"children":4705},[4706],{"id":4411,"depth":36,"text":4414},{"id":4465,"depth":27,"text":4468},{"id":4629,"depth":27,"text":4632},{"id":4647,"depth":27,"text":4650},1782373740677]