+ 1

When i will print (3!=6) it shows true....... But when i will print (3!=8) it also shows true............How it's possible

I will not understand that concept

1st Mar 2018, 6:32 PM
Rahul Godela
Rahul Godela - avatar
6 Antworten
+ 4
!= is a logical operator which means different, so: 3 is different of 6 = true 3 is different of 8 = true
1st Mar 2018, 6:37 PM
voidneo
+ 3
false Correct!
1st Mar 2018, 6:50 PM
Rahul Godela
Rahul Godela - avatar
+ 1
is it true now
1st Mar 2018, 6:50 PM
Rahul Godela
Rahul Godela - avatar
+ 1
The "!=" is logical operator that give us true when both values are different. 3!=6 is true because 3 is not (!) equal (=) and to 6. If both values are equals give us false
5th Mar 2018, 10:19 PM
David Rueda 🇪🇸
David Rueda  🇪🇸 - avatar
0
print (3!=3) gives False. Because the condition is not true.
4th Apr 2018, 4:05 AM
Santhosh Jain
Santhosh Jain - avatar