AND OR NOT

                                                                                                                 Friday, 12th January 2018


                                                                AND OR NOT


AND


use in while loops
us in for loops
use in if statement


Both input 1 and input 2 have to be true to get a true output.








OR


use in while loop
use in for loops
use in if statement





Only one of the inputs has to be true, in order for the output to be true.



















NOT


use in while loop
use in for loops
use in if statement





In this situation, know as the NOT, id the input is true the output is false, vice versa.






Comments