I'm writing a script that inserts win/loss results into a sqlite3 database. I'm also trying to pull the win/loss count from said database table. However, I get an error that I can't convert from sqlite3 cursor object to a string to concatenate into my win message. I'm definitely doing something wrong here. Any help?
cur.execute("INSERT INTO WINS(winner) VALUES('Computer')")
numberWins = cur.execute("select count(*) from WINS where winner = 'Computer'")
print("******************************\n" + numberWins + "Computer Wins\n******************************")
I get this error: TypeError: cannot concatenate 'str' and 'sqlite3.Cursor' objects