in understanding while loop someone should understand "if conditional" first.In "If conditional" there are common relational symbol "and" and "or"Let's discuss "and" conditional
Condition 1 Condition 2 ResultTrue True TrueTrue F
> From: John Joseph <[EMAIL PROTECTED]>
>I am trying to use while loop , here I want
> while loop to check for two conditions , I am not
> getting an idea how to use while loop for checking
> two conditions
> I used "&" condition , but it is not
> giving me the expect
Hi
>while (condition no 1) & (condition no2):
> print "Results"
>
While (condition no 1) and (condition no2):
print "Results"
in python you use the words
and, or, not, is
like:
if myvar1 is not None and myvar2 == '1':
print 'what a nice snowing day!'
Carlo
what
Hi
I am trying to use while loop , here I want
while loop to check for two conditions , I am not
getting an idea how to use while loop for checking
two conditions
I used "&" condition , but it is not
giving me the expected results
I used in this way