IPC 398: Section 398 of the Indian Penal Code
Attempt to commit robbery or dacoity when armed with deadly weapon
If, at the time of attempting to commit robbery or dacoity, the offender is armed with any deadly weapon, the imprisonment with which such offender shall be punished shall not be less than seven years.