Mar-09-2018, 10:26 AM
while True
means "while bool(True) == True`, which will always be the case - it's an infinite loop.The loop would continue on forever, if not for the
break
statement which exits it.
Understanding "while True"
|
|
Messages In This Thread |
Understanding "while True" - by RedSkeleton007 - Mar-09-2018, 09:58 AM
RE: Understanding "while True" - by stranac - Mar-09-2018, 10:26 AM
RE: Understanding "while True" - by snippsat - Mar-09-2018, 12:30 PM
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
Returning True or False vs. True or None | trevorkavanaugh | 6 | 14,523 |
Apr-04-2019, 08:42 AM Last Post: DeaD_EyE |