Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Sybase Database Administrators Handbook

Authors: Brian Hitchcock

1st Edition

0133574776, 978-0133574777

More Books

Students also viewed these Databases questions

Question

5. What are some basic guidelines for designing brochures? (LO 6-4)

Answered: 1 week ago

Question

7-16 Compare Web 2.0 and Web 3.0.

Answered: 1 week ago