Billions of boolens


#1

Details are confusing and instructions are not clear. My answer in the Editor is according to the instructions and Q&A FORUM . Pl verify the answer quickly give the reply so that I can go ahead.


#2

Hi Rajesh,

Please post and format (select code while in the editor and press Ctrl/Cmd + K) your code so we can help you.


#3

Test 1 should be true
= ( 1 == 1 ) && ( 2 = 2 )
Test 2 should be true
= ( 1 == 2 ) || ( 1 == 2 )
Test 3 should be false
= ( 1 == 1 ) ! ( 1 == 2 )


#4

Right. So your first bit of code needs two equal signs (=) between 2 and 2, one is setting 2 equal to 2, rather than checking if they are equal.
The second bit, neither of those is going to come out true because 1 does not equal 2, ever. So make the second option there be 1 == 1 or something, and I think it should pass you :)

If you're still having trouble, please let me know!


#5

I made necessary corrections as advised by you but it is not passing.The editor says "Make sure to put an expression after each =!"
Test 1
= ( 1 == 1 ) && ( 2 == 2 )
Test 2
= ( 1 == 1 ) || ( 1 == 2 )
Test 3
= ( ( 1 == 1 ) ! ( 1 == 2 )


#6

You don't have any variable to assign these booleans.

some_variable = 4 > 2

would be correct, but

= 4 > 2

would not.


#12

5 posts were split to a new topic: Can you please tell me where I'm going wrong?