About 2,160 results
Open links in new tab
  1. Python Booleans - W3Schools

    You can evaluate any expression in Python, and get one of two answers, True or False. When you compare two values, the …

  2. Python Logical Operators - GeeksforGeeks

    5 days ago · Logical operators are used to combine or modify conditions and return a Boolean result (True or False). They are …

  3. Python Booleans: True, False, Logic Guide - PyTutorial

    Mar 13, 2026 · Master Python booleans: understand True, False values, logical operators, truthy/falsy evaluation, and practical use …

  4. boolean - 'True' and 'False' in Python - Stack Overflow

    In the context of Boolean operations, and also when expressions are used by control flow statements, the following values are …

  5. Python Booleans: Use Truth Values in Your Code – Real Python

    In this tutorial, you'll learn about the built-in Python Boolean data type, which is used to represent the truth value of an expression. …

  6. Built-in Constants — Python 3.14.5 documentation

    2 days ago · The names None, False, True and __debug__ cannot be reassigned (assignments to them, even as an attribute name, …

  7. Use of True, False, and None as return values in Python functions

    In Python, True, False, and None are commonly used as return values in functions to convey specific meanings or to signal certain …

  8. Python Boolean and Conditional Programming: if.. else

    Oct 16, 2025 · It’s important to note, that in Python a Boolean value starts with an upper-case letter: True or False. This is in contrast …

  9. Understanding True and False in Python - CodeRivers

    Mar 22, 2025 · They are fundamental to programming in Python, whether you're writing simple scripts or complex applications. This …

  10. Booleans, True or False in Python

    Booleans are fundamental data types in Python that can hold two possible values: True or False. They play a pivotal role in …