doesnt seems to work can any help be provided

Bruno Desthuilliers onurb at xiludom.gro
Thu Oct 26 15:44:51 CEST 2006


Arun Nair wrote:

> import string

You don't need it. Use "some string".split() instead

> class Card:

class Card(object):

>     # Not sure if I need to set these first???
Not only do you need to define them, but it would probably be a good
idea to populate them. And BTW, () is a tuple, not a list (but tuples
are perfectly ok for this use case).
>     # suitList = ()
>     # rankList = ()


(snip whole code listing)

Do you really expect us to run your code, fix the bugs and send it back?
Or are we supposed to guess what's "not working" ?

Please take a few minutes to read this:
http://catb.org/esr/faqs/smart-questions.html

with particular attention to the following point:
http://catb.org/esr/faqs/smart-questions.html#beprecise

HTH


-- 
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'onurb at xiludom.gro'.split('@')])"



More information about the Python-list mailing list