Apr-30-2018, 02:37 AM
A while loop makes the most sense, unless you're advanced (or enthused) enough to use generators (and even then, the generator might just abstract away the while loop from primary logic, but I haven't thought about this thoroughly).