Iran uses public executions to punish criminals and political opponents.