[Tutor] Using and

Benno Lang transmogribenno at gmail.com
Sun Feb 21 14:55:38 CET 2010


On 21 February 2010 22:44, 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

Your code currently throws the result of the count + 1 expression
away. You probably want this instead:
count = count + 1

> or if I can use it after splitting an input the problem is the input is
> variable so I don't know if I can do such a thing without knowing the input
> ahead of time.

I'm not really sure what you're trying to say here.

HTH,
benno


More information about the Tutor mailing list