remove single quotes in list, split string avoiding the quotes
<p>Is it possible to split a string and to avoid the quotes(single)? </p>

<p>I would like to remove the single quotes from a list(keep the list, strings and floats inside:</p>

<pre><code>l=['1','2','3','4.5']
</code></pre>

<p>desired output:</p>

<pre><code>l=[1, 2, 3, 4.5]
</code></pre>

<p>next line works neither with int nor float</p>

<pre><code>l=[float(value) for value in ll]
</code></pre>