What is the difference between "=" and "===" in python?

If any one knows please explain.

Post edited by TechnoBear to remove fake signature

First off, there is no === in python, just ==.

Secondly, the single =, denotes assignment, you are giving a value to a variable/object., the double ==, means comparison, you are comparing the object on the left to the object on the right.

I highly recommend taking the Learn Python course at CodeAcademy, the first 3 chapters will teach you this immediately

1 Like

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.