Stuck again on Conditionals and Control Flow


#1


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

File "python", line 1
bool_one = 8 == 8 or 'Cleese' == 'King Arthur' True
^
SyntaxError: invalid syntax

Oops, try again. Your code looks a bit off. Check the Hint if you need help! Your code threw the following error: invalid syntax (python, line 1)

I expected the math to check out and to have correct labeling of true or false statements. I'm not sure what I'm doing wrong. Help would be greatly appreciated.


Replace this line with your code. 

bool_one = 8 == 8 or 'Cleese' == 'King Arthur' True

bool_two = 2 < 17 or 4 != 4 True

bool_three = 20 >= 50 or 3 > 7 False

bool_four = 8 == 8 or 17 == 17 True 

bool_five = 100 == 100 or 6 != 6 True


#2

It says the error is in line 1. Is there an error because I am using 'Cleese' and 'King Arthur' as values?


#3

Visually examine the expressions in each comment and write only the boolean for each answer.

# 2**3 == 108 % 100 or 'Cleese' == 'King Arthur'
bool_one = True

To repeat, visually. Do not use the computer to solve them. We need to learn to mentally evaluate expressions. An invaluable skill to have.


#4

I see. I thought that all the whole expression had to be entered before assigning True or False. I appreciate your input.


#5

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