Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #32563
| From | Terry Reedy <tjreedy@udel.edu> |
|---|---|
| Subject | Re: pythonic way |
| Date | 2012-11-01 12:04 -0400 |
| References | <CAFqGZREfq7fO4Okf1Oj9HBeUkWLYK_9=ho8N47_kyTKudGZSFA@mail.gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.3155.1351785878.27098.python-list@python.org> (permalink) |
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 comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: pythonic way Terry Reedy <tjreedy@udel.edu> - 2012-11-01 12:04 -0400
csiph-web