A man was arrested after bouncing around clapping his hands in front of police and goading officers, a court was told.
Mitchell Flackett, a 27-year-old traffic management worker, of Hamlet Road, Fleetwood, pleaded guilty to possessing cocaine.
He was given a 12 months’ conditional discharge and ordered to pay £85 costs with £15 victims’ surcharge by District Judge James Hatton, sitting at Blackpool Magistrates’ Court.
Pam Smith, prosecuting, told the court the offence happened on December 20 in the early hours.
Police on Queen Street were confronted by Flackett who started clapping his hands at them.
Flackett told officers: “Well done Blackpool police.
“I’m surrounded by Scousers and you don’t care.”
When told he was going to be searched Flackett produced two small wraps of cocaine which he said he had bought in the resort.
Patrick Nelligan, defending, said: “He tends to walk himself into trouble and bring himself to the attention of the police.”