data_list = ['a', 'random', 'data', 'containing',
'random', 'words']
''' Use a list comprehension to count the
frequency of each word in the list'''
word_freq = {word: data_list.count(word)
for word in data_list}
# Print the resulting dictionary
print(word_freq)