Section 4 of the Criminal Code Act in Nigeria. Attempts to commit offences
When a person, intending to commit an offence, begins to put his intention into execution by means adapted to its fulfilment, and manifests his intention by some overt act, but does not fulfil his intention to such an extent as to commit the offence, he is said to attempt to commit the offence.
It is immaterial, except so far as regards punishment, whether the offender does all that is necessary on his part for completing the commission of the offence, or whether the complete fulfilment of his intention is prevented by circumstances independent of his will, or whether he desists of his own motion from the further prosecution of his intention.
It is immaterial that by reason of circumstances not known to the offender it is impossible in fact to commit the offence.
The same facts may constitute one offence and an attempt to commit another offence.