- 1

in python 3 ( egal is ==) , what about this one ( = ) what does it mean?

1st Jan 2022, 7:30 PM
Miso Bassoum
Miso Bassoum - avatar
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 :)
1st Jan 2022, 7:44 PM
Apollo-Roboto
Apollo-Roboto - avatar
+ 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.
2nd Jan 2022, 4:40 AM
HungryTradie
HungryTradie - avatar
0
i see, thx bro šŸ™šŸ™šŸ™
1st Jan 2022, 7:53 PM
Miso Bassoum
Miso Bassoum - avatar