Answer :
We have:
only 7 digit codes
The number of possible combinations is:
[tex]7i[/tex]The probability the spy is able to unlock the smart phone on his first try is:
[tex]P=\frac{1}{7i}[/tex]Then:
[tex]P=\frac{1}{7\times6\times5\times4\times3\times2\times1}=\frac{1}{5040}[/tex]Answer:
[tex]\frac{1}{5040}[/tex]