title: Python Word frequencies
body: <p>Write a program that reads a list of words. Then, the program outputs those words and their frequencies.</p>
  
  <p>Ex: If the input is:</p>
  
  <pre><code>hey hi Mark hi mark
  </code></pre>
  
  <p>the output is:</p>
  
  <pre><code>hey 1
  hi 2
  Mark 1
  hi 2
  mark 1
  </code></pre>
  
  <p>Here's what I tried:</p>
  
  <pre><code>list = 'hey hi Mark hi mark'
  text = list.split()
  
  for word in text:
          freq = text.count(word) 
          print(*text, freq)
  </code></pre>