TechieInsights wrote:
On Feb 12, 9:03 am, Catherine Heathcote
catherine.heathc...@gmail.com wrote:
But I just cant find it. How do I do an or, as in c/c++'s ||? Just
trying to do something simple, the python equivilent of:
if(i % 3 == 0 || i % 5 == 0)
Thanks.
in 2.5 and above you can
But I just cant find it. How do I do an or, as in c/c++'s ||? Just
trying to do something simple, the python equivilent of:
if(i % 3 == 0 || i % 5 == 0)
Thanks.
--
http://mail.python.org/mailman/listinfo/python-list
On Feb 12, 9:03 am, Catherine Heathcote
catherine.heathc...@gmail.com wrote:
But I just cant find it. How do I do an or, as in c/c++'s ||? Just
trying to do something simple, the python equivilent of:
if(i % 3 == 0 || i % 5 == 0)
Thanks.
if i % 3 == 0 or i % 5 == 0
--
On Feb 12, 9:03 am, Catherine Heathcote
catherine.heathc...@gmail.com wrote:
But I just cant find it. How do I do an or, as in c/c++'s ||? Just
trying to do something simple, the python equivilent of:
if(i % 3 == 0 || i % 5 == 0)
Thanks.
in 2.5 and above you can do
if any(i%3 == 0, i%5 ==
In article zkxkl.34048$sp5.7...@text.news.virginmedia.com,
Catherine Heathcote catherine.heathc...@gmail.com wrote:
But I just cant find it. How do I do an or, as in c/c++'s ||? Just
trying to do something simple, the python equivilent of:
if(i % 3 == 0 || i % 5 == 0)
if i % 3 == 0 or i % 5
TechieInsights wrote:
On Feb 12, 9:03 am, Catherine Heathcote
catherine.heathc...@gmail.com wrote:
But I just cant find it. How do I do an or, as in c/c++'s ||? Just
trying to do something simple, the python equivilent of:
if(i % 3 == 0 || i % 5 == 0)
Thanks.
if i % 3 == 0 or i % 5 == 0
On Feb 12, 5:07 pm, TechieInsights gdoerm...@gmail.com wrote:
On Feb 12, 9:03 am, Catherine Heathcote
catherine.heathc...@gmail.com wrote:
But I just cant find it. How do I do an or, as in c/c++'s ||? Just
trying to do something simple, the python equivilent of:
if(i % 3 == 0 || i % 5 ==
Hi,
you could do it this way also :
if i in [3,5]:
do something...
KM
~
On Fri, Feb 13, 2009 at 1:19 AM, Michele Simionato
michele.simion...@gmail.com wrote:
On Feb 12, 5:07 pm, TechieInsights gdoerm...@gmail.com wrote:
On Feb 12, 9:03 am, Catherine Heathcote
Aahz wrote:
In article zkxkl.34048$sp5.7...@text.news.virginmedia.com,
Catherine Heathcote catherine.heathc...@gmail.com wrote:
But I just cant find it. How do I do an or, as in c/c++'s ||? Just
trying to do something simple, the python equivilent of:
if(i % 3 == 0 || i % 5 == 0)
if i % 3
2009/2/12 km srikrishnamo...@gmail.com:
Hi,
you could do it this way also :
if i in [3,5]:
do something...
True, you could do it, but it would be wrong. The original is true for
i = 6, 9, 10, 12 and so on, but yours doesn't seem to be...
--
Tim Rowe
--
On Feb 12, 9:19 am, Michele Simionato michele.simion...@gmail.com
wrote:
On Feb 12, 5:07 pm, TechieInsights gdoerm...@gmail.com wrote:
On Feb 12, 9:03 am, Catherine Heathcote
catherine.heathc...@gmail.com wrote:
But I just cant find it. How do I do an or, as in c/c++'s ||? Just
trying
Michele Simionato wrote:
On Feb 12, 5:07 pm, TechieInsights gdoerm...@gmail.com wrote:
On Feb 12, 9:03 am, Catherine Heathcote
catherine.heathc...@gmail.com wrote:
But I just cant find it. How do I do an or, as in c/c++'s ||? Just
trying to do something simple, the python equivilent of:
if(i
On Feb 12, 6:22 pm, MRAB goo...@mrabarnett.plus.com wrote:
Michele Simionato wrote:
On Feb 12, 5:07 pm, TechieInsights gdoerm...@gmail.com wrote:
On Feb 12, 9:03 am, Catherine Heathcote
catherine.heathc...@gmail.com wrote:
But I just cant find it. How do I do an or, as in c/c++'s ||?
Michele Simionato michele.simion...@gmail.com writes:
On Feb 12, 6:22 pm, MRAB goo...@mrabarnett.plus.com wrote:
Michele Simionato wrote:
On Feb 12, 5:07 pm, TechieInsights gdoerm...@gmail.com wrote:
On Feb 12, 9:03 am, Catherine Heathcote
catherine.heathc...@gmail.com wrote:
But I
14 matches
Mail list logo