Check for correction


#1

Exercise number 6 in Conditionals & Control flow
https://www.codecademy.com/en/courses/python-beginner-BxUFN/2/2?curriculum_id=4f89dab3d788890003000096#

bool_four is not accepted unless the result is True and True. However, I think the result is True and False. Here we are looking for the boolean values of -(1**2) < 2**0 and 10 % 10 <= 20 - 10 * 2. The latter should result in 1 <= 0, which is False. I think I'm right because you would multiply before subtraction, ending with the result of 0 in 20 - 10 * 2, unless 20-10 were in parentheses.


#2

you are right, 20 - 10 * 2 is 0

but you got it wrong here:

10 % 10

the modulo operator (%) is used, not the division (/) operator. 10 % 10 is zero.


#3

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