2 . When a person is convicted of any offence legally punishable by whipping, the sentence awarded by the court for such offence shall not, anything to the contrary in any enactment present or future of Ceylon notwithstanding, exceed the number of six strokes with a light cane or rattan in the case of a boy below the age of sixteen, or of twenty-four strokes with a rattan or the like number of lashes in the case of a person above the age of sixteen. *Maximum number of strokes or lashes which may lawfully be inflicted for an offence.*