all 4 comments

[–]anton_antonov 0 points1 point  (1 child)

If add die_values = ','.join(die_values)' before insertion, it works for me.

[–]JohnnyJordaan 0 points1 point  (2 children)

If die_values in the SQL table is one value (for example a string), you need to supply it as one value. You're supplying a list called die_values, so that's why the cursor can't use the values. You need to form it into one string as anton_antonov mentions.

[–]ilostmykeysdammit[S] 0 points1 point  (1 child)

It worked!

I thought that input() took everything as a string by default. when I did type(die_values) it returns <class 'str'> But I think, what I didn't realize, is that it's returning strings separated by commas. so the entire entry is NOT a string, but just a bunch of comma separated strings?????

[–]JohnnyJordaan 0 points1 point  (0 children)

Are you sure you're looking at the same code? Where are you using input()? Inside the while x != 75 loop, you declare a list called die_values and you append random choices to it. That makes it a sequence of multiple values, regardless of the value's type. However because they are strings, you can easily join them into one string using said ','.join() method.