Cops arrested two teens after they attacked a bodega worker and a cab driver in the Bronx.

Two teen terrors slashed a Bronx bodega worker before cutting off the thumb of a cabbie early Sunday as they were attempting to flee, police said.

The slicing spree began at 2:30 a.m. when two 17-year-olds, Juan Carlos Sanchez and Kenneth Guzman, got in an argument with a worker at a bodega, F&K Food Center, at Grand Concourse and E. 198th St., according to cops.

One of the suspects flashed a knife and swiped at the worker, who was cut in the hand while trying to block the blade, police said.

Two blocks away on Jerome Ave. the suspects hopped in an occupied livery cab. The 47-year-old driver exited the car and confronted the suspects, who slashed off his right thumb during the melee that followed, according to police.

Police caught Sanchez and Guzman close to where the livery cab was parked. They were both charged with assault and criminal possession of a weapon.