on writing a while loop for rolling two dice

Dennis Lee Bieber wlfraed at ix.netcom.com
Tue Sep 7 15:15:37 EDT 2021


On Tue, 7 Sep 2021 16:08:04 +1200, Greg Ewing <greg.ewing at canterbury.ac.nz>
declaimed the following:

>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():
>     ....

	Hell typically freezes every January (scroll down to monthly average):
https://www.worldweatheronline.com/hell-weather-averages/michigan/us.aspx


-- 
	Wulfraed                 Dennis Lee Bieber         AF6VN
	wlfraed at ix.netcom.com    http://wlfraed.microdiversity.freeddns.org/



More information about the Python-list mailing list