for qualified tuition and related expenses, or (2) as a Federal Pell Grant under section 401 of the Higher Education Act of 1965 (as in effect on the date of the enactment of the Expand American Educational Opportunity Act of 2017 ). . (b) Effective date The amendment made by this section shall apply to taxable years beginning after December 31, 2016.