[Tutor] Using and

Kent Johnson kent37 at tds.net
Sun Feb 21 15:10:23 CET 2010


On Sun, Feb 21, 2010 at 8:44 AM, jim serson <fubarninja at hotmail.com> wrote:
> Can anyone tell me if I can have my program check to see if something is
> true the add to count
>
> For example something like
>
> if c_1 and c_2 and c_3 true:
>
>             count + 1

This will almost work as written. Try
if c_1 and c_2 and c_3:
    count = count + 1 # or count += 1

Kent


More information about the Tutor mailing list