How can i convert this code to list comprehension in python
max_len = []
for word in fourier_dict:
word = fourier_dict[word]
for occur in word:
max_len.append(len(occur))
Im new to python and i have to convert this nested loop to a list comprehension which i cant figure out. A little help would be really appreciated.