How is it possible to use a while loop to print even numbers 2 through 100?
<p>I am a beginner and I am stuck on this problem, "Write a python code that uses a while loop to print even numbers from 2 through 100. Hint ConsecutiveEven differ by 2."</p>

<p>Here is what I came up with so far: </p>

<pre><code> while num in range(22,101,2):
              print(num)
</code></pre>