Question: Task 1 Oh no! The nefarious Doctor Doom is planning on hacking into the satellite broadcasting system to spread his maniacal message of misdoing across
Task 1
Oh no! The nefarious Doctor Doom is planning on hacking into the satellite broadcasting system to spread his maniacal message of misdoing across the planet. We need to make sure that he cant get his way! Use what you learned in this section about Python in order to create some sort of super secret security script that will let the technicians access the system but keep that diabolical delinquent Doom locked out!
Your script should take in a four digit code, check each of the digits, and then, assuming they are all correct, grant access to the system. If only some of the digits are correct, the script should output how many of the digits are correct, just in case the technicians have forgotten some of the code. With your help, Doom doesnt stand a chance!
| Input string | Expected output of script |
| Enter code: 8756 Enter code: 4752 Enter code: 3942 Enter code: 5962 Enter code: 1962 | 0 digits correct 1 digits correct 2 digits correct 3 digits correct Access granted! |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
