TypeError: 'float' object is not iterable
<p>I am writing a program that calculates the minimum and maximum of 10 numbers from a list (data1). I am receiving a "TypeError: 'float' object is not iterable" for the following lines:</p>

<pre><code>temp_min10=min(data1[x-z][3])
temp_max10=max(data1[x-z][2])
</code></pre>

<p>Full program:</p>

<pre><code>x=int(0)
for line in data1:
    if x&gt;=9:
        min10=0
        max10=0
        for z in range(0,10):
            temp_min10 = temp_max10 = 0
            temp_min10=min(data1[x-z][3])
            if temp_min10&lt;min10:
                min10=temp_min10
            temp_max10=max(data1[x-z][2])
            if temp_max10&gt;max10:
                max10=temp_max10
            d_chan.append([max10,min10])
    else:
        d_chan.append([0,0])
        x+=1
</code></pre>

<p>Thanks for any help!</p>
