As a German, I was surprised to learn that in the United States, there are penal codes (and prosecution) at two levels of government, namely at the state level, and at the federal level ("federal crime") - under the so-called Dual sovereignty doctrine. This produces interesting problems, such as how to treat acts that are crimes under more than one of the US penal codes.
In Germany, there is only one criminal code (the Strafgesetzbuch), which is enacted by federal parliament, and I believe the situation is similar in other European countries.
So, are there other countries with "competing" penal codes, like the United states?