on writing a while loop for rolling two dice

Greg Ewing greg.ewing at canterbury.ac.nz
Tue Sep 7 00:08:04 EDT 2021


On 7/09/21 11:38 am, Avi Gross wrote:

> #define INDEFINITELY_LOOP while (true)
> 
> So, how to do something like that in python, is a challenge left to the user 😉

def hell_frozen_over():
     return False

while not hell_frozen_over():
     ....

-- 
Greg



More information about the Python-list mailing list