Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(Check Password) Most websites impose certain rules for passwords. Suppose the password rules are as follows: A password must have at least 10 characters A

(Check Password) Most websites impose certain rules for passwords. Suppose the password rules are as follows:

A password must have at least 10 characters

A password must contain at least one upper case letter

A password must contain at least one digit

A password must contain at least one special character !@#$%^&*()

Write a program that prompts the user to enter a password and displays Valid password if the rules are followed or

Invalid password otherwise.

You must use a function when writing this lab assignment. You must provide at least two sample runs :

Sample run:

$ python checkPassWord.py

Enter a password : abcde12345D

Invalid Password!

$ python checkPassWord.py

Enter a password : abcde12345A#

Valid password!

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

Informix Database Administrators Survival Guide

Authors: Joe Lumbley

1st Edition

0131243144, 978-0131243149

More Books

Students also viewed these Databases questions