Santa Security
Santa Security
Santa has left his naughty and nice list on his iPhone.
Only he wants to access it and the passcode is "464646" Create a function that checks, if he enters the correct passcode.
if so, it will tell him his iPhone is unlocked. It will then display the naughty and nice list.
You can use your previous programs to help you if it is incorrect, it will tell him that he is denied entry.
Bonus points if you can get this to work with a loop that only allows 3 guesses.
Technical Tip
This program will pass in a value to the function. In the example, you can see that I've passed in a parameter this time. I used Happy New year... you'll need to adapt this to get it to work for what you need.