2. Differentiate between = and == in python .Explain with the help of an example?
Answers
Answered by
4
Answer:
== is the equality operator. It is used in true/false expressions to check whether one value is equal to another one. For example, (2 + 2) == 5 evaluates to false, since 2 + 2 = 4, and 4 is not equal to 5. The equality operator doens't set any value, it only checks whether two values are equal.
Explanation:
Please mark me as brainliest
Similar questions