+ 1
What does == mean ?
4 odpowiedzi
+ 1
It is a comparison operator. It returns true, if both values are the same, otherwise false
Example:
5 == 5 //true
5 == 4 //false
5 == "5" //true, works for different datatypes
+ 2
Sure, but he didn't say a word about languages
+ 2
In Python 5 == "5" is False.
== is used to check, whether 2 compared values have the equal value and returns a boolean (True or False).
== in words: "is equal to".