Struggling with this one. Only a beginner so go easy on me! :) Trying to have user input password and if not within 6-10 characters. They are asked to input again. When password correct the loop stops. I can’t seem to get it to exit the loop even if correct lenght password entered.!
min_password_lenght = 6
max_password_lenght = 10
password = input(“enter password:”)
password_lenght = len(password)
while password_lenght > 6 or password_lenght < 10:
print(“error”)
password = input(“enter again:”)
print (“password correct”)