# test_1 should be true

test_1 = (4==1) && (4==4) //true

# test_2 = should be true

test_2 = (5==6)||(5==6) //true

# test_3 = should be false

test_3 = !(true) //false
it says that I need to put a expression after =!
any one help

Try removing the parenthesis around true.

Are these part of your code?

``````test_1 = (4==1) && (4==4) //true
``````

This is not true.

Home stretch! Letâ€™s go over boolean operators.

( 1 == 1 ) && ( 2 == 2 ) // true
( 1 == 2 ) || ( 2 == 2 ) // true
!( false ) // true
With && both comparisons on the left and right must evaluate to true for the entire statement to return true. If the left side does not return true it will not bother trying the right side
with || either the right or left side must evaluate to true. If the left side evaluates to true, the right side will not be tried because it has met the condition of one side being true.
! does the opposite. If youâ€™re false youâ€™re now true. if youâ€™re true youâ€™re now false! Just think of it as opposite day!
Instructions
The code in the editor indicates what value (true or false) we want each variable to have, and your job is to add an expression that evaluates to the correct value using boolean operators (&&, ||, or !).

##this is the problem I am working on it
I got this new code but still wrong

# test_1 should be true

test_1 = 4<11 && 4>2

test_2 = 5<6 5>6

# test_3 = should be false

test_3 = !5<4
the thing is that I dont know how to structure the code right.

``````test_2 = 5<6 5>6

test_3 = !5<4
``````

These are not valid tests. How are composed the tests given in the examples?

1 Like

Here is the correct answer to this exercise Billions of Booleans!
I finally passed on my own, the replies here were not helpful.

# test_1 should be true

test_1 = ( 1 == 1 ) && ( 2 == 2 )

# test_2 = should be true

test_2 = ( 1 == 2 ) || ( 2 == 2 )

# test_3 = should be false

test_3 = ( 1 == 1 ) != ( 2 == 2 )