title: How to count 'red' from 'redish' in a list?
body: <p>I have a bit of a tricky question - I want to count only words that say 'red' and avoid those which have red in their name, but are not just 'red'. For example I would want to avoid counting 'redish', 'darkred' etc. I have my code below but I'm not having a whole lot of luck. The input would be for example: 'red', 'redish', 'darkred'</p>
  
  <p>I know my code is only looking for 'red' so I guess my question is how do I use the split function to only pull out 'red' and avoid everything else?</p>
  
  <pre><code>cars = input("Cars: ") #'redish, darkred, sortofred, red'
  cars_red = cars.split('red') #I only want to count the one 'red'
  print('red:', cars_red.count(cars_red))
  </code></pre>
  
  <p>Thanks,</p>