A plea of no contest is when a defendant does not admit guilt but agrees to accept punishment without contesting the charges.