Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Using Python, Write a structured program that demonstrates the use of subprogram

ID: 3722641 • Letter: U

Question

Using Python, Write a structured program that demonstrates the use of subprograms, passing parameters and the use of control structures

Password authentication

The password must be a minimum of 9 characters

The password must contain at least 1 upper case letter, 1 lower case letter

The password must contain at least 1 digit

it must ask user to enter new password with above criteria and verify the password by retyping it correctly, if correct allow the user to know its been updated anda if incorrect tell the user its not the same password and make the user reenter a new password

Explanation / Answer

''' Python has in-built functions to check for lower case , upper case and digit. But for your understanding I implemented my owen functions in which you can learn how to define functions and pass parameters and check for characters. So in all three Conditions check I traversed through all the characters and check in one if conditions for range. Sample Input/Output: Enter password: ABC123 Invalid password, Please re-enter valid password: ABCabc1234 its been updated ''' #Please create a .py file and copy answer from below line to the end of answer and execute. #Function to check lower case character in string def check_lower_char(password): #Iterate over all the character , return true if found character between a and z for ch in password: if(ch>='a' and ch= 'A' and ch = '0' and ch
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote