[{"data":1,"prerenderedAt":6031},["ShallowReactive",2],{"tutorials-python":3,"category-items-python":987,"content-/python/multiple-conditions":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},"/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},"/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",[205],{"_path":206,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":207,"description":208,"slug":209,"parentId":187,"order":210,"body":989,"_type":15,"_id":211,"_source":17,"_file":212,"_stem":213,"_extension":20},{"type":990,"children":991,"toc":6017},"root",[992,1000,1006,1023,1428,1435,1440,1573,1578,1841,1847,1862,1990,1995,2430,2435,2441,2446,2614,2621,2927,2933,2938,3067,3072,3619,3625,3630,3731,4313,4319,4324,4452,4467,4860,4866,4871,5029,5678,5684,5902,5908,5913,5920,5926,5931,5945,5979,6011],{"type":993,"tag":994,"props":995,"children":996},"element","h1",{"id":209},[997],{"type":998,"value":999},"text","🎯 Multiple Conditions",{"type":993,"tag":1001,"props":1002,"children":1003},"p",{},[1004],{"type":998,"value":1005},"When your programs need to handle more than two possibilities, multiple conditions become essential. Python's elif statement allows you to check several conditions in sequence, creating sophisticated decision trees that can handle complex scenarios with many different outcomes.",{"type":993,"tag":1001,"props":1007,"children":1008},{},[1009,1011,1021],{"type":998,"value":1010},"Multiple conditions help you avoid deeply nested ",{"type":993,"tag":1012,"props":1013,"children":1014},"strong",{},[1015],{"type":993,"tag":1016,"props":1017,"children":1018},"a",{"href":197},[1019],{"type":998,"value":1020},"if statements",{"type":998,"value":1022}," and create cleaner, more readable code. Instead of checking conditions one inside another, you can list them in a clear, logical sequence.",{"type":993,"tag":1024,"props":1025,"children":1026},"code-try",{},[1027],{"type":993,"tag":1028,"props":1029,"children":1032},"pre",{"className":1030,"code":1031,"language":6,"meta":8,"style":8},"language-python shiki shiki-themes github-light github-dark","# Multiple conditions with elif\ngrade = 85\n\nif grade >= 90:\n    letter = \"A\"\n    print(\"Excellent work!\")\nelif grade >= 80:\n    letter = \"B\"\n    print(\"Good job!\")\nelif grade >= 70:\n    letter = \"C\"\n    print(\"You passed!\")\nelif grade >= 60:\n    letter = \"D\"\n    print(\"You need improvement.\")\nelse:\n    letter = \"F\"\n    print(\"You failed.\")\n\nprint(f\"Your grade: {letter}\")\n",[1033],{"type":993,"tag":1034,"props":1035,"children":1036},"code",{"__ignoreMap":8},[1037,1048,1069,1077,1105,1123,1146,1171,1187,1207,1231,1247,1267,1291,1307,1327,1339,1355,1375,1382],{"type":993,"tag":1038,"props":1039,"children":1041},"span",{"class":1040,"line":12},"line",[1042],{"type":993,"tag":1038,"props":1043,"children":1045},{"style":1044},"--shiki-default:#6A737D;--shiki-app-dark-mode:#6A737D",[1046],{"type":998,"value":1047},"# Multiple conditions with elif\n",{"type":993,"tag":1038,"props":1049,"children":1050},{"class":1040,"line":27},[1051,1057,1063],{"type":993,"tag":1038,"props":1052,"children":1054},{"style":1053},"--shiki-default:#24292E;--shiki-app-dark-mode:#E1E4E8",[1055],{"type":998,"value":1056},"grade ",{"type":993,"tag":1038,"props":1058,"children":1060},{"style":1059},"--shiki-default:#D73A49;--shiki-app-dark-mode:#F97583",[1061],{"type":998,"value":1062},"=",{"type":993,"tag":1038,"props":1064,"children":1066},{"style":1065},"--shiki-default:#005CC5;--shiki-app-dark-mode:#79B8FF",[1067],{"type":998,"value":1068}," 85\n",{"type":993,"tag":1038,"props":1070,"children":1071},{"class":1040,"line":36},[1072],{"type":993,"tag":1038,"props":1073,"children":1074},{"emptyLinePlaceholder":13},[1075],{"type":998,"value":1076},"\n",{"type":993,"tag":1038,"props":1078,"children":1079},{"class":1040,"line":45},[1080,1085,1090,1095,1100],{"type":993,"tag":1038,"props":1081,"children":1082},{"style":1059},[1083],{"type":998,"value":1084},"if",{"type":993,"tag":1038,"props":1086,"children":1087},{"style":1053},[1088],{"type":998,"value":1089}," grade ",{"type":993,"tag":1038,"props":1091,"children":1092},{"style":1059},[1093],{"type":998,"value":1094},">=",{"type":993,"tag":1038,"props":1096,"children":1097},{"style":1065},[1098],{"type":998,"value":1099}," 90",{"type":993,"tag":1038,"props":1101,"children":1102},{"style":1053},[1103],{"type":998,"value":1104},":\n",{"type":993,"tag":1038,"props":1106,"children":1107},{"class":1040,"line":54},[1108,1113,1117],{"type":993,"tag":1038,"props":1109,"children":1110},{"style":1053},[1111],{"type":998,"value":1112},"    letter ",{"type":993,"tag":1038,"props":1114,"children":1115},{"style":1059},[1116],{"type":998,"value":1062},{"type":993,"tag":1038,"props":1118,"children":1120},{"style":1119},"--shiki-default:#032F62;--shiki-app-dark-mode:#9ECBFF",[1121],{"type":998,"value":1122}," \"A\"\n",{"type":993,"tag":1038,"props":1124,"children":1125},{"class":1040,"line":63},[1126,1131,1136,1141],{"type":993,"tag":1038,"props":1127,"children":1128},{"style":1065},[1129],{"type":998,"value":1130},"    print",{"type":993,"tag":1038,"props":1132,"children":1133},{"style":1053},[1134],{"type":998,"value":1135},"(",{"type":993,"tag":1038,"props":1137,"children":1138},{"style":1119},[1139],{"type":998,"value":1140},"\"Excellent work!\"",{"type":993,"tag":1038,"props":1142,"children":1143},{"style":1053},[1144],{"type":998,"value":1145},")\n",{"type":993,"tag":1038,"props":1147,"children":1148},{"class":1040,"line":72},[1149,1154,1158,1162,1167],{"type":993,"tag":1038,"props":1150,"children":1151},{"style":1059},[1152],{"type":998,"value":1153},"elif",{"type":993,"tag":1038,"props":1155,"children":1156},{"style":1053},[1157],{"type":998,"value":1089},{"type":993,"tag":1038,"props":1159,"children":1160},{"style":1059},[1161],{"type":998,"value":1094},{"type":993,"tag":1038,"props":1163,"children":1164},{"style":1065},[1165],{"type":998,"value":1166}," 80",{"type":993,"tag":1038,"props":1168,"children":1169},{"style":1053},[1170],{"type":998,"value":1104},{"type":993,"tag":1038,"props":1172,"children":1173},{"class":1040,"line":81},[1174,1178,1182],{"type":993,"tag":1038,"props":1175,"children":1176},{"style":1053},[1177],{"type":998,"value":1112},{"type":993,"tag":1038,"props":1179,"children":1180},{"style":1059},[1181],{"type":998,"value":1062},{"type":993,"tag":1038,"props":1183,"children":1184},{"style":1119},[1185],{"type":998,"value":1186}," \"B\"\n",{"type":993,"tag":1038,"props":1188,"children":1189},{"class":1040,"line":91},[1190,1194,1198,1203],{"type":993,"tag":1038,"props":1191,"children":1192},{"style":1065},[1193],{"type":998,"value":1130},{"type":993,"tag":1038,"props":1195,"children":1196},{"style":1053},[1197],{"type":998,"value":1135},{"type":993,"tag":1038,"props":1199,"children":1200},{"style":1119},[1201],{"type":998,"value":1202},"\"Good job!\"",{"type":993,"tag":1038,"props":1204,"children":1205},{"style":1053},[1206],{"type":998,"value":1145},{"type":993,"tag":1038,"props":1208,"children":1209},{"class":1040,"line":100},[1210,1214,1218,1222,1227],{"type":993,"tag":1038,"props":1211,"children":1212},{"style":1059},[1213],{"type":998,"value":1153},{"type":993,"tag":1038,"props":1215,"children":1216},{"style":1053},[1217],{"type":998,"value":1089},{"type":993,"tag":1038,"props":1219,"children":1220},{"style":1059},[1221],{"type":998,"value":1094},{"type":993,"tag":1038,"props":1223,"children":1224},{"style":1065},[1225],{"type":998,"value":1226}," 70",{"type":993,"tag":1038,"props":1228,"children":1229},{"style":1053},[1230],{"type":998,"value":1104},{"type":993,"tag":1038,"props":1232,"children":1233},{"class":1040,"line":109},[1234,1238,1242],{"type":993,"tag":1038,"props":1235,"children":1236},{"style":1053},[1237],{"type":998,"value":1112},{"type":993,"tag":1038,"props":1239,"children":1240},{"style":1059},[1241],{"type":998,"value":1062},{"type":993,"tag":1038,"props":1243,"children":1244},{"style":1119},[1245],{"type":998,"value":1246}," \"C\"\n",{"type":993,"tag":1038,"props":1248,"children":1249},{"class":1040,"line":118},[1250,1254,1258,1263],{"type":993,"tag":1038,"props":1251,"children":1252},{"style":1065},[1253],{"type":998,"value":1130},{"type":993,"tag":1038,"props":1255,"children":1256},{"style":1053},[1257],{"type":998,"value":1135},{"type":993,"tag":1038,"props":1259,"children":1260},{"style":1119},[1261],{"type":998,"value":1262},"\"You passed!\"",{"type":993,"tag":1038,"props":1264,"children":1265},{"style":1053},[1266],{"type":998,"value":1145},{"type":993,"tag":1038,"props":1268,"children":1269},{"class":1040,"line":127},[1270,1274,1278,1282,1287],{"type":993,"tag":1038,"props":1271,"children":1272},{"style":1059},[1273],{"type":998,"value":1153},{"type":993,"tag":1038,"props":1275,"children":1276},{"style":1053},[1277],{"type":998,"value":1089},{"type":993,"tag":1038,"props":1279,"children":1280},{"style":1059},[1281],{"type":998,"value":1094},{"type":993,"tag":1038,"props":1283,"children":1284},{"style":1065},[1285],{"type":998,"value":1286}," 60",{"type":993,"tag":1038,"props":1288,"children":1289},{"style":1053},[1290],{"type":998,"value":1104},{"type":993,"tag":1038,"props":1292,"children":1293},{"class":1040,"line":136},[1294,1298,1302],{"type":993,"tag":1038,"props":1295,"children":1296},{"style":1053},[1297],{"type":998,"value":1112},{"type":993,"tag":1038,"props":1299,"children":1300},{"style":1059},[1301],{"type":998,"value":1062},{"type":993,"tag":1038,"props":1303,"children":1304},{"style":1119},[1305],{"type":998,"value":1306}," \"D\"\n",{"type":993,"tag":1038,"props":1308,"children":1309},{"class":1040,"line":146},[1310,1314,1318,1323],{"type":993,"tag":1038,"props":1311,"children":1312},{"style":1065},[1313],{"type":998,"value":1130},{"type":993,"tag":1038,"props":1315,"children":1316},{"style":1053},[1317],{"type":998,"value":1135},{"type":993,"tag":1038,"props":1319,"children":1320},{"style":1119},[1321],{"type":998,"value":1322},"\"You need improvement.\"",{"type":993,"tag":1038,"props":1324,"children":1325},{"style":1053},[1326],{"type":998,"value":1145},{"type":993,"tag":1038,"props":1328,"children":1329},{"class":1040,"line":155},[1330,1335],{"type":993,"tag":1038,"props":1331,"children":1332},{"style":1059},[1333],{"type":998,"value":1334},"else",{"type":993,"tag":1038,"props":1336,"children":1337},{"style":1053},[1338],{"type":998,"value":1104},{"type":993,"tag":1038,"props":1340,"children":1341},{"class":1040,"line":164},[1342,1346,1350],{"type":993,"tag":1038,"props":1343,"children":1344},{"style":1053},[1345],{"type":998,"value":1112},{"type":993,"tag":1038,"props":1347,"children":1348},{"style":1059},[1349],{"type":998,"value":1062},{"type":993,"tag":1038,"props":1351,"children":1352},{"style":1119},[1353],{"type":998,"value":1354}," \"F\"\n",{"type":993,"tag":1038,"props":1356,"children":1357},{"class":1040,"line":173},[1358,1362,1366,1371],{"type":993,"tag":1038,"props":1359,"children":1360},{"style":1065},[1361],{"type":998,"value":1130},{"type":993,"tag":1038,"props":1363,"children":1364},{"style":1053},[1365],{"type":998,"value":1135},{"type":993,"tag":1038,"props":1367,"children":1368},{"style":1119},[1369],{"type":998,"value":1370},"\"You failed.\"",{"type":993,"tag":1038,"props":1372,"children":1373},{"style":1053},[1374],{"type":998,"value":1145},{"type":993,"tag":1038,"props":1376,"children":1377},{"class":1040,"line":182},[1378],{"type":993,"tag":1038,"props":1379,"children":1380},{"emptyLinePlaceholder":13},[1381],{"type":998,"value":1076},{"type":993,"tag":1038,"props":1383,"children":1384},{"class":1040,"line":191},[1385,1390,1394,1399,1404,1409,1414,1419,1424],{"type":993,"tag":1038,"props":1386,"children":1387},{"style":1065},[1388],{"type":998,"value":1389},"print",{"type":993,"tag":1038,"props":1391,"children":1392},{"style":1053},[1393],{"type":998,"value":1135},{"type":993,"tag":1038,"props":1395,"children":1396},{"style":1059},[1397],{"type":998,"value":1398},"f",{"type":993,"tag":1038,"props":1400,"children":1401},{"style":1119},[1402],{"type":998,"value":1403},"\"Your grade: ",{"type":993,"tag":1038,"props":1405,"children":1406},{"style":1065},[1407],{"type":998,"value":1408},"{",{"type":993,"tag":1038,"props":1410,"children":1411},{"style":1053},[1412],{"type":998,"value":1413},"letter",{"type":993,"tag":1038,"props":1415,"children":1416},{"style":1065},[1417],{"type":998,"value":1418},"}",{"type":993,"tag":1038,"props":1420,"children":1421},{"style":1119},[1422],{"type":998,"value":1423},"\"",{"type":993,"tag":1038,"props":1425,"children":1426},{"style":1053},[1427],{"type":998,"value":1145},{"type":993,"tag":1429,"props":1430,"children":1432},"h2",{"id":1431},"the-elif-statement",[1433],{"type":998,"value":1434},"🔄 The Elif Statement",{"type":993,"tag":1001,"props":1436,"children":1437},{},[1438],{"type":998,"value":1439},"The elif statement (short for \"else if\") allows you to check additional conditions after the initial if statement. Python evaluates elif conditions in order, executing the first one that's true and skipping the rest.",{"type":993,"tag":1441,"props":1442,"children":1446},"info-box",{"emoji":1443,"title":1444,"type":1445},"🔄","Elif Statement Characteristics","info",[1447,1455,1500,1508,1553,1563],{"type":993,"tag":1001,"props":1448,"children":1449},{},[1450],{"type":993,"tag":1012,"props":1451,"children":1452},{},[1453],{"type":998,"value":1454},"Sequential Evaluation:",{"type":993,"tag":1456,"props":1457,"children":1458},"ul",{},[1459,1470,1480,1490],{"type":993,"tag":1460,"props":1461,"children":1462},"li",{},[1463,1465],{"type":998,"value":1464},"Conditions checked from ",{"type":993,"tag":1012,"props":1466,"children":1467},{},[1468],{"type":998,"value":1469},"top to bottom",{"type":993,"tag":1460,"props":1471,"children":1472},{},[1473,1478],{"type":993,"tag":1012,"props":1474,"children":1475},{},[1476],{"type":998,"value":1477},"First true condition",{"type":998,"value":1479}," executes its block",{"type":993,"tag":1460,"props":1481,"children":1482},{},[1483,1488],{"type":993,"tag":1012,"props":1484,"children":1485},{},[1486],{"type":998,"value":1487},"Remaining elif/else clauses",{"type":998,"value":1489}," are skipped",{"type":993,"tag":1460,"props":1491,"children":1492},{},[1493,1498],{"type":993,"tag":1012,"props":1494,"children":1495},{},[1496],{"type":998,"value":1497},"Only one block",{"type":998,"value":1499}," ever executes",{"type":993,"tag":1001,"props":1501,"children":1502},{},[1503],{"type":993,"tag":1012,"props":1504,"children":1505},{},[1506],{"type":998,"value":1507},"Syntax Requirements:",{"type":993,"tag":1456,"props":1509,"children":1510},{},[1511,1521,1531,1543],{"type":993,"tag":1460,"props":1512,"children":1513},{},[1514,1516],{"type":998,"value":1515},"Must follow an ",{"type":993,"tag":1012,"props":1517,"children":1518},{},[1519],{"type":998,"value":1520},"if statement",{"type":993,"tag":1460,"props":1522,"children":1523},{},[1524,1526],{"type":998,"value":1525},"Can have ",{"type":993,"tag":1012,"props":1527,"children":1528},{},[1529],{"type":998,"value":1530},"multiple elif clauses",{"type":993,"tag":1460,"props":1532,"children":1533},{},[1534,1536,1541],{"type":998,"value":1535},"Optional ",{"type":993,"tag":1012,"props":1537,"children":1538},{},[1539],{"type":998,"value":1540},"else clause",{"type":998,"value":1542}," at the end",{"type":993,"tag":1460,"props":1544,"children":1545},{},[1546,1548],{"type":998,"value":1547},"Each elif needs its ",{"type":993,"tag":1012,"props":1549,"children":1550},{},[1551],{"type":998,"value":1552},"own condition",{"type":993,"tag":1001,"props":1554,"children":1555},{},[1556,1561],{"type":993,"tag":1012,"props":1557,"children":1558},{},[1559],{"type":998,"value":1560},"Efficiency:",{"type":998,"value":1562}," Stops checking once a condition is true",{"type":993,"tag":1001,"props":1564,"children":1565},{},[1566,1571],{"type":993,"tag":1012,"props":1567,"children":1568},{},[1569],{"type":998,"value":1570},"Mutually Exclusive:",{"type":998,"value":1572}," Only one path executes per if-elif-else chain",{"type":993,"tag":1001,"props":1574,"children":1575},{},[1576],{"type":998,"value":1577},"This sequential evaluation is important - once Python finds a true condition, it executes that block and skips all remaining elif and else clauses. This makes elif statements efficient and predictable.",{"type":993,"tag":1024,"props":1579,"children":1580},{},[1581],{"type":993,"tag":1028,"props":1582,"children":1584},{"className":1030,"code":1583,"language":6,"meta":8,"style":8},"# Elif statement evaluation order\ntime_of_day = 14  # 24-hour format\n\nif time_of_day \u003C 6:\n    greeting = \"Good night\"\nelif time_of_day \u003C 12:\n    greeting = \"Good morning\"\nelif time_of_day \u003C 18:\n    greeting = \"Good afternoon\"\nelse:\n    greeting = \"Good evening\"\n\nprint(f\"{greeting}! It's {time_of_day}:00\")\n",[1585],{"type":993,"tag":1034,"props":1586,"children":1587},{"__ignoreMap":8},[1588,1596,1618,1625,1651,1668,1692,1708,1732,1748,1759,1775,1782],{"type":993,"tag":1038,"props":1589,"children":1590},{"class":1040,"line":12},[1591],{"type":993,"tag":1038,"props":1592,"children":1593},{"style":1044},[1594],{"type":998,"value":1595},"# Elif statement evaluation order\n",{"type":993,"tag":1038,"props":1597,"children":1598},{"class":1040,"line":27},[1599,1604,1608,1613],{"type":993,"tag":1038,"props":1600,"children":1601},{"style":1053},[1602],{"type":998,"value":1603},"time_of_day ",{"type":993,"tag":1038,"props":1605,"children":1606},{"style":1059},[1607],{"type":998,"value":1062},{"type":993,"tag":1038,"props":1609,"children":1610},{"style":1065},[1611],{"type":998,"value":1612}," 14",{"type":993,"tag":1038,"props":1614,"children":1615},{"style":1044},[1616],{"type":998,"value":1617},"  # 24-hour format\n",{"type":993,"tag":1038,"props":1619,"children":1620},{"class":1040,"line":36},[1621],{"type":993,"tag":1038,"props":1622,"children":1623},{"emptyLinePlaceholder":13},[1624],{"type":998,"value":1076},{"type":993,"tag":1038,"props":1626,"children":1627},{"class":1040,"line":45},[1628,1632,1637,1642,1647],{"type":993,"tag":1038,"props":1629,"children":1630},{"style":1059},[1631],{"type":998,"value":1084},{"type":993,"tag":1038,"props":1633,"children":1634},{"style":1053},[1635],{"type":998,"value":1636}," time_of_day ",{"type":993,"tag":1038,"props":1638,"children":1639},{"style":1059},[1640],{"type":998,"value":1641},"\u003C",{"type":993,"tag":1038,"props":1643,"children":1644},{"style":1065},[1645],{"type":998,"value":1646}," 6",{"type":993,"tag":1038,"props":1648,"children":1649},{"style":1053},[1650],{"type":998,"value":1104},{"type":993,"tag":1038,"props":1652,"children":1653},{"class":1040,"line":54},[1654,1659,1663],{"type":993,"tag":1038,"props":1655,"children":1656},{"style":1053},[1657],{"type":998,"value":1658},"    greeting ",{"type":993,"tag":1038,"props":1660,"children":1661},{"style":1059},[1662],{"type":998,"value":1062},{"type":993,"tag":1038,"props":1664,"children":1665},{"style":1119},[1666],{"type":998,"value":1667}," \"Good night\"\n",{"type":993,"tag":1038,"props":1669,"children":1670},{"class":1040,"line":63},[1671,1675,1679,1683,1688],{"type":993,"tag":1038,"props":1672,"children":1673},{"style":1059},[1674],{"type":998,"value":1153},{"type":993,"tag":1038,"props":1676,"children":1677},{"style":1053},[1678],{"type":998,"value":1636},{"type":993,"tag":1038,"props":1680,"children":1681},{"style":1059},[1682],{"type":998,"value":1641},{"type":993,"tag":1038,"props":1684,"children":1685},{"style":1065},[1686],{"type":998,"value":1687}," 12",{"type":993,"tag":1038,"props":1689,"children":1690},{"style":1053},[1691],{"type":998,"value":1104},{"type":993,"tag":1038,"props":1693,"children":1694},{"class":1040,"line":72},[1695,1699,1703],{"type":993,"tag":1038,"props":1696,"children":1697},{"style":1053},[1698],{"type":998,"value":1658},{"type":993,"tag":1038,"props":1700,"children":1701},{"style":1059},[1702],{"type":998,"value":1062},{"type":993,"tag":1038,"props":1704,"children":1705},{"style":1119},[1706],{"type":998,"value":1707}," \"Good morning\"\n",{"type":993,"tag":1038,"props":1709,"children":1710},{"class":1040,"line":81},[1711,1715,1719,1723,1728],{"type":993,"tag":1038,"props":1712,"children":1713},{"style":1059},[1714],{"type":998,"value":1153},{"type":993,"tag":1038,"props":1716,"children":1717},{"style":1053},[1718],{"type":998,"value":1636},{"type":993,"tag":1038,"props":1720,"children":1721},{"style":1059},[1722],{"type":998,"value":1641},{"type":993,"tag":1038,"props":1724,"children":1725},{"style":1065},[1726],{"type":998,"value":1727}," 18",{"type":993,"tag":1038,"props":1729,"children":1730},{"style":1053},[1731],{"type":998,"value":1104},{"type":993,"tag":1038,"props":1733,"children":1734},{"class":1040,"line":91},[1735,1739,1743],{"type":993,"tag":1038,"props":1736,"children":1737},{"style":1053},[1738],{"type":998,"value":1658},{"type":993,"tag":1038,"props":1740,"children":1741},{"style":1059},[1742],{"type":998,"value":1062},{"type":993,"tag":1038,"props":1744,"children":1745},{"style":1119},[1746],{"type":998,"value":1747}," \"Good afternoon\"\n",{"type":993,"tag":1038,"props":1749,"children":1750},{"class":1040,"line":100},[1751,1755],{"type":993,"tag":1038,"props":1752,"children":1753},{"style":1059},[1754],{"type":998,"value":1334},{"type":993,"tag":1038,"props":1756,"children":1757},{"style":1053},[1758],{"type":998,"value":1104},{"type":993,"tag":1038,"props":1760,"children":1761},{"class":1040,"line":109},[1762,1766,1770],{"type":993,"tag":1038,"props":1763,"children":1764},{"style":1053},[1765],{"type":998,"value":1658},{"type":993,"tag":1038,"props":1767,"children":1768},{"style":1059},[1769],{"type":998,"value":1062},{"type":993,"tag":1038,"props":1771,"children":1772},{"style":1119},[1773],{"type":998,"value":1774}," \"Good evening\"\n",{"type":993,"tag":1038,"props":1776,"children":1777},{"class":1040,"line":118},[1778],{"type":993,"tag":1038,"props":1779,"children":1780},{"emptyLinePlaceholder":13},[1781],{"type":998,"value":1076},{"type":993,"tag":1038,"props":1783,"children":1784},{"class":1040,"line":127},[1785,1789,1793,1797,1801,1805,1810,1814,1819,1823,1828,1832,1837],{"type":993,"tag":1038,"props":1786,"children":1787},{"style":1065},[1788],{"type":998,"value":1389},{"type":993,"tag":1038,"props":1790,"children":1791},{"style":1053},[1792],{"type":998,"value":1135},{"type":993,"tag":1038,"props":1794,"children":1795},{"style":1059},[1796],{"type":998,"value":1398},{"type":993,"tag":1038,"props":1798,"children":1799},{"style":1119},[1800],{"type":998,"value":1423},{"type":993,"tag":1038,"props":1802,"children":1803},{"style":1065},[1804],{"type":998,"value":1408},{"type":993,"tag":1038,"props":1806,"children":1807},{"style":1053},[1808],{"type":998,"value":1809},"greeting",{"type":993,"tag":1038,"props":1811,"children":1812},{"style":1065},[1813],{"type":998,"value":1418},{"type":993,"tag":1038,"props":1815,"children":1816},{"style":1119},[1817],{"type":998,"value":1818},"! It's ",{"type":993,"tag":1038,"props":1820,"children":1821},{"style":1065},[1822],{"type":998,"value":1408},{"type":993,"tag":1038,"props":1824,"children":1825},{"style":1053},[1826],{"type":998,"value":1827},"time_of_day",{"type":993,"tag":1038,"props":1829,"children":1830},{"style":1065},[1831],{"type":998,"value":1418},{"type":993,"tag":1038,"props":1833,"children":1834},{"style":1119},[1835],{"type":998,"value":1836},":00\"",{"type":993,"tag":1038,"props":1838,"children":1839},{"style":1053},[1840],{"type":998,"value":1145},{"type":993,"tag":1429,"props":1842,"children":1844},{"id":1843},"complex-logical-conditions",[1845],{"type":998,"value":1846},"🧩 Complex Logical Conditions",{"type":993,"tag":1001,"props":1848,"children":1849},{},[1850,1852,1860],{"type":998,"value":1851},"You can combine multiple comparisons in a single condition using ",{"type":993,"tag":1012,"props":1853,"children":1854},{},[1855],{"type":993,"tag":1016,"props":1856,"children":1857},{"href":160},[1858],{"type":998,"value":1859},"logical operators",{"type":998,"value":1861},". This allows you to create sophisticated conditions that check several criteria simultaneously.",{"type":993,"tag":1441,"props":1863,"children":1867},{"emoji":1864,"title":1865,"type":1866},"🧩","Complex Condition Guidelines","success",[1868,1876,1931,1939,1970,1980],{"type":993,"tag":1001,"props":1869,"children":1870},{},[1871],{"type":993,"tag":1012,"props":1872,"children":1873},{},[1874],{"type":998,"value":1875},"Logical Operator Combinations:",{"type":993,"tag":1456,"props":1877,"children":1878},{},[1879,1893,1907,1921],{"type":993,"tag":1460,"props":1880,"children":1881},{},[1882,1891],{"type":993,"tag":1012,"props":1883,"children":1884},{},[1885],{"type":993,"tag":1034,"props":1886,"children":1888},{"className":1887},[],[1889],{"type":998,"value":1890},"and",{"type":998,"value":1892},": All conditions must be true",{"type":993,"tag":1460,"props":1894,"children":1895},{},[1896,1905],{"type":993,"tag":1012,"props":1897,"children":1898},{},[1899],{"type":993,"tag":1034,"props":1900,"children":1902},{"className":1901},[],[1903],{"type":998,"value":1904},"or",{"type":998,"value":1906},": At least one condition must be true",{"type":993,"tag":1460,"props":1908,"children":1909},{},[1910,1919],{"type":993,"tag":1012,"props":1911,"children":1912},{},[1913],{"type":993,"tag":1034,"props":1914,"children":1916},{"className":1915},[],[1917],{"type":998,"value":1918},"not",{"type":998,"value":1920},": Negates the condition",{"type":993,"tag":1460,"props":1922,"children":1923},{},[1924,1929],{"type":993,"tag":1012,"props":1925,"children":1926},{},[1927],{"type":998,"value":1928},"Parentheses",{"type":998,"value":1930},": Control evaluation order",{"type":993,"tag":1001,"props":1932,"children":1933},{},[1934],{"type":993,"tag":1012,"props":1935,"children":1936},{},[1937],{"type":998,"value":1938},"Best Practices:",{"type":993,"tag":1456,"props":1940,"children":1941},{},[1942,1947,1960,1965],{"type":993,"tag":1460,"props":1943,"children":1944},{},[1945],{"type":998,"value":1946},"Use parentheses for clarity in complex expressions",{"type":993,"tag":1460,"props":1948,"children":1949},{},[1950,1952],{"type":998,"value":1951},"Break very complex conditions into ",{"type":993,"tag":1012,"props":1953,"children":1954},{},[1955],{"type":993,"tag":1016,"props":1956,"children":1957},{"href":68},[1958],{"type":998,"value":1959},"variables",{"type":993,"tag":1460,"props":1961,"children":1962},{},[1963],{"type":998,"value":1964},"Keep individual comparisons simple",{"type":993,"tag":1460,"props":1966,"children":1967},{},[1968],{"type":998,"value":1969},"Consider readability over brevity",{"type":993,"tag":1001,"props":1971,"children":1972},{},[1973,1978],{"type":993,"tag":1012,"props":1974,"children":1975},{},[1976],{"type":998,"value":1977},"Maintainability:",{"type":998,"value":1979}," Clear conditions reduce debugging time",{"type":993,"tag":1001,"props":1981,"children":1982},{},[1983,1988],{"type":993,"tag":1012,"props":1984,"children":1985},{},[1986],{"type":998,"value":1987},"Performance:",{"type":998,"value":1989}," Short-circuit evaluation improves efficiency",{"type":993,"tag":1001,"props":1991,"children":1992},{},[1993],{"type":998,"value":1994},"Complex conditions help you express nuanced decision logic without creating deeply nested if statements. Use parentheses to make complex conditions clear and readable.",{"type":993,"tag":1024,"props":1996,"children":1997},{},[1998],{"type":993,"tag":1028,"props":1999,"children":2001},{"className":1030,"code":2000,"language":6,"meta":8,"style":8},"# Complex logical conditions\nage = 25\nhas_license = True\nhas_car = True\nhas_insurance = False\n\nif age >= 18 and has_license and has_car and has_insurance:\n    print(\"You can drive legally!\")\nelif age >= 18 and has_license:\n    print(\"You can drive, but you need insurance and a car.\")\nelif age >= 18:\n    print(\"You're old enough, but you need a license.\")\nelse:\n    print(\"You're too young to drive.\")\n\n# Complex condition with parentheses\ntemperature = 75\nhumidity = 45\nif (temperature >= 70 and temperature \u003C= 80) and (humidity >= 30 and humidity \u003C= 50):\n    print(\"Perfect weather conditions!\")\n",[2002],{"type":993,"tag":1034,"props":2003,"children":2004},{"__ignoreMap":8},[2005,2013,2030,2047,2063,2080,2087,2135,2155,2183,2203,2226,2246,2257,2277,2284,2292,2309,2326,2410],{"type":993,"tag":1038,"props":2006,"children":2007},{"class":1040,"line":12},[2008],{"type":993,"tag":1038,"props":2009,"children":2010},{"style":1044},[2011],{"type":998,"value":2012},"# Complex logical conditions\n",{"type":993,"tag":1038,"props":2014,"children":2015},{"class":1040,"line":27},[2016,2021,2025],{"type":993,"tag":1038,"props":2017,"children":2018},{"style":1053},[2019],{"type":998,"value":2020},"age ",{"type":993,"tag":1038,"props":2022,"children":2023},{"style":1059},[2024],{"type":998,"value":1062},{"type":993,"tag":1038,"props":2026,"children":2027},{"style":1065},[2028],{"type":998,"value":2029}," 25\n",{"type":993,"tag":1038,"props":2031,"children":2032},{"class":1040,"line":36},[2033,2038,2042],{"type":993,"tag":1038,"props":2034,"children":2035},{"style":1053},[2036],{"type":998,"value":2037},"has_license ",{"type":993,"tag":1038,"props":2039,"children":2040},{"style":1059},[2041],{"type":998,"value":1062},{"type":993,"tag":1038,"props":2043,"children":2044},{"style":1065},[2045],{"type":998,"value":2046}," True\n",{"type":993,"tag":1038,"props":2048,"children":2049},{"class":1040,"line":45},[2050,2055,2059],{"type":993,"tag":1038,"props":2051,"children":2052},{"style":1053},[2053],{"type":998,"value":2054},"has_car ",{"type":993,"tag":1038,"props":2056,"children":2057},{"style":1059},[2058],{"type":998,"value":1062},{"type":993,"tag":1038,"props":2060,"children":2061},{"style":1065},[2062],{"type":998,"value":2046},{"type":993,"tag":1038,"props":2064,"children":2065},{"class":1040,"line":54},[2066,2071,2075],{"type":993,"tag":1038,"props":2067,"children":2068},{"style":1053},[2069],{"type":998,"value":2070},"has_insurance ",{"type":993,"tag":1038,"props":2072,"children":2073},{"style":1059},[2074],{"type":998,"value":1062},{"type":993,"tag":1038,"props":2076,"children":2077},{"style":1065},[2078],{"type":998,"value":2079}," False\n",{"type":993,"tag":1038,"props":2081,"children":2082},{"class":1040,"line":63},[2083],{"type":993,"tag":1038,"props":2084,"children":2085},{"emptyLinePlaceholder":13},[2086],{"type":998,"value":1076},{"type":993,"tag":1038,"props":2088,"children":2089},{"class":1040,"line":72},[2090,2094,2099,2103,2107,2112,2117,2121,2126,2130],{"type":993,"tag":1038,"props":2091,"children":2092},{"style":1059},[2093],{"type":998,"value":1084},{"type":993,"tag":1038,"props":2095,"children":2096},{"style":1053},[2097],{"type":998,"value":2098}," age ",{"type":993,"tag":1038,"props":2100,"children":2101},{"style":1059},[2102],{"type":998,"value":1094},{"type":993,"tag":1038,"props":2104,"children":2105},{"style":1065},[2106],{"type":998,"value":1727},{"type":993,"tag":1038,"props":2108,"children":2109},{"style":1059},[2110],{"type":998,"value":2111}," and",{"type":993,"tag":1038,"props":2113,"children":2114},{"style":1053},[2115],{"type":998,"value":2116}," has_license ",{"type":993,"tag":1038,"props":2118,"children":2119},{"style":1059},[2120],{"type":998,"value":1890},{"type":993,"tag":1038,"props":2122,"children":2123},{"style":1053},[2124],{"type":998,"value":2125}," has_car ",{"type":993,"tag":1038,"props":2127,"children":2128},{"style":1059},[2129],{"type":998,"value":1890},{"type":993,"tag":1038,"props":2131,"children":2132},{"style":1053},[2133],{"type":998,"value":2134}," has_insurance:\n",{"type":993,"tag":1038,"props":2136,"children":2137},{"class":1040,"line":81},[2138,2142,2146,2151],{"type":993,"tag":1038,"props":2139,"children":2140},{"style":1065},[2141],{"type":998,"value":1130},{"type":993,"tag":1038,"props":2143,"children":2144},{"style":1053},[2145],{"type":998,"value":1135},{"type":993,"tag":1038,"props":2147,"children":2148},{"style":1119},[2149],{"type":998,"value":2150},"\"You can drive legally!\"",{"type":993,"tag":1038,"props":2152,"children":2153},{"style":1053},[2154],{"type":998,"value":1145},{"type":993,"tag":1038,"props":2156,"children":2157},{"class":1040,"line":91},[2158,2162,2166,2170,2174,2178],{"type":993,"tag":1038,"props":2159,"children":2160},{"style":1059},[2161],{"type":998,"value":1153},{"type":993,"tag":1038,"props":2163,"children":2164},{"style":1053},[2165],{"type":998,"value":2098},{"type":993,"tag":1038,"props":2167,"children":2168},{"style":1059},[2169],{"type":998,"value":1094},{"type":993,"tag":1038,"props":2171,"children":2172},{"style":1065},[2173],{"type":998,"value":1727},{"type":993,"tag":1038,"props":2175,"children":2176},{"style":1059},[2177],{"type":998,"value":2111},{"type":993,"tag":1038,"props":2179,"children":2180},{"style":1053},[2181],{"type":998,"value":2182}," has_license:\n",{"type":993,"tag":1038,"props":2184,"children":2185},{"class":1040,"line":100},[2186,2190,2194,2199],{"type":993,"tag":1038,"props":2187,"children":2188},{"style":1065},[2189],{"type":998,"value":1130},{"type":993,"tag":1038,"props":2191,"children":2192},{"style":1053},[2193],{"type":998,"value":1135},{"type":993,"tag":1038,"props":2195,"children":2196},{"style":1119},[2197],{"type":998,"value":2198},"\"You can drive, but you need insurance and a car.\"",{"type":993,"tag":1038,"props":2200,"children":2201},{"style":1053},[2202],{"type":998,"value":1145},{"type":993,"tag":1038,"props":2204,"children":2205},{"class":1040,"line":109},[2206,2210,2214,2218,2222],{"type":993,"tag":1038,"props":2207,"children":2208},{"style":1059},[2209],{"type":998,"value":1153},{"type":993,"tag":1038,"props":2211,"children":2212},{"style":1053},[2213],{"type":998,"value":2098},{"type":993,"tag":1038,"props":2215,"children":2216},{"style":1059},[2217],{"type":998,"value":1094},{"type":993,"tag":1038,"props":2219,"children":2220},{"style":1065},[2221],{"type":998,"value":1727},{"type":993,"tag":1038,"props":2223,"children":2224},{"style":1053},[2225],{"type":998,"value":1104},{"type":993,"tag":1038,"props":2227,"children":2228},{"class":1040,"line":118},[2229,2233,2237,2242],{"type":993,"tag":1038,"props":2230,"children":2231},{"style":1065},[2232],{"type":998,"value":1130},{"type":993,"tag":1038,"props":2234,"children":2235},{"style":1053},[2236],{"type":998,"value":1135},{"type":993,"tag":1038,"props":2238,"children":2239},{"style":1119},[2240],{"type":998,"value":2241},"\"You're old enough, but you need a license.\"",{"type":993,"tag":1038,"props":2243,"children":2244},{"style":1053},[2245],{"type":998,"value":1145},{"type":993,"tag":1038,"props":2247,"children":2248},{"class":1040,"line":127},[2249,2253],{"type":993,"tag":1038,"props":2250,"children":2251},{"style":1059},[2252],{"type":998,"value":1334},{"type":993,"tag":1038,"props":2254,"children":2255},{"style":1053},[2256],{"type":998,"value":1104},{"type":993,"tag":1038,"props":2258,"children":2259},{"class":1040,"line":136},[2260,2264,2268,2273],{"type":993,"tag":1038,"props":2261,"children":2262},{"style":1065},[2263],{"type":998,"value":1130},{"type":993,"tag":1038,"props":2265,"children":2266},{"style":1053},[2267],{"type":998,"value":1135},{"type":993,"tag":1038,"props":2269,"children":2270},{"style":1119},[2271],{"type":998,"value":2272},"\"You're too young to drive.\"",{"type":993,"tag":1038,"props":2274,"children":2275},{"style":1053},[2276],{"type":998,"value":1145},{"type":993,"tag":1038,"props":2278,"children":2279},{"class":1040,"line":146},[2280],{"type":993,"tag":1038,"props":2281,"children":2282},{"emptyLinePlaceholder":13},[2283],{"type":998,"value":1076},{"type":993,"tag":1038,"props":2285,"children":2286},{"class":1040,"line":155},[2287],{"type":993,"tag":1038,"props":2288,"children":2289},{"style":1044},[2290],{"type":998,"value":2291},"# Complex condition with parentheses\n",{"type":993,"tag":1038,"props":2293,"children":2294},{"class":1040,"line":164},[2295,2300,2304],{"type":993,"tag":1038,"props":2296,"children":2297},{"style":1053},[2298],{"type":998,"value":2299},"temperature ",{"type":993,"tag":1038,"props":2301,"children":2302},{"style":1059},[2303],{"type":998,"value":1062},{"type":993,"tag":1038,"props":2305,"children":2306},{"style":1065},[2307],{"type":998,"value":2308}," 75\n",{"type":993,"tag":1038,"props":2310,"children":2311},{"class":1040,"line":173},[2312,2317,2321],{"type":993,"tag":1038,"props":2313,"children":2314},{"style":1053},[2315],{"type":998,"value":2316},"humidity ",{"type":993,"tag":1038,"props":2318,"children":2319},{"style":1059},[2320],{"type":998,"value":1062},{"type":993,"tag":1038,"props":2322,"children":2323},{"style":1065},[2324],{"type":998,"value":2325}," 45\n",{"type":993,"tag":1038,"props":2327,"children":2328},{"class":1040,"line":182},[2329,2333,2338,2342,2346,2350,2355,2360,2364,2369,2373,2378,2382,2387,2391,2396,2400,2405],{"type":993,"tag":1038,"props":2330,"children":2331},{"style":1059},[2332],{"type":998,"value":1084},{"type":993,"tag":1038,"props":2334,"children":2335},{"style":1053},[2336],{"type":998,"value":2337}," (temperature ",{"type":993,"tag":1038,"props":2339,"children":2340},{"style":1059},[2341],{"type":998,"value":1094},{"type":993,"tag":1038,"props":2343,"children":2344},{"style":1065},[2345],{"type":998,"value":1226},{"type":993,"tag":1038,"props":2347,"children":2348},{"style":1059},[2349],{"type":998,"value":2111},{"type":993,"tag":1038,"props":2351,"children":2352},{"style":1053},[2353],{"type":998,"value":2354}," temperature ",{"type":993,"tag":1038,"props":2356,"children":2357},{"style":1059},[2358],{"type":998,"value":2359},"\u003C=",{"type":993,"tag":1038,"props":2361,"children":2362},{"style":1065},[2363],{"type":998,"value":1166},{"type":993,"tag":1038,"props":2365,"children":2366},{"style":1053},[2367],{"type":998,"value":2368},") ",{"type":993,"tag":1038,"props":2370,"children":2371},{"style":1059},[2372],{"type":998,"value":1890},{"type":993,"tag":1038,"props":2374,"children":2375},{"style":1053},[2376],{"type":998,"value":2377}," (humidity ",{"type":993,"tag":1038,"props":2379,"children":2380},{"style":1059},[2381],{"type":998,"value":1094},{"type":993,"tag":1038,"props":2383,"children":2384},{"style":1065},[2385],{"type":998,"value":2386}," 30",{"type":993,"tag":1038,"props":2388,"children":2389},{"style":1059},[2390],{"type":998,"value":2111},{"type":993,"tag":1038,"props":2392,"children":2393},{"style":1053},[2394],{"type":998,"value":2395}," humidity ",{"type":993,"tag":1038,"props":2397,"children":2398},{"style":1059},[2399],{"type":998,"value":2359},{"type":993,"tag":1038,"props":2401,"children":2402},{"style":1065},[2403],{"type":998,"value":2404}," 50",{"type":993,"tag":1038,"props":2406,"children":2407},{"style":1053},[2408],{"type":998,"value":2409},"):\n",{"type":993,"tag":1038,"props":2411,"children":2412},{"class":1040,"line":191},[2413,2417,2421,2426],{"type":993,"tag":1038,"props":2414,"children":2415},{"style":1065},[2416],{"type":998,"value":1130},{"type":993,"tag":1038,"props":2418,"children":2419},{"style":1053},[2420],{"type":998,"value":1135},{"type":993,"tag":1038,"props":2422,"children":2423},{"style":1119},[2424],{"type":998,"value":2425},"\"Perfect weather conditions!\"",{"type":993,"tag":1038,"props":2427,"children":2428},{"style":1053},[2429],{"type":998,"value":1145},{"type":993,"tag":2431,"props":2432,"children":2434},"content-exercise",{":widget-view":2433,"category":6,"id":209},"true",[],{"type":993,"tag":1429,"props":2436,"children":2438},{"id":2437},"quick-multiple-conditions-practice",[2439],{"type":998,"value":2440},"🔀 Quick Multiple Conditions Practice",{"type":993,"tag":1001,"props":2442,"children":2443},{},[2444],{"type":998,"value":2445},"Let's practice using elif statements to handle multiple different conditions!",{"type":993,"tag":2447,"props":2448,"children":2451},"exercise",{"hint":2449,"prompt":2450},"Use elif for additional conditions after the first if statement!","Practice using if, elif, and else statements to handle multiple conditions.",[2452],{"type":993,"tag":1028,"props":2453,"children":2455},{"className":1030,"code":2454,"language":6,"meta":8,"style":8},"# Multiple Conditions Practice - Grade calculator!\n\n# Grade based on score\nscore = 85\n\n# TODO: Your code here: Complete the grade calculator\n# 90-100: \"A grade\"\n# 80-89: \"B grade\" \n# 70-79: \"C grade\"\n# Below 70: \"F grade\"\n\nif score >= 90:\n    print(\"A grade\")\n# Add elif and else statements here\n",[2456],{"type":993,"tag":1034,"props":2457,"children":2458},{"__ignoreMap":8},[2459,2467,2474,2482,2498,2505,2523,2531,2539,2547,2555,2562,2586,2606],{"type":993,"tag":1038,"props":2460,"children":2461},{"class":1040,"line":12},[2462],{"type":993,"tag":1038,"props":2463,"children":2464},{"style":1044},[2465],{"type":998,"value":2466},"# Multiple Conditions Practice - Grade calculator!\n",{"type":993,"tag":1038,"props":2468,"children":2469},{"class":1040,"line":27},[2470],{"type":993,"tag":1038,"props":2471,"children":2472},{"emptyLinePlaceholder":13},[2473],{"type":998,"value":1076},{"type":993,"tag":1038,"props":2475,"children":2476},{"class":1040,"line":36},[2477],{"type":993,"tag":1038,"props":2478,"children":2479},{"style":1044},[2480],{"type":998,"value":2481},"# Grade based on score\n",{"type":993,"tag":1038,"props":2483,"children":2484},{"class":1040,"line":45},[2485,2490,2494],{"type":993,"tag":1038,"props":2486,"children":2487},{"style":1053},[2488],{"type":998,"value":2489},"score ",{"type":993,"tag":1038,"props":2491,"children":2492},{"style":1059},[2493],{"type":998,"value":1062},{"type":993,"tag":1038,"props":2495,"children":2496},{"style":1065},[2497],{"type":998,"value":1068},{"type":993,"tag":1038,"props":2499,"children":2500},{"class":1040,"line":54},[2501],{"type":993,"tag":1038,"props":2502,"children":2503},{"emptyLinePlaceholder":13},[2504],{"type":998,"value":1076},{"type":993,"tag":1038,"props":2506,"children":2507},{"class":1040,"line":63},[2508,2513,2518],{"type":993,"tag":1038,"props":2509,"children":2510},{"style":1044},[2511],{"type":998,"value":2512},"# ",{"type":993,"tag":1038,"props":2514,"children":2515},{"style":1059},[2516],{"type":998,"value":2517},"TODO",{"type":993,"tag":1038,"props":2519,"children":2520},{"style":1044},[2521],{"type":998,"value":2522},": Your code here: Complete the grade calculator\n",{"type":993,"tag":1038,"props":2524,"children":2525},{"class":1040,"line":72},[2526],{"type":993,"tag":1038,"props":2527,"children":2528},{"style":1044},[2529],{"type":998,"value":2530},"# 90-100: \"A grade\"\n",{"type":993,"tag":1038,"props":2532,"children":2533},{"class":1040,"line":81},[2534],{"type":993,"tag":1038,"props":2535,"children":2536},{"style":1044},[2537],{"type":998,"value":2538},"# 80-89: \"B grade\" \n",{"type":993,"tag":1038,"props":2540,"children":2541},{"class":1040,"line":91},[2542],{"type":993,"tag":1038,"props":2543,"children":2544},{"style":1044},[2545],{"type":998,"value":2546},"# 70-79: \"C grade\"\n",{"type":993,"tag":1038,"props":2548,"children":2549},{"class":1040,"line":100},[2550],{"type":993,"tag":1038,"props":2551,"children":2552},{"style":1044},[2553],{"type":998,"value":2554},"# Below 70: \"F grade\"\n",{"type":993,"tag":1038,"props":2556,"children":2557},{"class":1040,"line":109},[2558],{"type":993,"tag":1038,"props":2559,"children":2560},{"emptyLinePlaceholder":13},[2561],{"type":998,"value":1076},{"type":993,"tag":1038,"props":2563,"children":2564},{"class":1040,"line":118},[2565,2569,2574,2578,2582],{"type":993,"tag":1038,"props":2566,"children":2567},{"style":1059},[2568],{"type":998,"value":1084},{"type":993,"tag":1038,"props":2570,"children":2571},{"style":1053},[2572],{"type":998,"value":2573}," score ",{"type":993,"tag":1038,"props":2575,"children":2576},{"style":1059},[2577],{"type":998,"value":1094},{"type":993,"tag":1038,"props":2579,"children":2580},{"style":1065},[2581],{"type":998,"value":1099},{"type":993,"tag":1038,"props":2583,"children":2584},{"style":1053},[2585],{"type":998,"value":1104},{"type":993,"tag":1038,"props":2587,"children":2588},{"class":1040,"line":127},[2589,2593,2597,2602],{"type":993,"tag":1038,"props":2590,"children":2591},{"style":1065},[2592],{"type":998,"value":1130},{"type":993,"tag":1038,"props":2594,"children":2595},{"style":1053},[2596],{"type":998,"value":1135},{"type":993,"tag":1038,"props":2598,"children":2599},{"style":1119},[2600],{"type":998,"value":2601},"\"A grade\"",{"type":993,"tag":1038,"props":2603,"children":2604},{"style":1053},[2605],{"type":998,"value":1145},{"type":993,"tag":1038,"props":2607,"children":2608},{"class":1040,"line":136},[2609],{"type":993,"tag":1038,"props":2610,"children":2611},{"style":1044},[2612],{"type":998,"value":2613},"# Add elif and else statements here\n",{"type":993,"tag":2615,"props":2616,"children":2618},"h3",{"id":2617},"solution-and-explanation",[2619],{"type":998,"value":2620},"Solution and Explanation 💡",{"type":993,"tag":2622,"props":2623,"children":2624},"details",{},[2625,2633,2871,2879],{"type":993,"tag":2626,"props":2627,"children":2630},"summary",{"className":2628},[2629],"cursor-pointer",[2631],{"type":998,"value":2632},"Click to see the complete solution",{"type":993,"tag":1024,"props":2634,"children":2635},{},[2636],{"type":993,"tag":1028,"props":2637,"children":2639},{"className":1030,"code":2638,"language":6,"meta":8,"style":8},"# Multiple Conditions Practice - Simple solution\n\n# Grade based on score\nscore = 85\n\n# Complete grade calculator\nif score >= 90:\n    print(\"A grade\")\nelif score >= 80:      # 80-89\n    print(\"B grade\")\nelif score >= 70:      # 70-79\n    print(\"C grade\")\nelse:                  # Below 70\n    print(\"F grade\")\n",[2640],{"type":993,"tag":1034,"props":2641,"children":2642},{"__ignoreMap":8},[2643,2651,2658,2665,2680,2687,2695,2718,2737,2766,2786,2814,2834,2851],{"type":993,"tag":1038,"props":2644,"children":2645},{"class":1040,"line":12},[2646],{"type":993,"tag":1038,"props":2647,"children":2648},{"style":1044},[2649],{"type":998,"value":2650},"# Multiple Conditions Practice - Simple solution\n",{"type":993,"tag":1038,"props":2652,"children":2653},{"class":1040,"line":27},[2654],{"type":993,"tag":1038,"props":2655,"children":2656},{"emptyLinePlaceholder":13},[2657],{"type":998,"value":1076},{"type":993,"tag":1038,"props":2659,"children":2660},{"class":1040,"line":36},[2661],{"type":993,"tag":1038,"props":2662,"children":2663},{"style":1044},[2664],{"type":998,"value":2481},{"type":993,"tag":1038,"props":2666,"children":2667},{"class":1040,"line":45},[2668,2672,2676],{"type":993,"tag":1038,"props":2669,"children":2670},{"style":1053},[2671],{"type":998,"value":2489},{"type":993,"tag":1038,"props":2673,"children":2674},{"style":1059},[2675],{"type":998,"value":1062},{"type":993,"tag":1038,"props":2677,"children":2678},{"style":1065},[2679],{"type":998,"value":1068},{"type":993,"tag":1038,"props":2681,"children":2682},{"class":1040,"line":54},[2683],{"type":993,"tag":1038,"props":2684,"children":2685},{"emptyLinePlaceholder":13},[2686],{"type":998,"value":1076},{"type":993,"tag":1038,"props":2688,"children":2689},{"class":1040,"line":63},[2690],{"type":993,"tag":1038,"props":2691,"children":2692},{"style":1044},[2693],{"type":998,"value":2694},"# Complete grade calculator\n",{"type":993,"tag":1038,"props":2696,"children":2697},{"class":1040,"line":72},[2698,2702,2706,2710,2714],{"type":993,"tag":1038,"props":2699,"children":2700},{"style":1059},[2701],{"type":998,"value":1084},{"type":993,"tag":1038,"props":2703,"children":2704},{"style":1053},[2705],{"type":998,"value":2573},{"type":993,"tag":1038,"props":2707,"children":2708},{"style":1059},[2709],{"type":998,"value":1094},{"type":993,"tag":1038,"props":2711,"children":2712},{"style":1065},[2713],{"type":998,"value":1099},{"type":993,"tag":1038,"props":2715,"children":2716},{"style":1053},[2717],{"type":998,"value":1104},{"type":993,"tag":1038,"props":2719,"children":2720},{"class":1040,"line":81},[2721,2725,2729,2733],{"type":993,"tag":1038,"props":2722,"children":2723},{"style":1065},[2724],{"type":998,"value":1130},{"type":993,"tag":1038,"props":2726,"children":2727},{"style":1053},[2728],{"type":998,"value":1135},{"type":993,"tag":1038,"props":2730,"children":2731},{"style":1119},[2732],{"type":998,"value":2601},{"type":993,"tag":1038,"props":2734,"children":2735},{"style":1053},[2736],{"type":998,"value":1145},{"type":993,"tag":1038,"props":2738,"children":2739},{"class":1040,"line":91},[2740,2744,2748,2752,2756,2761],{"type":993,"tag":1038,"props":2741,"children":2742},{"style":1059},[2743],{"type":998,"value":1153},{"type":993,"tag":1038,"props":2745,"children":2746},{"style":1053},[2747],{"type":998,"value":2573},{"type":993,"tag":1038,"props":2749,"children":2750},{"style":1059},[2751],{"type":998,"value":1094},{"type":993,"tag":1038,"props":2753,"children":2754},{"style":1065},[2755],{"type":998,"value":1166},{"type":993,"tag":1038,"props":2757,"children":2758},{"style":1053},[2759],{"type":998,"value":2760},":      ",{"type":993,"tag":1038,"props":2762,"children":2763},{"style":1044},[2764],{"type":998,"value":2765},"# 80-89\n",{"type":993,"tag":1038,"props":2767,"children":2768},{"class":1040,"line":100},[2769,2773,2777,2782],{"type":993,"tag":1038,"props":2770,"children":2771},{"style":1065},[2772],{"type":998,"value":1130},{"type":993,"tag":1038,"props":2774,"children":2775},{"style":1053},[2776],{"type":998,"value":1135},{"type":993,"tag":1038,"props":2778,"children":2779},{"style":1119},[2780],{"type":998,"value":2781},"\"B grade\"",{"type":993,"tag":1038,"props":2783,"children":2784},{"style":1053},[2785],{"type":998,"value":1145},{"type":993,"tag":1038,"props":2787,"children":2788},{"class":1040,"line":109},[2789,2793,2797,2801,2805,2809],{"type":993,"tag":1038,"props":2790,"children":2791},{"style":1059},[2792],{"type":998,"value":1153},{"type":993,"tag":1038,"props":2794,"children":2795},{"style":1053},[2796],{"type":998,"value":2573},{"type":993,"tag":1038,"props":2798,"children":2799},{"style":1059},[2800],{"type":998,"value":1094},{"type":993,"tag":1038,"props":2802,"children":2803},{"style":1065},[2804],{"type":998,"value":1226},{"type":993,"tag":1038,"props":2806,"children":2807},{"style":1053},[2808],{"type":998,"value":2760},{"type":993,"tag":1038,"props":2810,"children":2811},{"style":1044},[2812],{"type":998,"value":2813},"# 70-79\n",{"type":993,"tag":1038,"props":2815,"children":2816},{"class":1040,"line":118},[2817,2821,2825,2830],{"type":993,"tag":1038,"props":2818,"children":2819},{"style":1065},[2820],{"type":998,"value":1130},{"type":993,"tag":1038,"props":2822,"children":2823},{"style":1053},[2824],{"type":998,"value":1135},{"type":993,"tag":1038,"props":2826,"children":2827},{"style":1119},[2828],{"type":998,"value":2829},"\"C grade\"",{"type":993,"tag":1038,"props":2831,"children":2832},{"style":1053},[2833],{"type":998,"value":1145},{"type":993,"tag":1038,"props":2835,"children":2836},{"class":1040,"line":127},[2837,2841,2846],{"type":993,"tag":1038,"props":2838,"children":2839},{"style":1059},[2840],{"type":998,"value":1334},{"type":993,"tag":1038,"props":2842,"children":2843},{"style":1053},[2844],{"type":998,"value":2845},":                  ",{"type":993,"tag":1038,"props":2847,"children":2848},{"style":1044},[2849],{"type":998,"value":2850},"# Below 70\n",{"type":993,"tag":1038,"props":2852,"children":2853},{"class":1040,"line":136},[2854,2858,2862,2867],{"type":993,"tag":1038,"props":2855,"children":2856},{"style":1065},[2857],{"type":998,"value":1130},{"type":993,"tag":1038,"props":2859,"children":2860},{"style":1053},[2861],{"type":998,"value":1135},{"type":993,"tag":1038,"props":2863,"children":2864},{"style":1119},[2865],{"type":998,"value":2866},"\"F grade\"",{"type":993,"tag":1038,"props":2868,"children":2869},{"style":1053},[2870],{"type":998,"value":1145},{"type":993,"tag":1001,"props":2872,"children":2873},{},[2874],{"type":993,"tag":1012,"props":2875,"children":2876},{},[2877],{"type":998,"value":2878},"Key Learning Points:",{"type":993,"tag":1456,"props":2880,"children":2881},{},[2882,2894,2905,2916],{"type":993,"tag":1460,"props":2883,"children":2884},{},[2885,2887,2892],{"type":998,"value":2886},"📌 ",{"type":993,"tag":1012,"props":2888,"children":2889},{},[2890],{"type":998,"value":2891},"elif statement",{"type":998,"value":2893},": Checks additional conditions after if",{"type":993,"tag":1460,"props":2895,"children":2896},{},[2897,2898,2903],{"type":998,"value":2886},{"type":993,"tag":1012,"props":2899,"children":2900},{},[2901],{"type":998,"value":2902},"Order matters",{"type":998,"value":2904},": Conditions are checked from top to bottom",{"type":993,"tag":1460,"props":2906,"children":2907},{},[2908,2909,2914],{"type":998,"value":2886},{"type":993,"tag":1012,"props":2910,"children":2911},{},[2912],{"type":998,"value":2913},"Mutually exclusive",{"type":998,"value":2915},": Only one condition can execute",{"type":993,"tag":1460,"props":2917,"children":2918},{},[2919,2920,2925],{"type":998,"value":2886},{"type":993,"tag":1012,"props":2921,"children":2922},{},[2923],{"type":998,"value":2924},"else catches all",{"type":998,"value":2926},": Handles any remaining cases",{"type":993,"tag":1429,"props":2928,"children":2930},{"id":2929},"chained-comparisons",[2931],{"type":998,"value":2932},"🔗 Chained Comparisons",{"type":993,"tag":1001,"props":2934,"children":2935},{},[2936],{"type":998,"value":2937},"Python allows you to chain comparison operators in a natural way, making range checks and multiple comparisons more readable. This feature is unique to Python and makes certain conditions much cleaner.",{"type":993,"tag":1441,"props":2939,"children":2943},{"emoji":2940,"title":2941,"type":2942},"🔗","Chained Comparison Benefits","warning",[2944,2952,3016,3024,3047,3057],{"type":993,"tag":1001,"props":2945,"children":2946},{},[2947],{"type":993,"tag":1012,"props":2948,"children":2949},{},[2950],{"type":998,"value":2951},"Natural Syntax:",{"type":993,"tag":1456,"props":2953,"children":2954},{},[2955,2971,2986,3001],{"type":993,"tag":1460,"props":2956,"children":2957},{},[2958,2963,2965],{"type":993,"tag":1012,"props":2959,"children":2960},{},[2961],{"type":998,"value":2962},"Mathematical notation",{"type":998,"value":2964},": ",{"type":993,"tag":1034,"props":2966,"children":2968},{"className":2967},[],[2969],{"type":998,"value":2970},"a \u003C= x \u003C= b",{"type":993,"tag":1460,"props":2972,"children":2973},{},[2974,2979,2980],{"type":993,"tag":1012,"props":2975,"children":2976},{},[2977],{"type":998,"value":2978},"Multiple comparisons",{"type":998,"value":2964},{"type":993,"tag":1034,"props":2981,"children":2983},{"className":2982},[],[2984],{"type":998,"value":2985},"x == y == z",{"type":993,"tag":1460,"props":2987,"children":2988},{},[2989,2994,2995],{"type":993,"tag":1012,"props":2990,"children":2991},{},[2992],{"type":998,"value":2993},"Range validation",{"type":998,"value":2964},{"type":993,"tag":1034,"props":2996,"children":2998},{"className":2997},[],[2999],{"type":998,"value":3000},"min \u003C= value \u003C= max",{"type":993,"tag":1460,"props":3002,"children":3003},{},[3004,3009,3010],{"type":993,"tag":1012,"props":3005,"children":3006},{},[3007],{"type":998,"value":3008},"Boundary checking",{"type":998,"value":2964},{"type":993,"tag":1034,"props":3011,"children":3013},{"className":3012},[],[3014],{"type":998,"value":3015},"0 \u003C score \u003C= 100",{"type":993,"tag":1001,"props":3017,"children":3018},{},[3019],{"type":993,"tag":1012,"props":3020,"children":3021},{},[3022],{"type":998,"value":3023},"Advantages:",{"type":993,"tag":1456,"props":3025,"children":3026},{},[3027,3032,3037,3042],{"type":993,"tag":1460,"props":3028,"children":3029},{},[3030],{"type":998,"value":3031},"More readable than separate conditions",{"type":993,"tag":1460,"props":3033,"children":3034},{},[3035],{"type":998,"value":3036},"Closer to mathematical expressions",{"type":993,"tag":1460,"props":3038,"children":3039},{},[3040],{"type":998,"value":3041},"Reduces logical operator complexity",{"type":993,"tag":1460,"props":3043,"children":3044},{},[3045],{"type":998,"value":3046},"Prevents redundant variable evaluation",{"type":993,"tag":1001,"props":3048,"children":3049},{},[3050,3055],{"type":993,"tag":1012,"props":3051,"children":3052},{},[3053],{"type":998,"value":3054},"Unique Feature:",{"type":998,"value":3056}," Not available in most programming languages",{"type":993,"tag":1001,"props":3058,"children":3059},{},[3060,3065],{"type":993,"tag":1012,"props":3061,"children":3062},{},[3063],{"type":998,"value":3064},"Use Cases:",{"type":998,"value":3066}," Range validation, boundary checking, equality chains",{"type":993,"tag":1001,"props":3068,"children":3069},{},[3070],{"type":998,"value":3071},"Chained comparisons are especially useful for checking if a value falls within a specific range or meets multiple criteria simultaneously.",{"type":993,"tag":1024,"props":3073,"children":3074},{},[3075],{"type":993,"tag":1028,"props":3076,"children":3078},{"className":1030,"code":3077,"language":6,"meta":8,"style":8},"# Chained comparisons\ntemperature = 72\nhumidity = 45\nscore = 85\n\n# Range checking with chained comparisons\nif 68 \u003C= temperature \u003C= 78:\n    print(\"Temperature is comfortable\")\n\nif 30 \u003C= humidity \u003C= 50:\n    print(\"Humidity is ideal\")\n\n# Multiple comparisons vs chained\nage = 25\nif 18 \u003C= age \u003C= 65:  # Chained - more readable\n    print(\"Working age (chained)\")\n\nif age >= 18 and age \u003C= 65:  # Traditional - more verbose\n    print(\"Working age (traditional)\")\n\n# Grade checking with chained comparisons\nif 90 \u003C= score \u003C= 100:\n    print(\"A grade\")\nelif 80 \u003C= score \u003C 90:\n    print(\"B grade\")\nelif 70 \u003C= score \u003C 80:\n    print(\"C grade\")\nelse:\n    print(\"Below C grade\")\n",[3079],{"type":993,"tag":1034,"props":3080,"children":3081},{"__ignoreMap":8},[3082,3090,3106,3121,3136,3143,3151,3185,3205,3212,3243,3263,3270,3278,3293,3331,3351,3358,3402,3422,3429,3437,3469,3488,3519,3538,3569,3588,3599],{"type":993,"tag":1038,"props":3083,"children":3084},{"class":1040,"line":12},[3085],{"type":993,"tag":1038,"props":3086,"children":3087},{"style":1044},[3088],{"type":998,"value":3089},"# Chained comparisons\n",{"type":993,"tag":1038,"props":3091,"children":3092},{"class":1040,"line":27},[3093,3097,3101],{"type":993,"tag":1038,"props":3094,"children":3095},{"style":1053},[3096],{"type":998,"value":2299},{"type":993,"tag":1038,"props":3098,"children":3099},{"style":1059},[3100],{"type":998,"value":1062},{"type":993,"tag":1038,"props":3102,"children":3103},{"style":1065},[3104],{"type":998,"value":3105}," 72\n",{"type":993,"tag":1038,"props":3107,"children":3108},{"class":1040,"line":36},[3109,3113,3117],{"type":993,"tag":1038,"props":3110,"children":3111},{"style":1053},[3112],{"type":998,"value":2316},{"type":993,"tag":1038,"props":3114,"children":3115},{"style":1059},[3116],{"type":998,"value":1062},{"type":993,"tag":1038,"props":3118,"children":3119},{"style":1065},[3120],{"type":998,"value":2325},{"type":993,"tag":1038,"props":3122,"children":3123},{"class":1040,"line":45},[3124,3128,3132],{"type":993,"tag":1038,"props":3125,"children":3126},{"style":1053},[3127],{"type":998,"value":2489},{"type":993,"tag":1038,"props":3129,"children":3130},{"style":1059},[3131],{"type":998,"value":1062},{"type":993,"tag":1038,"props":3133,"children":3134},{"style":1065},[3135],{"type":998,"value":1068},{"type":993,"tag":1038,"props":3137,"children":3138},{"class":1040,"line":54},[3139],{"type":993,"tag":1038,"props":3140,"children":3141},{"emptyLinePlaceholder":13},[3142],{"type":998,"value":1076},{"type":993,"tag":1038,"props":3144,"children":3145},{"class":1040,"line":63},[3146],{"type":993,"tag":1038,"props":3147,"children":3148},{"style":1044},[3149],{"type":998,"value":3150},"# Range checking with chained comparisons\n",{"type":993,"tag":1038,"props":3152,"children":3153},{"class":1040,"line":72},[3154,3158,3163,3168,3172,3176,3181],{"type":993,"tag":1038,"props":3155,"children":3156},{"style":1059},[3157],{"type":998,"value":1084},{"type":993,"tag":1038,"props":3159,"children":3160},{"style":1065},[3161],{"type":998,"value":3162}," 68",{"type":993,"tag":1038,"props":3164,"children":3165},{"style":1059},[3166],{"type":998,"value":3167}," \u003C=",{"type":993,"tag":1038,"props":3169,"children":3170},{"style":1053},[3171],{"type":998,"value":2354},{"type":993,"tag":1038,"props":3173,"children":3174},{"style":1059},[3175],{"type":998,"value":2359},{"type":993,"tag":1038,"props":3177,"children":3178},{"style":1065},[3179],{"type":998,"value":3180}," 78",{"type":993,"tag":1038,"props":3182,"children":3183},{"style":1053},[3184],{"type":998,"value":1104},{"type":993,"tag":1038,"props":3186,"children":3187},{"class":1040,"line":81},[3188,3192,3196,3201],{"type":993,"tag":1038,"props":3189,"children":3190},{"style":1065},[3191],{"type":998,"value":1130},{"type":993,"tag":1038,"props":3193,"children":3194},{"style":1053},[3195],{"type":998,"value":1135},{"type":993,"tag":1038,"props":3197,"children":3198},{"style":1119},[3199],{"type":998,"value":3200},"\"Temperature is comfortable\"",{"type":993,"tag":1038,"props":3202,"children":3203},{"style":1053},[3204],{"type":998,"value":1145},{"type":993,"tag":1038,"props":3206,"children":3207},{"class":1040,"line":91},[3208],{"type":993,"tag":1038,"props":3209,"children":3210},{"emptyLinePlaceholder":13},[3211],{"type":998,"value":1076},{"type":993,"tag":1038,"props":3213,"children":3214},{"class":1040,"line":100},[3215,3219,3223,3227,3231,3235,3239],{"type":993,"tag":1038,"props":3216,"children":3217},{"style":1059},[3218],{"type":998,"value":1084},{"type":993,"tag":1038,"props":3220,"children":3221},{"style":1065},[3222],{"type":998,"value":2386},{"type":993,"tag":1038,"props":3224,"children":3225},{"style":1059},[3226],{"type":998,"value":3167},{"type":993,"tag":1038,"props":3228,"children":3229},{"style":1053},[3230],{"type":998,"value":2395},{"type":993,"tag":1038,"props":3232,"children":3233},{"style":1059},[3234],{"type":998,"value":2359},{"type":993,"tag":1038,"props":3236,"children":3237},{"style":1065},[3238],{"type":998,"value":2404},{"type":993,"tag":1038,"props":3240,"children":3241},{"style":1053},[3242],{"type":998,"value":1104},{"type":993,"tag":1038,"props":3244,"children":3245},{"class":1040,"line":109},[3246,3250,3254,3259],{"type":993,"tag":1038,"props":3247,"children":3248},{"style":1065},[3249],{"type":998,"value":1130},{"type":993,"tag":1038,"props":3251,"children":3252},{"style":1053},[3253],{"type":998,"value":1135},{"type":993,"tag":1038,"props":3255,"children":3256},{"style":1119},[3257],{"type":998,"value":3258},"\"Humidity is ideal\"",{"type":993,"tag":1038,"props":3260,"children":3261},{"style":1053},[3262],{"type":998,"value":1145},{"type":993,"tag":1038,"props":3264,"children":3265},{"class":1040,"line":118},[3266],{"type":993,"tag":1038,"props":3267,"children":3268},{"emptyLinePlaceholder":13},[3269],{"type":998,"value":1076},{"type":993,"tag":1038,"props":3271,"children":3272},{"class":1040,"line":127},[3273],{"type":993,"tag":1038,"props":3274,"children":3275},{"style":1044},[3276],{"type":998,"value":3277},"# Multiple comparisons vs chained\n",{"type":993,"tag":1038,"props":3279,"children":3280},{"class":1040,"line":136},[3281,3285,3289],{"type":993,"tag":1038,"props":3282,"children":3283},{"style":1053},[3284],{"type":998,"value":2020},{"type":993,"tag":1038,"props":3286,"children":3287},{"style":1059},[3288],{"type":998,"value":1062},{"type":993,"tag":1038,"props":3290,"children":3291},{"style":1065},[3292],{"type":998,"value":2029},{"type":993,"tag":1038,"props":3294,"children":3295},{"class":1040,"line":146},[3296,3300,3304,3308,3312,3316,3321,3326],{"type":993,"tag":1038,"props":3297,"children":3298},{"style":1059},[3299],{"type":998,"value":1084},{"type":993,"tag":1038,"props":3301,"children":3302},{"style":1065},[3303],{"type":998,"value":1727},{"type":993,"tag":1038,"props":3305,"children":3306},{"style":1059},[3307],{"type":998,"value":3167},{"type":993,"tag":1038,"props":3309,"children":3310},{"style":1053},[3311],{"type":998,"value":2098},{"type":993,"tag":1038,"props":3313,"children":3314},{"style":1059},[3315],{"type":998,"value":2359},{"type":993,"tag":1038,"props":3317,"children":3318},{"style":1065},[3319],{"type":998,"value":3320}," 65",{"type":993,"tag":1038,"props":3322,"children":3323},{"style":1053},[3324],{"type":998,"value":3325},":  ",{"type":993,"tag":1038,"props":3327,"children":3328},{"style":1044},[3329],{"type":998,"value":3330},"# Chained - more readable\n",{"type":993,"tag":1038,"props":3332,"children":3333},{"class":1040,"line":155},[3334,3338,3342,3347],{"type":993,"tag":1038,"props":3335,"children":3336},{"style":1065},[3337],{"type":998,"value":1130},{"type":993,"tag":1038,"props":3339,"children":3340},{"style":1053},[3341],{"type":998,"value":1135},{"type":993,"tag":1038,"props":3343,"children":3344},{"style":1119},[3345],{"type":998,"value":3346},"\"Working age (chained)\"",{"type":993,"tag":1038,"props":3348,"children":3349},{"style":1053},[3350],{"type":998,"value":1145},{"type":993,"tag":1038,"props":3352,"children":3353},{"class":1040,"line":164},[3354],{"type":993,"tag":1038,"props":3355,"children":3356},{"emptyLinePlaceholder":13},[3357],{"type":998,"value":1076},{"type":993,"tag":1038,"props":3359,"children":3360},{"class":1040,"line":173},[3361,3365,3369,3373,3377,3381,3385,3389,3393,3397],{"type":993,"tag":1038,"props":3362,"children":3363},{"style":1059},[3364],{"type":998,"value":1084},{"type":993,"tag":1038,"props":3366,"children":3367},{"style":1053},[3368],{"type":998,"value":2098},{"type":993,"tag":1038,"props":3370,"children":3371},{"style":1059},[3372],{"type":998,"value":1094},{"type":993,"tag":1038,"props":3374,"children":3375},{"style":1065},[3376],{"type":998,"value":1727},{"type":993,"tag":1038,"props":3378,"children":3379},{"style":1059},[3380],{"type":998,"value":2111},{"type":993,"tag":1038,"props":3382,"children":3383},{"style":1053},[3384],{"type":998,"value":2098},{"type":993,"tag":1038,"props":3386,"children":3387},{"style":1059},[3388],{"type":998,"value":2359},{"type":993,"tag":1038,"props":3390,"children":3391},{"style":1065},[3392],{"type":998,"value":3320},{"type":993,"tag":1038,"props":3394,"children":3395},{"style":1053},[3396],{"type":998,"value":3325},{"type":993,"tag":1038,"props":3398,"children":3399},{"style":1044},[3400],{"type":998,"value":3401},"# Traditional - more verbose\n",{"type":993,"tag":1038,"props":3403,"children":3404},{"class":1040,"line":182},[3405,3409,3413,3418],{"type":993,"tag":1038,"props":3406,"children":3407},{"style":1065},[3408],{"type":998,"value":1130},{"type":993,"tag":1038,"props":3410,"children":3411},{"style":1053},[3412],{"type":998,"value":1135},{"type":993,"tag":1038,"props":3414,"children":3415},{"style":1119},[3416],{"type":998,"value":3417},"\"Working age (traditional)\"",{"type":993,"tag":1038,"props":3419,"children":3420},{"style":1053},[3421],{"type":998,"value":1145},{"type":993,"tag":1038,"props":3423,"children":3424},{"class":1040,"line":191},[3425],{"type":993,"tag":1038,"props":3426,"children":3427},{"emptyLinePlaceholder":13},[3428],{"type":998,"value":1076},{"type":993,"tag":1038,"props":3430,"children":3431},{"class":1040,"line":201},[3432],{"type":993,"tag":1038,"props":3433,"children":3434},{"style":1044},[3435],{"type":998,"value":3436},"# Grade checking with chained comparisons\n",{"type":993,"tag":1038,"props":3438,"children":3439},{"class":1040,"line":210},[3440,3444,3448,3452,3456,3460,3465],{"type":993,"tag":1038,"props":3441,"children":3442},{"style":1059},[3443],{"type":998,"value":1084},{"type":993,"tag":1038,"props":3445,"children":3446},{"style":1065},[3447],{"type":998,"value":1099},{"type":993,"tag":1038,"props":3449,"children":3450},{"style":1059},[3451],{"type":998,"value":3167},{"type":993,"tag":1038,"props":3453,"children":3454},{"style":1053},[3455],{"type":998,"value":2573},{"type":993,"tag":1038,"props":3457,"children":3458},{"style":1059},[3459],{"type":998,"value":2359},{"type":993,"tag":1038,"props":3461,"children":3462},{"style":1065},[3463],{"type":998,"value":3464}," 100",{"type":993,"tag":1038,"props":3466,"children":3467},{"style":1053},[3468],{"type":998,"value":1104},{"type":993,"tag":1038,"props":3470,"children":3471},{"class":1040,"line":219},[3472,3476,3480,3484],{"type":993,"tag":1038,"props":3473,"children":3474},{"style":1065},[3475],{"type":998,"value":1130},{"type":993,"tag":1038,"props":3477,"children":3478},{"style":1053},[3479],{"type":998,"value":1135},{"type":993,"tag":1038,"props":3481,"children":3482},{"style":1119},[3483],{"type":998,"value":2601},{"type":993,"tag":1038,"props":3485,"children":3486},{"style":1053},[3487],{"type":998,"value":1145},{"type":993,"tag":1038,"props":3489,"children":3490},{"class":1040,"line":228},[3491,3495,3499,3503,3507,3511,3515],{"type":993,"tag":1038,"props":3492,"children":3493},{"style":1059},[3494],{"type":998,"value":1153},{"type":993,"tag":1038,"props":3496,"children":3497},{"style":1065},[3498],{"type":998,"value":1166},{"type":993,"tag":1038,"props":3500,"children":3501},{"style":1059},[3502],{"type":998,"value":3167},{"type":993,"tag":1038,"props":3504,"children":3505},{"style":1053},[3506],{"type":998,"value":2573},{"type":993,"tag":1038,"props":3508,"children":3509},{"style":1059},[3510],{"type":998,"value":1641},{"type":993,"tag":1038,"props":3512,"children":3513},{"style":1065},[3514],{"type":998,"value":1099},{"type":993,"tag":1038,"props":3516,"children":3517},{"style":1053},[3518],{"type":998,"value":1104},{"type":993,"tag":1038,"props":3520,"children":3521},{"class":1040,"line":238},[3522,3526,3530,3534],{"type":993,"tag":1038,"props":3523,"children":3524},{"style":1065},[3525],{"type":998,"value":1130},{"type":993,"tag":1038,"props":3527,"children":3528},{"style":1053},[3529],{"type":998,"value":1135},{"type":993,"tag":1038,"props":3531,"children":3532},{"style":1119},[3533],{"type":998,"value":2781},{"type":993,"tag":1038,"props":3535,"children":3536},{"style":1053},[3537],{"type":998,"value":1145},{"type":993,"tag":1038,"props":3539,"children":3540},{"class":1040,"line":247},[3541,3545,3549,3553,3557,3561,3565],{"type":993,"tag":1038,"props":3542,"children":3543},{"style":1059},[3544],{"type":998,"value":1153},{"type":993,"tag":1038,"props":3546,"children":3547},{"style":1065},[3548],{"type":998,"value":1226},{"type":993,"tag":1038,"props":3550,"children":3551},{"style":1059},[3552],{"type":998,"value":3167},{"type":993,"tag":1038,"props":3554,"children":3555},{"style":1053},[3556],{"type":998,"value":2573},{"type":993,"tag":1038,"props":3558,"children":3559},{"style":1059},[3560],{"type":998,"value":1641},{"type":993,"tag":1038,"props":3562,"children":3563},{"style":1065},[3564],{"type":998,"value":1166},{"type":993,"tag":1038,"props":3566,"children":3567},{"style":1053},[3568],{"type":998,"value":1104},{"type":993,"tag":1038,"props":3570,"children":3571},{"class":1040,"line":256},[3572,3576,3580,3584],{"type":993,"tag":1038,"props":3573,"children":3574},{"style":1065},[3575],{"type":998,"value":1130},{"type":993,"tag":1038,"props":3577,"children":3578},{"style":1053},[3579],{"type":998,"value":1135},{"type":993,"tag":1038,"props":3581,"children":3582},{"style":1119},[3583],{"type":998,"value":2829},{"type":993,"tag":1038,"props":3585,"children":3586},{"style":1053},[3587],{"type":998,"value":1145},{"type":993,"tag":1038,"props":3589,"children":3590},{"class":1040,"line":265},[3591,3595],{"type":993,"tag":1038,"props":3592,"children":3593},{"style":1059},[3594],{"type":998,"value":1334},{"type":993,"tag":1038,"props":3596,"children":3597},{"style":1053},[3598],{"type":998,"value":1104},{"type":993,"tag":1038,"props":3600,"children":3601},{"class":1040,"line":274},[3602,3606,3610,3615],{"type":993,"tag":1038,"props":3603,"children":3604},{"style":1065},[3605],{"type":998,"value":1130},{"type":993,"tag":1038,"props":3607,"children":3608},{"style":1053},[3609],{"type":998,"value":1135},{"type":993,"tag":1038,"props":3611,"children":3612},{"style":1119},[3613],{"type":998,"value":3614},"\"Below C grade\"",{"type":993,"tag":1038,"props":3616,"children":3617},{"style":1053},[3618],{"type":998,"value":1145},{"type":993,"tag":1429,"props":3620,"children":3622},{"id":3621},"conditional-expressions-ternary-operator",[3623],{"type":998,"value":3624},"⚡ Conditional Expressions (Ternary Operator)",{"type":993,"tag":1001,"props":3626,"children":3627},{},[3628],{"type":998,"value":3629},"Python provides a concise way to write simple if-else statements in a single line using conditional expressions. This is useful for simple assignments based on conditions.",{"type":993,"tag":1441,"props":3631,"children":3634},{"emoji":3632,"title":3633,"type":1445},"⚡","Ternary Operator Usage",[3635,3649,3657,3680,3688,3711,3721],{"type":993,"tag":1001,"props":3636,"children":3637},{},[3638,3643],{"type":993,"tag":1012,"props":3639,"children":3640},{},[3641],{"type":998,"value":3642},"Syntax Pattern:",{"type":993,"tag":1034,"props":3644,"children":3646},{"className":3645},[],[3647],{"type":998,"value":3648},"value_if_true if condition else value_if_false",{"type":993,"tag":1001,"props":3650,"children":3651},{},[3652],{"type":993,"tag":1012,"props":3653,"children":3654},{},[3655],{"type":998,"value":3656},"Appropriate Use Cases:",{"type":993,"tag":1456,"props":3658,"children":3659},{},[3660,3665,3670,3675],{"type":993,"tag":1460,"props":3661,"children":3662},{},[3663],{"type":998,"value":3664},"Simple value assignments",{"type":993,"tag":1460,"props":3666,"children":3667},{},[3668],{"type":998,"value":3669},"Function argument selection",{"type":993,"tag":1460,"props":3671,"children":3672},{},[3673],{"type":998,"value":3674},"Default value provision",{"type":993,"tag":1460,"props":3676,"children":3677},{},[3678],{"type":998,"value":3679},"Short conditional expressions",{"type":993,"tag":1001,"props":3681,"children":3682},{},[3683],{"type":993,"tag":1012,"props":3684,"children":3685},{},[3686],{"type":998,"value":3687},"Guidelines:",{"type":993,"tag":1456,"props":3689,"children":3690},{},[3691,3696,3701,3706],{"type":993,"tag":1460,"props":3692,"children":3693},{},[3694],{"type":998,"value":3695},"Keep conditions simple and readable",{"type":993,"tag":1460,"props":3697,"children":3698},{},[3699],{"type":998,"value":3700},"Avoid nested ternary operators",{"type":993,"tag":1460,"props":3702,"children":3703},{},[3704],{"type":998,"value":3705},"Use for simple true/false scenarios",{"type":993,"tag":1460,"props":3707,"children":3708},{},[3709],{"type":998,"value":3710},"Consider regular if-else for complex logic",{"type":993,"tag":1001,"props":3712,"children":3713},{},[3714,3719],{"type":993,"tag":1012,"props":3715,"children":3716},{},[3717],{"type":998,"value":3718},"Readability:",{"type":998,"value":3720}," Best for simple, obvious conditions",{"type":993,"tag":1001,"props":3722,"children":3723},{},[3724,3729],{"type":993,"tag":1012,"props":3725,"children":3726},{},[3727],{"type":998,"value":3728},"Alternative:",{"type":998,"value":3730}," Use regular if-else for complex cases",{"type":993,"tag":1024,"props":3732,"children":3733},{},[3734],{"type":993,"tag":1028,"props":3735,"children":3737},{"className":1030,"code":3736,"language":6,"meta":8,"style":8},"# Conditional expressions (ternary operator)\nage = 20\nstatus = \"adult\" if age >= 18 else \"minor\"\nprint(f\"Status: {status}\")\n\n# Comparing with regular if-else\nscore = 85\nif score >= 70:\n    result = \"pass\"\nelse:\n    result = \"fail\"\n\n# Same logic with ternary operator\nresult_ternary = \"pass\" if score >= 70 else \"fail\"\nprint(f\"Result: {result_ternary}\")\n\n# Multiple ternary operators (avoid nesting)\nweather = \"sunny\"\nactivity = \"beach\" if weather == \"sunny\" else \"indoor games\"\nprint(f\"Today's activity: {activity}\")\n\n# Using ternary in function calls\nnumbers = [1, 2, 3, 4, 5]\nprint(\"Even\" if len(numbers) % 2 == 0 else \"Odd\", \"count of numbers\")\n",[3738],{"type":993,"tag":1034,"props":3739,"children":3740},{"__ignoreMap":8},[3741,3749,3765,3809,3850,3857,3865,3880,3903,3920,3931,3947,3954,3962,4003,4044,4051,4059,4076,4121,4162,4169,4177,4241],{"type":993,"tag":1038,"props":3742,"children":3743},{"class":1040,"line":12},[3744],{"type":993,"tag":1038,"props":3745,"children":3746},{"style":1044},[3747],{"type":998,"value":3748},"# Conditional expressions (ternary operator)\n",{"type":993,"tag":1038,"props":3750,"children":3751},{"class":1040,"line":27},[3752,3756,3760],{"type":993,"tag":1038,"props":3753,"children":3754},{"style":1053},[3755],{"type":998,"value":2020},{"type":993,"tag":1038,"props":3757,"children":3758},{"style":1059},[3759],{"type":998,"value":1062},{"type":993,"tag":1038,"props":3761,"children":3762},{"style":1065},[3763],{"type":998,"value":3764}," 20\n",{"type":993,"tag":1038,"props":3766,"children":3767},{"class":1040,"line":36},[3768,3773,3777,3782,3787,3791,3795,3799,3804],{"type":993,"tag":1038,"props":3769,"children":3770},{"style":1053},[3771],{"type":998,"value":3772},"status ",{"type":993,"tag":1038,"props":3774,"children":3775},{"style":1059},[3776],{"type":998,"value":1062},{"type":993,"tag":1038,"props":3778,"children":3779},{"style":1119},[3780],{"type":998,"value":3781}," \"adult\"",{"type":993,"tag":1038,"props":3783,"children":3784},{"style":1059},[3785],{"type":998,"value":3786}," if",{"type":993,"tag":1038,"props":3788,"children":3789},{"style":1053},[3790],{"type":998,"value":2098},{"type":993,"tag":1038,"props":3792,"children":3793},{"style":1059},[3794],{"type":998,"value":1094},{"type":993,"tag":1038,"props":3796,"children":3797},{"style":1065},[3798],{"type":998,"value":1727},{"type":993,"tag":1038,"props":3800,"children":3801},{"style":1059},[3802],{"type":998,"value":3803}," else",{"type":993,"tag":1038,"props":3805,"children":3806},{"style":1119},[3807],{"type":998,"value":3808}," \"minor\"\n",{"type":993,"tag":1038,"props":3810,"children":3811},{"class":1040,"line":45},[3812,3816,3820,3824,3829,3833,3838,3842,3846],{"type":993,"tag":1038,"props":3813,"children":3814},{"style":1065},[3815],{"type":998,"value":1389},{"type":993,"tag":1038,"props":3817,"children":3818},{"style":1053},[3819],{"type":998,"value":1135},{"type":993,"tag":1038,"props":3821,"children":3822},{"style":1059},[3823],{"type":998,"value":1398},{"type":993,"tag":1038,"props":3825,"children":3826},{"style":1119},[3827],{"type":998,"value":3828},"\"Status: ",{"type":993,"tag":1038,"props":3830,"children":3831},{"style":1065},[3832],{"type":998,"value":1408},{"type":993,"tag":1038,"props":3834,"children":3835},{"style":1053},[3836],{"type":998,"value":3837},"status",{"type":993,"tag":1038,"props":3839,"children":3840},{"style":1065},[3841],{"type":998,"value":1418},{"type":993,"tag":1038,"props":3843,"children":3844},{"style":1119},[3845],{"type":998,"value":1423},{"type":993,"tag":1038,"props":3847,"children":3848},{"style":1053},[3849],{"type":998,"value":1145},{"type":993,"tag":1038,"props":3851,"children":3852},{"class":1040,"line":54},[3853],{"type":993,"tag":1038,"props":3854,"children":3855},{"emptyLinePlaceholder":13},[3856],{"type":998,"value":1076},{"type":993,"tag":1038,"props":3858,"children":3859},{"class":1040,"line":63},[3860],{"type":993,"tag":1038,"props":3861,"children":3862},{"style":1044},[3863],{"type":998,"value":3864},"# Comparing with regular if-else\n",{"type":993,"tag":1038,"props":3866,"children":3867},{"class":1040,"line":72},[3868,3872,3876],{"type":993,"tag":1038,"props":3869,"children":3870},{"style":1053},[3871],{"type":998,"value":2489},{"type":993,"tag":1038,"props":3873,"children":3874},{"style":1059},[3875],{"type":998,"value":1062},{"type":993,"tag":1038,"props":3877,"children":3878},{"style":1065},[3879],{"type":998,"value":1068},{"type":993,"tag":1038,"props":3881,"children":3882},{"class":1040,"line":81},[3883,3887,3891,3895,3899],{"type":993,"tag":1038,"props":3884,"children":3885},{"style":1059},[3886],{"type":998,"value":1084},{"type":993,"tag":1038,"props":3888,"children":3889},{"style":1053},[3890],{"type":998,"value":2573},{"type":993,"tag":1038,"props":3892,"children":3893},{"style":1059},[3894],{"type":998,"value":1094},{"type":993,"tag":1038,"props":3896,"children":3897},{"style":1065},[3898],{"type":998,"value":1226},{"type":993,"tag":1038,"props":3900,"children":3901},{"style":1053},[3902],{"type":998,"value":1104},{"type":993,"tag":1038,"props":3904,"children":3905},{"class":1040,"line":91},[3906,3911,3915],{"type":993,"tag":1038,"props":3907,"children":3908},{"style":1053},[3909],{"type":998,"value":3910},"    result ",{"type":993,"tag":1038,"props":3912,"children":3913},{"style":1059},[3914],{"type":998,"value":1062},{"type":993,"tag":1038,"props":3916,"children":3917},{"style":1119},[3918],{"type":998,"value":3919}," \"pass\"\n",{"type":993,"tag":1038,"props":3921,"children":3922},{"class":1040,"line":100},[3923,3927],{"type":993,"tag":1038,"props":3924,"children":3925},{"style":1059},[3926],{"type":998,"value":1334},{"type":993,"tag":1038,"props":3928,"children":3929},{"style":1053},[3930],{"type":998,"value":1104},{"type":993,"tag":1038,"props":3932,"children":3933},{"class":1040,"line":109},[3934,3938,3942],{"type":993,"tag":1038,"props":3935,"children":3936},{"style":1053},[3937],{"type":998,"value":3910},{"type":993,"tag":1038,"props":3939,"children":3940},{"style":1059},[3941],{"type":998,"value":1062},{"type":993,"tag":1038,"props":3943,"children":3944},{"style":1119},[3945],{"type":998,"value":3946}," \"fail\"\n",{"type":993,"tag":1038,"props":3948,"children":3949},{"class":1040,"line":118},[3950],{"type":993,"tag":1038,"props":3951,"children":3952},{"emptyLinePlaceholder":13},[3953],{"type":998,"value":1076},{"type":993,"tag":1038,"props":3955,"children":3956},{"class":1040,"line":127},[3957],{"type":993,"tag":1038,"props":3958,"children":3959},{"style":1044},[3960],{"type":998,"value":3961},"# Same logic with ternary operator\n",{"type":993,"tag":1038,"props":3963,"children":3964},{"class":1040,"line":136},[3965,3970,3974,3979,3983,3987,3991,3995,3999],{"type":993,"tag":1038,"props":3966,"children":3967},{"style":1053},[3968],{"type":998,"value":3969},"result_ternary ",{"type":993,"tag":1038,"props":3971,"children":3972},{"style":1059},[3973],{"type":998,"value":1062},{"type":993,"tag":1038,"props":3975,"children":3976},{"style":1119},[3977],{"type":998,"value":3978}," \"pass\"",{"type":993,"tag":1038,"props":3980,"children":3981},{"style":1059},[3982],{"type":998,"value":3786},{"type":993,"tag":1038,"props":3984,"children":3985},{"style":1053},[3986],{"type":998,"value":2573},{"type":993,"tag":1038,"props":3988,"children":3989},{"style":1059},[3990],{"type":998,"value":1094},{"type":993,"tag":1038,"props":3992,"children":3993},{"style":1065},[3994],{"type":998,"value":1226},{"type":993,"tag":1038,"props":3996,"children":3997},{"style":1059},[3998],{"type":998,"value":3803},{"type":993,"tag":1038,"props":4000,"children":4001},{"style":1119},[4002],{"type":998,"value":3946},{"type":993,"tag":1038,"props":4004,"children":4005},{"class":1040,"line":146},[4006,4010,4014,4018,4023,4027,4032,4036,4040],{"type":993,"tag":1038,"props":4007,"children":4008},{"style":1065},[4009],{"type":998,"value":1389},{"type":993,"tag":1038,"props":4011,"children":4012},{"style":1053},[4013],{"type":998,"value":1135},{"type":993,"tag":1038,"props":4015,"children":4016},{"style":1059},[4017],{"type":998,"value":1398},{"type":993,"tag":1038,"props":4019,"children":4020},{"style":1119},[4021],{"type":998,"value":4022},"\"Result: ",{"type":993,"tag":1038,"props":4024,"children":4025},{"style":1065},[4026],{"type":998,"value":1408},{"type":993,"tag":1038,"props":4028,"children":4029},{"style":1053},[4030],{"type":998,"value":4031},"result_ternary",{"type":993,"tag":1038,"props":4033,"children":4034},{"style":1065},[4035],{"type":998,"value":1418},{"type":993,"tag":1038,"props":4037,"children":4038},{"style":1119},[4039],{"type":998,"value":1423},{"type":993,"tag":1038,"props":4041,"children":4042},{"style":1053},[4043],{"type":998,"value":1145},{"type":993,"tag":1038,"props":4045,"children":4046},{"class":1040,"line":155},[4047],{"type":993,"tag":1038,"props":4048,"children":4049},{"emptyLinePlaceholder":13},[4050],{"type":998,"value":1076},{"type":993,"tag":1038,"props":4052,"children":4053},{"class":1040,"line":164},[4054],{"type":993,"tag":1038,"props":4055,"children":4056},{"style":1044},[4057],{"type":998,"value":4058},"# Multiple ternary operators (avoid nesting)\n",{"type":993,"tag":1038,"props":4060,"children":4061},{"class":1040,"line":173},[4062,4067,4071],{"type":993,"tag":1038,"props":4063,"children":4064},{"style":1053},[4065],{"type":998,"value":4066},"weather ",{"type":993,"tag":1038,"props":4068,"children":4069},{"style":1059},[4070],{"type":998,"value":1062},{"type":993,"tag":1038,"props":4072,"children":4073},{"style":1119},[4074],{"type":998,"value":4075}," \"sunny\"\n",{"type":993,"tag":1038,"props":4077,"children":4078},{"class":1040,"line":182},[4079,4084,4088,4093,4097,4102,4107,4112,4116],{"type":993,"tag":1038,"props":4080,"children":4081},{"style":1053},[4082],{"type":998,"value":4083},"activity ",{"type":993,"tag":1038,"props":4085,"children":4086},{"style":1059},[4087],{"type":998,"value":1062},{"type":993,"tag":1038,"props":4089,"children":4090},{"style":1119},[4091],{"type":998,"value":4092}," \"beach\"",{"type":993,"tag":1038,"props":4094,"children":4095},{"style":1059},[4096],{"type":998,"value":3786},{"type":993,"tag":1038,"props":4098,"children":4099},{"style":1053},[4100],{"type":998,"value":4101}," weather ",{"type":993,"tag":1038,"props":4103,"children":4104},{"style":1059},[4105],{"type":998,"value":4106},"==",{"type":993,"tag":1038,"props":4108,"children":4109},{"style":1119},[4110],{"type":998,"value":4111}," \"sunny\"",{"type":993,"tag":1038,"props":4113,"children":4114},{"style":1059},[4115],{"type":998,"value":3803},{"type":993,"tag":1038,"props":4117,"children":4118},{"style":1119},[4119],{"type":998,"value":4120}," \"indoor games\"\n",{"type":993,"tag":1038,"props":4122,"children":4123},{"class":1040,"line":191},[4124,4128,4132,4136,4141,4145,4150,4154,4158],{"type":993,"tag":1038,"props":4125,"children":4126},{"style":1065},[4127],{"type":998,"value":1389},{"type":993,"tag":1038,"props":4129,"children":4130},{"style":1053},[4131],{"type":998,"value":1135},{"type":993,"tag":1038,"props":4133,"children":4134},{"style":1059},[4135],{"type":998,"value":1398},{"type":993,"tag":1038,"props":4137,"children":4138},{"style":1119},[4139],{"type":998,"value":4140},"\"Today's activity: ",{"type":993,"tag":1038,"props":4142,"children":4143},{"style":1065},[4144],{"type":998,"value":1408},{"type":993,"tag":1038,"props":4146,"children":4147},{"style":1053},[4148],{"type":998,"value":4149},"activity",{"type":993,"tag":1038,"props":4151,"children":4152},{"style":1065},[4153],{"type":998,"value":1418},{"type":993,"tag":1038,"props":4155,"children":4156},{"style":1119},[4157],{"type":998,"value":1423},{"type":993,"tag":1038,"props":4159,"children":4160},{"style":1053},[4161],{"type":998,"value":1145},{"type":993,"tag":1038,"props":4163,"children":4164},{"class":1040,"line":201},[4165],{"type":993,"tag":1038,"props":4166,"children":4167},{"emptyLinePlaceholder":13},[4168],{"type":998,"value":1076},{"type":993,"tag":1038,"props":4170,"children":4171},{"class":1040,"line":210},[4172],{"type":993,"tag":1038,"props":4173,"children":4174},{"style":1044},[4175],{"type":998,"value":4176},"# Using ternary in function calls\n",{"type":993,"tag":1038,"props":4178,"children":4179},{"class":1040,"line":219},[4180,4185,4189,4194,4199,4204,4209,4213,4218,4222,4227,4231,4236],{"type":993,"tag":1038,"props":4181,"children":4182},{"style":1053},[4183],{"type":998,"value":4184},"numbers ",{"type":993,"tag":1038,"props":4186,"children":4187},{"style":1059},[4188],{"type":998,"value":1062},{"type":993,"tag":1038,"props":4190,"children":4191},{"style":1053},[4192],{"type":998,"value":4193}," [",{"type":993,"tag":1038,"props":4195,"children":4196},{"style":1065},[4197],{"type":998,"value":4198},"1",{"type":993,"tag":1038,"props":4200,"children":4201},{"style":1053},[4202],{"type":998,"value":4203},", ",{"type":993,"tag":1038,"props":4205,"children":4206},{"style":1065},[4207],{"type":998,"value":4208},"2",{"type":993,"tag":1038,"props":4210,"children":4211},{"style":1053},[4212],{"type":998,"value":4203},{"type":993,"tag":1038,"props":4214,"children":4215},{"style":1065},[4216],{"type":998,"value":4217},"3",{"type":993,"tag":1038,"props":4219,"children":4220},{"style":1053},[4221],{"type":998,"value":4203},{"type":993,"tag":1038,"props":4223,"children":4224},{"style":1065},[4225],{"type":998,"value":4226},"4",{"type":993,"tag":1038,"props":4228,"children":4229},{"style":1053},[4230],{"type":998,"value":4203},{"type":993,"tag":1038,"props":4232,"children":4233},{"style":1065},[4234],{"type":998,"value":4235},"5",{"type":993,"tag":1038,"props":4237,"children":4238},{"style":1053},[4239],{"type":998,"value":4240},"]\n",{"type":993,"tag":1038,"props":4242,"children":4243},{"class":1040,"line":228},[4244,4248,4252,4257,4261,4266,4271,4276,4281,4286,4291,4295,4300,4304,4309],{"type":993,"tag":1038,"props":4245,"children":4246},{"style":1065},[4247],{"type":998,"value":1389},{"type":993,"tag":1038,"props":4249,"children":4250},{"style":1053},[4251],{"type":998,"value":1135},{"type":993,"tag":1038,"props":4253,"children":4254},{"style":1119},[4255],{"type":998,"value":4256},"\"Even\"",{"type":993,"tag":1038,"props":4258,"children":4259},{"style":1059},[4260],{"type":998,"value":3786},{"type":993,"tag":1038,"props":4262,"children":4263},{"style":1065},[4264],{"type":998,"value":4265}," len",{"type":993,"tag":1038,"props":4267,"children":4268},{"style":1053},[4269],{"type":998,"value":4270},"(numbers) ",{"type":993,"tag":1038,"props":4272,"children":4273},{"style":1059},[4274],{"type":998,"value":4275},"%",{"type":993,"tag":1038,"props":4277,"children":4278},{"style":1065},[4279],{"type":998,"value":4280}," 2",{"type":993,"tag":1038,"props":4282,"children":4283},{"style":1059},[4284],{"type":998,"value":4285}," ==",{"type":993,"tag":1038,"props":4287,"children":4288},{"style":1065},[4289],{"type":998,"value":4290}," 0",{"type":993,"tag":1038,"props":4292,"children":4293},{"style":1059},[4294],{"type":998,"value":3803},{"type":993,"tag":1038,"props":4296,"children":4297},{"style":1119},[4298],{"type":998,"value":4299}," \"Odd\"",{"type":993,"tag":1038,"props":4301,"children":4302},{"style":1053},[4303],{"type":998,"value":4203},{"type":993,"tag":1038,"props":4305,"children":4306},{"style":1119},[4307],{"type":998,"value":4308},"\"count of numbers\"",{"type":993,"tag":1038,"props":4310,"children":4311},{"style":1053},[4312],{"type":998,"value":1145},{"type":993,"tag":1429,"props":4314,"children":4316},{"id":4315},"multiple-conditions-vs-multiple-if-statements",[4317],{"type":998,"value":4318},"🔀 Multiple Conditions vs Multiple If Statements",{"type":993,"tag":1001,"props":4320,"children":4321},{},[4322],{"type":998,"value":4323},"Understanding the difference between elif statements and multiple independent if statements is crucial for writing correct logic.",{"type":993,"tag":1441,"props":4325,"children":4328},{"emoji":4326,"title":4327,"type":2942},"🔀","Elif vs Multiple If Statements",[4329,4337,4382,4390,4432,4442],{"type":993,"tag":1001,"props":4330,"children":4331},{},[4332],{"type":993,"tag":1012,"props":4333,"children":4334},{},[4335],{"type":998,"value":4336},"Elif Chain (Mutually Exclusive):",{"type":993,"tag":1456,"props":4338,"children":4339},{},[4340,4350,4360,4370],{"type":993,"tag":1460,"props":4341,"children":4342},{},[4343,4348],{"type":993,"tag":1012,"props":4344,"children":4345},{},[4346],{"type":998,"value":4347},"Only one condition",{"type":998,"value":4349}," can execute",{"type":993,"tag":1460,"props":4351,"children":4352},{},[4353,4358],{"type":993,"tag":1012,"props":4354,"children":4355},{},[4356],{"type":998,"value":4357},"Stops at first true",{"type":998,"value":4359}," condition",{"type":993,"tag":1460,"props":4361,"children":4362},{},[4363,4365],{"type":998,"value":4364},"Use for ",{"type":993,"tag":1012,"props":4366,"children":4367},{},[4368],{"type":998,"value":4369},"alternative choices",{"type":993,"tag":1460,"props":4371,"children":4372},{},[4373,4375,4380],{"type":998,"value":4374},"More ",{"type":993,"tag":1012,"props":4376,"children":4377},{},[4378],{"type":998,"value":4379},"efficient",{"type":998,"value":4381}," for exclusive options",{"type":993,"tag":1001,"props":4383,"children":4384},{},[4385],{"type":993,"tag":1012,"props":4386,"children":4387},{},[4388],{"type":998,"value":4389},"Multiple If Statements (Independent):",{"type":993,"tag":1456,"props":4391,"children":4392},{},[4393,4403,4413,4422],{"type":993,"tag":1460,"props":4394,"children":4395},{},[4396,4401],{"type":993,"tag":1012,"props":4397,"children":4398},{},[4399],{"type":998,"value":4400},"All true conditions",{"type":998,"value":4402}," execute",{"type":993,"tag":1460,"props":4404,"children":4405},{},[4406,4411],{"type":993,"tag":1012,"props":4407,"children":4408},{},[4409],{"type":998,"value":4410},"Each condition checked",{"type":998,"value":4412}," regardless",{"type":993,"tag":1460,"props":4414,"children":4415},{},[4416,4417],{"type":998,"value":4364},{"type":993,"tag":1012,"props":4418,"children":4419},{},[4420],{"type":998,"value":4421},"independent actions",{"type":993,"tag":1460,"props":4423,"children":4424},{},[4425,4427],{"type":998,"value":4426},"Each condition ",{"type":993,"tag":1012,"props":4428,"children":4429},{},[4430],{"type":998,"value":4431},"stands alone",{"type":993,"tag":1001,"props":4433,"children":4434},{},[4435,4440],{"type":993,"tag":1012,"props":4436,"children":4437},{},[4438],{"type":998,"value":4439},"When to Use Elif:",{"type":998,"value":4441}," Grades, categories, exclusive states",{"type":993,"tag":1001,"props":4443,"children":4444},{},[4445,4450],{"type":993,"tag":1012,"props":4446,"children":4447},{},[4448],{"type":998,"value":4449},"When to Use Multiple If:",{"type":998,"value":4451}," Validation checks, independent flags",{"type":993,"tag":1001,"props":4453,"children":4454},{},[4455,4457,4465],{"type":998,"value":4456},"This distinction is crucial for ",{"type":993,"tag":1012,"props":4458,"children":4459},{},[4460],{"type":993,"tag":1016,"props":4461,"children":4462},{"href":160},[4463],{"type":998,"value":4464},"logic operations",{"type":998,"value":4466}," and avoiding bugs in your conditional logic.",{"type":993,"tag":1024,"props":4468,"children":4469},{},[4470],{"type":993,"tag":1028,"props":4471,"children":4473},{"className":1030,"code":4472,"language":6,"meta":8,"style":8},"# Elif chain - only one executes\nscore = 85\nprint(\"=== ELIF CHAIN ===\")\nif score >= 90:\n    print(\"A grade\")\nelif score >= 80:  # This executes, others are skipped\n    print(\"B grade\")\nelif score >= 70:  # This is skipped\n    print(\"C grade\")\n\n# Multiple if statements - all true conditions execute\nprint(\"\\n=== MULTIPLE IF STATEMENTS ===\")\ntemperature = 75\nif temperature > 70:\n    print(\"It's warm\")\nif temperature \u003C 80:\n    print(\"It's not too hot\")\nif temperature >= 70:\n    print(\"Good weather for outdoor activities\")\n\n# All three conditions above are true, so all three messages print\n",[4474],{"type":993,"tag":1034,"props":4475,"children":4476},{"__ignoreMap":8},[4477,4485,4500,4520,4543,4562,4590,4609,4637,4656,4663,4671,4700,4715,4739,4759,4782,4802,4825,4845,4852],{"type":993,"tag":1038,"props":4478,"children":4479},{"class":1040,"line":12},[4480],{"type":993,"tag":1038,"props":4481,"children":4482},{"style":1044},[4483],{"type":998,"value":4484},"# Elif chain - only one executes\n",{"type":993,"tag":1038,"props":4486,"children":4487},{"class":1040,"line":27},[4488,4492,4496],{"type":993,"tag":1038,"props":4489,"children":4490},{"style":1053},[4491],{"type":998,"value":2489},{"type":993,"tag":1038,"props":4493,"children":4494},{"style":1059},[4495],{"type":998,"value":1062},{"type":993,"tag":1038,"props":4497,"children":4498},{"style":1065},[4499],{"type":998,"value":1068},{"type":993,"tag":1038,"props":4501,"children":4502},{"class":1040,"line":36},[4503,4507,4511,4516],{"type":993,"tag":1038,"props":4504,"children":4505},{"style":1065},[4506],{"type":998,"value":1389},{"type":993,"tag":1038,"props":4508,"children":4509},{"style":1053},[4510],{"type":998,"value":1135},{"type":993,"tag":1038,"props":4512,"children":4513},{"style":1119},[4514],{"type":998,"value":4515},"\"=== ELIF CHAIN ===\"",{"type":993,"tag":1038,"props":4517,"children":4518},{"style":1053},[4519],{"type":998,"value":1145},{"type":993,"tag":1038,"props":4521,"children":4522},{"class":1040,"line":45},[4523,4527,4531,4535,4539],{"type":993,"tag":1038,"props":4524,"children":4525},{"style":1059},[4526],{"type":998,"value":1084},{"type":993,"tag":1038,"props":4528,"children":4529},{"style":1053},[4530],{"type":998,"value":2573},{"type":993,"tag":1038,"props":4532,"children":4533},{"style":1059},[4534],{"type":998,"value":1094},{"type":993,"tag":1038,"props":4536,"children":4537},{"style":1065},[4538],{"type":998,"value":1099},{"type":993,"tag":1038,"props":4540,"children":4541},{"style":1053},[4542],{"type":998,"value":1104},{"type":993,"tag":1038,"props":4544,"children":4545},{"class":1040,"line":54},[4546,4550,4554,4558],{"type":993,"tag":1038,"props":4547,"children":4548},{"style":1065},[4549],{"type":998,"value":1130},{"type":993,"tag":1038,"props":4551,"children":4552},{"style":1053},[4553],{"type":998,"value":1135},{"type":993,"tag":1038,"props":4555,"children":4556},{"style":1119},[4557],{"type":998,"value":2601},{"type":993,"tag":1038,"props":4559,"children":4560},{"style":1053},[4561],{"type":998,"value":1145},{"type":993,"tag":1038,"props":4563,"children":4564},{"class":1040,"line":63},[4565,4569,4573,4577,4581,4585],{"type":993,"tag":1038,"props":4566,"children":4567},{"style":1059},[4568],{"type":998,"value":1153},{"type":993,"tag":1038,"props":4570,"children":4571},{"style":1053},[4572],{"type":998,"value":2573},{"type":993,"tag":1038,"props":4574,"children":4575},{"style":1059},[4576],{"type":998,"value":1094},{"type":993,"tag":1038,"props":4578,"children":4579},{"style":1065},[4580],{"type":998,"value":1166},{"type":993,"tag":1038,"props":4582,"children":4583},{"style":1053},[4584],{"type":998,"value":3325},{"type":993,"tag":1038,"props":4586,"children":4587},{"style":1044},[4588],{"type":998,"value":4589},"# This executes, others are skipped\n",{"type":993,"tag":1038,"props":4591,"children":4592},{"class":1040,"line":72},[4593,4597,4601,4605],{"type":993,"tag":1038,"props":4594,"children":4595},{"style":1065},[4596],{"type":998,"value":1130},{"type":993,"tag":1038,"props":4598,"children":4599},{"style":1053},[4600],{"type":998,"value":1135},{"type":993,"tag":1038,"props":4602,"children":4603},{"style":1119},[4604],{"type":998,"value":2781},{"type":993,"tag":1038,"props":4606,"children":4607},{"style":1053},[4608],{"type":998,"value":1145},{"type":993,"tag":1038,"props":4610,"children":4611},{"class":1040,"line":81},[4612,4616,4620,4624,4628,4632],{"type":993,"tag":1038,"props":4613,"children":4614},{"style":1059},[4615],{"type":998,"value":1153},{"type":993,"tag":1038,"props":4617,"children":4618},{"style":1053},[4619],{"type":998,"value":2573},{"type":993,"tag":1038,"props":4621,"children":4622},{"style":1059},[4623],{"type":998,"value":1094},{"type":993,"tag":1038,"props":4625,"children":4626},{"style":1065},[4627],{"type":998,"value":1226},{"type":993,"tag":1038,"props":4629,"children":4630},{"style":1053},[4631],{"type":998,"value":3325},{"type":993,"tag":1038,"props":4633,"children":4634},{"style":1044},[4635],{"type":998,"value":4636},"# This is skipped\n",{"type":993,"tag":1038,"props":4638,"children":4639},{"class":1040,"line":91},[4640,4644,4648,4652],{"type":993,"tag":1038,"props":4641,"children":4642},{"style":1065},[4643],{"type":998,"value":1130},{"type":993,"tag":1038,"props":4645,"children":4646},{"style":1053},[4647],{"type":998,"value":1135},{"type":993,"tag":1038,"props":4649,"children":4650},{"style":1119},[4651],{"type":998,"value":2829},{"type":993,"tag":1038,"props":4653,"children":4654},{"style":1053},[4655],{"type":998,"value":1145},{"type":993,"tag":1038,"props":4657,"children":4658},{"class":1040,"line":100},[4659],{"type":993,"tag":1038,"props":4660,"children":4661},{"emptyLinePlaceholder":13},[4662],{"type":998,"value":1076},{"type":993,"tag":1038,"props":4664,"children":4665},{"class":1040,"line":109},[4666],{"type":993,"tag":1038,"props":4667,"children":4668},{"style":1044},[4669],{"type":998,"value":4670},"# Multiple if statements - all true conditions execute\n",{"type":993,"tag":1038,"props":4672,"children":4673},{"class":1040,"line":118},[4674,4678,4682,4686,4691,4696],{"type":993,"tag":1038,"props":4675,"children":4676},{"style":1065},[4677],{"type":998,"value":1389},{"type":993,"tag":1038,"props":4679,"children":4680},{"style":1053},[4681],{"type":998,"value":1135},{"type":993,"tag":1038,"props":4683,"children":4684},{"style":1119},[4685],{"type":998,"value":1423},{"type":993,"tag":1038,"props":4687,"children":4688},{"style":1065},[4689],{"type":998,"value":4690},"\\n",{"type":993,"tag":1038,"props":4692,"children":4693},{"style":1119},[4694],{"type":998,"value":4695},"=== MULTIPLE IF STATEMENTS ===\"",{"type":993,"tag":1038,"props":4697,"children":4698},{"style":1053},[4699],{"type":998,"value":1145},{"type":993,"tag":1038,"props":4701,"children":4702},{"class":1040,"line":127},[4703,4707,4711],{"type":993,"tag":1038,"props":4704,"children":4705},{"style":1053},[4706],{"type":998,"value":2299},{"type":993,"tag":1038,"props":4708,"children":4709},{"style":1059},[4710],{"type":998,"value":1062},{"type":993,"tag":1038,"props":4712,"children":4713},{"style":1065},[4714],{"type":998,"value":2308},{"type":993,"tag":1038,"props":4716,"children":4717},{"class":1040,"line":136},[4718,4722,4726,4731,4735],{"type":993,"tag":1038,"props":4719,"children":4720},{"style":1059},[4721],{"type":998,"value":1084},{"type":993,"tag":1038,"props":4723,"children":4724},{"style":1053},[4725],{"type":998,"value":2354},{"type":993,"tag":1038,"props":4727,"children":4728},{"style":1059},[4729],{"type":998,"value":4730},">",{"type":993,"tag":1038,"props":4732,"children":4733},{"style":1065},[4734],{"type":998,"value":1226},{"type":993,"tag":1038,"props":4736,"children":4737},{"style":1053},[4738],{"type":998,"value":1104},{"type":993,"tag":1038,"props":4740,"children":4741},{"class":1040,"line":146},[4742,4746,4750,4755],{"type":993,"tag":1038,"props":4743,"children":4744},{"style":1065},[4745],{"type":998,"value":1130},{"type":993,"tag":1038,"props":4747,"children":4748},{"style":1053},[4749],{"type":998,"value":1135},{"type":993,"tag":1038,"props":4751,"children":4752},{"style":1119},[4753],{"type":998,"value":4754},"\"It's warm\"",{"type":993,"tag":1038,"props":4756,"children":4757},{"style":1053},[4758],{"type":998,"value":1145},{"type":993,"tag":1038,"props":4760,"children":4761},{"class":1040,"line":155},[4762,4766,4770,4774,4778],{"type":993,"tag":1038,"props":4763,"children":4764},{"style":1059},[4765],{"type":998,"value":1084},{"type":993,"tag":1038,"props":4767,"children":4768},{"style":1053},[4769],{"type":998,"value":2354},{"type":993,"tag":1038,"props":4771,"children":4772},{"style":1059},[4773],{"type":998,"value":1641},{"type":993,"tag":1038,"props":4775,"children":4776},{"style":1065},[4777],{"type":998,"value":1166},{"type":993,"tag":1038,"props":4779,"children":4780},{"style":1053},[4781],{"type":998,"value":1104},{"type":993,"tag":1038,"props":4783,"children":4784},{"class":1040,"line":164},[4785,4789,4793,4798],{"type":993,"tag":1038,"props":4786,"children":4787},{"style":1065},[4788],{"type":998,"value":1130},{"type":993,"tag":1038,"props":4790,"children":4791},{"style":1053},[4792],{"type":998,"value":1135},{"type":993,"tag":1038,"props":4794,"children":4795},{"style":1119},[4796],{"type":998,"value":4797},"\"It's not too hot\"",{"type":993,"tag":1038,"props":4799,"children":4800},{"style":1053},[4801],{"type":998,"value":1145},{"type":993,"tag":1038,"props":4803,"children":4804},{"class":1040,"line":173},[4805,4809,4813,4817,4821],{"type":993,"tag":1038,"props":4806,"children":4807},{"style":1059},[4808],{"type":998,"value":1084},{"type":993,"tag":1038,"props":4810,"children":4811},{"style":1053},[4812],{"type":998,"value":2354},{"type":993,"tag":1038,"props":4814,"children":4815},{"style":1059},[4816],{"type":998,"value":1094},{"type":993,"tag":1038,"props":4818,"children":4819},{"style":1065},[4820],{"type":998,"value":1226},{"type":993,"tag":1038,"props":4822,"children":4823},{"style":1053},[4824],{"type":998,"value":1104},{"type":993,"tag":1038,"props":4826,"children":4827},{"class":1040,"line":182},[4828,4832,4836,4841],{"type":993,"tag":1038,"props":4829,"children":4830},{"style":1065},[4831],{"type":998,"value":1130},{"type":993,"tag":1038,"props":4833,"children":4834},{"style":1053},[4835],{"type":998,"value":1135},{"type":993,"tag":1038,"props":4837,"children":4838},{"style":1119},[4839],{"type":998,"value":4840},"\"Good weather for outdoor activities\"",{"type":993,"tag":1038,"props":4842,"children":4843},{"style":1053},[4844],{"type":998,"value":1145},{"type":993,"tag":1038,"props":4846,"children":4847},{"class":1040,"line":191},[4848],{"type":993,"tag":1038,"props":4849,"children":4850},{"emptyLinePlaceholder":13},[4851],{"type":998,"value":1076},{"type":993,"tag":1038,"props":4853,"children":4854},{"class":1040,"line":201},[4855],{"type":993,"tag":1038,"props":4856,"children":4857},{"style":1044},[4858],{"type":998,"value":4859},"# All three conditions above are true, so all three messages print\n",{"type":993,"tag":1429,"props":4861,"children":4863},{"id":4862},"common-multiple-condition-patterns",[4864],{"type":998,"value":4865},"📊 Common Multiple Condition Patterns",{"type":993,"tag":1001,"props":4867,"children":4868},{},[4869],{"type":998,"value":4870},"There are several patterns you'll encounter frequently when working with multiple conditions.",{"type":993,"tag":4872,"props":4873,"children":4874},"table",{},[4875,4899],{"type":993,"tag":4876,"props":4877,"children":4878},"thead",{},[4879],{"type":993,"tag":4880,"props":4881,"children":4882},"tr",{},[4883,4889,4894],{"type":993,"tag":4884,"props":4885,"children":4886},"th",{},[4887],{"type":998,"value":4888},"Pattern",{"type":993,"tag":4884,"props":4890,"children":4891},{},[4892],{"type":998,"value":4893},"Example",{"type":993,"tag":4884,"props":4895,"children":4896},{},[4897],{"type":998,"value":4898},"Use Case",{"type":993,"tag":4900,"props":4901,"children":4902},"tbody",{},[4903,4929,4954,4979,5004],{"type":993,"tag":4880,"props":4904,"children":4905},{},[4906,4915,4924],{"type":993,"tag":4907,"props":4908,"children":4909},"td",{},[4910],{"type":993,"tag":1012,"props":4911,"children":4912},{},[4913],{"type":998,"value":4914},"Grade Classification",{"type":993,"tag":4907,"props":4916,"children":4917},{},[4918],{"type":993,"tag":1034,"props":4919,"children":4921},{"className":4920},[],[4922],{"type":998,"value":4923},"if score >= 90: ... elif score >= 80:",{"type":993,"tag":4907,"props":4925,"children":4926},{},[4927],{"type":998,"value":4928},"Categorizing ranges",{"type":993,"tag":4880,"props":4930,"children":4931},{},[4932,4940,4949],{"type":993,"tag":4907,"props":4933,"children":4934},{},[4935],{"type":993,"tag":1012,"props":4936,"children":4937},{},[4938],{"type":998,"value":4939},"State Management",{"type":993,"tag":4907,"props":4941,"children":4942},{},[4943],{"type":993,"tag":1034,"props":4944,"children":4946},{"className":4945},[],[4947],{"type":998,"value":4948},"if state == \"idle\": ... elif state == \"running\":",{"type":993,"tag":4907,"props":4950,"children":4951},{},[4952],{"type":998,"value":4953},"Program states",{"type":993,"tag":4880,"props":4955,"children":4956},{},[4957,4965,4974],{"type":993,"tag":4907,"props":4958,"children":4959},{},[4960],{"type":993,"tag":1012,"props":4961,"children":4962},{},[4963],{"type":998,"value":4964},"Input Validation",{"type":993,"tag":4907,"props":4966,"children":4967},{},[4968],{"type":993,"tag":1034,"props":4969,"children":4971},{"className":4970},[],[4972],{"type":998,"value":4973},"if len(input) == 0: ... elif not input.isalpha():",{"type":993,"tag":4907,"props":4975,"children":4976},{},[4977],{"type":998,"value":4978},"Data validation",{"type":993,"tag":4880,"props":4980,"children":4981},{},[4982,4990,4999],{"type":993,"tag":4907,"props":4983,"children":4984},{},[4985],{"type":993,"tag":1012,"props":4986,"children":4987},{},[4988],{"type":998,"value":4989},"Priority Checking",{"type":993,"tag":4907,"props":4991,"children":4992},{},[4993],{"type":993,"tag":1034,"props":4994,"children":4996},{"className":4995},[],[4997],{"type":998,"value":4998},"if urgent: ... elif important: ... else:",{"type":993,"tag":4907,"props":5000,"children":5001},{},[5002],{"type":998,"value":5003},"Priority systems",{"type":993,"tag":4880,"props":5005,"children":5006},{},[5007,5015,5024],{"type":993,"tag":4907,"props":5008,"children":5009},{},[5010],{"type":993,"tag":1012,"props":5011,"children":5012},{},[5013],{"type":998,"value":5014},"Range Categories",{"type":993,"tag":4907,"props":5016,"children":5017},{},[5018],{"type":993,"tag":1034,"props":5019,"children":5021},{"className":5020},[],[5022],{"type":998,"value":5023},"if age \u003C 13: ... elif age \u003C 20: ... elif age \u003C 65:",{"type":993,"tag":4907,"props":5025,"children":5026},{},[5027],{"type":998,"value":5028},"Age groups",{"type":993,"tag":1024,"props":5030,"children":5031},{},[5032],{"type":993,"tag":1028,"props":5033,"children":5035},{"className":1030,"code":5034,"language":6,"meta":8,"style":8},"# Common multiple condition patterns\nprint(\"=== COMMON PATTERNS ===\")\n\n# User input validation\nuser_input = \"hello123\"\nif len(user_input) == 0:\n    print(\"Input cannot be empty\")\nelif len(user_input) \u003C 3:\n    print(\"Input too short\")\nelif not user_input.isalnum():\n    print(\"Input contains special characters\")\nelse:\n    print(\"Valid input\")\n\n# Priority system\npriority = \"medium\"\nif priority == \"critical\":\n    print(\"Handle immediately!\")\nelif priority == \"high\":\n    print(\"Handle within 1 hour\")\nelif priority == \"medium\":\n    print(\"Handle within 4 hours\")\nelse:\n    print(\"Handle when possible\")\n\n# Age group classification\nage = 16\nif age \u003C 13:\n    category = \"child\"\nelif age \u003C 20:\n    category = \"teenager\"\nelif age \u003C 65:\n    category = \"adult\"\nelse:\n    category = \"senior\"\nprint(f\"Age category: {category}\")\n",[5036],{"type":993,"tag":1034,"props":5037,"children":5038},{"__ignoreMap":8},[5039,5047,5067,5074,5082,5099,5127,5147,5175,5195,5212,5232,5243,5263,5270,5278,5295,5320,5340,5364,5384,5408,5428,5439,5459,5466,5474,5490,5514,5531,5555,5571,5594,5610,5621,5637],{"type":993,"tag":1038,"props":5040,"children":5041},{"class":1040,"line":12},[5042],{"type":993,"tag":1038,"props":5043,"children":5044},{"style":1044},[5045],{"type":998,"value":5046},"# Common multiple condition patterns\n",{"type":993,"tag":1038,"props":5048,"children":5049},{"class":1040,"line":27},[5050,5054,5058,5063],{"type":993,"tag":1038,"props":5051,"children":5052},{"style":1065},[5053],{"type":998,"value":1389},{"type":993,"tag":1038,"props":5055,"children":5056},{"style":1053},[5057],{"type":998,"value":1135},{"type":993,"tag":1038,"props":5059,"children":5060},{"style":1119},[5061],{"type":998,"value":5062},"\"=== COMMON PATTERNS ===\"",{"type":993,"tag":1038,"props":5064,"children":5065},{"style":1053},[5066],{"type":998,"value":1145},{"type":993,"tag":1038,"props":5068,"children":5069},{"class":1040,"line":36},[5070],{"type":993,"tag":1038,"props":5071,"children":5072},{"emptyLinePlaceholder":13},[5073],{"type":998,"value":1076},{"type":993,"tag":1038,"props":5075,"children":5076},{"class":1040,"line":45},[5077],{"type":993,"tag":1038,"props":5078,"children":5079},{"style":1044},[5080],{"type":998,"value":5081},"# User input validation\n",{"type":993,"tag":1038,"props":5083,"children":5084},{"class":1040,"line":54},[5085,5090,5094],{"type":993,"tag":1038,"props":5086,"children":5087},{"style":1053},[5088],{"type":998,"value":5089},"user_input ",{"type":993,"tag":1038,"props":5091,"children":5092},{"style":1059},[5093],{"type":998,"value":1062},{"type":993,"tag":1038,"props":5095,"children":5096},{"style":1119},[5097],{"type":998,"value":5098}," \"hello123\"\n",{"type":993,"tag":1038,"props":5100,"children":5101},{"class":1040,"line":63},[5102,5106,5110,5115,5119,5123],{"type":993,"tag":1038,"props":5103,"children":5104},{"style":1059},[5105],{"type":998,"value":1084},{"type":993,"tag":1038,"props":5107,"children":5108},{"style":1065},[5109],{"type":998,"value":4265},{"type":993,"tag":1038,"props":5111,"children":5112},{"style":1053},[5113],{"type":998,"value":5114},"(user_input) ",{"type":993,"tag":1038,"props":5116,"children":5117},{"style":1059},[5118],{"type":998,"value":4106},{"type":993,"tag":1038,"props":5120,"children":5121},{"style":1065},[5122],{"type":998,"value":4290},{"type":993,"tag":1038,"props":5124,"children":5125},{"style":1053},[5126],{"type":998,"value":1104},{"type":993,"tag":1038,"props":5128,"children":5129},{"class":1040,"line":72},[5130,5134,5138,5143],{"type":993,"tag":1038,"props":5131,"children":5132},{"style":1065},[5133],{"type":998,"value":1130},{"type":993,"tag":1038,"props":5135,"children":5136},{"style":1053},[5137],{"type":998,"value":1135},{"type":993,"tag":1038,"props":5139,"children":5140},{"style":1119},[5141],{"type":998,"value":5142},"\"Input cannot be empty\"",{"type":993,"tag":1038,"props":5144,"children":5145},{"style":1053},[5146],{"type":998,"value":1145},{"type":993,"tag":1038,"props":5148,"children":5149},{"class":1040,"line":81},[5150,5154,5158,5162,5166,5171],{"type":993,"tag":1038,"props":5151,"children":5152},{"style":1059},[5153],{"type":998,"value":1153},{"type":993,"tag":1038,"props":5155,"children":5156},{"style":1065},[5157],{"type":998,"value":4265},{"type":993,"tag":1038,"props":5159,"children":5160},{"style":1053},[5161],{"type":998,"value":5114},{"type":993,"tag":1038,"props":5163,"children":5164},{"style":1059},[5165],{"type":998,"value":1641},{"type":993,"tag":1038,"props":5167,"children":5168},{"style":1065},[5169],{"type":998,"value":5170}," 3",{"type":993,"tag":1038,"props":5172,"children":5173},{"style":1053},[5174],{"type":998,"value":1104},{"type":993,"tag":1038,"props":5176,"children":5177},{"class":1040,"line":91},[5178,5182,5186,5191],{"type":993,"tag":1038,"props":5179,"children":5180},{"style":1065},[5181],{"type":998,"value":1130},{"type":993,"tag":1038,"props":5183,"children":5184},{"style":1053},[5185],{"type":998,"value":1135},{"type":993,"tag":1038,"props":5187,"children":5188},{"style":1119},[5189],{"type":998,"value":5190},"\"Input too short\"",{"type":993,"tag":1038,"props":5192,"children":5193},{"style":1053},[5194],{"type":998,"value":1145},{"type":993,"tag":1038,"props":5196,"children":5197},{"class":1040,"line":100},[5198,5202,5207],{"type":993,"tag":1038,"props":5199,"children":5200},{"style":1059},[5201],{"type":998,"value":1153},{"type":993,"tag":1038,"props":5203,"children":5204},{"style":1059},[5205],{"type":998,"value":5206}," not",{"type":993,"tag":1038,"props":5208,"children":5209},{"style":1053},[5210],{"type":998,"value":5211}," user_input.isalnum():\n",{"type":993,"tag":1038,"props":5213,"children":5214},{"class":1040,"line":109},[5215,5219,5223,5228],{"type":993,"tag":1038,"props":5216,"children":5217},{"style":1065},[5218],{"type":998,"value":1130},{"type":993,"tag":1038,"props":5220,"children":5221},{"style":1053},[5222],{"type":998,"value":1135},{"type":993,"tag":1038,"props":5224,"children":5225},{"style":1119},[5226],{"type":998,"value":5227},"\"Input contains special characters\"",{"type":993,"tag":1038,"props":5229,"children":5230},{"style":1053},[5231],{"type":998,"value":1145},{"type":993,"tag":1038,"props":5233,"children":5234},{"class":1040,"line":118},[5235,5239],{"type":993,"tag":1038,"props":5236,"children":5237},{"style":1059},[5238],{"type":998,"value":1334},{"type":993,"tag":1038,"props":5240,"children":5241},{"style":1053},[5242],{"type":998,"value":1104},{"type":993,"tag":1038,"props":5244,"children":5245},{"class":1040,"line":127},[5246,5250,5254,5259],{"type":993,"tag":1038,"props":5247,"children":5248},{"style":1065},[5249],{"type":998,"value":1130},{"type":993,"tag":1038,"props":5251,"children":5252},{"style":1053},[5253],{"type":998,"value":1135},{"type":993,"tag":1038,"props":5255,"children":5256},{"style":1119},[5257],{"type":998,"value":5258},"\"Valid input\"",{"type":993,"tag":1038,"props":5260,"children":5261},{"style":1053},[5262],{"type":998,"value":1145},{"type":993,"tag":1038,"props":5264,"children":5265},{"class":1040,"line":136},[5266],{"type":993,"tag":1038,"props":5267,"children":5268},{"emptyLinePlaceholder":13},[5269],{"type":998,"value":1076},{"type":993,"tag":1038,"props":5271,"children":5272},{"class":1040,"line":146},[5273],{"type":993,"tag":1038,"props":5274,"children":5275},{"style":1044},[5276],{"type":998,"value":5277},"# Priority system\n",{"type":993,"tag":1038,"props":5279,"children":5280},{"class":1040,"line":155},[5281,5286,5290],{"type":993,"tag":1038,"props":5282,"children":5283},{"style":1053},[5284],{"type":998,"value":5285},"priority ",{"type":993,"tag":1038,"props":5287,"children":5288},{"style":1059},[5289],{"type":998,"value":1062},{"type":993,"tag":1038,"props":5291,"children":5292},{"style":1119},[5293],{"type":998,"value":5294}," \"medium\"\n",{"type":993,"tag":1038,"props":5296,"children":5297},{"class":1040,"line":164},[5298,5302,5307,5311,5316],{"type":993,"tag":1038,"props":5299,"children":5300},{"style":1059},[5301],{"type":998,"value":1084},{"type":993,"tag":1038,"props":5303,"children":5304},{"style":1053},[5305],{"type":998,"value":5306}," priority ",{"type":993,"tag":1038,"props":5308,"children":5309},{"style":1059},[5310],{"type":998,"value":4106},{"type":993,"tag":1038,"props":5312,"children":5313},{"style":1119},[5314],{"type":998,"value":5315}," \"critical\"",{"type":993,"tag":1038,"props":5317,"children":5318},{"style":1053},[5319],{"type":998,"value":1104},{"type":993,"tag":1038,"props":5321,"children":5322},{"class":1040,"line":173},[5323,5327,5331,5336],{"type":993,"tag":1038,"props":5324,"children":5325},{"style":1065},[5326],{"type":998,"value":1130},{"type":993,"tag":1038,"props":5328,"children":5329},{"style":1053},[5330],{"type":998,"value":1135},{"type":993,"tag":1038,"props":5332,"children":5333},{"style":1119},[5334],{"type":998,"value":5335},"\"Handle immediately!\"",{"type":993,"tag":1038,"props":5337,"children":5338},{"style":1053},[5339],{"type":998,"value":1145},{"type":993,"tag":1038,"props":5341,"children":5342},{"class":1040,"line":182},[5343,5347,5351,5355,5360],{"type":993,"tag":1038,"props":5344,"children":5345},{"style":1059},[5346],{"type":998,"value":1153},{"type":993,"tag":1038,"props":5348,"children":5349},{"style":1053},[5350],{"type":998,"value":5306},{"type":993,"tag":1038,"props":5352,"children":5353},{"style":1059},[5354],{"type":998,"value":4106},{"type":993,"tag":1038,"props":5356,"children":5357},{"style":1119},[5358],{"type":998,"value":5359}," \"high\"",{"type":993,"tag":1038,"props":5361,"children":5362},{"style":1053},[5363],{"type":998,"value":1104},{"type":993,"tag":1038,"props":5365,"children":5366},{"class":1040,"line":191},[5367,5371,5375,5380],{"type":993,"tag":1038,"props":5368,"children":5369},{"style":1065},[5370],{"type":998,"value":1130},{"type":993,"tag":1038,"props":5372,"children":5373},{"style":1053},[5374],{"type":998,"value":1135},{"type":993,"tag":1038,"props":5376,"children":5377},{"style":1119},[5378],{"type":998,"value":5379},"\"Handle within 1 hour\"",{"type":993,"tag":1038,"props":5381,"children":5382},{"style":1053},[5383],{"type":998,"value":1145},{"type":993,"tag":1038,"props":5385,"children":5386},{"class":1040,"line":201},[5387,5391,5395,5399,5404],{"type":993,"tag":1038,"props":5388,"children":5389},{"style":1059},[5390],{"type":998,"value":1153},{"type":993,"tag":1038,"props":5392,"children":5393},{"style":1053},[5394],{"type":998,"value":5306},{"type":993,"tag":1038,"props":5396,"children":5397},{"style":1059},[5398],{"type":998,"value":4106},{"type":993,"tag":1038,"props":5400,"children":5401},{"style":1119},[5402],{"type":998,"value":5403}," \"medium\"",{"type":993,"tag":1038,"props":5405,"children":5406},{"style":1053},[5407],{"type":998,"value":1104},{"type":993,"tag":1038,"props":5409,"children":5410},{"class":1040,"line":210},[5411,5415,5419,5424],{"type":993,"tag":1038,"props":5412,"children":5413},{"style":1065},[5414],{"type":998,"value":1130},{"type":993,"tag":1038,"props":5416,"children":5417},{"style":1053},[5418],{"type":998,"value":1135},{"type":993,"tag":1038,"props":5420,"children":5421},{"style":1119},[5422],{"type":998,"value":5423},"\"Handle within 4 hours\"",{"type":993,"tag":1038,"props":5425,"children":5426},{"style":1053},[5427],{"type":998,"value":1145},{"type":993,"tag":1038,"props":5429,"children":5430},{"class":1040,"line":219},[5431,5435],{"type":993,"tag":1038,"props":5432,"children":5433},{"style":1059},[5434],{"type":998,"value":1334},{"type":993,"tag":1038,"props":5436,"children":5437},{"style":1053},[5438],{"type":998,"value":1104},{"type":993,"tag":1038,"props":5440,"children":5441},{"class":1040,"line":228},[5442,5446,5450,5455],{"type":993,"tag":1038,"props":5443,"children":5444},{"style":1065},[5445],{"type":998,"value":1130},{"type":993,"tag":1038,"props":5447,"children":5448},{"style":1053},[5449],{"type":998,"value":1135},{"type":993,"tag":1038,"props":5451,"children":5452},{"style":1119},[5453],{"type":998,"value":5454},"\"Handle when possible\"",{"type":993,"tag":1038,"props":5456,"children":5457},{"style":1053},[5458],{"type":998,"value":1145},{"type":993,"tag":1038,"props":5460,"children":5461},{"class":1040,"line":238},[5462],{"type":993,"tag":1038,"props":5463,"children":5464},{"emptyLinePlaceholder":13},[5465],{"type":998,"value":1076},{"type":993,"tag":1038,"props":5467,"children":5468},{"class":1040,"line":247},[5469],{"type":993,"tag":1038,"props":5470,"children":5471},{"style":1044},[5472],{"type":998,"value":5473},"# Age group classification\n",{"type":993,"tag":1038,"props":5475,"children":5476},{"class":1040,"line":256},[5477,5481,5485],{"type":993,"tag":1038,"props":5478,"children":5479},{"style":1053},[5480],{"type":998,"value":2020},{"type":993,"tag":1038,"props":5482,"children":5483},{"style":1059},[5484],{"type":998,"value":1062},{"type":993,"tag":1038,"props":5486,"children":5487},{"style":1065},[5488],{"type":998,"value":5489}," 16\n",{"type":993,"tag":1038,"props":5491,"children":5492},{"class":1040,"line":265},[5493,5497,5501,5505,5510],{"type":993,"tag":1038,"props":5494,"children":5495},{"style":1059},[5496],{"type":998,"value":1084},{"type":993,"tag":1038,"props":5498,"children":5499},{"style":1053},[5500],{"type":998,"value":2098},{"type":993,"tag":1038,"props":5502,"children":5503},{"style":1059},[5504],{"type":998,"value":1641},{"type":993,"tag":1038,"props":5506,"children":5507},{"style":1065},[5508],{"type":998,"value":5509}," 13",{"type":993,"tag":1038,"props":5511,"children":5512},{"style":1053},[5513],{"type":998,"value":1104},{"type":993,"tag":1038,"props":5515,"children":5516},{"class":1040,"line":274},[5517,5522,5526],{"type":993,"tag":1038,"props":5518,"children":5519},{"style":1053},[5520],{"type":998,"value":5521},"    category ",{"type":993,"tag":1038,"props":5523,"children":5524},{"style":1059},[5525],{"type":998,"value":1062},{"type":993,"tag":1038,"props":5527,"children":5528},{"style":1119},[5529],{"type":998,"value":5530}," \"child\"\n",{"type":993,"tag":1038,"props":5532,"children":5533},{"class":1040,"line":284},[5534,5538,5542,5546,5551],{"type":993,"tag":1038,"props":5535,"children":5536},{"style":1059},[5537],{"type":998,"value":1153},{"type":993,"tag":1038,"props":5539,"children":5540},{"style":1053},[5541],{"type":998,"value":2098},{"type":993,"tag":1038,"props":5543,"children":5544},{"style":1059},[5545],{"type":998,"value":1641},{"type":993,"tag":1038,"props":5547,"children":5548},{"style":1065},[5549],{"type":998,"value":5550}," 20",{"type":993,"tag":1038,"props":5552,"children":5553},{"style":1053},[5554],{"type":998,"value":1104},{"type":993,"tag":1038,"props":5556,"children":5557},{"class":1040,"line":293},[5558,5562,5566],{"type":993,"tag":1038,"props":5559,"children":5560},{"style":1053},[5561],{"type":998,"value":5521},{"type":993,"tag":1038,"props":5563,"children":5564},{"style":1059},[5565],{"type":998,"value":1062},{"type":993,"tag":1038,"props":5567,"children":5568},{"style":1119},[5569],{"type":998,"value":5570}," \"teenager\"\n",{"type":993,"tag":1038,"props":5572,"children":5573},{"class":1040,"line":302},[5574,5578,5582,5586,5590],{"type":993,"tag":1038,"props":5575,"children":5576},{"style":1059},[5577],{"type":998,"value":1153},{"type":993,"tag":1038,"props":5579,"children":5580},{"style":1053},[5581],{"type":998,"value":2098},{"type":993,"tag":1038,"props":5583,"children":5584},{"style":1059},[5585],{"type":998,"value":1641},{"type":993,"tag":1038,"props":5587,"children":5588},{"style":1065},[5589],{"type":998,"value":3320},{"type":993,"tag":1038,"props":5591,"children":5592},{"style":1053},[5593],{"type":998,"value":1104},{"type":993,"tag":1038,"props":5595,"children":5596},{"class":1040,"line":311},[5597,5601,5605],{"type":993,"tag":1038,"props":5598,"children":5599},{"style":1053},[5600],{"type":998,"value":5521},{"type":993,"tag":1038,"props":5602,"children":5603},{"style":1059},[5604],{"type":998,"value":1062},{"type":993,"tag":1038,"props":5606,"children":5607},{"style":1119},[5608],{"type":998,"value":5609}," \"adult\"\n",{"type":993,"tag":1038,"props":5611,"children":5612},{"class":1040,"line":320},[5613,5617],{"type":993,"tag":1038,"props":5614,"children":5615},{"style":1059},[5616],{"type":998,"value":1334},{"type":993,"tag":1038,"props":5618,"children":5619},{"style":1053},[5620],{"type":998,"value":1104},{"type":993,"tag":1038,"props":5622,"children":5623},{"class":1040,"line":329},[5624,5628,5632],{"type":993,"tag":1038,"props":5625,"children":5626},{"style":1053},[5627],{"type":998,"value":5521},{"type":993,"tag":1038,"props":5629,"children":5630},{"style":1059},[5631],{"type":998,"value":1062},{"type":993,"tag":1038,"props":5633,"children":5634},{"style":1119},[5635],{"type":998,"value":5636}," \"senior\"\n",{"type":993,"tag":1038,"props":5638,"children":5639},{"class":1040,"line":338},[5640,5644,5648,5652,5657,5661,5666,5670,5674],{"type":993,"tag":1038,"props":5641,"children":5642},{"style":1065},[5643],{"type":998,"value":1389},{"type":993,"tag":1038,"props":5645,"children":5646},{"style":1053},[5647],{"type":998,"value":1135},{"type":993,"tag":1038,"props":5649,"children":5650},{"style":1059},[5651],{"type":998,"value":1398},{"type":993,"tag":1038,"props":5653,"children":5654},{"style":1119},[5655],{"type":998,"value":5656},"\"Age category: ",{"type":993,"tag":1038,"props":5658,"children":5659},{"style":1065},[5660],{"type":998,"value":1408},{"type":993,"tag":1038,"props":5662,"children":5663},{"style":1053},[5664],{"type":998,"value":5665},"category",{"type":993,"tag":1038,"props":5667,"children":5668},{"style":1065},[5669],{"type":998,"value":1418},{"type":993,"tag":1038,"props":5671,"children":5672},{"style":1119},[5673],{"type":998,"value":1423},{"type":993,"tag":1038,"props":5675,"children":5676},{"style":1053},[5677],{"type":998,"value":1145},{"type":993,"tag":1429,"props":5679,"children":5681},{"id":5680},"key-takeaways",[5682],{"type":998,"value":5683},"📚 Key Takeaways",{"type":993,"tag":1441,"props":5685,"children":5688},{"emoji":5686,"title":5687,"type":1445},"📚","Multiple Conditions Essentials",[5689,5697,5748,5756,5818,5825,5874],{"type":993,"tag":1001,"props":5690,"children":5691},{},[5692],{"type":993,"tag":1012,"props":5693,"children":5694},{},[5695],{"type":998,"value":5696},"Core Concepts:",{"type":993,"tag":1456,"props":5698,"children":5699},{},[5700,5710,5720,5738],{"type":993,"tag":1460,"props":5701,"children":5702},{},[5703,5708],{"type":993,"tag":1012,"props":5704,"children":5705},{},[5706],{"type":998,"value":5707},"Elif statements",{"type":998,"value":5709},": Handle multiple exclusive conditions",{"type":993,"tag":1460,"props":5711,"children":5712},{},[5713,5718],{"type":993,"tag":1012,"props":5714,"children":5715},{},[5716],{"type":998,"value":5717},"Sequential evaluation",{"type":998,"value":5719},": First true condition wins",{"type":993,"tag":1460,"props":5721,"children":5722},{},[5723,5728,5730,5736],{"type":993,"tag":1012,"props":5724,"children":5725},{},[5726],{"type":998,"value":5727},"Chained comparisons",{"type":998,"value":5729},": Natural mathematical notation (e.g., ",{"type":993,"tag":1034,"props":5731,"children":5733},{"className":5732},[],[5734],{"type":998,"value":5735},"10 \u003C= x \u003C= 20",{"type":998,"value":5737},")",{"type":993,"tag":1460,"props":5739,"children":5740},{},[5741,5746],{"type":993,"tag":1012,"props":5742,"children":5743},{},[5744],{"type":998,"value":5745},"Ternary operator",{"type":998,"value":5747},": Concise if-else for simple cases",{"type":993,"tag":1001,"props":5749,"children":5750},{},[5751],{"type":993,"tag":1012,"props":5752,"children":5753},{},[5754],{"type":998,"value":5755},"Important Details:",{"type":993,"tag":1456,"props":5757,"children":5758},{},[5759,5769,5779,5808],{"type":993,"tag":1460,"props":5760,"children":5761},{},[5762,5767],{"type":993,"tag":1012,"props":5763,"children":5764},{},[5765],{"type":998,"value":5766},"Only one block executes",{"type":998,"value":5768}," in if-elif-else chains",{"type":993,"tag":1460,"props":5770,"children":5771},{},[5772,5777],{"type":993,"tag":1012,"props":5773,"children":5774},{},[5775],{"type":998,"value":5776},"All conditions execute",{"type":998,"value":5778}," with multiple if statements",{"type":993,"tag":1460,"props":5780,"children":5781},{},[5782,5787,5789,5794,5795,5800,5801,5806],{"type":993,"tag":1012,"props":5783,"children":5784},{},[5785],{"type":998,"value":5786},"Logical operators",{"type":998,"value":5788}," (",{"type":993,"tag":1034,"props":5790,"children":5792},{"className":5791},[],[5793],{"type":998,"value":1890},{"type":998,"value":4203},{"type":993,"tag":1034,"props":5796,"children":5798},{"className":5797},[],[5799],{"type":998,"value":1904},{"type":998,"value":4203},{"type":993,"tag":1034,"props":5802,"children":5804},{"className":5803},[],[5805],{"type":998,"value":1918},{"type":998,"value":5807},") combine conditions",{"type":993,"tag":1460,"props":5809,"children":5810},{},[5811,5816],{"type":993,"tag":1012,"props":5812,"children":5813},{},[5814],{"type":998,"value":5815},"Parentheses control",{"type":998,"value":5817}," evaluation order",{"type":993,"tag":1001,"props":5819,"children":5820},{},[5821],{"type":993,"tag":1012,"props":5822,"children":5823},{},[5824],{"type":998,"value":1938},{"type":993,"tag":1456,"props":5826,"children":5827},{},[5828,5840,5852,5862],{"type":993,"tag":1460,"props":5829,"children":5830},{},[5831,5833,5838],{"type":998,"value":5832},"Use elif for ",{"type":993,"tag":1012,"props":5834,"children":5835},{},[5836],{"type":998,"value":5837},"mutually exclusive",{"type":998,"value":5839}," choices",{"type":993,"tag":1460,"props":5841,"children":5842},{},[5843,5845,5850],{"type":998,"value":5844},"Use multiple if for ",{"type":993,"tag":1012,"props":5846,"children":5847},{},[5848],{"type":998,"value":5849},"independent",{"type":998,"value":5851}," conditions",{"type":993,"tag":1460,"props":5853,"children":5854},{},[5855,5857],{"type":998,"value":5856},"Keep conditions ",{"type":993,"tag":1012,"props":5858,"children":5859},{},[5860],{"type":998,"value":5861},"simple and readable",{"type":993,"tag":1460,"props":5863,"children":5864},{},[5865,5867,5872],{"type":998,"value":5866},"Order conditions by ",{"type":993,"tag":1012,"props":5868,"children":5869},{},[5870],{"type":998,"value":5871},"likelihood",{"type":998,"value":5873}," for efficiency",{"type":993,"tag":1001,"props":5875,"children":5876},{},[5877,5882,5884,5892,5894],{"type":993,"tag":1012,"props":5878,"children":5879},{},[5880],{"type":998,"value":5881},"Next Steps:",{"type":998,"value":5883}," Apply to ",{"type":993,"tag":1012,"props":5885,"children":5886},{},[5887],{"type":993,"tag":1016,"props":5888,"children":5889},{"href":234},[5890],{"type":998,"value":5891},"loops",{"type":998,"value":5893}," and ",{"type":993,"tag":1012,"props":5895,"children":5896},{},[5897],{"type":993,"tag":1016,"props":5898,"children":5899},{"href":617},[5900],{"type":998,"value":5901},"functions",{"type":993,"tag":1429,"props":5903,"children":5905},{"id":5904},"test-your-knowledge",[5906],{"type":998,"value":5907},"Test Your Knowledge",{"type":993,"tag":1001,"props":5909,"children":5910},{},[5911],{"type":998,"value":5912},"Test what you've learned about multiple conditions in Python:",{"type":993,"tag":5914,"props":5915,"children":5919},"redirect-button",{"icon":5916,"label":5917,"url":5918},"pi pi-send","Take Quiz","/tutorial-quiz/python/multiple-conditions",[],{"type":993,"tag":1429,"props":5921,"children":5923},{"id":5922},"whats-next",[5924],{"type":998,"value":5925},"🚀 What's Next?",{"type":993,"tag":1001,"props":5927,"children":5928},{},[5929],{"type":998,"value":5930},"Congratulations! You now understand the full spectrum of decision making in Python. You can handle simple conditions with if statements, binary choices with if-else, and complex scenarios with elif chains.",{"type":993,"tag":1001,"props":5932,"children":5933},{},[5934,5936,5943],{"type":998,"value":5935},"These conditional skills are essential for the next major topic: ",{"type":993,"tag":1012,"props":5937,"children":5938},{},[5939],{"type":993,"tag":1016,"props":5940,"children":5941},{"href":234},[5942],{"type":998,"value":235},{"type":998,"value":5944},". Loops use conditions to determine when to repeat code, combining decision making with repetition.",{"type":993,"tag":1001,"props":5946,"children":5947},{},[5948,5950,5958,5959,5967,5969,5977],{"type":998,"value":5949},"Multiple conditions also work hand-in-hand with ",{"type":993,"tag":1012,"props":5951,"children":5952},{},[5953],{"type":993,"tag":1016,"props":5954,"children":5955},{"href":151},[5956],{"type":998,"value":5957},"comparison operators",{"type":998,"value":4203},{"type":993,"tag":1012,"props":5960,"children":5961},{},[5962],{"type":993,"tag":1016,"props":5963,"children":5964},{"href":160},[5965],{"type":998,"value":5966},"logical operations",{"type":998,"value":5968},", and ",{"type":993,"tag":1012,"props":5970,"children":5971},{},[5972],{"type":993,"tag":1016,"props":5973,"children":5974},{"href":790},[5975],{"type":998,"value":5976},"working with user input",{"type":998,"value":5978},".",{"type":993,"tag":1001,"props":5980,"children":5981},{},[5982,5984,5992,5993,6001,6002,6010],{"type":998,"value":5983},"Understanding decision making prepares you for ",{"type":993,"tag":1012,"props":5985,"children":5986},{},[5987],{"type":993,"tag":1016,"props":5988,"children":5989},{"href":617},[5990],{"type":998,"value":5991},"function development",{"type":998,"value":4203},{"type":993,"tag":1012,"props":5994,"children":5995},{},[5996],{"type":993,"tag":1016,"props":5997,"children":5998},{"href":781},[5999],{"type":998,"value":6000},"error handling",{"type":998,"value":5968},{"type":993,"tag":1012,"props":6003,"children":6004},{},[6005],{"type":993,"tag":1016,"props":6006,"children":6007},{"href":215},[6008],{"type":998,"value":6009},"building interactive programs",{"type":998,"value":5978},{"type":993,"tag":6012,"props":6013,"children":6014},"style",{},[6015],{"type":998,"value":6016},"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":6018},[6019,6020,6021,6024,6025,6026,6027,6028,6029,6030],{"id":1431,"depth":27,"text":1434},{"id":1843,"depth":27,"text":1846},{"id":2437,"depth":27,"text":2440,"children":6022},[6023],{"id":2617,"depth":36,"text":2620},{"id":2929,"depth":27,"text":2932},{"id":3621,"depth":27,"text":3624},{"id":4315,"depth":27,"text":4318},{"id":4862,"depth":27,"text":4865},{"id":5680,"depth":27,"text":5683},{"id":5904,"depth":27,"text":5907},{"id":5922,"depth":27,"text":5925},1782373733506]