Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #32563 > unrolled thread

Re: pythonic way

Started byTerry Reedy <tjreedy@udel.edu>
First post2012-11-01 12:04 -0400
Last post2012-11-01 12:04 -0400
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: pythonic way Terry Reedy <tjreedy@udel.edu> - 2012-11-01 12:04 -0400

#32563 — Re: pythonic way

FromTerry Reedy <tjreedy@udel.edu>
Date2012-11-01 12:04 -0400
SubjectRe: pythonic way
Message-ID<mailman.3155.1351785878.27098.python-list@python.org>
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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web