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"
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 = [
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 =
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
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:
> &
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
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 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