"I don't think anybody thought Biden was going to win," Quincy Democratic City Committee Chairwoman Alicia Gardner said.

QUINCY — Democratic Party delegates say they were shocked by former Vice President Joe Biden's Super Tuesday performance in which he won primaries in 10 states, including Massachusetts, and swept the South Shore.

"I don't think anybody thought Biden was going to win," said Quincy Democratic City Committee Chairman Alicia Gardner, who called Super Tuesday a "whirlwind." "I think people see Biden as the viable candidate now."

Biden took home 33.8 percent of the Bay State vote as of Wednesday afternoon. Vermont Sen. Bernie Sanders came in second with 26.6 percent of the vote, and Massachusetts Sen. Elizabeth Warren came in third with 21.2 percent, according to The Associated Press.

Billionaire Michael Bloomberg, the former New York City mayor who dropped out of the race Wednesday, came in fourth with 11.8 percent and U.S. Rep. Tulsi Gabbard, of Hawaii, came in a distant fifth.

Want news like this sent straight to your inbox? Head over to PatriotLedger.com to sign up for alerts and make sure you never miss a thing. You pick the news you want, we deliver.

Biden, whose Massachusetts campaign headquarters was in Quincy, won the city and every South Shore town down to Plymouth. Biden supporters had a small gathering at the Fours in Quincy on Tuesday night to watch the results roll in.

Residents and political insiders on the South Shore said they were surprised by Biden's victory and shocked by how little support Warren received in her home state.

"I thought (Warren) had done a good job for us," Quincy resident Jim Welch, 50, said at the Quincy Center MBTA station. "I thought Massachusetts would be the only state she won."

At-large Quincy City Councilor Anne Mahoney, vice chairwoman of the Quincy Democratic City Committee, said she was also surprised. Mahoney said former South Bend, Indiana, Mayor Pete Buttigieg and Minnesota Sen. Amy Klobuchar dropping out and endorsing Biden shortly before Super Tuesday seemed to have a large impact.

Mahoney said she was hoping a woman would win in Massachusetts, and hopes Democrats rally behind the eventual nominee.

"We need to coalesce and get behind a candidate who is up to the challenge of beating (President Donald) Trump," Mahoney said. "In the end, whoever it is, I encourage (Democratic) voters to set aside their differences."

In the Republican primary, Trump won in Massachusetts, as expected, including almost the entire South Shore. He won 87.7 percent of the vote in the state as of Wednesday afternoon, with nearly 100 percent of precincts reported. Former Massachusetts Gov. Bill Weld wrapped up 9.3 percent of the state's Republican votes.

The Massachusetts Republican Party, Trump state campaign Chairman Tom Hodgson and Republican National Committeeman Ron Kaufman held a party Tuesday night at Victory Point Restaurant and Bar in Marina Bay in Quincy to celebrate the victory.

Hodgson, who is the Bristol County sheriff, said he was expecting Sanders to take the state, but that regardless of who the Democratic candidate is, Trump's chances of winning the general election are high.

"I think the people of Massachusetts recognize this president has clearly earned another term," Hodgson said in a phone interview, "while Joe Biden and Bernie Sanders have spent a large part of their careers in politics and have gotten essentially nothing done."

Steve Fruzzetti, of Milton, who was elected as a Republican state committeeman for the Norfolk, Bristol, Plymouth County District, said there's a lot of energy behind Trump and he would rather the president take on Biden in November.

"I'm conflicted because I think Trump wants to face Bernie (Sanders), but even if there is a 1 percent chance of him becoming president, and he does, I think we're screwed," Fruzzetti said. "I think we could withstand a four-year term of Biden if we had to."

Sanders and Biden solidified their status as front-runners nationally on Tuesday as Democrats ponder who will be their nominee to face Trump in November. Besides Massachusetts, Biden won Texas, Alabama, Arkansas, Oklahoma, Maine, Tennessee, Minnesota and North Carolina, while Sanders won his home state of Vermont, Utah, Colorado and California.

In state politics, the Plymouth-Barnstable Senate District chose Democrat Susan Moran, of Falmouth, and Republican James “Jay” McMahon III, of Bourne, to face off in a special election March 31 to see who will replace former state Sen. Vinny deMacedo, a Plymouth Republican who retired last fall to take a position with Bridgewater State University.

Material from the State House News Service and Wicked Local was used in this report. Anastasia E. Lennon contributed to this report.