The death penalty, or capital punishment, is still widespread globally, with hundreds of people executed each year.