Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Python Professor Brian Candido STCC Password Validator During this semester you learned th ] : Python topics of variables, conversions, arithmetic statements, logical constructs, looping
Python
Professor Brian Candido
STCC
Password Validator
During this semester you learned th: Python topics of variables, conversions, arithmetic statements, logical constructs, looping constructs, functions, lists and string methods. This final project is the culmination of all those topics for you to demonstrate all that you have leamed during the past weeks.
Note: You can NOT USE Python's Regular Expression Operations known better as regex. You can only use what you leamed in this class:
variables
conversions
arithmetic statements
logical constructs
looping constructs
functions
lists
string methods
Use Python String functions to build a program to do the following to perform Password Validation. Make sure you use the examples Professor Candido has provided and use the Python String Functions document found in Week These are the required coding steps:
Prompt the user for their First and Last name and store the input into a variable called sName.
Prompt the user for their desired password and store their response in a variable called sPassword.
Extract out the first initial from the first name and the first initial of the last name from the variable sName and put in a new variable called sInitials. For example if Brian Candido is in the sName variable then the sInitials should contain You can assume the user will enter first name and last name.
Check to make sure the sPassword length is between and characters. If the password is not within the required length write out the message: Password must be between and characters.
Check to make sure the sPassword starts does not start with Pass or pass. If not write out the Password can't start with Pass.
Check to make sure the sPassword contains at least uppercase letter A through If not write out the message: Password must contain at least I uppercase letter.
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