7/15 Or


#1

I can't get my code to work:

bool_one = 2**3 == 108%100 or 'Cleese' == 'King Arthur'
bool_two = 1<2 or 2>4
bool_three = (100**0.5 >= 50) or False
bool_four = 2>1 or 3>1
Bool_five = 1**100 == 100**1 or 3 * 2 * 1 != 3 + 2 + 1

Someone please help!!


#2

You should really be working out those expressions and then setting the bool variable to that, like this:

bool_one = True

You are getting an error because of the uppercase B there.


#3

Why is Bool_one True?
Since 2**3=8 and 108%100=1.08 and "Cleese" hasn't been defined as being equal to "King Arthur"


#4

108 % 100 = 8

% means "What is the remainder after the first number is divided by the second number?"

I don't know what you are trying to tell me there :smile:

Which exercise is this?


#6