Yes, your computer is a school expense since you're enrolled in an online-only course.
If you bought a school computer out of convenience (in other words, you could complete the class without it), you can't deduct it.
Note: For the Lifetime Learning Credit, you can only deduct equipment expenses that were bought directly from the education institution.
Related Information:
**Say "Thanks" by clicking the thumb icon in a post
**Mark the post that answers your question by clicking on "Mark as Best Answer"