+ 1
What does "==" mean in Python?
Example: 1+1 == 2
2 odpowiedzi
+ 1
The == operator is used for comparison so in your example it compare 1+1 to 2 then it will evaluate to true
+ 1
As said in Geekforgeeks:
"The == operator compares the values of both the operands and checks for value equality"
== returns True if right value and left value are equal. If they're not, it will return False