Removing tuples in a list
<p>I have these lists:</p>

<pre><code>sqvaluelist = []
valuelist = [(10.5,), (20.5,), (21.5,), (70.0,), (34.5,)]
</code></pre>

<p>I want to apply this code on the valuelist:</p>

<pre><code>for value in valuelist:
    valuesquared = value*value
    sqvaluelist.append(valuesquared,)
</code></pre>

<p>but I received this error:</p>

<pre>
TypeError: can't multiply sequence by non-int of type 'tuple'
</pre>

<p>I think I know the reason behind this error, it is because every value is inside a separate tuple. </p>

<p>My question is, is there any way to take this values off their respective tuple, and just turn them into a list like</p>

<pre><code>valuelist = [10.5, 20.5, 21.5, 70.0, 34.5]
</code></pre>

<p>without manually editing the structure of the existing list so that the for loop can be executed?</p>

<p>EDIT: I apologize! They are actually tuples! Added commas after each value. Sorry!</p>
