A heatpump is a device that can both produce heating and cooling. They are often used in climates with mild winters. However, recent technological improvements have allowed geothermal heatpumps to operate in virtually any climate.
Example:
In some parts of the world, people simply turn a window air conditioner "backwards" when it is cool outside. This is a basic example of a heat pump.