- 3
How 7!=8 is true
14 ответов
+ 5
Madhu Mannem
7 == 8 //false
7 != 8 //true
!= is opposite of ==
8 == 8 //true
8 != 8 //false
+ 4
because that's true that 7 is no equals to 8 ^^
+ 3
Runtime Terror please don't be offensive to others. your another form is correct. if someone doesn't agree, elaborate.
"That's not another form.
That's !false and !true means not False and not True"
🅰🅹 🅐🅝🅐🅝🅣 if it is neither true nor false, what it is?
"!(7 == 8)"
BODMAS rule apply here. the complier will first solve what's inside the brackets and then the "!" outside the brackets it will swap from false to true.
you both don't have make a convo in stay safe thread.
+ 1
Thank you
+ 1
Not equal to (!=) clearly mentions the LHS != RHS. Therefore it's TRUE.
0
I get confused like that all the time.
0
🅰🅹 🅐🅝🅐🅝🅣 then, why did you said that it's not another way to do get the same result?
and you said the it wouldn't result neither true nor false. while I said it's the another form of doing.
0
🅰🅹 🅐🅝🅐🅝🅣 maybe you should checked this out https://code.sololearn.com/cSKnDogoznn4/?ref=app
"and !true in case of !(8 == 8)"
whatever's inside the bracket will be true, but that exclamation mark will make the whole condition false.
0
x=100
if x>97:
print("x")
What's the reason I am getting error
0
x=100
if x>97:
print("x")
What's the reason I am getting error
0
if python, because lacks of indentation...
if x>97:
print("x")
0
7!=5040 but not here
0
Print(7!=8)=true
0
print(5+5)