title: Python: how to emphasize a specific sequence of characters within a string when it is printed?
body: <p>I have a program that prints strings consisting of a random sequence of lowercase letters and spaces.</p>
  <p>Is there a way emphasize a certain target word within that string when I print the string to make the target easier to spot in the output?</p>
  <p>For example:</p>
  <h3>Current code:</h3>
  <pre><code>&gt;&gt;&gt; print(mystring)
  </code></pre>
  <blockquote>
  <p>mxxzjvgjaspammttunthcrurny dvszqwkurxcxyfepftwyrxqh</p>
  </blockquote>
  <h3>Desired behaviour:</h3>
  <pre><code>&gt;&gt;&gt; some_function_that_prints_with_emphasis(mystring,'spam')
  </code></pre>
  <blockquote>
  <p>mxxzjvgja<strong>spam</strong>mttunthcrurny dvszqwkurxcxyfepftwyrxqh</p>
  </blockquote>
  <p>Other acceptable forms of emphasis would be:</p>
  <ul>
  <li>boldening the characters</li>
  <li>changing colour</li>
  <li>capitalizing</li>
  <li>separating with extra characters</li>
  <li>any other idea that is easily implemented in Python 3</li>
  </ul>
  <p>I'm leaving the requirements deliberately vague because as a beginner I'm not aware of all that Python can do so there might be a simpler way to do this that I've overlooked.</p>