+ 2
What is 2==3 in this i dont get it
5 Réponses
+ 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
+ 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
+ 3
thanks @Dirty Joe
+ 3
gotcha dude👍
+ 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.