Billions of Booleans


#1

I've tried to put in the following:

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==1 )

This doesn't work, and I can't figure out why.


#2

You forgot to close a parenthesis here.


#3
  Here's The Right Way


        #  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==1)

#4

Another option

test_1 should be true

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

test_2 = should be true

test_2 = ( 1 <= 1 ) || ( 1 > 100)

test_3 = should be false

test_3 = !(true)