The country is about to get its seventh prime minister since the 2016 vote to leave the EU.