doesnt seems to work can any help be provided

2006-10-26 Thread Arun Nair
import string class Card: # Not sure if I need to set these first??? # suitList = () # rankList = () def __init__(self,suit,rank): self.suit = suit self.rank = rank def __repr__(self): return str(self) def __str__(self): return "%s of %s"

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 = [

Error to be resolved

2006-10-26 Thread Arun Nair
Hey guys can you help me resolve this error Thanks & Regards, Arun Nair This is the program from random import * from string import * class Card: def __init__(self, suit, rank): self.suit =

Re: Cards deck problem

2006-10-26 Thread Arun Nair
Im so sorry about that but the lecturer doesnt teaches anything so its become very difficult for me to do it if you guys have any notes on classes it will be very helpfull. and i can try on my own. regards, Arun On Oct 26, 7:47 pm, Ben Finney <[EMAIL PROTECTED]> wrote: > "Arun

Re: Cards deck problem

2006-10-26 Thread Arun Nair
Hey paul i dont know how to implement this stuff if you have any ebook or any notes which can halp me then i would like to try it and implement my and refer back to you for any errors comming out of it Regards, Arun On Oct 26, 7:39 pm, Paul Rubin <http://[EMAIL PROTECTED]> wrote: > &

Cards deck problem

2006-10-26 Thread Arun Nair
e top of the deck, and removes the card from the deck. cardsLeft(self) - Returns the number of cards left in the deck. Test your class by having it deal out a sequence of 'n' cards where 'n' is a number input by the user. The program should either print out the cards, or display

Re: Can any one help with solving this program it just doesnt take probability of the second team

2006-10-26 Thread Arun Nair
Thanks a ton peter its working. Peter Otten wrote: > Arun Nair wrote: > > > ''' Can anyone help me with this program it just takes probability of > > the first team and runs the program doesnt takes the probability of the > > second team even though spec

Can any one help with solving this program it just doesnt take probability of the second team

2006-10-26 Thread Arun Nair
''' Can anyone help me with this program it just takes probability of the first team and runs the program doesnt takes the probability of the second team even though specified''' from random import * def volleySimulation(): printInstructions() probA, probB, n = getInputs() winA, winB