Barack Obama entered the White House as an accomplished writer, having published two critically and commercially successful books – Dreams From My Father and The Audacity of Hope – before becoming the 44th president of the United States.