[Tutor] logic ?

Sean 'Shaleh' Perry shalehperry@home.com
Thu, 04 Oct 2001 14:38:34 -0700 (PDT)


> 
> 2) Your condition in the if statement is wrong. it should read "x==0 or
> y==0",
> although "y==0", or even just "y" will do for this exercise.
> 

to further clarify this, python sees "if (x or y == 0)" as

"if (x) or (y == 0)".