Re: Error to be resolved

2006-10-26 Thread Fredrik Lundh
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

Re: Error to be resolved

2006-10-26 Thread Bruno Desthuilliers
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

Re: Error to be resolved

2006-10-26 Thread Arun Nair
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 = [

Re: Error to be resolved

2006-10-26 Thread Fredrik Lundh
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