Conditionals & Control Flow, 9 This and that

python

#1

bool_one = False (or) (not) True and True

bool_two = False (and) not True or True

bool_three = True and not (False or False)

bool_four = not not True (or) False (and) not True

bool_five = False (or) not (True and True)

This is the code i used, but it says File "python", line 1
bool_one = False (or) (not) True and True
^
SyntaxError: invalid syntax

PLEASE HELP


#2

Remove the parentheses on "or" and "not", that's what's tripping you up.


#3

bool_one = False or not True and True
print bool_one
bool_two = False and not True or True
print bool_two
bool_three = True and not (False or False)
print bool_three
bool_four = not not True or False and not True
print bool_four
bool_five = False or not (True and True)
print bool_five
You have to put the parentheses in correct position. Not surround 'or' and 'not'.


#4

Don't put in the parentheses! If you get rid of them, it will be perfect!:slight_smile: