This is despite a sharp 0.5% fall in economic output during December, partly due to strike action, the Office for National Statistics (ONS) said.
Chancellor Jeremy Hunt said the figures showed "underlying resilience" but said "we are not out of the woods".
The Bank of England still expects the UK to enter recession this year.
But it thinks it will be shorter and less severe than previously forecast.
The Bank of England is the UK's central bank. The BBC included its view as it has a central role in managing the overall state of the economy.
One of the ways it does that is by changing interest rates. Recently, it has been raising rates in a bid to tackle the soaring cost of living.
Mr Hunt, who the BBC spoke to for the government's position, said that high inflation remains a problem and continues to cause "pain for families up and down the country".
Inflation - or the rate at which prices are rising - is slowing but at 10.5% remains close to a 40-year high.
The ONS, which published the economic output figures, said there was no growth in the final three months of 2022.
This is the first estimate for the period and figures are often revised later on.
On Friday, the ONS revised up its figures for the July to September quarter, to show that the economy shrank by 0.2% instead of the previous estimate of a 0.3% fall.
Labour and the Liberal Democrats, who we've included to explain opposing parties' point of view, warned the latest figures make for grim reading.
Rachel Reeves, Labour's shadow chancellor, said they show the economy "is stuck in the slow lane".
She added: "We must bring in urgent measures to prevent yet more harm from the cost of living crisis, using a proper windfall tax on oil and gas giants to stop the energy price cap going up in April so that people have more money in their pockets."
Liberal Democrat MP Sarah Olney said: "Britain is dangling on over the edge of a recession after months of economic vandalism and chaos in government.
"The blame for these gloomy figures lies squarely with the government, who have botched budgets, failed to tackle inflation and have no plan for growth."
Jeremy Hunt: "We're not out of the woods yet"