Hello I have a list with temperature values:
temperatures=[-2,1,10.2,6,15,-6,20,13.5,0.9,-8.3]
and I want to create 2 list containing 1 the values above zero and the other the values below. It is an exercise and I have to use for loop and conditional statment.
I created two additional empty values and I try to use the conditional statment to select the two ranges of values to complete the task, but Iàm not reaching the objective. Could you help?
this is the code I tried:
```
temperatures=[-2,1,10.2,6,15,-6,20,13.5,0.9,-8.3]
temp_below_zero=[]
temp_above_zero=[]
for i in range(len(temperatures):
if i < 0 :
temp_below_zero.append(i)
elif i > 0 :
temp_above_zero.append(i)
print(temp_below_zero,temp_above_zero)
```
`
```