SyntaxError: invalid syntax bool_five = ((10 % 8) <= 2**1)) and True


#1



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


File "python", line 16
bool_five = ((10 % 8) <= 2**1)) and True
^
SyntaxError: invalid syntax

Oops, try again. Make sure you have a value for all 5 variables!


I need a fresh look coz I can't find what exactly syntax error is. Many thanks in advance! With love from Ukraine xD


# Use boolean expressions as appropriate on the lines below!

# Make me false!
bool_one = (2 <= 2) and "Alpha" == "Bravo"  # We did this one for you!

# Make me true!
bool_two = not False and (True or False) or False

# Make me false!
bool_three = (10 % 4) < 3 and 2**3 <=7

# Make me true!
bool_four = not not not False and ((4 == 2**2) or (True or False)

# Make me true!
bool_five = ((10 % 8) <= 2**1)) and True


#2

Sorry, just extra '('


#3

Well right here you have an extra (

And here you have an extra )

but it would seem you found them yourself! good job!


#4

Thanks man, I appreciate your help. Seems like I need some coffee-break :slight_smile: if I don't see such simple errors


#5

Yeah when you get stuck up against the wall sometimes the best thing to do is sleep on it, wake up with a fresh mind, and get some caffeine in ya xD Hopefully the rest of your lessons today won't be that stressful :smiley: :coffee:


#7