Im following the instructions and im still getting SyntaxError


#1

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

bool_two = True or False False and not True or True

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

bool_four = True or False not not True or False and not True

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

Am i missing something? or do i need to put a parentheses somewhere?


#2

Can you give a link to which part of the course this is. Also, having a two Boolean data types next to each other without an operator will throw an error(for example True True, you need a 'not', 'and', or 'or' in between).


#3

What excercise are you on?


#4

https://www.codecademy.com/courses/python-beginner-BxUFN/2/5?curriculum_id=4f89dab3d788890003000096


#5

The name of my topic for this exercise is "This and That (or This, But Not That!)"


#6

What they want you to do here is to evaluate the expression and assign the variables(bool_one through bool_five) with either a True or False(only one).Don't forget the order of operations(not, and, or) and that parentheses get evaluated as its own unit.


#7

ohh i get it now Thank You


#8

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.