+ 1

What do you do if you put an input in a for or while loop

Is there no way to do infinite inputs

14th Dec 2019, 4:26 PM
Nicolas okiokpa
Nicolas okiokpa - avatar
4 Answers
+ 1
It will not continue the loop until the input is filled.
14th Dec 2019, 4:27 PM
Jax
Jax - avatar
+ 1
If you are asking for infinite loop, then here's the way: while True: input() Above code will keep asking for input infinitely, if that's what you wanted.
14th Dec 2019, 5:23 PM
blACk sh4d0w
blACk sh4d0w - avatar
+ 1
Thanks nAutAxH AhmAd
16th Dec 2019, 9:36 PM
Nicolas okiokpa
Nicolas okiokpa - avatar
0
Thanks
14th Dec 2019, 4:28 PM
Nicolas okiokpa
Nicolas okiokpa - avatar