What does the double equals sign (==) mean?

Asked by emeka_nwankwo · 6 months ago

1 Answer

13
amorebise · 6 months ago Top Answer

In Python, a single = is used to give a value to something (like age = 15). A double == is a question: "Are these two things equal?"

It’s like checking two bags of rice to see if they weigh the same. It will give you a 'True' or 'False' answer. This is one of the most common mistakes beginners make—don't feel bad if you mix them up at first!

Log in to add a comment.