Conditionals & Control Flow: OR


#1

HI I am currently stuck on these questions! The OR condition says that if one or more of the statements is True then the answer is True....so I am not sure why my answer to question 5 is incorrect? Here is the question:

Set bool_five equal to the result of 1**100 == 100**1 or 3 * 2 * 1 != 3 + 2 + 1


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

This is the error I keep getting:

"Oops, try again. Double check your value for bool_five!"

Here are my answers: (please note I have also used the answers "True or False and 100 == 100 or 6 != 6...both returned that error)


> bool_one = True

> bool_two = 3 == 3 or 100 == 5

> bool_three = False or False

> bool_four = 4**.50 >= 1 or True

> bool_five = True


#2

that condition evaluate to False? So bool_five should be set to False, not True


#3

Am I reading this wrong?

1**100 = 100
100**1 = 100
So True

3 * 2 *1 = 6
3 + 2 + 1 = 6
So True

?


#4

1**100 = 100

this is not right. 1 till the power of 100 is one (1 * 1 * 1 * 1.... *1), but it still one (multiply 1 times 1 one-hundred times)

6 != 6

this is also false, 6 != 6 is false because they are equal


#5

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