pythonic way

Terry Reedy tjreedy at udel.edu
Thu Nov 1 17:04:12 CET 2012


On 11/1/2012 11:32 AM, inshu chauhan wrote:
>   what is the most pythonic way to do this :
>
>                     if 0 < ix < 10 and 0 < iy < 10 ???

end with : instead of ???

 >>> ix, iy = 3,4
 >>> if 0 < ix < 10 and 0 < iy < 10:
	print('This was too easy')

	
This was too easy

-- 
Terry Jan Reedy



More information about the Python-list mailing list