A set of legal rules that define the acts that are considered crimes and indicate the penalties for them. The Penal Code includes two types of rules: General rules whose provisions apply to all or most of the crimes, and rules specific to each crime separately that define its elements and indicate its penalties.