#Password Checker Program
def lengthCheck(pWord):
if len(pWord) >= 6 and len(pWord) <= 12:
return True
else:
return False
def checkUpper(pWord):
for letters in pWord: #Why is my iteration not working?
upperLetters = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
if upperLetters in pWord:
return True
else:
return False
def checkLower(pWord):
for letters in pWord: #Why is my iteration not working?
upperLetters = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
lowerLetters = upperLetters.lower()
if lowerLetters in pWord:
return True
else:
return False
def checkDigit(pWord):
for letters in pWord: #Why is my iteration not working?
digitNumbers = "0123456789"
if digitNumbers in pWord:
return True
else:
return False
def complexCheck(pWord):
if checkUpper(pWord) and checkLower(pWord) and checkDigit(pWord):
return True
else:
return False
def passCheck(pWord):
if lengthCheck(pWord) and complexCheck(pWord):
return True
else:
return False
goodPWord = True
pWord = ""
pWord = input("Please enter your password: ")
goodPWord = passCheck(pWord)
if goodPWord:
print(pWord, " is a good password.")
else:
print(pWord, " is not a good password")
I need help with this problem, I can't the errors myself so plz help me. This my homework assignment from school I need help with this problem, I can't the errors myself so plz help me. This my homework assignment from schoolI need help with this problem, I can't the errors myself so plz help me. This my homework assignment from school enter image description here