Почему код не проходит этот цикл while?Python

Программы на Python
Гость
Почему код не проходит этот цикл while?

Сообщение Гость »


Когда я пробую этот код:

Код: Выделить всё

response_3 = input("please type something")
while response_3 == 'yes':
polling_active = True
print("done")
If I type at the prompt, the code appears to hang and does not go on to the .
Why not? If I try using an statement instead of , the code doesn't get stuck.


Источник: https://stackoverflow.com/questions/781 ... while-loop

Вернуться в «Python»