A heat pump comprising: an indoor unit comprising an indoor heat exchanger ; an outdoor unit comprising an outdoor heat exchanger and a compressor configured to compress a refrigerant; a housing which forms an outer shape of the outdoor unit and provides an internal space in which the outdoor heat exchanger and the compressor are disposed; a partition wall which is disposed in the internal space of the housing , and divides the internal space into a flow path part space in which the outdoor heat exchanger is disposed and a cycle part space (S2) in which the compressor is disposed; an outdoor fan which is disposed in the flow path part space (S1) configured to generate an air flow; and a controller (C) configured to control an operation of the compressor and the outdoor fan , wherein the housing has a hole communicating with the cycle part space (S2), and the partition wall has a barrier hole mutually communicating the flow path part space and the cycle part space (S2), characterized in that the heat pump further comprises: a damper which is coupled to one side of the partition wall so as to be movable in a vertical direction, wherein the damper is positioned above the barrier hole to open the barrier hole , or covers one side of the barrier hole to close the barrier hole , a guide rail configured to guide the movement of the damper , and a motor electrically connected to the controller (C) and configured to provide power to the damper to move the damper on the guide rail in the vertical direction. an indoor unit comprising an indoor heat exchanger ; an outdoor unit comprising an outdoor heat exchanger and a compressor configured to compress a refrigerant; a housing which forms an outer shape of the outdoor unit and provides an internal space in which the outdoor heat exchanger and the compressor are disposed; a partition wall which is disposed in the internal space of the housing , and divides the internal space into a flow path part space in which the outdoor heat exchanger is disposed and a cycle part space (S2) in which the compressor is disposed; an outdoor fan which is disposed in the flow path part space (S1) configured to generate an air flow; and a controller (C) configured to control an operation of the compressor and the outdoor fan , wherein the housing has a hole communicating with the cycle part space (S2), and the partition wall has a barrier hole mutually communicating the flow path part space and the cycle part space (S2), characterized in that the heat pump further comprises: a damper which is coupled to one side of the partition wall so as to be movable in a vertical direction, wherein the damper is positioned above the barrier hole to open the barrier hole , or covers one side of the barrier hole to close the barrier hole , a guide rail configured to guide the movement of the damper , and a motor electrically connected to the controller (C) and configured to provide power to the damper to move the damper on the guide rail in the vertical direction. a damper which is coupled to one side of the partition wall so as to be movable in a vertical direction, wherein the damper is positioned above the barrier hole to open the barrier hole , or covers one side of the barrier hole to close the barrier hole , a guide rail configured to guide the movement of the damper , and a motor electrically connected to the controller (C) and configured to provide power to the damper to move the damper on the guide rail in the vertical direction. <EOS>