pythonic way
inshu chauhan
insideshoes at gmail.com
Thu Nov 1 17:51:48 EDT 2012
More information about the Python-list mailing list
Thu Nov 1 17:51:48 EDT 2012
- Previous message (by thread): pythonic way
- Next message (by thread): pythonic way
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
OK ..I got it.. On Thu, Nov 1, 2012 at 5:54 PM, Zero Piraeus <schesis at gmail.com> wrote: > : > > On 1 November 2012 11:32, inshu chauhan <insideshoes at gmail.com> wrote: > > what is the most pythonic way to do this : > > > > if 0 < ix < 10 and 0 < iy < 10 ??? > > As everyone else has said, it's perfectly pythonic once you stick the > colon on the end. You might find it more instantly readable with some > extra parentheses: > > if (0 < ix < 10) and (0 < iy < 10): > # do something > > ... but that's really just down to taste. > > -[]z. > -- > http://mail.python.org/mailman/listinfo/python-list > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-list/attachments/20121101/972394cf/attachment.html>
- Previous message (by thread): pythonic way
- Next message (by thread): pythonic way
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list