Set bool_four equal to the result of not 3**2 + 4**2 != 5**2 - Not able to understand


Replace this line with your code.


Well let us break it down. 3**2 or 3 to the 2nd power is 9 since 3 times 3 is 9. Plus 4**2 which is 4 to the 2nd power so 16. 9 + 16 = 25. != is not equal to while 5**2 power is 25 so 25 != 25 therefore it is saying that 25 does not equal 25 which is False. However, for bool_four you have forgotten one thing! NOT! Not is the key word in this statement. As stated in the lesson, "The boolean operator not returns True for false statements and False for true statements." Therefore, in my mind at least, it like taking a positive value and putting a negative sign in front of it. You make it the opposite as it was! So since the statement is now "negative" the statement is now True!


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