Former President Barack Obama says that taking selfies with fans when he goes out is almost as bad as the isolation of living in the White House, which he said was kind of like a nice prison.

Mr Obama, when asked what he doesn’t miss about being president, chuckled before saying that the security apparatus around an American president makes it difficult to live any semblance of a normal life.

“The burdens of leadership are true in any country but in part because of the security apparatus around a US president, you live in what is called a bubble. It is a very nice, uh, prison,” Mr Obama told an interviewer during a trip to Milan this week.

“So you don’t have the freedom of movement to be able to just take a walk or to sit in a cafe because there’s always this security concern around you,” he said. “I don’t miss that.”

Mr Obama joked that, while he doesn’t have the same security in the post presidency, he’s still not quite as liberated as he was before becoming president.

“Now I’m only captive to selfies. So, I — which is almost as bad — I can walk anywhere as long as I’m willing to take a selfie every two steps,” he said.

Joe Biden and Barack Obama through the years Show all 15 1 /15 Joe Biden and Barack Obama through the years Joe Biden and Barack Obama through the years Joe Biden and Dr Jill Biden watch Barack Obama's farewell speech on 11 January. Obama called Biden his 'brother' Joe Biden and Barack Obama through the years US President Barack Obama speaks alongside US Vice President Joe Biden about the Affordable Care Act AFP/Getty Images Joe Biden and Barack Obama through the years Vice President Joe Biden and President Barack Obama Getty Joe Biden and Barack Obama through the years President Obama listens to Joe Biden speak of his work on defeating cancer on 18 October in the White House Reuters Joe Biden and Barack Obama through the years U.S. President Barack Obama is applauded by House Speaker Paul Ryan and Vice President Joe Biden while delivering his final State of the Union address to a joint session of Congress in Washington Reuters Joe Biden and Barack Obama through the years U.S. Vice President Joe Biden interjects as President Barack Obama delivers remarks at a reception for the 25th anniversary of the White House Initiative on Educational Excellence for Hispanics at the White House in Washington REUTERS Joe Biden and Barack Obama through the years Obama and Vice President Joe Biden react after a heckler was removed for their extended interruption (Reuters) Joe Biden and Barack Obama through the years U.S. President Barack Obama shakes hands with Speaker of the House John Boehner (R) as Vice President Joe Biden looks on Joe Biden and Barack Obama through the years Barack and Michelle Obama and Vice-President Joe Biden observing a moment of silence outside the White House to mark the 13th anniversary of the 9/11 attacks Getty Images Joe Biden and Barack Obama through the years Barack Obama and Joe Biden putt on the White House putting green Getty Joe Biden and Barack Obama through the years President Barack Obama and Joe Biden in April 2013 AFP/Getty Images Joe Biden and Barack Obama through the years January 1, 2013: U.S. President Barack Obama winks as he arrives with Vice President Joe Biden (L) in the briefing room Reuters Joe Biden and Barack Obama through the years President Barack Obama, Vice President Joe Biden and others receive an update on the mission against Osama bin Laden in the Situation Room of the White House May 1, 2011 in Washington, DC Getty Images Joe Biden and Barack Obama through the years Vice-President Joe Biden, right, confirmed that the US was looking at ways of taking legal action against Julian Assange - back in December 2010 GETTY IMAGES Joe Biden and Barack Obama through the years Joe Biden, left, and retired military officers watch President Barack Obama sign orders to close down the detention centre at Guantanamo Bay, Cuba, in January 2009 GETTY IMAGES

Mr Obama is in Milan this week on his first public foreign trip since leaving the White House. He used his appearance in Italy to defend the importance of the Paris climate change agreement, which he played an important role in negotiating and which is on the chopping block under his successor Donald Trump.

“During the course of my presidency, I made climate change a top priority because I believe that of all challenges that we face, this is the one that will define the contours of this century, more dramatically perhaps than any other,” he said.