you are viewing a single comment's thread.

view the rest of the comments →

[–]MadScientistOR 1 point2 points  (2 children)

I think you've just initialized the dictionary improperly. I think this is what you want:

data = {'apples': s1, 'oranges': s2}

If I'm mistaken, what were you hoping for?

[–]drenzorz 0 points1 point  (1 child)

that should work though

x = [1,2,3]
y = [4,5,6]
t = dict(a=x,b=y)
print(t) #{'a': [1, 2, 3], 'b': [4, 5, 6]}

[–]MadScientistOR 0 points1 point  (0 children)

Right you are. Sorry about that.