0

python (while) cycle

Помогите с циклом! При правильных ответах должно выводиться "Right!", при неправильных "Wrong!" и повторение цикла. https://code.sololearn.com/c1lKqI140Jc3/?ref=app

7th Jun 2020, 8:44 PM
Dark_Ren
Dark_Ren - avatar
1 Answer
+ 3
while a=="yes" and b=="no" and c=="maybe": This Loop only runs or start when inputs are yes ,no and maybe which is right answer If you enter wrong inputs Like No Maybe Yes It won't run at all and print wrong try again Instead You should use While True:
7th Jun 2020, 8:59 PM
Abhay
Abhay - avatar