Punishment for attempting to commit offences punishable with imprisonment for life or other imprisonment