+ 4
The difference between = and ==
Hmmm.... I learned that == make the output true or false but what is the difference between the usage of = and ==?
4 Answers
+ 25
= is the assignment operator while == is conditional
x=5 will assign the value of 5 to x
x==5 will check whether x has a value of 5 and will give True or False
+ 4
Thanks
+ 3
Example:
you = "this"
That is for assigning things.
A boolean is the == Determines something equals another thing.
+ 2
thanks