Article 54 of the constitution says:
"The President shall be elected by the members of an electoral college consisting of -
(a) The elected members of both Houses of Parliament and
(b) The elected members of the Legislative Assemblies of the States (including National Capital Territory of Delhi and the Union Territory of Pondicherry vide the Constitution 70th amendment Act, 1992)."