Answered step by step
Verified Expert Solution
Question
1 Approved Answer
write a python code Exercise 3: Password Validator Write a program according to the following specification: 1) Display a message asking the user to enter
write a python code
Exercise 3: Password Validator Write a program according to the following specification: 1) Display a message asking the user to enter a student id between 0 and 9999999. 2) Get the user input. 3) Verify the student id. If the user input is bigger than 9999999 or less than 0, then display an error message, and exit the program (Hint: use exit()). 4) Display the user input. 5) Display a message asking the user to enter a password with the length between 6 and 20. 6) Get the user input. 7) Verify the password. If the password length is not between 6 and 20, exit the program. 8) Display the user input. 9) Display a message asking the user to enter a string. 10) Display the user input. 11) Change the string to upper case. 12) Display the new string. 13) Exit the programStep 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