Could it be the amount of indentation you are using? Usually if you let IDLE handle the indenting it works as expected, but then I am not running Debian Linux... -->if x < y: --> print x, "is less than", y -->elif x > y: --> print x, "is greater than", y -->else: --> print x, "and", y, "are equal"