Answer
$36$
Work Step by Step
If the first digit is incorrect and the others are correct, there are 9 different codes, because the first digit can be anything but the correct digit.
We can say exactly the same if the second, third and fourth digit is incorrect. Therefore $9*4=36$ incorrect codes will open a programmed padlock