No intro yet, sorry.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
|
WELCOME TO THE BANK OF PYTHON. ENTER YOUR PIN: 123 INCORRECT PIN. TRY AGAIN. ENTER YOUR PIN: 1234 INCORRECT PIN. TRY AGAIN. ENTER YOUR PIN: 12345 PIN ACCEPTED. YOUR ACCOUNT BALANCE IS $425.17
No explanation yet, sorry. Hopefully the code is enough. If you're already this far into the assignments, the code is probably enough.
- Ask for a password (string) before asking them for a PIN. Add another while loop so that they don't even get to type in a PIN until they get the password right.
©2017 Graham Mitchell