The sentence to be pronounced upon a person who is convicted of an offence punishable with death, is that he or she be hanged by the neck until he or she is dead.