title: Python Loop for temperature
body: <p>I am learning python for the first time and my assignment required me to:</p>
  <blockquote>
  <p>Write a loop to print all elements in <code>hourly_temperature</code>. Separate
  elements with a -&gt; surrounded by spaces. Sample output for the given
  program:</p>
  <pre><code>90 -&gt; 92 -&gt; 94 -&gt; 95 
  </code></pre>
  <p>Note: 95 is followed by a space, then a newline.</p>
  </blockquote>
  <p>After playing I had difficulty and found the coded answer as:</p>
  <pre><code>hourly_temperature = [90, 92, 94, 95]
  
  Htemp = len(hourly_temperature)
  
  #create list
  temps = []
  
  if Htemp &gt;= 0:
      for i in hourly_temperature: #question on i and appends i
          temps.append(i)
          temps.append('-&gt;')
          Htemp -= 1
          continue
  temps.pop()
  for s in temps:    #question here
      print(s,'', end='')
      continue
  print('')
  </code></pre>
  <p>My question is regarding the for loops that I have notated with the #question.</p>
  <p>I am wondering what the purpose is for the <code>i</code> and <code>s</code> to make the code work.</p>