Robbery and attempted robbery while armed with deadly weapon. (A) A person who commits robbery while armed with a pistol, dirk, slingshot, metal knuckles, razor, or other deadly weapon, or while alleging, either by action or words, he was armed while