Question
(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
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