If item in list does not contain "string", add a "string2" to the item?
<p>In Python I have a list of this sort:</p>

<pre><code>list = ["item.1", "sdfhkjdsffs/THIS-STRING", "fsdhfjsdhfsdf/THIS-STRING",
        item4/THIS-STRING, item5]
</code></pre>

<p>How do I go about adding <code>"some string"</code> for each item in list that does <em>not</em> contain <code>"THIS-STRING"</code>?</p>

<pre><code>result = [x if x.find("SOME-STRING")&gt;=0 else x+"some string" for x in list]
</code></pre>

python list