Here's my attempt at grabbing the dictionary:
pairs = {'EMOTIONS': ['happy', 'angry', 'sad', 'calm'], 'TRAITS': ['impatient', 'persistent', 'meek']}
And turning it into a dictionary whose values are written as a phrase, so that:
pairs = {'EMOTIONS': ['I am happy', 'I am angry', 'I am sad', 'I am calm'], 'TRAITS': ['I am impatient', 'I am persistent', 'I am stubborn']}
Here's the code so far:
pairs = {'EMOTIONS': ['happy', 'angry', 'sad', 'calm'], 'TRAITS': ['impatient', 'persistent', 'meek']}
I_am = 'I am '
for title, words in pairs.items():
words = [I_am+word for word in words]
I'm obviously doing something wrong because when I request print(pairs), it returns the exact same dictionary I began with. What do I change to make this work?