Since the laptop was required to be able to attend classes, it can be considered a qualified education expense for the purpose of the American Opportunity Tax Credit. It is also a qualified education expense for the Lifetime Learning Credit, but only if it was required to be purchased from the school.
See the following TurboTax article for more details:
What are qualified education expenses for the American Opportunity and Lifetime Learning credits?
**Say "Thanks" by clicking the thumb icon in a post
**Mark the post that answers your question by clicking on "Mark as Best Answer"