While John Kumar filed his nominations to contest from the Nellithope constituency, Ansari filed his papers for Neravy T R Pattinam constituency, District Election Officer P Jawahar said.
Others who filed nomination papers were either independent candidates or members of smaller parties, he said.
So far 52 candidates have filed nominations in the Union Territory.
Last date for filing nominations is April 29.