Help /


#1

boolean_1 = (3 < 4 || false) && (false || true)

boolean_1 = (=!'true' || =!'false') && ('flase'||'true')
(=!'true' || =!'false') && (=!'false' || =!'true')

boolean_2 = !true && (!true || 100 != 5**2)

boolean_2 = =!'true' &&(!true || 100 !=5**2)
(=!'true')

boolean_3 = true || !(true || false)

boolean_3 =
(=!'true')

I did the first line. What am I doing wrong ?


#2

Please post a link to the exercise. Thank you.

It may be that we are expected to manually evaluate the exprressions given in the comment.

(3 < 4 || false) && (false || true)

# break this into two operands
A = (3 < 4 || false)
B = (false || true)

# so that the expression above will look like,  A && B

# now work on each expression and break them down
3 < 4 || false
true     ignored
  |
short circuit to ----> true

# so that,         A = true

false || true
defer ->  |
           ----------> true
# so that,         B = true

# therefore, A && B == true

# thus,

boolean_1 = true