def passwordStrength(password):
point = 0
for i in range(len(password)):
if password[i].islower:
point = point + 5
if __name__ == '__main__':
print(passwordStrength('f^BAcG'))
The .isupper()
function returns True for all incoming strings, whether uppercase or lowercase. Does anyone know why?
I didn't write parentheses in isupper.
© 2024 OneMinuteCode. All rights reserved.