I have a dictionary where each key has a list of variable length, eg:
d = { \'a\': [1, 3, 2], \'b\': [6], \'c\': [0, 0] }
Is there a cle
This would work:
random.choice([k for k in d for x in d[k]])