True never becomes False or similar False-like value so the loop continues until break statement or exception inside loop.
pyTony
pyMod
5,359 posts since Apr 2010
Reputation Points: 782
Solved Threads: 852
It would run infinitely(until user breaks or exception occurs inside as pyTony said).
The basic syntax for while expression is while <expression> . Every iteration your python interpreter checks if <expression> evaluates to True . If it doesn't the loop ends. Now in case of while True expression is True and evaluates to True, always; hence running forever.
PS> Sorry, just noticed the Solved tag.
vishesh
Nearly a Posting Virtuoso
1,381 posts since Oct 2006
Reputation Points: 85
Solved Threads: 42