python what is teh difference between = and == code example Example: what does == mean in python if a == 2: # Compares whether a is equal to 2 print a