Asking the user for input until they give a valid response
Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn
--
Music by Eric Matyas
https://www.soundimage.org
Track title: Breezy Bay
--
Chapters
00:00 Question
01:02 Accepted answer (Score 969)
05:53 Answer 2 (Score 60)
06:42 Answer 3 (Score 35)
13:13 Answer 4 (Score 29)
13:41 Thank you
--
Full question
https://stackoverflow.com/questions/2329...
Accepted answer links:
[continue]: https://docs.python.org/3/tutorial/contr...
[try]: https://docs.python.org/3/tutorial/error...
[Don't Repeat Yourself]: http://en.wikipedia.org/wiki/Don%27t_rep...
Answer 3 links:
[Functional approach]: https://docs.python.org/howto/functional...
[itertools.chain]: https://docs.python.org/library/itertool...
[itertools.repeat]: https://docs.python.org/library/itertool...
[map]: https://docs.python.org/howto/functional...
[input]: https://docs.python.org/library/function...
[filter]: https://docs.python.org/library/function...
[str.isdigit]: https://docs.python.org/library/stdtypes...
[next]: https://docs.python.org/library/function...
[str.isalpha]: https://docs.python.org/library/stdtypes...
[str.isupper]: https://docs.python.org/library/stdtypes...
[docs]: https://docs.python.org/library/stdtypes...
[__contains__]: https://docs.python.org/reference/datamo...
[__lt__]: https://docs.python.org/reference/datamo...
[operator]: https://docs.python.org/library/operator...
[Path.exists]: https://docs.python.org/library/pathlib....
[itertools.repeat]: https://docs.python.org/library/itertool...
[next]: https://docs.python.org/library/function...
[str.lower]: https://docs.python.org/library/stdtypes...
[str.strip]: https://docs.python.org/library/stdtypes...
[function composition]: https://en.wikipedia.org/wiki/Function_c...)
[here]: https://lz.readthedocs.io/en/latest/lz.h...
[logical conjunction]: https://en.wikipedia.org/wiki/Logical_co...
[here]: https://lz.readthedocs.io/en/latest/lz.h...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#python #validation #input
#avk47
--
Music by Eric Matyas
https://www.soundimage.org
Track title: Breezy Bay
--
Chapters
00:00 Question
01:02 Accepted answer (Score 969)
05:53 Answer 2 (Score 60)
06:42 Answer 3 (Score 35)
13:13 Answer 4 (Score 29)
13:41 Thank you
--
Full question
https://stackoverflow.com/questions/2329...
Accepted answer links:
[continue]: https://docs.python.org/3/tutorial/contr...
[try]: https://docs.python.org/3/tutorial/error...
[Don't Repeat Yourself]: http://en.wikipedia.org/wiki/Don%27t_rep...
Answer 3 links:
[Functional approach]: https://docs.python.org/howto/functional...
[itertools.chain]: https://docs.python.org/library/itertool...
[itertools.repeat]: https://docs.python.org/library/itertool...
[map]: https://docs.python.org/howto/functional...
[input]: https://docs.python.org/library/function...
[filter]: https://docs.python.org/library/function...
[str.isdigit]: https://docs.python.org/library/stdtypes...
[next]: https://docs.python.org/library/function...
[str.isalpha]: https://docs.python.org/library/stdtypes...
[str.isupper]: https://docs.python.org/library/stdtypes...
[docs]: https://docs.python.org/library/stdtypes...
[__contains__]: https://docs.python.org/reference/datamo...
[__lt__]: https://docs.python.org/reference/datamo...
[operator]: https://docs.python.org/library/operator...
[Path.exists]: https://docs.python.org/library/pathlib....
[itertools.repeat]: https://docs.python.org/library/itertool...
[next]: https://docs.python.org/library/function...
[str.lower]: https://docs.python.org/library/stdtypes...
[str.strip]: https://docs.python.org/library/stdtypes...
[function composition]: https://en.wikipedia.org/wiki/Function_c...)
[here]: https://lz.readthedocs.io/en/latest/lz.h...
[logical conjunction]: https://en.wikipedia.org/wiki/Logical_co...
[here]: https://lz.readthedocs.io/en/latest/lz.h...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#python #validation #input
#avk47