convert list of string and number to string and float
<p>Say I have a list like this:</p>

<pre><code>a = ['hello','1','hi',2,'something','3'] 
</code></pre>

<p>I want to convert the numbers in the list into float while keeping the strings.</p>

<p>I wrote this:</p>

<pre><code>for i in a:
    try:
        i = float(i)
    except ValueError:
        pass
</code></pre>

<p>Is there a more efficient and neat way to do this?</p>
