[{"data":1,"prerenderedAt":7668},["ShallowReactive",2],{"tutorials-python":3,"category-items-python":987,"content-/python/true-false-values":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},"/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",[113],{"_path":114,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":115,"description":116,"slug":117,"parentId":77,"order":118,"body":989,"_type":15,"_id":119,"_source":17,"_file":120,"_stem":121,"_extension":20},{"type":990,"children":991,"toc":7635},"root",[992,1001,1007,1012,1262,1269,1290,1398,1405,1602,1608,1613,1840,1846,1874,2052,2058,2321,2327,2599,2605,2852,2858,3200,3206,3225,3408,3650,3656,4026,4031,4037,4042,4385,4391,4815,4821,4826,4832,5419,5425,5643,5649,5654,5660,6219,6225,6659,6665,6854,6860,7102,7108,7420,7426,7576,7582,7587,7594,7600,7605,7629],{"type":993,"tag":994,"props":995,"children":997},"element","h1",{"id":996},"truefalse-values",[998],{"type":999,"value":1000},"text","✅❌ True/False Values",{"type":993,"tag":1002,"props":1003,"children":1004},"p",{},[1005],{"type":999,"value":1006},"Boolean values are Python's way of representing truth and falsehood - the fundamental building blocks of logical thinking in programming. Every decision your program makes, every condition it checks, and every yes-or-no question it answers relies on boolean logic.",{"type":993,"tag":1002,"props":1008,"children":1009},{},[1010],{"type":999,"value":1011},"Understanding booleans is essential for creating programs that can make decisions, respond to different conditions, and control program flow.",{"type":993,"tag":1013,"props":1014,"children":1015},"code-try",{},[1016],{"type":993,"tag":1017,"props":1018,"children":1021},"pre",{"className":1019,"code":1020,"language":6,"meta":8,"style":8},"language-python shiki shiki-themes github-light github-dark","# Boolean basics\nis_sunny = True\nis_raining = False\ntemperature = 75\n\nprint(f\"Sunny: {is_sunny}\")                    # True\nprint(f\"Raining: {is_raining}\")               # False\nprint(f\"Nice weather: {is_sunny and temperature > 70}\")  # True\n",[1022],{"type":993,"tag":1023,"props":1024,"children":1025},"code",{"__ignoreMap":8},[1026,1037,1058,1075,1092,1100,1154,1201],{"type":993,"tag":1027,"props":1028,"children":1030},"span",{"class":1029,"line":12},"line",[1031],{"type":993,"tag":1027,"props":1032,"children":1034},{"style":1033},"--shiki-default:#6A737D;--shiki-app-dark-mode:#6A737D",[1035],{"type":999,"value":1036},"# Boolean basics\n",{"type":993,"tag":1027,"props":1038,"children":1039},{"class":1029,"line":27},[1040,1046,1052],{"type":993,"tag":1027,"props":1041,"children":1043},{"style":1042},"--shiki-default:#24292E;--shiki-app-dark-mode:#E1E4E8",[1044],{"type":999,"value":1045},"is_sunny ",{"type":993,"tag":1027,"props":1047,"children":1049},{"style":1048},"--shiki-default:#D73A49;--shiki-app-dark-mode:#F97583",[1050],{"type":999,"value":1051},"=",{"type":993,"tag":1027,"props":1053,"children":1055},{"style":1054},"--shiki-default:#005CC5;--shiki-app-dark-mode:#79B8FF",[1056],{"type":999,"value":1057}," True\n",{"type":993,"tag":1027,"props":1059,"children":1060},{"class":1029,"line":36},[1061,1066,1070],{"type":993,"tag":1027,"props":1062,"children":1063},{"style":1042},[1064],{"type":999,"value":1065},"is_raining ",{"type":993,"tag":1027,"props":1067,"children":1068},{"style":1048},[1069],{"type":999,"value":1051},{"type":993,"tag":1027,"props":1071,"children":1072},{"style":1054},[1073],{"type":999,"value":1074}," False\n",{"type":993,"tag":1027,"props":1076,"children":1077},{"class":1029,"line":45},[1078,1083,1087],{"type":993,"tag":1027,"props":1079,"children":1080},{"style":1042},[1081],{"type":999,"value":1082},"temperature ",{"type":993,"tag":1027,"props":1084,"children":1085},{"style":1048},[1086],{"type":999,"value":1051},{"type":993,"tag":1027,"props":1088,"children":1089},{"style":1054},[1090],{"type":999,"value":1091}," 75\n",{"type":993,"tag":1027,"props":1093,"children":1094},{"class":1029,"line":54},[1095],{"type":993,"tag":1027,"props":1096,"children":1097},{"emptyLinePlaceholder":13},[1098],{"type":999,"value":1099},"\n",{"type":993,"tag":1027,"props":1101,"children":1102},{"class":1029,"line":63},[1103,1108,1113,1118,1124,1129,1134,1139,1144,1149],{"type":993,"tag":1027,"props":1104,"children":1105},{"style":1054},[1106],{"type":999,"value":1107},"print",{"type":993,"tag":1027,"props":1109,"children":1110},{"style":1042},[1111],{"type":999,"value":1112},"(",{"type":993,"tag":1027,"props":1114,"children":1115},{"style":1048},[1116],{"type":999,"value":1117},"f",{"type":993,"tag":1027,"props":1119,"children":1121},{"style":1120},"--shiki-default:#032F62;--shiki-app-dark-mode:#9ECBFF",[1122],{"type":999,"value":1123},"\"Sunny: ",{"type":993,"tag":1027,"props":1125,"children":1126},{"style":1054},[1127],{"type":999,"value":1128},"{",{"type":993,"tag":1027,"props":1130,"children":1131},{"style":1042},[1132],{"type":999,"value":1133},"is_sunny",{"type":993,"tag":1027,"props":1135,"children":1136},{"style":1054},[1137],{"type":999,"value":1138},"}",{"type":993,"tag":1027,"props":1140,"children":1141},{"style":1120},[1142],{"type":999,"value":1143},"\"",{"type":993,"tag":1027,"props":1145,"children":1146},{"style":1042},[1147],{"type":999,"value":1148},")                    ",{"type":993,"tag":1027,"props":1150,"children":1151},{"style":1033},[1152],{"type":999,"value":1153},"# True\n",{"type":993,"tag":1027,"props":1155,"children":1156},{"class":1029,"line":72},[1157,1161,1165,1169,1174,1178,1183,1187,1191,1196],{"type":993,"tag":1027,"props":1158,"children":1159},{"style":1054},[1160],{"type":999,"value":1107},{"type":993,"tag":1027,"props":1162,"children":1163},{"style":1042},[1164],{"type":999,"value":1112},{"type":993,"tag":1027,"props":1166,"children":1167},{"style":1048},[1168],{"type":999,"value":1117},{"type":993,"tag":1027,"props":1170,"children":1171},{"style":1120},[1172],{"type":999,"value":1173},"\"Raining: ",{"type":993,"tag":1027,"props":1175,"children":1176},{"style":1054},[1177],{"type":999,"value":1128},{"type":993,"tag":1027,"props":1179,"children":1180},{"style":1042},[1181],{"type":999,"value":1182},"is_raining",{"type":993,"tag":1027,"props":1184,"children":1185},{"style":1054},[1186],{"type":999,"value":1138},{"type":993,"tag":1027,"props":1188,"children":1189},{"style":1120},[1190],{"type":999,"value":1143},{"type":993,"tag":1027,"props":1192,"children":1193},{"style":1042},[1194],{"type":999,"value":1195},")               ",{"type":993,"tag":1027,"props":1197,"children":1198},{"style":1033},[1199],{"type":999,"value":1200},"# False\n",{"type":993,"tag":1027,"props":1202,"children":1203},{"class":1029,"line":81},[1204,1208,1212,1216,1221,1225,1229,1234,1239,1244,1249,1253,1258],{"type":993,"tag":1027,"props":1205,"children":1206},{"style":1054},[1207],{"type":999,"value":1107},{"type":993,"tag":1027,"props":1209,"children":1210},{"style":1042},[1211],{"type":999,"value":1112},{"type":993,"tag":1027,"props":1213,"children":1214},{"style":1048},[1215],{"type":999,"value":1117},{"type":993,"tag":1027,"props":1217,"children":1218},{"style":1120},[1219],{"type":999,"value":1220},"\"Nice weather: ",{"type":993,"tag":1027,"props":1222,"children":1223},{"style":1054},[1224],{"type":999,"value":1128},{"type":993,"tag":1027,"props":1226,"children":1227},{"style":1042},[1228],{"type":999,"value":1045},{"type":993,"tag":1027,"props":1230,"children":1231},{"style":1048},[1232],{"type":999,"value":1233},"and",{"type":993,"tag":1027,"props":1235,"children":1236},{"style":1042},[1237],{"type":999,"value":1238}," temperature ",{"type":993,"tag":1027,"props":1240,"children":1241},{"style":1048},[1242],{"type":999,"value":1243},">",{"type":993,"tag":1027,"props":1245,"children":1246},{"style":1054},[1247],{"type":999,"value":1248}," 70}",{"type":993,"tag":1027,"props":1250,"children":1251},{"style":1120},[1252],{"type":999,"value":1143},{"type":993,"tag":1027,"props":1254,"children":1255},{"style":1042},[1256],{"type":999,"value":1257},")  ",{"type":993,"tag":1027,"props":1259,"children":1260},{"style":1033},[1261],{"type":999,"value":1153},{"type":993,"tag":1263,"props":1264,"children":1266},"h2",{"id":1265},"boolean-fundamentals",[1267],{"type":999,"value":1268},"🎯 Boolean Fundamentals",{"type":993,"tag":1002,"props":1270,"children":1271},{},[1272,1274,1280,1282,1288],{"type":999,"value":1273},"Booleans represent one of two possible values: ",{"type":993,"tag":1023,"props":1275,"children":1277},{"className":1276},[],[1278],{"type":999,"value":1279},"True",{"type":999,"value":1281}," or ",{"type":993,"tag":1023,"props":1283,"children":1285},{"className":1284},[],[1286],{"type":999,"value":1287},"False",{"type":999,"value":1289},". These values are the foundation of all logical operations in programming, from simple comparisons to complex decision-making algorithms.",{"type":993,"tag":1291,"props":1292,"children":1296},"info-box",{"emoji":1293,"title":1294,"type":1295},"🔍","Boolean Basics","info",[1297,1306,1331,1339,1372,1380],{"type":993,"tag":1002,"props":1298,"children":1299},{},[1300],{"type":993,"tag":1301,"props":1302,"children":1303},"strong",{},[1304],{"type":999,"value":1305},"The Two Values:",{"type":993,"tag":1307,"props":1308,"children":1309},"ul",{},[1310,1321],{"type":993,"tag":1311,"props":1312,"children":1313},"li",{},[1314,1319],{"type":993,"tag":1023,"props":1315,"children":1317},{"className":1316},[],[1318],{"type":999,"value":1279},{"type":999,"value":1320}," - represents yes, on, correct, success",{"type":993,"tag":1311,"props":1322,"children":1323},{},[1324,1329],{"type":993,"tag":1023,"props":1325,"children":1327},{"className":1326},[],[1328],{"type":999,"value":1287},{"type":999,"value":1330}," - represents no, off, incorrect, failure",{"type":993,"tag":1002,"props":1332,"children":1333},{},[1334],{"type":993,"tag":1301,"props":1335,"children":1336},{},[1337],{"type":999,"value":1338},"Important Rules:",{"type":993,"tag":1307,"props":1340,"children":1341},{},[1342,1347,1352],{"type":993,"tag":1311,"props":1343,"children":1344},{},[1345],{"type":999,"value":1346},"Case-sensitive (must be capitalized exactly)",{"type":993,"tag":1311,"props":1348,"children":1349},{},[1350],{"type":999,"value":1351},"Used for logical operations and decision-making",{"type":993,"tag":1311,"props":1353,"children":1354},{},[1355,1357,1363,1365,1370],{"type":999,"value":1356},"Result from comparison operations (",{"type":993,"tag":1023,"props":1358,"children":1360},{"className":1359},[],[1361],{"type":999,"value":1362},"5 > 3",{"type":999,"value":1364}," returns ",{"type":993,"tag":1023,"props":1366,"children":1368},{"className":1367},[],[1369],{"type":999,"value":1279},{"type":999,"value":1371},")",{"type":993,"tag":1002,"props":1373,"children":1374},{},[1375],{"type":993,"tag":1301,"props":1376,"children":1377},{},[1378],{"type":999,"value":1379},"Common Uses:",{"type":993,"tag":1307,"props":1381,"children":1382},{},[1383,1388,1393],{"type":993,"tag":1311,"props":1384,"children":1385},{},[1386],{"type":999,"value":1387},"Storing on/off, enabled/disabled states",{"type":993,"tag":1311,"props":1389,"children":1390},{},[1391],{"type":999,"value":1392},"Controlling program flow (if statements, loops)",{"type":993,"tag":1311,"props":1394,"children":1395},{},[1396],{"type":999,"value":1397},"Flags to track program state",{"type":993,"tag":1399,"props":1400,"children":1402},"h3",{"id":1401},"creating-boolean-variables",[1403],{"type":999,"value":1404},"Creating Boolean Variables",{"type":993,"tag":1013,"props":1406,"children":1407},{},[1408],{"type":993,"tag":1017,"props":1409,"children":1411},{"className":1019,"code":1410,"language":6,"meta":8,"style":8},"# Creating boolean variables\nis_logged_in = True\nhas_permission = False\ngame_over = False\n\nprint(f\"User logged in: {is_logged_in}\")\nprint(f\"Has permission: {has_permission}\")\nprint(f\"Game over: {game_over}\")\n",[1412],{"type":993,"tag":1023,"props":1413,"children":1414},{"__ignoreMap":8},[1415,1423,1439,1455,1471,1478,1520,1561],{"type":993,"tag":1027,"props":1416,"children":1417},{"class":1029,"line":12},[1418],{"type":993,"tag":1027,"props":1419,"children":1420},{"style":1033},[1421],{"type":999,"value":1422},"# Creating boolean variables\n",{"type":993,"tag":1027,"props":1424,"children":1425},{"class":1029,"line":27},[1426,1431,1435],{"type":993,"tag":1027,"props":1427,"children":1428},{"style":1042},[1429],{"type":999,"value":1430},"is_logged_in ",{"type":993,"tag":1027,"props":1432,"children":1433},{"style":1048},[1434],{"type":999,"value":1051},{"type":993,"tag":1027,"props":1436,"children":1437},{"style":1054},[1438],{"type":999,"value":1057},{"type":993,"tag":1027,"props":1440,"children":1441},{"class":1029,"line":36},[1442,1447,1451],{"type":993,"tag":1027,"props":1443,"children":1444},{"style":1042},[1445],{"type":999,"value":1446},"has_permission ",{"type":993,"tag":1027,"props":1448,"children":1449},{"style":1048},[1450],{"type":999,"value":1051},{"type":993,"tag":1027,"props":1452,"children":1453},{"style":1054},[1454],{"type":999,"value":1074},{"type":993,"tag":1027,"props":1456,"children":1457},{"class":1029,"line":45},[1458,1463,1467],{"type":993,"tag":1027,"props":1459,"children":1460},{"style":1042},[1461],{"type":999,"value":1462},"game_over ",{"type":993,"tag":1027,"props":1464,"children":1465},{"style":1048},[1466],{"type":999,"value":1051},{"type":993,"tag":1027,"props":1468,"children":1469},{"style":1054},[1470],{"type":999,"value":1074},{"type":993,"tag":1027,"props":1472,"children":1473},{"class":1029,"line":54},[1474],{"type":993,"tag":1027,"props":1475,"children":1476},{"emptyLinePlaceholder":13},[1477],{"type":999,"value":1099},{"type":993,"tag":1027,"props":1479,"children":1480},{"class":1029,"line":63},[1481,1485,1489,1493,1498,1502,1507,1511,1515],{"type":993,"tag":1027,"props":1482,"children":1483},{"style":1054},[1484],{"type":999,"value":1107},{"type":993,"tag":1027,"props":1486,"children":1487},{"style":1042},[1488],{"type":999,"value":1112},{"type":993,"tag":1027,"props":1490,"children":1491},{"style":1048},[1492],{"type":999,"value":1117},{"type":993,"tag":1027,"props":1494,"children":1495},{"style":1120},[1496],{"type":999,"value":1497},"\"User logged in: ",{"type":993,"tag":1027,"props":1499,"children":1500},{"style":1054},[1501],{"type":999,"value":1128},{"type":993,"tag":1027,"props":1503,"children":1504},{"style":1042},[1505],{"type":999,"value":1506},"is_logged_in",{"type":993,"tag":1027,"props":1508,"children":1509},{"style":1054},[1510],{"type":999,"value":1138},{"type":993,"tag":1027,"props":1512,"children":1513},{"style":1120},[1514],{"type":999,"value":1143},{"type":993,"tag":1027,"props":1516,"children":1517},{"style":1042},[1518],{"type":999,"value":1519},")\n",{"type":993,"tag":1027,"props":1521,"children":1522},{"class":1029,"line":72},[1523,1527,1531,1535,1540,1544,1549,1553,1557],{"type":993,"tag":1027,"props":1524,"children":1525},{"style":1054},[1526],{"type":999,"value":1107},{"type":993,"tag":1027,"props":1528,"children":1529},{"style":1042},[1530],{"type":999,"value":1112},{"type":993,"tag":1027,"props":1532,"children":1533},{"style":1048},[1534],{"type":999,"value":1117},{"type":993,"tag":1027,"props":1536,"children":1537},{"style":1120},[1538],{"type":999,"value":1539},"\"Has permission: ",{"type":993,"tag":1027,"props":1541,"children":1542},{"style":1054},[1543],{"type":999,"value":1128},{"type":993,"tag":1027,"props":1545,"children":1546},{"style":1042},[1547],{"type":999,"value":1548},"has_permission",{"type":993,"tag":1027,"props":1550,"children":1551},{"style":1054},[1552],{"type":999,"value":1138},{"type":993,"tag":1027,"props":1554,"children":1555},{"style":1120},[1556],{"type":999,"value":1143},{"type":993,"tag":1027,"props":1558,"children":1559},{"style":1042},[1560],{"type":999,"value":1519},{"type":993,"tag":1027,"props":1562,"children":1563},{"class":1029,"line":81},[1564,1568,1572,1576,1581,1585,1590,1594,1598],{"type":993,"tag":1027,"props":1565,"children":1566},{"style":1054},[1567],{"type":999,"value":1107},{"type":993,"tag":1027,"props":1569,"children":1570},{"style":1042},[1571],{"type":999,"value":1112},{"type":993,"tag":1027,"props":1573,"children":1574},{"style":1048},[1575],{"type":999,"value":1117},{"type":993,"tag":1027,"props":1577,"children":1578},{"style":1120},[1579],{"type":999,"value":1580},"\"Game over: ",{"type":993,"tag":1027,"props":1582,"children":1583},{"style":1054},[1584],{"type":999,"value":1128},{"type":993,"tag":1027,"props":1586,"children":1587},{"style":1042},[1588],{"type":999,"value":1589},"game_over",{"type":993,"tag":1027,"props":1591,"children":1592},{"style":1054},[1593],{"type":999,"value":1138},{"type":993,"tag":1027,"props":1595,"children":1596},{"style":1120},[1597],{"type":999,"value":1143},{"type":993,"tag":1027,"props":1599,"children":1600},{"style":1042},[1601],{"type":999,"value":1519},{"type":993,"tag":1399,"props":1603,"children":1605},{"id":1604},"boolean-results-from-comparisons",[1606],{"type":999,"value":1607},"Boolean Results from Comparisons",{"type":993,"tag":1002,"props":1609,"children":1610},{},[1611],{"type":999,"value":1612},"Comparison operations automatically return boolean values, forming the basis for decision-making in programs.",{"type":993,"tag":1013,"props":1614,"children":1615},{},[1616],{"type":993,"tag":1017,"props":1617,"children":1619},{"className":1019,"code":1618,"language":6,"meta":8,"style":8},"# Comparisons return booleans\nage = 25\nis_adult = age >= 18\nis_senior = age >= 65\n\nprint(f\"Age: {age}\")\nprint(f\"Is adult: {is_adult}\")        # True\nprint(f\"Is senior: {is_senior}\")      # False\n",[1620],{"type":993,"tag":1023,"props":1621,"children":1622},{"__ignoreMap":8},[1623,1631,1648,1675,1700,1707,1748,1794],{"type":993,"tag":1027,"props":1624,"children":1625},{"class":1029,"line":12},[1626],{"type":993,"tag":1027,"props":1627,"children":1628},{"style":1033},[1629],{"type":999,"value":1630},"# Comparisons return booleans\n",{"type":993,"tag":1027,"props":1632,"children":1633},{"class":1029,"line":27},[1634,1639,1643],{"type":993,"tag":1027,"props":1635,"children":1636},{"style":1042},[1637],{"type":999,"value":1638},"age ",{"type":993,"tag":1027,"props":1640,"children":1641},{"style":1048},[1642],{"type":999,"value":1051},{"type":993,"tag":1027,"props":1644,"children":1645},{"style":1054},[1646],{"type":999,"value":1647}," 25\n",{"type":993,"tag":1027,"props":1649,"children":1650},{"class":1029,"line":36},[1651,1656,1660,1665,1670],{"type":993,"tag":1027,"props":1652,"children":1653},{"style":1042},[1654],{"type":999,"value":1655},"is_adult ",{"type":993,"tag":1027,"props":1657,"children":1658},{"style":1048},[1659],{"type":999,"value":1051},{"type":993,"tag":1027,"props":1661,"children":1662},{"style":1042},[1663],{"type":999,"value":1664}," age ",{"type":993,"tag":1027,"props":1666,"children":1667},{"style":1048},[1668],{"type":999,"value":1669},">=",{"type":993,"tag":1027,"props":1671,"children":1672},{"style":1054},[1673],{"type":999,"value":1674}," 18\n",{"type":993,"tag":1027,"props":1676,"children":1677},{"class":1029,"line":45},[1678,1683,1687,1691,1695],{"type":993,"tag":1027,"props":1679,"children":1680},{"style":1042},[1681],{"type":999,"value":1682},"is_senior ",{"type":993,"tag":1027,"props":1684,"children":1685},{"style":1048},[1686],{"type":999,"value":1051},{"type":993,"tag":1027,"props":1688,"children":1689},{"style":1042},[1690],{"type":999,"value":1664},{"type":993,"tag":1027,"props":1692,"children":1693},{"style":1048},[1694],{"type":999,"value":1669},{"type":993,"tag":1027,"props":1696,"children":1697},{"style":1054},[1698],{"type":999,"value":1699}," 65\n",{"type":993,"tag":1027,"props":1701,"children":1702},{"class":1029,"line":54},[1703],{"type":993,"tag":1027,"props":1704,"children":1705},{"emptyLinePlaceholder":13},[1706],{"type":999,"value":1099},{"type":993,"tag":1027,"props":1708,"children":1709},{"class":1029,"line":63},[1710,1714,1718,1722,1727,1731,1736,1740,1744],{"type":993,"tag":1027,"props":1711,"children":1712},{"style":1054},[1713],{"type":999,"value":1107},{"type":993,"tag":1027,"props":1715,"children":1716},{"style":1042},[1717],{"type":999,"value":1112},{"type":993,"tag":1027,"props":1719,"children":1720},{"style":1048},[1721],{"type":999,"value":1117},{"type":993,"tag":1027,"props":1723,"children":1724},{"style":1120},[1725],{"type":999,"value":1726},"\"Age: ",{"type":993,"tag":1027,"props":1728,"children":1729},{"style":1054},[1730],{"type":999,"value":1128},{"type":993,"tag":1027,"props":1732,"children":1733},{"style":1042},[1734],{"type":999,"value":1735},"age",{"type":993,"tag":1027,"props":1737,"children":1738},{"style":1054},[1739],{"type":999,"value":1138},{"type":993,"tag":1027,"props":1741,"children":1742},{"style":1120},[1743],{"type":999,"value":1143},{"type":993,"tag":1027,"props":1745,"children":1746},{"style":1042},[1747],{"type":999,"value":1519},{"type":993,"tag":1027,"props":1749,"children":1750},{"class":1029,"line":72},[1751,1755,1759,1763,1768,1772,1777,1781,1785,1790],{"type":993,"tag":1027,"props":1752,"children":1753},{"style":1054},[1754],{"type":999,"value":1107},{"type":993,"tag":1027,"props":1756,"children":1757},{"style":1042},[1758],{"type":999,"value":1112},{"type":993,"tag":1027,"props":1760,"children":1761},{"style":1048},[1762],{"type":999,"value":1117},{"type":993,"tag":1027,"props":1764,"children":1765},{"style":1120},[1766],{"type":999,"value":1767},"\"Is adult: ",{"type":993,"tag":1027,"props":1769,"children":1770},{"style":1054},[1771],{"type":999,"value":1128},{"type":993,"tag":1027,"props":1773,"children":1774},{"style":1042},[1775],{"type":999,"value":1776},"is_adult",{"type":993,"tag":1027,"props":1778,"children":1779},{"style":1054},[1780],{"type":999,"value":1138},{"type":993,"tag":1027,"props":1782,"children":1783},{"style":1120},[1784],{"type":999,"value":1143},{"type":993,"tag":1027,"props":1786,"children":1787},{"style":1042},[1788],{"type":999,"value":1789},")        ",{"type":993,"tag":1027,"props":1791,"children":1792},{"style":1033},[1793],{"type":999,"value":1153},{"type":993,"tag":1027,"props":1795,"children":1796},{"class":1029,"line":81},[1797,1801,1805,1809,1814,1818,1823,1827,1831,1836],{"type":993,"tag":1027,"props":1798,"children":1799},{"style":1054},[1800],{"type":999,"value":1107},{"type":993,"tag":1027,"props":1802,"children":1803},{"style":1042},[1804],{"type":999,"value":1112},{"type":993,"tag":1027,"props":1806,"children":1807},{"style":1048},[1808],{"type":999,"value":1117},{"type":993,"tag":1027,"props":1810,"children":1811},{"style":1120},[1812],{"type":999,"value":1813},"\"Is senior: ",{"type":993,"tag":1027,"props":1815,"children":1816},{"style":1054},[1817],{"type":999,"value":1128},{"type":993,"tag":1027,"props":1819,"children":1820},{"style":1042},[1821],{"type":999,"value":1822},"is_senior",{"type":993,"tag":1027,"props":1824,"children":1825},{"style":1054},[1826],{"type":999,"value":1138},{"type":993,"tag":1027,"props":1828,"children":1829},{"style":1120},[1830],{"type":999,"value":1143},{"type":993,"tag":1027,"props":1832,"children":1833},{"style":1042},[1834],{"type":999,"value":1835},")      ",{"type":993,"tag":1027,"props":1837,"children":1838},{"style":1033},[1839],{"type":999,"value":1200},{"type":993,"tag":1263,"props":1841,"children":1843},{"id":1842},"logical-operators",[1844],{"type":999,"value":1845},"🔗 Logical Operators",{"type":993,"tag":1002,"props":1847,"children":1848},{},[1849,1851,1856,1858,1864,1866,1872],{"type":999,"value":1850},"Python provides three main logical operators: ",{"type":993,"tag":1023,"props":1852,"children":1854},{"className":1853},[],[1855],{"type":999,"value":1233},{"type":999,"value":1857},", ",{"type":993,"tag":1023,"props":1859,"children":1861},{"className":1860},[],[1862],{"type":999,"value":1863},"or",{"type":999,"value":1865},", and ",{"type":993,"tag":1023,"props":1867,"children":1869},{"className":1868},[],[1870],{"type":999,"value":1871},"not",{"type":999,"value":1873},". These operators let you combine multiple conditions and create complex logical expressions.",{"type":993,"tag":1291,"props":1875,"children":1879},{"emoji":1876,"title":1877,"type":1878},"🧠","Logical Operators","success",[1880,1888,1965,1973],{"type":993,"tag":1002,"props":1881,"children":1882},{},[1883],{"type":993,"tag":1301,"props":1884,"children":1885},{},[1886],{"type":999,"value":1887},"Main Operators:",{"type":993,"tag":1307,"props":1889,"children":1890},{},[1891,1920,1948],{"type":993,"tag":1311,"props":1892,"children":1893},{},[1894,1899,1901,1906,1908,1913,1915],{"type":993,"tag":1023,"props":1895,"children":1897},{"className":1896},[],[1898],{"type":999,"value":1233},{"type":999,"value":1900},": Returns ",{"type":993,"tag":1023,"props":1902,"children":1904},{"className":1903},[],[1905],{"type":999,"value":1279},{"type":999,"value":1907}," only if ",{"type":993,"tag":1301,"props":1909,"children":1910},{},[1911],{"type":999,"value":1912},"both",{"type":999,"value":1914}," conditions are ",{"type":993,"tag":1023,"props":1916,"children":1918},{"className":1917},[],[1919],{"type":999,"value":1279},{"type":993,"tag":1311,"props":1921,"children":1922},{},[1923,1928,1929,1934,1936,1941,1943],{"type":993,"tag":1023,"props":1924,"children":1926},{"className":1925},[],[1927],{"type":999,"value":1863},{"type":999,"value":1900},{"type":993,"tag":1023,"props":1930,"children":1932},{"className":1931},[],[1933],{"type":999,"value":1279},{"type":999,"value":1935}," if ",{"type":993,"tag":1301,"props":1937,"children":1938},{},[1939],{"type":999,"value":1940},"at least one",{"type":999,"value":1942}," condition is ",{"type":993,"tag":1023,"props":1944,"children":1946},{"className":1945},[],[1947],{"type":999,"value":1279},{"type":993,"tag":1311,"props":1949,"children":1950},{},[1951,1956,1958,1963],{"type":993,"tag":1023,"props":1952,"children":1954},{"className":1953},[],[1955],{"type":999,"value":1871},{"type":999,"value":1957},": ",{"type":993,"tag":1301,"props":1959,"children":1960},{},[1961],{"type":999,"value":1962},"Reverses",{"type":999,"value":1964}," the boolean value",{"type":993,"tag":1002,"props":1966,"children":1967},{},[1968],{"type":993,"tag":1301,"props":1969,"children":1970},{},[1971],{"type":999,"value":1972},"Truth Table:",{"type":993,"tag":1307,"props":1974,"children":1975},{},[1976,1992,2007,2022,2037],{"type":993,"tag":1311,"props":1977,"children":1978},{},[1979,1985,1987],{"type":993,"tag":1023,"props":1980,"children":1982},{"className":1981},[],[1983],{"type":999,"value":1984},"True and True",{"type":999,"value":1986}," = ",{"type":993,"tag":1023,"props":1988,"children":1990},{"className":1989},[],[1991],{"type":999,"value":1279},{"type":993,"tag":1311,"props":1993,"children":1994},{},[1995,2001,2002],{"type":993,"tag":1023,"props":1996,"children":1998},{"className":1997},[],[1999],{"type":999,"value":2000},"True and False",{"type":999,"value":1986},{"type":993,"tag":1023,"props":2003,"children":2005},{"className":2004},[],[2006],{"type":999,"value":1287},{"type":993,"tag":1311,"props":2008,"children":2009},{},[2010,2016,2017],{"type":993,"tag":1023,"props":2011,"children":2013},{"className":2012},[],[2014],{"type":999,"value":2015},"True or False",{"type":999,"value":1986},{"type":993,"tag":1023,"props":2018,"children":2020},{"className":2019},[],[2021],{"type":999,"value":1279},{"type":993,"tag":1311,"props":2023,"children":2024},{},[2025,2031,2032],{"type":993,"tag":1023,"props":2026,"children":2028},{"className":2027},[],[2029],{"type":999,"value":2030},"False or False",{"type":999,"value":1986},{"type":993,"tag":1023,"props":2033,"children":2035},{"className":2034},[],[2036],{"type":999,"value":1287},{"type":993,"tag":1311,"props":2038,"children":2039},{},[2040,2046,2047],{"type":993,"tag":1023,"props":2041,"children":2043},{"className":2042},[],[2044],{"type":999,"value":2045},"not True",{"type":999,"value":1986},{"type":993,"tag":1023,"props":2048,"children":2050},{"className":2049},[],[2051],{"type":999,"value":1287},{"type":993,"tag":1399,"props":2053,"children":2055},{"id":2054},"and-logic-all-must-be-true",[2056],{"type":999,"value":2057},"AND Logic - All Must Be True",{"type":993,"tag":1013,"props":2059,"children":2060},{},[2061],{"type":993,"tag":1017,"props":2062,"children":2064},{"className":1019,"code":2063,"language":6,"meta":8,"style":8},"# AND logic - all conditions must be true\nage = 25\nhas_license = True\nhas_insurance = True\n\ncan_drive = age >= 18 and has_license and has_insurance\nprint(f\"Can drive: {can_drive}\")      # True\n\n# Example with false condition\nhas_car = False\ncan_drive_today = can_drive and has_car\nprint(f\"Can drive today: {can_drive_today}\")  # False\n",[2065],{"type":993,"tag":1023,"props":2066,"children":2067},{"__ignoreMap":8},[2068,2076,2091,2107,2123,2130,2174,2219,2226,2234,2250,2276],{"type":993,"tag":1027,"props":2069,"children":2070},{"class":1029,"line":12},[2071],{"type":993,"tag":1027,"props":2072,"children":2073},{"style":1033},[2074],{"type":999,"value":2075},"# AND logic - all conditions must be true\n",{"type":993,"tag":1027,"props":2077,"children":2078},{"class":1029,"line":27},[2079,2083,2087],{"type":993,"tag":1027,"props":2080,"children":2081},{"style":1042},[2082],{"type":999,"value":1638},{"type":993,"tag":1027,"props":2084,"children":2085},{"style":1048},[2086],{"type":999,"value":1051},{"type":993,"tag":1027,"props":2088,"children":2089},{"style":1054},[2090],{"type":999,"value":1647},{"type":993,"tag":1027,"props":2092,"children":2093},{"class":1029,"line":36},[2094,2099,2103],{"type":993,"tag":1027,"props":2095,"children":2096},{"style":1042},[2097],{"type":999,"value":2098},"has_license ",{"type":993,"tag":1027,"props":2100,"children":2101},{"style":1048},[2102],{"type":999,"value":1051},{"type":993,"tag":1027,"props":2104,"children":2105},{"style":1054},[2106],{"type":999,"value":1057},{"type":993,"tag":1027,"props":2108,"children":2109},{"class":1029,"line":45},[2110,2115,2119],{"type":993,"tag":1027,"props":2111,"children":2112},{"style":1042},[2113],{"type":999,"value":2114},"has_insurance ",{"type":993,"tag":1027,"props":2116,"children":2117},{"style":1048},[2118],{"type":999,"value":1051},{"type":993,"tag":1027,"props":2120,"children":2121},{"style":1054},[2122],{"type":999,"value":1057},{"type":993,"tag":1027,"props":2124,"children":2125},{"class":1029,"line":54},[2126],{"type":993,"tag":1027,"props":2127,"children":2128},{"emptyLinePlaceholder":13},[2129],{"type":999,"value":1099},{"type":993,"tag":1027,"props":2131,"children":2132},{"class":1029,"line":63},[2133,2138,2142,2146,2150,2155,2160,2165,2169],{"type":993,"tag":1027,"props":2134,"children":2135},{"style":1042},[2136],{"type":999,"value":2137},"can_drive ",{"type":993,"tag":1027,"props":2139,"children":2140},{"style":1048},[2141],{"type":999,"value":1051},{"type":993,"tag":1027,"props":2143,"children":2144},{"style":1042},[2145],{"type":999,"value":1664},{"type":993,"tag":1027,"props":2147,"children":2148},{"style":1048},[2149],{"type":999,"value":1669},{"type":993,"tag":1027,"props":2151,"children":2152},{"style":1054},[2153],{"type":999,"value":2154}," 18",{"type":993,"tag":1027,"props":2156,"children":2157},{"style":1048},[2158],{"type":999,"value":2159}," and",{"type":993,"tag":1027,"props":2161,"children":2162},{"style":1042},[2163],{"type":999,"value":2164}," has_license ",{"type":993,"tag":1027,"props":2166,"children":2167},{"style":1048},[2168],{"type":999,"value":1233},{"type":993,"tag":1027,"props":2170,"children":2171},{"style":1042},[2172],{"type":999,"value":2173}," has_insurance\n",{"type":993,"tag":1027,"props":2175,"children":2176},{"class":1029,"line":72},[2177,2181,2185,2189,2194,2198,2203,2207,2211,2215],{"type":993,"tag":1027,"props":2178,"children":2179},{"style":1054},[2180],{"type":999,"value":1107},{"type":993,"tag":1027,"props":2182,"children":2183},{"style":1042},[2184],{"type":999,"value":1112},{"type":993,"tag":1027,"props":2186,"children":2187},{"style":1048},[2188],{"type":999,"value":1117},{"type":993,"tag":1027,"props":2190,"children":2191},{"style":1120},[2192],{"type":999,"value":2193},"\"Can drive: ",{"type":993,"tag":1027,"props":2195,"children":2196},{"style":1054},[2197],{"type":999,"value":1128},{"type":993,"tag":1027,"props":2199,"children":2200},{"style":1042},[2201],{"type":999,"value":2202},"can_drive",{"type":993,"tag":1027,"props":2204,"children":2205},{"style":1054},[2206],{"type":999,"value":1138},{"type":993,"tag":1027,"props":2208,"children":2209},{"style":1120},[2210],{"type":999,"value":1143},{"type":993,"tag":1027,"props":2212,"children":2213},{"style":1042},[2214],{"type":999,"value":1835},{"type":993,"tag":1027,"props":2216,"children":2217},{"style":1033},[2218],{"type":999,"value":1153},{"type":993,"tag":1027,"props":2220,"children":2221},{"class":1029,"line":81},[2222],{"type":993,"tag":1027,"props":2223,"children":2224},{"emptyLinePlaceholder":13},[2225],{"type":999,"value":1099},{"type":993,"tag":1027,"props":2227,"children":2228},{"class":1029,"line":91},[2229],{"type":993,"tag":1027,"props":2230,"children":2231},{"style":1033},[2232],{"type":999,"value":2233},"# Example with false condition\n",{"type":993,"tag":1027,"props":2235,"children":2236},{"class":1029,"line":100},[2237,2242,2246],{"type":993,"tag":1027,"props":2238,"children":2239},{"style":1042},[2240],{"type":999,"value":2241},"has_car ",{"type":993,"tag":1027,"props":2243,"children":2244},{"style":1048},[2245],{"type":999,"value":1051},{"type":993,"tag":1027,"props":2247,"children":2248},{"style":1054},[2249],{"type":999,"value":1074},{"type":993,"tag":1027,"props":2251,"children":2252},{"class":1029,"line":109},[2253,2258,2262,2267,2271],{"type":993,"tag":1027,"props":2254,"children":2255},{"style":1042},[2256],{"type":999,"value":2257},"can_drive_today ",{"type":993,"tag":1027,"props":2259,"children":2260},{"style":1048},[2261],{"type":999,"value":1051},{"type":993,"tag":1027,"props":2263,"children":2264},{"style":1042},[2265],{"type":999,"value":2266}," can_drive ",{"type":993,"tag":1027,"props":2268,"children":2269},{"style":1048},[2270],{"type":999,"value":1233},{"type":993,"tag":1027,"props":2272,"children":2273},{"style":1042},[2274],{"type":999,"value":2275}," has_car\n",{"type":993,"tag":1027,"props":2277,"children":2278},{"class":1029,"line":118},[2279,2283,2287,2291,2296,2300,2305,2309,2313,2317],{"type":993,"tag":1027,"props":2280,"children":2281},{"style":1054},[2282],{"type":999,"value":1107},{"type":993,"tag":1027,"props":2284,"children":2285},{"style":1042},[2286],{"type":999,"value":1112},{"type":993,"tag":1027,"props":2288,"children":2289},{"style":1048},[2290],{"type":999,"value":1117},{"type":993,"tag":1027,"props":2292,"children":2293},{"style":1120},[2294],{"type":999,"value":2295},"\"Can drive today: ",{"type":993,"tag":1027,"props":2297,"children":2298},{"style":1054},[2299],{"type":999,"value":1128},{"type":993,"tag":1027,"props":2301,"children":2302},{"style":1042},[2303],{"type":999,"value":2304},"can_drive_today",{"type":993,"tag":1027,"props":2306,"children":2307},{"style":1054},[2308],{"type":999,"value":1138},{"type":993,"tag":1027,"props":2310,"children":2311},{"style":1120},[2312],{"type":999,"value":1143},{"type":993,"tag":1027,"props":2314,"children":2315},{"style":1042},[2316],{"type":999,"value":1257},{"type":993,"tag":1027,"props":2318,"children":2319},{"style":1033},[2320],{"type":999,"value":1200},{"type":993,"tag":1399,"props":2322,"children":2324},{"id":2323},"or-logic-at-least-one-must-be-true",[2325],{"type":999,"value":2326},"OR Logic - At Least One Must Be True",{"type":993,"tag":1013,"props":2328,"children":2329},{},[2330],{"type":993,"tag":1017,"props":2331,"children":2333},{"className":1019,"code":2332,"language":6,"meta":8,"style":8},"# OR logic - at least one condition must be true\nis_weekend = True\nis_holiday = False\nhas_vacation = False\n\ncan_relax = is_weekend or is_holiday or has_vacation\nprint(f\"Can relax: {can_relax}\")      # True\n\n# Payment method example\nhas_cash = False\nhas_card = True\ncan_pay = has_cash or has_card\nprint(f\"Can pay: {can_pay}\")          # True\n",[2334],{"type":993,"tag":1023,"props":2335,"children":2336},{"__ignoreMap":8},[2337,2345,2361,2377,2393,2400,2435,2480,2487,2495,2511,2527,2553],{"type":993,"tag":1027,"props":2338,"children":2339},{"class":1029,"line":12},[2340],{"type":993,"tag":1027,"props":2341,"children":2342},{"style":1033},[2343],{"type":999,"value":2344},"# OR logic - at least one condition must be true\n",{"type":993,"tag":1027,"props":2346,"children":2347},{"class":1029,"line":27},[2348,2353,2357],{"type":993,"tag":1027,"props":2349,"children":2350},{"style":1042},[2351],{"type":999,"value":2352},"is_weekend ",{"type":993,"tag":1027,"props":2354,"children":2355},{"style":1048},[2356],{"type":999,"value":1051},{"type":993,"tag":1027,"props":2358,"children":2359},{"style":1054},[2360],{"type":999,"value":1057},{"type":993,"tag":1027,"props":2362,"children":2363},{"class":1029,"line":36},[2364,2369,2373],{"type":993,"tag":1027,"props":2365,"children":2366},{"style":1042},[2367],{"type":999,"value":2368},"is_holiday ",{"type":993,"tag":1027,"props":2370,"children":2371},{"style":1048},[2372],{"type":999,"value":1051},{"type":993,"tag":1027,"props":2374,"children":2375},{"style":1054},[2376],{"type":999,"value":1074},{"type":993,"tag":1027,"props":2378,"children":2379},{"class":1029,"line":45},[2380,2385,2389],{"type":993,"tag":1027,"props":2381,"children":2382},{"style":1042},[2383],{"type":999,"value":2384},"has_vacation ",{"type":993,"tag":1027,"props":2386,"children":2387},{"style":1048},[2388],{"type":999,"value":1051},{"type":993,"tag":1027,"props":2390,"children":2391},{"style":1054},[2392],{"type":999,"value":1074},{"type":993,"tag":1027,"props":2394,"children":2395},{"class":1029,"line":54},[2396],{"type":993,"tag":1027,"props":2397,"children":2398},{"emptyLinePlaceholder":13},[2399],{"type":999,"value":1099},{"type":993,"tag":1027,"props":2401,"children":2402},{"class":1029,"line":63},[2403,2408,2412,2417,2421,2426,2430],{"type":993,"tag":1027,"props":2404,"children":2405},{"style":1042},[2406],{"type":999,"value":2407},"can_relax ",{"type":993,"tag":1027,"props":2409,"children":2410},{"style":1048},[2411],{"type":999,"value":1051},{"type":993,"tag":1027,"props":2413,"children":2414},{"style":1042},[2415],{"type":999,"value":2416}," is_weekend ",{"type":993,"tag":1027,"props":2418,"children":2419},{"style":1048},[2420],{"type":999,"value":1863},{"type":993,"tag":1027,"props":2422,"children":2423},{"style":1042},[2424],{"type":999,"value":2425}," is_holiday ",{"type":993,"tag":1027,"props":2427,"children":2428},{"style":1048},[2429],{"type":999,"value":1863},{"type":993,"tag":1027,"props":2431,"children":2432},{"style":1042},[2433],{"type":999,"value":2434}," has_vacation\n",{"type":993,"tag":1027,"props":2436,"children":2437},{"class":1029,"line":72},[2438,2442,2446,2450,2455,2459,2464,2468,2472,2476],{"type":993,"tag":1027,"props":2439,"children":2440},{"style":1054},[2441],{"type":999,"value":1107},{"type":993,"tag":1027,"props":2443,"children":2444},{"style":1042},[2445],{"type":999,"value":1112},{"type":993,"tag":1027,"props":2447,"children":2448},{"style":1048},[2449],{"type":999,"value":1117},{"type":993,"tag":1027,"props":2451,"children":2452},{"style":1120},[2453],{"type":999,"value":2454},"\"Can relax: ",{"type":993,"tag":1027,"props":2456,"children":2457},{"style":1054},[2458],{"type":999,"value":1128},{"type":993,"tag":1027,"props":2460,"children":2461},{"style":1042},[2462],{"type":999,"value":2463},"can_relax",{"type":993,"tag":1027,"props":2465,"children":2466},{"style":1054},[2467],{"type":999,"value":1138},{"type":993,"tag":1027,"props":2469,"children":2470},{"style":1120},[2471],{"type":999,"value":1143},{"type":993,"tag":1027,"props":2473,"children":2474},{"style":1042},[2475],{"type":999,"value":1835},{"type":993,"tag":1027,"props":2477,"children":2478},{"style":1033},[2479],{"type":999,"value":1153},{"type":993,"tag":1027,"props":2481,"children":2482},{"class":1029,"line":81},[2483],{"type":993,"tag":1027,"props":2484,"children":2485},{"emptyLinePlaceholder":13},[2486],{"type":999,"value":1099},{"type":993,"tag":1027,"props":2488,"children":2489},{"class":1029,"line":91},[2490],{"type":993,"tag":1027,"props":2491,"children":2492},{"style":1033},[2493],{"type":999,"value":2494},"# Payment method example\n",{"type":993,"tag":1027,"props":2496,"children":2497},{"class":1029,"line":100},[2498,2503,2507],{"type":993,"tag":1027,"props":2499,"children":2500},{"style":1042},[2501],{"type":999,"value":2502},"has_cash ",{"type":993,"tag":1027,"props":2504,"children":2505},{"style":1048},[2506],{"type":999,"value":1051},{"type":993,"tag":1027,"props":2508,"children":2509},{"style":1054},[2510],{"type":999,"value":1074},{"type":993,"tag":1027,"props":2512,"children":2513},{"class":1029,"line":109},[2514,2519,2523],{"type":993,"tag":1027,"props":2515,"children":2516},{"style":1042},[2517],{"type":999,"value":2518},"has_card ",{"type":993,"tag":1027,"props":2520,"children":2521},{"style":1048},[2522],{"type":999,"value":1051},{"type":993,"tag":1027,"props":2524,"children":2525},{"style":1054},[2526],{"type":999,"value":1057},{"type":993,"tag":1027,"props":2528,"children":2529},{"class":1029,"line":118},[2530,2535,2539,2544,2548],{"type":993,"tag":1027,"props":2531,"children":2532},{"style":1042},[2533],{"type":999,"value":2534},"can_pay ",{"type":993,"tag":1027,"props":2536,"children":2537},{"style":1048},[2538],{"type":999,"value":1051},{"type":993,"tag":1027,"props":2540,"children":2541},{"style":1042},[2542],{"type":999,"value":2543}," has_cash ",{"type":993,"tag":1027,"props":2545,"children":2546},{"style":1048},[2547],{"type":999,"value":1863},{"type":993,"tag":1027,"props":2549,"children":2550},{"style":1042},[2551],{"type":999,"value":2552}," has_card\n",{"type":993,"tag":1027,"props":2554,"children":2555},{"class":1029,"line":127},[2556,2560,2564,2568,2573,2577,2582,2586,2590,2595],{"type":993,"tag":1027,"props":2557,"children":2558},{"style":1054},[2559],{"type":999,"value":1107},{"type":993,"tag":1027,"props":2561,"children":2562},{"style":1042},[2563],{"type":999,"value":1112},{"type":993,"tag":1027,"props":2565,"children":2566},{"style":1048},[2567],{"type":999,"value":1117},{"type":993,"tag":1027,"props":2569,"children":2570},{"style":1120},[2571],{"type":999,"value":2572},"\"Can pay: ",{"type":993,"tag":1027,"props":2574,"children":2575},{"style":1054},[2576],{"type":999,"value":1128},{"type":993,"tag":1027,"props":2578,"children":2579},{"style":1042},[2580],{"type":999,"value":2581},"can_pay",{"type":993,"tag":1027,"props":2583,"children":2584},{"style":1054},[2585],{"type":999,"value":1138},{"type":993,"tag":1027,"props":2587,"children":2588},{"style":1120},[2589],{"type":999,"value":1143},{"type":993,"tag":1027,"props":2591,"children":2592},{"style":1042},[2593],{"type":999,"value":2594},")          ",{"type":993,"tag":1027,"props":2596,"children":2597},{"style":1033},[2598],{"type":999,"value":1153},{"type":993,"tag":1399,"props":2600,"children":2602},{"id":2601},"not-logic-reverse-the-value",[2603],{"type":999,"value":2604},"NOT Logic - Reverse the Value",{"type":993,"tag":1013,"props":2606,"children":2607},{},[2608],{"type":993,"tag":1017,"props":2609,"children":2611},{"className":1019,"code":2610,"language":6,"meta":8,"style":8},"# NOT logic - reverses the boolean value\nis_raining = False\nis_sunny = not is_raining\n\nprint(f\"Raining: {is_raining}\")       # False\nprint(f\"Sunny: {is_sunny}\")           # True\n\n# Access control example\nis_banned = False\ncan_access = not is_banned\nprint(f\"Can access: {can_access}\")    # True\n",[2612],{"type":993,"tag":1023,"props":2613,"children":2614},{"__ignoreMap":8},[2615,2623,2638,2659,2666,2710,2754,2761,2769,2785,2806],{"type":993,"tag":1027,"props":2616,"children":2617},{"class":1029,"line":12},[2618],{"type":993,"tag":1027,"props":2619,"children":2620},{"style":1033},[2621],{"type":999,"value":2622},"# NOT logic - reverses the boolean value\n",{"type":993,"tag":1027,"props":2624,"children":2625},{"class":1029,"line":27},[2626,2630,2634],{"type":993,"tag":1027,"props":2627,"children":2628},{"style":1042},[2629],{"type":999,"value":1065},{"type":993,"tag":1027,"props":2631,"children":2632},{"style":1048},[2633],{"type":999,"value":1051},{"type":993,"tag":1027,"props":2635,"children":2636},{"style":1054},[2637],{"type":999,"value":1074},{"type":993,"tag":1027,"props":2639,"children":2640},{"class":1029,"line":36},[2641,2645,2649,2654],{"type":993,"tag":1027,"props":2642,"children":2643},{"style":1042},[2644],{"type":999,"value":1045},{"type":993,"tag":1027,"props":2646,"children":2647},{"style":1048},[2648],{"type":999,"value":1051},{"type":993,"tag":1027,"props":2650,"children":2651},{"style":1048},[2652],{"type":999,"value":2653}," not",{"type":993,"tag":1027,"props":2655,"children":2656},{"style":1042},[2657],{"type":999,"value":2658}," is_raining\n",{"type":993,"tag":1027,"props":2660,"children":2661},{"class":1029,"line":45},[2662],{"type":993,"tag":1027,"props":2663,"children":2664},{"emptyLinePlaceholder":13},[2665],{"type":999,"value":1099},{"type":993,"tag":1027,"props":2667,"children":2668},{"class":1029,"line":54},[2669,2673,2677,2681,2685,2689,2693,2697,2701,2706],{"type":993,"tag":1027,"props":2670,"children":2671},{"style":1054},[2672],{"type":999,"value":1107},{"type":993,"tag":1027,"props":2674,"children":2675},{"style":1042},[2676],{"type":999,"value":1112},{"type":993,"tag":1027,"props":2678,"children":2679},{"style":1048},[2680],{"type":999,"value":1117},{"type":993,"tag":1027,"props":2682,"children":2683},{"style":1120},[2684],{"type":999,"value":1173},{"type":993,"tag":1027,"props":2686,"children":2687},{"style":1054},[2688],{"type":999,"value":1128},{"type":993,"tag":1027,"props":2690,"children":2691},{"style":1042},[2692],{"type":999,"value":1182},{"type":993,"tag":1027,"props":2694,"children":2695},{"style":1054},[2696],{"type":999,"value":1138},{"type":993,"tag":1027,"props":2698,"children":2699},{"style":1120},[2700],{"type":999,"value":1143},{"type":993,"tag":1027,"props":2702,"children":2703},{"style":1042},[2704],{"type":999,"value":2705},")       ",{"type":993,"tag":1027,"props":2707,"children":2708},{"style":1033},[2709],{"type":999,"value":1200},{"type":993,"tag":1027,"props":2711,"children":2712},{"class":1029,"line":63},[2713,2717,2721,2725,2729,2733,2737,2741,2745,2750],{"type":993,"tag":1027,"props":2714,"children":2715},{"style":1054},[2716],{"type":999,"value":1107},{"type":993,"tag":1027,"props":2718,"children":2719},{"style":1042},[2720],{"type":999,"value":1112},{"type":993,"tag":1027,"props":2722,"children":2723},{"style":1048},[2724],{"type":999,"value":1117},{"type":993,"tag":1027,"props":2726,"children":2727},{"style":1120},[2728],{"type":999,"value":1123},{"type":993,"tag":1027,"props":2730,"children":2731},{"style":1054},[2732],{"type":999,"value":1128},{"type":993,"tag":1027,"props":2734,"children":2735},{"style":1042},[2736],{"type":999,"value":1133},{"type":993,"tag":1027,"props":2738,"children":2739},{"style":1054},[2740],{"type":999,"value":1138},{"type":993,"tag":1027,"props":2742,"children":2743},{"style":1120},[2744],{"type":999,"value":1143},{"type":993,"tag":1027,"props":2746,"children":2747},{"style":1042},[2748],{"type":999,"value":2749},")           ",{"type":993,"tag":1027,"props":2751,"children":2752},{"style":1033},[2753],{"type":999,"value":1153},{"type":993,"tag":1027,"props":2755,"children":2756},{"class":1029,"line":72},[2757],{"type":993,"tag":1027,"props":2758,"children":2759},{"emptyLinePlaceholder":13},[2760],{"type":999,"value":1099},{"type":993,"tag":1027,"props":2762,"children":2763},{"class":1029,"line":81},[2764],{"type":993,"tag":1027,"props":2765,"children":2766},{"style":1033},[2767],{"type":999,"value":2768},"# Access control example\n",{"type":993,"tag":1027,"props":2770,"children":2771},{"class":1029,"line":91},[2772,2777,2781],{"type":993,"tag":1027,"props":2773,"children":2774},{"style":1042},[2775],{"type":999,"value":2776},"is_banned ",{"type":993,"tag":1027,"props":2778,"children":2779},{"style":1048},[2780],{"type":999,"value":1051},{"type":993,"tag":1027,"props":2782,"children":2783},{"style":1054},[2784],{"type":999,"value":1074},{"type":993,"tag":1027,"props":2786,"children":2787},{"class":1029,"line":100},[2788,2793,2797,2801],{"type":993,"tag":1027,"props":2789,"children":2790},{"style":1042},[2791],{"type":999,"value":2792},"can_access ",{"type":993,"tag":1027,"props":2794,"children":2795},{"style":1048},[2796],{"type":999,"value":1051},{"type":993,"tag":1027,"props":2798,"children":2799},{"style":1048},[2800],{"type":999,"value":2653},{"type":993,"tag":1027,"props":2802,"children":2803},{"style":1042},[2804],{"type":999,"value":2805}," is_banned\n",{"type":993,"tag":1027,"props":2807,"children":2808},{"class":1029,"line":109},[2809,2813,2817,2821,2826,2830,2835,2839,2843,2848],{"type":993,"tag":1027,"props":2810,"children":2811},{"style":1054},[2812],{"type":999,"value":1107},{"type":993,"tag":1027,"props":2814,"children":2815},{"style":1042},[2816],{"type":999,"value":1112},{"type":993,"tag":1027,"props":2818,"children":2819},{"style":1048},[2820],{"type":999,"value":1117},{"type":993,"tag":1027,"props":2822,"children":2823},{"style":1120},[2824],{"type":999,"value":2825},"\"Can access: ",{"type":993,"tag":1027,"props":2827,"children":2828},{"style":1054},[2829],{"type":999,"value":1128},{"type":993,"tag":1027,"props":2831,"children":2832},{"style":1042},[2833],{"type":999,"value":2834},"can_access",{"type":993,"tag":1027,"props":2836,"children":2837},{"style":1054},[2838],{"type":999,"value":1138},{"type":993,"tag":1027,"props":2840,"children":2841},{"style":1120},[2842],{"type":999,"value":1143},{"type":993,"tag":1027,"props":2844,"children":2845},{"style":1042},[2846],{"type":999,"value":2847},")    ",{"type":993,"tag":1027,"props":2849,"children":2850},{"style":1033},[2851],{"type":999,"value":1153},{"type":993,"tag":1399,"props":2853,"children":2855},{"id":2854},"complex-boolean-expressions",[2856],{"type":999,"value":2857},"Complex Boolean Expressions",{"type":993,"tag":1013,"props":2859,"children":2860},{},[2861],{"type":993,"tag":1017,"props":2862,"children":2864},{"className":1019,"code":2863,"language":6,"meta":8,"style":8},"# Complex boolean expressions\nage = 25\nis_student = True\nhas_id = True\nis_member = False\n\n# Complex eligibility check\neligible_for_discount = (age \u003C 30 and is_student) or is_member\ncan_enter = age >= 18 and has_id\nspecial_access = eligible_for_discount and can_enter\n\nprint(f\"Eligible for discount: {eligible_for_discount}\")  # True\nprint(f\"Can enter: {can_enter}\")      # True\nprint(f\"Special access: {special_access}\")  # True\n",[2865],{"type":993,"tag":1023,"props":2866,"children":2867},{"__ignoreMap":8},[2868,2876,2891,2907,2923,2939,2946,2954,2999,3032,3058,3065,3110,3155],{"type":993,"tag":1027,"props":2869,"children":2870},{"class":1029,"line":12},[2871],{"type":993,"tag":1027,"props":2872,"children":2873},{"style":1033},[2874],{"type":999,"value":2875},"# Complex boolean expressions\n",{"type":993,"tag":1027,"props":2877,"children":2878},{"class":1029,"line":27},[2879,2883,2887],{"type":993,"tag":1027,"props":2880,"children":2881},{"style":1042},[2882],{"type":999,"value":1638},{"type":993,"tag":1027,"props":2884,"children":2885},{"style":1048},[2886],{"type":999,"value":1051},{"type":993,"tag":1027,"props":2888,"children":2889},{"style":1054},[2890],{"type":999,"value":1647},{"type":993,"tag":1027,"props":2892,"children":2893},{"class":1029,"line":36},[2894,2899,2903],{"type":993,"tag":1027,"props":2895,"children":2896},{"style":1042},[2897],{"type":999,"value":2898},"is_student ",{"type":993,"tag":1027,"props":2900,"children":2901},{"style":1048},[2902],{"type":999,"value":1051},{"type":993,"tag":1027,"props":2904,"children":2905},{"style":1054},[2906],{"type":999,"value":1057},{"type":993,"tag":1027,"props":2908,"children":2909},{"class":1029,"line":45},[2910,2915,2919],{"type":993,"tag":1027,"props":2911,"children":2912},{"style":1042},[2913],{"type":999,"value":2914},"has_id ",{"type":993,"tag":1027,"props":2916,"children":2917},{"style":1048},[2918],{"type":999,"value":1051},{"type":993,"tag":1027,"props":2920,"children":2921},{"style":1054},[2922],{"type":999,"value":1057},{"type":993,"tag":1027,"props":2924,"children":2925},{"class":1029,"line":54},[2926,2931,2935],{"type":993,"tag":1027,"props":2927,"children":2928},{"style":1042},[2929],{"type":999,"value":2930},"is_member ",{"type":993,"tag":1027,"props":2932,"children":2933},{"style":1048},[2934],{"type":999,"value":1051},{"type":993,"tag":1027,"props":2936,"children":2937},{"style":1054},[2938],{"type":999,"value":1074},{"type":993,"tag":1027,"props":2940,"children":2941},{"class":1029,"line":63},[2942],{"type":993,"tag":1027,"props":2943,"children":2944},{"emptyLinePlaceholder":13},[2945],{"type":999,"value":1099},{"type":993,"tag":1027,"props":2947,"children":2948},{"class":1029,"line":72},[2949],{"type":993,"tag":1027,"props":2950,"children":2951},{"style":1033},[2952],{"type":999,"value":2953},"# Complex eligibility check\n",{"type":993,"tag":1027,"props":2955,"children":2956},{"class":1029,"line":81},[2957,2962,2966,2971,2976,2981,2985,2990,2994],{"type":993,"tag":1027,"props":2958,"children":2959},{"style":1042},[2960],{"type":999,"value":2961},"eligible_for_discount ",{"type":993,"tag":1027,"props":2963,"children":2964},{"style":1048},[2965],{"type":999,"value":1051},{"type":993,"tag":1027,"props":2967,"children":2968},{"style":1042},[2969],{"type":999,"value":2970}," (age ",{"type":993,"tag":1027,"props":2972,"children":2973},{"style":1048},[2974],{"type":999,"value":2975},"\u003C",{"type":993,"tag":1027,"props":2977,"children":2978},{"style":1054},[2979],{"type":999,"value":2980}," 30",{"type":993,"tag":1027,"props":2982,"children":2983},{"style":1048},[2984],{"type":999,"value":2159},{"type":993,"tag":1027,"props":2986,"children":2987},{"style":1042},[2988],{"type":999,"value":2989}," is_student) ",{"type":993,"tag":1027,"props":2991,"children":2992},{"style":1048},[2993],{"type":999,"value":1863},{"type":993,"tag":1027,"props":2995,"children":2996},{"style":1042},[2997],{"type":999,"value":2998}," is_member\n",{"type":993,"tag":1027,"props":3000,"children":3001},{"class":1029,"line":91},[3002,3007,3011,3015,3019,3023,3027],{"type":993,"tag":1027,"props":3003,"children":3004},{"style":1042},[3005],{"type":999,"value":3006},"can_enter ",{"type":993,"tag":1027,"props":3008,"children":3009},{"style":1048},[3010],{"type":999,"value":1051},{"type":993,"tag":1027,"props":3012,"children":3013},{"style":1042},[3014],{"type":999,"value":1664},{"type":993,"tag":1027,"props":3016,"children":3017},{"style":1048},[3018],{"type":999,"value":1669},{"type":993,"tag":1027,"props":3020,"children":3021},{"style":1054},[3022],{"type":999,"value":2154},{"type":993,"tag":1027,"props":3024,"children":3025},{"style":1048},[3026],{"type":999,"value":2159},{"type":993,"tag":1027,"props":3028,"children":3029},{"style":1042},[3030],{"type":999,"value":3031}," has_id\n",{"type":993,"tag":1027,"props":3033,"children":3034},{"class":1029,"line":100},[3035,3040,3044,3049,3053],{"type":993,"tag":1027,"props":3036,"children":3037},{"style":1042},[3038],{"type":999,"value":3039},"special_access ",{"type":993,"tag":1027,"props":3041,"children":3042},{"style":1048},[3043],{"type":999,"value":1051},{"type":993,"tag":1027,"props":3045,"children":3046},{"style":1042},[3047],{"type":999,"value":3048}," eligible_for_discount ",{"type":993,"tag":1027,"props":3050,"children":3051},{"style":1048},[3052],{"type":999,"value":1233},{"type":993,"tag":1027,"props":3054,"children":3055},{"style":1042},[3056],{"type":999,"value":3057}," can_enter\n",{"type":993,"tag":1027,"props":3059,"children":3060},{"class":1029,"line":109},[3061],{"type":993,"tag":1027,"props":3062,"children":3063},{"emptyLinePlaceholder":13},[3064],{"type":999,"value":1099},{"type":993,"tag":1027,"props":3066,"children":3067},{"class":1029,"line":118},[3068,3072,3076,3080,3085,3089,3094,3098,3102,3106],{"type":993,"tag":1027,"props":3069,"children":3070},{"style":1054},[3071],{"type":999,"value":1107},{"type":993,"tag":1027,"props":3073,"children":3074},{"style":1042},[3075],{"type":999,"value":1112},{"type":993,"tag":1027,"props":3077,"children":3078},{"style":1048},[3079],{"type":999,"value":1117},{"type":993,"tag":1027,"props":3081,"children":3082},{"style":1120},[3083],{"type":999,"value":3084},"\"Eligible for discount: ",{"type":993,"tag":1027,"props":3086,"children":3087},{"style":1054},[3088],{"type":999,"value":1128},{"type":993,"tag":1027,"props":3090,"children":3091},{"style":1042},[3092],{"type":999,"value":3093},"eligible_for_discount",{"type":993,"tag":1027,"props":3095,"children":3096},{"style":1054},[3097],{"type":999,"value":1138},{"type":993,"tag":1027,"props":3099,"children":3100},{"style":1120},[3101],{"type":999,"value":1143},{"type":993,"tag":1027,"props":3103,"children":3104},{"style":1042},[3105],{"type":999,"value":1257},{"type":993,"tag":1027,"props":3107,"children":3108},{"style":1033},[3109],{"type":999,"value":1153},{"type":993,"tag":1027,"props":3111,"children":3112},{"class":1029,"line":127},[3113,3117,3121,3125,3130,3134,3139,3143,3147,3151],{"type":993,"tag":1027,"props":3114,"children":3115},{"style":1054},[3116],{"type":999,"value":1107},{"type":993,"tag":1027,"props":3118,"children":3119},{"style":1042},[3120],{"type":999,"value":1112},{"type":993,"tag":1027,"props":3122,"children":3123},{"style":1048},[3124],{"type":999,"value":1117},{"type":993,"tag":1027,"props":3126,"children":3127},{"style":1120},[3128],{"type":999,"value":3129},"\"Can enter: ",{"type":993,"tag":1027,"props":3131,"children":3132},{"style":1054},[3133],{"type":999,"value":1128},{"type":993,"tag":1027,"props":3135,"children":3136},{"style":1042},[3137],{"type":999,"value":3138},"can_enter",{"type":993,"tag":1027,"props":3140,"children":3141},{"style":1054},[3142],{"type":999,"value":1138},{"type":993,"tag":1027,"props":3144,"children":3145},{"style":1120},[3146],{"type":999,"value":1143},{"type":993,"tag":1027,"props":3148,"children":3149},{"style":1042},[3150],{"type":999,"value":1835},{"type":993,"tag":1027,"props":3152,"children":3153},{"style":1033},[3154],{"type":999,"value":1153},{"type":993,"tag":1027,"props":3156,"children":3157},{"class":1029,"line":136},[3158,3162,3166,3170,3175,3179,3184,3188,3192,3196],{"type":993,"tag":1027,"props":3159,"children":3160},{"style":1054},[3161],{"type":999,"value":1107},{"type":993,"tag":1027,"props":3163,"children":3164},{"style":1042},[3165],{"type":999,"value":1112},{"type":993,"tag":1027,"props":3167,"children":3168},{"style":1048},[3169],{"type":999,"value":1117},{"type":993,"tag":1027,"props":3171,"children":3172},{"style":1120},[3173],{"type":999,"value":3174},"\"Special access: ",{"type":993,"tag":1027,"props":3176,"children":3177},{"style":1054},[3178],{"type":999,"value":1128},{"type":993,"tag":1027,"props":3180,"children":3181},{"style":1042},[3182],{"type":999,"value":3183},"special_access",{"type":993,"tag":1027,"props":3185,"children":3186},{"style":1054},[3187],{"type":999,"value":1138},{"type":993,"tag":1027,"props":3189,"children":3190},{"style":1120},[3191],{"type":999,"value":1143},{"type":993,"tag":1027,"props":3193,"children":3194},{"style":1042},[3195],{"type":999,"value":1257},{"type":993,"tag":1027,"props":3197,"children":3198},{"style":1033},[3199],{"type":999,"value":1153},{"type":993,"tag":1263,"props":3201,"children":3203},{"id":3202},"truthiness-and-falsy-values",[3204],{"type":999,"value":3205},"🎭 Truthiness and Falsy Values",{"type":993,"tag":1002,"props":3207,"children":3208},{},[3209,3211,3216,3218,3223],{"type":999,"value":3210},"In Python, values other than ",{"type":993,"tag":1023,"props":3212,"children":3214},{"className":3213},[],[3215],{"type":999,"value":1279},{"type":999,"value":3217}," and ",{"type":993,"tag":1023,"props":3219,"children":3221},{"className":3220},[],[3222],{"type":999,"value":1287},{"type":999,"value":3224}," can also be evaluated in boolean contexts. Understanding which values are \"truthy\" or \"falsy\" is essential for effective conditional logic.",{"type":993,"tag":1291,"props":3226,"children":3230},{"emoji":3227,"title":3228,"type":3229},"🎭","Truthy and Falsy Values","warning",[3231,3239,3311,3319,3398],{"type":993,"tag":1002,"props":3232,"children":3233},{},[3234],{"type":993,"tag":1301,"props":3235,"children":3236},{},[3237],{"type":999,"value":3238},"Falsy Values (evaluate to False):",{"type":993,"tag":1307,"props":3240,"children":3241},{},[3242,3250,3259,3278,3289,3300],{"type":993,"tag":1311,"props":3243,"children":3244},{},[3245],{"type":993,"tag":1023,"props":3246,"children":3248},{"className":3247},[],[3249],{"type":999,"value":1287},{"type":993,"tag":1311,"props":3251,"children":3252},{},[3253],{"type":993,"tag":1023,"props":3254,"children":3256},{"className":3255},[],[3257],{"type":999,"value":3258},"None",{"type":993,"tag":1311,"props":3260,"children":3261},{},[3262,3268,3270,3276],{"type":993,"tag":1023,"props":3263,"children":3265},{"className":3264},[],[3266],{"type":999,"value":3267},"0",{"type":999,"value":3269}," (zero), ",{"type":993,"tag":1023,"props":3271,"children":3273},{"className":3272},[],[3274],{"type":999,"value":3275},"0.0",{"type":999,"value":3277}," (zero float)",{"type":993,"tag":1311,"props":3279,"children":3280},{},[3281,3287],{"type":993,"tag":1023,"props":3282,"children":3284},{"className":3283},[],[3285],{"type":999,"value":3286},"\"\"",{"type":999,"value":3288}," (empty string)",{"type":993,"tag":1311,"props":3290,"children":3291},{},[3292,3298],{"type":993,"tag":1023,"props":3293,"children":3295},{"className":3294},[],[3296],{"type":999,"value":3297},"[]",{"type":999,"value":3299}," (empty list)",{"type":993,"tag":1311,"props":3301,"children":3302},{},[3303,3309],{"type":993,"tag":1023,"props":3304,"children":3306},{"className":3305},[],[3307],{"type":999,"value":3308},"{}",{"type":999,"value":3310}," (empty dictionary)",{"type":993,"tag":1002,"props":3312,"children":3313},{},[3314],{"type":993,"tag":1301,"props":3315,"children":3316},{},[3317],{"type":999,"value":3318},"Truthy Values (evaluate to True):",{"type":993,"tag":1307,"props":3320,"children":3321},{},[3322,3330,3355,3380],{"type":993,"tag":1311,"props":3323,"children":3324},{},[3325],{"type":993,"tag":1023,"props":3326,"children":3328},{"className":3327},[],[3329],{"type":999,"value":1279},{"type":993,"tag":1311,"props":3331,"children":3332},{},[3333,3335,3341,3342,3348,3349],{"type":999,"value":3334},"Any non-zero number: ",{"type":993,"tag":1023,"props":3336,"children":3338},{"className":3337},[],[3339],{"type":999,"value":3340},"1",{"type":999,"value":1857},{"type":993,"tag":1023,"props":3343,"children":3345},{"className":3344},[],[3346],{"type":999,"value":3347},"-1",{"type":999,"value":1857},{"type":993,"tag":1023,"props":3350,"children":3352},{"className":3351},[],[3353],{"type":999,"value":3354},"3.14",{"type":993,"tag":1311,"props":3356,"children":3357},{},[3358,3360,3366,3367,3373,3374],{"type":999,"value":3359},"Any non-empty string: ",{"type":993,"tag":1023,"props":3361,"children":3363},{"className":3362},[],[3364],{"type":999,"value":3365},"\"hello\"",{"type":999,"value":1857},{"type":993,"tag":1023,"props":3368,"children":3370},{"className":3369},[],[3371],{"type":999,"value":3372},"\"0\"",{"type":999,"value":1857},{"type":993,"tag":1023,"props":3375,"children":3377},{"className":3376},[],[3378],{"type":999,"value":3379},"\" \"",{"type":993,"tag":1311,"props":3381,"children":3382},{},[3383,3385,3391,3392],{"type":999,"value":3384},"Any non-empty collection: ",{"type":993,"tag":1023,"props":3386,"children":3388},{"className":3387},[],[3389],{"type":999,"value":3390},"[1]",{"type":999,"value":1857},{"type":993,"tag":1023,"props":3393,"children":3395},{"className":3394},[],[3396],{"type":999,"value":3397},"{1: 'a'}",{"type":993,"tag":1002,"props":3399,"children":3400},{},[3401,3406],{"type":993,"tag":1301,"props":3402,"children":3403},{},[3404],{"type":999,"value":3405},"Key Point:",{"type":999,"value":3407}," Only specific \"empty\" or \"zero\" values are falsy!",{"type":993,"tag":1013,"props":3409,"children":3410},{},[3411],{"type":993,"tag":1017,"props":3412,"children":3414},{"className":1019,"code":3413,"language":6,"meta":8,"style":8},"# Testing truthiness of different values\nvalues = [True, False, 1, 0, \"hello\", \"\", [1, 2], [], None]\n\nfor value in values:\n    result = \"truthy\" if value else \"falsy\"\n    print(f\"{repr(value):10} is {result}\")\n",[3415],{"type":993,"tag":1023,"props":3416,"children":3417},{"__ignoreMap":8},[3418,3426,3519,3526,3549,3585],{"type":993,"tag":1027,"props":3419,"children":3420},{"class":1029,"line":12},[3421],{"type":993,"tag":1027,"props":3422,"children":3423},{"style":1033},[3424],{"type":999,"value":3425},"# Testing truthiness of different values\n",{"type":993,"tag":1027,"props":3427,"children":3428},{"class":1029,"line":27},[3429,3434,3438,3443,3447,3451,3455,3459,3463,3467,3471,3475,3479,3483,3487,3492,3496,3500,3505,3510,3514],{"type":993,"tag":1027,"props":3430,"children":3431},{"style":1042},[3432],{"type":999,"value":3433},"values ",{"type":993,"tag":1027,"props":3435,"children":3436},{"style":1048},[3437],{"type":999,"value":1051},{"type":993,"tag":1027,"props":3439,"children":3440},{"style":1042},[3441],{"type":999,"value":3442}," [",{"type":993,"tag":1027,"props":3444,"children":3445},{"style":1054},[3446],{"type":999,"value":1279},{"type":993,"tag":1027,"props":3448,"children":3449},{"style":1042},[3450],{"type":999,"value":1857},{"type":993,"tag":1027,"props":3452,"children":3453},{"style":1054},[3454],{"type":999,"value":1287},{"type":993,"tag":1027,"props":3456,"children":3457},{"style":1042},[3458],{"type":999,"value":1857},{"type":993,"tag":1027,"props":3460,"children":3461},{"style":1054},[3462],{"type":999,"value":3340},{"type":993,"tag":1027,"props":3464,"children":3465},{"style":1042},[3466],{"type":999,"value":1857},{"type":993,"tag":1027,"props":3468,"children":3469},{"style":1054},[3470],{"type":999,"value":3267},{"type":993,"tag":1027,"props":3472,"children":3473},{"style":1042},[3474],{"type":999,"value":1857},{"type":993,"tag":1027,"props":3476,"children":3477},{"style":1120},[3478],{"type":999,"value":3365},{"type":993,"tag":1027,"props":3480,"children":3481},{"style":1042},[3482],{"type":999,"value":1857},{"type":993,"tag":1027,"props":3484,"children":3485},{"style":1120},[3486],{"type":999,"value":3286},{"type":993,"tag":1027,"props":3488,"children":3489},{"style":1042},[3490],{"type":999,"value":3491},", [",{"type":993,"tag":1027,"props":3493,"children":3494},{"style":1054},[3495],{"type":999,"value":3340},{"type":993,"tag":1027,"props":3497,"children":3498},{"style":1042},[3499],{"type":999,"value":1857},{"type":993,"tag":1027,"props":3501,"children":3502},{"style":1054},[3503],{"type":999,"value":3504},"2",{"type":993,"tag":1027,"props":3506,"children":3507},{"style":1042},[3508],{"type":999,"value":3509},"], [], ",{"type":993,"tag":1027,"props":3511,"children":3512},{"style":1054},[3513],{"type":999,"value":3258},{"type":993,"tag":1027,"props":3515,"children":3516},{"style":1042},[3517],{"type":999,"value":3518},"]\n",{"type":993,"tag":1027,"props":3520,"children":3521},{"class":1029,"line":36},[3522],{"type":993,"tag":1027,"props":3523,"children":3524},{"emptyLinePlaceholder":13},[3525],{"type":999,"value":1099},{"type":993,"tag":1027,"props":3527,"children":3528},{"class":1029,"line":45},[3529,3534,3539,3544],{"type":993,"tag":1027,"props":3530,"children":3531},{"style":1048},[3532],{"type":999,"value":3533},"for",{"type":993,"tag":1027,"props":3535,"children":3536},{"style":1042},[3537],{"type":999,"value":3538}," value ",{"type":993,"tag":1027,"props":3540,"children":3541},{"style":1048},[3542],{"type":999,"value":3543},"in",{"type":993,"tag":1027,"props":3545,"children":3546},{"style":1042},[3547],{"type":999,"value":3548}," values:\n",{"type":993,"tag":1027,"props":3550,"children":3551},{"class":1029,"line":54},[3552,3557,3561,3566,3571,3575,3580],{"type":993,"tag":1027,"props":3553,"children":3554},{"style":1042},[3555],{"type":999,"value":3556},"    result ",{"type":993,"tag":1027,"props":3558,"children":3559},{"style":1048},[3560],{"type":999,"value":1051},{"type":993,"tag":1027,"props":3562,"children":3563},{"style":1120},[3564],{"type":999,"value":3565}," \"truthy\"",{"type":993,"tag":1027,"props":3567,"children":3568},{"style":1048},[3569],{"type":999,"value":3570}," if",{"type":993,"tag":1027,"props":3572,"children":3573},{"style":1042},[3574],{"type":999,"value":3538},{"type":993,"tag":1027,"props":3576,"children":3577},{"style":1048},[3578],{"type":999,"value":3579},"else",{"type":993,"tag":1027,"props":3581,"children":3582},{"style":1120},[3583],{"type":999,"value":3584}," \"falsy\"\n",{"type":993,"tag":1027,"props":3586,"children":3587},{"class":1029,"line":63},[3588,3593,3597,3601,3605,3610,3615,3620,3624,3629,3633,3638,3642,3646],{"type":993,"tag":1027,"props":3589,"children":3590},{"style":1054},[3591],{"type":999,"value":3592},"    print",{"type":993,"tag":1027,"props":3594,"children":3595},{"style":1042},[3596],{"type":999,"value":1112},{"type":993,"tag":1027,"props":3598,"children":3599},{"style":1048},[3600],{"type":999,"value":1117},{"type":993,"tag":1027,"props":3602,"children":3603},{"style":1120},[3604],{"type":999,"value":1143},{"type":993,"tag":1027,"props":3606,"children":3607},{"style":1054},[3608],{"type":999,"value":3609},"{repr",{"type":993,"tag":1027,"props":3611,"children":3612},{"style":1042},[3613],{"type":999,"value":3614},"(value)",{"type":993,"tag":1027,"props":3616,"children":3617},{"style":1048},[3618],{"type":999,"value":3619},":10",{"type":993,"tag":1027,"props":3621,"children":3622},{"style":1054},[3623],{"type":999,"value":1138},{"type":993,"tag":1027,"props":3625,"children":3626},{"style":1120},[3627],{"type":999,"value":3628}," is ",{"type":993,"tag":1027,"props":3630,"children":3631},{"style":1054},[3632],{"type":999,"value":1128},{"type":993,"tag":1027,"props":3634,"children":3635},{"style":1042},[3636],{"type":999,"value":3637},"result",{"type":993,"tag":1027,"props":3639,"children":3640},{"style":1054},[3641],{"type":999,"value":1138},{"type":993,"tag":1027,"props":3643,"children":3644},{"style":1120},[3645],{"type":999,"value":1143},{"type":993,"tag":1027,"props":3647,"children":3648},{"style":1042},[3649],{"type":999,"value":1519},{"type":993,"tag":1399,"props":3651,"children":3653},{"id":3652},"practical-truthiness-applications",[3654],{"type":999,"value":3655},"Practical Truthiness Applications",{"type":993,"tag":1013,"props":3657,"children":3658},{},[3659],{"type":993,"tag":1017,"props":3660,"children":3662},{"className":1019,"code":3661,"language":6,"meta":8,"style":8},"# Practical truthiness examples\nuser_name = \"\"\nshopping_cart = []\naccount_balance = 0\n\n# Check if user has entered a name\nif user_name:\n    print(f\"Welcome, {user_name}\")\nelse:\n    print(\"Please enter your name\")\n\n# Check if cart has items\nif shopping_cart:\n    print(f\"Cart has {len(shopping_cart)} items\")\nelse:\n    print(\"Cart is empty\")\n\n# Check account balance\nif account_balance:\n    print(f\"Balance: ${account_balance}\")\nelse:\n    print(\"Insufficient funds\")\n",[3663],{"type":993,"tag":1023,"props":3664,"children":3665},{"__ignoreMap":8},[3666,3674,3691,3708,3725,3732,3740,3753,3794,3806,3826,3833,3841,3853,3896,3907,3927,3934,3942,3954,3995,4006],{"type":993,"tag":1027,"props":3667,"children":3668},{"class":1029,"line":12},[3669],{"type":993,"tag":1027,"props":3670,"children":3671},{"style":1033},[3672],{"type":999,"value":3673},"# Practical truthiness examples\n",{"type":993,"tag":1027,"props":3675,"children":3676},{"class":1029,"line":27},[3677,3682,3686],{"type":993,"tag":1027,"props":3678,"children":3679},{"style":1042},[3680],{"type":999,"value":3681},"user_name ",{"type":993,"tag":1027,"props":3683,"children":3684},{"style":1048},[3685],{"type":999,"value":1051},{"type":993,"tag":1027,"props":3687,"children":3688},{"style":1120},[3689],{"type":999,"value":3690}," \"\"\n",{"type":993,"tag":1027,"props":3692,"children":3693},{"class":1029,"line":36},[3694,3699,3703],{"type":993,"tag":1027,"props":3695,"children":3696},{"style":1042},[3697],{"type":999,"value":3698},"shopping_cart ",{"type":993,"tag":1027,"props":3700,"children":3701},{"style":1048},[3702],{"type":999,"value":1051},{"type":993,"tag":1027,"props":3704,"children":3705},{"style":1042},[3706],{"type":999,"value":3707}," []\n",{"type":993,"tag":1027,"props":3709,"children":3710},{"class":1029,"line":45},[3711,3716,3720],{"type":993,"tag":1027,"props":3712,"children":3713},{"style":1042},[3714],{"type":999,"value":3715},"account_balance ",{"type":993,"tag":1027,"props":3717,"children":3718},{"style":1048},[3719],{"type":999,"value":1051},{"type":993,"tag":1027,"props":3721,"children":3722},{"style":1054},[3723],{"type":999,"value":3724}," 0\n",{"type":993,"tag":1027,"props":3726,"children":3727},{"class":1029,"line":54},[3728],{"type":993,"tag":1027,"props":3729,"children":3730},{"emptyLinePlaceholder":13},[3731],{"type":999,"value":1099},{"type":993,"tag":1027,"props":3733,"children":3734},{"class":1029,"line":63},[3735],{"type":993,"tag":1027,"props":3736,"children":3737},{"style":1033},[3738],{"type":999,"value":3739},"# Check if user has entered a name\n",{"type":993,"tag":1027,"props":3741,"children":3742},{"class":1029,"line":72},[3743,3748],{"type":993,"tag":1027,"props":3744,"children":3745},{"style":1048},[3746],{"type":999,"value":3747},"if",{"type":993,"tag":1027,"props":3749,"children":3750},{"style":1042},[3751],{"type":999,"value":3752}," user_name:\n",{"type":993,"tag":1027,"props":3754,"children":3755},{"class":1029,"line":81},[3756,3760,3764,3768,3773,3777,3782,3786,3790],{"type":993,"tag":1027,"props":3757,"children":3758},{"style":1054},[3759],{"type":999,"value":3592},{"type":993,"tag":1027,"props":3761,"children":3762},{"style":1042},[3763],{"type":999,"value":1112},{"type":993,"tag":1027,"props":3765,"children":3766},{"style":1048},[3767],{"type":999,"value":1117},{"type":993,"tag":1027,"props":3769,"children":3770},{"style":1120},[3771],{"type":999,"value":3772},"\"Welcome, ",{"type":993,"tag":1027,"props":3774,"children":3775},{"style":1054},[3776],{"type":999,"value":1128},{"type":993,"tag":1027,"props":3778,"children":3779},{"style":1042},[3780],{"type":999,"value":3781},"user_name",{"type":993,"tag":1027,"props":3783,"children":3784},{"style":1054},[3785],{"type":999,"value":1138},{"type":993,"tag":1027,"props":3787,"children":3788},{"style":1120},[3789],{"type":999,"value":1143},{"type":993,"tag":1027,"props":3791,"children":3792},{"style":1042},[3793],{"type":999,"value":1519},{"type":993,"tag":1027,"props":3795,"children":3796},{"class":1029,"line":91},[3797,3801],{"type":993,"tag":1027,"props":3798,"children":3799},{"style":1048},[3800],{"type":999,"value":3579},{"type":993,"tag":1027,"props":3802,"children":3803},{"style":1042},[3804],{"type":999,"value":3805},":\n",{"type":993,"tag":1027,"props":3807,"children":3808},{"class":1029,"line":100},[3809,3813,3817,3822],{"type":993,"tag":1027,"props":3810,"children":3811},{"style":1054},[3812],{"type":999,"value":3592},{"type":993,"tag":1027,"props":3814,"children":3815},{"style":1042},[3816],{"type":999,"value":1112},{"type":993,"tag":1027,"props":3818,"children":3819},{"style":1120},[3820],{"type":999,"value":3821},"\"Please enter your name\"",{"type":993,"tag":1027,"props":3823,"children":3824},{"style":1042},[3825],{"type":999,"value":1519},{"type":993,"tag":1027,"props":3827,"children":3828},{"class":1029,"line":109},[3829],{"type":993,"tag":1027,"props":3830,"children":3831},{"emptyLinePlaceholder":13},[3832],{"type":999,"value":1099},{"type":993,"tag":1027,"props":3834,"children":3835},{"class":1029,"line":118},[3836],{"type":993,"tag":1027,"props":3837,"children":3838},{"style":1033},[3839],{"type":999,"value":3840},"# Check if cart has items\n",{"type":993,"tag":1027,"props":3842,"children":3843},{"class":1029,"line":127},[3844,3848],{"type":993,"tag":1027,"props":3845,"children":3846},{"style":1048},[3847],{"type":999,"value":3747},{"type":993,"tag":1027,"props":3849,"children":3850},{"style":1042},[3851],{"type":999,"value":3852}," shopping_cart:\n",{"type":993,"tag":1027,"props":3854,"children":3855},{"class":1029,"line":136},[3856,3860,3864,3868,3873,3878,3883,3887,3892],{"type":993,"tag":1027,"props":3857,"children":3858},{"style":1054},[3859],{"type":999,"value":3592},{"type":993,"tag":1027,"props":3861,"children":3862},{"style":1042},[3863],{"type":999,"value":1112},{"type":993,"tag":1027,"props":3865,"children":3866},{"style":1048},[3867],{"type":999,"value":1117},{"type":993,"tag":1027,"props":3869,"children":3870},{"style":1120},[3871],{"type":999,"value":3872},"\"Cart has ",{"type":993,"tag":1027,"props":3874,"children":3875},{"style":1054},[3876],{"type":999,"value":3877},"{len",{"type":993,"tag":1027,"props":3879,"children":3880},{"style":1042},[3881],{"type":999,"value":3882},"(shopping_cart)",{"type":993,"tag":1027,"props":3884,"children":3885},{"style":1054},[3886],{"type":999,"value":1138},{"type":993,"tag":1027,"props":3888,"children":3889},{"style":1120},[3890],{"type":999,"value":3891}," items\"",{"type":993,"tag":1027,"props":3893,"children":3894},{"style":1042},[3895],{"type":999,"value":1519},{"type":993,"tag":1027,"props":3897,"children":3898},{"class":1029,"line":146},[3899,3903],{"type":993,"tag":1027,"props":3900,"children":3901},{"style":1048},[3902],{"type":999,"value":3579},{"type":993,"tag":1027,"props":3904,"children":3905},{"style":1042},[3906],{"type":999,"value":3805},{"type":993,"tag":1027,"props":3908,"children":3909},{"class":1029,"line":155},[3910,3914,3918,3923],{"type":993,"tag":1027,"props":3911,"children":3912},{"style":1054},[3913],{"type":999,"value":3592},{"type":993,"tag":1027,"props":3915,"children":3916},{"style":1042},[3917],{"type":999,"value":1112},{"type":993,"tag":1027,"props":3919,"children":3920},{"style":1120},[3921],{"type":999,"value":3922},"\"Cart is empty\"",{"type":993,"tag":1027,"props":3924,"children":3925},{"style":1042},[3926],{"type":999,"value":1519},{"type":993,"tag":1027,"props":3928,"children":3929},{"class":1029,"line":164},[3930],{"type":993,"tag":1027,"props":3931,"children":3932},{"emptyLinePlaceholder":13},[3933],{"type":999,"value":1099},{"type":993,"tag":1027,"props":3935,"children":3936},{"class":1029,"line":173},[3937],{"type":993,"tag":1027,"props":3938,"children":3939},{"style":1033},[3940],{"type":999,"value":3941},"# Check account balance\n",{"type":993,"tag":1027,"props":3943,"children":3944},{"class":1029,"line":182},[3945,3949],{"type":993,"tag":1027,"props":3946,"children":3947},{"style":1048},[3948],{"type":999,"value":3747},{"type":993,"tag":1027,"props":3950,"children":3951},{"style":1042},[3952],{"type":999,"value":3953}," account_balance:\n",{"type":993,"tag":1027,"props":3955,"children":3956},{"class":1029,"line":191},[3957,3961,3965,3969,3974,3978,3983,3987,3991],{"type":993,"tag":1027,"props":3958,"children":3959},{"style":1054},[3960],{"type":999,"value":3592},{"type":993,"tag":1027,"props":3962,"children":3963},{"style":1042},[3964],{"type":999,"value":1112},{"type":993,"tag":1027,"props":3966,"children":3967},{"style":1048},[3968],{"type":999,"value":1117},{"type":993,"tag":1027,"props":3970,"children":3971},{"style":1120},[3972],{"type":999,"value":3973},"\"Balance: $",{"type":993,"tag":1027,"props":3975,"children":3976},{"style":1054},[3977],{"type":999,"value":1128},{"type":993,"tag":1027,"props":3979,"children":3980},{"style":1042},[3981],{"type":999,"value":3982},"account_balance",{"type":993,"tag":1027,"props":3984,"children":3985},{"style":1054},[3986],{"type":999,"value":1138},{"type":993,"tag":1027,"props":3988,"children":3989},{"style":1120},[3990],{"type":999,"value":1143},{"type":993,"tag":1027,"props":3992,"children":3993},{"style":1042},[3994],{"type":999,"value":1519},{"type":993,"tag":1027,"props":3996,"children":3997},{"class":1029,"line":201},[3998,4002],{"type":993,"tag":1027,"props":3999,"children":4000},{"style":1048},[4001],{"type":999,"value":3579},{"type":993,"tag":1027,"props":4003,"children":4004},{"style":1042},[4005],{"type":999,"value":3805},{"type":993,"tag":1027,"props":4007,"children":4008},{"class":1029,"line":210},[4009,4013,4017,4022],{"type":993,"tag":1027,"props":4010,"children":4011},{"style":1054},[4012],{"type":999,"value":3592},{"type":993,"tag":1027,"props":4014,"children":4015},{"style":1042},[4016],{"type":999,"value":1112},{"type":993,"tag":1027,"props":4018,"children":4019},{"style":1120},[4020],{"type":999,"value":4021},"\"Insufficient funds\"",{"type":993,"tag":1027,"props":4023,"children":4024},{"style":1042},[4025],{"type":999,"value":1519},{"type":993,"tag":4027,"props":4028,"children":4030},"content-exercise",{":widget-view":4029,"category":6,"id":117},"true",[],{"type":993,"tag":1263,"props":4032,"children":4034},{"id":4033},"quick-boolean-practice",[4035],{"type":999,"value":4036},"✅ Quick Boolean Practice",{"type":993,"tag":1002,"props":4038,"children":4039},{},[4040],{"type":999,"value":4041},"Let's practice working with boolean values and logical operations!",{"type":993,"tag":4043,"props":4044,"children":4047},"exercise",{"hint":4045,"prompt":4046},"Try combining conditions with and/or, and use 'not' to reverse boolean values!","Practice creating boolean variables and using logical operators like 'and', 'or', and 'not'.",[4048],{"type":993,"tag":1017,"props":4049,"children":4051},{"className":1019,"code":4050,"language":6,"meta":8,"style":8},"# Boolean Practice - Simple and clear!\n\n# User information\nage = 20\nhas_license = True\nhas_car = False\nis_weekend = True\n\n# Check if user can drive\ncan_drive = # TODO: Your code here (age >= 18 AND has_license)\n\n# Check if it's a good day to relax\ncan_relax = # TODO: Your code here (is_weekend OR has_car)\n\n# Check if user needs a ride\nneeds_ride = # TODO: Your code here (NOT has_car)\n\nprint(f\"Can drive: {can_drive}\")\nprint(f\"Can relax: {can_relax}\")\nprint(f\"Needs ride: {needs_ride}\")\n",[4052],{"type":993,"tag":1023,"props":4053,"children":4054},{"__ignoreMap":8},[4055,4063,4070,4078,4094,4109,4124,4139,4146,4154,4180,4187,4195,4219,4226,4234,4259,4266,4305,4344],{"type":993,"tag":1027,"props":4056,"children":4057},{"class":1029,"line":12},[4058],{"type":993,"tag":1027,"props":4059,"children":4060},{"style":1033},[4061],{"type":999,"value":4062},"# Boolean Practice - Simple and clear!\n",{"type":993,"tag":1027,"props":4064,"children":4065},{"class":1029,"line":27},[4066],{"type":993,"tag":1027,"props":4067,"children":4068},{"emptyLinePlaceholder":13},[4069],{"type":999,"value":1099},{"type":993,"tag":1027,"props":4071,"children":4072},{"class":1029,"line":36},[4073],{"type":993,"tag":1027,"props":4074,"children":4075},{"style":1033},[4076],{"type":999,"value":4077},"# User information\n",{"type":993,"tag":1027,"props":4079,"children":4080},{"class":1029,"line":45},[4081,4085,4089],{"type":993,"tag":1027,"props":4082,"children":4083},{"style":1042},[4084],{"type":999,"value":1638},{"type":993,"tag":1027,"props":4086,"children":4087},{"style":1048},[4088],{"type":999,"value":1051},{"type":993,"tag":1027,"props":4090,"children":4091},{"style":1054},[4092],{"type":999,"value":4093}," 20\n",{"type":993,"tag":1027,"props":4095,"children":4096},{"class":1029,"line":54},[4097,4101,4105],{"type":993,"tag":1027,"props":4098,"children":4099},{"style":1042},[4100],{"type":999,"value":2098},{"type":993,"tag":1027,"props":4102,"children":4103},{"style":1048},[4104],{"type":999,"value":1051},{"type":993,"tag":1027,"props":4106,"children":4107},{"style":1054},[4108],{"type":999,"value":1057},{"type":993,"tag":1027,"props":4110,"children":4111},{"class":1029,"line":63},[4112,4116,4120],{"type":993,"tag":1027,"props":4113,"children":4114},{"style":1042},[4115],{"type":999,"value":2241},{"type":993,"tag":1027,"props":4117,"children":4118},{"style":1048},[4119],{"type":999,"value":1051},{"type":993,"tag":1027,"props":4121,"children":4122},{"style":1054},[4123],{"type":999,"value":1074},{"type":993,"tag":1027,"props":4125,"children":4126},{"class":1029,"line":72},[4127,4131,4135],{"type":993,"tag":1027,"props":4128,"children":4129},{"style":1042},[4130],{"type":999,"value":2352},{"type":993,"tag":1027,"props":4132,"children":4133},{"style":1048},[4134],{"type":999,"value":1051},{"type":993,"tag":1027,"props":4136,"children":4137},{"style":1054},[4138],{"type":999,"value":1057},{"type":993,"tag":1027,"props":4140,"children":4141},{"class":1029,"line":81},[4142],{"type":993,"tag":1027,"props":4143,"children":4144},{"emptyLinePlaceholder":13},[4145],{"type":999,"value":1099},{"type":993,"tag":1027,"props":4147,"children":4148},{"class":1029,"line":91},[4149],{"type":993,"tag":1027,"props":4150,"children":4151},{"style":1033},[4152],{"type":999,"value":4153},"# Check if user can drive\n",{"type":993,"tag":1027,"props":4155,"children":4156},{"class":1029,"line":100},[4157,4161,4165,4170,4175],{"type":993,"tag":1027,"props":4158,"children":4159},{"style":1042},[4160],{"type":999,"value":2137},{"type":993,"tag":1027,"props":4162,"children":4163},{"style":1048},[4164],{"type":999,"value":1051},{"type":993,"tag":1027,"props":4166,"children":4167},{"style":1033},[4168],{"type":999,"value":4169}," # ",{"type":993,"tag":1027,"props":4171,"children":4172},{"style":1048},[4173],{"type":999,"value":4174},"TODO",{"type":993,"tag":1027,"props":4176,"children":4177},{"style":1033},[4178],{"type":999,"value":4179},": Your code here (age >= 18 AND has_license)\n",{"type":993,"tag":1027,"props":4181,"children":4182},{"class":1029,"line":109},[4183],{"type":993,"tag":1027,"props":4184,"children":4185},{"emptyLinePlaceholder":13},[4186],{"type":999,"value":1099},{"type":993,"tag":1027,"props":4188,"children":4189},{"class":1029,"line":118},[4190],{"type":993,"tag":1027,"props":4191,"children":4192},{"style":1033},[4193],{"type":999,"value":4194},"# Check if it's a good day to relax\n",{"type":993,"tag":1027,"props":4196,"children":4197},{"class":1029,"line":127},[4198,4202,4206,4210,4214],{"type":993,"tag":1027,"props":4199,"children":4200},{"style":1042},[4201],{"type":999,"value":2407},{"type":993,"tag":1027,"props":4203,"children":4204},{"style":1048},[4205],{"type":999,"value":1051},{"type":993,"tag":1027,"props":4207,"children":4208},{"style":1033},[4209],{"type":999,"value":4169},{"type":993,"tag":1027,"props":4211,"children":4212},{"style":1048},[4213],{"type":999,"value":4174},{"type":993,"tag":1027,"props":4215,"children":4216},{"style":1033},[4217],{"type":999,"value":4218},": Your code here (is_weekend OR has_car)\n",{"type":993,"tag":1027,"props":4220,"children":4221},{"class":1029,"line":136},[4222],{"type":993,"tag":1027,"props":4223,"children":4224},{"emptyLinePlaceholder":13},[4225],{"type":999,"value":1099},{"type":993,"tag":1027,"props":4227,"children":4228},{"class":1029,"line":146},[4229],{"type":993,"tag":1027,"props":4230,"children":4231},{"style":1033},[4232],{"type":999,"value":4233},"# Check if user needs a ride\n",{"type":993,"tag":1027,"props":4235,"children":4236},{"class":1029,"line":155},[4237,4242,4246,4250,4254],{"type":993,"tag":1027,"props":4238,"children":4239},{"style":1042},[4240],{"type":999,"value":4241},"needs_ride ",{"type":993,"tag":1027,"props":4243,"children":4244},{"style":1048},[4245],{"type":999,"value":1051},{"type":993,"tag":1027,"props":4247,"children":4248},{"style":1033},[4249],{"type":999,"value":4169},{"type":993,"tag":1027,"props":4251,"children":4252},{"style":1048},[4253],{"type":999,"value":4174},{"type":993,"tag":1027,"props":4255,"children":4256},{"style":1033},[4257],{"type":999,"value":4258},": Your code here (NOT has_car)\n",{"type":993,"tag":1027,"props":4260,"children":4261},{"class":1029,"line":164},[4262],{"type":993,"tag":1027,"props":4263,"children":4264},{"emptyLinePlaceholder":13},[4265],{"type":999,"value":1099},{"type":993,"tag":1027,"props":4267,"children":4268},{"class":1029,"line":173},[4269,4273,4277,4281,4285,4289,4293,4297,4301],{"type":993,"tag":1027,"props":4270,"children":4271},{"style":1054},[4272],{"type":999,"value":1107},{"type":993,"tag":1027,"props":4274,"children":4275},{"style":1042},[4276],{"type":999,"value":1112},{"type":993,"tag":1027,"props":4278,"children":4279},{"style":1048},[4280],{"type":999,"value":1117},{"type":993,"tag":1027,"props":4282,"children":4283},{"style":1120},[4284],{"type":999,"value":2193},{"type":993,"tag":1027,"props":4286,"children":4287},{"style":1054},[4288],{"type":999,"value":1128},{"type":993,"tag":1027,"props":4290,"children":4291},{"style":1042},[4292],{"type":999,"value":2202},{"type":993,"tag":1027,"props":4294,"children":4295},{"style":1054},[4296],{"type":999,"value":1138},{"type":993,"tag":1027,"props":4298,"children":4299},{"style":1120},[4300],{"type":999,"value":1143},{"type":993,"tag":1027,"props":4302,"children":4303},{"style":1042},[4304],{"type":999,"value":1519},{"type":993,"tag":1027,"props":4306,"children":4307},{"class":1029,"line":182},[4308,4312,4316,4320,4324,4328,4332,4336,4340],{"type":993,"tag":1027,"props":4309,"children":4310},{"style":1054},[4311],{"type":999,"value":1107},{"type":993,"tag":1027,"props":4313,"children":4314},{"style":1042},[4315],{"type":999,"value":1112},{"type":993,"tag":1027,"props":4317,"children":4318},{"style":1048},[4319],{"type":999,"value":1117},{"type":993,"tag":1027,"props":4321,"children":4322},{"style":1120},[4323],{"type":999,"value":2454},{"type":993,"tag":1027,"props":4325,"children":4326},{"style":1054},[4327],{"type":999,"value":1128},{"type":993,"tag":1027,"props":4329,"children":4330},{"style":1042},[4331],{"type":999,"value":2463},{"type":993,"tag":1027,"props":4333,"children":4334},{"style":1054},[4335],{"type":999,"value":1138},{"type":993,"tag":1027,"props":4337,"children":4338},{"style":1120},[4339],{"type":999,"value":1143},{"type":993,"tag":1027,"props":4341,"children":4342},{"style":1042},[4343],{"type":999,"value":1519},{"type":993,"tag":1027,"props":4345,"children":4346},{"class":1029,"line":191},[4347,4351,4355,4359,4364,4368,4373,4377,4381],{"type":993,"tag":1027,"props":4348,"children":4349},{"style":1054},[4350],{"type":999,"value":1107},{"type":993,"tag":1027,"props":4352,"children":4353},{"style":1042},[4354],{"type":999,"value":1112},{"type":993,"tag":1027,"props":4356,"children":4357},{"style":1048},[4358],{"type":999,"value":1117},{"type":993,"tag":1027,"props":4360,"children":4361},{"style":1120},[4362],{"type":999,"value":4363},"\"Needs ride: ",{"type":993,"tag":1027,"props":4365,"children":4366},{"style":1054},[4367],{"type":999,"value":1128},{"type":993,"tag":1027,"props":4369,"children":4370},{"style":1042},[4371],{"type":999,"value":4372},"needs_ride",{"type":993,"tag":1027,"props":4374,"children":4375},{"style":1054},[4376],{"type":999,"value":1138},{"type":993,"tag":1027,"props":4378,"children":4379},{"style":1120},[4380],{"type":999,"value":1143},{"type":993,"tag":1027,"props":4382,"children":4383},{"style":1042},[4384],{"type":999,"value":1519},{"type":993,"tag":1399,"props":4386,"children":4388},{"id":4387},"solution-and-explanation",[4389],{"type":999,"value":4390},"Solution and Explanation 💡",{"type":993,"tag":4392,"props":4393,"children":4394},"details",{},[4395,4403,4752,4760],{"type":993,"tag":4396,"props":4397,"children":4400},"summary",{"className":4398},[4399],"cursor-pointer",[4401],{"type":999,"value":4402},"Click to see the complete solution",{"type":993,"tag":1013,"props":4404,"children":4405},{},[4406],{"type":993,"tag":1017,"props":4407,"children":4409},{"className":1019,"code":4408,"language":6,"meta":8,"style":8},"# Boolean Practice - Simple solution\n\n# User information\nage = 20\nhas_license = True\nhas_car = False\nis_weekend = True\n\n# Check if user can drive\ncan_drive = age >= 18 and has_license    # Both conditions must be True\n\n# Check if it's a good day to relax\ncan_relax = is_weekend or has_car        # At least one must be True\n\n# Check if user needs a ride\nneeds_ride = not has_car                 # Reverse the boolean value\n\nprint(f\"Can drive: {can_drive}\")\nprint(f\"Can relax: {can_relax}\")\nprint(f\"Needs ride: {needs_ride}\")\n",[4410],{"type":993,"tag":1023,"props":4411,"children":4412},{"__ignoreMap":8},[4413,4421,4428,4435,4450,4465,4480,4495,4502,4509,4546,4553,4560,4589,4596,4603,4628,4635,4674,4713],{"type":993,"tag":1027,"props":4414,"children":4415},{"class":1029,"line":12},[4416],{"type":993,"tag":1027,"props":4417,"children":4418},{"style":1033},[4419],{"type":999,"value":4420},"# Boolean Practice - Simple solution\n",{"type":993,"tag":1027,"props":4422,"children":4423},{"class":1029,"line":27},[4424],{"type":993,"tag":1027,"props":4425,"children":4426},{"emptyLinePlaceholder":13},[4427],{"type":999,"value":1099},{"type":993,"tag":1027,"props":4429,"children":4430},{"class":1029,"line":36},[4431],{"type":993,"tag":1027,"props":4432,"children":4433},{"style":1033},[4434],{"type":999,"value":4077},{"type":993,"tag":1027,"props":4436,"children":4437},{"class":1029,"line":45},[4438,4442,4446],{"type":993,"tag":1027,"props":4439,"children":4440},{"style":1042},[4441],{"type":999,"value":1638},{"type":993,"tag":1027,"props":4443,"children":4444},{"style":1048},[4445],{"type":999,"value":1051},{"type":993,"tag":1027,"props":4447,"children":4448},{"style":1054},[4449],{"type":999,"value":4093},{"type":993,"tag":1027,"props":4451,"children":4452},{"class":1029,"line":54},[4453,4457,4461],{"type":993,"tag":1027,"props":4454,"children":4455},{"style":1042},[4456],{"type":999,"value":2098},{"type":993,"tag":1027,"props":4458,"children":4459},{"style":1048},[4460],{"type":999,"value":1051},{"type":993,"tag":1027,"props":4462,"children":4463},{"style":1054},[4464],{"type":999,"value":1057},{"type":993,"tag":1027,"props":4466,"children":4467},{"class":1029,"line":63},[4468,4472,4476],{"type":993,"tag":1027,"props":4469,"children":4470},{"style":1042},[4471],{"type":999,"value":2241},{"type":993,"tag":1027,"props":4473,"children":4474},{"style":1048},[4475],{"type":999,"value":1051},{"type":993,"tag":1027,"props":4477,"children":4478},{"style":1054},[4479],{"type":999,"value":1074},{"type":993,"tag":1027,"props":4481,"children":4482},{"class":1029,"line":72},[4483,4487,4491],{"type":993,"tag":1027,"props":4484,"children":4485},{"style":1042},[4486],{"type":999,"value":2352},{"type":993,"tag":1027,"props":4488,"children":4489},{"style":1048},[4490],{"type":999,"value":1051},{"type":993,"tag":1027,"props":4492,"children":4493},{"style":1054},[4494],{"type":999,"value":1057},{"type":993,"tag":1027,"props":4496,"children":4497},{"class":1029,"line":81},[4498],{"type":993,"tag":1027,"props":4499,"children":4500},{"emptyLinePlaceholder":13},[4501],{"type":999,"value":1099},{"type":993,"tag":1027,"props":4503,"children":4504},{"class":1029,"line":91},[4505],{"type":993,"tag":1027,"props":4506,"children":4507},{"style":1033},[4508],{"type":999,"value":4153},{"type":993,"tag":1027,"props":4510,"children":4511},{"class":1029,"line":100},[4512,4516,4520,4524,4528,4532,4536,4541],{"type":993,"tag":1027,"props":4513,"children":4514},{"style":1042},[4515],{"type":999,"value":2137},{"type":993,"tag":1027,"props":4517,"children":4518},{"style":1048},[4519],{"type":999,"value":1051},{"type":993,"tag":1027,"props":4521,"children":4522},{"style":1042},[4523],{"type":999,"value":1664},{"type":993,"tag":1027,"props":4525,"children":4526},{"style":1048},[4527],{"type":999,"value":1669},{"type":993,"tag":1027,"props":4529,"children":4530},{"style":1054},[4531],{"type":999,"value":2154},{"type":993,"tag":1027,"props":4533,"children":4534},{"style":1048},[4535],{"type":999,"value":2159},{"type":993,"tag":1027,"props":4537,"children":4538},{"style":1042},[4539],{"type":999,"value":4540}," has_license    ",{"type":993,"tag":1027,"props":4542,"children":4543},{"style":1033},[4544],{"type":999,"value":4545},"# Both conditions must be True\n",{"type":993,"tag":1027,"props":4547,"children":4548},{"class":1029,"line":109},[4549],{"type":993,"tag":1027,"props":4550,"children":4551},{"emptyLinePlaceholder":13},[4552],{"type":999,"value":1099},{"type":993,"tag":1027,"props":4554,"children":4555},{"class":1029,"line":118},[4556],{"type":993,"tag":1027,"props":4557,"children":4558},{"style":1033},[4559],{"type":999,"value":4194},{"type":993,"tag":1027,"props":4561,"children":4562},{"class":1029,"line":127},[4563,4567,4571,4575,4579,4584],{"type":993,"tag":1027,"props":4564,"children":4565},{"style":1042},[4566],{"type":999,"value":2407},{"type":993,"tag":1027,"props":4568,"children":4569},{"style":1048},[4570],{"type":999,"value":1051},{"type":993,"tag":1027,"props":4572,"children":4573},{"style":1042},[4574],{"type":999,"value":2416},{"type":993,"tag":1027,"props":4576,"children":4577},{"style":1048},[4578],{"type":999,"value":1863},{"type":993,"tag":1027,"props":4580,"children":4581},{"style":1042},[4582],{"type":999,"value":4583}," has_car        ",{"type":993,"tag":1027,"props":4585,"children":4586},{"style":1033},[4587],{"type":999,"value":4588},"# At least one must be True\n",{"type":993,"tag":1027,"props":4590,"children":4591},{"class":1029,"line":136},[4592],{"type":993,"tag":1027,"props":4593,"children":4594},{"emptyLinePlaceholder":13},[4595],{"type":999,"value":1099},{"type":993,"tag":1027,"props":4597,"children":4598},{"class":1029,"line":146},[4599],{"type":993,"tag":1027,"props":4600,"children":4601},{"style":1033},[4602],{"type":999,"value":4233},{"type":993,"tag":1027,"props":4604,"children":4605},{"class":1029,"line":155},[4606,4610,4614,4618,4623],{"type":993,"tag":1027,"props":4607,"children":4608},{"style":1042},[4609],{"type":999,"value":4241},{"type":993,"tag":1027,"props":4611,"children":4612},{"style":1048},[4613],{"type":999,"value":1051},{"type":993,"tag":1027,"props":4615,"children":4616},{"style":1048},[4617],{"type":999,"value":2653},{"type":993,"tag":1027,"props":4619,"children":4620},{"style":1042},[4621],{"type":999,"value":4622}," has_car                 ",{"type":993,"tag":1027,"props":4624,"children":4625},{"style":1033},[4626],{"type":999,"value":4627},"# Reverse the boolean value\n",{"type":993,"tag":1027,"props":4629,"children":4630},{"class":1029,"line":164},[4631],{"type":993,"tag":1027,"props":4632,"children":4633},{"emptyLinePlaceholder":13},[4634],{"type":999,"value":1099},{"type":993,"tag":1027,"props":4636,"children":4637},{"class":1029,"line":173},[4638,4642,4646,4650,4654,4658,4662,4666,4670],{"type":993,"tag":1027,"props":4639,"children":4640},{"style":1054},[4641],{"type":999,"value":1107},{"type":993,"tag":1027,"props":4643,"children":4644},{"style":1042},[4645],{"type":999,"value":1112},{"type":993,"tag":1027,"props":4647,"children":4648},{"style":1048},[4649],{"type":999,"value":1117},{"type":993,"tag":1027,"props":4651,"children":4652},{"style":1120},[4653],{"type":999,"value":2193},{"type":993,"tag":1027,"props":4655,"children":4656},{"style":1054},[4657],{"type":999,"value":1128},{"type":993,"tag":1027,"props":4659,"children":4660},{"style":1042},[4661],{"type":999,"value":2202},{"type":993,"tag":1027,"props":4663,"children":4664},{"style":1054},[4665],{"type":999,"value":1138},{"type":993,"tag":1027,"props":4667,"children":4668},{"style":1120},[4669],{"type":999,"value":1143},{"type":993,"tag":1027,"props":4671,"children":4672},{"style":1042},[4673],{"type":999,"value":1519},{"type":993,"tag":1027,"props":4675,"children":4676},{"class":1029,"line":182},[4677,4681,4685,4689,4693,4697,4701,4705,4709],{"type":993,"tag":1027,"props":4678,"children":4679},{"style":1054},[4680],{"type":999,"value":1107},{"type":993,"tag":1027,"props":4682,"children":4683},{"style":1042},[4684],{"type":999,"value":1112},{"type":993,"tag":1027,"props":4686,"children":4687},{"style":1048},[4688],{"type":999,"value":1117},{"type":993,"tag":1027,"props":4690,"children":4691},{"style":1120},[4692],{"type":999,"value":2454},{"type":993,"tag":1027,"props":4694,"children":4695},{"style":1054},[4696],{"type":999,"value":1128},{"type":993,"tag":1027,"props":4698,"children":4699},{"style":1042},[4700],{"type":999,"value":2463},{"type":993,"tag":1027,"props":4702,"children":4703},{"style":1054},[4704],{"type":999,"value":1138},{"type":993,"tag":1027,"props":4706,"children":4707},{"style":1120},[4708],{"type":999,"value":1143},{"type":993,"tag":1027,"props":4710,"children":4711},{"style":1042},[4712],{"type":999,"value":1519},{"type":993,"tag":1027,"props":4714,"children":4715},{"class":1029,"line":191},[4716,4720,4724,4728,4732,4736,4740,4744,4748],{"type":993,"tag":1027,"props":4717,"children":4718},{"style":1054},[4719],{"type":999,"value":1107},{"type":993,"tag":1027,"props":4721,"children":4722},{"style":1042},[4723],{"type":999,"value":1112},{"type":993,"tag":1027,"props":4725,"children":4726},{"style":1048},[4727],{"type":999,"value":1117},{"type":993,"tag":1027,"props":4729,"children":4730},{"style":1120},[4731],{"type":999,"value":4363},{"type":993,"tag":1027,"props":4733,"children":4734},{"style":1054},[4735],{"type":999,"value":1128},{"type":993,"tag":1027,"props":4737,"children":4738},{"style":1042},[4739],{"type":999,"value":4372},{"type":993,"tag":1027,"props":4741,"children":4742},{"style":1054},[4743],{"type":999,"value":1138},{"type":993,"tag":1027,"props":4745,"children":4746},{"style":1120},[4747],{"type":999,"value":1143},{"type":993,"tag":1027,"props":4749,"children":4750},{"style":1042},[4751],{"type":999,"value":1519},{"type":993,"tag":1002,"props":4753,"children":4754},{},[4755],{"type":993,"tag":1301,"props":4756,"children":4757},{},[4758],{"type":999,"value":4759},"Key Learning Points:",{"type":993,"tag":1307,"props":4761,"children":4762},{},[4763,4775,4786,4797],{"type":993,"tag":1311,"props":4764,"children":4765},{},[4766,4768,4773],{"type":999,"value":4767},"📌 ",{"type":993,"tag":1301,"props":4769,"children":4770},{},[4771],{"type":999,"value":4772},"and operator",{"type":999,"value":4774},": Both conditions must be True",{"type":993,"tag":1311,"props":4776,"children":4777},{},[4778,4779,4784],{"type":999,"value":4767},{"type":993,"tag":1301,"props":4780,"children":4781},{},[4782],{"type":999,"value":4783},"or operator",{"type":999,"value":4785},": At least one condition must be True",{"type":993,"tag":1311,"props":4787,"children":4788},{},[4789,4790,4795],{"type":999,"value":4767},{"type":993,"tag":1301,"props":4791,"children":4792},{},[4793],{"type":999,"value":4794},"not operator",{"type":999,"value":4796},": Reverses the boolean value",{"type":993,"tag":1311,"props":4798,"children":4799},{},[4800,4801,4806,4807,4813],{"type":999,"value":4767},{"type":993,"tag":1301,"props":4802,"children":4803},{},[4804],{"type":999,"value":4805},"Comparisons",{"type":999,"value":1957},{"type":993,"tag":1023,"props":4808,"children":4810},{"className":4809},[],[4811],{"type":999,"value":4812},"age >= 18",{"type":999,"value":4814}," creates a boolean result",{"type":993,"tag":1263,"props":4816,"children":4818},{"id":4817},"boolean-functions",[4819],{"type":999,"value":4820},"🔧 Boolean Functions",{"type":993,"tag":1002,"props":4822,"children":4823},{},[4824],{"type":999,"value":4825},"Python provides several built-in functions that work with boolean values and return boolean results.",{"type":993,"tag":1399,"props":4827,"children":4829},{"id":4828},"comparison-and-membership",[4830],{"type":999,"value":4831},"Comparison and Membership",{"type":993,"tag":1013,"props":4833,"children":4834},{},[4835],{"type":993,"tag":1017,"props":4836,"children":4838},{"className":1019,"code":4837,"language":6,"meta":8,"style":8},"# Boolean functions\nnumbers = [1, 5, 3, 8, 2]\ntext = \"Hello World\"\n\n# Testing with all() and any()\nall_positive = all(num > 0 for num in numbers)\nany_large = any(num > 5 for num in numbers)\n\nprint(f\"All positive: {all_positive}\")        # True\nprint(f\"Any large (>5): {any_large}\")         # True\n\n# Membership testing\nvalid_colors = [\"red\", \"green\", \"blue\", \"yellow\"]\nuser_choice = \"green\"\n\nis_valid_color = user_choice in valid_colors\nprint(f\"'{user_choice}' is valid: {is_valid_color}\")  # True\n\n# String membership\nemail = \"user@example.com\"\nhas_at_symbol = \"@\" in email\nprint(f\"Email has @ symbol: {has_at_symbol}\")  # True\n",[4839],{"type":993,"tag":1023,"props":4840,"children":4841},{"__ignoreMap":8},[4842,4850,4909,4926,4933,4941,4991,5037,5044,5089,5135,5142,5150,5202,5219,5226,5252,5315,5322,5330,5347,5374],{"type":993,"tag":1027,"props":4843,"children":4844},{"class":1029,"line":12},[4845],{"type":993,"tag":1027,"props":4846,"children":4847},{"style":1033},[4848],{"type":999,"value":4849},"# Boolean functions\n",{"type":993,"tag":1027,"props":4851,"children":4852},{"class":1029,"line":27},[4853,4858,4862,4866,4870,4874,4879,4883,4888,4892,4897,4901,4905],{"type":993,"tag":1027,"props":4854,"children":4855},{"style":1042},[4856],{"type":999,"value":4857},"numbers ",{"type":993,"tag":1027,"props":4859,"children":4860},{"style":1048},[4861],{"type":999,"value":1051},{"type":993,"tag":1027,"props":4863,"children":4864},{"style":1042},[4865],{"type":999,"value":3442},{"type":993,"tag":1027,"props":4867,"children":4868},{"style":1054},[4869],{"type":999,"value":3340},{"type":993,"tag":1027,"props":4871,"children":4872},{"style":1042},[4873],{"type":999,"value":1857},{"type":993,"tag":1027,"props":4875,"children":4876},{"style":1054},[4877],{"type":999,"value":4878},"5",{"type":993,"tag":1027,"props":4880,"children":4881},{"style":1042},[4882],{"type":999,"value":1857},{"type":993,"tag":1027,"props":4884,"children":4885},{"style":1054},[4886],{"type":999,"value":4887},"3",{"type":993,"tag":1027,"props":4889,"children":4890},{"style":1042},[4891],{"type":999,"value":1857},{"type":993,"tag":1027,"props":4893,"children":4894},{"style":1054},[4895],{"type":999,"value":4896},"8",{"type":993,"tag":1027,"props":4898,"children":4899},{"style":1042},[4900],{"type":999,"value":1857},{"type":993,"tag":1027,"props":4902,"children":4903},{"style":1054},[4904],{"type":999,"value":3504},{"type":993,"tag":1027,"props":4906,"children":4907},{"style":1042},[4908],{"type":999,"value":3518},{"type":993,"tag":1027,"props":4910,"children":4911},{"class":1029,"line":36},[4912,4917,4921],{"type":993,"tag":1027,"props":4913,"children":4914},{"style":1042},[4915],{"type":999,"value":4916},"text ",{"type":993,"tag":1027,"props":4918,"children":4919},{"style":1048},[4920],{"type":999,"value":1051},{"type":993,"tag":1027,"props":4922,"children":4923},{"style":1120},[4924],{"type":999,"value":4925}," \"Hello World\"\n",{"type":993,"tag":1027,"props":4927,"children":4928},{"class":1029,"line":45},[4929],{"type":993,"tag":1027,"props":4930,"children":4931},{"emptyLinePlaceholder":13},[4932],{"type":999,"value":1099},{"type":993,"tag":1027,"props":4934,"children":4935},{"class":1029,"line":54},[4936],{"type":993,"tag":1027,"props":4937,"children":4938},{"style":1033},[4939],{"type":999,"value":4940},"# Testing with all() and any()\n",{"type":993,"tag":1027,"props":4942,"children":4943},{"class":1029,"line":63},[4944,4949,4953,4958,4963,4967,4972,4977,4982,4986],{"type":993,"tag":1027,"props":4945,"children":4946},{"style":1042},[4947],{"type":999,"value":4948},"all_positive ",{"type":993,"tag":1027,"props":4950,"children":4951},{"style":1048},[4952],{"type":999,"value":1051},{"type":993,"tag":1027,"props":4954,"children":4955},{"style":1054},[4956],{"type":999,"value":4957}," all",{"type":993,"tag":1027,"props":4959,"children":4960},{"style":1042},[4961],{"type":999,"value":4962},"(num ",{"type":993,"tag":1027,"props":4964,"children":4965},{"style":1048},[4966],{"type":999,"value":1243},{"type":993,"tag":1027,"props":4968,"children":4969},{"style":1054},[4970],{"type":999,"value":4971}," 0",{"type":993,"tag":1027,"props":4973,"children":4974},{"style":1048},[4975],{"type":999,"value":4976}," for",{"type":993,"tag":1027,"props":4978,"children":4979},{"style":1042},[4980],{"type":999,"value":4981}," num ",{"type":993,"tag":1027,"props":4983,"children":4984},{"style":1048},[4985],{"type":999,"value":3543},{"type":993,"tag":1027,"props":4987,"children":4988},{"style":1042},[4989],{"type":999,"value":4990}," numbers)\n",{"type":993,"tag":1027,"props":4992,"children":4993},{"class":1029,"line":72},[4994,4999,5003,5008,5012,5016,5021,5025,5029,5033],{"type":993,"tag":1027,"props":4995,"children":4996},{"style":1042},[4997],{"type":999,"value":4998},"any_large ",{"type":993,"tag":1027,"props":5000,"children":5001},{"style":1048},[5002],{"type":999,"value":1051},{"type":993,"tag":1027,"props":5004,"children":5005},{"style":1054},[5006],{"type":999,"value":5007}," any",{"type":993,"tag":1027,"props":5009,"children":5010},{"style":1042},[5011],{"type":999,"value":4962},{"type":993,"tag":1027,"props":5013,"children":5014},{"style":1048},[5015],{"type":999,"value":1243},{"type":993,"tag":1027,"props":5017,"children":5018},{"style":1054},[5019],{"type":999,"value":5020}," 5",{"type":993,"tag":1027,"props":5022,"children":5023},{"style":1048},[5024],{"type":999,"value":4976},{"type":993,"tag":1027,"props":5026,"children":5027},{"style":1042},[5028],{"type":999,"value":4981},{"type":993,"tag":1027,"props":5030,"children":5031},{"style":1048},[5032],{"type":999,"value":3543},{"type":993,"tag":1027,"props":5034,"children":5035},{"style":1042},[5036],{"type":999,"value":4990},{"type":993,"tag":1027,"props":5038,"children":5039},{"class":1029,"line":81},[5040],{"type":993,"tag":1027,"props":5041,"children":5042},{"emptyLinePlaceholder":13},[5043],{"type":999,"value":1099},{"type":993,"tag":1027,"props":5045,"children":5046},{"class":1029,"line":91},[5047,5051,5055,5059,5064,5068,5073,5077,5081,5085],{"type":993,"tag":1027,"props":5048,"children":5049},{"style":1054},[5050],{"type":999,"value":1107},{"type":993,"tag":1027,"props":5052,"children":5053},{"style":1042},[5054],{"type":999,"value":1112},{"type":993,"tag":1027,"props":5056,"children":5057},{"style":1048},[5058],{"type":999,"value":1117},{"type":993,"tag":1027,"props":5060,"children":5061},{"style":1120},[5062],{"type":999,"value":5063},"\"All positive: ",{"type":993,"tag":1027,"props":5065,"children":5066},{"style":1054},[5067],{"type":999,"value":1128},{"type":993,"tag":1027,"props":5069,"children":5070},{"style":1042},[5071],{"type":999,"value":5072},"all_positive",{"type":993,"tag":1027,"props":5074,"children":5075},{"style":1054},[5076],{"type":999,"value":1138},{"type":993,"tag":1027,"props":5078,"children":5079},{"style":1120},[5080],{"type":999,"value":1143},{"type":993,"tag":1027,"props":5082,"children":5083},{"style":1042},[5084],{"type":999,"value":1789},{"type":993,"tag":1027,"props":5086,"children":5087},{"style":1033},[5088],{"type":999,"value":1153},{"type":993,"tag":1027,"props":5090,"children":5091},{"class":1029,"line":100},[5092,5096,5100,5104,5109,5113,5118,5122,5126,5131],{"type":993,"tag":1027,"props":5093,"children":5094},{"style":1054},[5095],{"type":999,"value":1107},{"type":993,"tag":1027,"props":5097,"children":5098},{"style":1042},[5099],{"type":999,"value":1112},{"type":993,"tag":1027,"props":5101,"children":5102},{"style":1048},[5103],{"type":999,"value":1117},{"type":993,"tag":1027,"props":5105,"children":5106},{"style":1120},[5107],{"type":999,"value":5108},"\"Any large (>5): ",{"type":993,"tag":1027,"props":5110,"children":5111},{"style":1054},[5112],{"type":999,"value":1128},{"type":993,"tag":1027,"props":5114,"children":5115},{"style":1042},[5116],{"type":999,"value":5117},"any_large",{"type":993,"tag":1027,"props":5119,"children":5120},{"style":1054},[5121],{"type":999,"value":1138},{"type":993,"tag":1027,"props":5123,"children":5124},{"style":1120},[5125],{"type":999,"value":1143},{"type":993,"tag":1027,"props":5127,"children":5128},{"style":1042},[5129],{"type":999,"value":5130},")         ",{"type":993,"tag":1027,"props":5132,"children":5133},{"style":1033},[5134],{"type":999,"value":1153},{"type":993,"tag":1027,"props":5136,"children":5137},{"class":1029,"line":109},[5138],{"type":993,"tag":1027,"props":5139,"children":5140},{"emptyLinePlaceholder":13},[5141],{"type":999,"value":1099},{"type":993,"tag":1027,"props":5143,"children":5144},{"class":1029,"line":118},[5145],{"type":993,"tag":1027,"props":5146,"children":5147},{"style":1033},[5148],{"type":999,"value":5149},"# Membership testing\n",{"type":993,"tag":1027,"props":5151,"children":5152},{"class":1029,"line":127},[5153,5158,5162,5166,5171,5175,5180,5184,5189,5193,5198],{"type":993,"tag":1027,"props":5154,"children":5155},{"style":1042},[5156],{"type":999,"value":5157},"valid_colors ",{"type":993,"tag":1027,"props":5159,"children":5160},{"style":1048},[5161],{"type":999,"value":1051},{"type":993,"tag":1027,"props":5163,"children":5164},{"style":1042},[5165],{"type":999,"value":3442},{"type":993,"tag":1027,"props":5167,"children":5168},{"style":1120},[5169],{"type":999,"value":5170},"\"red\"",{"type":993,"tag":1027,"props":5172,"children":5173},{"style":1042},[5174],{"type":999,"value":1857},{"type":993,"tag":1027,"props":5176,"children":5177},{"style":1120},[5178],{"type":999,"value":5179},"\"green\"",{"type":993,"tag":1027,"props":5181,"children":5182},{"style":1042},[5183],{"type":999,"value":1857},{"type":993,"tag":1027,"props":5185,"children":5186},{"style":1120},[5187],{"type":999,"value":5188},"\"blue\"",{"type":993,"tag":1027,"props":5190,"children":5191},{"style":1042},[5192],{"type":999,"value":1857},{"type":993,"tag":1027,"props":5194,"children":5195},{"style":1120},[5196],{"type":999,"value":5197},"\"yellow\"",{"type":993,"tag":1027,"props":5199,"children":5200},{"style":1042},[5201],{"type":999,"value":3518},{"type":993,"tag":1027,"props":5203,"children":5204},{"class":1029,"line":136},[5205,5210,5214],{"type":993,"tag":1027,"props":5206,"children":5207},{"style":1042},[5208],{"type":999,"value":5209},"user_choice ",{"type":993,"tag":1027,"props":5211,"children":5212},{"style":1048},[5213],{"type":999,"value":1051},{"type":993,"tag":1027,"props":5215,"children":5216},{"style":1120},[5217],{"type":999,"value":5218}," \"green\"\n",{"type":993,"tag":1027,"props":5220,"children":5221},{"class":1029,"line":146},[5222],{"type":993,"tag":1027,"props":5223,"children":5224},{"emptyLinePlaceholder":13},[5225],{"type":999,"value":1099},{"type":993,"tag":1027,"props":5227,"children":5228},{"class":1029,"line":155},[5229,5234,5238,5243,5247],{"type":993,"tag":1027,"props":5230,"children":5231},{"style":1042},[5232],{"type":999,"value":5233},"is_valid_color ",{"type":993,"tag":1027,"props":5235,"children":5236},{"style":1048},[5237],{"type":999,"value":1051},{"type":993,"tag":1027,"props":5239,"children":5240},{"style":1042},[5241],{"type":999,"value":5242}," user_choice ",{"type":993,"tag":1027,"props":5244,"children":5245},{"style":1048},[5246],{"type":999,"value":3543},{"type":993,"tag":1027,"props":5248,"children":5249},{"style":1042},[5250],{"type":999,"value":5251}," valid_colors\n",{"type":993,"tag":1027,"props":5253,"children":5254},{"class":1029,"line":164},[5255,5259,5263,5267,5272,5276,5281,5285,5290,5294,5299,5303,5307,5311],{"type":993,"tag":1027,"props":5256,"children":5257},{"style":1054},[5258],{"type":999,"value":1107},{"type":993,"tag":1027,"props":5260,"children":5261},{"style":1042},[5262],{"type":999,"value":1112},{"type":993,"tag":1027,"props":5264,"children":5265},{"style":1048},[5266],{"type":999,"value":1117},{"type":993,"tag":1027,"props":5268,"children":5269},{"style":1120},[5270],{"type":999,"value":5271},"\"'",{"type":993,"tag":1027,"props":5273,"children":5274},{"style":1054},[5275],{"type":999,"value":1128},{"type":993,"tag":1027,"props":5277,"children":5278},{"style":1042},[5279],{"type":999,"value":5280},"user_choice",{"type":993,"tag":1027,"props":5282,"children":5283},{"style":1054},[5284],{"type":999,"value":1138},{"type":993,"tag":1027,"props":5286,"children":5287},{"style":1120},[5288],{"type":999,"value":5289},"' is valid: ",{"type":993,"tag":1027,"props":5291,"children":5292},{"style":1054},[5293],{"type":999,"value":1128},{"type":993,"tag":1027,"props":5295,"children":5296},{"style":1042},[5297],{"type":999,"value":5298},"is_valid_color",{"type":993,"tag":1027,"props":5300,"children":5301},{"style":1054},[5302],{"type":999,"value":1138},{"type":993,"tag":1027,"props":5304,"children":5305},{"style":1120},[5306],{"type":999,"value":1143},{"type":993,"tag":1027,"props":5308,"children":5309},{"style":1042},[5310],{"type":999,"value":1257},{"type":993,"tag":1027,"props":5312,"children":5313},{"style":1033},[5314],{"type":999,"value":1153},{"type":993,"tag":1027,"props":5316,"children":5317},{"class":1029,"line":173},[5318],{"type":993,"tag":1027,"props":5319,"children":5320},{"emptyLinePlaceholder":13},[5321],{"type":999,"value":1099},{"type":993,"tag":1027,"props":5323,"children":5324},{"class":1029,"line":182},[5325],{"type":993,"tag":1027,"props":5326,"children":5327},{"style":1033},[5328],{"type":999,"value":5329},"# String membership\n",{"type":993,"tag":1027,"props":5331,"children":5332},{"class":1029,"line":191},[5333,5338,5342],{"type":993,"tag":1027,"props":5334,"children":5335},{"style":1042},[5336],{"type":999,"value":5337},"email ",{"type":993,"tag":1027,"props":5339,"children":5340},{"style":1048},[5341],{"type":999,"value":1051},{"type":993,"tag":1027,"props":5343,"children":5344},{"style":1120},[5345],{"type":999,"value":5346}," \"user@example.com\"\n",{"type":993,"tag":1027,"props":5348,"children":5349},{"class":1029,"line":201},[5350,5355,5359,5364,5369],{"type":993,"tag":1027,"props":5351,"children":5352},{"style":1042},[5353],{"type":999,"value":5354},"has_at_symbol ",{"type":993,"tag":1027,"props":5356,"children":5357},{"style":1048},[5358],{"type":999,"value":1051},{"type":993,"tag":1027,"props":5360,"children":5361},{"style":1120},[5362],{"type":999,"value":5363}," \"@\"",{"type":993,"tag":1027,"props":5365,"children":5366},{"style":1048},[5367],{"type":999,"value":5368}," in",{"type":993,"tag":1027,"props":5370,"children":5371},{"style":1042},[5372],{"type":999,"value":5373}," email\n",{"type":993,"tag":1027,"props":5375,"children":5376},{"class":1029,"line":210},[5377,5381,5385,5389,5394,5398,5403,5407,5411,5415],{"type":993,"tag":1027,"props":5378,"children":5379},{"style":1054},[5380],{"type":999,"value":1107},{"type":993,"tag":1027,"props":5382,"children":5383},{"style":1042},[5384],{"type":999,"value":1112},{"type":993,"tag":1027,"props":5386,"children":5387},{"style":1048},[5388],{"type":999,"value":1117},{"type":993,"tag":1027,"props":5390,"children":5391},{"style":1120},[5392],{"type":999,"value":5393},"\"Email has @ symbol: ",{"type":993,"tag":1027,"props":5395,"children":5396},{"style":1054},[5397],{"type":999,"value":1128},{"type":993,"tag":1027,"props":5399,"children":5400},{"style":1042},[5401],{"type":999,"value":5402},"has_at_symbol",{"type":993,"tag":1027,"props":5404,"children":5405},{"style":1054},[5406],{"type":999,"value":1138},{"type":993,"tag":1027,"props":5408,"children":5409},{"style":1120},[5410],{"type":999,"value":1143},{"type":993,"tag":1027,"props":5412,"children":5413},{"style":1042},[5414],{"type":999,"value":1257},{"type":993,"tag":1027,"props":5416,"children":5417},{"style":1033},[5418],{"type":999,"value":1153},{"type":993,"tag":1399,"props":5420,"children":5422},{"id":5421},"identity-testing",[5423],{"type":999,"value":5424},"Identity Testing",{"type":993,"tag":1013,"props":5426,"children":5427},{},[5428],{"type":993,"tag":1017,"props":5429,"children":5431},{"className":1019,"code":5430,"language":6,"meta":8,"style":8},"# Identity testing with 'is' and 'is not'\nvalue = None\nempty_string = \"\"\n\n# Testing for None (important pattern)\nis_none = value is None\nis_not_none = empty_string is not None\n\nprint(f\"Value is None: {is_none}\")            # True\nprint(f\"Empty string is not None: {is_not_none}\")  # True\n",[5432],{"type":993,"tag":1023,"props":5433,"children":5434},{"__ignoreMap":8},[5435,5443,5460,5476,5483,5491,5516,5545,5552,5598],{"type":993,"tag":1027,"props":5436,"children":5437},{"class":1029,"line":12},[5438],{"type":993,"tag":1027,"props":5439,"children":5440},{"style":1033},[5441],{"type":999,"value":5442},"# Identity testing with 'is' and 'is not'\n",{"type":993,"tag":1027,"props":5444,"children":5445},{"class":1029,"line":27},[5446,5451,5455],{"type":993,"tag":1027,"props":5447,"children":5448},{"style":1042},[5449],{"type":999,"value":5450},"value ",{"type":993,"tag":1027,"props":5452,"children":5453},{"style":1048},[5454],{"type":999,"value":1051},{"type":993,"tag":1027,"props":5456,"children":5457},{"style":1054},[5458],{"type":999,"value":5459}," None\n",{"type":993,"tag":1027,"props":5461,"children":5462},{"class":1029,"line":36},[5463,5468,5472],{"type":993,"tag":1027,"props":5464,"children":5465},{"style":1042},[5466],{"type":999,"value":5467},"empty_string ",{"type":993,"tag":1027,"props":5469,"children":5470},{"style":1048},[5471],{"type":999,"value":1051},{"type":993,"tag":1027,"props":5473,"children":5474},{"style":1120},[5475],{"type":999,"value":3690},{"type":993,"tag":1027,"props":5477,"children":5478},{"class":1029,"line":45},[5479],{"type":993,"tag":1027,"props":5480,"children":5481},{"emptyLinePlaceholder":13},[5482],{"type":999,"value":1099},{"type":993,"tag":1027,"props":5484,"children":5485},{"class":1029,"line":54},[5486],{"type":993,"tag":1027,"props":5487,"children":5488},{"style":1033},[5489],{"type":999,"value":5490},"# Testing for None (important pattern)\n",{"type":993,"tag":1027,"props":5492,"children":5493},{"class":1029,"line":63},[5494,5499,5503,5507,5512],{"type":993,"tag":1027,"props":5495,"children":5496},{"style":1042},[5497],{"type":999,"value":5498},"is_none ",{"type":993,"tag":1027,"props":5500,"children":5501},{"style":1048},[5502],{"type":999,"value":1051},{"type":993,"tag":1027,"props":5504,"children":5505},{"style":1042},[5506],{"type":999,"value":3538},{"type":993,"tag":1027,"props":5508,"children":5509},{"style":1048},[5510],{"type":999,"value":5511},"is",{"type":993,"tag":1027,"props":5513,"children":5514},{"style":1054},[5515],{"type":999,"value":5459},{"type":993,"tag":1027,"props":5517,"children":5518},{"class":1029,"line":72},[5519,5524,5528,5533,5537,5541],{"type":993,"tag":1027,"props":5520,"children":5521},{"style":1042},[5522],{"type":999,"value":5523},"is_not_none ",{"type":993,"tag":1027,"props":5525,"children":5526},{"style":1048},[5527],{"type":999,"value":1051},{"type":993,"tag":1027,"props":5529,"children":5530},{"style":1042},[5531],{"type":999,"value":5532}," empty_string ",{"type":993,"tag":1027,"props":5534,"children":5535},{"style":1048},[5536],{"type":999,"value":5511},{"type":993,"tag":1027,"props":5538,"children":5539},{"style":1048},[5540],{"type":999,"value":2653},{"type":993,"tag":1027,"props":5542,"children":5543},{"style":1054},[5544],{"type":999,"value":5459},{"type":993,"tag":1027,"props":5546,"children":5547},{"class":1029,"line":81},[5548],{"type":993,"tag":1027,"props":5549,"children":5550},{"emptyLinePlaceholder":13},[5551],{"type":999,"value":1099},{"type":993,"tag":1027,"props":5553,"children":5554},{"class":1029,"line":91},[5555,5559,5563,5567,5572,5576,5581,5585,5589,5594],{"type":993,"tag":1027,"props":5556,"children":5557},{"style":1054},[5558],{"type":999,"value":1107},{"type":993,"tag":1027,"props":5560,"children":5561},{"style":1042},[5562],{"type":999,"value":1112},{"type":993,"tag":1027,"props":5564,"children":5565},{"style":1048},[5566],{"type":999,"value":1117},{"type":993,"tag":1027,"props":5568,"children":5569},{"style":1120},[5570],{"type":999,"value":5571},"\"Value is None: ",{"type":993,"tag":1027,"props":5573,"children":5574},{"style":1054},[5575],{"type":999,"value":1128},{"type":993,"tag":1027,"props":5577,"children":5578},{"style":1042},[5579],{"type":999,"value":5580},"is_none",{"type":993,"tag":1027,"props":5582,"children":5583},{"style":1054},[5584],{"type":999,"value":1138},{"type":993,"tag":1027,"props":5586,"children":5587},{"style":1120},[5588],{"type":999,"value":1143},{"type":993,"tag":1027,"props":5590,"children":5591},{"style":1042},[5592],{"type":999,"value":5593},")            ",{"type":993,"tag":1027,"props":5595,"children":5596},{"style":1033},[5597],{"type":999,"value":1153},{"type":993,"tag":1027,"props":5599,"children":5600},{"class":1029,"line":100},[5601,5605,5609,5613,5618,5622,5627,5631,5635,5639],{"type":993,"tag":1027,"props":5602,"children":5603},{"style":1054},[5604],{"type":999,"value":1107},{"type":993,"tag":1027,"props":5606,"children":5607},{"style":1042},[5608],{"type":999,"value":1112},{"type":993,"tag":1027,"props":5610,"children":5611},{"style":1048},[5612],{"type":999,"value":1117},{"type":993,"tag":1027,"props":5614,"children":5615},{"style":1120},[5616],{"type":999,"value":5617},"\"Empty string is not None: ",{"type":993,"tag":1027,"props":5619,"children":5620},{"style":1054},[5621],{"type":999,"value":1128},{"type":993,"tag":1027,"props":5623,"children":5624},{"style":1042},[5625],{"type":999,"value":5626},"is_not_none",{"type":993,"tag":1027,"props":5628,"children":5629},{"style":1054},[5630],{"type":999,"value":1138},{"type":993,"tag":1027,"props":5632,"children":5633},{"style":1120},[5634],{"type":999,"value":1143},{"type":993,"tag":1027,"props":5636,"children":5637},{"style":1042},[5638],{"type":999,"value":1257},{"type":993,"tag":1027,"props":5640,"children":5641},{"style":1033},[5642],{"type":999,"value":1153},{"type":993,"tag":1263,"props":5644,"children":5646},{"id":5645},"common-boolean-patterns",[5647],{"type":999,"value":5648},"🔄 Common Boolean Patterns",{"type":993,"tag":1002,"props":5650,"children":5651},{},[5652],{"type":999,"value":5653},"Understanding common boolean patterns helps you solve logical problems effectively.",{"type":993,"tag":1399,"props":5655,"children":5657},{"id":5656},"input-validation",[5658],{"type":999,"value":5659},"Input Validation",{"type":993,"tag":1013,"props":5661,"children":5662},{},[5663],{"type":993,"tag":1017,"props":5664,"children":5666},{"className":1019,"code":5665,"language":6,"meta":8,"style":8},"# Input validation pattern\ndef validate_password(password):\n    min_length = len(password) >= 8\n    has_upper = any(c.isupper() for c in password)\n    has_lower = any(c.islower() for c in password)\n    has_digit = any(c.isdigit() for c in password)\n    \n    is_valid = min_length and has_upper and has_lower and has_digit\n    \n    return {\n        \"valid\": is_valid,\n        \"min_length\": min_length,\n        \"has_upper\": has_upper,\n        \"has_lower\": has_lower,\n        \"has_digit\": has_digit\n    }\n\n# Test password validation\nresult = validate_password(\"MyPass123\")\nprint(f\"Password valid: {result['valid']}\")\nfor check, passed in result.items():\n    if check != \"valid\":\n        status = \"✓\" if passed else \"✗\"\n        print(f\"{check}: {status}\")\n",[5667],{"type":993,"tag":1023,"props":5668,"children":5669},{"__ignoreMap":8},[5670,5678,5697,5728,5767,5804,5841,5849,5893,5900,5913,5926,5939,5952,5965,5978,5986,5993,6001,6027,6078,6099,6126,6161],{"type":993,"tag":1027,"props":5671,"children":5672},{"class":1029,"line":12},[5673],{"type":993,"tag":1027,"props":5674,"children":5675},{"style":1033},[5676],{"type":999,"value":5677},"# Input validation pattern\n",{"type":993,"tag":1027,"props":5679,"children":5680},{"class":1029,"line":27},[5681,5686,5692],{"type":993,"tag":1027,"props":5682,"children":5683},{"style":1048},[5684],{"type":999,"value":5685},"def",{"type":993,"tag":1027,"props":5687,"children":5689},{"style":5688},"--shiki-default:#6F42C1;--shiki-app-dark-mode:#B392F0",[5690],{"type":999,"value":5691}," validate_password",{"type":993,"tag":1027,"props":5693,"children":5694},{"style":1042},[5695],{"type":999,"value":5696},"(password):\n",{"type":993,"tag":1027,"props":5698,"children":5699},{"class":1029,"line":36},[5700,5705,5709,5714,5719,5723],{"type":993,"tag":1027,"props":5701,"children":5702},{"style":1042},[5703],{"type":999,"value":5704},"    min_length ",{"type":993,"tag":1027,"props":5706,"children":5707},{"style":1048},[5708],{"type":999,"value":1051},{"type":993,"tag":1027,"props":5710,"children":5711},{"style":1054},[5712],{"type":999,"value":5713}," len",{"type":993,"tag":1027,"props":5715,"children":5716},{"style":1042},[5717],{"type":999,"value":5718},"(password) ",{"type":993,"tag":1027,"props":5720,"children":5721},{"style":1048},[5722],{"type":999,"value":1669},{"type":993,"tag":1027,"props":5724,"children":5725},{"style":1054},[5726],{"type":999,"value":5727}," 8\n",{"type":993,"tag":1027,"props":5729,"children":5730},{"class":1029,"line":45},[5731,5736,5740,5744,5749,5753,5758,5762],{"type":993,"tag":1027,"props":5732,"children":5733},{"style":1042},[5734],{"type":999,"value":5735},"    has_upper ",{"type":993,"tag":1027,"props":5737,"children":5738},{"style":1048},[5739],{"type":999,"value":1051},{"type":993,"tag":1027,"props":5741,"children":5742},{"style":1054},[5743],{"type":999,"value":5007},{"type":993,"tag":1027,"props":5745,"children":5746},{"style":1042},[5747],{"type":999,"value":5748},"(c.isupper() ",{"type":993,"tag":1027,"props":5750,"children":5751},{"style":1048},[5752],{"type":999,"value":3533},{"type":993,"tag":1027,"props":5754,"children":5755},{"style":1042},[5756],{"type":999,"value":5757}," c ",{"type":993,"tag":1027,"props":5759,"children":5760},{"style":1048},[5761],{"type":999,"value":3543},{"type":993,"tag":1027,"props":5763,"children":5764},{"style":1042},[5765],{"type":999,"value":5766}," password)\n",{"type":993,"tag":1027,"props":5768,"children":5769},{"class":1029,"line":54},[5770,5775,5779,5783,5788,5792,5796,5800],{"type":993,"tag":1027,"props":5771,"children":5772},{"style":1042},[5773],{"type":999,"value":5774},"    has_lower ",{"type":993,"tag":1027,"props":5776,"children":5777},{"style":1048},[5778],{"type":999,"value":1051},{"type":993,"tag":1027,"props":5780,"children":5781},{"style":1054},[5782],{"type":999,"value":5007},{"type":993,"tag":1027,"props":5784,"children":5785},{"style":1042},[5786],{"type":999,"value":5787},"(c.islower() ",{"type":993,"tag":1027,"props":5789,"children":5790},{"style":1048},[5791],{"type":999,"value":3533},{"type":993,"tag":1027,"props":5793,"children":5794},{"style":1042},[5795],{"type":999,"value":5757},{"type":993,"tag":1027,"props":5797,"children":5798},{"style":1048},[5799],{"type":999,"value":3543},{"type":993,"tag":1027,"props":5801,"children":5802},{"style":1042},[5803],{"type":999,"value":5766},{"type":993,"tag":1027,"props":5805,"children":5806},{"class":1029,"line":63},[5807,5812,5816,5820,5825,5829,5833,5837],{"type":993,"tag":1027,"props":5808,"children":5809},{"style":1042},[5810],{"type":999,"value":5811},"    has_digit ",{"type":993,"tag":1027,"props":5813,"children":5814},{"style":1048},[5815],{"type":999,"value":1051},{"type":993,"tag":1027,"props":5817,"children":5818},{"style":1054},[5819],{"type":999,"value":5007},{"type":993,"tag":1027,"props":5821,"children":5822},{"style":1042},[5823],{"type":999,"value":5824},"(c.isdigit() ",{"type":993,"tag":1027,"props":5826,"children":5827},{"style":1048},[5828],{"type":999,"value":3533},{"type":993,"tag":1027,"props":5830,"children":5831},{"style":1042},[5832],{"type":999,"value":5757},{"type":993,"tag":1027,"props":5834,"children":5835},{"style":1048},[5836],{"type":999,"value":3543},{"type":993,"tag":1027,"props":5838,"children":5839},{"style":1042},[5840],{"type":999,"value":5766},{"type":993,"tag":1027,"props":5842,"children":5843},{"class":1029,"line":72},[5844],{"type":993,"tag":1027,"props":5845,"children":5846},{"style":1042},[5847],{"type":999,"value":5848},"    \n",{"type":993,"tag":1027,"props":5850,"children":5851},{"class":1029,"line":81},[5852,5857,5861,5866,5870,5875,5879,5884,5888],{"type":993,"tag":1027,"props":5853,"children":5854},{"style":1042},[5855],{"type":999,"value":5856},"    is_valid ",{"type":993,"tag":1027,"props":5858,"children":5859},{"style":1048},[5860],{"type":999,"value":1051},{"type":993,"tag":1027,"props":5862,"children":5863},{"style":1042},[5864],{"type":999,"value":5865}," min_length ",{"type":993,"tag":1027,"props":5867,"children":5868},{"style":1048},[5869],{"type":999,"value":1233},{"type":993,"tag":1027,"props":5871,"children":5872},{"style":1042},[5873],{"type":999,"value":5874}," has_upper ",{"type":993,"tag":1027,"props":5876,"children":5877},{"style":1048},[5878],{"type":999,"value":1233},{"type":993,"tag":1027,"props":5880,"children":5881},{"style":1042},[5882],{"type":999,"value":5883}," has_lower ",{"type":993,"tag":1027,"props":5885,"children":5886},{"style":1048},[5887],{"type":999,"value":1233},{"type":993,"tag":1027,"props":5889,"children":5890},{"style":1042},[5891],{"type":999,"value":5892}," has_digit\n",{"type":993,"tag":1027,"props":5894,"children":5895},{"class":1029,"line":91},[5896],{"type":993,"tag":1027,"props":5897,"children":5898},{"style":1042},[5899],{"type":999,"value":5848},{"type":993,"tag":1027,"props":5901,"children":5902},{"class":1029,"line":100},[5903,5908],{"type":993,"tag":1027,"props":5904,"children":5905},{"style":1048},[5906],{"type":999,"value":5907},"    return",{"type":993,"tag":1027,"props":5909,"children":5910},{"style":1042},[5911],{"type":999,"value":5912}," {\n",{"type":993,"tag":1027,"props":5914,"children":5915},{"class":1029,"line":109},[5916,5921],{"type":993,"tag":1027,"props":5917,"children":5918},{"style":1120},[5919],{"type":999,"value":5920},"        \"valid\"",{"type":993,"tag":1027,"props":5922,"children":5923},{"style":1042},[5924],{"type":999,"value":5925},": is_valid,\n",{"type":993,"tag":1027,"props":5927,"children":5928},{"class":1029,"line":118},[5929,5934],{"type":993,"tag":1027,"props":5930,"children":5931},{"style":1120},[5932],{"type":999,"value":5933},"        \"min_length\"",{"type":993,"tag":1027,"props":5935,"children":5936},{"style":1042},[5937],{"type":999,"value":5938},": min_length,\n",{"type":993,"tag":1027,"props":5940,"children":5941},{"class":1029,"line":127},[5942,5947],{"type":993,"tag":1027,"props":5943,"children":5944},{"style":1120},[5945],{"type":999,"value":5946},"        \"has_upper\"",{"type":993,"tag":1027,"props":5948,"children":5949},{"style":1042},[5950],{"type":999,"value":5951},": has_upper,\n",{"type":993,"tag":1027,"props":5953,"children":5954},{"class":1029,"line":136},[5955,5960],{"type":993,"tag":1027,"props":5956,"children":5957},{"style":1120},[5958],{"type":999,"value":5959},"        \"has_lower\"",{"type":993,"tag":1027,"props":5961,"children":5962},{"style":1042},[5963],{"type":999,"value":5964},": has_lower,\n",{"type":993,"tag":1027,"props":5966,"children":5967},{"class":1029,"line":146},[5968,5973],{"type":993,"tag":1027,"props":5969,"children":5970},{"style":1120},[5971],{"type":999,"value":5972},"        \"has_digit\"",{"type":993,"tag":1027,"props":5974,"children":5975},{"style":1042},[5976],{"type":999,"value":5977},": has_digit\n",{"type":993,"tag":1027,"props":5979,"children":5980},{"class":1029,"line":155},[5981],{"type":993,"tag":1027,"props":5982,"children":5983},{"style":1042},[5984],{"type":999,"value":5985},"    }\n",{"type":993,"tag":1027,"props":5987,"children":5988},{"class":1029,"line":164},[5989],{"type":993,"tag":1027,"props":5990,"children":5991},{"emptyLinePlaceholder":13},[5992],{"type":999,"value":1099},{"type":993,"tag":1027,"props":5994,"children":5995},{"class":1029,"line":173},[5996],{"type":993,"tag":1027,"props":5997,"children":5998},{"style":1033},[5999],{"type":999,"value":6000},"# Test password validation\n",{"type":993,"tag":1027,"props":6002,"children":6003},{"class":1029,"line":182},[6004,6009,6013,6018,6023],{"type":993,"tag":1027,"props":6005,"children":6006},{"style":1042},[6007],{"type":999,"value":6008},"result ",{"type":993,"tag":1027,"props":6010,"children":6011},{"style":1048},[6012],{"type":999,"value":1051},{"type":993,"tag":1027,"props":6014,"children":6015},{"style":1042},[6016],{"type":999,"value":6017}," validate_password(",{"type":993,"tag":1027,"props":6019,"children":6020},{"style":1120},[6021],{"type":999,"value":6022},"\"MyPass123\"",{"type":993,"tag":1027,"props":6024,"children":6025},{"style":1042},[6026],{"type":999,"value":1519},{"type":993,"tag":1027,"props":6028,"children":6029},{"class":1029,"line":191},[6030,6034,6038,6042,6047,6051,6056,6061,6066,6070,6074],{"type":993,"tag":1027,"props":6031,"children":6032},{"style":1054},[6033],{"type":999,"value":1107},{"type":993,"tag":1027,"props":6035,"children":6036},{"style":1042},[6037],{"type":999,"value":1112},{"type":993,"tag":1027,"props":6039,"children":6040},{"style":1048},[6041],{"type":999,"value":1117},{"type":993,"tag":1027,"props":6043,"children":6044},{"style":1120},[6045],{"type":999,"value":6046},"\"Password valid: ",{"type":993,"tag":1027,"props":6048,"children":6049},{"style":1054},[6050],{"type":999,"value":1128},{"type":993,"tag":1027,"props":6052,"children":6053},{"style":1042},[6054],{"type":999,"value":6055},"result[",{"type":993,"tag":1027,"props":6057,"children":6058},{"style":1120},[6059],{"type":999,"value":6060},"'valid'",{"type":993,"tag":1027,"props":6062,"children":6063},{"style":1042},[6064],{"type":999,"value":6065},"]",{"type":993,"tag":1027,"props":6067,"children":6068},{"style":1054},[6069],{"type":999,"value":1138},{"type":993,"tag":1027,"props":6071,"children":6072},{"style":1120},[6073],{"type":999,"value":1143},{"type":993,"tag":1027,"props":6075,"children":6076},{"style":1042},[6077],{"type":999,"value":1519},{"type":993,"tag":1027,"props":6079,"children":6080},{"class":1029,"line":201},[6081,6085,6090,6094],{"type":993,"tag":1027,"props":6082,"children":6083},{"style":1048},[6084],{"type":999,"value":3533},{"type":993,"tag":1027,"props":6086,"children":6087},{"style":1042},[6088],{"type":999,"value":6089}," check, passed ",{"type":993,"tag":1027,"props":6091,"children":6092},{"style":1048},[6093],{"type":999,"value":3543},{"type":993,"tag":1027,"props":6095,"children":6096},{"style":1042},[6097],{"type":999,"value":6098}," result.items():\n",{"type":993,"tag":1027,"props":6100,"children":6101},{"class":1029,"line":210},[6102,6107,6112,6117,6122],{"type":993,"tag":1027,"props":6103,"children":6104},{"style":1048},[6105],{"type":999,"value":6106},"    if",{"type":993,"tag":1027,"props":6108,"children":6109},{"style":1042},[6110],{"type":999,"value":6111}," check ",{"type":993,"tag":1027,"props":6113,"children":6114},{"style":1048},[6115],{"type":999,"value":6116},"!=",{"type":993,"tag":1027,"props":6118,"children":6119},{"style":1120},[6120],{"type":999,"value":6121}," \"valid\"",{"type":993,"tag":1027,"props":6123,"children":6124},{"style":1042},[6125],{"type":999,"value":3805},{"type":993,"tag":1027,"props":6127,"children":6128},{"class":1029,"line":219},[6129,6134,6138,6143,6147,6152,6156],{"type":993,"tag":1027,"props":6130,"children":6131},{"style":1042},[6132],{"type":999,"value":6133},"        status ",{"type":993,"tag":1027,"props":6135,"children":6136},{"style":1048},[6137],{"type":999,"value":1051},{"type":993,"tag":1027,"props":6139,"children":6140},{"style":1120},[6141],{"type":999,"value":6142}," \"✓\"",{"type":993,"tag":1027,"props":6144,"children":6145},{"style":1048},[6146],{"type":999,"value":3570},{"type":993,"tag":1027,"props":6148,"children":6149},{"style":1042},[6150],{"type":999,"value":6151}," passed ",{"type":993,"tag":1027,"props":6153,"children":6154},{"style":1048},[6155],{"type":999,"value":3579},{"type":993,"tag":1027,"props":6157,"children":6158},{"style":1120},[6159],{"type":999,"value":6160}," \"✗\"\n",{"type":993,"tag":1027,"props":6162,"children":6163},{"class":1029,"line":228},[6164,6169,6173,6177,6181,6185,6190,6194,6198,6202,6207,6211,6215],{"type":993,"tag":1027,"props":6165,"children":6166},{"style":1054},[6167],{"type":999,"value":6168},"        print",{"type":993,"tag":1027,"props":6170,"children":6171},{"style":1042},[6172],{"type":999,"value":1112},{"type":993,"tag":1027,"props":6174,"children":6175},{"style":1048},[6176],{"type":999,"value":1117},{"type":993,"tag":1027,"props":6178,"children":6179},{"style":1120},[6180],{"type":999,"value":1143},{"type":993,"tag":1027,"props":6182,"children":6183},{"style":1054},[6184],{"type":999,"value":1128},{"type":993,"tag":1027,"props":6186,"children":6187},{"style":1042},[6188],{"type":999,"value":6189},"check",{"type":993,"tag":1027,"props":6191,"children":6192},{"style":1054},[6193],{"type":999,"value":1138},{"type":993,"tag":1027,"props":6195,"children":6196},{"style":1120},[6197],{"type":999,"value":1957},{"type":993,"tag":1027,"props":6199,"children":6200},{"style":1054},[6201],{"type":999,"value":1128},{"type":993,"tag":1027,"props":6203,"children":6204},{"style":1042},[6205],{"type":999,"value":6206},"status",{"type":993,"tag":1027,"props":6208,"children":6209},{"style":1054},[6210],{"type":999,"value":1138},{"type":993,"tag":1027,"props":6212,"children":6213},{"style":1120},[6214],{"type":999,"value":1143},{"type":993,"tag":1027,"props":6216,"children":6217},{"style":1042},[6218],{"type":999,"value":1519},{"type":993,"tag":1399,"props":6220,"children":6222},{"id":6221},"access-control",[6223],{"type":999,"value":6224},"Access Control",{"type":993,"tag":1013,"props":6226,"children":6227},{},[6228],{"type":993,"tag":1017,"props":6229,"children":6231},{"className":1019,"code":6230,"language":6,"meta":8,"style":8},"# Access control patterns\ndef check_access(user_role, action):\n    # Define permissions\n    permissions = {\n        \"admin\": [\"read\", \"write\", \"delete\"],\n        \"editor\": [\"read\", \"write\"],\n        \"viewer\": [\"read\"]\n    }\n    \n    # Check permissions\n    user_permissions = permissions.get(user_role, [])\n    has_permission = action in user_permissions\n    is_authenticated = user_role is not None\n    \n    can_access = is_authenticated and has_permission\n    \n    return can_access\n\n# Test access control\nprint(f\"Editor can write: {check_access('editor', 'write')}\")    # True\nprint(f\"Viewer can delete: {check_access('viewer', 'delete')}\")  # False\n",[6232],{"type":993,"tag":1023,"props":6233,"children":6234},{"__ignoreMap":8},[6235,6243,6260,6268,6284,6325,6353,6373,6380,6387,6395,6412,6438,6467,6474,6500,6507,6519,6526,6534,6597],{"type":993,"tag":1027,"props":6236,"children":6237},{"class":1029,"line":12},[6238],{"type":993,"tag":1027,"props":6239,"children":6240},{"style":1033},[6241],{"type":999,"value":6242},"# Access control patterns\n",{"type":993,"tag":1027,"props":6244,"children":6245},{"class":1029,"line":27},[6246,6250,6255],{"type":993,"tag":1027,"props":6247,"children":6248},{"style":1048},[6249],{"type":999,"value":5685},{"type":993,"tag":1027,"props":6251,"children":6252},{"style":5688},[6253],{"type":999,"value":6254}," check_access",{"type":993,"tag":1027,"props":6256,"children":6257},{"style":1042},[6258],{"type":999,"value":6259},"(user_role, action):\n",{"type":993,"tag":1027,"props":6261,"children":6262},{"class":1029,"line":36},[6263],{"type":993,"tag":1027,"props":6264,"children":6265},{"style":1033},[6266],{"type":999,"value":6267},"    # Define permissions\n",{"type":993,"tag":1027,"props":6269,"children":6270},{"class":1029,"line":45},[6271,6276,6280],{"type":993,"tag":1027,"props":6272,"children":6273},{"style":1042},[6274],{"type":999,"value":6275},"    permissions ",{"type":993,"tag":1027,"props":6277,"children":6278},{"style":1048},[6279],{"type":999,"value":1051},{"type":993,"tag":1027,"props":6281,"children":6282},{"style":1042},[6283],{"type":999,"value":5912},{"type":993,"tag":1027,"props":6285,"children":6286},{"class":1029,"line":54},[6287,6292,6297,6302,6306,6311,6315,6320],{"type":993,"tag":1027,"props":6288,"children":6289},{"style":1120},[6290],{"type":999,"value":6291},"        \"admin\"",{"type":993,"tag":1027,"props":6293,"children":6294},{"style":1042},[6295],{"type":999,"value":6296},": [",{"type":993,"tag":1027,"props":6298,"children":6299},{"style":1120},[6300],{"type":999,"value":6301},"\"read\"",{"type":993,"tag":1027,"props":6303,"children":6304},{"style":1042},[6305],{"type":999,"value":1857},{"type":993,"tag":1027,"props":6307,"children":6308},{"style":1120},[6309],{"type":999,"value":6310},"\"write\"",{"type":993,"tag":1027,"props":6312,"children":6313},{"style":1042},[6314],{"type":999,"value":1857},{"type":993,"tag":1027,"props":6316,"children":6317},{"style":1120},[6318],{"type":999,"value":6319},"\"delete\"",{"type":993,"tag":1027,"props":6321,"children":6322},{"style":1042},[6323],{"type":999,"value":6324},"],\n",{"type":993,"tag":1027,"props":6326,"children":6327},{"class":1029,"line":63},[6328,6333,6337,6341,6345,6349],{"type":993,"tag":1027,"props":6329,"children":6330},{"style":1120},[6331],{"type":999,"value":6332},"        \"editor\"",{"type":993,"tag":1027,"props":6334,"children":6335},{"style":1042},[6336],{"type":999,"value":6296},{"type":993,"tag":1027,"props":6338,"children":6339},{"style":1120},[6340],{"type":999,"value":6301},{"type":993,"tag":1027,"props":6342,"children":6343},{"style":1042},[6344],{"type":999,"value":1857},{"type":993,"tag":1027,"props":6346,"children":6347},{"style":1120},[6348],{"type":999,"value":6310},{"type":993,"tag":1027,"props":6350,"children":6351},{"style":1042},[6352],{"type":999,"value":6324},{"type":993,"tag":1027,"props":6354,"children":6355},{"class":1029,"line":72},[6356,6361,6365,6369],{"type":993,"tag":1027,"props":6357,"children":6358},{"style":1120},[6359],{"type":999,"value":6360},"        \"viewer\"",{"type":993,"tag":1027,"props":6362,"children":6363},{"style":1042},[6364],{"type":999,"value":6296},{"type":993,"tag":1027,"props":6366,"children":6367},{"style":1120},[6368],{"type":999,"value":6301},{"type":993,"tag":1027,"props":6370,"children":6371},{"style":1042},[6372],{"type":999,"value":3518},{"type":993,"tag":1027,"props":6374,"children":6375},{"class":1029,"line":81},[6376],{"type":993,"tag":1027,"props":6377,"children":6378},{"style":1042},[6379],{"type":999,"value":5985},{"type":993,"tag":1027,"props":6381,"children":6382},{"class":1029,"line":91},[6383],{"type":993,"tag":1027,"props":6384,"children":6385},{"style":1042},[6386],{"type":999,"value":5848},{"type":993,"tag":1027,"props":6388,"children":6389},{"class":1029,"line":100},[6390],{"type":993,"tag":1027,"props":6391,"children":6392},{"style":1033},[6393],{"type":999,"value":6394},"    # Check permissions\n",{"type":993,"tag":1027,"props":6396,"children":6397},{"class":1029,"line":109},[6398,6403,6407],{"type":993,"tag":1027,"props":6399,"children":6400},{"style":1042},[6401],{"type":999,"value":6402},"    user_permissions ",{"type":993,"tag":1027,"props":6404,"children":6405},{"style":1048},[6406],{"type":999,"value":1051},{"type":993,"tag":1027,"props":6408,"children":6409},{"style":1042},[6410],{"type":999,"value":6411}," permissions.get(user_role, [])\n",{"type":993,"tag":1027,"props":6413,"children":6414},{"class":1029,"line":118},[6415,6420,6424,6429,6433],{"type":993,"tag":1027,"props":6416,"children":6417},{"style":1042},[6418],{"type":999,"value":6419},"    has_permission ",{"type":993,"tag":1027,"props":6421,"children":6422},{"style":1048},[6423],{"type":999,"value":1051},{"type":993,"tag":1027,"props":6425,"children":6426},{"style":1042},[6427],{"type":999,"value":6428}," action ",{"type":993,"tag":1027,"props":6430,"children":6431},{"style":1048},[6432],{"type":999,"value":3543},{"type":993,"tag":1027,"props":6434,"children":6435},{"style":1042},[6436],{"type":999,"value":6437}," user_permissions\n",{"type":993,"tag":1027,"props":6439,"children":6440},{"class":1029,"line":127},[6441,6446,6450,6455,6459,6463],{"type":993,"tag":1027,"props":6442,"children":6443},{"style":1042},[6444],{"type":999,"value":6445},"    is_authenticated ",{"type":993,"tag":1027,"props":6447,"children":6448},{"style":1048},[6449],{"type":999,"value":1051},{"type":993,"tag":1027,"props":6451,"children":6452},{"style":1042},[6453],{"type":999,"value":6454}," user_role ",{"type":993,"tag":1027,"props":6456,"children":6457},{"style":1048},[6458],{"type":999,"value":5511},{"type":993,"tag":1027,"props":6460,"children":6461},{"style":1048},[6462],{"type":999,"value":2653},{"type":993,"tag":1027,"props":6464,"children":6465},{"style":1054},[6466],{"type":999,"value":5459},{"type":993,"tag":1027,"props":6468,"children":6469},{"class":1029,"line":136},[6470],{"type":993,"tag":1027,"props":6471,"children":6472},{"style":1042},[6473],{"type":999,"value":5848},{"type":993,"tag":1027,"props":6475,"children":6476},{"class":1029,"line":146},[6477,6482,6486,6491,6495],{"type":993,"tag":1027,"props":6478,"children":6479},{"style":1042},[6480],{"type":999,"value":6481},"    can_access ",{"type":993,"tag":1027,"props":6483,"children":6484},{"style":1048},[6485],{"type":999,"value":1051},{"type":993,"tag":1027,"props":6487,"children":6488},{"style":1042},[6489],{"type":999,"value":6490}," is_authenticated ",{"type":993,"tag":1027,"props":6492,"children":6493},{"style":1048},[6494],{"type":999,"value":1233},{"type":993,"tag":1027,"props":6496,"children":6497},{"style":1042},[6498],{"type":999,"value":6499}," has_permission\n",{"type":993,"tag":1027,"props":6501,"children":6502},{"class":1029,"line":155},[6503],{"type":993,"tag":1027,"props":6504,"children":6505},{"style":1042},[6506],{"type":999,"value":5848},{"type":993,"tag":1027,"props":6508,"children":6509},{"class":1029,"line":164},[6510,6514],{"type":993,"tag":1027,"props":6511,"children":6512},{"style":1048},[6513],{"type":999,"value":5907},{"type":993,"tag":1027,"props":6515,"children":6516},{"style":1042},[6517],{"type":999,"value":6518}," can_access\n",{"type":993,"tag":1027,"props":6520,"children":6521},{"class":1029,"line":173},[6522],{"type":993,"tag":1027,"props":6523,"children":6524},{"emptyLinePlaceholder":13},[6525],{"type":999,"value":1099},{"type":993,"tag":1027,"props":6527,"children":6528},{"class":1029,"line":182},[6529],{"type":993,"tag":1027,"props":6530,"children":6531},{"style":1033},[6532],{"type":999,"value":6533},"# Test access control\n",{"type":993,"tag":1027,"props":6535,"children":6536},{"class":1029,"line":191},[6537,6541,6545,6549,6554,6558,6563,6568,6572,6577,6581,6585,6589,6593],{"type":993,"tag":1027,"props":6538,"children":6539},{"style":1054},[6540],{"type":999,"value":1107},{"type":993,"tag":1027,"props":6542,"children":6543},{"style":1042},[6544],{"type":999,"value":1112},{"type":993,"tag":1027,"props":6546,"children":6547},{"style":1048},[6548],{"type":999,"value":1117},{"type":993,"tag":1027,"props":6550,"children":6551},{"style":1120},[6552],{"type":999,"value":6553},"\"Editor can write: ",{"type":993,"tag":1027,"props":6555,"children":6556},{"style":1054},[6557],{"type":999,"value":1128},{"type":993,"tag":1027,"props":6559,"children":6560},{"style":1042},[6561],{"type":999,"value":6562},"check_access(",{"type":993,"tag":1027,"props":6564,"children":6565},{"style":1120},[6566],{"type":999,"value":6567},"'editor'",{"type":993,"tag":1027,"props":6569,"children":6570},{"style":1042},[6571],{"type":999,"value":1857},{"type":993,"tag":1027,"props":6573,"children":6574},{"style":1120},[6575],{"type":999,"value":6576},"'write'",{"type":993,"tag":1027,"props":6578,"children":6579},{"style":1042},[6580],{"type":999,"value":1371},{"type":993,"tag":1027,"props":6582,"children":6583},{"style":1054},[6584],{"type":999,"value":1138},{"type":993,"tag":1027,"props":6586,"children":6587},{"style":1120},[6588],{"type":999,"value":1143},{"type":993,"tag":1027,"props":6590,"children":6591},{"style":1042},[6592],{"type":999,"value":2847},{"type":993,"tag":1027,"props":6594,"children":6595},{"style":1033},[6596],{"type":999,"value":1153},{"type":993,"tag":1027,"props":6598,"children":6599},{"class":1029,"line":201},[6600,6604,6608,6612,6617,6621,6625,6630,6634,6639,6643,6647,6651,6655],{"type":993,"tag":1027,"props":6601,"children":6602},{"style":1054},[6603],{"type":999,"value":1107},{"type":993,"tag":1027,"props":6605,"children":6606},{"style":1042},[6607],{"type":999,"value":1112},{"type":993,"tag":1027,"props":6609,"children":6610},{"style":1048},[6611],{"type":999,"value":1117},{"type":993,"tag":1027,"props":6613,"children":6614},{"style":1120},[6615],{"type":999,"value":6616},"\"Viewer can delete: ",{"type":993,"tag":1027,"props":6618,"children":6619},{"style":1054},[6620],{"type":999,"value":1128},{"type":993,"tag":1027,"props":6622,"children":6623},{"style":1042},[6624],{"type":999,"value":6562},{"type":993,"tag":1027,"props":6626,"children":6627},{"style":1120},[6628],{"type":999,"value":6629},"'viewer'",{"type":993,"tag":1027,"props":6631,"children":6632},{"style":1042},[6633],{"type":999,"value":1857},{"type":993,"tag":1027,"props":6635,"children":6636},{"style":1120},[6637],{"type":999,"value":6638},"'delete'",{"type":993,"tag":1027,"props":6640,"children":6641},{"style":1042},[6642],{"type":999,"value":1371},{"type":993,"tag":1027,"props":6644,"children":6645},{"style":1054},[6646],{"type":999,"value":1138},{"type":993,"tag":1027,"props":6648,"children":6649},{"style":1120},[6650],{"type":999,"value":1143},{"type":993,"tag":1027,"props":6652,"children":6653},{"style":1042},[6654],{"type":999,"value":1257},{"type":993,"tag":1027,"props":6656,"children":6657},{"style":1033},[6658],{"type":999,"value":1200},{"type":993,"tag":1263,"props":6660,"children":6662},{"id":6661},"boolean-best-practices",[6663],{"type":999,"value":6664},"⭐ Boolean Best Practices",{"type":993,"tag":1291,"props":6666,"children":6669},{"emoji":6667,"title":6668,"type":1878},"⭐","Boolean Best Practices",[6670,6678,6761,6769,6787,6795],{"type":993,"tag":1002,"props":6671,"children":6672},{},[6673],{"type":993,"tag":1301,"props":6674,"children":6675},{},[6676],{"type":999,"value":6677},"Naming Conventions:",{"type":993,"tag":1307,"props":6679,"children":6680},{},[6681,6704,6743],{"type":993,"tag":1311,"props":6682,"children":6683},{},[6684,6686,6692,6693,6698,6699],{"type":999,"value":6685},"Use descriptive names: ",{"type":993,"tag":1023,"props":6687,"children":6689},{"className":6688},[],[6690],{"type":999,"value":6691},"is_valid",{"type":999,"value":1857},{"type":993,"tag":1023,"props":6694,"children":6696},{"className":6695},[],[6697],{"type":999,"value":1548},{"type":999,"value":1857},{"type":993,"tag":1023,"props":6700,"children":6702},{"className":6701},[],[6703],{"type":999,"value":2834},{"type":993,"tag":1311,"props":6705,"children":6706},{},[6707,6709,6715,6716,6722,6723,6729,6730,6736,6737],{"type":999,"value":6708},"Start with verbs: ",{"type":993,"tag":1023,"props":6710,"children":6712},{"className":6711},[],[6713],{"type":999,"value":6714},"is_",{"type":999,"value":1857},{"type":993,"tag":1023,"props":6717,"children":6719},{"className":6718},[],[6720],{"type":999,"value":6721},"has_",{"type":999,"value":1857},{"type":993,"tag":1023,"props":6724,"children":6726},{"className":6725},[],[6727],{"type":999,"value":6728},"can_",{"type":999,"value":1857},{"type":993,"tag":1023,"props":6731,"children":6733},{"className":6732},[],[6734],{"type":999,"value":6735},"should_",{"type":999,"value":1857},{"type":993,"tag":1023,"props":6738,"children":6740},{"className":6739},[],[6741],{"type":999,"value":6742},"will_",{"type":993,"tag":1311,"props":6744,"children":6745},{},[6746,6748,6753,6755],{"type":999,"value":6747},"Avoid negatives: use ",{"type":993,"tag":1023,"props":6749,"children":6751},{"className":6750},[],[6752],{"type":999,"value":6691},{"type":999,"value":6754}," instead of ",{"type":993,"tag":1023,"props":6756,"children":6758},{"className":6757},[],[6759],{"type":999,"value":6760},"is_not_invalid",{"type":993,"tag":1002,"props":6762,"children":6763},{},[6764],{"type":993,"tag":1301,"props":6765,"children":6766},{},[6767],{"type":999,"value":6768},"Code Clarity:",{"type":993,"tag":1307,"props":6770,"children":6771},{},[6772,6777,6782],{"type":993,"tag":1311,"props":6773,"children":6774},{},[6775],{"type":999,"value":6776},"Use parentheses for complex expressions",{"type":993,"tag":1311,"props":6778,"children":6779},{},[6780],{"type":999,"value":6781},"Break complex conditions into variables",{"type":993,"tag":1311,"props":6783,"children":6784},{},[6785],{"type":999,"value":6786},"Use truthiness appropriately",{"type":993,"tag":1002,"props":6788,"children":6789},{},[6790],{"type":993,"tag":1301,"props":6791,"children":6792},{},[6793],{"type":999,"value":6794},"Avoid These Mistakes:",{"type":993,"tag":1307,"props":6796,"children":6797},{},[6798,6831,6836],{"type":993,"tag":1311,"props":6799,"children":6800},{},[6801,6803,6808,6810,6815,6817,6823,6825],{"type":999,"value":6802},"Don't compare to ",{"type":993,"tag":1023,"props":6804,"children":6806},{"className":6805},[],[6807],{"type":999,"value":1279},{"type":999,"value":6809},"/",{"type":993,"tag":1023,"props":6811,"children":6813},{"className":6812},[],[6814],{"type":999,"value":1287},{"type":999,"value":6816},": use ",{"type":993,"tag":1023,"props":6818,"children":6820},{"className":6819},[],[6821],{"type":999,"value":6822},"if flag:",{"type":999,"value":6824}," not ",{"type":993,"tag":1023,"props":6826,"children":6828},{"className":6827},[],[6829],{"type":999,"value":6830},"if flag == True:",{"type":993,"tag":1311,"props":6832,"children":6833},{},[6834],{"type":999,"value":6835},"Remember operator precedence",{"type":993,"tag":1311,"props":6837,"children":6838},{},[6839,6841,6846,6847,6852],{"type":999,"value":6840},"Know that ",{"type":993,"tag":1023,"props":6842,"children":6844},{"className":6843},[],[6845],{"type":999,"value":1233},{"type":999,"value":3217},{"type":993,"tag":1023,"props":6848,"children":6850},{"className":6849},[],[6851],{"type":999,"value":1863},{"type":999,"value":6853}," short-circuit",{"type":993,"tag":1399,"props":6855,"children":6857},{"id":6856},"clear-boolean-naming",[6858],{"type":999,"value":6859},"Clear Boolean Naming",{"type":993,"tag":1013,"props":6861,"children":6862},{},[6863],{"type":993,"tag":1017,"props":6864,"children":6866},{"className":1019,"code":6865,"language":6,"meta":8,"style":8},"# Good boolean naming practices\nuser_age = 25\naccount_balance = 150\nlast_login_days = 5\n\n# Descriptive boolean names\nis_adult = user_age >= 18\nhas_sufficient_funds = account_balance > 100\nis_active_user = last_login_days \u003C= 7\ncan_make_purchase = is_adult and has_sufficient_funds and is_active_user\n\nprint(f\"Can make purchase: {can_make_purchase}\")\n",[6867],{"type":993,"tag":1023,"props":6868,"children":6869},{"__ignoreMap":8},[6870,6878,6894,6910,6927,6934,6942,6966,6992,7019,7054,7061],{"type":993,"tag":1027,"props":6871,"children":6872},{"class":1029,"line":12},[6873],{"type":993,"tag":1027,"props":6874,"children":6875},{"style":1033},[6876],{"type":999,"value":6877},"# Good boolean naming practices\n",{"type":993,"tag":1027,"props":6879,"children":6880},{"class":1029,"line":27},[6881,6886,6890],{"type":993,"tag":1027,"props":6882,"children":6883},{"style":1042},[6884],{"type":999,"value":6885},"user_age ",{"type":993,"tag":1027,"props":6887,"children":6888},{"style":1048},[6889],{"type":999,"value":1051},{"type":993,"tag":1027,"props":6891,"children":6892},{"style":1054},[6893],{"type":999,"value":1647},{"type":993,"tag":1027,"props":6895,"children":6896},{"class":1029,"line":36},[6897,6901,6905],{"type":993,"tag":1027,"props":6898,"children":6899},{"style":1042},[6900],{"type":999,"value":3715},{"type":993,"tag":1027,"props":6902,"children":6903},{"style":1048},[6904],{"type":999,"value":1051},{"type":993,"tag":1027,"props":6906,"children":6907},{"style":1054},[6908],{"type":999,"value":6909}," 150\n",{"type":993,"tag":1027,"props":6911,"children":6912},{"class":1029,"line":45},[6913,6918,6922],{"type":993,"tag":1027,"props":6914,"children":6915},{"style":1042},[6916],{"type":999,"value":6917},"last_login_days ",{"type":993,"tag":1027,"props":6919,"children":6920},{"style":1048},[6921],{"type":999,"value":1051},{"type":993,"tag":1027,"props":6923,"children":6924},{"style":1054},[6925],{"type":999,"value":6926}," 5\n",{"type":993,"tag":1027,"props":6928,"children":6929},{"class":1029,"line":54},[6930],{"type":993,"tag":1027,"props":6931,"children":6932},{"emptyLinePlaceholder":13},[6933],{"type":999,"value":1099},{"type":993,"tag":1027,"props":6935,"children":6936},{"class":1029,"line":63},[6937],{"type":993,"tag":1027,"props":6938,"children":6939},{"style":1033},[6940],{"type":999,"value":6941},"# Descriptive boolean names\n",{"type":993,"tag":1027,"props":6943,"children":6944},{"class":1029,"line":72},[6945,6949,6953,6958,6962],{"type":993,"tag":1027,"props":6946,"children":6947},{"style":1042},[6948],{"type":999,"value":1655},{"type":993,"tag":1027,"props":6950,"children":6951},{"style":1048},[6952],{"type":999,"value":1051},{"type":993,"tag":1027,"props":6954,"children":6955},{"style":1042},[6956],{"type":999,"value":6957}," user_age ",{"type":993,"tag":1027,"props":6959,"children":6960},{"style":1048},[6961],{"type":999,"value":1669},{"type":993,"tag":1027,"props":6963,"children":6964},{"style":1054},[6965],{"type":999,"value":1674},{"type":993,"tag":1027,"props":6967,"children":6968},{"class":1029,"line":81},[6969,6974,6978,6983,6987],{"type":993,"tag":1027,"props":6970,"children":6971},{"style":1042},[6972],{"type":999,"value":6973},"has_sufficient_funds ",{"type":993,"tag":1027,"props":6975,"children":6976},{"style":1048},[6977],{"type":999,"value":1051},{"type":993,"tag":1027,"props":6979,"children":6980},{"style":1042},[6981],{"type":999,"value":6982}," account_balance ",{"type":993,"tag":1027,"props":6984,"children":6985},{"style":1048},[6986],{"type":999,"value":1243},{"type":993,"tag":1027,"props":6988,"children":6989},{"style":1054},[6990],{"type":999,"value":6991}," 100\n",{"type":993,"tag":1027,"props":6993,"children":6994},{"class":1029,"line":91},[6995,7000,7004,7009,7014],{"type":993,"tag":1027,"props":6996,"children":6997},{"style":1042},[6998],{"type":999,"value":6999},"is_active_user ",{"type":993,"tag":1027,"props":7001,"children":7002},{"style":1048},[7003],{"type":999,"value":1051},{"type":993,"tag":1027,"props":7005,"children":7006},{"style":1042},[7007],{"type":999,"value":7008}," last_login_days ",{"type":993,"tag":1027,"props":7010,"children":7011},{"style":1048},[7012],{"type":999,"value":7013},"\u003C=",{"type":993,"tag":1027,"props":7015,"children":7016},{"style":1054},[7017],{"type":999,"value":7018}," 7\n",{"type":993,"tag":1027,"props":7020,"children":7021},{"class":1029,"line":100},[7022,7027,7031,7036,7040,7045,7049],{"type":993,"tag":1027,"props":7023,"children":7024},{"style":1042},[7025],{"type":999,"value":7026},"can_make_purchase ",{"type":993,"tag":1027,"props":7028,"children":7029},{"style":1048},[7030],{"type":999,"value":1051},{"type":993,"tag":1027,"props":7032,"children":7033},{"style":1042},[7034],{"type":999,"value":7035}," is_adult ",{"type":993,"tag":1027,"props":7037,"children":7038},{"style":1048},[7039],{"type":999,"value":1233},{"type":993,"tag":1027,"props":7041,"children":7042},{"style":1042},[7043],{"type":999,"value":7044}," has_sufficient_funds ",{"type":993,"tag":1027,"props":7046,"children":7047},{"style":1048},[7048],{"type":999,"value":1233},{"type":993,"tag":1027,"props":7050,"children":7051},{"style":1042},[7052],{"type":999,"value":7053}," is_active_user\n",{"type":993,"tag":1027,"props":7055,"children":7056},{"class":1029,"line":109},[7057],{"type":993,"tag":1027,"props":7058,"children":7059},{"emptyLinePlaceholder":13},[7060],{"type":999,"value":1099},{"type":993,"tag":1027,"props":7062,"children":7063},{"class":1029,"line":118},[7064,7068,7072,7076,7081,7085,7090,7094,7098],{"type":993,"tag":1027,"props":7065,"children":7066},{"style":1054},[7067],{"type":999,"value":1107},{"type":993,"tag":1027,"props":7069,"children":7070},{"style":1042},[7071],{"type":999,"value":1112},{"type":993,"tag":1027,"props":7073,"children":7074},{"style":1048},[7075],{"type":999,"value":1117},{"type":993,"tag":1027,"props":7077,"children":7078},{"style":1120},[7079],{"type":999,"value":7080},"\"Can make purchase: ",{"type":993,"tag":1027,"props":7082,"children":7083},{"style":1054},[7084],{"type":999,"value":1128},{"type":993,"tag":1027,"props":7086,"children":7087},{"style":1042},[7088],{"type":999,"value":7089},"can_make_purchase",{"type":993,"tag":1027,"props":7091,"children":7092},{"style":1054},[7093],{"type":999,"value":1138},{"type":993,"tag":1027,"props":7095,"children":7096},{"style":1120},[7097],{"type":999,"value":1143},{"type":993,"tag":1027,"props":7099,"children":7100},{"style":1042},[7101],{"type":999,"value":1519},{"type":993,"tag":1399,"props":7103,"children":7105},{"id":7104},"simplifying-complex-conditions",[7106],{"type":999,"value":7107},"Simplifying Complex Conditions",{"type":993,"tag":1013,"props":7109,"children":7110},{},[7111],{"type":993,"tag":1017,"props":7112,"children":7114},{"className":1019,"code":7113,"language":6,"meta":8,"style":8},"# Simplifying complex conditions\ndef check_loan_eligibility(age, income, credit_score):\n    # Break complex condition into clear parts\n    meets_age_requirement = 18 \u003C= age \u003C= 65\n    has_stable_income = income >= 30000\n    has_good_credit = credit_score >= 650\n    \n    # Combine conditions clearly\n    is_eligible = (meets_age_requirement and \n                  has_stable_income and \n                  has_good_credit)\n    \n    return is_eligible\n\n# Test eligibility\neligible = check_loan_eligibility(30, 45000, 720)\nprint(f\"Loan eligible: {eligible}\")\n",[7115],{"type":993,"tag":1023,"props":7116,"children":7117},{"__ignoreMap":8},[7118,7126,7143,7151,7184,7210,7236,7243,7251,7277,7293,7301,7308,7320,7327,7335,7379],{"type":993,"tag":1027,"props":7119,"children":7120},{"class":1029,"line":12},[7121],{"type":993,"tag":1027,"props":7122,"children":7123},{"style":1033},[7124],{"type":999,"value":7125},"# Simplifying complex conditions\n",{"type":993,"tag":1027,"props":7127,"children":7128},{"class":1029,"line":27},[7129,7133,7138],{"type":993,"tag":1027,"props":7130,"children":7131},{"style":1048},[7132],{"type":999,"value":5685},{"type":993,"tag":1027,"props":7134,"children":7135},{"style":5688},[7136],{"type":999,"value":7137}," check_loan_eligibility",{"type":993,"tag":1027,"props":7139,"children":7140},{"style":1042},[7141],{"type":999,"value":7142},"(age, income, credit_score):\n",{"type":993,"tag":1027,"props":7144,"children":7145},{"class":1029,"line":36},[7146],{"type":993,"tag":1027,"props":7147,"children":7148},{"style":1033},[7149],{"type":999,"value":7150},"    # Break complex condition into clear parts\n",{"type":993,"tag":1027,"props":7152,"children":7153},{"class":1029,"line":45},[7154,7159,7163,7167,7172,7176,7180],{"type":993,"tag":1027,"props":7155,"children":7156},{"style":1042},[7157],{"type":999,"value":7158},"    meets_age_requirement ",{"type":993,"tag":1027,"props":7160,"children":7161},{"style":1048},[7162],{"type":999,"value":1051},{"type":993,"tag":1027,"props":7164,"children":7165},{"style":1054},[7166],{"type":999,"value":2154},{"type":993,"tag":1027,"props":7168,"children":7169},{"style":1048},[7170],{"type":999,"value":7171}," \u003C=",{"type":993,"tag":1027,"props":7173,"children":7174},{"style":1042},[7175],{"type":999,"value":1664},{"type":993,"tag":1027,"props":7177,"children":7178},{"style":1048},[7179],{"type":999,"value":7013},{"type":993,"tag":1027,"props":7181,"children":7182},{"style":1054},[7183],{"type":999,"value":1699},{"type":993,"tag":1027,"props":7185,"children":7186},{"class":1029,"line":54},[7187,7192,7196,7201,7205],{"type":993,"tag":1027,"props":7188,"children":7189},{"style":1042},[7190],{"type":999,"value":7191},"    has_stable_income ",{"type":993,"tag":1027,"props":7193,"children":7194},{"style":1048},[7195],{"type":999,"value":1051},{"type":993,"tag":1027,"props":7197,"children":7198},{"style":1042},[7199],{"type":999,"value":7200}," income ",{"type":993,"tag":1027,"props":7202,"children":7203},{"style":1048},[7204],{"type":999,"value":1669},{"type":993,"tag":1027,"props":7206,"children":7207},{"style":1054},[7208],{"type":999,"value":7209}," 30000\n",{"type":993,"tag":1027,"props":7211,"children":7212},{"class":1029,"line":63},[7213,7218,7222,7227,7231],{"type":993,"tag":1027,"props":7214,"children":7215},{"style":1042},[7216],{"type":999,"value":7217},"    has_good_credit ",{"type":993,"tag":1027,"props":7219,"children":7220},{"style":1048},[7221],{"type":999,"value":1051},{"type":993,"tag":1027,"props":7223,"children":7224},{"style":1042},[7225],{"type":999,"value":7226}," credit_score ",{"type":993,"tag":1027,"props":7228,"children":7229},{"style":1048},[7230],{"type":999,"value":1669},{"type":993,"tag":1027,"props":7232,"children":7233},{"style":1054},[7234],{"type":999,"value":7235}," 650\n",{"type":993,"tag":1027,"props":7237,"children":7238},{"class":1029,"line":72},[7239],{"type":993,"tag":1027,"props":7240,"children":7241},{"style":1042},[7242],{"type":999,"value":5848},{"type":993,"tag":1027,"props":7244,"children":7245},{"class":1029,"line":81},[7246],{"type":993,"tag":1027,"props":7247,"children":7248},{"style":1033},[7249],{"type":999,"value":7250},"    # Combine conditions clearly\n",{"type":993,"tag":1027,"props":7252,"children":7253},{"class":1029,"line":91},[7254,7259,7263,7268,7272],{"type":993,"tag":1027,"props":7255,"children":7256},{"style":1042},[7257],{"type":999,"value":7258},"    is_eligible ",{"type":993,"tag":1027,"props":7260,"children":7261},{"style":1048},[7262],{"type":999,"value":1051},{"type":993,"tag":1027,"props":7264,"children":7265},{"style":1042},[7266],{"type":999,"value":7267}," (meets_age_requirement ",{"type":993,"tag":1027,"props":7269,"children":7270},{"style":1048},[7271],{"type":999,"value":1233},{"type":993,"tag":1027,"props":7273,"children":7274},{"style":1042},[7275],{"type":999,"value":7276}," \n",{"type":993,"tag":1027,"props":7278,"children":7279},{"class":1029,"line":100},[7280,7285,7289],{"type":993,"tag":1027,"props":7281,"children":7282},{"style":1042},[7283],{"type":999,"value":7284},"                  has_stable_income ",{"type":993,"tag":1027,"props":7286,"children":7287},{"style":1048},[7288],{"type":999,"value":1233},{"type":993,"tag":1027,"props":7290,"children":7291},{"style":1042},[7292],{"type":999,"value":7276},{"type":993,"tag":1027,"props":7294,"children":7295},{"class":1029,"line":109},[7296],{"type":993,"tag":1027,"props":7297,"children":7298},{"style":1042},[7299],{"type":999,"value":7300},"                  has_good_credit)\n",{"type":993,"tag":1027,"props":7302,"children":7303},{"class":1029,"line":118},[7304],{"type":993,"tag":1027,"props":7305,"children":7306},{"style":1042},[7307],{"type":999,"value":5848},{"type":993,"tag":1027,"props":7309,"children":7310},{"class":1029,"line":127},[7311,7315],{"type":993,"tag":1027,"props":7312,"children":7313},{"style":1048},[7314],{"type":999,"value":5907},{"type":993,"tag":1027,"props":7316,"children":7317},{"style":1042},[7318],{"type":999,"value":7319}," is_eligible\n",{"type":993,"tag":1027,"props":7321,"children":7322},{"class":1029,"line":136},[7323],{"type":993,"tag":1027,"props":7324,"children":7325},{"emptyLinePlaceholder":13},[7326],{"type":999,"value":1099},{"type":993,"tag":1027,"props":7328,"children":7329},{"class":1029,"line":146},[7330],{"type":993,"tag":1027,"props":7331,"children":7332},{"style":1033},[7333],{"type":999,"value":7334},"# Test eligibility\n",{"type":993,"tag":1027,"props":7336,"children":7337},{"class":1029,"line":155},[7338,7343,7347,7352,7357,7361,7366,7370,7375],{"type":993,"tag":1027,"props":7339,"children":7340},{"style":1042},[7341],{"type":999,"value":7342},"eligible ",{"type":993,"tag":1027,"props":7344,"children":7345},{"style":1048},[7346],{"type":999,"value":1051},{"type":993,"tag":1027,"props":7348,"children":7349},{"style":1042},[7350],{"type":999,"value":7351}," check_loan_eligibility(",{"type":993,"tag":1027,"props":7353,"children":7354},{"style":1054},[7355],{"type":999,"value":7356},"30",{"type":993,"tag":1027,"props":7358,"children":7359},{"style":1042},[7360],{"type":999,"value":1857},{"type":993,"tag":1027,"props":7362,"children":7363},{"style":1054},[7364],{"type":999,"value":7365},"45000",{"type":993,"tag":1027,"props":7367,"children":7368},{"style":1042},[7369],{"type":999,"value":1857},{"type":993,"tag":1027,"props":7371,"children":7372},{"style":1054},[7373],{"type":999,"value":7374},"720",{"type":993,"tag":1027,"props":7376,"children":7377},{"style":1042},[7378],{"type":999,"value":1519},{"type":993,"tag":1027,"props":7380,"children":7381},{"class":1029,"line":164},[7382,7386,7390,7394,7399,7403,7408,7412,7416],{"type":993,"tag":1027,"props":7383,"children":7384},{"style":1054},[7385],{"type":999,"value":1107},{"type":993,"tag":1027,"props":7387,"children":7388},{"style":1042},[7389],{"type":999,"value":1112},{"type":993,"tag":1027,"props":7391,"children":7392},{"style":1048},[7393],{"type":999,"value":1117},{"type":993,"tag":1027,"props":7395,"children":7396},{"style":1120},[7397],{"type":999,"value":7398},"\"Loan eligible: ",{"type":993,"tag":1027,"props":7400,"children":7401},{"style":1054},[7402],{"type":999,"value":1128},{"type":993,"tag":1027,"props":7404,"children":7405},{"style":1042},[7406],{"type":999,"value":7407},"eligible",{"type":993,"tag":1027,"props":7409,"children":7410},{"style":1054},[7411],{"type":999,"value":1138},{"type":993,"tag":1027,"props":7413,"children":7414},{"style":1120},[7415],{"type":999,"value":1143},{"type":993,"tag":1027,"props":7417,"children":7418},{"style":1042},[7419],{"type":999,"value":1519},{"type":993,"tag":1263,"props":7421,"children":7423},{"id":7422},"key-takeaways",[7424],{"type":999,"value":7425},"🎯 Key Takeaways",{"type":993,"tag":1291,"props":7427,"children":7430},{"emoji":7428,"title":7429,"type":1295},"📚","Boolean Essentials",[7431,7439,7487,7495,7524,7532],{"type":993,"tag":1002,"props":7432,"children":7433},{},[7434],{"type":993,"tag":1301,"props":7435,"children":7436},{},[7437],{"type":999,"value":7438},"Core Concepts:",{"type":993,"tag":1307,"props":7440,"children":7441},{},[7442,7460,7482],{"type":993,"tag":1311,"props":7443,"children":7444},{},[7445,7447,7452,7453,7458],{"type":999,"value":7446},"Only two values: ",{"type":993,"tag":1023,"props":7448,"children":7450},{"className":7449},[],[7451],{"type":999,"value":1279},{"type":999,"value":3217},{"type":993,"tag":1023,"props":7454,"children":7456},{"className":7455},[],[7457],{"type":999,"value":1287},{"type":999,"value":7459}," (capitalized)",{"type":993,"tag":1311,"props":7461,"children":7462},{},[7463,7465,7470,7471,7476,7477],{"type":999,"value":7464},"Logical operators: ",{"type":993,"tag":1023,"props":7466,"children":7468},{"className":7467},[],[7469],{"type":999,"value":1233},{"type":999,"value":1857},{"type":993,"tag":1023,"props":7472,"children":7474},{"className":7473},[],[7475],{"type":999,"value":1863},{"type":999,"value":1857},{"type":993,"tag":1023,"props":7478,"children":7480},{"className":7479},[],[7481],{"type":999,"value":1871},{"type":993,"tag":1311,"props":7483,"children":7484},{},[7485],{"type":999,"value":7486},"Truthiness: Empty/zero values are falsy, others are truthy",{"type":993,"tag":1002,"props":7488,"children":7489},{},[7490],{"type":993,"tag":1301,"props":7491,"children":7492},{},[7493],{"type":999,"value":7494},"Common Patterns:",{"type":993,"tag":1307,"props":7496,"children":7497},{},[7498,7508,7519],{"type":993,"tag":1311,"props":7499,"children":7500},{},[7501,7503],{"type":999,"value":7502},"Comparisons return booleans: ",{"type":993,"tag":1023,"props":7504,"children":7506},{"className":7505},[],[7507],{"type":999,"value":4812},{"type":993,"tag":1311,"props":7509,"children":7510},{},[7511,7513],{"type":999,"value":7512},"Use in conditional logic: ",{"type":993,"tag":1023,"props":7514,"children":7516},{"className":7515},[],[7517],{"type":999,"value":7518},"if is_logged_in:",{"type":993,"tag":1311,"props":7520,"children":7521},{},[7522],{"type":999,"value":7523},"Combine with logical operators",{"type":993,"tag":1002,"props":7525,"children":7526},{},[7527],{"type":993,"tag":1301,"props":7528,"children":7529},{},[7530],{"type":999,"value":7531},"Best Practices:",{"type":993,"tag":1307,"props":7533,"children":7534},{},[7535,7556,7572],{"type":993,"tag":1311,"props":7536,"children":7537},{},[7538,7539,7544,7545,7550,7551],{"type":999,"value":6685},{"type":993,"tag":1023,"props":7540,"children":7542},{"className":7541},[],[7543],{"type":999,"value":6714},{"type":999,"value":1857},{"type":993,"tag":1023,"props":7546,"children":7548},{"className":7547},[],[7549],{"type":999,"value":6721},{"type":999,"value":1857},{"type":993,"tag":1023,"props":7552,"children":7554},{"className":7553},[],[7555],{"type":999,"value":6728},{"type":993,"tag":1311,"props":7557,"children":7558},{},[7559,7561,7566,7567],{"type":999,"value":7560},"Avoid comparing to ",{"type":993,"tag":1023,"props":7562,"children":7564},{"className":7563},[],[7565],{"type":999,"value":1279},{"type":999,"value":6809},{"type":993,"tag":1023,"props":7568,"children":7570},{"className":7569},[],[7571],{"type":999,"value":1287},{"type":993,"tag":1311,"props":7573,"children":7574},{},[7575],{"type":999,"value":6781},{"type":993,"tag":1263,"props":7577,"children":7579},{"id":7578},"test-your-knowledge",[7580],{"type":999,"value":7581},"🧠 Test Your Knowledge",{"type":993,"tag":1002,"props":7583,"children":7584},{},[7585],{"type":999,"value":7586},"Ready to test your understanding of true/false values?",{"type":993,"tag":7588,"props":7589,"children":7593},"redirect-button",{"icon":7590,"label":7591,"url":7592},"pi pi-send","Take Quiz","/tutorial-quiz/python/true-false-values",[],{"type":993,"tag":1263,"props":7595,"children":7597},{"id":7596},"whats-next",[7598],{"type":999,"value":7599},"🚀 What's Next?",{"type":993,"tag":1002,"props":7601,"children":7602},{},[7603],{"type":999,"value":7604},"Now that you understand boolean values and logical operations, you're ready to explore type conversion - how to transform data between different types like strings, numbers, and booleans.",{"type":993,"tag":1002,"props":7606,"children":7607},{},[7608,7610,7618,7620,7627],{"type":999,"value":7609},"Learn about ",{"type":993,"tag":1301,"props":7611,"children":7612},{},[7613],{"type":993,"tag":7614,"props":7615,"children":7616},"a",{"href":123},[7617],{"type":999,"value":124},{"type":999,"value":7619}," to master data transformation, or explore ",{"type":993,"tag":1301,"props":7621,"children":7622},{},[7623],{"type":993,"tag":7614,"props":7624,"children":7625},{"href":142},[7626],{"type":999,"value":143},{"type":999,"value":7628}," for mathematical calculations and comparisons.",{"type":993,"tag":7630,"props":7631,"children":7632},"style",{},[7633],{"type":999,"value":7634},"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":7636},[7637,7641,7647,7650,7653,7657,7661,7665,7666,7667],{"id":1265,"depth":27,"text":1268,"children":7638},[7639,7640],{"id":1401,"depth":36,"text":1404},{"id":1604,"depth":36,"text":1607},{"id":1842,"depth":27,"text":1845,"children":7642},[7643,7644,7645,7646],{"id":2054,"depth":36,"text":2057},{"id":2323,"depth":36,"text":2326},{"id":2601,"depth":36,"text":2604},{"id":2854,"depth":36,"text":2857},{"id":3202,"depth":27,"text":3205,"children":7648},[7649],{"id":3652,"depth":36,"text":3655},{"id":4033,"depth":27,"text":4036,"children":7651},[7652],{"id":4387,"depth":36,"text":4390},{"id":4817,"depth":27,"text":4820,"children":7654},[7655,7656],{"id":4828,"depth":36,"text":4831},{"id":5421,"depth":36,"text":5424},{"id":5645,"depth":27,"text":5648,"children":7658},[7659,7660],{"id":5656,"depth":36,"text":5659},{"id":6221,"depth":36,"text":6224},{"id":6661,"depth":27,"text":6664,"children":7662},[7663,7664],{"id":6856,"depth":36,"text":6859},{"id":7104,"depth":36,"text":7107},{"id":7422,"depth":27,"text":7425},{"id":7578,"depth":27,"text":7581},{"id":7596,"depth":27,"text":7599},1782373731835]