if 1+2=3self.moveXY (55,24)
More details needed. All I can tell you is that the code you posted should read:
if 1 + 2 == 3:
self.moveXY(55, 24)
It is == instead of =
= saves information in variables
== sees if two things are the same
There is a : after the if statement
moveXY is on the next line and has 4 spaces in front of it