[Solved] Does anyone have any idea what is wrong with this code?


password = str(input("Enter your password then press enter: "))

while not 6 < len(password) < 12 :
    password = str(input("Enter a password that is between 6 and 12 characters: "))

The first line gets the user’s input as a string without a newline character.

The second and third lines act as a do-while loop, asking for input unless the the input’s length is in the range (6,12).

3

solved Does anyone have any idea what is wrong with this code?