title: Python task. Converting for to while
body: <p>I just began programming and one of the tasks i got was making code that gives out prizes depending on the laps done. I began completing the exercise without realizing that i should be using a while loop in it, so here it is and i don't know how to make it work with a while loop.</p>
  <pre><code>to = int(input(&quot;Laps: &quot;))
  
  start = 1
  
  prize = 0
  for i in range(start, to+1):
      if i % 2 == 0:
          prize = prize + i
          
  print(&quot;Prize: &quot; + str(prize))
  </code></pre>