Britain finally learns who its next prime minister will be after two months of political uncertainty during which energy