An air conditioner takes heat out of a house (cooling it) and transfers the heat into the air around the house. Through the use of a reversing valve, a suitably equipped air conditioner takes heat out of the air around the house and transfers it to the house interior (heating it).