Feb-14-2019, 04:46 AM
Even total=100 itself does not work:
Error:[python] File "D:\Python\Python\bet.py", line 8
def __init__(total=100)
^
SyntaxError: invalid syntax
class Chips: def __init__(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