title: Python Pretty table with color output
body: <p>I am using pretty table to generate tables output.</p>
  
  <p>Is it possible to generate in terms of colors. If failed it should display in red and its ok it should display in green.</p>
  
  <p>Code:</p>
  
  <pre><code>from prettytable import PrettyTable
  a = "ok"
  b = "Failed"
  t = PrettyTable(['Input', 'status'])
  if a == "ok":
     t.add_row(['FAN', a])
  else:
      t.add_row(['FAN', b])
  print t  
  </code></pre>