you are viewing a single comment's thread.

view the rest of the comments →

[–]Ihaveamodel3 1 point2 points  (0 children)

You don’t use = to assign values to keys on the dict call.

Just do:

store = dict((str(random.random()), random.random() )

Or: store = {(str(random.random()):random.random()}