- 1
in python 3 ( egal is ==) , what about this one ( = ) what does it mean?
3 Answers
0
== compare values and returns a true or false result
5 == 5 will be true
6.8 == 4.0 will be false
= assigns values to a variable
a = 5
b = "hello world"
you can use == to compare variables
a == b will return false with the previous values
I hope this helps :)
+ 1
I try to say "is" when the symbol is =
I try to say "is equal" when the symbol is ==
The "is" = gets used to assign a value to a variable, the "is equal" == gets used to compare the value against the variable.
0
i see, thx bro ššš