Feb-14-2019, 04:27 AM
This is the whole class:
class Chips: def __init__(self.total=100) self.total = total #This can be set a default value or supplied by a user input self.bet = 0 def win.bet(self) self.total += self.bet def lose.bet(self) self.total -= self.bet