You will write three small checks that a secure system uses.
Your tasks.
strong, return True if the password has at least characters and contains a capital letter, a small letter and a digit.suspicious, return True if the domain name of the real link is different from the domain name of the shown text. The function domain is given.allowed, return True if the user's access level lets them do the action. The dictionary LEVELS gives each user's actions.Have you tried it?
Do the tasks in the editor first, and run the checker after each one. Its hints help when a check fails. When you are ready, compare your code with this solution.
Log in to join the discussion.
Loading…