title: convert while to comprehension
body: <p>I have a <code>while</code> loop that generates numbers between 1-10, 10 times:</p>
  
  <pre><code>n=0
  while n &lt; 11:
      n=n+1
      num = random.randint(1,10)
      print(num)
  </code></pre>
  
  <p>I want to convert this into a python3 comprehension in a single statement.</p>
  
  <p>how can I do so?</p>