Exercise 1.7

You can actually do Exercise 1.6 - a list of dicts as a dict of lists instead of a list of dicts and sometimes that has its advantages. Restructure your code to do that. If you’ve got ir right then print(trials) will give:

{'word': ['red', 'red', 'red', 'green', 'green', 'green', 'blue', 'blue', 'blue'], 'ink': ['red', 'green', 'blue', 'red', 'green', 'blue', 'red', 'green', 'blue']}

Go to Solution 1.7


Back to top