The Scottish Liberal Democrats have gained a surprise victory in the Dunfermline and West Fife by-election, turning over a large Labour majority. Here is reaction to the win.

WILLIE RENNIE, VICTORIOUS LIB DEM CANDIDATE

I think Gordon Brown may be a little bit worried himself. This by-election will send shockwaves through Westminster.

CATHERINE STIHLER, LABOUR CANDIDATE

We have to listen to the people and we have to learn. We fought for Labour values and this time we lost. But we'll keep on fighting for them and we will keep fighting and we will win again.

ALEX SALMOND, SNP LEADER

The result may offer short-term relief for the Liberals, but they ran a shameless anti-government campaign even though they are part of the government in Scotland

CHARLES KENNEDY, FORMER LIB DEM UK LEADER

This is a fantastic victory for the Liberal Democrats and a seismic event in Scottish and UK politics. I am absolutely delighted by this result both for Willie Rennie personally and the entire party campaign.

NICOL STEPHEN, LIB DEM SCOTTISH LEADER

People are getting a positive message from the Liberal Democrats and they are fed up with Labour. They feel Labour has neglected the area and we campaigned positively on the key issues.