what does this statement mean?
while True:
since we are supposed to write an expression like a>b after while and loop runs until the expression is true but how long will the loop iterate with no expression but just “True” infinite times?
what does this statement mean?
while True:
since we are supposed to write an expression like a>b after while and loop runs until the expression is true but how long will the loop iterate with no expression but just “True” infinite times?
Hey @devchopra999_11c6416ab7f09bbf,
Basically when you write a>b or any other condition the expression returns or gives true or false depending upon the condition but when you give direct while True the condition is always True, so while loop will run infinite times.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.