For coding below how do i loop every letter of the input of the password. When my first letter is a number it detects as passowrd with numeric but if i put the number in the end of the word its doesnt detect password with numeric password=input("Enter your Password: ") if (len(password)<6): print("Must be at least 6 characters long") for i in password: if i.isnumeric== True: print("All good characters") else: print("Your password must contain at lease 1 number") break
#source code:
password=input("Enter your Password: ")
if (len(password)<6):
print("Must be at least 6 characters long")
else:
status=False
for i in password:
if i.isdigit():
status=True
break
else:
pass
if(status):
print("All good characters")
else:
print("Your password must contain at lease 1 number")
#source code along with output:
#if you have any doubt or more information needed comment below..i will respond as possible as soon..thanks..
Get Answers For Free
Most questions answered within 1 hours.