The mayor and council shall, at its first meeting of each year, elect three tax assessors for the city, who shall be freeholders in the city, residents therein and 21 years of age. The tax assessors shall serve until their successors are elected and qualified. The mayor and council shall have power at any time to fill vacancies caused by death, resignation or otherwise. It shall be the duty of the tax assessors at such time as they may be directed by the mayor and council, to inspect and assess a valuation upon all real estate in the city liable to taxation, consistent with the general law of the state. Before entering upon their duties as assessors, the persons elected as tax assessors under this section shall be sworn before the mayor or some member of the council to faithfully and impartially discharge their duties as assessors of the city.