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