I have a dictionary:
>>> print(dict) {'gs': ['bags', 'begs', 'bogs'], 'le': ['Cole', 'Dale', 'Dole'], 'll': ['Ball', 'Bell', 'Bill']} For every single key I want to pick only one word (randomly) from its list. The output would be like:
{'gs': begs, 'le': 'Cole', 'll': 'Bill'} and so on.
I have tried loads of things but none has given me a word for every key of the dictionary. Is there a simple way of doing that?