Pergunta de entrevista da empresa Digital Futures

What does the == operator do?

Resposta da entrevista

Sigiloso

5 de set. de 2025

The == operator checks if the left-hand value is equal to the right-hand value. For example, within the following if statement it checks if the value of x is equal to y. Since 2 and 4 are different numbers it will return Not a match. x = 2 y = 4 if x == y: print("Match") else: print("Not a match")