+ 2
what is the different between = and ==
5 Answers
+ 9
= assigns a value
== checks it
How you'd mostly use them:
var a = 15;
You make the value of a 15.
if(a == 15){
//code
}
You check if a has a certain value
+ 9
Of course in Python it will be:
a = 15
if a == 15:
code_here
respectively :)
+ 4
@Kuba yeah thanks, didn't notice it was about Python đ
+ 1
= assignment operator
== boolean equality operator
0
= is used for assignement and == is used for check equality.