Answer
John Mahama first took office as president on July 24, 2012, following the death of President John Atta Mills. Mahama, who had been serving as vice president, was sworn in as president in accordance with the Ghanaian constitution. He completed Mills's term and was subsequently elected to a full term in the 2012 presidential election.