New answers tagged


This is two valid python statements in (because of the line feed between them): buy_result = db.execute ("select sum (shares) as shares from History where user_id = {} and symbol = '{}' and type = 'B' group by symbol".format(user_id, symbol)) The first sets buy_result to the execute method, with no query argument. The second is a string....

Top 50 recent answers are included