Question: Write a program to ask the user to enter a password. The program will display a message of 'Password set successfully' if the password is
Write a program to ask the user to enter a password. The program will display a message of
'Password set successfully' if the password is valid or repeat 'Please enter password' if the
password is not valid. The password is valid if it:
contains no less than 6 characters
consists only letters and digits (string's method: isalnum())
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
