if then elif

Michael L Torrie torriem at chem.byu.edu
Thu Oct 11 04:42:26 CEST 2007


chris.monsanto at gmail.com wrote:

> 
> that's the most incorrect thing i've heard all day!
> 
> if cal or fat <= 0 is parsed as if (cal) or (fat <= 0)

Which is exactly what he said.  He also said that what the poster
probably wanted was

if cal <= 0 or fat <=0

> 




More information about the Python-list mailing list