[Tutor] "while" loop for satisfing two conditions , advice requested

Carlo Capuano Carlo.Capuano at iter.org
Sun Jan 15 14:30:03 CET 2006


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 is ITER? www.iter.org



More information about the Tutor mailing list