Skip to content

Instantly share code, notes, and snippets.

@muthu1809
Created July 26, 2020 10:23
Show Gist options
  • Save muthu1809/7a350c7760bfd6421f0a153cff888372 to your computer and use it in GitHub Desktop.
Save muthu1809/7a350c7760bfd6421f0a153cff888372 to your computer and use it in GitHub Desktop.
import re # 1 re moduleஐ இறக்கிக் கொண்டோம்.
def passwordChecker(password):
if len(password)<8: #4: நீளம் அளக்கப்படுகிறது.
print("Password should have 8 characters")
else: # பெரிய எழுத்து,சிறிய எழுத்து, எண்கள் பார்க்கப்படுகின்றன.
if re.search("[a-z]", password) and re.search("[A-Z]",password) and re.search("[0-9]", password):
print("Strong Password")
else:
print("Password should have both upper and lower characters and has at least one digit")
password = input("Enter password: ") #படி 2: கடவுச்சொல் வாங்குகிறோம்.
passwordChecker(password) #படி 3: சரியான கடவுச்சொல்லா பார்க்கப் போகிறோம்.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment