Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In python: 4. A website requires that users create a password that meets the following requirements: The password must be at least eight characters long.

In python:

image text in transcribed

4. A website requires that users create a password that meets the following requirements: The password must be at least eight characters long. It must contain at least one uppercase letter. It must contain at least one lowercase letter. It must contain at least one numeric digit. It must contain at least one symbol from the list: &, *, %, $, #, !, ? Write a function valid_password that takes a password as a string, and returns True (the Boolean value!) if the password passes all the requirements for the website, and False otherwise. For example, valid_password ('8#Z#Qb5qL3') should return True , and valid_password ('Password1') should return False . You may find the string methods islower(), isupper(), and isdigit() to be helpful. See the python string methods docs for more info

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

Database Systems An Application Oriented Approach Complete Version

Authors: Michael Kifer, Arthur Bernstein, Richard Lewis

2nd Edition

0321268458, 978-0321268457

More Books

Students also viewed these Databases questions