Arun Nair wrote:
>self.suit = suit
>self.rank = rank
>self.suit = ["None","Clubs","Diamonds","Hearts","Spades"]
>self.rank = ["zero", "Ace", "2", "3", "4", "5", "6", "7", "8", "9",
> "10", "Jack", "Queen",
> "King"]
hint: what happens if two variables have the sa
Arun Nair wrote:
> Hey guys can you help me resolve this error
>
> Thanks & Regards,
>
> Arun Nair
> This is the program
>
> from random import *
> from string import *
Avoid the from XXX import * idiom whenever possible. B
These is the latest with the changes made:
=
from random import *
from string import *
class Card:
def __init__(self, suit, rank):
self.suit = suit
self.rank = rank
self.suit = [
Arun Nair wrote:
>self.rank = rank
>self.rank = ["None","Clubs","Diamonds","Hearts","Spades"]
hint: what's "self.rank" after you've executed the above?
--
http://mail.python.org/mailman/listinfo/python-list