0

Please can anyone put me through

>>> 1 != 1 why is it false False >>> "eleven" != "seven" why is it ture True >>> 2 != 10why is it ture True

14th Feb 2020, 9:28 AM
Peter Emmanuel
Peter Emmanuel - avatar
3 Antworten
+ 5
!= means 'not equal' 1!=1 means 1 is not equal to 1 which is False
14th Feb 2020, 9:52 AM
Anshika
Anshika - avatar
+ 4
The first one compares two integers. 1 is equal to 1, so the condition is false. Second one compares two strings, they are not identical, so - true. Third one compares 2 integers - they are not identical, so the condition to be "different" is true.
14th Feb 2020, 9:33 AM
Snezhina Velcheva
Snezhina Velcheva - avatar
+ 2
Thanks
14th Feb 2020, 9:56 AM
Peter Emmanuel
Peter Emmanuel - avatar