Write a python function that checks whether a string is a valid password. Suppose the password rule is as follows:
• A password must have at least eight characters.
• A password consists of only letters and digits.
• A password must contain at least two digits.
Write a program that prompts the user to enter a password and displays "valid password" if the rule is followed or
"invalid password" otherwise.



Answer :

Other Questions