Glossary

assignment operator

it gives a value to a variable (`x = 5`). `==` is the **equality comparison operator** — it checks whether two values are equal and returns `True` or `False` (`x == 5`). Confusing them is one of the most common beginner bugs, and we'll revisit it in detail in this chapter.

Learn More

Related Terms