Re: [Pythonmac-SIG] Some test code

2011-02-02 Thread Henning Hraban Ramm
Am 2011-02-03 um 05:45 schrieb Chris Rebert: if (card == "Hearts" or card == "Diamonds"): print "That card is Red" elif (card == "Spades" or card == "Clubs"): print "That card is Black" Note that the parentheses are completely unnecessary and not idiomatic style. if card == "Hea

Re: [Pythonmac-SIG] Some test code

2011-02-02 Thread Chris Rebert
On Wed, Feb 2, 2011 at 7:23 PM, John Parker wrote: > All, > > I have written this test code > > if (card == "Hearts" or card == "Diamonds"): >     print "That card is Red" > > elif (card == "Spades" or card == "Clubs"): >     print "That card is Black" Note that the parentheses are completely unn

[Pythonmac-SIG] Some test code

2011-02-02 Thread John Parker
All, I have written this test code if (card == "Hearts" or card == "Diamonds"): print "That card is Red" elif (card == "Spades" or card == "Clubs"): print "That card is Black" It seems to work but prior to this code, it looked like this if (card == "Hearts" or card == "Diamonds"