Tell me about Section 398 in Chapter 17 related to 'Attempt to commit robbery or dacoity when armed with a deadly weapon.'
Section 398 deals with attempts to commit robbery or dacoity when the offender is armed with any deadly weapon. The punishment for such attempts shall not be less than seven years of imprisonment.