GENERAL PART
CHAPTER TWO
THE OFFENCE
SECOND TITLE
ATTEMPT
Section 22
Definition
A person attempts to commit an offence if he takes steps which will immediately lead to the completion of the offence as envisaged by him.
Section 23
Liability for attempt
(1) Any attempt to commit a felony entails criminal liability; this applies to attempted misdemeanours only if expressly so provided by law.
(2) An attempt may be punished more leniently than the completed offence (section 49(1)).
(3) If the offender due to gross ignorance fails to realise that the attempt could under no circumstances have led to the completion of the offence due to the nature of its object or the means by which it was to be committed, the court may order a discharge, or mitigate the sentence as it sees fit (section 49(2)).
Section 24
Withdrawal
(1) A person who of his own volition gives up the further execution of theoffence or prevents
its completion shall not be liable for the attempt. If the offence is not completed regardless of his actions, that person shall not be liable if he has made a voluntary and earnest effort to prevent the completion of the offence.
(2) If more than one person participate in the offence, the person who voluntarily prevents its completion shall not be liable for the attempt. His voluntary and earnest effort to prevent the completion of the offence shall suffice for exemption from liability, if the offence is not completed regardless of his actions or is committed independently of his earlier contribution to the offence.
Individual criminal responsibility
EDIT.