Using equal sign

why are we using double equal sign ?0_MDl5GVBoOxw9hFw5

The = and == operators make variable assignment and equality check different.

Variable assignment:
x = 6

Equality statement:
if x == 6:
print(“The value x is equal to 6”)

The single equals sign is used for setting a value (a = 2), while the double equals sign is used to compare values (if a == 2:).