(a) A person commits the offense of robbery if he or she takes property from the person of another, or from the immediate control of another, by use or threatened use of immediate force or violence.
(b) A person convicted under this section may be punished:
(1) By imprisonment for not more than 10 years; or
(2) If the defendant or an accomplice uses a dangerous weapon to obtain the property or inflicts serious bodily injury, the term of imprisonment may be not more than 20 years.