I'm having issues adding an index variable to dbm.dumb. What i mean by index variable:
var = b"string",b"string_one",b"string_two"
var[0] #being an index variable
Now when I try and add to it using the following code:
database = dbm.dumb.open(z ,'c')
database["item 1"] = x[2],y[2]
database["item 2"] = x[0],y[0]
database["item 3"] = x[1],y[1]
and i get the following error
TypeError: values must be bytes or strings
I have tried casting the variables so they are strings but it wont let that go through. I'm stuck.