+ 1

If i put any input statements before while loop and try to Execute it within while loop!! Then why does it run without stopping!

If i put any input statements before while loop and try to Execute it within while loop!! Then why does it run without stopping!! When, while True:

23rd May 2020, 8:23 AM
Lucky Nayak
Lucky Nayak - avatar
7 Réponses
+ 4
Please provide us your code, but not only a snippet. Put it in playground and then link it here. Thanks!
23rd May 2020, 9:18 AM
Lothar
Lothar - avatar
+ 3
Lucky Nayak If by your question you mean the behaviour of your code in SoloLearn, this is how it works here. You have to provide the whole input at once.
23rd May 2020, 9:17 AM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 1
While True will execute infintely unless you break out if it
23rd May 2020, 8:29 AM
Abhay
Abhay - avatar
+ 1
Lucky Nayak Could you give an example of your question to help us understand further
23rd May 2020, 8:45 AM
Rik Wittkopp
Rik Wittkopp - avatar
0
abhay my question is not that
23rd May 2020, 8:41 AM
Lucky Nayak
Lucky Nayak - avatar
0
Guys try to understand!! ok i will it out!!
23rd May 2020, 12:51 PM
Lucky Nayak
Lucky Nayak - avatar