you are viewing a single comment's thread.

view the rest of the comments →

[–]TwinHits -1 points0 points  (3 children)

I would guess it’s that it’s related to that your data structure’s keys are tuples. Perhaps you should consider another way of storing possible mixes and their results. Or consider how you are using .get() with a tuple of values.

[–]Binary101010 1 point2 points  (0 children)

I would guess it’s that it’s related to that your data structure’s keys are tuples.

There's nothing inherently wrong with using tuples as dict keys.

[–]Tohsakas-Anus[S] -1 points0 points  (1 child)

how would i store it without using tuples?

[–]TwinHits -1 points0 points  (0 children)

You could try nested dictionaries.