Ali Hassan Mwinyi, a schoolteacher turned politician who led Tanzania as its second post-independence president and helped dismantle the doctrinaire socialism of his predecessor, Julius K. Nyerere, died on Thursday in Dar es Salaam, the country’s former capital. He was 98.Tanzania’s current president, Samia Suluhu Hassan, announced the death, in a hospital, on X, formerly…