Whoever attempts to commit any offense prohibited by ordinance, and does any act toward it but fails, or is intercepted or prevented in its execution, where no express provision is made, shall, on conviction of such attempt, be subject to the same penalty as prescribed for the actual commission of the offense.
('68 Code, § 42.03)  Penalty, see § 10.99