I don't get bool 5 It keeps telling me I'm wrong


#1



Replace this line with your code.


#2

can I see your code please?


#3

8 ** 2 == 5 ** 3 + 1 and 1.6 ** 10 == 7 ** 2 + 2


#4

This is not a valid statement thus resulting in neither True or False bringing about the error. You need to create a new statement. :slight_smile:


#5

Thank you
:sunglasses:


#6

Wrong.

>>> 8 ** 2 == 5 ** 3 + 1 and 1.6 ** 10 == 7 ** 2 + 2
False

The problem is not anything to do with the validity of the statement. It is valid expression. The problem is in the math.

8 ** 2    => 64
5 ** 3    => 125
1.6 ** 10 => 109.95116277760006
7 ** 2    => 49

When we use the correct operator...

>>> 8 * 2 == 5 * 3 + 1 and 1.6 * 10 == 7 * 2 + 2
True

#7

Thank you @mtf I should have evaluated for myself before coming to a hurried conclusion. :slight_smile:


#8

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