Conditional Expressions don't solve the problem

Greg Ewing greg at cosc.canterbury.ac.nz
Wed Oct 17 20:47:29 EDT 2001


Kevin D wrote:
> 
> while <condition>; <keyword> <assignment-statement>:
>     <body>

Two drawbacks:

* The condition is written before the assigment, but
  tested after it.

* The statement part is restricted to a single statement
  which must be an assignment.

-- 
Greg Ewing, Computer Science Dept, University of Canterbury,	  
Christchurch, New Zealand
To get my email address, please visit my web page:	  
http://www.cosc.canterbury.ac.nz/~greg



More information about the Python-list mailing list