- 1
whats this?
1==1
4 Antworten
+ 4
It is that one is equal to 1.
The difference between = and == is: = asigns a value to the left side e.g x = 5 here what we are doing is that from now on the value of x will be 5. We made a value for x.
So now if we say x == 5 it means x is equal to 5 which is true. If we say x = 9 it will be false because x is equal to 5.
*I was confused with this a while ago and I moved on then after sometime I understood it.
Hope it helps :)
0
boolean type...
print (1==1)
True
0
Think of == as meaning 'matches'
- 1
You can try it in your terminal. It returns True which means their TYPE and VALUE are same.