+ 2

What is 2==3 in this i dont get it

22nd Apr 2017, 7:32 PM
Jayant Mewada
Jayant Mewada - avatar
5 Respuestas
+ 4
2==3 is False .. == is a comparator. it is checking if 2 is equal to 3. since it is not, it is False. 2==2 is True for the same reason
22nd Apr 2017, 7:37 PM
LordHill
LordHill - avatar
+ 4
bonus info.. ! means "not" ... so 2!=3 is True.. this basically says: 2 is not equal to 3 .. that is True. 2!=2 is False for the same reason
22nd Apr 2017, 7:43 PM
LordHill
LordHill - avatar
+ 3
thanks @Dirty Joe
22nd Apr 2017, 7:39 PM
Jayant Mewada
Jayant Mewada - avatar
+ 3
gotcha dude👍
22nd Apr 2017, 7:45 PM
Jayant Mewada
Jayant Mewada - avatar
+ 1
Just to mention here , we need to be careful with the = and == operator. 2=3 will always give us True (as it is assignment operator) 2==3 will give us False as it is a comparator operator.
23rd Apr 2017, 8:08 AM
SATYAJEET JHA
SATYAJEET JHA - avatar