- 1

whats this?

1==1

10th Aug 2016, 4:10 AM
msaid
4 odpowiedzi
+ 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 :)
10th Aug 2016, 5:00 AM
Nadir Nour
Nadir  Nour - avatar
0
boolean type... print (1==1) True
10th Aug 2016, 4:39 AM
Дмитрий Сотников
Дмитрий Сотников - avatar
0
Think of == as meaning 'matches'
28th Aug 2016, 12:54 AM
Jason G
Jason G - avatar
- 1
You can try it in your terminal. It returns True which means their TYPE and VALUE are same.
10th Aug 2016, 8:27 AM
李正军
李正军 - avatar