Speaking in Poland on Saturday, Obama addressed the recent events in Dallas, as well as the killings of Alton Sterling and Philando Castile.

"This has been a tough week. First and foremost for the families [of] who'd been killed. But also for the entire American family," he said.

But "as painful as this week has been, I firmly believe that America is not as divided as some have suggested," he added.

Click through images of Dallas shooting victims:

12 PHOTOS Dallas shooting victims, memorials and aftermath See Gallery Dallas shooting victims, memorials and aftermath Brent Thompson, of Dallas Area Rapid Transit, one of five officers killed in a shooting incident in Dallas, Texas, U.S., is pictured in this undated handout photo obtained by Reuters July 8, 2016. Brent Thompson via LinkedIn/Handout via Reuters This is Brent Thompson with his grandson. He's the first DART officer killed in the line of duty. https://t.co/XQuoF8xnCZ Love you brother. Couldn't be prouder. We'll see you again. #PrayForDallas https://t.co/1oqeBxai7x AP identifies Officer Patrick Zamarripa was one of the slain Dallas police officers... https://t.co/QxX4gHxfHu https://t.co/eZFlsm6KXX FBI investigators look over the crime scene in Dallas, Texas, U.S. July 8, 2016 following a Thursday night shooting incident that killed five police officers. REUTERS/Carlo Allegri WASHINGTON, USA - JULY 8: The American Flags surrounding the base of the Washington Monument, with the US Capitol in the distance, are flying at half staff after President Obama ordered them to be lowered in honor of the five Police Officers killed by a gunman in Dallas the night before in Washington, USA on July 8, 2016. (Photo by Samuel Corum/Anadolu Agency/Getty Images) DALLAS, TX - JULY 8 : People attend a vigil outside Dallas Police headquarters in Dallas, Texas, USA, 08 July 2016. (Photo by Bilgin Sasmaz/Anadolu Agency/Getty Images) DALLAS, TX - JULY 8 : People attend a vigil outside Dallas Police headquarters in Dallas, Texas, USA, 08 July 2016. (Photo by Bilgin Sasmaz/Anadolu Agency/Getty Images) DALLAS, TX - JULY 8 : People attend a vigil at the Cathedral Santuario De Guadalupe for the victims of Dallas shooting in Dallas, United States on July 8, 2016. (Photo by Bilgin Sasmaz/Anadolu Agency/Getty Images) DALLAS, TX - JULY 8 : People attend a vigil outside Dallas Police headquarters in Dallas, Texas, USA, 08 July 2016. (Photo by Bilgin Sasmaz/Anadolu Agency/Getty Images) DALLAS, TX - JULY 8 : People attend a vigil at the Cathedral Santuario De Guadalupe for the victims of Dallas shooting in Dallas, United States on July 8, 2016. (Photo by Bilgin Sasmaz/Anadolu Agency/Getty Images) DALLAS, TX - JULY 8 : People attend a vigil outside Dallas Police headquarters in Dallas, Texas, USA, 08 July 2016. (Photo by Bilgin Sasmaz/Anadolu Agency/Getty Images) Up Next See Gallery Discover More Like This HIDE CAPTION SHOW CAPTION of SEE ALL BACK TO SLIDE

Obama's comments come after two black men — Alton Sterling and Philando Castile — were shot and killed by police earlier this week, the latest in a series of similar incidents, as well as the killing of five police officers in a coordinated sniper attack in Dallas on Thursday.

"This is not who we want to be as Americans, and that serves as the basis of us being able to move forward in a constructive and positive way," he continued.

Obama also noted that "we cannot let the actions of few define all of us," calling the Dallas attacker a "demented individual."

"They don't speak for us, that's not who we are," he said. "And one of the things that give me who is seeing how the overwhelming majority of Americans have reacted with empathy" in the aftermath of the attacks.

More from :

Here's a super-quick guide to what traders are talking about on jobs day (SPY, SPX, DJI, IXIC, USD, DXY)

A week of bloodshed has further divided a nation already fractured over race

'Let's not lose sight of our common humanity': Paul Ryan delivers powerful statement on Dallas police ambush