What does the "==" mean? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

What does the "==" mean?

12th Jan 2016, 4:18 AM
John Savona
John Savona - avatar
4 Answers
+ 1
== means is equal to... we are not using = because it is used to assign value. On the other hand == is used to check wether it is equal or not.
29th Jan 2016, 7:35 AM
Samnit Mehandiratta
Samnit Mehandiratta - avatar
0
It's a comparison operator. It is checking whether the item in the left is equal to the item on the right. Hence >>>2 == 3 False >>>3 == 3 True
25th Jan 2016, 10:41 AM
pythonscripper
0
It checks if both numbers are equal to eachother. 3 == 3 True 3 == 1 False
6th Feb 2016, 6:44 PM
Ryan
0
= is action , for example to make a=b ,make a equal to b. == is used for check out if really equal to be or not, so we can use it for IF statement
2nd Jul 2016, 12:50 PM
Elad Kipiani
Elad Kipiani - avatar