Is there default system already? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Is there default system already?

when i type 9==9, it says true 9==8, it says false

15th Jan 2017, 1:12 PM
Omar
Omar - avatar
3 Answers
+ 2
Yes, it is explained in the Boolean logic chapter, the '==' sign checks if the two values are equal and returns True or False
15th Jan 2017, 4:43 PM
iStealApples
iStealApples - avatar
+ 1
explanation : is 9 "is equal to " 9?? (9 == 9): TRUE,, it is true, because 9 is equal to it self, then 9 " is equal to " 8 ?? (9 == 8): FALSE,, it is false, because 9 is not equal to 8, this comparison (==) indicates to "is equal to".
17th Jan 2017, 9:05 AM
Darwin Fegarido
Darwin Fegarido - avatar
0
should have been more careful, thank you!
15th Jan 2017, 9:57 PM
Omar
Omar - avatar