Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #32563 > unrolled thread
| Started by | Terry Reedy <tjreedy@udel.edu> |
|---|---|
| First post | 2012-11-01 12:04 -0400 |
| Last post | 2012-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.
Re: pythonic way Terry Reedy <tjreedy@udel.edu> - 2012-11-01 12:04 -0400
| From | Terry Reedy <tjreedy@udel.edu> |
|---|---|
| Date | 2012-11-01 12:04 -0400 |
| Subject | Re: 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
Back to top | Article view | comp.lang.python
csiph-web