Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок0
Asking for input until response is valid
How would you go about asking the user for input until they give a valid response in python? Without violating D.R.Y. Thanks in advance!
1 ответ
+ 2
while cycle? Ask for input, check it, if input correct break cycle. But you can't do it here on playground...