title: Multiple conditions in Python
body: <p>I am trying to get a Python code running that shows the first year that certain conditions are met. This has to be done in two steps. I am unable to see what I am doing wrong.</p>
  <p>The program is loading a CSV file in. I have created two lists</p>
  <pre><code>for a in reader:            
          temperature = [int(a['TX'])]
          day = [int(a['DATE'])]
  </code></pre>
  <p>The next step is an iteration over range of a length of temperature:</p>
  <pre><code>for x in range(len(temperature)):
  </code></pre>
  <p>The next step is a while-loop:</p>
  <pre><code>while temperature[x]&gt;= 250 and temperature[x+1] &gt;= 250
  </code></pre>
  <p>The following I am doing is:</p>
  <pre><code>            temp_temperature = [temperature[x]]
              temp_day = [x]
  </code></pre>
  <p>The logic behind would be that all temperatures that meet the while loop are saved in the list along with the index of the temperature.</p>
  <p>The temperature has to meet the condition that it is five consecutive days above 25 degrees. If it has met this condition, it it has to verify that the temperature is above 30 degrees for three consecutive days. If this is the case, it has to print the first occurrence of both conditions.</p>
  <p>In-case a condition is not met:</p>
  <pre><code>            i += 0
              temp_day.clear()
              temp_temperature.clear()
  </code></pre>
  <p>Thank you in advance for helping me out!</p>