Can I claim the interest paid on student loans if not enrolled?

student loans
C F asked:


I’m filing this years income tax return and I’m confused on the student loan interest. Can I claim the interest if I wasn’t enrolled last year? I graduated a few years ago but I still pay student loans and interest. The guidelines for claiming are sort of confusing so I wasn’t sure if I can claim. It will add a few hundred to my return if I can claim.
did I have to attend school in 2007 to take this?

or just pay interest on loans?