-
Notifications
You must be signed in to change notification settings - Fork 0
Need enchantment #1
Copy link
Copy link
Open
Labels
good first issueGood for newcomersGood for newcomersquestionFurther information is requestedFurther information is requested
Milestone
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomersquestionFurther information is requestedFurther information is requested
Hey ! thanks for reaching up. iam newbie in code era. i was working on this code and i was thinking is there any better way for creating this program?
also i wanted to know is this part of code wrong or right as code styles: elif digit == False or uppercase == False or password == False:
.
.
password = input('Enter new password: ')
result = []
if len(password) >= 8:
result.append(True)
else:
result.append(False)
digit = False
for i in password:
if i.isdigit():
digit = True
result.append(digit)
uppercase = False
for i in password:
if i.isupper():
uppercase = True
result.append(uppercase)
if all(result) == True:
print(' /Strong Password\ ')
elif digit == False or uppercase == False or password == False:
print(' Moderate Password ')
else:
print('>Weak Password<')