How 7!=8 is true | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 3

How 7!=8 is true

27th Jun 2021, 2:55 AM
Madhu Mannem
Madhu Mannem - avatar
14 Answers
+ 5
Madhu Mannem 7 == 8 //false 7 != 8 //true != is opposite of == 8 == 8 //true 8 != 8 //false
27th Jun 2021, 4:45 AM
A͢J
A͢J - avatar
+ 4
because that's true that 7 is no equals to 8 ^^
27th Jun 2021, 3:05 AM
visph
visph - avatar
+ 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.
27th Jun 2021, 1:41 PM
Rellot's screwdriver
Rellot's screwdriver - avatar
+ 1
Thank you
27th Jun 2021, 5:10 AM
Madhu Mannem
Madhu Mannem - avatar
+ 1
Not equal to (!=) clearly mentions the LHS != RHS. Therefore it's TRUE.
27th Jun 2021, 12:00 PM
Falguni Raja
Falguni Raja - avatar
0
I get confused like that all the time.
27th Jun 2021, 10:30 AM
Conor Walsh
Conor Walsh - avatar
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.
27th Jun 2021, 1:50 PM
Rellot's screwdriver
Rellot's screwdriver - avatar
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.
27th Jun 2021, 1:59 PM
Rellot's screwdriver
Rellot's screwdriver - avatar
0
x=100 if x>97: print("x") What's the reason I am getting error
27th Jun 2021, 4:57 PM
Madhu Mannem
Madhu Mannem - avatar
0
x=100 if x>97: print("x") What's the reason I am getting error
27th Jun 2021, 4:58 PM
Madhu Mannem
Madhu Mannem - avatar
0
if python, because lacks of indentation... if x>97: print("x")
27th Jun 2021, 4:59 PM
visph
visph - avatar
0
7!=5040 but not here
28th Feb 2022, 6:25 PM
0
Print(7!=8)=true
26th Jan 2023, 7:36 AM
kangana Desani
kangana Desani - avatar
0
print(5+5)
17th Mar 2024, 10:26 PM
JhoneTutors
JhoneTutors - avatar