title: Color a strings segments in python
body: <p>I am new to python and I am trying to take a string which is divided into segments by "-" character.</p>
  
  <p>I need to find the "-" in each location and colour the segment for example the string is divided into</p>
  
  <p>type-name-function-location</p>
  
  <p>How do I break up each of those individual parts and add colour them? </p>
  
  <p>Thank you  </p>