On 10/16/07, danfolkes <[EMAIL PROTECTED]> wrote:
> Instead of: if(cal<=0)
>
> you could do :
> cal=0
> while cal<=0:
> cal = int(raw_input("Please enter the number of calories in your
> food: "))
>
> that would make sure that your input is > 0Calories could be non integer :) francesco -- http://mail.python.org/mailman/listinfo/python-list
