def input(password):
while password[0] == '#' or password[-1] == '#':
print("Your password contains '#' in either the first or last character, please try again.")
password = str(input("Please create a password:\n"))
return True
print(input(password))
Why does this code not ask the user to reenter a new password so it can text the condition of the while loop again and instead just returns True?