print("welcome to the password reset program")
print("please enter the new password")
input("type your new password")
input("type your new password (8-16 characters)")
password = input("type your new password (8-16 characters)")
if password == <8
print("this is too short, rethink, and re-enter your new password...")
if password == >16
print("this is too long, rethink, and re-enter your new password...")
if password == 8-16
print("this is the correct length, now re-enter to confirm")
password2 = input("re-enter your password")
if password == password2
print("your password has been changed")
if password != password2
print("this is not the same as your first password")
Я получаю сообщение об ошибке «если пароль == < 8» вы можете мне помочь? ????Как это сделать? я продолжаю получать Синтаксические ошибки
Проверьте документ python. Вы должны использовать ':' after if. Как и '' some_value: ' – metmirr
У вас есть« неожиданный отступ »в строке' if password == <8', и вам нужно добавить ':' в конце строки – Jaco
. Вы должны подумать о том, чтобы взглянуть на некоторые уроки Python. –