The diagram shows a door lock.
A
1
B
2
С
3
The code is a letter followed by a number.
a) How many different codes are there altogether?
b) I know that the correct code begins with C.
I press C, then I guess the single digit number.
What is the probability that I open the door?
Give your answer as a fraction.