![]()  | 
          
            ![]()  | 
        
| 
             Re: 
           | 
          
             HP Inc. 
           | 
        
| 
             Registration Statement on Form S-3 
           | 
        
| (i) | 
             the Company’s unsecured debt securities, which may either be senior debt securities (the “Senior Debt Securities”), or subordinated debt securities (the ”Subordinated
                Debt Securities” and, collectively with the Senior Debt Securities, the ”Debt Securities”); 
           | 
        
| (ii) | 
             shares of the Company’s common stock, par value $0.01 per share (the ”Common Stock”); 
           | 
        
| (iii) | 
             shares of the Company’s preferred stock, par value $0.01 per share (the ”Preferred Stock”); 
           | 
        
| (iv) | 
             depositary shares each representing a fraction of a share of a particular series of Preferred Stock (the ”Depositary Shares”); and 
           | 
        
| (v) | 
             warrants for the purchase of Common Stock, Preferred Stock, Depositary Shares or Debt Securities (the ”Warrants”). 
           | 
        

| (i) | 
             at the time any Securities are sold pursuant to the Registration Statement (the ”Relevant Time”), the Registration Statement and any supplements and amendments thereto (including post-effective
              amendments) will be effective and will comply with all applicable laws; 
           | 
        
| (ii) | 
             at the Relevant Time, a prospectus supplement will have been prepared and filed with the Commission describing the Securities offered thereby and all related documentation and will comply with all applicable laws; 
           | 
        
| (iii) | 
             all Securities will be issued and sold in the manner stated in the Registration Statement and the applicable prospectus supplement; 
           | 
        
| (iv) | 
             at the Relevant Time, all corporate or other action required to be taken by the Company to duly authorize each proposed issuance of Securities and any related documentation (including (i) the due reservation of any shares of Common Stock
              or Preferred Stock for issuance upon exercise, conversion or exchange of any Securities for Common Stock or Preferred Stock (a ”Convertible Security”), and (ii) the execution (in the case of
              certificated Securities), delivery and performance of the Securities and any related documentation referred to in paragraphs 1 through 5 below) shall have been duly completed and shall remain in full force and effect; 
           | 
        

| (v) | 
             upon issuance of any Common Stock or Preferred Stock, including upon exercise, conversion or exchange of any Convertible Security, the total number of shares of Common Stock or Preferred Stock issued and outstanding will not exceed the
              total number of shares of Common Stock or Preferred Stock, as applicable, that the Company is then authorized to issue under its certificate of incorporation and other relevant documents; 
           | 
        
| (vi) | 
             in the case of Debt Securities, at the Relevant Time, the relevant Base Indenture shall have been duly executed and delivered by the Company and all other parties thereto and duly qualified under the TIA; and 
           | 
        
| (vii) | 
             at the Relevant Time, a definitive purchase, underwriting or similar agreement and any other necessary agreement with respect to any Securities offered or issued will have been duly authorized by all necessary corporate or other action of
              the Company and duly executed and delivered by the Company and the other parties thereto. 
           | 
        
| a. | 
             the terms and conditions of such Debt Securities have been duly established by supplemental indenture or officers’ certificate in accordance with the terms and conditions of the relevant Base Indenture, 
           | 
        
| b. | 
             any such supplemental indenture has been duly executed and delivered by the Company and the relevant trustee (together with the relevant Base Indenture, the ”Indenture”), and 
           | 
        
| c. | 
             such Debt Securities have been executed (in the case of certificated Debt Securities), delivered and authenticated in accordance with the terms of the applicable Indenture and issued and sold for the consideration set forth in the
              applicable definitive purchase, underwriting or similar agreement, 
           | 
        

| 2. | 
             With respect to any shares of Preferred Stock, when: 
           | 
        
| a. | 
             the certificate of designations relating to such Preferred Stock (the ”Certificate of Designations”) has been duly executed and filed with the Office of the Secretary of State of the State of
              Delaware, 
           | 
        
| b. | 
             such shares have been issued either (i) in accordance with the applicable definitive purchase, underwriting or similar agreement and for the consideration therefor provided for therein or (ii) upon exercise, conversion or exchange of any
              Convertible Security and for any additional consideration specified in such Convertible Security or the instrument governing such Convertible Security providing for such conversion or exercise, which consideration (including any consideration
              paid for such Convertible Security), on a per-share basis, shall in either event not be less than the par value of the Preferred Stock, and 
           | 
        
| c. | 
             any such Convertible Security was previously validly issued and is fully paid and non-assessable (in the case of an equity Security) or is a legal, valid and binding obligation of the Company, enforceable against the Company in accordance
              with its terms, 
           | 
        
| 3. | 
             With respect to Depositary Shares, when: 
           | 
        
| a. | 
             a deposit agreement relating to such Depositary Shares (“Deposit Agreement”) has been duly executed and delivered by the Company and the depositary appointed by the Company, 
           | 
        
| b. | 
             the terms of the Depositary Shares have been established in accordance with the Deposit Agreement, and 
           | 
        
| c. | 
             the depositary receipts representing the Depositary Shares have been duly executed and countersigned (in the case of certificated Depositary Shares), registered and delivered in accordance with the related Deposit Agreement and the
              applicable definitive purchase, underwriting or similar agreement for the consideration provided therein, 
           | 
        

| a. | 
             such shares of Common Stock have been duly executed (in the case of certificated shares) and delivered either (i) in accordance with the applicable definitive purchase, underwriting or similar agreement for the consideration provided for
              therein, or (ii) upon conversion or exercise of any Convertible Security, in accordance with the terms of such Convertible Security or the instrument governing such Convertible Security providing for such conversion or exercise, and for any
              additional consideration specified therein, which consideration (including any consideration paid for such Convertible Security), on a per-share basis, shall in either event not be less than the par value of the Common Stock, and 
           | 
        
| b. | 
             any such Convertible Security was previously validly issued and is fully paid and non-assessable (in the case of an equity Security) or is a legal, valid and binding obligation of the Company, enforceable against the Company in accordance
              with its terms, 
           | 
        
| a. | 
             the warrant agreement relating to such Warrants (the ”Warrant Agreement”), if any, has been duly executed and delivered by the Company and each other party thereto, 
           | 
        
| b. | 
             the terms of the Warrants have been established in accordance with the Warrant Agreement, if any, and the applicable definitive purchase, underwriting or similar agreement, and 
           | 
        
| c. | 
             the Warrants have been duly executed (in the case of certificated Warrants) and delivered in accordance with the Warrant Agreement, if any, and the applicable definitive purchase, underwriting or similar agreement for the consideration
              provided for therein, 
           | 
        

| A. | 
             We render no opinion herein as to matters involving the laws of any jurisdiction other than the State of New York and the United States of America and, for purposes of paragraphs 2 and 4 above, the Delaware General Corporation Law.  We are
              not admitted to practice in the State of Delaware; however, we are generally familiar with the Delaware General Corporation Law as currently in effect and have made such inquiries as we consider necessary to render the opinions contained in
              paragraphs 2 and 4 above.  This opinion is limited to the effect of the current state of the laws of the State of New York, the United States of America and, to the limited extent set forth above, the laws of the State of Delaware and the
              facts as they currently exist.  We assume no obligation to revise or supplement this opinion in the event of future changes in such laws or the interpretations thereof or such facts. 
           | 
        
| B. | 
             The opinions above with respect to the Indenture, the Debt Securities, the depositary receipts representing the Depositary Shares, the Deposit Agreement, the Warrants, and the Warrant Agreement (collectively, the ”Documents”) are each subject to (i) the effect of any bankruptcy, insolvency, reorganization, moratorium, arrangement or similar laws affecting the rights and remedies of creditors’ generally, including without limitation the
              effect of statutory or other laws regarding fraudulent transfers or preferential transfers and (ii) general principles of equity, including without limitation concepts of materiality, reasonableness, good faith and fair dealing and the
              possible unavailability of specific performance, injunctive relief or other equitable remedies regardless of whether enforceability is considered in a proceeding in equity or at law. 
           | 
        
| C. | 
             We express no opinion regarding the effectiveness of (i) any waiver of stay, extension or usury laws or (ii) provisions relating to indemnification, exculpation or contribution, to the extent such provisions may be held unenforceable as
              contrary to public policy or federal or state securities laws. 
           | 
        

| D. | 
             To the extent relevant to our opinions in paragraphs 3 and 5 and not covered by our opinions in paragraphs 1, 2, or 4, we have assumed that any securities, currencies or commodities underlying, comprising or issuable upon exchange,
              conversion or exercise of any Depositary Shares, Purchase Contracts, or Warrants are validly issued, fully paid and non-assessable (in the case of an equity security) or a legal, valid and binding obligation of the issuer thereof, enforceable
              against such issuer in accordance with its terms. 
           | 
        
| 
             Very truly yours, 
           | 
          |
| 
             /s/ Gibson, Dunn & Crutcher LLP 
           |