title: how to display sensetive string in python
body: <p>So, I have a file with content like below where it is mixed with sensetive and non-sensetive data</p>
  <pre><code>tableName_password = &quot;password&quot; 
  name=&quot;text&quot;
  </code></pre>
  <p>so, when I display the content of the file it shows the password as <code>&quot;password&quot;</code>.
  Hence my question is how can I display the <code>&quot;password&quot; as ****</code> only for display, without actually changing the real value inside the file and without impacting the display of non-sensetive data.</p>
  <pre><code>with open(file_location) as file:
          print(file.read())
  </code></pre>
  <p>it will only display not changing the value <code>&quot;password&quot;</code> in other word, it will mask the actual value for password while untouching the name.</p>
  <pre><code>tableName_password = &quot;****&quot;
  name=&quot;text&quot;
  </code></pre>