Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- password = input()
- if len(password) < 6 or len(password) > 10:
- print("Password must be between 6 and 10 characters")
- digits = 0
- for ii in password:
- if ii == "1" or ii == "2" or ii == "3" or ii == "3" or ii == "4" or ii == "5" or ii == "6" or ii == "7" or ii == "8" or ii == "9":
- digits += 1
- if digits != 2:
- print(f"Password must have at least 2 digits")
Advertisement
Add Comment
Please, Sign In to add comment