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