2 ms·
I think this is more for: while True: result = do_something() if not result: break rather than: result = True while result:
by wiredfool 13y ago
I think this is more for:
while True:
result = do_something()
if not result:
break
rather than:
result = True
while result:
result = do_something()
[[edit apparently tab ret submits, not whatever I was trying to do with the actual editing]]
- collyw 13y agoI prefer the second one and its a line less code.