Seventy four people, including soldiers, were sentenced to life in prison by a Turkish court on Wednesday for their role in an attempted coup, the state-owned Anadolu news agency said.