Python: How can i avoid specific word in string from lowercasing while using str.lower
<p>Iam new to python</p>

<p>i have a list of string as follws</p>

<pre><code>mylist=["$(ProjectDir)Dir1\Dest1","$(OutDir)Dir2\Dest2","$(IntDir)Dir2\Dest2"]
</code></pre>

<p>i want to lower case each list item value as follows </p>

<pre><code>mylist=["$(ProjectDir)dir1\dest1","$(OutDir)dir2\dest2","$(IntDir)dir3\dest3"]
</code></pre>

<p>ie i want to prevent  <code>$(ProjectDir)</code>,<code>$(OutDir)</code>,<code>$(IntDir)</code> from lowercasing  </p>
