Asking for input until response is valid | Sololearn: Learn to code for FREE!

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!

4/29/2019 8:22:37 PM

David Quichocho

1 Answer

New Answer

+2

while cycle? Ask for input, check it, if input correct break cycle. But you can't do it here on playground...