Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- x = input("Enter a username:")
- y = input("Enter a password:")
- if len(y)<6:
- print ("Invalid password")
- elif x == y:
- print ("Invalid password")
- elif y.islower() == True:
- print ("Invalid password")
- elif y.upper() == True:
- print ("Invalid password")
- elif y.isdigit() == True:
- print ("Invalid password")
- else:
- print ("Valid Password.")
Add Comment
Please, Sign In to add comment