Python mistaking float for string
- by wrongusername
I receive
TypeError: Can't convert 'float' object to str implicitly
while using
Gambler.pot += round(self.bet + self.money * 0.1)
where pot, bet, and money are all doubles (or at least are supposed to be). I'm not sure if this is yet another Eclipse thing, but how do I get the line to compile?
Code where bet and money are initialized:
money = 0
bet = 0