Bharatiya Nyaya Sanhita, 2023
312. 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. Punishment for belonging to gang of robbers, etc.