A penal coe is a portion of a state's laws defining crimes and specifying the punishment. Other parts of the laws of a given state can define crimes and punishments, such as a traffic code or a building safety code, or laws addressing environmental resources by regulating hunting, fishing, or forestry.