Python, Boolean - Conditionals & Control Flow - Not understanding -


i cant seem grasp bootlean operators. i'm using example code academy. @ first read wrong , putting true or not false , false instead of true or false.

can explain bit more me can more of understanding.

assign true or false appropriate bool_one through bool_five.  set bool_one equal result of false or not true , true set bool_two equal result of false , not true or true set bool_three equal result of true , not (false or false) set bool_four equal result of not not true or false , not true set bool_five equal result of false or not (true , true) 

you have 3 boolean operations , rules:

  1. not, inverses (aka not true => false, not false => true)
  2. or, works on 2 operands x or y , returns true if either true , false if both false
  3. and, works on 2 operands x , y , returns true if both true , false otherwise
  4. they evaluated left right
  5. not has highest precedence, and after that, lastly or
  6. you can use () change precedence of operations, in everyday math

Comments

Popular posts from this blog

php - Admin SDK -- get information about the group -

dns - How To Use Custom Nameserver On Free Cloudflare? -

Python Error - TypeError: input expected at most 1 arguments, got 3 -