i got a error saing: unsupported operand type(s) for +=: 'int' and 'tuple'
def accounting(self):
[total], = self.db.c.execute('''SELECT NeedInvestment FROM building WHERE id == 5''')
investment = []
for i in self.db.c.execute('''SELECT AmountOfInvestment FROM investor '''):
investment.append(i)
totaltemp = 0
while totaltemp <= total:
i = random.randint(0, 5)
totaltemp += investment[1]
How do i correct it?