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