Re: Equality check

2011-08-03 Thread Chris Angelico
On Wed, Aug 3, 2011 at 8:15 PM, Dave Angel wrote: > If one is complex, ... The situation is complex enough without bringing complex numbers into it! OP, I recommend reading this page and then re-asking your question: http://www.catb.org/~esr/faqs/smart-questions.html ChrisA -- http://mail.pyth

Re: Equality check

2011-08-03 Thread Dave Angel
On 01/-10/-28163 02:59 PM, Abhishek Jain wrote: How to check equality of two nos. in python Python doesn't have numbers, it has various numeric data types. If all you're concerned with are int types, then just use the obvous: if a == b: dosomething If one or both might

Re: Equality check

2011-08-03 Thread Thomas Jollans
On 03/08/11 18:22, Abhishek Jain wrote: > How to check equality of two nos. in python > > http://docs.python.org/py3k/reference/expressions.html#not-in http://docs.python.org/py3k/tutorial/index.html -- http://mail.python.org/mailman/listinfo/python-list

Equality check

2011-08-03 Thread Abhishek Jain
How to check equality of two nos. in python -- http://mail.python.org/mailman/listinfo/python-list