Advertisement
sissou123

Untitled

Mar 22nd, 2022
868
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.52 KB | None | 0 0
  1. Python "not" operator
  2. The "not" is a unary operator, which means that it works with 1 operand and returns the inverted truth value for that operand.
  3. In simple terms, if the input is True, then the output is False and if the input is False, then the output is True.
  4.  
  5. This is simple when the operands are direct of type bool. However, the inputs can be numeric types, objects, lists, and so on. In such cases, the output depends on how Python calculates the truth value for that entity.
  6.  
  7. for more:https://www.clictune.com/ey5b
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement