title: How to convert a nested loop to a list comprehension in python
body: <p>How can i convert this code to list comprehension in python</p>
  
  <pre><code>max_len = []
  for word in fourier_dict:
      word = fourier_dict[word]
      for occur in word:
          max_len.append(len(occur))
  </code></pre>
  
  <p>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.</p>