Advertisement
computingmk

test

Jul 17th, 2019
355
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. #Checking password has both upper and lowercase letters
  2. hasupper=False
  3. haslower=False
  4. password = input("Enter a password: ")
  5. for char in password:
  6. if char.isupper():
  7. hasupper=True
  8. if char.islower():
  9. haslower=True
  10. if hasupper=True and haslower=True:
  11. print("Password meets criteria")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement