| Consent of Independent Registered Public Accounting Firm | ||
We consent to the incorporation by reference in the Registration Statements (Form S-8 No. 002-92331 and No. 333-251266) pertaining to the 401(k) Plan of HP Inc. of our report dated June 9, 2026, with respect to the financial statements and schedule of the HP Inc. 401(k) Plan included in this Annual Report (Form 11-K) for the year ended December 31, 2025. | ||
| /s/ Ernst & Young LLP | ||
| Houston, Texas June 9, 2026 | ||