title: Creating a list of numbers one through nth Python
body: <p>How can I create a list one through nth that gives me a list, that is only one digit in length. So 100 would be 1,0,0 and 19 would be 1,9</p>
  
  <pre><code>&gt;&gt;&gt; listGen(20)
  
  
  &gt;&gt;&gt; [1,2,3,4,5,6,7,8,9,1,0,1,1,1,2,1,3,1,4,1,5,1,6,1,7,1,8,1,9,2,0]
  </code></pre>