Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Needs to be done in python Create a code file named password.py. In this file, you will write a function named validate password. This function
Needs to be done in python
Create a code file named password.py. In this file, you will write a function named validate password. This function will accept a string as a parameter, and ensure that it meets the minimum password requirements. The password requirements are Be all digits and alphabetical characters Must contain at least one digit . must contain at least one letter must be at least 9 characters must not begin with the letter z For example, these tests print (validate_password('hello')) print(validate_password('ziThere8787')) print (validate_password'HiThere8787")) print (validate_password 1234567898)) print (validate_password('foreverAndADay)) print (validate_password('1a2b3c4d5e')) Should produce False False True False False True
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started