Whoever attempts to commit an offence to be committed, and in such attempt does any act towards the commission of the offence, shall be punished, in the case of an offence punishable under Article 8, with rigorous imprisonment for a term which may extend to two years, and in other cases with imprisonment for a term which may extend to one-half of t...