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
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
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"